blob: 9d38b9414f878140c550c23cbed432c8548c6606 [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15# This configure script may be copied, distributed and modified under the
16# terms of the curl license; see COPYING for more details
17
18## -------------------------------- ##
19## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20## -------------------------------- ##
21
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab=' '
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "x$xc_tst_str" in # ((
61 xsuccess)
62 :
63 ;;
64 *)
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67 exit 1
68 ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "x$xc_tst_str" in # ((
78 xsuccess)
79 :
80 ;;
81 *)
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83 exit 1
84 ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "x$xc_tst_str" in # ((
94 xsuccess)
95 :
96 ;;
97 *)
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99 exit 1
100 ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "x$xc_tst_str" in # ((
110 x7)
111 :
112 ;;
113 *)
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115 exit 1
116 ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126case "x$xc_tst_str" in # ((
127 xsuccess)
128 :
129 ;;
130 *)
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132 exit 1
133 ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "x$xc_tst_str" in # ((
144 xsuccess)
145 :
146 ;;
147 *)
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149 exit 1
150 ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "x$xc_tst_str" in # ((
161 xsuccess)
162 :
163 ;;
164 *)
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166 exit 1
167 ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "x$xc_tst_str" in # ((
178 x4)
179 :
180 ;;
181 *)
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183 exit 1
184 ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "x$xc_tst_str" in # ((
199 x3)
200 :
201 ;;
202 *)
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204 exit 1
205 ;;
206esac
207
208#
209# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210#
211
212# Directory count in 'PATH' when using a colon separator.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
Elliott Hughescac39802018-04-27 16:19:43 -0700236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239 PATH_SEPARATOR=':'
Elliott Hughes82be86d2017-09-20 17:00:17 -0700240 fi
241else
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
245 else
246 xc_tst_auto_separator=':'
247 fi
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253 fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267 emulate sh
268 NULLCMD=:
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in #(
275 *posix*) :
276 set -o posix ;; #(
277 *) :
278 ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
299else
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
303 else
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305 as_echo_n_body='eval
306 arg=$1;
307 case $arg in #(
308 *"$as_nl"*)
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 esac;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 '
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
316 fi
317 export as_echo_body
318 as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order. Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" "" $as_nl"
329
330# Find who we are. Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337 IFS=$as_save_IFS
338 test -z "$as_dir" && as_dir=.
339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there. '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388 *v*x* | *x*v* ) as_opts=-vx ;;
389 *v* ) as_opts=-v ;;
390 *x* ) as_opts=-x ;;
391 * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398 fi
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403 emulate sh
404 NULLCMD=:
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
408 setopt NO_GLOB_SUBST
409else
410 case \`(set -o) 2>/dev/null\` in #(
411 *posix*) :
412 set -o posix ;; #(
413 *) :
414 ;;
415esac
416fi
417"
418 as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432 exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
450 as_have_required=yes
451else
452 as_have_required=no
453fi
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461 IFS=$as_save_IFS
462 test -z "$as_dir" && as_dir=.
463 as_found=:
464 case $as_dir in #(
465 /*)
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473 break 2
474fi
475fi
476 done;;
477 esac
478 as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487 if test "x$CONFIG_SHELL" != x; then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 else
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521 fi
522 exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540 { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549 return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557 set +e
558 as_fn_set_status $1
559 exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568 case $as_dir in #(
569 -*) as_dir=./$as_dir;;
570 esac
571 test -d "$as_dir" || eval $as_mkdir_p || {
572 as_dirs=
573 while :; do
574 case $as_dir in #(
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576 *) as_qdir=$as_dir;;
577 esac
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586 s//\1/
587 q
588 }
589 /^X\(\/\/\)[^/].*/{
590 s//\1/
591 q
592 }
593 /^X\(\/\/\)$/{
594 s//\1/
595 q
596 }
597 /^X\(\/\).*/{
598 s//\1/
599 q
600 }
601 s/.*/./; q'`
602 test -d "$as_dir" && break
603 done
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615 test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
625 {
626 eval $1+=\$2
627 }'
628else
629 as_fn_append ()
630 {
631 eval $1=\$$1\$2
632 }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641 eval 'as_fn_arith ()
642 {
643 as_val=$(( $* ))
644 }'
645else
646 as_fn_arith ()
647 {
648 as_val=`expr "$@" || test $? -eq 1`
649 }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660 as_status=$1; test $as_status -eq 0 && as_status=1
661 if test "$4"; then
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 fi
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 as_expr=expr
672else
673 as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 as_basename=basename
678else
679 as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_dirname=dirname
684else
685 as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
694 s//\1/
695 q
696 }
697 /^X\/\(\/\/\)$/{
698 s//\1/
699 q
700 }
701 /^X\/\(\/\).*/{
702 s//\1/
703 q
704 }
705 s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
720 sed -n '
721 p
722 /[$]LINENO/=
723 ' <$as_myself |
724 sed '
725 s/[$]LINENO.*/&-/
726 t lineno
727 b
728 :lineno
729 N
730 :loop
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732 t loop
733 s/-\n.*//
734 ' >$as_me.lineno &&
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
745 . "./$as_me.lineno"
746 # Exit status is that of the last command.
747 exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 xy) ECHO_C='\c';;
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757 ECHO_T=' ';;
758 esac;;
759*)
760 ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
766else
767 rm -f conf$$.dir
768 mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 as_ln_s='ln -s'
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 as_ln_s='cp -pR'
779 elif ln conf$$.file conf$$ 2>/dev/null; then
780 as_ln_s=ln
781 else
782 as_ln_s='cp -pR'
783 fi
784else
785 as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
792else
793 test -d ./-p && rmdir ./-p
794 as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852# include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857# include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
Elliott Hughes0128fe42018-02-27 14:57:55 -0800879SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882ENABLE_STATIC
883ENABLE_SHARED
884CROSSCOMPILING_FALSE
885CROSSCOMPILING_TRUE
886BLANK_AT_MAKETIME
887CURL_NETWORK_AND_TIME_LIBS
888CURL_NETWORK_LIBS
889LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800913USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700914USE_LIBSSH2
915LIBMETALINK_CPPFLAGS
916LIBMETALINK_LDFLAGS
917LIBMETALINK_LIBS
918USE_LIBPSL_FALSE
919USE_LIBPSL_TRUE
920CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100921CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700922SSL_ENABLED
923USE_AXTLS
924NSS_LIBS
925USE_NSS
926USE_CYASSL
927USE_MBEDTLS
928USE_POLARSSL
929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
935USE_DARWINSSL
936USE_WINDOWS_SSPI
937USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100938DEFAULT_SSL_BACKEND
939BUILD_STUB_GSS_FALSE
940BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700941USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100942HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700943ZLIB_LIBS
944HAVE_LIBZ_FALSE
945HAVE_LIBZ_TRUE
946HAVE_LIBZ
947PKGCONFIG
948CURL_DISABLE_GOPHER
949CURL_DISABLE_SMTP
950CURL_DISABLE_SMB
951CURL_DISABLE_IMAP
952CURL_DISABLE_POP3
953CURL_DISABLE_TFTP
954CURL_DISABLE_TELNET
955CURL_DISABLE_DICT
956CURL_DISABLE_PROXY
957HAVE_LDAP_SSL
958CURL_DISABLE_LDAPS
959CURL_DISABLE_LDAP
960CURL_DISABLE_FILE
961CURL_DISABLE_FTP
962CURL_DISABLE_RTSP
963CURL_DISABLE_HTTP
964DOING_NATIVE_WINDOWS_FALSE
965DOING_NATIVE_WINDOWS_TRUE
966BUILD_UNITTESTS_FALSE
967BUILD_UNITTESTS_TRUE
968CURLDEBUG_FALSE
969CURLDEBUG_TRUE
970USE_EXPLICIT_LIB_DEPS_FALSE
971USE_EXPLICIT_LIB_DEPS_TRUE
972REQUIRE_LIB_DEPS
973CPPFLAG_CURL_STATICLIB
974USE_CPPFLAG_CURL_STATICLIB_FALSE
975USE_CPPFLAG_CURL_STATICLIB_TRUE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982LT_SYS_LIBRARY_PATH
983OTOOL64
984OTOOL
985LIPO
986NMEDIT
987DSYMUTIL
988MANIFEST_TOOL
989RANLIB
990ac_ct_AR
991LN_S
992NM
993ac_ct_DUMPBIN
994DUMPBIN
995LD
996FGREP
997LIBTOOL
998OBJDUMP
999DLLTOOL
1000AS
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009PKGADD_VENDOR
1010PKGADD_NAME
1011PKGADD_PKG
1012VERSIONNUM
1013CURLVERSION
1014am__fastdepCC_FALSE
1015am__fastdepCC_TRUE
1016CCDEPMODE
1017am__nodep
1018AMDEPBACKSLASH
1019AMDEP_FALSE
1020AMDEP_TRUE
1021am__quote
1022am__include
1023DEPDIR
1024am__untar
1025am__tar
1026AMTAR
1027am__leading_dot
1028SET_MAKE
1029AWK
1030mkdir_p
1031MKDIR_P
1032INSTALL_STRIP_PROGRAM
1033STRIP
1034install_sh
1035MAKEINFO
1036AUTOHEADER
1037AUTOMAKE
1038AUTOCONF
1039ACLOCAL
1040VERSION
1041PACKAGE
1042CYGPATH_W
1043am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001044CODE_COVERAGE_RULES
1045CODE_COVERAGE_LDFLAGS
1046CODE_COVERAGE_LIBS
1047CODE_COVERAGE_CXXFLAGS
1048CODE_COVERAGE_CFLAGS
1049CODE_COVERAGE_CPPFLAGS
1050GENHTML
1051LCOV
1052GCOV
1053CODE_COVERAGE_ENABLED
1054CODE_COVERAGE_ENABLED_FALSE
1055CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001056CPP
1057OBJEXT
1058EXEEXT
1059ac_ct_CC
1060CPPFLAGS
1061LDFLAGS
1062CFLAGS
1063CC
1064INSTALL_DATA
1065INSTALL_SCRIPT
1066INSTALL_PROGRAM
1067libext
1068AR
1069EGREP
1070GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001071SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001072CURL_CFLAG_EXTRAS
1073CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001074AM_BACKSLASH
1075AM_DEFAULT_VERBOSITY
1076AM_DEFAULT_V
1077AM_V
1078MAINT
1079MAINTAINER_MODE_FALSE
1080MAINTAINER_MODE_TRUE
1081target_alias
1082host_alias
1083build_alias
1084LIBS
1085ECHO_T
1086ECHO_N
1087ECHO_C
1088DEFS
1089mandir
1090localedir
1091libdir
1092psdir
1093pdfdir
1094dvidir
1095htmldir
1096infodir
1097docdir
1098oldincludedir
1099includedir
1100runstatedir
1101localstatedir
1102sharedstatedir
1103sysconfdir
1104datadir
1105datarootdir
1106libexecdir
1107sbindir
1108bindir
1109program_transform_name
1110prefix
1111exec_prefix
1112PACKAGE_URL
1113PACKAGE_BUGREPORT
1114PACKAGE_STRING
1115PACKAGE_VERSION
1116PACKAGE_TARNAME
1117PACKAGE_NAME
1118SHELL
1119PATH_SEPARATOR'
1120ac_subst_files=''
1121ac_user_opts='
1122enable_option_checking
1123enable_maintainer_mode
1124enable_silent_rules
1125enable_debug
1126enable_optimize
1127enable_warnings
1128enable_werror
1129enable_curldebug
1130enable_symbol_hiding
1131enable_hidden_symbols
1132enable_ares
1133enable_rt
1134with_gcov
1135enable_code_coverage
1136enable_dependency_tracking
1137enable_largefile
1138enable_shared
1139enable_static
1140with_pic
1141enable_fast_install
1142with_aix_soname
1143with_gnu_ld
1144with_sysroot
1145enable_libtool_lock
1146enable_http
1147enable_ftp
1148enable_file
1149enable_ldap
1150enable_ldaps
1151enable_rtsp
1152enable_proxy
1153enable_dict
1154enable_telnet
1155enable_tftp
1156enable_pop3
1157enable_imap
1158enable_smb
1159enable_smtp
1160enable_gopher
1161enable_manual
1162enable_libcurl_option
1163enable_libgcc
1164with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001165with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001166with_ldap_lib
1167with_lber_lib
1168enable_ipv6
1169with_gssapi_includes
1170with_gssapi_libs
1171with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001172with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001173with_winssl
1174with_darwinssl
1175with_ssl
1176with_egd_socket
1177with_random
1178with_gnutls
1179with_polarssl
1180with_mbedtls
1181with_cyassl
1182with_nss
1183with_axtls
1184with_ca_bundle
1185with_ca_path
1186with_ca_fallback
1187with_libpsl
1188with_libmetalink
1189with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001190with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001191with_librtmp
1192enable_versioned_symbols
1193with_winidn
1194with_libidn2
1195with_nghttp2
1196with_zsh_functions_dir
1197enable_threaded_resolver
1198enable_pthreads
1199enable_verbose
1200enable_sspi
1201enable_crypto_auth
1202enable_ntlm_wb
1203enable_tls_srp
1204enable_unix_sockets
1205enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001206'
1207 ac_precious_vars='build_alias
1208host_alias
1209target_alias
1210CC
1211CFLAGS
1212LDFLAGS
1213LIBS
1214CPPFLAGS
1215CPP
1216LT_SYS_LIBRARY_PATH'
1217ac_subdirs_all='ares'
1218
1219# Initialize some variables set by options.
1220ac_init_help=
1221ac_init_version=false
1222ac_unrecognized_opts=
1223ac_unrecognized_sep=
1224# The variables have the same names as the options, with
1225# dashes changed to underlines.
1226cache_file=/dev/null
1227exec_prefix=NONE
1228no_create=
1229no_recursion=
1230prefix=NONE
1231program_prefix=NONE
1232program_suffix=NONE
1233program_transform_name=s,x,x,
1234silent=
1235site=
1236srcdir=
1237verbose=
1238x_includes=NONE
1239x_libraries=NONE
1240
1241# Installation directory options.
1242# These are left unexpanded so users can "make install exec_prefix=/foo"
1243# and all the variables that are supposed to be based on exec_prefix
1244# by default will actually change.
1245# Use braces instead of parens because sh, perl, etc. also accept them.
1246# (The list follows the same order as the GNU Coding Standards.)
1247bindir='${exec_prefix}/bin'
1248sbindir='${exec_prefix}/sbin'
1249libexecdir='${exec_prefix}/libexec'
1250datarootdir='${prefix}/share'
1251datadir='${datarootdir}'
1252sysconfdir='${prefix}/etc'
1253sharedstatedir='${prefix}/com'
1254localstatedir='${prefix}/var'
1255runstatedir='${localstatedir}/run'
1256includedir='${prefix}/include'
1257oldincludedir='/usr/include'
1258docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1259infodir='${datarootdir}/info'
1260htmldir='${docdir}'
1261dvidir='${docdir}'
1262pdfdir='${docdir}'
1263psdir='${docdir}'
1264libdir='${exec_prefix}/lib'
1265localedir='${datarootdir}/locale'
1266mandir='${datarootdir}/man'
1267
1268ac_prev=
1269ac_dashdash=
1270for ac_option
1271do
1272 # If the previous option needs an argument, assign it.
1273 if test -n "$ac_prev"; then
1274 eval $ac_prev=\$ac_option
1275 ac_prev=
1276 continue
1277 fi
1278
1279 case $ac_option in
1280 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1281 *=) ac_optarg= ;;
1282 *) ac_optarg=yes ;;
1283 esac
1284
1285 # Accept the important Cygnus configure options, so we can diagnose typos.
1286
1287 case $ac_dashdash$ac_option in
1288 --)
1289 ac_dashdash=yes ;;
1290
1291 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1292 ac_prev=bindir ;;
1293 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1294 bindir=$ac_optarg ;;
1295
1296 -build | --build | --buil | --bui | --bu)
1297 ac_prev=build_alias ;;
1298 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1299 build_alias=$ac_optarg ;;
1300
1301 -cache-file | --cache-file | --cache-fil | --cache-fi \
1302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1303 ac_prev=cache_file ;;
1304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1306 cache_file=$ac_optarg ;;
1307
1308 --config-cache | -C)
1309 cache_file=config.cache ;;
1310
1311 -datadir | --datadir | --datadi | --datad)
1312 ac_prev=datadir ;;
1313 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1314 datadir=$ac_optarg ;;
1315
1316 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1317 | --dataroo | --dataro | --datar)
1318 ac_prev=datarootdir ;;
1319 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1320 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1321 datarootdir=$ac_optarg ;;
1322
1323 -disable-* | --disable-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid feature name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"enable_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval enable_$ac_useropt=no ;;
1338
1339 -docdir | --docdir | --docdi | --doc | --do)
1340 ac_prev=docdir ;;
1341 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1342 docdir=$ac_optarg ;;
1343
1344 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1345 ac_prev=dvidir ;;
1346 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1347 dvidir=$ac_optarg ;;
1348
1349 -enable-* | --enable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358"enable_$ac_useropt"
1359"*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval enable_$ac_useropt=\$ac_optarg ;;
1364
1365 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1366 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1367 | --exec | --exe | --ex)
1368 ac_prev=exec_prefix ;;
1369 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1370 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1371 | --exec=* | --exe=* | --ex=*)
1372 exec_prefix=$ac_optarg ;;
1373
1374 -gas | --gas | --ga | --g)
1375 # Obsolete; use --with-gas.
1376 with_gas=yes ;;
1377
1378 -help | --help | --hel | --he | -h)
1379 ac_init_help=long ;;
1380 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1381 ac_init_help=recursive ;;
1382 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1383 ac_init_help=short ;;
1384
1385 -host | --host | --hos | --ho)
1386 ac_prev=host_alias ;;
1387 -host=* | --host=* | --hos=* | --ho=*)
1388 host_alias=$ac_optarg ;;
1389
1390 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1391 ac_prev=htmldir ;;
1392 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1393 | --ht=*)
1394 htmldir=$ac_optarg ;;
1395
1396 -includedir | --includedir | --includedi | --included | --include \
1397 | --includ | --inclu | --incl | --inc)
1398 ac_prev=includedir ;;
1399 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1400 | --includ=* | --inclu=* | --incl=* | --inc=*)
1401 includedir=$ac_optarg ;;
1402
1403 -infodir | --infodir | --infodi | --infod | --info | --inf)
1404 ac_prev=infodir ;;
1405 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1406 infodir=$ac_optarg ;;
1407
1408 -libdir | --libdir | --libdi | --libd)
1409 ac_prev=libdir ;;
1410 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1411 libdir=$ac_optarg ;;
1412
1413 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1414 | --libexe | --libex | --libe)
1415 ac_prev=libexecdir ;;
1416 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1417 | --libexe=* | --libex=* | --libe=*)
1418 libexecdir=$ac_optarg ;;
1419
1420 -localedir | --localedir | --localedi | --localed | --locale)
1421 ac_prev=localedir ;;
1422 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1423 localedir=$ac_optarg ;;
1424
1425 -localstatedir | --localstatedir | --localstatedi | --localstated \
1426 | --localstate | --localstat | --localsta | --localst | --locals)
1427 ac_prev=localstatedir ;;
1428 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1429 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1430 localstatedir=$ac_optarg ;;
1431
1432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1433 ac_prev=mandir ;;
1434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1435 mandir=$ac_optarg ;;
1436
1437 -nfp | --nfp | --nf)
1438 # Obsolete; use --without-fp.
1439 with_fp=no ;;
1440
1441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1442 | --no-cr | --no-c | -n)
1443 no_create=yes ;;
1444
1445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1447 no_recursion=yes ;;
1448
1449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1451 | --oldin | --oldi | --old | --ol | --o)
1452 ac_prev=oldincludedir ;;
1453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1456 oldincludedir=$ac_optarg ;;
1457
1458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1459 ac_prev=prefix ;;
1460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1461 prefix=$ac_optarg ;;
1462
1463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1464 | --program-pre | --program-pr | --program-p)
1465 ac_prev=program_prefix ;;
1466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1468 program_prefix=$ac_optarg ;;
1469
1470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1471 | --program-suf | --program-su | --program-s)
1472 ac_prev=program_suffix ;;
1473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1475 program_suffix=$ac_optarg ;;
1476
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 ac_prev=program_transform_name ;;
1485 -program-transform-name=* | --program-transform-name=* \
1486 | --program-transform-nam=* | --program-transform-na=* \
1487 | --program-transform-n=* | --program-transform-=* \
1488 | --program-transform=* | --program-transfor=* \
1489 | --program-transfo=* | --program-transf=* \
1490 | --program-trans=* | --program-tran=* \
1491 | --progr-tra=* | --program-tr=* | --program-t=*)
1492 program_transform_name=$ac_optarg ;;
1493
1494 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1495 ac_prev=pdfdir ;;
1496 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1497 pdfdir=$ac_optarg ;;
1498
1499 -psdir | --psdir | --psdi | --psd | --ps)
1500 ac_prev=psdir ;;
1501 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1502 psdir=$ac_optarg ;;
1503
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1506 silent=yes ;;
1507
1508 -runstatedir | --runstatedir | --runstatedi | --runstated \
1509 | --runstate | --runstat | --runsta | --runst | --runs \
1510 | --run | --ru | --r)
1511 ac_prev=runstatedir ;;
1512 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1513 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1514 | --run=* | --ru=* | --r=*)
1515 runstatedir=$ac_optarg ;;
1516
1517 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1518 ac_prev=sbindir ;;
1519 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1520 | --sbi=* | --sb=*)
1521 sbindir=$ac_optarg ;;
1522
1523 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1524 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1525 | --sharedst | --shareds | --shared | --share | --shar \
1526 | --sha | --sh)
1527 ac_prev=sharedstatedir ;;
1528 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1529 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1530 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1531 | --sha=* | --sh=*)
1532 sharedstatedir=$ac_optarg ;;
1533
1534 -site | --site | --sit)
1535 ac_prev=site ;;
1536 -site=* | --site=* | --sit=*)
1537 site=$ac_optarg ;;
1538
1539 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1540 ac_prev=srcdir ;;
1541 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1542 srcdir=$ac_optarg ;;
1543
1544 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1545 | --syscon | --sysco | --sysc | --sys | --sy)
1546 ac_prev=sysconfdir ;;
1547 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1548 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1549 sysconfdir=$ac_optarg ;;
1550
1551 -target | --target | --targe | --targ | --tar | --ta | --t)
1552 ac_prev=target_alias ;;
1553 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1554 target_alias=$ac_optarg ;;
1555
1556 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1557 verbose=yes ;;
1558
1559 -version | --version | --versio | --versi | --vers | -V)
1560 ac_init_version=: ;;
1561
1562 -with-* | --with-*)
1563 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1564 # Reject names that are not valid shell variable names.
1565 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566 as_fn_error $? "invalid package name: $ac_useropt"
1567 ac_useropt_orig=$ac_useropt
1568 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569 case $ac_user_opts in
1570 *"
1571"with_$ac_useropt"
1572"*) ;;
1573 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1574 ac_unrecognized_sep=', ';;
1575 esac
1576 eval with_$ac_useropt=\$ac_optarg ;;
1577
1578 -without-* | --without-*)
1579 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1580 # Reject names that are not valid shell variable names.
1581 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582 as_fn_error $? "invalid package name: $ac_useropt"
1583 ac_useropt_orig=$ac_useropt
1584 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585 case $ac_user_opts in
1586 *"
1587"with_$ac_useropt"
1588"*) ;;
1589 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1590 ac_unrecognized_sep=', ';;
1591 esac
1592 eval with_$ac_useropt=no ;;
1593
1594 --x)
1595 # Obsolete; use --with-x.
1596 with_x=yes ;;
1597
1598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1599 | --x-incl | --x-inc | --x-in | --x-i)
1600 ac_prev=x_includes ;;
1601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1603 x_includes=$ac_optarg ;;
1604
1605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1607 ac_prev=x_libraries ;;
1608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1610 x_libraries=$ac_optarg ;;
1611
1612 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1613Try \`$0 --help' for more information"
1614 ;;
1615
1616 *=*)
1617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1618 # Reject names that are not valid shell variable names.
1619 case $ac_envvar in #(
1620 '' | [0-9]* | *[!_$as_cr_alnum]* )
1621 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1622 esac
1623 eval $ac_envvar=\$ac_optarg
1624 export $ac_envvar ;;
1625
1626 *)
1627 # FIXME: should be removed in autoconf 3.0.
1628 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1630 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1631 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1632 ;;
1633
1634 esac
1635done
1636
1637if test -n "$ac_prev"; then
1638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1639 as_fn_error $? "missing argument to $ac_option"
1640fi
1641
1642if test -n "$ac_unrecognized_opts"; then
1643 case $enable_option_checking in
1644 no) ;;
1645 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1646 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1647 esac
1648fi
1649
1650# Check all directory arguments for consistency.
1651for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1652 datadir sysconfdir sharedstatedir localstatedir includedir \
1653 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1654 libdir localedir mandir runstatedir
1655do
1656 eval ac_val=\$$ac_var
1657 # Remove trailing slashes.
1658 case $ac_val in
1659 */ )
1660 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1661 eval $ac_var=\$ac_val;;
1662 esac
1663 # Be sure to have absolute directory names.
1664 case $ac_val in
1665 [\\/$]* | ?:[\\/]* ) continue;;
1666 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1667 esac
1668 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1669done
1670
1671# There might be people who depend on the old broken behavior: `$host'
1672# used to hold the argument of --host etc.
1673# FIXME: To remove some day.
1674build=$build_alias
1675host=$host_alias
1676target=$target_alias
1677
1678# FIXME: To remove some day.
1679if test "x$host_alias" != x; then
1680 if test "x$build_alias" = x; then
1681 cross_compiling=maybe
1682 elif test "x$build_alias" != "x$host_alias"; then
1683 cross_compiling=yes
1684 fi
1685fi
1686
1687ac_tool_prefix=
1688test -n "$host_alias" && ac_tool_prefix=$host_alias-
1689
1690test "$silent" = yes && exec 6>/dev/null
1691
1692
1693ac_pwd=`pwd` && test -n "$ac_pwd" &&
1694ac_ls_di=`ls -di .` &&
1695ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1696 as_fn_error $? "working directory cannot be determined"
1697test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1698 as_fn_error $? "pwd does not report name of working directory"
1699
1700
1701# Find the source files, if location was not specified.
1702if test -z "$srcdir"; then
1703 ac_srcdir_defaulted=yes
1704 # Try the directory containing this script, then the parent directory.
1705 ac_confdir=`$as_dirname -- "$as_myself" ||
1706$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1707 X"$as_myself" : 'X\(//\)[^/]' \| \
1708 X"$as_myself" : 'X\(//\)$' \| \
1709 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1710$as_echo X"$as_myself" |
1711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\/\)[^/].*/{
1716 s//\1/
1717 q
1718 }
1719 /^X\(\/\/\)$/{
1720 s//\1/
1721 q
1722 }
1723 /^X\(\/\).*/{
1724 s//\1/
1725 q
1726 }
1727 s/.*/./; q'`
1728 srcdir=$ac_confdir
1729 if test ! -r "$srcdir/$ac_unique_file"; then
1730 srcdir=..
1731 fi
1732else
1733 ac_srcdir_defaulted=no
1734fi
1735if test ! -r "$srcdir/$ac_unique_file"; then
1736 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1737 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1738fi
1739ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1740ac_abs_confdir=`(
1741 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1742 pwd)`
1743# When building in place, set srcdir=.
1744if test "$ac_abs_confdir" = "$ac_pwd"; then
1745 srcdir=.
1746fi
1747# Remove unnecessary trailing slashes from srcdir.
1748# Double slashes in file names in object file debugging info
1749# mess up M-x gdb in Emacs.
1750case $srcdir in
1751*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1752esac
1753for ac_var in $ac_precious_vars; do
1754 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_env_${ac_var}_value=\$${ac_var}
1756 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1757 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1758done
1759
1760#
1761# Report the --help message.
1762#
1763if test "$ac_init_help" = "long"; then
1764 # Omit some internal or obsolete options to make the list less imposing.
1765 # This message is too long to be a string in the A/UX 3.1 sh.
1766 cat <<_ACEOF
1767\`configure' configures curl - to adapt to many kinds of systems.
1768
1769Usage: $0 [OPTION]... [VAR=VALUE]...
1770
1771To assign environment variables (e.g., CC, CFLAGS...), specify them as
1772VAR=VALUE. See below for descriptions of some of the useful variables.
1773
1774Defaults for the options are specified in brackets.
1775
1776Configuration:
1777 -h, --help display this help and exit
1778 --help=short display options specific to this package
1779 --help=recursive display the short help of all the included packages
1780 -V, --version display version information and exit
1781 -q, --quiet, --silent do not print \`checking ...' messages
1782 --cache-file=FILE cache test results in FILE [disabled]
1783 -C, --config-cache alias for \`--cache-file=config.cache'
1784 -n, --no-create do not create output files
1785 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1786
1787Installation directories:
1788 --prefix=PREFIX install architecture-independent files in PREFIX
1789 [$ac_default_prefix]
1790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1791 [PREFIX]
1792
1793By default, \`make install' will install all the files in
1794\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1795an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1796for instance \`--prefix=\$HOME'.
1797
1798For better control, use the options below.
1799
1800Fine tuning of the installation directories:
1801 --bindir=DIR user executables [EPREFIX/bin]
1802 --sbindir=DIR system admin executables [EPREFIX/sbin]
1803 --libexecdir=DIR program executables [EPREFIX/libexec]
1804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1807 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1808 --libdir=DIR object code libraries [EPREFIX/lib]
1809 --includedir=DIR C header files [PREFIX/include]
1810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1811 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1812 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1813 --infodir=DIR info documentation [DATAROOTDIR/info]
1814 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1815 --mandir=DIR man documentation [DATAROOTDIR/man]
1816 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1817 --htmldir=DIR html documentation [DOCDIR]
1818 --dvidir=DIR dvi documentation [DOCDIR]
1819 --pdfdir=DIR pdf documentation [DOCDIR]
1820 --psdir=DIR ps documentation [DOCDIR]
1821_ACEOF
1822
1823 cat <<\_ACEOF
1824
1825Program names:
1826 --program-prefix=PREFIX prepend PREFIX to installed program names
1827 --program-suffix=SUFFIX append SUFFIX to installed program names
1828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833_ACEOF
1834fi
1835
1836if test -n "$ac_init_help"; then
1837 case $ac_init_help in
1838 short | recursive ) echo "Configuration of curl -:";;
1839 esac
1840 cat <<\_ACEOF
1841
1842Optional Features:
1843 --disable-option-checking ignore unrecognized --enable/--with options
1844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1846 --enable-maintainer-mode
1847 enable make rules and dependencies not useful (and
1848 sometimes confusing) to the casual installer
1849 --enable-silent-rules less verbose build output (undo: "make V=1")
1850 --disable-silent-rules verbose build output (undo: "make V=0")
1851 --enable-debug Enable debug build options
1852 --disable-debug Disable debug build options
1853 --enable-optimize Enable compiler optimizations
1854 --disable-optimize Disable compiler optimizations
1855 --enable-warnings Enable strict compiler warnings
1856 --disable-warnings Disable strict compiler warnings
1857 --enable-werror Enable compiler warnings as errors
1858 --disable-werror Disable compiler warnings as errors
1859 --enable-curldebug Enable curl debug memory tracking
1860 --disable-curldebug Disable curl debug memory tracking
1861 --enable-symbol-hiding Enable hiding of library internal symbols
1862 --disable-symbol-hiding Disable hiding of library internal symbols
1863 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1864 --disable-hidden-symbols
1865 To be deprecated, use --disable-symbol-hiding
1866 --enable-ares[=PATH] Enable c-ares for DNS lookups
1867 --disable-ares Disable c-ares for DNS lookups
1868 --disable-rt disable dependency on -lrt
1869 --enable-code-coverage Whether to enable code coverage support
1870 --enable-dependency-tracking
1871 do not reject slow dependency extractors
1872 --disable-dependency-tracking
1873 speeds up one-time build
1874 --disable-largefile omit support for large files
1875 --enable-shared[=PKGS] build shared libraries [default=yes]
1876 --enable-static[=PKGS] build static libraries [default=yes]
1877 --enable-fast-install[=PKGS]
1878 optimize for fast installation [default=yes]
1879 --disable-libtool-lock avoid locking (might break parallel builds)
1880 --enable-http Enable HTTP support
1881 --disable-http Disable HTTP support
1882 --enable-ftp Enable FTP support
1883 --disable-ftp Disable FTP support
1884 --enable-file Enable FILE support
1885 --disable-file Disable FILE support
1886 --enable-ldap Enable LDAP support
1887 --disable-ldap Disable LDAP support
1888 --enable-ldaps Enable LDAPS support
1889 --disable-ldaps Disable LDAPS support
1890 --enable-rtsp Enable RTSP support
1891 --disable-rtsp Disable RTSP support
1892 --enable-proxy Enable proxy support
1893 --disable-proxy Disable proxy support
1894 --enable-dict Enable DICT support
1895 --disable-dict Disable DICT support
1896 --enable-telnet Enable TELNET support
1897 --disable-telnet Disable TELNET support
1898 --enable-tftp Enable TFTP support
1899 --disable-tftp Disable TFTP support
1900 --enable-pop3 Enable POP3 support
1901 --disable-pop3 Disable POP3 support
1902 --enable-imap Enable IMAP support
1903 --disable-imap Disable IMAP support
1904 --enable-smb Enable SMB/CIFS support
1905 --disable-smb Disable SMB/CIFS support
1906 --enable-smtp Enable SMTP support
1907 --disable-smtp Disable SMTP support
1908 --enable-gopher Enable Gopher support
1909 --disable-gopher Disable Gopher support
1910 --enable-manual Enable built-in manual
1911 --disable-manual Disable built-in manual
1912 --enable-libcurl-option Enable --libcurl C code generation support
1913 --disable-libcurl-option
1914 Disable --libcurl C code generation support
1915 --enable-libgcc use libgcc when linking
1916 --enable-ipv6 Enable IPv6 (with IPv4) support
1917 --disable-ipv6 Disable IPv6 support
1918 --enable-versioned-symbols
1919 Enable versioned symbols in shared library
1920 --disable-versioned-symbols
1921 Disable versioned symbols in shared library
1922 --enable-threaded-resolver
1923 Enable threaded resolver
1924 --disable-threaded-resolver
1925 Disable threaded resolver
1926 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1927 --disable-pthreads Disable POSIX threads
1928 --enable-verbose Enable verbose strings
1929 --disable-verbose Disable verbose strings
1930 --enable-sspi Enable SSPI
1931 --disable-sspi Disable SSPI
1932 --enable-crypto-auth Enable cryptographic authentication
1933 --disable-crypto-auth Disable cryptographic authentication
1934 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1935 helper, where FILE is ntlm_auth's absolute filename
1936 (default: /usr/bin/ntlm_auth)
1937 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1938 helper
1939 --enable-tls-srp Enable TLS-SRP authentication
1940 --disable-tls-srp Disable TLS-SRP authentication
1941 --enable-unix-sockets Enable Unix domain sockets
1942 --disable-unix-sockets Disable Unix domain sockets
1943 --enable-cookies Enable cookies support
1944 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001945
1946Optional Packages:
1947 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1948 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1949 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1950 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1951 both]
1952 --with-aix-soname=aix|svr4|both
1953 shared library versioning (aka "SONAME") variant to
1954 provide on AIX, [default=aix].
1955 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1956 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1957 compiler's sysroot if not specified).
1958 --with-zlib=PATH search for zlib in PATH
1959 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001960 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1961 installation; when possible, set the PKG_CONFIG_PATH
1962 environment variable instead of using this option
1963 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001964 --with-ldap-lib=libname Specify name of ldap lib file
1965 --with-lber-lib=libname Specify name of lber lib file
1966 --with-gssapi-includes=DIR
1967 Specify location of GSS-API headers
1968 --with-gssapi-libs=DIR Specify location of GSS-API libs
1969 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001970 --with-default-ssl-backend=NAME
1971 Use NAME as default SSL backend
1972 --without-default-ssl-backend
1973 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001974 --with-winssl enable Windows native SSL/TLS
1975 --without-winssl disable Windows native SSL/TLS
1976 --with-darwinssl enable Apple OS native SSL/TLS
1977 --without-darwinssl disable Apple OS native SSL/TLS
1978 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1979 installation (default: /usr/local/ssl); when
1980 possible, set the PKG_CONFIG_PATH environment
1981 variable instead of using this option
1982 --without-ssl disable OpenSSL
1983 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1984 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1985 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1986 installation root
1987 --without-gnutls disable GnuTLS detection
1988 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1989 installation root
1990 --without-polarssl disable PolarSSL detection
1991 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1992 installation root
1993 --without-mbedtls disable mbedTLS detection
1994 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1995 installation root (default: system lib default)
1996 --without-cyassl disable CyaSSL detection
1997 --with-nss=PATH where to look for NSS, PATH points to the
1998 installation root
1999 --without-nss disable NSS detection
2000 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2001 installation prefix (default: /usr/local). Ignored
2002 if another SSL engine is selected.
2003 --without-axtls disable axTLS
2004 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2005 /etc/ca-bundle.crt)
2006 --without-ca-bundle Don't use a default CA bundle
2007 --with-ca-path=DIRECTORY
2008 Path to a directory containing CA certificates
2009 stored individually, with their filenames in a hash
2010 format. This option can be used with OpenSSL, GnuTLS
2011 and PolarSSL backends. Refer to OpenSSL c_rehash for
2012 details. (example: /etc/certificates)
2013 --without-ca-path Don't use a default CA path
2014 --with-ca-fallback Use the built in CA store of the SSL library
2015 --without-ca-fallback Don't use the built in CA store of the SSL library
2016 --without-libpsl disable support for libpsl cookie checking
2017 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2018 installation root
2019 --without-libmetalink disable libmetalink detection
2020 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2021 LIBSSH2 installation; when possible, set the
2022 PKG_CONFIG_PATH environment variable instead of
2023 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002024 --with-libssh2 enable LIBSSH2
2025 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2026 installation; when possible, set the PKG_CONFIG_PATH
2027 environment variable instead of using this option
2028 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002029 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2030 LIBRTMP installation; when possible, set the
2031 PKG_CONFIG_PATH environment variable instead of
2032 using this option
2033 --without-librtmp disable LIBRTMP
2034 --with-winidn=PATH enable Windows native IDN
2035 --without-winidn disable Windows native IDN
2036 --with-libidn2=PATH Enable libidn2 usage
2037 --without-libidn2 Disable libidn2 usage
2038 --with-nghttp2=PATH Enable nghttp2 usage
2039 --without-nghttp2 Disable nghttp2 usage
2040 --with-zsh-functions-dir=PATH
2041 Install zsh completions to PATH
2042 --without-zsh-functions-dir
2043 Do not install zsh completions
2044
2045Some influential environment variables:
2046 CC C compiler command
2047 CFLAGS C compiler flags
2048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2049 nonstandard directory <lib dir>
2050 LIBS libraries to pass to the linker, e.g. -l<library>
2051 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2052 you have headers in a nonstandard directory <include dir>
2053 CPP C preprocessor
2054 LT_SYS_LIBRARY_PATH
2055 User-defined run-time library search path.
2056
2057Use these variables to override the choices made by `configure' or to help
2058it to find libraries and programs with nonstandard names/locations.
2059
2060Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2061_ACEOF
2062ac_status=$?
2063fi
2064
2065if test "$ac_init_help" = "recursive"; then
2066 # If there are subdirs, report their specific --help.
2067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2068 test -d "$ac_dir" ||
2069 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2070 continue
2071 ac_builddir=.
2072
2073case "$ac_dir" in
2074.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2075*)
2076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2077 # A ".." for each directory in $ac_dir_suffix.
2078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2079 case $ac_top_builddir_sub in
2080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2082 esac ;;
2083esac
2084ac_abs_top_builddir=$ac_pwd
2085ac_abs_builddir=$ac_pwd$ac_dir_suffix
2086# for backward compatibility:
2087ac_top_builddir=$ac_top_build_prefix
2088
2089case $srcdir in
2090 .) # We are building in place.
2091 ac_srcdir=.
2092 ac_top_srcdir=$ac_top_builddir_sub
2093 ac_abs_top_srcdir=$ac_pwd ;;
2094 [\\/]* | ?:[\\/]* ) # Absolute name.
2095 ac_srcdir=$srcdir$ac_dir_suffix;
2096 ac_top_srcdir=$srcdir
2097 ac_abs_top_srcdir=$srcdir ;;
2098 *) # Relative name.
2099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2100 ac_top_srcdir=$ac_top_build_prefix$srcdir
2101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2102esac
2103ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2104
2105 cd "$ac_dir" || { ac_status=$?; continue; }
2106 # Check for guested configure.
2107 if test -f "$ac_srcdir/configure.gnu"; then
2108 echo &&
2109 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2110 elif test -f "$ac_srcdir/configure"; then
2111 echo &&
2112 $SHELL "$ac_srcdir/configure" --help=recursive
2113 else
2114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2115 fi || ac_status=$?
2116 cd "$ac_pwd" || { ac_status=$?; break; }
2117 done
2118fi
2119
2120test -n "$ac_init_help" && exit $ac_status
2121if $ac_init_version; then
2122 cat <<\_ACEOF
2123curl configure -
2124generated by GNU Autoconf 2.69
2125
2126Copyright (C) 2012 Free Software Foundation, Inc.
2127This configure script is free software; the Free Software Foundation
2128gives unlimited permission to copy, distribute and modify it.
2129
2130Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2131This configure script may be copied, distributed and modified under the
2132terms of the curl license; see COPYING for more details
2133_ACEOF
2134 exit
2135fi
2136
2137## ------------------------ ##
2138## Autoconf initialization. ##
2139## ------------------------ ##
2140
2141# ac_fn_c_try_compile LINENO
2142# --------------------------
2143# Try to compile conftest.$ac_ext, and return whether this succeeded.
2144ac_fn_c_try_compile ()
2145{
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 rm -f conftest.$ac_objext
2148 if { { ac_try="$ac_compile"
2149case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152esac
2153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154$as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_compile") 2>conftest.err
2156 ac_status=$?
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2161 fi
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } && {
2164 test -z "$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2166 } && test -s conftest.$ac_objext; then :
2167 ac_retval=0
2168else
2169 $as_echo "$as_me: failed program was:" >&5
2170sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_retval=1
2173fi
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2176
2177} # ac_fn_c_try_compile
2178
2179# ac_fn_c_try_cpp LINENO
2180# ----------------------
2181# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2182ac_fn_c_try_cpp ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_cpp conftest.$ac_ext"
2186case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189esac
2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191$as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2193 ac_status=$?
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2198 fi
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } > conftest.i && {
2201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2202 test ! -s conftest.err
2203 }; then :
2204 ac_retval=0
2205else
2206 $as_echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 ac_retval=1
2210fi
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2213
2214} # ac_fn_c_try_cpp
2215
Alex Deymo486467e2017-12-19 19:04:07 +01002216# ac_fn_c_try_link LINENO
2217# -----------------------
2218# Try to link conftest.$ac_ext, and return whether this succeeded.
2219ac_fn_c_try_link ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2224case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229$as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2236 fi
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 test -x conftest$ac_exeext
2244 }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_retval=1
2251fi
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2259
2260} # ac_fn_c_try_link
2261
Elliott Hughes82be86d2017-09-20 17:00:17 -07002262# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2263# -------------------------------------------------------
2264# Tests whether HEADER exists and can be compiled using the include files in
2265# INCLUDES, setting the cache variable VAR accordingly.
2266ac_fn_c_check_header_compile ()
2267{
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270$as_echo_n "checking for $2... " >&6; }
2271if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276$4
2277#include <$2>
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280 eval "$3=yes"
2281else
2282 eval "$3=no"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291} # ac_fn_c_check_header_compile
2292
2293# ac_fn_c_try_run LINENO
2294# ----------------------
2295# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296# that executables *can* be run.
2297ac_fn_c_try_run ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2301case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304esac
2305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306$as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316$as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2318 ac_status=$?
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2321 ac_retval=0
2322else
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=$ac_status
2328fi
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2332
2333} # ac_fn_c_try_run
2334
Alex Deymo486467e2017-12-19 19:04:07 +01002335# ac_fn_c_check_func LINENO FUNC VAR
2336# ----------------------------------
2337# Tests whether FUNC exists, setting the cache variable VAR accordingly
2338ac_fn_c_check_func ()
2339{
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348
2349#define $2 innocuous_$2
2350#ifdef __STDC__
2351# include <limits.h>
2352#else
2353# include <assert.h>
2354#endif
2355#undef $2
2356#ifdef __cplusplus
2357extern "C"
2358#endif
2359char $2 ();
2360#if defined __stub_$2 || defined __stub___$2
2361choke me
2362#endif
2363
2364int main (void)
2365{
2366return $2 ();
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371if ac_fn_c_try_link "$LINENO"; then :
2372 eval "$3=yes"
2373else
2374 eval "$3=no"
2375fi
2376rm -f core conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2378fi
2379eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381$as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
2384} # ac_fn_c_check_func
2385
2386# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387# -------------------------------------------------------
2388# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389# the include files in INCLUDES and setting the cache variable VAR
2390# accordingly.
2391ac_fn_c_check_header_mongrel ()
2392{
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 if eval \${$3+:} false; then :
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396$as_echo_n "checking for $2... " >&6; }
2397if eval \${$3+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399fi
2400eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
2403else
2404 # Is the header compilable?
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406$as_echo_n "checking $2 usability... " >&6; }
2407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h. */
2409$4
2410#include <$2>
2411_ACEOF
2412if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_header_compiler=yes
2414else
2415 ac_header_compiler=no
2416fi
2417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419$as_echo "$ac_header_compiler" >&6; }
2420
2421# Is the header present?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423$as_echo_n "checking $2 presence... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426#include <$2>
2427_ACEOF
2428if ac_fn_c_try_cpp "$LINENO"; then :
2429 ac_header_preproc=yes
2430else
2431 ac_header_preproc=no
2432fi
2433rm -f conftest.err conftest.i conftest.$ac_ext
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435$as_echo "$ac_header_preproc" >&6; }
2436
2437# So? What about this header?
2438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2439 yes:no: )
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2444 ;;
2445 no:yes:* )
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2449$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2453$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456( $as_echo "## ----------------------------------------------------------------------- ##
2457## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2458## ----------------------------------------------------------------------- ##"
2459 ) | sed "s/^/$as_me: WARNING: /" >&2
2460 ;;
2461esac
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463$as_echo_n "checking for $2... " >&6; }
2464if eval \${$3+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466else
2467 eval "$3=\$ac_header_compiler"
2468fi
2469eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471$as_echo "$ac_res" >&6; }
2472fi
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474
2475} # ac_fn_c_check_header_mongrel
2476
Elliott Hughes82be86d2017-09-20 17:00:17 -07002477# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2478# --------------------------------------------
2479# Tries to find the compile-time value of EXPR in a program that includes
2480# INCLUDES, setting VAR accordingly. Returns whether the value could be
2481# computed
2482ac_fn_c_compute_int ()
2483{
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if test "$cross_compiling" = yes; then
2486 # Depending upon the size, compute the lo and hi bounds.
2487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488/* end confdefs.h. */
2489$4
2490int main (void)
2491{
2492static int test_array [1 - 2 * !(($2) >= 0)];
2493test_array [0] = 0;
2494return test_array [0];
2495
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500if ac_fn_c_try_compile "$LINENO"; then :
2501 ac_lo=0 ac_mid=0
2502 while :; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504/* end confdefs.h. */
2505$4
2506int main (void)
2507{
2508static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509test_array [0] = 0;
2510return test_array [0];
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 ac_hi=$ac_mid; break
2518else
2519 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2520 if test $ac_lo -le $ac_mid; then
2521 ac_lo= ac_hi=
2522 break
2523 fi
2524 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 done
2528else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530/* end confdefs.h. */
2531$4
2532int main (void)
2533{
2534static int test_array [1 - 2 * !(($2) < 0)];
2535test_array [0] = 0;
2536return test_array [0];
2537
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542if ac_fn_c_try_compile "$LINENO"; then :
2543 ac_hi=-1 ac_mid=-1
2544 while :; do
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546/* end confdefs.h. */
2547$4
2548int main (void)
2549{
2550static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2551test_array [0] = 0;
2552return test_array [0];
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_lo=$ac_mid; break
2560else
2561 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2562 if test $ac_mid -le $ac_hi; then
2563 ac_lo= ac_hi=
2564 break
2565 fi
2566 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 done
2570else
2571 ac_lo= ac_hi=
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576# Binary search between lo and hi bounds.
2577while test "x$ac_lo" != "x$ac_hi"; do
2578 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h. */
2581$4
2582int main (void)
2583{
2584static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2585test_array [0] = 0;
2586return test_array [0];
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593 ac_hi=$ac_mid
2594else
2595 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598done
2599case $ac_lo in #((
2600?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2601'') ac_retval=1 ;;
2602esac
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605/* end confdefs.h. */
2606$4
2607static long int longval () { return $2; }
2608static unsigned long int ulongval () { return $2; }
2609#include <stdio.h>
2610#include <stdlib.h>
2611int main (void)
2612{
2613
2614 FILE *f = fopen ("conftest.val", "w");
2615 if (! f)
2616 return 1;
2617 if (($2) < 0)
2618 {
2619 long int i = longval ();
2620 if (i != ($2))
2621 return 1;
2622 fprintf (f, "%ld", i);
2623 }
2624 else
2625 {
2626 unsigned long int i = ulongval ();
2627 if (i != ($2))
2628 return 1;
2629 fprintf (f, "%lu", i);
2630 }
2631 /* Do not output a trailing newline, as this causes \r\n confusion
2632 on some platforms. */
2633 return ferror (f) || fclose (f) != 0;
2634
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639if ac_fn_c_try_run "$LINENO"; then :
2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641else
2642 ac_retval=1
2643fi
2644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645 conftest.$ac_objext conftest.beam conftest.$ac_ext
2646rm -f conftest.val
2647
2648 fi
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 as_fn_set_status $ac_retval
2651
2652} # ac_fn_c_compute_int
2653
Elliott Hughes82be86d2017-09-20 17:00:17 -07002654# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2655# -------------------------------------------
2656# Tests whether TYPE exists after having included INCLUDES, setting cache
2657# variable VAR accordingly.
2658ac_fn_c_check_type ()
2659{
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662$as_echo_n "checking for $2... " >&6; }
2663if eval \${$3+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665else
2666 eval "$3=no"
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int main (void)
2671{
2672if (sizeof ($2))
2673 return 0;
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681$4
2682int main (void)
2683{
2684if (sizeof (($2)))
2685 return 0;
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690if ac_fn_c_try_compile "$LINENO"; then :
2691
2692else
2693 eval "$3=yes"
2694fi
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698fi
2699eval ac_res=\$$3
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701$as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2703
2704} # ac_fn_c_check_type
2705
2706# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2707# ----------------------------------------------------
2708# Tries to find if the field MEMBER exists in type AGGR, after including
2709# INCLUDES, setting cache variable VAR accordingly.
2710ac_fn_c_check_member ()
2711{
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2714$as_echo_n "checking for $2.$3... " >&6; }
2715if eval \${$4+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$5
2721int main (void)
2722{
2723static $2 ac_aggr;
2724if (ac_aggr.$3)
2725return 0;
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730if ac_fn_c_try_compile "$LINENO"; then :
2731 eval "$4=yes"
2732else
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734/* end confdefs.h. */
2735$5
2736int main (void)
2737{
2738static $2 ac_aggr;
2739if (sizeof ac_aggr.$3)
2740return 0;
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745if ac_fn_c_try_compile "$LINENO"; then :
2746 eval "$4=yes"
2747else
2748 eval "$4=no"
2749fi
2750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751fi
2752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753fi
2754eval ac_res=\$$4
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756$as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2758
2759} # ac_fn_c_check_member
2760cat >config.log <<_ACEOF
2761This file contains any messages produced by compilers while
2762running configure, to aid debugging if configure makes a mistake.
2763
2764It was created by curl $as_me -, which was
2765generated by GNU Autoconf 2.69. Invocation command line was
2766
2767 $ $0 $@
2768
2769_ACEOF
2770exec 5>>config.log
2771{
2772cat <<_ASUNAME
2773## --------- ##
2774## Platform. ##
2775## --------- ##
2776
2777hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781uname -v = `(uname -v) 2>/dev/null || echo unknown`
2782
2783/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2785
2786/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2787/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2788/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2790/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2791/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2792/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2793
2794_ASUNAME
2795
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 $as_echo "PATH: $as_dir"
2802 done
2803IFS=$as_save_IFS
2804
2805} >&5
2806
2807cat >&5 <<_ACEOF
2808
2809
2810## ----------- ##
2811## Core tests. ##
2812## ----------- ##
2813
2814_ACEOF
2815
2816
2817# Keep a trace of the command line.
2818# Strip out --no-create and --no-recursion so they do not pile up.
2819# Strip out --silent because we don't want to record it for future runs.
2820# Also quote any args containing shell meta-characters.
2821# Make two passes to allow for proper duplicate-argument suppression.
2822ac_configure_args=
2823ac_configure_args0=
2824ac_configure_args1=
2825ac_must_keep_next=false
2826for ac_pass in 1 2
2827do
2828 for ac_arg
2829 do
2830 case $ac_arg in
2831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833 | -silent | --silent | --silen | --sile | --sil)
2834 continue ;;
2835 *\'*)
2836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837 esac
2838 case $ac_pass in
2839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2840 2)
2841 as_fn_append ac_configure_args1 " '$ac_arg'"
2842 if test $ac_must_keep_next = true; then
2843 ac_must_keep_next=false # Got value, back to normal.
2844 else
2845 case $ac_arg in
2846 *=* | --config-cache | -C | -disable-* | --disable-* \
2847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849 | -with-* | --with-* | -without-* | --without-* | --x)
2850 case "$ac_configure_args0 " in
2851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852 esac
2853 ;;
2854 -* ) ac_must_keep_next=true ;;
2855 esac
2856 fi
2857 as_fn_append ac_configure_args " '$ac_arg'"
2858 ;;
2859 esac
2860 done
2861done
2862{ ac_configure_args0=; unset ac_configure_args0;}
2863{ ac_configure_args1=; unset ac_configure_args1;}
2864
2865# When interrupted or exit'd, cleanup temporary files, and complete
2866# config.log. We remove comments because anyway the quotes in there
2867# would cause problems or look ugly.
2868# WARNING: Use '\'' to represent an apostrophe within the trap.
2869# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870trap 'exit_status=$?
2871 # Save into config.log some information that might help in debugging.
2872 {
2873 echo
2874
2875 $as_echo "## ---------------- ##
2876## Cache variables. ##
2877## ---------------- ##"
2878 echo
2879 # The following way of writing the cache mishandles newlines in values,
2880(
2881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882 eval ac_val=\$$ac_var
2883 case $ac_val in #(
2884 *${as_nl}*)
2885 case $ac_var in #(
2886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888 esac
2889 case $ac_var in #(
2890 _ | IFS | as_nl) ;; #(
2891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892 *) { eval $ac_var=; unset $ac_var;} ;;
2893 esac ;;
2894 esac
2895 done
2896 (set) 2>&1 |
2897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898 *${as_nl}ac_space=\ *)
2899 sed -n \
2900 "s/'\''/'\''\\\\'\'''\''/g;
2901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902 ;; #(
2903 *)
2904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905 ;;
2906 esac |
2907 sort
2908)
2909 echo
2910
2911 $as_echo "## ----------------- ##
2912## Output variables. ##
2913## ----------------- ##"
2914 echo
2915 for ac_var in $ac_subst_vars
2916 do
2917 eval ac_val=\$$ac_var
2918 case $ac_val in
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920 esac
2921 $as_echo "$ac_var='\''$ac_val'\''"
2922 done | sort
2923 echo
2924
2925 if test -n "$ac_subst_files"; then
2926 $as_echo "## ------------------- ##
2927## File substitutions. ##
2928## ------------------- ##"
2929 echo
2930 for ac_var in $ac_subst_files
2931 do
2932 eval ac_val=\$$ac_var
2933 case $ac_val in
2934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2935 esac
2936 $as_echo "$ac_var='\''$ac_val'\''"
2937 done | sort
2938 echo
2939 fi
2940
2941 if test -s confdefs.h; then
2942 $as_echo "## ----------- ##
2943## confdefs.h. ##
2944## ----------- ##"
2945 echo
2946 cat confdefs.h
2947 echo
2948 fi
2949 test "$ac_signal" != 0 &&
2950 $as_echo "$as_me: caught signal $ac_signal"
2951 $as_echo "$as_me: exit $exit_status"
2952 } >&5
2953 rm -f core *.core core.conftest.* &&
2954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955 exit $exit_status
2956' 0
2957for ac_signal in 1 2 13 15; do
2958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2959done
2960ac_signal=0
2961
2962# confdefs.h avoids OS command line length limits that DEFS can exceed.
2963rm -f -r conftest* confdefs.h
2964
2965$as_echo "/* confdefs.h */" > confdefs.h
2966
2967# Predefined preprocessor variables.
2968
2969cat >>confdefs.h <<_ACEOF
2970#define PACKAGE_NAME "$PACKAGE_NAME"
2971_ACEOF
2972
2973cat >>confdefs.h <<_ACEOF
2974#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975_ACEOF
2976
2977cat >>confdefs.h <<_ACEOF
2978#define PACKAGE_VERSION "$PACKAGE_VERSION"
2979_ACEOF
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE_STRING "$PACKAGE_STRING"
2983_ACEOF
2984
2985cat >>confdefs.h <<_ACEOF
2986#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987_ACEOF
2988
2989cat >>confdefs.h <<_ACEOF
2990#define PACKAGE_URL "$PACKAGE_URL"
2991_ACEOF
2992
2993
2994# Let the site file select an alternate cache file if it wants to.
2995# Prefer an explicitly selected file to automatically selected ones.
2996ac_site_file1=NONE
2997ac_site_file2=NONE
2998if test -n "$CONFIG_SITE"; then
2999 # We do not want a PATH search for config.site.
3000 case $CONFIG_SITE in #((
3001 -*) ac_site_file1=./$CONFIG_SITE;;
3002 */*) ac_site_file1=$CONFIG_SITE;;
3003 *) ac_site_file1=./$CONFIG_SITE;;
3004 esac
3005elif test "x$prefix" != xNONE; then
3006 ac_site_file1=$prefix/share/config.site
3007 ac_site_file2=$prefix/etc/config.site
3008else
3009 ac_site_file1=$ac_default_prefix/share/config.site
3010 ac_site_file2=$ac_default_prefix/etc/config.site
3011fi
3012for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3013do
3014 test "x$ac_site_file" = xNONE && continue
3015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018 sed 's/^/| /' "$ac_site_file" >&5
3019 . "$ac_site_file" \
3020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022as_fn_error $? "failed to load site script $ac_site_file
3023See \`config.log' for more details" "$LINENO" 5; }
3024 fi
3025done
3026
3027if test -r "$cache_file"; then
3028 # Some versions of bash will fail to source /dev/null (special files
3029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032$as_echo "$as_me: loading cache $cache_file" >&6;}
3033 case $cache_file in
3034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035 *) . "./$cache_file";;
3036 esac
3037 fi
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040$as_echo "$as_me: creating cache $cache_file" >&6;}
3041 >$cache_file
3042fi
3043
3044# Check that the precious variables saved in the cache have kept the same
3045# value.
3046ac_cache_corrupted=false
3047for ac_var in $ac_precious_vars; do
3048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3049 eval ac_new_set=\$ac_env_${ac_var}_set
3050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3051 eval ac_new_val=\$ac_env_${ac_var}_value
3052 case $ac_old_set,$ac_new_set in
3053 set,)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3055$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3056 ac_cache_corrupted=: ;;
3057 ,set)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3059$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3061 ,);;
3062 *)
3063 if test "x$ac_old_val" != "x$ac_new_val"; then
3064 # differences in whitespace do not lead to failure.
3065 ac_old_val_w=`echo x $ac_old_val`
3066 ac_new_val_w=`echo x $ac_new_val`
3067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3069$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3070 ac_cache_corrupted=:
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3073$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3074 eval $ac_var=\$ac_old_val
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3077$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3079$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3080 fi;;
3081 esac
3082 # Pass precious variables to config.status.
3083 if test "$ac_new_set" = set; then
3084 case $ac_new_val in
3085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3086 *) ac_arg=$ac_var=$ac_new_val ;;
3087 esac
3088 case " $ac_configure_args " in
3089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3090 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3091 esac
3092 fi
3093done
3094if $ac_cache_corrupted; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3098$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3099 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3100fi
3101## -------------------- ##
3102## Main body of script. ##
3103## -------------------- ##
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
3111
3112
3113
3114
3115
3116
3117# using curl-override.m4
3118
3119
3120
3121
3122
3123ac_config_headers="$ac_config_headers lib/curl_config.h"
3124
3125
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3128$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3129 # Check whether --enable-maintainer-mode was given.
3130if test "${enable_maintainer_mode+set}" = set; then :
3131 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3132else
3133 USE_MAINTAINER_MODE=no
3134fi
3135
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3137$as_echo "$USE_MAINTAINER_MODE" >&6; }
3138 if test $USE_MAINTAINER_MODE = yes; then
3139 MAINTAINER_MODE_TRUE=
3140 MAINTAINER_MODE_FALSE='#'
3141else
3142 MAINTAINER_MODE_TRUE='#'
3143 MAINTAINER_MODE_FALSE=
3144fi
3145
3146 MAINT=$MAINTAINER_MODE_TRUE
3147
3148
3149# Check whether --enable-silent-rules was given.
3150if test "${enable_silent_rules+set}" = set; then :
3151 enableval=$enable_silent_rules;
3152fi
3153
3154case $enable_silent_rules in # (((
3155 yes) AM_DEFAULT_VERBOSITY=0;;
3156 no) AM_DEFAULT_VERBOSITY=1;;
3157 *) AM_DEFAULT_VERBOSITY=0;;
3158esac
3159am_make=${MAKE-make}
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3162if ${am_cv_make_support_nested_variables+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 if $as_echo 'TRUE=$(BAR$(V))
3166BAR0=false
3167BAR1=true
3168V=1
3169am__doit:
3170 @$(TRUE)
3171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172 am_cv_make_support_nested_variables=yes
3173else
3174 am_cv_make_support_nested_variables=no
3175fi
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3178$as_echo "$am_cv_make_support_nested_variables" >&6; }
3179if test $am_cv_make_support_nested_variables = yes; then
3180 AM_V='$(V)'
3181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3182else
3183 AM_V=$AM_DEFAULT_VERBOSITY
3184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3185fi
3186AM_BACKSLASH='\'
3187
3188
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3191$as_echo_n "checking whether to enable debug build options... " >&6; }
3192 OPT_DEBUG_BUILD="default"
3193 # Check whether --enable-debug was given.
3194if test "${enable_debug+set}" = set; then :
3195 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3196fi
3197
3198 case "$OPT_DEBUG_BUILD" in
3199 no)
3200 want_debug="no"
3201 ;;
3202 default)
3203 want_debug="no"
3204 ;;
3205 *)
3206 want_debug="yes"
3207 ;;
3208 esac
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3210$as_echo "$want_debug" >&6; }
3211
3212
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3214$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3215 OPT_COMPILER_OPTIMIZE="default"
3216 # Check whether --enable-optimize was given.
3217if test "${enable_optimize+set}" = set; then :
3218 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3219fi
3220
3221 case "$OPT_COMPILER_OPTIMIZE" in
3222 no)
3223 want_optimize="no"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226 ;;
3227 default)
3228 if test "$want_debug" = "yes"; then
3229 want_optimize="assume_no"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3231$as_echo "(assumed) no" >&6; }
3232 else
3233 want_optimize="assume_yes"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3235$as_echo "(assumed) yes" >&6; }
3236 fi
3237 ;;
3238 *)
3239 want_optimize="yes"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 ;;
3243 esac
3244
3245
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3247$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3248 OPT_COMPILER_WARNINGS="default"
3249 # Check whether --enable-warnings was given.
3250if test "${enable_warnings+set}" = set; then :
3251 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3252fi
3253
3254 case "$OPT_COMPILER_WARNINGS" in
3255 no)
3256 want_warnings="no"
3257 ;;
3258 default)
3259 want_warnings="$want_debug"
3260 ;;
3261 *)
3262 want_warnings="yes"
3263 ;;
3264 esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3266$as_echo "$want_warnings" >&6; }
3267
3268
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3270$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3271 OPT_COMPILER_WERROR="default"
3272 # Check whether --enable-werror was given.
3273if test "${enable_werror+set}" = set; then :
3274 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3275fi
3276
3277 case "$OPT_COMPILER_WERROR" in
3278 no)
3279 want_werror="no"
3280 ;;
3281 default)
3282 want_werror="no"
3283 ;;
3284 *)
3285 want_werror="yes"
3286 ;;
3287 esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3289$as_echo "$want_werror" >&6; }
3290
3291
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3293$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3294 OPT_CURLDEBUG_BUILD="default"
3295 # Check whether --enable-curldebug was given.
3296if test "${enable_curldebug+set}" = set; then :
3297 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3298fi
3299
3300 case "$OPT_CURLDEBUG_BUILD" in
3301 no)
3302 want_curldebug="no"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305 ;;
3306 default)
3307 if test "$want_debug" = "yes"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3309$as_echo "(assumed) yes" >&6; }
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 fi
3314 want_curldebug_assumed="yes"
3315 want_curldebug="$want_debug"
3316 ;;
3317 *)
3318 want_curldebug="yes"
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320$as_echo "yes" >&6; }
3321 ;;
3322 esac
3323
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3326$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3327 OPT_SYMBOL_HIDING="default"
3328 # Check whether --enable-symbol-hiding was given.
3329if test "${enable_symbol_hiding+set}" = set; then :
3330 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3331fi
3332
3333 # Check whether --enable-hidden-symbols was given.
3334if test "${enable_hidden_symbols+set}" = set; then :
3335 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3336fi
3337
3338 case "$OPT_SYMBOL_HIDING" in
3339 no)
3340 want_symbol_hiding="no"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343 ;;
3344 default)
3345 want_symbol_hiding="yes"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347$as_echo "yes" >&6; }
3348 ;;
3349 *)
3350 want_symbol_hiding="yes"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353 ;;
3354 esac
3355
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3358$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3359 OPT_ARES="default"
3360 # Check whether --enable-ares was given.
3361if test "${enable_ares+set}" = set; then :
3362 enableval=$enable_ares; OPT_ARES=$enableval
3363fi
3364
3365 case "$OPT_ARES" in
3366 no)
3367 want_ares="no"
3368 ;;
3369 default)
3370 want_ares="no"
3371 ;;
3372 *)
3373 want_ares="yes"
3374 if test -n "$enableval" && test "$enableval" != "yes"; then
3375 want_ares_path="$enableval"
3376 fi
3377 ;;
3378 esac
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3380$as_echo "$want_ares" >&6; }
3381
3382
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3384$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3385 OPT_RT="default"
3386 # Check whether --enable-rt was given.
3387if test "${enable_rt+set}" = set; then :
3388 enableval=$enable_rt; OPT_RT=$enableval
3389fi
3390
3391 case "$OPT_RT" in
3392 no)
3393 dontwant_rt="yes"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395$as_echo "yes" >&6; }
3396 ;;
3397 default)
3398 dontwant_rt="no"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3400$as_echo "(assumed no)" >&6; }
3401 ;;
3402 *)
3403 dontwant_rt="no"
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406 ;;
3407 esac
3408
3409
3410#
3411# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3412#
3413
3414if test -z "$xc_configure_preamble_result"; then
3415 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3416fi
3417
3418#
3419# Check that 'PATH_SEPARATOR' has already been set.
3420#
3421
3422if test -z "$xc_PATH_SEPARATOR"; then
3423 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3424fi
3425if test -z "$PATH_SEPARATOR"; then
3426 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3429$as_echo_n "checking for path separator... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3431$as_echo "$PATH_SEPARATOR" >&6; }
3432if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3434$as_echo_n "checking for initial path separator... " >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3436$as_echo "$xc_PATH_SEPARATOR" >&6; }
3437 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3438fi
3439
Elliott Hughes82be86d2017-09-20 17:00:17 -07003440
3441#
3442# save the configure arguments
3443#
3444CONFIGURE_OPTIONS="\"$ac_configure_args\""
3445
3446
3447CURL_CFLAG_EXTRAS=""
3448if test X"$want_werror" = Xyes; then
3449 CURL_CFLAG_EXTRAS="-Werror"
3450fi
3451
3452
3453if test -z "$SED"; then
3454 # Extract the first word of "sed", so it can be a program name with args.
3455set dummy sed; ac_word=$2
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457$as_echo_n "checking for $ac_word... " >&6; }
3458if ${ac_cv_path_SED+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460else
3461 case $SED in
3462 [\\/]* | ?:[\\/]*)
3463 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3464 ;;
3465 *)
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467as_dummy="$PATH:/usr/bin:/usr/local/bin"
3468for as_dir in $as_dummy
3469do
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478done
3479 done
3480IFS=$as_save_IFS
3481
3482 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3483 ;;
3484esac
3485fi
3486SED=$ac_cv_path_SED
3487if test -n "$SED"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3489$as_echo "$SED" >&6; }
3490else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493fi
3494
3495
3496 if test -z "$SED" || test "$SED" = "not_found"; then
3497 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3498 fi
3499fi
3500
3501
3502if test -z "$GREP"; then
3503 # Extract the first word of "grep", so it can be a program name with args.
3504set dummy grep; ac_word=$2
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506$as_echo_n "checking for $ac_word... " >&6; }
3507if ${ac_cv_path_GREP+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509else
3510 case $GREP in
3511 [\\/]* | ?:[\\/]*)
3512 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3513 ;;
3514 *)
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516as_dummy="$PATH:/usr/bin:/usr/local/bin"
3517for as_dir in $as_dummy
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527done
3528 done
3529IFS=$as_save_IFS
3530
3531 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3532 ;;
3533esac
3534fi
3535GREP=$ac_cv_path_GREP
3536if test -n "$GREP"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3538$as_echo "$GREP" >&6; }
3539else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545 if test -z "$GREP" || test "$GREP" = "not_found"; then
3546 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3547 fi
3548fi
3549
3550
3551if test -z "$EGREP"; then
3552 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3554$as_echo_n "checking for egrep... " >&6; }
3555 EGREP="$GREP -E"
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3557$as_echo "$EGREP" >&6; }
3558 else
3559 # Extract the first word of "egrep", so it can be a program name with args.
3560set dummy egrep; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; }
3563if ${ac_cv_path_EGREP+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565else
3566 case $EGREP in
3567 [\\/]* | ?:[\\/]*)
3568 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3569 ;;
3570 *)
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572as_dummy="$PATH:/usr/bin:/usr/local/bin"
3573for as_dir in $as_dummy
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583done
3584 done
3585IFS=$as_save_IFS
3586
3587 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3588 ;;
3589esac
3590fi
3591EGREP=$ac_cv_path_EGREP
3592if test -n "$EGREP"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3594$as_echo "$EGREP" >&6; }
3595else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598fi
3599
3600
3601 fi
3602fi
3603if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3604 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3605fi
3606
3607
3608if test -z "$AR"; then
3609 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3611set dummy ${ac_tool_prefix}ar; ac_word=$2
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613$as_echo_n "checking for $ac_word... " >&6; }
3614if ${ac_cv_path_AR+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616else
3617 case $AR in
3618 [\\/]* | ?:[\\/]*)
3619 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3620 ;;
3621 *)
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623as_dummy="$PATH:/usr/bin:/usr/local/bin"
3624for as_dir in $as_dummy
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634done
3635 done
3636IFS=$as_save_IFS
3637
3638 ;;
3639esac
3640fi
3641AR=$ac_cv_path_AR
3642if test -n "$AR"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3644$as_echo "$AR" >&6; }
3645else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648fi
3649
3650
3651fi
3652if test -z "$ac_cv_path_AR"; then
3653 ac_pt_AR=$AR
3654 # Extract the first word of "ar", so it can be a program name with args.
3655set dummy ar; ac_word=$2
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657$as_echo_n "checking for $ac_word... " >&6; }
3658if ${ac_cv_path_ac_pt_AR+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660else
3661 case $ac_pt_AR in
3662 [\\/]* | ?:[\\/]*)
3663 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3664 ;;
3665 *)
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667as_dummy="$PATH:/usr/bin:/usr/local/bin"
3668for as_dir in $as_dummy
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679 done
3680IFS=$as_save_IFS
3681
3682 ;;
3683esac
3684fi
3685ac_pt_AR=$ac_cv_path_ac_pt_AR
3686if test -n "$ac_pt_AR"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3688$as_echo "$ac_pt_AR" >&6; }
3689else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691$as_echo "no" >&6; }
3692fi
3693
3694 if test "x$ac_pt_AR" = x; then
3695 AR="not_found"
3696 else
3697 case $cross_compiling:$ac_tool_warned in
3698yes:)
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701ac_tool_warned=yes ;;
3702esac
3703 AR=$ac_pt_AR
3704 fi
3705else
3706 AR="$ac_cv_path_AR"
3707fi
3708
3709 if test -z "$AR" || test "$AR" = "not_found"; then
3710 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3711 fi
3712fi
3713
3714
3715
3716
3717CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3718
3719 xc_prog_cc_prev_IFS=$IFS
3720 xc_prog_cc_prev_LIBS=$LIBS
3721 xc_prog_cc_prev_CFLAGS=$CFLAGS
3722 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3723 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3724
3725
3726
3727 xc_bad_var_libs=no
3728 for xc_word in $LIBS; do
3729 case "$xc_word" in
3730 -l* | --library=*)
3731 :
3732 ;;
3733 *)
3734 xc_bad_var_libs=yes
3735 ;;
3736 esac
3737 done
3738 if test $xc_bad_var_libs = yes; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3740$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3742$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3743 fi
3744
3745
3746 xc_bad_var_ldflags=no
3747 for xc_word in $LDFLAGS; do
3748 case "$xc_word" in
3749 -D*)
3750 xc_bad_var_ldflags=yes
3751 ;;
3752 -U*)
3753 xc_bad_var_ldflags=yes
3754 ;;
3755 -I*)
3756 xc_bad_var_ldflags=yes
3757 ;;
3758 -l* | --library=*)
3759 xc_bad_var_ldflags=yes
3760 ;;
3761 esac
3762 done
3763 if test $xc_bad_var_ldflags = yes; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3765$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3766 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3767 for xc_word in $LDFLAGS; do
3768 case "$xc_word" in
3769 -D*)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3771$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3772 ;;
3773 -U*)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3775$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3776 ;;
3777 -I*)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3779$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3780 ;;
3781 -l* | --library=*)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3783$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3784 ;;
3785 esac
3786 done
3787 fi
3788
3789
3790 xc_bad_var_cppflags=no
3791 for xc_word in $CPPFLAGS; do
3792 case "$xc_word" in
3793 -rpath*)
3794 xc_bad_var_cppflags=yes
3795 ;;
3796 -L* | --library-path=*)
3797 xc_bad_var_cppflags=yes
3798 ;;
3799 -l* | --library=*)
3800 xc_bad_var_cppflags=yes
3801 ;;
3802 esac
3803 done
3804 if test $xc_bad_var_cppflags = yes; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3806$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3807 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3808 for xc_word in $CPPFLAGS; do
3809 case "$xc_word" in
3810 -rpath*)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3812$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3813 ;;
3814 -L* | --library-path=*)
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3816$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3817 ;;
3818 -l* | --library=*)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3820$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3821 ;;
3822 esac
3823 done
3824 fi
3825
3826
3827 xc_bad_var_cflags=no
3828 for xc_word in $CFLAGS; do
3829 case "$xc_word" in
3830 -D*)
3831 xc_bad_var_cflags=yes
3832 ;;
3833 -U*)
3834 xc_bad_var_cflags=yes
3835 ;;
3836 -I*)
3837 xc_bad_var_cflags=yes
3838 ;;
3839 -rpath*)
3840 xc_bad_var_cflags=yes
3841 ;;
3842 -L* | --library-path=*)
3843 xc_bad_var_cflags=yes
3844 ;;
3845 -l* | --library=*)
3846 xc_bad_var_cflags=yes
3847 ;;
3848 esac
3849 done
3850 if test $xc_bad_var_cflags = yes; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3852$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3853 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3854 for xc_word in $CFLAGS; do
3855 case "$xc_word" in
3856 -D*)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3858$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3859 ;;
3860 -U*)
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3862$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3863 ;;
3864 -I*)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3866$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3867 ;;
3868 -rpath*)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3870$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3871 ;;
3872 -L* | --library-path=*)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3874$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3875 ;;
3876 -l* | --library=*)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3878$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3879 ;;
3880 esac
3881 done
3882 fi
3883
3884 if test $xc_bad_var_libs = yes ||
3885 test $xc_bad_var_cflags = yes ||
3886 test $xc_bad_var_ldflags = yes ||
3887 test $xc_bad_var_cppflags = yes; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3889$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3890 fi
3891
3892ac_aux_dir=
3893for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3894 if test -f "$ac_dir/install-sh"; then
3895 ac_aux_dir=$ac_dir
3896 ac_install_sh="$ac_aux_dir/install-sh -c"
3897 break
3898 elif test -f "$ac_dir/install.sh"; then
3899 ac_aux_dir=$ac_dir
3900 ac_install_sh="$ac_aux_dir/install.sh -c"
3901 break
3902 elif test -f "$ac_dir/shtool"; then
3903 ac_aux_dir=$ac_dir
3904 ac_install_sh="$ac_aux_dir/shtool install -c"
3905 break
3906 fi
3907done
3908if test -z "$ac_aux_dir"; then
3909 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910fi
3911
3912# These three variables are undocumented and unsupported,
3913# and are intended to be withdrawn in a future Autoconf release.
3914# They can cause serious problems if a builder's source tree is in a directory
3915# whose full name contains unusual characters.
3916ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3917ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3918ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3919
3920
3921# Find a good install program. We prefer a C program (faster),
3922# so one script is as good as another. But avoid the broken or
3923# incompatible versions:
3924# SysV /etc/install, /usr/sbin/install
3925# SunOS /usr/etc/install
3926# IRIX /sbin/install
3927# AIX /bin/install
3928# AmigaOS /C/install, which installs bootblocks on floppy discs
3929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3932# OS/2's system install, which has a completely different semantic
3933# ./install, which can be erroneously created by make from ./install.sh.
3934# Reject install programs that cannot install multiple files.
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3936$as_echo_n "checking for a BSD-compatible install... " >&6; }
3937if test -z "$INSTALL"; then
3938if ${ac_cv_path_install+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 # Account for people who put trailing slashes in PATH elements.
3947case $as_dir/ in #((
3948 ./ | .// | /[cC]/* | \
3949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3950 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3951 /usr/ucb/* ) ;;
3952 *)
3953 # OSF1 and SCO ODT 3.0 have their own names for install.
3954 # Don't use installbsd from OSF since it installs stuff as root
3955 # by default.
3956 for ac_prog in ginstall scoinst install; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3959 if test $ac_prog = install &&
3960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3961 # AIX install. It has an incompatible calling convention.
3962 :
3963 elif test $ac_prog = install &&
3964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965 # program-specific install script used by HP pwplus--don't use.
3966 :
3967 else
3968 rm -rf conftest.one conftest.two conftest.dir
3969 echo one > conftest.one
3970 echo two > conftest.two
3971 mkdir conftest.dir
3972 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3973 test -s conftest.one && test -s conftest.two &&
3974 test -s conftest.dir/conftest.one &&
3975 test -s conftest.dir/conftest.two
3976 then
3977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3978 break 3
3979 fi
3980 fi
3981 fi
3982 done
3983 done
3984 ;;
3985esac
3986
3987 done
3988IFS=$as_save_IFS
3989
3990rm -rf conftest.one conftest.two conftest.dir
3991
3992fi
3993 if test "${ac_cv_path_install+set}" = set; then
3994 INSTALL=$ac_cv_path_install
3995 else
3996 # As a last resort, use the slow shell script. Don't cache a
3997 # value for INSTALL within a source directory, because that will
3998 # break other packages using the cache if that directory is
3999 # removed, or if the value is a relative name.
4000 INSTALL=$ac_install_sh
4001 fi
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4004$as_echo "$INSTALL" >&6; }
4005
4006# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4007# It thinks the first close brace ends the variable substitution.
4008test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4009
4010test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4011
4012test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4013
4014# Expand $ac_aux_dir to an absolute path.
4015am_aux_dir=`cd "$ac_aux_dir" && pwd`
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
4027if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
4045 done
4046IFS=$as_save_IFS
4047
4048fi
4049fi
4050CC=$ac_cv_prog_CC
4051if test -n "$CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053$as_echo "$CC" >&6; }
4054else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059
4060fi
4061if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064set dummy gcc; ac_word=$2
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
4067if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069else
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084done
4085 done
4086IFS=$as_save_IFS
4087
4088fi
4089fi
4090ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093$as_echo "$ac_ct_CC" >&6; }
4094else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103yes:)
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106ac_tool_warned=yes ;;
4107esac
4108 CC=$ac_ct_CC
4109 fi
4110else
4111 CC="$ac_cv_prog_CC"
4112fi
4113
4114if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}cc; ac_word=$2
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138 done
4139IFS=$as_save_IFS
4140
4141fi
4142fi
4143CC=$ac_cv_prog_CC
4144if test -n "$CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146$as_echo "$CC" >&6; }
4147else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151
4152
4153 fi
4154fi
4155if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157set dummy cc; ac_word=$2
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165else
4166 ac_prog_rejected=no
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4176 continue
4177 fi
4178 ac_cv_prog_CC="cc"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196 fi
4197fi
4198fi
4199fi
4200CC=$ac_cv_prog_CC
4201if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203$as_echo "$CC" >&6; }
4204else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
4210fi
4211if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in cl.exe
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
4219if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224else
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236done
4237 done
4238IFS=$as_save_IFS
4239
4240fi
4241fi
4242CC=$ac_cv_prog_CC
4243if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245$as_echo "$CC" >&6; }
4246else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250
4251
4252 test -n "$CC" && break
4253 done
4254fi
4255if test -z "$CC"; then
4256 ac_ct_CC=$CC
4257 for ac_prog in cl.exe
4258do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260set dummy $ac_prog; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CC="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280done
4281 done
4282IFS=$as_save_IFS
4283
4284fi
4285fi
4286ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287if test -n "$ac_ct_CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289$as_echo "$ac_ct_CC" >&6; }
4290else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296 test -n "$ac_ct_CC" && break
4297done
4298
4299 if test "x$ac_ct_CC" = x; then
4300 CC=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
4307esac
4308 CC=$ac_ct_CC
4309 fi
4310fi
4311
4312fi
4313
4314
4315test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317as_fn_error $? "no acceptable C compiler found in \$PATH
4318See \`config.log' for more details" "$LINENO" 5; }
4319
4320# Provide some information about the compiler.
4321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322set X $ac_compile
4323ac_compiler=$2
4324for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331$as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343done
4344
4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h. */
4347
4348int main (void)
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355ac_clean_files_save=$ac_clean_files
4356ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4357# Try to create an executable without -o first, disregard a.out.
4358# It will help us diagnose broken compilers, and finding out an intuition
4359# of exeext.
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361$as_echo_n "checking whether the C compiler works... " >&6; }
4362ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4363
4364# The possible output files:
4365ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4366
4367ac_rmfiles=
4368for ac_file in $ac_files
4369do
4370 case $ac_file in
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4373 esac
4374done
4375rm -f $ac_rmfiles
4376
4377if { { ac_try="$ac_link_default"
4378case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383$as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_link_default") 2>&5
4385 ac_status=$?
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; then :
4388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4389# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4390# in a Makefile. We should not override ac_cv_exeext if it was cached,
4391# so that the user can short-circuit this test for compilers unknown to
4392# Autoconf.
4393for ac_file in $ac_files ''
4394do
4395 test -f "$ac_file" || continue
4396 case $ac_file in
4397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4398 ;;
4399 [ab].out )
4400 # We found the default executable, but exeext='' is most
4401 # certainly right.
4402 break;;
4403 *.* )
4404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4405 then :; else
4406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4407 fi
4408 # We set ac_cv_exeext here because the later test for it is not
4409 # safe: cross compilers may not add the suffix if given an `-o'
4410 # argument, so we may need to know it at that point already.
4411 # Even if this section looks crufty: it has the advantage of
4412 # actually working.
4413 break;;
4414 * )
4415 break;;
4416 esac
4417done
4418test "$ac_cv_exeext" = no && ac_cv_exeext=
4419
4420else
4421 ac_file=''
4422fi
4423if test -z "$ac_file"; then :
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425$as_echo "no" >&6; }
4426$as_echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
4429{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431as_fn_error 77 "C compiler cannot create executables
4432See \`config.log' for more details" "$LINENO" 5; }
4433else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4435$as_echo "yes" >&6; }
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4438$as_echo_n "checking for C compiler default output file name... " >&6; }
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4440$as_echo "$ac_file" >&6; }
4441ac_exeext=$ac_cv_exeext
4442
4443rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4444ac_clean_files=$ac_clean_files_save
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4446$as_echo_n "checking for suffix of executables... " >&6; }
4447if { { ac_try="$ac_link"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453$as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; then :
4458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4459# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4460# work properly (i.e., refer to `conftest.exe'), while it won't with
4461# `rm'.
4462for ac_file in conftest.exe conftest conftest.*; do
4463 test -f "$ac_file" || continue
4464 case $ac_file in
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4466 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 break;;
4468 * ) break;;
4469 esac
4470done
4471else
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4475See \`config.log' for more details" "$LINENO" 5; }
4476fi
4477rm -f conftest conftest$ac_cv_exeext
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4479$as_echo "$ac_cv_exeext" >&6; }
4480
4481rm -f conftest.$ac_ext
4482EXEEXT=$ac_cv_exeext
4483ac_exeext=$EXEEXT
4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h. */
4486#include <stdio.h>
4487int main (void)
4488{
4489FILE *f = fopen ("conftest.out", "w");
4490 return ferror (f) || fclose (f) != 0;
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496ac_clean_files="$ac_clean_files conftest.out"
4497# Check that the compiler produces executables we can run. If not, either
4498# the compiler is broken, or we cross compile.
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500$as_echo_n "checking whether we are cross compiling... " >&6; }
4501if test "$cross_compiling" != yes; then
4502 { { ac_try="$ac_link"
4503case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
4507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508$as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_link") 2>&5
4510 ac_status=$?
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 if { ac_try='./conftest$ac_cv_exeext'
4514 { { case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519$as_echo "$ac_try_echo"; } >&5
4520 (eval "$ac_try") 2>&5
4521 ac_status=$?
4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }; }; then
4524 cross_compiling=no
4525 else
4526 if test "$cross_compiling" = maybe; then
4527 cross_compiling=yes
4528 else
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531as_fn_error $? "cannot run C compiled programs.
4532If you meant to cross compile, use \`--host'.
4533See \`config.log' for more details" "$LINENO" 5; }
4534 fi
4535 fi
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4538$as_echo "$cross_compiling" >&6; }
4539
4540rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4541ac_clean_files=$ac_clean_files_save
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4543$as_echo_n "checking for suffix of object files... " >&6; }
4544if ${ac_cv_objext+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546else
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h. */
4549
4550int main (void)
4551{
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557rm -f conftest.o conftest.obj
4558if { { ac_try="$ac_compile"
4559case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562esac
4563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4564$as_echo "$ac_try_echo"; } >&5
4565 (eval "$ac_compile") 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568 test $ac_status = 0; }; then :
4569 for ac_file in conftest.o conftest.obj conftest.*; do
4570 test -f "$ac_file" || continue;
4571 case $ac_file in
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4574 break;;
4575 esac
4576done
4577else
4578 $as_echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583as_fn_error $? "cannot compute suffix of object files: cannot compile
4584See \`config.log' for more details" "$LINENO" 5; }
4585fi
4586rm -f conftest.$ac_cv_objext conftest.$ac_ext
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4589$as_echo "$ac_cv_objext" >&6; }
4590OBJEXT=$ac_cv_objext
4591ac_objext=$OBJEXT
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4593$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4594if ${ac_cv_c_compiler_gnu+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h. */
4599
4600int main (void)
4601{
4602#ifndef __GNUC__
4603 choke me
4604#endif
4605
4606 ;
4607 return 0;
4608}
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_compiler_gnu=yes
4612else
4613 ac_compiler_gnu=no
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621if test $ac_compiler_gnu = yes; then
4622 GCC=yes
4623else
4624 GCC=
4625fi
4626ac_test_CFLAGS=${CFLAGS+set}
4627ac_save_CFLAGS=$CFLAGS
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629$as_echo_n "checking whether $CC accepts -g... " >&6; }
4630if ${ac_cv_prog_cc_g+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 ac_cv_prog_cc_g=no
4636 CFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
4639
4640int main (void)
4641{
4642
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_g=yes
4649else
4650 CFLAGS=""
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h. */
4653
4654int main (void)
4655{
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_compile "$LINENO"; then :
4662
4663else
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4665 CFLAGS="-g"
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h. */
4668
4669int main (void)
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_prog_cc_g=yes
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4687$as_echo "$ac_cv_prog_cc_g" >&6; }
4688if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4692 CFLAGS="-g -O2"
4693 else
4694 CFLAGS="-g"
4695 fi
4696else
4697 if test "$GCC" = yes; then
4698 CFLAGS="-O2"
4699 else
4700 CFLAGS=
4701 fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4704$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4705if ${ac_cv_prog_cc_c89+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707else
4708 ac_cv_prog_cc_c89=no
4709ac_save_CC=$CC
4710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h. */
4712#include <stdarg.h>
4713#include <stdio.h>
4714struct stat;
4715/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4716struct buf { int x; };
4717FILE * (*rcsopen) (struct buf *, struct stat *, int);
4718static char *e (p, i)
4719 char **p;
4720 int i;
4721{
4722 return p[i];
4723}
4724static char *f (char * (*g) (char **, int), char **p, ...)
4725{
4726 char *s;
4727 va_list v;
4728 va_start (v,p);
4729 s = g (p, va_arg (v,int));
4730 va_end (v);
4731 return s;
4732}
4733
4734/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4735 function prototypes and stuff, but not '\xHH' hex character constants.
4736 These don't provoke an error unfortunately, instead are silently treated
4737 as 'x'. The following induces an error, until -std is added to get
4738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4739 array size at least. It's necessary to write '\x00'==0 to get something
4740 that's true only with -std. */
4741int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4742
4743/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4744 inside strings and character constants. */
4745#define FOO(x) 'x'
4746int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4747
4748int test (int i, double x);
4749struct s1 {int (*f) (int a);};
4750struct s2 {int (*f) (double a);};
4751int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4752int argc;
4753char **argv;
4754int main (void)
4755{
4756return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4763do
4764 CC="$ac_save_CC $ac_arg"
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_prog_cc_c89=$ac_arg
4767fi
4768rm -f core conftest.err conftest.$ac_objext
4769 test "x$ac_cv_prog_cc_c89" != "xno" && break
4770done
4771rm -f conftest.$ac_ext
4772CC=$ac_save_CC
4773
4774fi
4775# AC_CACHE_VAL
4776case "x$ac_cv_prog_cc_c89" in
4777 x)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779$as_echo "none needed" >&6; } ;;
4780 xno)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782$as_echo "unsupported" >&6; } ;;
4783 *)
4784 CC="$CC $ac_cv_prog_cc_c89"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4787esac
4788if test "x$ac_cv_prog_cc_c89" != xno; then :
4789
4790fi
4791
4792ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4804$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4805if ${am_cv_prog_cc_c_o+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
4810
4811int main (void)
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818 # Make sure it works both with $CC and with simple cc.
4819 # Following AC_PROG_CC_C_O, we do the test twice because some
4820 # compilers refuse to overwrite an existing .o file with -o,
4821 # though they will create one.
4822 am_cv_prog_cc_c_o=yes
4823 for am_i in 1 2; do
4824 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4825 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } \
4829 && test -f conftest2.$ac_objext; then
4830 : OK
4831 else
4832 am_cv_prog_cc_c_o=no
4833 break
4834 fi
4835 done
4836 rm -f core conftest*
4837 unset am_i
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4840$as_echo "$am_cv_prog_cc_c_o" >&6; }
4841if test "$am_cv_prog_cc_c_o" != yes; then
4842 # Losing compiler, so override with the script.
4843 # FIXME: It is wrong to rewrite CC.
4844 # But if we don't then we get into trouble of one sort or another.
4845 # A longer-term fix would be to have automake use am__CC in this case,
4846 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4847 CC="$am_aux_dir/compile $CC"
4848fi
4849ac_ext=c
4850ac_cpp='$CPP $CPPFLAGS'
4851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856
4857ac_ext=c
4858ac_cpp='$CPP $CPPFLAGS'
4859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4863$as_echo_n "checking how to run the C preprocessor... " >&6; }
4864# On Suns, sometimes $CPP names a directory.
4865if test -n "$CPP" && test -d "$CPP"; then
4866 CPP=
4867fi
4868if test -z "$CPP"; then
4869 if ${ac_cv_prog_CPP+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871else
4872 # Double quotes because CPP needs to be expanded
4873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4874 do
4875 ac_preproc_ok=false
4876for ac_c_preproc_warn_flag in '' yes
4877do
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h. */
4886#ifdef __STDC__
4887# include <limits.h>
4888#else
4889# include <assert.h>
4890#endif
4891 Syntax error
4892_ACEOF
4893if ac_fn_c_try_cpp "$LINENO"; then :
4894
4895else
4896 # Broken: fails on valid input.
4897continue
4898fi
4899rm -f conftest.err conftest.i conftest.$ac_ext
4900
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h. */
4905#include <ac_nonexistent.h>
4906_ACEOF
4907if ac_fn_c_try_cpp "$LINENO"; then :
4908 # Broken: success on invalid input.
4909continue
4910else
4911 # Passes both tests.
4912ac_preproc_ok=:
4913break
4914fi
4915rm -f conftest.err conftest.i conftest.$ac_ext
4916
4917done
4918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4919rm -f conftest.i conftest.err conftest.$ac_ext
4920if $ac_preproc_ok; then :
4921 break
4922fi
4923
4924 done
4925 ac_cv_prog_CPP=$CPP
4926
4927fi
4928 CPP=$ac_cv_prog_CPP
4929else
4930 ac_cv_prog_CPP=$CPP
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4933$as_echo "$CPP" >&6; }
4934ac_preproc_ok=false
4935for ac_c_preproc_warn_flag in '' yes
4936do
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h. */
4945#ifdef __STDC__
4946# include <limits.h>
4947#else
4948# include <assert.h>
4949#endif
4950 Syntax error
4951_ACEOF
4952if ac_fn_c_try_cpp "$LINENO"; then :
4953
4954else
4955 # Broken: fails on valid input.
4956continue
4957fi
4958rm -f conftest.err conftest.i conftest.$ac_ext
4959
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h. */
4964#include <ac_nonexistent.h>
4965_ACEOF
4966if ac_fn_c_try_cpp "$LINENO"; then :
4967 # Broken: success on invalid input.
4968continue
4969else
4970 # Passes both tests.
4971ac_preproc_ok=:
4972break
4973fi
4974rm -f conftest.err conftest.i conftest.$ac_ext
4975
4976done
4977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978rm -f conftest.i conftest.err conftest.$ac_ext
4979if $ac_preproc_ok; then :
4980
4981else
4982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details" "$LINENO" 5; }
4986fi
4987
4988ac_ext=c
4989ac_cpp='$CPP $CPPFLAGS'
4990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994
4995 IFS=$xc_prog_cc_prev_IFS
4996 LIBS=$xc_prog_cc_prev_LIBS
4997 CFLAGS=$xc_prog_cc_prev_CFLAGS
4998 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4999 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5000
5001
5002
5003
5004
Elliott Hughes0128fe42018-02-27 14:57:55 -08005005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5007$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5008if ${ac_cv_path_SED+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012 for ac_i in 1 2 3 4 5 6 7; do
5013 ac_script="$ac_script$as_nl$ac_script"
5014 done
5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016 { ac_script=; unset ac_script;}
5017 if test -z "$SED"; then
5018 ac_path_SED_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in sed gsed; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_SED" || continue
5029# Check for GNU ac_path_SED and select it if it is found.
5030 # Check for GNU $ac_path_SED
5031case `"$ac_path_SED" --version 2>&1` in
5032*GNU*)
5033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5034*)
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5038 do
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo '' >> "conftest.nl"
5043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_SED_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_SED="$ac_path_SED"
5049 ac_path_SED_max=$ac_count
5050 fi
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055esac
5056
5057 $ac_path_SED_found && break 3
5058 done
5059 done
5060 done
5061IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_SED"; then
5063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5064 fi
5065else
5066 ac_cv_path_SED=$SED
5067fi
5068
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5071$as_echo "$ac_cv_path_SED" >&6; }
5072 SED="$ac_cv_path_SED"
5073 rm -f conftest.sed
5074
5075if test "$GCC" = "yes" ; then :
5076
5077
5078
5079 # allow to override gcov location
5080
5081# Check whether --with-gcov was given.
5082if test "${with_gcov+set}" = set; then :
5083 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
5084else
5085 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
5086fi
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
5090$as_echo_n "checking whether to build with code coverage support... " >&6; }
5091 # Check whether --enable-code-coverage was given.
5092if test "${enable_code_coverage+set}" = set; then :
5093 enableval=$enable_code_coverage;
5094else
5095 enable_code_coverage=no
5096fi
5097
5098
5099 if test x$enable_code_coverage = xyes; then
5100 CODE_COVERAGE_ENABLED_TRUE=
5101 CODE_COVERAGE_ENABLED_FALSE='#'
5102else
5103 CODE_COVERAGE_ENABLED_TRUE='#'
5104 CODE_COVERAGE_ENABLED_FALSE=
5105fi
5106
5107 CODE_COVERAGE_ENABLED=$enable_code_coverage
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5110$as_echo "$enable_code_coverage" >&6; }
5111
5112 if test "$enable_code_coverage" = "yes" ; then :
5113
5114 # check for gcov
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5117set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if ${ac_cv_prog_GCOV+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122else
5123 if test -n "$GCOV"; then
5124 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137done
5138 done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143GCOV=$ac_cv_prog_GCOV
5144if test -n "$GCOV"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5146$as_echo "$GCOV" >&6; }
5147else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152
5153fi
5154if test -z "$ac_cv_prog_GCOV"; then
5155 ac_ct_GCOV=$GCOV
5156 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5157set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162else
5163 if test -n "$ac_ct_GCOV"; then
5164 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181fi
5182fi
5183ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5184if test -n "$ac_ct_GCOV"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5186$as_echo "$ac_ct_GCOV" >&6; }
5187else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191
5192 if test "x$ac_ct_GCOV" = x; then
5193 GCOV=":"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196yes:)
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199ac_tool_warned=yes ;;
5200esac
5201 GCOV=$ac_ct_GCOV
5202 fi
5203else
5204 GCOV="$ac_cv_prog_GCOV"
5205fi
5206
5207 if test "X$GCOV" = "X:"; then :
5208 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5209fi
5210
5211
5212 if test "$GCC" = "no" ; then :
5213
5214 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5215
5216fi
5217
5218 # Extract the first word of "lcov", so it can be a program name with args.
5219set dummy lcov; ac_word=$2
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221$as_echo_n "checking for $ac_word... " >&6; }
5222if ${ac_cv_prog_LCOV+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224else
5225 if test -n "$LCOV"; then
5226 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_LCOV="lcov"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240 done
5241IFS=$as_save_IFS
5242
5243fi
5244fi
5245LCOV=$ac_cv_prog_LCOV
5246if test -n "$LCOV"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5248$as_echo "$LCOV" >&6; }
5249else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
5252fi
5253
5254
5255 # Extract the first word of "genhtml", so it can be a program name with args.
5256set dummy genhtml; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; }
5259if ${ac_cv_prog_GENHTML+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261else
5262 if test -n "$GENHTML"; then
5263 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_GENHTML="genhtml"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276done
5277 done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282GENHTML=$ac_cv_prog_GENHTML
5283if test -n "$GENHTML"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5285$as_echo "$GENHTML" >&6; }
5286else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290
5291
5292
5293 if test -z "$LCOV" ; then :
5294
5295 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5296
5297fi
5298
5299 if test -z "$GENHTML" ; then :
5300
5301 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5302
5303fi
5304
5305 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5306 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5307 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5308 CODE_COVERAGE_LIBS="-lgcov"
5309 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5310
5311
5312
5313
5314
5315
5316
5317 CODE_COVERAGE_RULES_CHECK='
5318 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5319 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5320'
5321 CODE_COVERAGE_RULES_CAPTURE='
5322 $(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)
5323 $(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)
5324 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5325 $(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)
5326 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5327'
5328 CODE_COVERAGE_RULES_CLEAN='
5329clean: code-coverage-clean
5330distclean: code-coverage-clean
5331code-coverage-clean:
5332 -$(LCOV) --directory $(top_builddir) -z
5333 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5334 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5335'
5336
5337else
5338
5339 CODE_COVERAGE_RULES_CHECK='
5340 @echo "Need to reconfigure with --enable-code-coverage"
5341'
5342 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5343 CODE_COVERAGE_RULES_CLEAN=''
5344
5345fi
5346
5347CODE_COVERAGE_RULES='
5348# Code coverage
5349#
5350# Optional:
5351# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5352# Multiple directories may be specified, separated by whitespace.
5353# (Default: $(top_builddir))
5354# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5355# by lcov for code coverage. (Default:
5356# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5357# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5358# reports to be created. (Default:
5359# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5360# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5361# set to 0 to disable it and leave empty to stay with the default.
5362# (Default: empty)
5363# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5364# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5365# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5366# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5367# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5368# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5369# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5370# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5371# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5372# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5373# lcov instance. (Default: empty)
5374# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5375# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5376# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5377# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5378# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5379# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5380# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5381#
5382# The generated report will be titled using the $(PACKAGE_NAME) and
5383# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5384# use the git-version-gen script, available online.
5385
5386# Optional variables
5387CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5388CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5389CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5390CODE_COVERAGE_BRANCH_COVERAGE ?=
5391CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5392--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5393CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5394CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5395CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5396CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5397CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5398CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5399CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5400$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5401--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5402CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5403CODE_COVERAGE_IGNORE_PATTERN ?=
5404
5405GITIGNOREFILES ?=
5406GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5407
5408code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5409code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5410code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5411 $(CODE_COVERAGE_OUTPUT_FILE);
5412code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5413code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5414code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5415 $(CODE_COVERAGE_IGNORE_PATTERN);
5416code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5417code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5418code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5419code_coverage_quiet = $(code_coverage_quiet_$(V))
5420code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5421code_coverage_quiet_0 = --quiet
5422
5423# sanitizes the test-name: replaces with underscores: dashes and dots
5424code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5425
5426# Use recursive makes in order to ignore errors during check
5427check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5428
5429# Capture code coverage data
5430code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5431
5432# Hook rule executed before code-coverage-capture, overridable by the user
5433code-coverage-capture-hook:
5434
5435'"$CODE_COVERAGE_RULES_CLEAN"'
5436
5437A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5438A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5439
5440.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5441'
5442
5443
5444
5445
5446else
5447 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5448 CODE_COVERAGE_ENABLED_TRUE='#'
5449
5450fi
5451
Elliott Hughes82be86d2017-09-20 17:00:17 -07005452am__api_version='1.15'
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5455$as_echo_n "checking whether build environment is sane... " >&6; }
5456# Reject unsafe characters in $srcdir or the absolute working directory
5457# name. Accept space and tab only in the latter.
5458am_lf='
5459'
5460case `pwd` in
5461 *[\\\"\#\$\&\'\`$am_lf]*)
5462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5463esac
5464case $srcdir in
5465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5466 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5467esac
5468
5469# Do 'set' in a subshell so we don't clobber the current shell's
5470# arguments. Must try -L first in case configure is actually a
5471# symlink; some systems play weird games with the mod time of symlinks
5472# (eg FreeBSD returns the mod time of the symlink's containing
5473# directory).
5474if (
5475 am_has_slept=no
5476 for am_try in 1 2; do
5477 echo "timestamp, slept: $am_has_slept" > conftest.file
5478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5479 if test "$*" = "X"; then
5480 # -L didn't work.
5481 set X `ls -t "$srcdir/configure" conftest.file`
5482 fi
5483 if test "$*" != "X $srcdir/configure conftest.file" \
5484 && test "$*" != "X conftest.file $srcdir/configure"; then
5485
5486 # If neither matched, then we have a broken ls. This can happen
5487 # if, for instance, CONFIG_SHELL is bash and it inherits a
5488 # broken ls alias from the environment. This has actually
5489 # happened. Such a system could not be considered "sane".
5490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5491 alias in your environment" "$LINENO" 5
5492 fi
5493 if test "$2" = conftest.file || test $am_try -eq 2; then
5494 break
5495 fi
5496 # Just in case.
5497 sleep 1
5498 am_has_slept=yes
5499 done
5500 test "$2" = conftest.file
5501 )
5502then
5503 # Ok.
5504 :
5505else
5506 as_fn_error $? "newly created file is older than distributed files!
5507Check your system clock" "$LINENO" 5
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510$as_echo "yes" >&6; }
5511# If we didn't sleep, we still need to ensure time stamps of config.status and
5512# generated files are strictly newer.
5513am_sleep_pid=
5514if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5515 ( sleep 1 ) &
5516 am_sleep_pid=$!
5517fi
5518
5519rm -f conftest.file
5520
5521test "$program_prefix" != NONE &&
5522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5523# Use a double $ so make ignores it.
5524test "$program_suffix" != NONE &&
5525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5526# Double any \ or $.
5527# By default was `s,x,x', remove it if useless.
5528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5530
5531if test x"${MISSING+set}" != xset; then
5532 case $am_aux_dir in
5533 *\ * | *\ *)
5534 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5535 *)
5536 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5537 esac
5538fi
5539# Use eval to expand $SHELL
5540if eval "$MISSING --is-lightweight"; then
5541 am_missing_run="$MISSING "
5542else
5543 am_missing_run=
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5545$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5546fi
5547
5548if test x"${install_sh+set}" != xset; then
5549 case $am_aux_dir in
5550 *\ * | *\ *)
5551 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5552 *)
5553 install_sh="\${SHELL} $am_aux_dir/install-sh"
5554 esac
5555fi
5556
5557# Installed binaries are usually stripped using 'strip' when the user
5558# run "make install-strip". However 'strip' might not be the right
5559# tool to use in cross-compilation environments, therefore Automake
5560# will honor the 'STRIP' environment variable to overrule this program.
5561if test "$cross_compiling" != no; then
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5564set dummy ${ac_tool_prefix}strip; ac_word=$2
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
5567if ${ac_cv_prog_STRIP+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 if test -n "$STRIP"; then
5571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584done
5585 done
5586IFS=$as_save_IFS
5587
5588fi
5589fi
5590STRIP=$ac_cv_prog_STRIP
5591if test -n "$STRIP"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5593$as_echo "$STRIP" >&6; }
5594else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
5597fi
5598
5599
5600fi
5601if test -z "$ac_cv_prog_STRIP"; then
5602 ac_ct_STRIP=$STRIP
5603 # Extract the first word of "strip", so it can be a program name with args.
5604set dummy strip; ac_word=$2
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
5607if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609else
5610 if test -n "$ac_ct_STRIP"; then
5611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_STRIP="strip"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624done
5625 done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5631if test -n "$ac_ct_STRIP"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5633$as_echo "$ac_ct_STRIP" >&6; }
5634else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639 if test "x$ac_ct_STRIP" = x; then
5640 STRIP=":"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648 STRIP=$ac_ct_STRIP
5649 fi
5650else
5651 STRIP="$ac_cv_prog_STRIP"
5652fi
5653
5654fi
5655INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5658$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5659if test -z "$MKDIR_P"; then
5660 if ${ac_cv_path_mkdir+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in mkdir gmkdir; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5671 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5672 'mkdir (GNU coreutils) '* | \
5673 'mkdir (coreutils) '* | \
5674 'mkdir (fileutils) '4.1*)
5675 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5676 break 3;;
5677 esac
5678 done
5679 done
5680 done
5681IFS=$as_save_IFS
5682
5683fi
5684
5685 test -d ./--version && rmdir ./--version
5686 if test "${ac_cv_path_mkdir+set}" = set; then
5687 MKDIR_P="$ac_cv_path_mkdir -p"
5688 else
5689 # As a last resort, use the slow shell script. Don't cache a
5690 # value for MKDIR_P within a source directory, because that will
5691 # break other packages using the cache if that directory is
5692 # removed, or if the value is a relative name.
5693 MKDIR_P="$ac_install_sh -d"
5694 fi
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5697$as_echo "$MKDIR_P" >&6; }
5698
5699for ac_prog in gawk mawk nawk awk
5700do
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702set dummy $ac_prog; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if ${ac_cv_prog_AWK+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707else
5708 if test -n "$AWK"; then
5709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_AWK="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723 done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728AWK=$ac_cv_prog_AWK
5729if test -n "$AWK"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731$as_echo "$AWK" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737
5738 test -n "$AWK" && break
5739done
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5742$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5743set x ${MAKE-make}
5744ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5745if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747else
5748 cat >conftest.make <<\_ACEOF
5749SHELL = /bin/sh
5750all:
5751 @echo '@@@%%%=$(MAKE)=@@@%%%'
5752_ACEOF
5753# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5754case `${MAKE-make} -f conftest.make 2>/dev/null` in
5755 *@@@%%%=?*=@@@%%%*)
5756 eval ac_cv_prog_make_${ac_make}_set=yes;;
5757 *)
5758 eval ac_cv_prog_make_${ac_make}_set=no;;
5759esac
5760rm -f conftest.make
5761fi
5762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764$as_echo "yes" >&6; }
5765 SET_MAKE=
5766else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769 SET_MAKE="MAKE=${MAKE-make}"
5770fi
5771
5772rm -rf .tst 2>/dev/null
5773mkdir .tst 2>/dev/null
5774if test -d .tst; then
5775 am__leading_dot=.
5776else
5777 am__leading_dot=_
5778fi
5779rmdir .tst 2>/dev/null
5780
5781DEPDIR="${am__leading_dot}deps"
5782
5783ac_config_commands="$ac_config_commands depfiles"
5784
5785
5786am_make=${MAKE-make}
5787cat > confinc << 'END'
5788am__doit:
5789 @echo this is the am__doit target
5790.PHONY: am__doit
5791END
5792# If we don't find an include directive, just comment out the code.
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5794$as_echo_n "checking for style of include used by $am_make... " >&6; }
5795am__include="#"
5796am__quote=
5797_am_result=none
5798# First try GNU make style include.
5799echo "include confinc" > confmf
5800# Ignore all kinds of additional output from 'make'.
5801case `$am_make -s -f confmf 2> /dev/null` in #(
5802*the\ am__doit\ target*)
5803 am__include=include
5804 am__quote=
5805 _am_result=GNU
5806 ;;
5807esac
5808# Now try BSD make style include.
5809if test "$am__include" = "#"; then
5810 echo '.include "confinc"' > confmf
5811 case `$am_make -s -f confmf 2> /dev/null` in #(
5812 *the\ am__doit\ target*)
5813 am__include=.include
5814 am__quote="\""
5815 _am_result=BSD
5816 ;;
5817 esac
5818fi
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5822$as_echo "$_am_result" >&6; }
5823rm -f confinc confmf
5824
5825# Check whether --enable-dependency-tracking was given.
5826if test "${enable_dependency_tracking+set}" = set; then :
5827 enableval=$enable_dependency_tracking;
5828fi
5829
5830if test "x$enable_dependency_tracking" != xno; then
5831 am_depcomp="$ac_aux_dir/depcomp"
5832 AMDEPBACKSLASH='\'
5833 am__nodep='_no'
5834fi
5835 if test "x$enable_dependency_tracking" != xno; then
5836 AMDEP_TRUE=
5837 AMDEP_FALSE='#'
5838else
5839 AMDEP_TRUE='#'
5840 AMDEP_FALSE=
5841fi
5842
5843
5844## --------------------------------------- ##
5845## Start of automake initialization code ##
5846## --------------------------------------- ##
5847
5848if test "`cd $srcdir && pwd`" != "`pwd`"; then
5849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5850 # is not polluted with repeated "-I."
5851 am__isrc=' -I$(srcdir)'
5852 # test to see if srcdir already configured
5853 if test -f $srcdir/config.status; then
5854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5855 fi
5856fi
5857
5858# test whether we have cygpath
5859if test -z "$CYGPATH_W"; then
5860 if (cygpath --version) >/dev/null 2>/dev/null; then
5861 CYGPATH_W='cygpath -w'
5862 else
5863 CYGPATH_W=echo
5864 fi
5865fi
5866
5867
5868# Define the identity of the package.
5869 PACKAGE='curl'
5870 VERSION='-'
5871
5872
5873cat >>confdefs.h <<_ACEOF
5874#define PACKAGE "$PACKAGE"
5875_ACEOF
5876
5877
5878cat >>confdefs.h <<_ACEOF
5879#define VERSION "$VERSION"
5880_ACEOF
5881
5882# Some tools Automake needs.
5883
5884ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5885
5886
5887AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5888
5889
5890AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5891
5892
5893AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5894
5895
5896MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5897
5898# For better backward compatibility. To be removed once Automake 1.9.x
5899# dies out for good. For more background, see:
5900# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5901# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5902mkdir_p='$(MKDIR_P)'
5903
5904# We need awk for the "check" target (and possibly the TAP driver). The
5905# system "awk" is bad on some platforms.
5906# Always define AMTAR for backward compatibility. Yes, it's still used
5907# in the wild :-( We should find a proper way to deprecate it ...
5908AMTAR='$${TAR-tar}'
5909
5910
5911# We'll loop over all known methods to create a tar archive until one works.
5912_am_tools='gnutar pax cpio none'
5913
5914am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5915
5916
5917
5918
5919
5920depcc="$CC" am_compiler_list=
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5923$as_echo_n "checking dependency style of $depcc... " >&6; }
5924if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926else
5927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5928 # We make a subdir and do the tests there. Otherwise we can end up
5929 # making bogus files that we don't know about and never remove. For
5930 # instance it was reported that on HP-UX the gcc test will end up
5931 # making a dummy file named 'D' -- because '-MD' means "put the output
5932 # in D".
5933 rm -rf conftest.dir
5934 mkdir conftest.dir
5935 # Copy depcomp to subdir because otherwise we won't find it if we're
5936 # using a relative directory.
5937 cp "$am_depcomp" conftest.dir
5938 cd conftest.dir
5939 # We will build objects and dependencies in a subdirectory because
5940 # it helps to detect inapplicable dependency modes. For instance
5941 # both Tru64's cc and ICC support -MD to output dependencies as a
5942 # side effect of compilation, but ICC will put the dependencies in
5943 # the current directory while Tru64 will put them in the object
5944 # directory.
5945 mkdir sub
5946
5947 am_cv_CC_dependencies_compiler_type=none
5948 if test "$am_compiler_list" = ""; then
5949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5950 fi
5951 am__universal=false
5952 case " $depcc " in #(
5953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5954 esac
5955
5956 for depmode in $am_compiler_list; do
5957 # Setup a source with many dependencies, because some compilers
5958 # like to wrap large dependency lists on column 80 (with \), and
5959 # we should not choose a depcomp mode which is confused by this.
5960 #
5961 # We need to recreate these files for each test, as the compiler may
5962 # overwrite some of them when testing with obscure command lines.
5963 # This happens at least with the AIX C compiler.
5964 : > sub/conftest.c
5965 for i in 1 2 3 4 5 6; do
5966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5967 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5968 # Solaris 10 /bin/sh.
5969 echo '/* dummy */' > sub/conftst$i.h
5970 done
5971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5972
5973 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5974 # mode. It turns out that the SunPro C++ compiler does not properly
5975 # handle '-M -o', and we need to detect this. Also, some Intel
5976 # versions had trouble with output in subdirs.
5977 am__obj=sub/conftest.${OBJEXT-o}
5978 am__minus_obj="-o $am__obj"
5979 case $depmode in
5980 gcc)
5981 # This depmode causes a compiler race in universal mode.
5982 test "$am__universal" = false || continue
5983 ;;
5984 nosideeffect)
5985 # After this tag, mechanisms are not by side-effect, so they'll
5986 # only be used when explicitly requested.
5987 if test "x$enable_dependency_tracking" = xyes; then
5988 continue
5989 else
5990 break
5991 fi
5992 ;;
5993 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5994 # This compiler won't grok '-c -o', but also, the minuso test has
5995 # not run yet. These depmodes are late enough in the game, and
5996 # so weak that their functioning should not be impacted.
5997 am__obj=conftest.${OBJEXT-o}
5998 am__minus_obj=
5999 ;;
6000 none) break ;;
6001 esac
6002 if depmode=$depmode \
6003 source=sub/conftest.c object=$am__obj \
6004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6006 >/dev/null 2>conftest.err &&
6007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6011 # icc doesn't choke on unknown options, it will just issue warnings
6012 # or remarks (even with -Werror). So we grep stderr for any message
6013 # that says an option was ignored or not supported.
6014 # When given -MP, icc 7.0 and 7.1 complain thusly:
6015 # icc: Command line warning: ignoring option '-M'; no argument required
6016 # The diagnosis changed in icc 8.0:
6017 # icc: Command line remark: option '-MP' not supported
6018 if (grep 'ignoring option' conftest.err ||
6019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6020 am_cv_CC_dependencies_compiler_type=$depmode
6021 break
6022 fi
6023 fi
6024 done
6025
6026 cd ..
6027 rm -rf conftest.dir
6028else
6029 am_cv_CC_dependencies_compiler_type=none
6030fi
6031
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6034$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6035CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6036
6037 if
6038 test "x$enable_dependency_tracking" != xno \
6039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6040 am__fastdepCC_TRUE=
6041 am__fastdepCC_FALSE='#'
6042else
6043 am__fastdepCC_TRUE='#'
6044 am__fastdepCC_FALSE=
6045fi
6046
6047
6048
6049# POSIX will say in a future version that running "rm -f" with no argument
6050# is OK; and we want to be able to make that assumption in our Makefile
6051# recipes. So use an aggressive probe to check that the usage we want is
6052# actually supported "in the wild" to an acceptable degree.
6053# See automake bug#10828.
6054# To make any issue more visible, cause the running configure to be aborted
6055# by default if the 'rm' program in use doesn't match our expectations; the
6056# user can still override this though.
6057if rm -f && rm -fr && rm -rf; then : OK; else
6058 cat >&2 <<'END'
6059Oops!
6060
6061Your 'rm' program seems unable to run without file operands specified
6062on the command line, even when the '-f' option is present. This is contrary
6063to the behaviour of most rm programs out there, and not conforming with
6064the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6065
6066Please tell bug-automake@gnu.org about your system, including the value
6067of your $PATH and any error possibly output before this message. This
6068can help us improve future automake versions.
6069
6070END
6071 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6072 echo 'Configuration will proceed anyway, since you have set the' >&2
6073 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6074 echo >&2
6075 else
6076 cat >&2 <<'END'
6077Aborting the configuration process, to ensure you take notice of the issue.
6078
6079You can download and install GNU coreutils to get an 'rm' implementation
6080that behaves properly: <http://www.gnu.org/software/coreutils/>.
6081
6082If you want to complete the configuration process using your problematic
6083'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6084to "yes", and re-run configure.
6085
6086END
6087 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6088 fi
6089fi
6090
6091## ------------------------------------- ##
6092## End of automake initialization code ##
6093## ------------------------------------- ##
6094
6095
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6097$as_echo_n "checking curl version... " >&6; }
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6099$as_echo "$CURLVERSION" >&6; }
6100
6101
6102
6103VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6104
6105
6106PKGADD_PKG="HAXXcurl"
6107PKGADD_NAME="curl - a client that groks URLs"
6108PKGADD_VENDOR="curl.haxx.se"
6109
6110
6111
6112
6113 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6114 curl_ssh_msg="no (--with-libssh2)"
6115 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006116 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006117 curl_gss_msg="no (--with-gssapi)"
6118curl_tls_srp_msg="no (--enable-tls-srp)"
6119 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6120 curl_ipv6_msg="no (--enable-ipv6)"
6121curl_unix_sockets_msg="no (--enable-unix-sockets)"
6122 curl_idn_msg="no (--with-{libidn2,winidn})"
6123 curl_manual_msg="no (--enable-manual)"
6124curl_libcurl_msg="enabled (--disable-libcurl-option)"
6125curl_verbose_msg="enabled (--disable-verbose)"
6126 curl_sspi_msg="no (--enable-sspi)"
6127 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6128 curl_ldaps_msg="no (--enable-ldaps)"
6129 curl_rtsp_msg="no (--enable-rtsp)"
6130 curl_rtmp_msg="no (--with-librtmp)"
6131 curl_mtlnk_msg="no (--with-libmetalink)"
6132 curl_psl_msg="no (--with-libpsl)"
6133
Alex Deymo486467e2017-12-19 19:04:07 +01006134 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006135
6136INITIAL_LDFLAGS=$LDFLAGS
6137INITIAL_LIBS=$LIBS
6138
6139
6140# Make sure we can run config.sub.
6141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6142 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6145$as_echo_n "checking build system type... " >&6; }
6146if ${ac_cv_build+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 ac_build_alias=$build_alias
6150test "x$ac_build_alias" = x &&
6151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6152test "x$ac_build_alias" = x &&
6153 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6154ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6156
6157fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6159$as_echo "$ac_cv_build" >&6; }
6160case $ac_cv_build in
6161*-*-*) ;;
6162*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6163esac
6164build=$ac_cv_build
6165ac_save_IFS=$IFS; IFS='-'
6166set x $ac_cv_build
6167shift
6168build_cpu=$1
6169build_vendor=$2
6170shift; shift
6171# Remember, the first character of IFS is used to create $*,
6172# except with old shells:
6173build_os=$*
6174IFS=$ac_save_IFS
6175case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6179$as_echo_n "checking host system type... " >&6; }
6180if ${ac_cv_host+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182else
6183 if test "x$host_alias" = x; then
6184 ac_cv_host=$ac_cv_build
6185else
6186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6187 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6188fi
6189
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6192$as_echo "$ac_cv_host" >&6; }
6193case $ac_cv_host in
6194*-*-*) ;;
6195*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6196esac
6197host=$ac_cv_host
6198ac_save_IFS=$IFS; IFS='-'
6199set x $ac_cv_host
6200shift
6201host_cpu=$1
6202host_vendor=$2
6203shift; shift
6204# Remember, the first character of IFS is used to create $*,
6205# except with old shells:
6206host_os=$*
6207IFS=$ac_save_IFS
6208case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6209
6210
6211
6212cat >>confdefs.h <<_ACEOF
6213#define OS "${host}"
6214_ACEOF
6215
6216
6217
6218
6219
Elliott Hughes82be86d2017-09-20 17:00:17 -07006220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6221$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6222if ${ac_cv_path_GREP+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225 if test -z "$GREP"; then
6226 ac_path_GREP_found=false
6227 # Loop through the user's path and test for each of PROGNAME-LIST
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_prog in grep ggrep; do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6236 as_fn_executable_p "$ac_path_GREP" || continue
6237# Check for GNU ac_path_GREP and select it if it is found.
6238 # Check for GNU $ac_path_GREP
6239case `"$ac_path_GREP" --version 2>&1` in
6240*GNU*)
6241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6242*)
6243 ac_count=0
6244 $as_echo_n 0123456789 >"conftest.in"
6245 while :
6246 do
6247 cat "conftest.in" "conftest.in" >"conftest.tmp"
6248 mv "conftest.tmp" "conftest.in"
6249 cp "conftest.in" "conftest.nl"
6250 $as_echo 'GREP' >> "conftest.nl"
6251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253 as_fn_arith $ac_count + 1 && ac_count=$as_val
6254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6255 # Best one so far, save it but keep looking for a better one
6256 ac_cv_path_GREP="$ac_path_GREP"
6257 ac_path_GREP_max=$ac_count
6258 fi
6259 # 10*(2^10) chars as input seems more than enough
6260 test $ac_count -gt 10 && break
6261 done
6262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263esac
6264
6265 $ac_path_GREP_found && break 3
6266 done
6267 done
6268 done
6269IFS=$as_save_IFS
6270 if test -z "$ac_cv_path_GREP"; then
6271 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6272 fi
6273else
6274 ac_cv_path_GREP=$GREP
6275fi
6276
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6279$as_echo "$ac_cv_path_GREP" >&6; }
6280 GREP="$ac_cv_path_GREP"
6281
6282
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6284$as_echo_n "checking for egrep... " >&6; }
6285if ${ac_cv_path_EGREP+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287else
6288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6289 then ac_cv_path_EGREP="$GREP -E"
6290 else
6291 if test -z "$EGREP"; then
6292 ac_path_EGREP_found=false
6293 # Loop through the user's path and test for each of PROGNAME-LIST
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_prog in egrep; do
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6302 as_fn_executable_p "$ac_path_EGREP" || continue
6303# Check for GNU ac_path_EGREP and select it if it is found.
6304 # Check for GNU $ac_path_EGREP
6305case `"$ac_path_EGREP" --version 2>&1` in
6306*GNU*)
6307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6308*)
6309 ac_count=0
6310 $as_echo_n 0123456789 >"conftest.in"
6311 while :
6312 do
6313 cat "conftest.in" "conftest.in" >"conftest.tmp"
6314 mv "conftest.tmp" "conftest.in"
6315 cp "conftest.in" "conftest.nl"
6316 $as_echo 'EGREP' >> "conftest.nl"
6317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319 as_fn_arith $ac_count + 1 && ac_count=$as_val
6320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6321 # Best one so far, save it but keep looking for a better one
6322 ac_cv_path_EGREP="$ac_path_EGREP"
6323 ac_path_EGREP_max=$ac_count
6324 fi
6325 # 10*(2^10) chars as input seems more than enough
6326 test $ac_count -gt 10 && break
6327 done
6328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329esac
6330
6331 $ac_path_EGREP_found && break 3
6332 done
6333 done
6334 done
6335IFS=$as_save_IFS
6336 if test -z "$ac_cv_path_EGREP"; then
6337 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6338 fi
6339else
6340 ac_cv_path_EGREP=$EGREP
6341fi
6342
6343 fi
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6346$as_echo "$ac_cv_path_EGREP" >&6; }
6347 EGREP="$ac_cv_path_EGREP"
6348
6349
Elliott Hughes82be86d2017-09-20 17:00:17 -07006350
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6353$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h. */
6356
6357#ifdef _AIX
6358 yes_this_is_aix
6359#endif
6360
6361_ACEOF
6362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6366$as_echo "yes" >&6; }
6367 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6368
6369
6370else
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374
6375fi
6376rm -f conftest*
6377
6378
6379
6380
6381 #
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6383$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386
6387
6388
6389int main (void)
6390{
6391
6392#ifdef _THREAD_SAFE
6393 int dummy=1;
6394#else
6395 force compilation error
6396#endif
6397
6398 ;
6399 return 0;
6400}
6401
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"; then :
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6406$as_echo "yes" >&6; }
6407 tmp_thread_safe_initially_defined="yes"
6408
6409else
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413 tmp_thread_safe_initially_defined="no"
6414
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 #
6418 if test "$tmp_thread_safe_initially_defined" = "no"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6420$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6421
6422 case $host_os in
6423 aix[123].* | aix4.[012].*)
6424 tmp_need_thread_safe="no"
6425 ;;
6426 aix*)
6427 tmp_need_thread_safe="yes"
6428 ;;
6429 *)
6430 tmp_need_thread_safe="no"
6431 ;;
6432 esac
6433
6434 if test "$tmp_need_thread_safe" = "yes"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436$as_echo "yes" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440 fi
6441 fi
6442 #
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6444$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6445 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6446 test "$tmp_need_thread_safe" = "yes"; then
6447
6448
6449$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6450
6451cat >>confdefs.h <<_EOF
6452#ifndef _THREAD_SAFE
6453# define _THREAD_SAFE
6454#endif
6455_EOF
6456
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458$as_echo "yes" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
6462 fi
6463 #
6464
6465
6466 #
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6468$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h. */
6471
6472
6473
6474int main (void)
6475{
6476
6477#ifdef _REENTRANT
6478 int dummy=1;
6479#else
6480 force compilation error
6481#endif
6482
6483 ;
6484 return 0;
6485}
6486
6487_ACEOF
6488if ac_fn_c_try_compile "$LINENO"; then :
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6491$as_echo "yes" >&6; }
6492 tmp_reentrant_initially_defined="yes"
6493
6494else
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498 tmp_reentrant_initially_defined="no"
6499
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 #
6503 if test "$tmp_reentrant_initially_defined" = "no"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6505$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6506
6507 case $host_os in
6508 solaris*)
6509 tmp_need_reentrant="yes"
6510 ;;
6511 *)
6512 tmp_need_reentrant="no"
6513 ;;
6514 esac
6515
6516 if test "$tmp_need_reentrant" = "no"; then
6517
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h. */
6520
6521
6522#include <errno.h>
6523
6524int main (void)
6525{
6526
6527 if(0 != errno)
6528 return 1;
6529
6530 ;
6531 return 0;
6532}
6533
6534_ACEOF
6535if ac_fn_c_try_compile "$LINENO"; then :
6536
6537 tmp_errno="yes"
6538
6539else
6540
6541 tmp_errno="no"
6542
6543fi
6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 if test "$tmp_errno" = "yes"; then
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h. */
6548
6549
6550#include <errno.h>
6551
6552int main (void)
6553{
6554
6555#ifdef errno
6556 int dummy=1;
6557#else
6558 force compilation error
6559#endif
6560
6561 ;
6562 return 0;
6563}
6564
6565_ACEOF
6566if ac_fn_c_try_compile "$LINENO"; then :
6567
6568 tmp_errno="errno_macro_defined"
6569
6570else
6571
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574
6575
6576#define _REENTRANT
6577#include <errno.h>
6578
6579int main (void)
6580{
6581
6582#ifdef errno
6583 int dummy=1;
6584#else
6585 force compilation error
6586#endif
6587
6588 ;
6589 return 0;
6590}
6591
6592_ACEOF
6593if ac_fn_c_try_compile "$LINENO"; then :
6594
6595 tmp_errno="errno_macro_needs_reentrant"
6596 tmp_need_reentrant="yes"
6597
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604
6605 fi
6606 if test "$tmp_need_reentrant" = "no"; then
6607
6608 if test "$tmp_need_reentrant" = "no"; then
6609
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612
6613
6614#define gmtime_r innocuous_gmtime_r
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
6620#undef gmtime_r
6621#ifdef __cplusplus
6622extern "C"
6623#endif
6624char gmtime_r ();
6625#if defined __stub_gmtime_r || defined __stub___gmtime_r
6626choke me
6627#endif
6628
6629int main (void)
6630{
6631return gmtime_r ();
6632 ;
6633 return 0;
6634}
6635
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638
6639 tmp_gmtime_r="yes"
6640
6641else
6642
6643 tmp_gmtime_r="no"
6644
6645fi
6646rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 if test "$tmp_gmtime_r" = "yes"; then
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h. */
6651
6652#include <sys/types.h>
6653#include <time.h>
6654
6655_ACEOF
6656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6658
6659 tmp_gmtime_r="proto_declared"
6660
6661else
6662
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h. */
6665
6666#define _REENTRANT
6667#include <sys/types.h>
6668#include <time.h>
6669
6670_ACEOF
6671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6673
6674 tmp_gmtime_r="proto_needs_reentrant"
6675 tmp_need_reentrant="yes"
6676
6677fi
6678rm -f conftest*
6679
6680
6681fi
6682rm -f conftest*
6683
6684 fi
6685
6686 fi
6687 if test "$tmp_need_reentrant" = "no"; then
6688
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h. */
6691
6692
6693#define localtime_r innocuous_localtime_r
6694#ifdef __STDC__
6695# include <limits.h>
6696#else
6697# include <assert.h>
6698#endif
6699#undef localtime_r
6700#ifdef __cplusplus
6701extern "C"
6702#endif
6703char localtime_r ();
6704#if defined __stub_localtime_r || defined __stub___localtime_r
6705choke me
6706#endif
6707
6708int main (void)
6709{
6710return localtime_r ();
6711 ;
6712 return 0;
6713}
6714
6715_ACEOF
6716if ac_fn_c_try_link "$LINENO"; then :
6717
6718 tmp_localtime_r="yes"
6719
6720else
6721
6722 tmp_localtime_r="no"
6723
6724fi
6725rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 if test "$tmp_localtime_r" = "yes"; then
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h. */
6730
6731#include <sys/types.h>
6732#include <time.h>
6733
6734_ACEOF
6735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "localtime_r" >/dev/null 2>&1; then :
6737
6738 tmp_localtime_r="proto_declared"
6739
6740else
6741
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h. */
6744
6745#define _REENTRANT
6746#include <sys/types.h>
6747#include <time.h>
6748
6749_ACEOF
6750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "localtime_r" >/dev/null 2>&1; then :
6752
6753 tmp_localtime_r="proto_needs_reentrant"
6754 tmp_need_reentrant="yes"
6755
6756fi
6757rm -f conftest*
6758
6759
6760fi
6761rm -f conftest*
6762
6763 fi
6764
6765 fi
6766 if test "$tmp_need_reentrant" = "no"; then
6767
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769/* end confdefs.h. */
6770
6771
6772#define strerror_r innocuous_strerror_r
6773#ifdef __STDC__
6774# include <limits.h>
6775#else
6776# include <assert.h>
6777#endif
6778#undef strerror_r
6779#ifdef __cplusplus
6780extern "C"
6781#endif
6782char strerror_r ();
6783#if defined __stub_strerror_r || defined __stub___strerror_r
6784choke me
6785#endif
6786
6787int main (void)
6788{
6789return strerror_r ();
6790 ;
6791 return 0;
6792}
6793
6794_ACEOF
6795if ac_fn_c_try_link "$LINENO"; then :
6796
6797 tmp_strerror_r="yes"
6798
6799else
6800
6801 tmp_strerror_r="no"
6802
6803fi
6804rm -f core conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 if test "$tmp_strerror_r" = "yes"; then
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809
6810#include <sys/types.h>
6811#include <string.h>
6812
6813_ACEOF
6814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "strerror_r" >/dev/null 2>&1; then :
6816
6817 tmp_strerror_r="proto_declared"
6818
6819else
6820
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h. */
6823
6824#define _REENTRANT
6825#include <sys/types.h>
6826#include <string.h>
6827
6828_ACEOF
6829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "strerror_r" >/dev/null 2>&1; then :
6831
6832 tmp_strerror_r="proto_needs_reentrant"
6833 tmp_need_reentrant="yes"
6834
6835fi
6836rm -f conftest*
6837
6838
6839fi
6840rm -f conftest*
6841
6842 fi
6843
6844 fi
6845 if test "$tmp_need_reentrant" = "no"; then
6846
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h. */
6849
6850
6851#define strtok_r innocuous_strtok_r
6852#ifdef __STDC__
6853# include <limits.h>
6854#else
6855# include <assert.h>
6856#endif
6857#undef strtok_r
6858#ifdef __cplusplus
6859extern "C"
6860#endif
6861char strtok_r ();
6862#if defined __stub_strtok_r || defined __stub___strtok_r
6863choke me
6864#endif
6865
6866int main (void)
6867{
6868return strtok_r ();
6869 ;
6870 return 0;
6871}
6872
6873_ACEOF
6874if ac_fn_c_try_link "$LINENO"; then :
6875
6876 tmp_strtok_r="yes"
6877
6878else
6879
6880 tmp_strtok_r="no"
6881
6882fi
6883rm -f core conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 if test "$tmp_strtok_r" = "yes"; then
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h. */
6888
6889#include <sys/types.h>
6890#include <string.h>
6891
6892_ACEOF
6893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "strtok_r" >/dev/null 2>&1; then :
6895
6896 tmp_strtok_r="proto_declared"
6897
6898else
6899
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h. */
6902
6903#define _REENTRANT
6904#include <sys/types.h>
6905#include <string.h>
6906
6907_ACEOF
6908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909 $EGREP "strtok_r" >/dev/null 2>&1; then :
6910
6911 tmp_strtok_r="proto_needs_reentrant"
6912 tmp_need_reentrant="yes"
6913
6914fi
6915rm -f conftest*
6916
6917
6918fi
6919rm -f conftest*
6920
6921 fi
6922
6923 fi
6924 if test "$tmp_need_reentrant" = "no"; then
6925
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h. */
6928
6929
6930#define inet_ntoa_r innocuous_inet_ntoa_r
6931#ifdef __STDC__
6932# include <limits.h>
6933#else
6934# include <assert.h>
6935#endif
6936#undef inet_ntoa_r
6937#ifdef __cplusplus
6938extern "C"
6939#endif
6940char inet_ntoa_r ();
6941#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6942choke me
6943#endif
6944
6945int main (void)
6946{
6947return inet_ntoa_r ();
6948 ;
6949 return 0;
6950}
6951
6952_ACEOF
6953if ac_fn_c_try_link "$LINENO"; then :
6954
6955 tmp_inet_ntoa_r="yes"
6956
6957else
6958
6959 tmp_inet_ntoa_r="no"
6960
6961fi
6962rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 if test "$tmp_inet_ntoa_r" = "yes"; then
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h. */
6967
6968#include <sys/types.h>
6969#include <sys/socket.h>
6970#include <netinet/in.h>
6971#include <arpa/inet.h>
6972
6973_ACEOF
6974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6976
6977 tmp_inet_ntoa_r="proto_declared"
6978
6979else
6980
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h. */
6983
6984#define _REENTRANT
6985#include <sys/types.h>
6986#include <sys/socket.h>
6987#include <netinet/in.h>
6988#include <arpa/inet.h>
6989
6990_ACEOF
6991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6993
6994 tmp_inet_ntoa_r="proto_needs_reentrant"
6995 tmp_need_reentrant="yes"
6996
6997fi
6998rm -f conftest*
6999
7000
7001fi
7002rm -f conftest*
7003
7004 fi
7005
7006 fi
7007 if test "$tmp_need_reentrant" = "no"; then
7008
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h. */
7011
7012
7013#define gethostbyaddr_r innocuous_gethostbyaddr_r
7014#ifdef __STDC__
7015# include <limits.h>
7016#else
7017# include <assert.h>
7018#endif
7019#undef gethostbyaddr_r
7020#ifdef __cplusplus
7021extern "C"
7022#endif
7023char gethostbyaddr_r ();
7024#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7025choke me
7026#endif
7027
7028int main (void)
7029{
7030return gethostbyaddr_r ();
7031 ;
7032 return 0;
7033}
7034
7035_ACEOF
7036if ac_fn_c_try_link "$LINENO"; then :
7037
7038 tmp_gethostbyaddr_r="yes"
7039
7040else
7041
7042 tmp_gethostbyaddr_r="no"
7043
7044fi
7045rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 if test "$tmp_gethostbyaddr_r" = "yes"; then
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h. */
7050
7051#include <sys/types.h>
7052#include <netdb.h>
7053
7054_ACEOF
7055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7057
7058 tmp_gethostbyaddr_r="proto_declared"
7059
7060else
7061
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h. */
7064
7065#define _REENTRANT
7066#include <sys/types.h>
7067#include <netdb.h>
7068
7069_ACEOF
7070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7072
7073 tmp_gethostbyaddr_r="proto_needs_reentrant"
7074 tmp_need_reentrant="yes"
7075
7076fi
7077rm -f conftest*
7078
7079
7080fi
7081rm -f conftest*
7082
7083 fi
7084
7085 fi
7086 if test "$tmp_need_reentrant" = "no"; then
7087
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h. */
7090
7091
7092#define gethostbyname_r innocuous_gethostbyname_r
7093#ifdef __STDC__
7094# include <limits.h>
7095#else
7096# include <assert.h>
7097#endif
7098#undef gethostbyname_r
7099#ifdef __cplusplus
7100extern "C"
7101#endif
7102char gethostbyname_r ();
7103#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7104choke me
7105#endif
7106
7107int main (void)
7108{
7109return gethostbyname_r ();
7110 ;
7111 return 0;
7112}
7113
7114_ACEOF
7115if ac_fn_c_try_link "$LINENO"; then :
7116
7117 tmp_gethostbyname_r="yes"
7118
7119else
7120
7121 tmp_gethostbyname_r="no"
7122
7123fi
7124rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 if test "$tmp_gethostbyname_r" = "yes"; then
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */
7129
7130#include <sys/types.h>
7131#include <netdb.h>
7132
7133_ACEOF
7134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7136
7137 tmp_gethostbyname_r="proto_declared"
7138
7139else
7140
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h. */
7143
7144#define _REENTRANT
7145#include <sys/types.h>
7146#include <netdb.h>
7147
7148_ACEOF
7149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7151
7152 tmp_gethostbyname_r="proto_needs_reentrant"
7153 tmp_need_reentrant="yes"
7154
7155fi
7156rm -f conftest*
7157
7158
7159fi
7160rm -f conftest*
7161
7162 fi
7163
7164 fi
7165 if test "$tmp_need_reentrant" = "no"; then
7166
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h. */
7169
7170
7171#define getprotobyname_r innocuous_getprotobyname_r
7172#ifdef __STDC__
7173# include <limits.h>
7174#else
7175# include <assert.h>
7176#endif
7177#undef getprotobyname_r
7178#ifdef __cplusplus
7179extern "C"
7180#endif
7181char getprotobyname_r ();
7182#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7183choke me
7184#endif
7185
7186int main (void)
7187{
7188return getprotobyname_r ();
7189 ;
7190 return 0;
7191}
7192
7193_ACEOF
7194if ac_fn_c_try_link "$LINENO"; then :
7195
7196 tmp_getprotobyname_r="yes"
7197
7198else
7199
7200 tmp_getprotobyname_r="no"
7201
7202fi
7203rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 if test "$tmp_getprotobyname_r" = "yes"; then
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h. */
7208
7209#include <sys/types.h>
7210#include <netdb.h>
7211
7212_ACEOF
7213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7215
7216 tmp_getprotobyname_r="proto_declared"
7217
7218else
7219
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h. */
7222
7223#define _REENTRANT
7224#include <sys/types.h>
7225#include <netdb.h>
7226
7227_ACEOF
7228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7230
7231 tmp_getprotobyname_r="proto_needs_reentrant"
7232 tmp_need_reentrant="yes"
7233
7234fi
7235rm -f conftest*
7236
7237
7238fi
7239rm -f conftest*
7240
7241 fi
7242
7243 fi
7244 if test "$tmp_need_reentrant" = "no"; then
7245
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h. */
7248
7249
7250#define getservbyport_r innocuous_getservbyport_r
7251#ifdef __STDC__
7252# include <limits.h>
7253#else
7254# include <assert.h>
7255#endif
7256#undef getservbyport_r
7257#ifdef __cplusplus
7258extern "C"
7259#endif
7260char getservbyport_r ();
7261#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7262choke me
7263#endif
7264
7265int main (void)
7266{
7267return getservbyport_r ();
7268 ;
7269 return 0;
7270}
7271
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"; then :
7274
7275 tmp_getservbyport_r="yes"
7276
7277else
7278
7279 tmp_getservbyport_r="no"
7280
7281fi
7282rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 if test "$tmp_getservbyport_r" = "yes"; then
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h. */
7287
7288#include <sys/types.h>
7289#include <netdb.h>
7290
7291_ACEOF
7292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7294
7295 tmp_getservbyport_r="proto_declared"
7296
7297else
7298
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h. */
7301
7302#define _REENTRANT
7303#include <sys/types.h>
7304#include <netdb.h>
7305
7306_ACEOF
7307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7309
7310 tmp_getservbyport_r="proto_needs_reentrant"
7311 tmp_need_reentrant="yes"
7312
7313fi
7314rm -f conftest*
7315
7316
7317fi
7318rm -f conftest*
7319
7320 fi
7321
7322 fi
7323
7324 fi
7325 if test "$tmp_need_reentrant" = "yes"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327$as_echo "yes" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331 fi
7332 fi
7333 #
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7335$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7336 if test "$tmp_reentrant_initially_defined" = "yes" ||
7337 test "$tmp_need_reentrant" = "yes"; then
7338
7339
7340$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7341
7342cat >>confdefs.h <<_EOF
7343#ifndef _REENTRANT
7344# define _REENTRANT
7345#endif
7346_EOF
7347
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349$as_echo "yes" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352$as_echo "no" >&6; }
7353 fi
7354 #
7355
7356
7357# Check whether --enable-largefile was given.
7358if test "${enable_largefile+set}" = set; then :
7359 enableval=$enable_largefile;
7360fi
7361
7362if test "$enable_largefile" != no; then
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7365$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7366if ${ac_cv_sys_largefile_CC+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368else
7369 ac_cv_sys_largefile_CC=no
7370 if test "$GCC" != yes; then
7371 ac_save_CC=$CC
7372 while :; do
7373 # IRIX 6.2 and later do not support large files by default,
7374 # so use the C compiler's -n32 option if that helps.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h. */
7377#include <sys/types.h>
7378 /* Check that off_t can represent 2**63 - 1 correctly.
7379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7380 since some C++ compilers masquerading as C compilers
7381 incorrectly reject 9223372036854775807. */
7382#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7384 && LARGE_OFF_T % 2147483647 == 1)
7385 ? 1 : -1];
7386int main (void)
7387{
7388
7389 ;
7390 return 0;
7391}
7392_ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 break
7395fi
7396rm -f core conftest.err conftest.$ac_objext
7397 CC="$CC -n32"
7398 if ac_fn_c_try_compile "$LINENO"; then :
7399 ac_cv_sys_largefile_CC=' -n32'; break
7400fi
7401rm -f core conftest.err conftest.$ac_objext
7402 break
7403 done
7404 CC=$ac_save_CC
7405 rm -f conftest.$ac_ext
7406 fi
7407fi
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7409$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7410 if test "$ac_cv_sys_largefile_CC" != no; then
7411 CC=$CC$ac_cv_sys_largefile_CC
7412 fi
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7415$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7416if ${ac_cv_sys_file_offset_bits+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418else
7419 while :; do
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h. */
7422#include <sys/types.h>
7423 /* Check that off_t can represent 2**63 - 1 correctly.
7424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7425 since some C++ compilers masquerading as C compilers
7426 incorrectly reject 9223372036854775807. */
7427#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7429 && LARGE_OFF_T % 2147483647 == 1)
7430 ? 1 : -1];
7431int main (void)
7432{
7433
7434 ;
7435 return 0;
7436}
7437_ACEOF
7438if ac_fn_c_try_compile "$LINENO"; then :
7439 ac_cv_sys_file_offset_bits=no; break
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h. */
7444#define _FILE_OFFSET_BITS 64
7445#include <sys/types.h>
7446 /* Check that off_t can represent 2**63 - 1 correctly.
7447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7448 since some C++ compilers masquerading as C compilers
7449 incorrectly reject 9223372036854775807. */
7450#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7452 && LARGE_OFF_T % 2147483647 == 1)
7453 ? 1 : -1];
7454int main (void)
7455{
7456
7457 ;
7458 return 0;
7459}
7460_ACEOF
7461if ac_fn_c_try_compile "$LINENO"; then :
7462 ac_cv_sys_file_offset_bits=64; break
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 ac_cv_sys_file_offset_bits=unknown
7466 break
7467done
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7470$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7471case $ac_cv_sys_file_offset_bits in #(
7472 no | unknown) ;;
7473 *)
7474cat >>confdefs.h <<_ACEOF
7475#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7476_ACEOF
7477;;
7478esac
7479rm -rf conftest*
7480 if test $ac_cv_sys_file_offset_bits = unknown; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7482$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7483if ${ac_cv_sys_large_files+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485else
7486 while :; do
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h. */
7489#include <sys/types.h>
7490 /* Check that off_t can represent 2**63 - 1 correctly.
7491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7492 since some C++ compilers masquerading as C compilers
7493 incorrectly reject 9223372036854775807. */
7494#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7496 && LARGE_OFF_T % 2147483647 == 1)
7497 ? 1 : -1];
7498int main (void)
7499{
7500
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505if ac_fn_c_try_compile "$LINENO"; then :
7506 ac_cv_sys_large_files=no; break
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h. */
7511#define _LARGE_FILES 1
7512#include <sys/types.h>
7513 /* Check that off_t can represent 2**63 - 1 correctly.
7514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515 since some C++ compilers masquerading as C compilers
7516 incorrectly reject 9223372036854775807. */
7517#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519 && LARGE_OFF_T % 2147483647 == 1)
7520 ? 1 : -1];
7521int main (void)
7522{
7523
7524 ;
7525 return 0;
7526}
7527_ACEOF
7528if ac_fn_c_try_compile "$LINENO"; then :
7529 ac_cv_sys_large_files=1; break
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 ac_cv_sys_large_files=unknown
7533 break
7534done
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7537$as_echo "$ac_cv_sys_large_files" >&6; }
7538case $ac_cv_sys_large_files in #(
7539 no | unknown) ;;
7540 *)
7541cat >>confdefs.h <<_ACEOF
7542#define _LARGE_FILES $ac_cv_sys_large_files
7543_ACEOF
7544;;
7545esac
7546rm -rf conftest*
7547 fi
7548
7549
7550fi
7551
7552
7553case `pwd` in
7554 *\ * | *\ *)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7556$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7557esac
7558
7559
7560
7561macro_version='2.4.6'
7562macro_revision='2.4.6'
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576ltmain=$ac_aux_dir/ltmain.sh
7577
7578# Backslashify metacharacters that are still active within
7579# double-quoted strings.
7580sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7581
7582# Same as above, but do not quote variable references.
7583double_quote_subst='s/\(["`\\]\)/\\\1/g'
7584
7585# Sed substitution to delay expansion of an escaped shell variable in a
7586# double_quote_subst'ed string.
7587delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7588
7589# Sed substitution to delay expansion of an escaped single quote.
7590delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7591
7592# Sed substitution to avoid accidental globbing in evaled expressions
7593no_glob_subst='s/\*/\\\*/g'
7594
7595ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7597ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7598
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7600$as_echo_n "checking how to print strings... " >&6; }
7601# Test print first, because it will be a builtin if present.
7602if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7603 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7604 ECHO='print -r --'
7605elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7606 ECHO='printf %s\n'
7607else
7608 # Use this function as a fallback that always works.
7609 func_fallback_echo ()
7610 {
7611 eval 'cat <<_LTECHO_EOF
7612$1
7613_LTECHO_EOF'
7614 }
7615 ECHO='func_fallback_echo'
7616fi
7617
7618# func_echo_all arg...
7619# Invoke $ECHO with all args, space-separated.
7620func_echo_all ()
7621{
7622 $ECHO ""
7623}
7624
7625case $ECHO in
7626 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7627$as_echo "printf" >&6; } ;;
7628 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7629$as_echo "print -r" >&6; } ;;
7630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7631$as_echo "cat" >&6; } ;;
7632esac
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7648$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7649if ${ac_cv_path_SED+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651else
7652 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7653 for ac_i in 1 2 3 4 5 6 7; do
7654 ac_script="$ac_script$as_nl$ac_script"
7655 done
7656 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7657 { ac_script=; unset ac_script;}
7658 if test -z "$SED"; then
7659 ac_path_SED_found=false
7660 # Loop through the user's path and test for each of PROGNAME-LIST
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_prog in sed gsed; do
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7669 as_fn_executable_p "$ac_path_SED" || continue
7670# Check for GNU ac_path_SED and select it if it is found.
7671 # Check for GNU $ac_path_SED
7672case `"$ac_path_SED" --version 2>&1` in
7673*GNU*)
7674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7675*)
7676 ac_count=0
7677 $as_echo_n 0123456789 >"conftest.in"
7678 while :
7679 do
7680 cat "conftest.in" "conftest.in" >"conftest.tmp"
7681 mv "conftest.tmp" "conftest.in"
7682 cp "conftest.in" "conftest.nl"
7683 $as_echo '' >> "conftest.nl"
7684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7686 as_fn_arith $ac_count + 1 && ac_count=$as_val
7687 if test $ac_count -gt ${ac_path_SED_max-0}; then
7688 # Best one so far, save it but keep looking for a better one
7689 ac_cv_path_SED="$ac_path_SED"
7690 ac_path_SED_max=$ac_count
7691 fi
7692 # 10*(2^10) chars as input seems more than enough
7693 test $ac_count -gt 10 && break
7694 done
7695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7696esac
7697
7698 $ac_path_SED_found && break 3
7699 done
7700 done
7701 done
7702IFS=$as_save_IFS
7703 if test -z "$ac_cv_path_SED"; then
7704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7705 fi
7706else
7707 ac_cv_path_SED=$SED
7708fi
7709
7710fi
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7712$as_echo "$ac_cv_path_SED" >&6; }
7713 SED="$ac_cv_path_SED"
7714 rm -f conftest.sed
7715
7716test -z "$SED" && SED=sed
7717Xsed="$SED -e 1s/^X//"
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7730$as_echo_n "checking for fgrep... " >&6; }
7731if ${ac_cv_path_FGREP+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733else
7734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7735 then ac_cv_path_FGREP="$GREP -F"
7736 else
7737 if test -z "$FGREP"; then
7738 ac_path_FGREP_found=false
7739 # Loop through the user's path and test for each of PROGNAME-LIST
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_prog in fgrep; do
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7748 as_fn_executable_p "$ac_path_FGREP" || continue
7749# Check for GNU ac_path_FGREP and select it if it is found.
7750 # Check for GNU $ac_path_FGREP
7751case `"$ac_path_FGREP" --version 2>&1` in
7752*GNU*)
7753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7754*)
7755 ac_count=0
7756 $as_echo_n 0123456789 >"conftest.in"
7757 while :
7758 do
7759 cat "conftest.in" "conftest.in" >"conftest.tmp"
7760 mv "conftest.tmp" "conftest.in"
7761 cp "conftest.in" "conftest.nl"
7762 $as_echo 'FGREP' >> "conftest.nl"
7763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7765 as_fn_arith $ac_count + 1 && ac_count=$as_val
7766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7767 # Best one so far, save it but keep looking for a better one
7768 ac_cv_path_FGREP="$ac_path_FGREP"
7769 ac_path_FGREP_max=$ac_count
7770 fi
7771 # 10*(2^10) chars as input seems more than enough
7772 test $ac_count -gt 10 && break
7773 done
7774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7775esac
7776
7777 $ac_path_FGREP_found && break 3
7778 done
7779 done
7780 done
7781IFS=$as_save_IFS
7782 if test -z "$ac_cv_path_FGREP"; then
7783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7784 fi
7785else
7786 ac_cv_path_FGREP=$FGREP
7787fi
7788
7789 fi
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7792$as_echo "$ac_cv_path_FGREP" >&6; }
7793 FGREP="$ac_cv_path_FGREP"
7794
7795
7796test -z "$GREP" && GREP=grep
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816# Check whether --with-gnu-ld was given.
7817if test "${with_gnu_ld+set}" = set; then :
7818 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7819else
7820 with_gnu_ld=no
7821fi
7822
7823ac_prog=ld
7824if test yes = "$GCC"; then
7825 # Check if gcc -print-prog-name=ld gives a path.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7827$as_echo_n "checking for ld used by $CC... " >&6; }
7828 case $host in
7829 *-*-mingw*)
7830 # gcc leaves a trailing carriage return, which upsets mingw
7831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7832 *)
7833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7834 esac
7835 case $ac_prog in
7836 # Accept absolute paths.
7837 [\\/]* | ?:[\\/]*)
7838 re_direlt='/[^/][^/]*/\.\./'
7839 # Canonicalize the pathname of ld
7840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7843 done
7844 test -z "$LD" && LD=$ac_prog
7845 ;;
7846 "")
7847 # If it fails, then pretend we aren't using GCC.
7848 ac_prog=ld
7849 ;;
7850 *)
7851 # If it is relative, then search for the first ld in PATH.
7852 with_gnu_ld=unknown
7853 ;;
7854 esac
7855elif test yes = "$with_gnu_ld"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7857$as_echo_n "checking for GNU ld... " >&6; }
7858else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7860$as_echo_n "checking for non-GNU ld... " >&6; }
7861fi
7862if ${lt_cv_path_LD+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864else
7865 if test -z "$LD"; then
7866 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7867 for ac_dir in $PATH; do
7868 IFS=$lt_save_ifs
7869 test -z "$ac_dir" && ac_dir=.
7870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7871 lt_cv_path_LD=$ac_dir/$ac_prog
7872 # Check to see if the program is GNU ld. I'd rather use --version,
7873 # but apparently some variants of GNU ld only accept -v.
7874 # Break only if it was the GNU/non-GNU ld that we prefer.
7875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7876 *GNU* | *'with BFD'*)
7877 test no != "$with_gnu_ld" && break
7878 ;;
7879 *)
7880 test yes != "$with_gnu_ld" && break
7881 ;;
7882 esac
7883 fi
7884 done
7885 IFS=$lt_save_ifs
7886else
7887 lt_cv_path_LD=$LD # Let the user override the test with a path.
7888fi
7889fi
7890
7891LD=$lt_cv_path_LD
7892if test -n "$LD"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7894$as_echo "$LD" >&6; }
7895else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7901$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7902if ${lt_cv_prog_gnu_ld+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904else
7905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7906case `$LD -v 2>&1 </dev/null` in
7907*GNU* | *'with BFD'*)
7908 lt_cv_prog_gnu_ld=yes
7909 ;;
7910*)
7911 lt_cv_prog_gnu_ld=no
7912 ;;
7913esac
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7916$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7917with_gnu_ld=$lt_cv_prog_gnu_ld
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7928$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7929if ${lt_cv_path_NM+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931else
7932 if test -n "$NM"; then
7933 # Let the user override the test.
7934 lt_cv_path_NM=$NM
7935else
7936 lt_nm_to_check=${ac_tool_prefix}nm
7937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7938 lt_nm_to_check="$lt_nm_to_check nm"
7939 fi
7940 for lt_tmp_nm in $lt_nm_to_check; do
7941 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7943 IFS=$lt_save_ifs
7944 test -z "$ac_dir" && ac_dir=.
7945 tmp_nm=$ac_dir/$lt_tmp_nm
7946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7947 # Check to see if the nm accepts a BSD-compat flag.
7948 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7949 # nm: unknown option "B" ignored
7950 # Tru64's nm complains that /dev/null is an invalid object file
7951 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7952 case $build_os in
7953 mingw*) lt_bad_file=conftest.nm/nofile ;;
7954 *) lt_bad_file=/dev/null ;;
7955 esac
7956 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7957 *$lt_bad_file* | *'Invalid file or object type'*)
7958 lt_cv_path_NM="$tmp_nm -B"
7959 break 2
7960 ;;
7961 *)
7962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7963 */dev/null*)
7964 lt_cv_path_NM="$tmp_nm -p"
7965 break 2
7966 ;;
7967 *)
7968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7969 continue # so that we can try to find one that supports BSD flags
7970 ;;
7971 esac
7972 ;;
7973 esac
7974 fi
7975 done
7976 IFS=$lt_save_ifs
7977 done
7978 : ${lt_cv_path_NM=no}
7979fi
7980fi
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7982$as_echo "$lt_cv_path_NM" >&6; }
7983if test no != "$lt_cv_path_NM"; then
7984 NM=$lt_cv_path_NM
7985else
7986 # Didn't find any BSD compatible name lister, look for dumpbin.
7987 if test -n "$DUMPBIN"; then :
7988 # Let the user override the test.
7989 else
7990 if test -n "$ac_tool_prefix"; then
7991 for ac_prog in dumpbin "link -dump"
7992 do
7993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if ${ac_cv_prog_DUMPBIN+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 if test -n "$DUMPBIN"; then
8001 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8013 fi
8014done
8015 done
8016IFS=$as_save_IFS
8017
8018fi
8019fi
8020DUMPBIN=$ac_cv_prog_DUMPBIN
8021if test -n "$DUMPBIN"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8023$as_echo "$DUMPBIN" >&6; }
8024else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030 test -n "$DUMPBIN" && break
8031 done
8032fi
8033if test -z "$DUMPBIN"; then
8034 ac_ct_DUMPBIN=$DUMPBIN
8035 for ac_prog in dumpbin "link -dump"
8036do
8037 # Extract the first word of "$ac_prog", so it can be a program name with args.
8038set dummy $ac_prog; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043else
8044 if test -n "$ac_ct_DUMPBIN"; then
8045 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059 done
8060IFS=$as_save_IFS
8061
8062fi
8063fi
8064ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8065if test -n "$ac_ct_DUMPBIN"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8067$as_echo "$ac_ct_DUMPBIN" >&6; }
8068else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
8072
8073
8074 test -n "$ac_ct_DUMPBIN" && break
8075done
8076
8077 if test "x$ac_ct_DUMPBIN" = x; then
8078 DUMPBIN=":"
8079 else
8080 case $cross_compiling:$ac_tool_warned in
8081yes:)
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084ac_tool_warned=yes ;;
8085esac
8086 DUMPBIN=$ac_ct_DUMPBIN
8087 fi
8088fi
8089
8090 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8091 *COFF*)
8092 DUMPBIN="$DUMPBIN -symbols -headers"
8093 ;;
8094 *)
8095 DUMPBIN=:
8096 ;;
8097 esac
8098 fi
8099
8100 if test : != "$DUMPBIN"; then
8101 NM=$DUMPBIN
8102 fi
8103fi
8104test -z "$NM" && NM=nm
8105
8106
8107
8108
8109
8110
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8112$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8113if ${lt_cv_nm_interface+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115else
8116 lt_cv_nm_interface="BSD nm"
8117 echo "int some_variable = 0;" > conftest.$ac_ext
8118 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8119 (eval "$ac_compile" 2>conftest.err)
8120 cat conftest.err >&5
8121 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8122 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8123 cat conftest.err >&5
8124 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8125 cat conftest.out >&5
8126 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8127 lt_cv_nm_interface="MS dumpbin"
8128 fi
8129 rm -f conftest*
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8132$as_echo "$lt_cv_nm_interface" >&6; }
8133
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8135$as_echo_n "checking whether ln -s works... " >&6; }
8136LN_S=$as_ln_s
8137if test "$LN_S" = "ln -s"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139$as_echo "yes" >&6; }
8140else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8142$as_echo "no, using $LN_S" >&6; }
8143fi
8144
8145# find the maximum length of command line arguments
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8147$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8148if ${lt_cv_sys_max_cmd_len+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150else
8151 i=0
8152 teststring=ABCD
8153
8154 case $build_os in
8155 msdosdjgpp*)
8156 # On DJGPP, this test can blow up pretty badly due to problems in libc
8157 # (any single argument exceeding 2000 bytes causes a buffer overrun
8158 # during glob expansion). Even if it were fixed, the result of this
8159 # check would be larger than it should be.
8160 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8161 ;;
8162
8163 gnu*)
8164 # Under GNU Hurd, this test is not required because there is
8165 # no limit to the length of command line arguments.
8166 # Libtool will interpret -1 as no limit whatsoever
8167 lt_cv_sys_max_cmd_len=-1;
8168 ;;
8169
8170 cygwin* | mingw* | cegcc*)
8171 # On Win9x/ME, this test blows up -- it succeeds, but takes
8172 # about 5 minutes as the teststring grows exponentially.
8173 # Worse, since 9x/ME are not pre-emptively multitasking,
8174 # you end up with a "frozen" computer, even though with patience
8175 # the test eventually succeeds (with a max line length of 256k).
8176 # Instead, let's just punt: use the minimum linelength reported by
8177 # all of the supported platforms: 8192 (on NT/2K/XP).
8178 lt_cv_sys_max_cmd_len=8192;
8179 ;;
8180
8181 mint*)
8182 # On MiNT this can take a long time and run out of memory.
8183 lt_cv_sys_max_cmd_len=8192;
8184 ;;
8185
8186 amigaos*)
8187 # On AmigaOS with pdksh, this test takes hours, literally.
8188 # So we just punt and use a minimum line length of 8192.
8189 lt_cv_sys_max_cmd_len=8192;
8190 ;;
8191
8192 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8193 # This has been around since 386BSD, at least. Likely further.
8194 if test -x /sbin/sysctl; then
8195 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8196 elif test -x /usr/sbin/sysctl; then
8197 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8198 else
8199 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8200 fi
8201 # And add a safety zone
8202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8204 ;;
8205
8206 interix*)
8207 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8208 lt_cv_sys_max_cmd_len=196608
8209 ;;
8210
8211 os2*)
8212 # The test takes a long time on OS/2.
8213 lt_cv_sys_max_cmd_len=8192
8214 ;;
8215
8216 osf*)
8217 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8218 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8219 # nice to cause kernel panics so lets avoid the loop below.
8220 # First set a reasonable default.
8221 lt_cv_sys_max_cmd_len=16384
8222 #
8223 if test -x /sbin/sysconfig; then
8224 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8225 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8226 esac
8227 fi
8228 ;;
8229 sco3.2v5*)
8230 lt_cv_sys_max_cmd_len=102400
8231 ;;
8232 sysv5* | sco5v6* | sysv4.2uw2*)
8233 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8234 if test -n "$kargmax"; then
8235 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8236 else
8237 lt_cv_sys_max_cmd_len=32768
8238 fi
8239 ;;
8240 *)
8241 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8242 if test -n "$lt_cv_sys_max_cmd_len" && \
8243 test undefined != "$lt_cv_sys_max_cmd_len"; then
8244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8246 else
8247 # Make teststring a little bigger before we do anything with it.
8248 # a 1K string should be a reasonable start.
8249 for i in 1 2 3 4 5 6 7 8; do
8250 teststring=$teststring$teststring
8251 done
8252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8253 # If test is not a shell built-in, we'll probably end up computing a
8254 # maximum length that is only half of the actual maximum length, but
8255 # we can't tell.
8256 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8257 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8258 test 17 != "$i" # 1/2 MB should be enough
8259 do
8260 i=`expr $i + 1`
8261 teststring=$teststring$teststring
8262 done
8263 # Only check the string length outside the loop.
8264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8265 teststring=
8266 # Add a significant safety factor because C++ compilers can tack on
8267 # massive amounts of additional arguments before passing them to the
8268 # linker. It appears as though 1/2 is a usable value.
8269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8270 fi
8271 ;;
8272 esac
8273
8274fi
8275
8276if test -n "$lt_cv_sys_max_cmd_len"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8278$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8279else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8281$as_echo "none" >&6; }
8282fi
8283max_cmd_len=$lt_cv_sys_max_cmd_len
8284
8285
8286
8287
8288
8289
8290: ${CP="cp -f"}
8291: ${MV="mv -f"}
8292: ${RM="rm -f"}
8293
8294if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8295 lt_unset=unset
8296else
8297 lt_unset=false
8298fi
8299
8300
8301
8302
8303
8304# test EBCDIC or ASCII
8305case `echo X|tr X '\101'` in
8306 A) # ASCII based system
8307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8308 lt_SP2NL='tr \040 \012'
8309 lt_NL2SP='tr \015\012 \040\040'
8310 ;;
8311 *) # EBCDIC based system
8312 lt_SP2NL='tr \100 \n'
8313 lt_NL2SP='tr \r\n \100\100'
8314 ;;
8315esac
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8326$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8327if ${lt_cv_to_host_file_cmd+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329else
8330 case $host in
8331 *-*-mingw* )
8332 case $build in
8333 *-*-mingw* ) # actually msys
8334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8335 ;;
8336 *-*-cygwin* )
8337 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8338 ;;
8339 * ) # otherwise, assume *nix
8340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8341 ;;
8342 esac
8343 ;;
8344 *-*-cygwin* )
8345 case $build in
8346 *-*-mingw* ) # actually msys
8347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8348 ;;
8349 *-*-cygwin* )
8350 lt_cv_to_host_file_cmd=func_convert_file_noop
8351 ;;
8352 * ) # otherwise, assume *nix
8353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8354 ;;
8355 esac
8356 ;;
8357 * ) # unhandled hosts (and "normal" native builds)
8358 lt_cv_to_host_file_cmd=func_convert_file_noop
8359 ;;
8360esac
8361
8362fi
8363
8364to_host_file_cmd=$lt_cv_to_host_file_cmd
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8366$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8367
8368
8369
8370
8371
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8373$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8374if ${lt_cv_to_tool_file_cmd+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376else
8377 #assume ordinary cross tools, or native build.
8378lt_cv_to_tool_file_cmd=func_convert_file_noop
8379case $host in
8380 *-*-mingw* )
8381 case $build in
8382 *-*-mingw* ) # actually msys
8383 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8384 ;;
8385 esac
8386 ;;
8387esac
8388
8389fi
8390
8391to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8393$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8394
8395
8396
8397
8398
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8400$as_echo_n "checking for $LD option to reload object files... " >&6; }
8401if ${lt_cv_ld_reload_flag+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403else
8404 lt_cv_ld_reload_flag='-r'
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8407$as_echo "$lt_cv_ld_reload_flag" >&6; }
8408reload_flag=$lt_cv_ld_reload_flag
8409case $reload_flag in
8410"" | " "*) ;;
8411*) reload_flag=" $reload_flag" ;;
8412esac
8413reload_cmds='$LD$reload_flag -o $output$reload_objs'
8414case $host_os in
8415 cygwin* | mingw* | pw32* | cegcc*)
8416 if test yes != "$GCC"; then
8417 reload_cmds=false
8418 fi
8419 ;;
8420 darwin*)
8421 if test yes = "$GCC"; then
8422 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8423 else
8424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8425 fi
8426 ;;
8427esac
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437if test -n "$ac_tool_prefix"; then
8438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8439set dummy ${ac_tool_prefix}objdump; ac_word=$2
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441$as_echo_n "checking for $ac_word... " >&6; }
8442if ${ac_cv_prog_OBJDUMP+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444else
8445 if test -n "$OBJDUMP"; then
8446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8447else
8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460 done
8461IFS=$as_save_IFS
8462
8463fi
8464fi
8465OBJDUMP=$ac_cv_prog_OBJDUMP
8466if test -n "$OBJDUMP"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8468$as_echo "$OBJDUMP" >&6; }
8469else
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471$as_echo "no" >&6; }
8472fi
8473
8474
8475fi
8476if test -z "$ac_cv_prog_OBJDUMP"; then
8477 ac_ct_OBJDUMP=$OBJDUMP
8478 # Extract the first word of "objdump", so it can be a program name with args.
8479set dummy objdump; ac_word=$2
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481$as_echo_n "checking for $ac_word... " >&6; }
8482if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484else
8485 if test -n "$ac_ct_OBJDUMP"; then
8486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8487else
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8498 fi
8499done
8500 done
8501IFS=$as_save_IFS
8502
8503fi
8504fi
8505ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8506if test -n "$ac_ct_OBJDUMP"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8508$as_echo "$ac_ct_OBJDUMP" >&6; }
8509else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
8512fi
8513
8514 if test "x$ac_ct_OBJDUMP" = x; then
8515 OBJDUMP="false"
8516 else
8517 case $cross_compiling:$ac_tool_warned in
8518yes:)
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8521ac_tool_warned=yes ;;
8522esac
8523 OBJDUMP=$ac_ct_OBJDUMP
8524 fi
8525else
8526 OBJDUMP="$ac_cv_prog_OBJDUMP"
8527fi
8528
8529test -z "$OBJDUMP" && OBJDUMP=objdump
8530
8531
8532
8533
8534
8535
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8537$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8538if ${lt_cv_deplibs_check_method+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540else
8541 lt_cv_file_magic_cmd='$MAGIC_CMD'
8542lt_cv_file_magic_test_file=
8543lt_cv_deplibs_check_method='unknown'
8544# Need to set the preceding variable on all platforms that support
8545# interlibrary dependencies.
8546# 'none' -- dependencies not supported.
8547# 'unknown' -- same as none, but documents that we really don't know.
8548# 'pass_all' -- all dependencies passed with no checks.
8549# 'test_compile' -- check by making test program.
8550# 'file_magic [[regex]]' -- check by looking for files in library path
8551# that responds to the $file_magic_cmd with a given extended regex.
8552# If you have 'file' or equivalent on your system and you're not sure
8553# whether 'pass_all' will *always* work, you probably want this one.
8554
8555case $host_os in
8556aix[4-9]*)
8557 lt_cv_deplibs_check_method=pass_all
8558 ;;
8559
8560beos*)
8561 lt_cv_deplibs_check_method=pass_all
8562 ;;
8563
8564bsdi[45]*)
8565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8566 lt_cv_file_magic_cmd='/usr/bin/file -L'
8567 lt_cv_file_magic_test_file=/shlib/libc.so
8568 ;;
8569
8570cygwin*)
8571 # func_win32_libid is a shell function defined in ltmain.sh
8572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8573 lt_cv_file_magic_cmd='func_win32_libid'
8574 ;;
8575
8576mingw* | pw32*)
8577 # Base MSYS/MinGW do not provide the 'file' command needed by
8578 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8579 # unless we find 'file', for example because we are cross-compiling.
8580 if ( file / ) >/dev/null 2>&1; then
8581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8582 lt_cv_file_magic_cmd='func_win32_libid'
8583 else
8584 # Keep this pattern in sync with the one in func_win32_libid.
8585 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8586 lt_cv_file_magic_cmd='$OBJDUMP -f'
8587 fi
8588 ;;
8589
8590cegcc*)
8591 # use the weaker test based on 'objdump'. See mingw*.
8592 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8593 lt_cv_file_magic_cmd='$OBJDUMP -f'
8594 ;;
8595
8596darwin* | rhapsody*)
8597 lt_cv_deplibs_check_method=pass_all
8598 ;;
8599
8600freebsd* | dragonfly*)
8601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8602 case $host_cpu in
8603 i*86 )
8604 # Not sure whether the presence of OpenBSD here was a mistake.
8605 # Let's accept both of them until this is cleared up.
8606 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8607 lt_cv_file_magic_cmd=/usr/bin/file
8608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8609 ;;
8610 esac
8611 else
8612 lt_cv_deplibs_check_method=pass_all
8613 fi
8614 ;;
8615
8616haiku*)
8617 lt_cv_deplibs_check_method=pass_all
8618 ;;
8619
8620hpux10.20* | hpux11*)
8621 lt_cv_file_magic_cmd=/usr/bin/file
8622 case $host_cpu in
8623 ia64*)
8624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8626 ;;
8627 hppa*64*)
8628 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]'
8629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8630 ;;
8631 *)
8632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8634 ;;
8635 esac
8636 ;;
8637
8638interix[3-9]*)
8639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8641 ;;
8642
8643irix5* | irix6* | nonstopux*)
8644 case $LD in
8645 *-32|*"-32 ") libmagic=32-bit;;
8646 *-n32|*"-n32 ") libmagic=N32;;
8647 *-64|*"-64 ") libmagic=64-bit;;
8648 *) libmagic=never-match;;
8649 esac
8650 lt_cv_deplibs_check_method=pass_all
8651 ;;
8652
8653# This must be glibc/ELF.
8654linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8655 lt_cv_deplibs_check_method=pass_all
8656 ;;
8657
8658netbsd* | netbsdelf*-gnu)
8659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8661 else
8662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8663 fi
8664 ;;
8665
8666newos6*)
8667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8668 lt_cv_file_magic_cmd=/usr/bin/file
8669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8670 ;;
8671
8672*nto* | *qnx*)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675
8676openbsd* | bitrig*)
8677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8679 else
8680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8681 fi
8682 ;;
8683
8684osf3* | osf4* | osf5*)
8685 lt_cv_deplibs_check_method=pass_all
8686 ;;
8687
8688rdos*)
8689 lt_cv_deplibs_check_method=pass_all
8690 ;;
8691
8692solaris*)
8693 lt_cv_deplibs_check_method=pass_all
8694 ;;
8695
8696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8697 lt_cv_deplibs_check_method=pass_all
8698 ;;
8699
8700sysv4 | sysv4.3*)
8701 case $host_vendor in
8702 motorola)
8703 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]'
8704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8705 ;;
8706 ncr)
8707 lt_cv_deplibs_check_method=pass_all
8708 ;;
8709 sequent)
8710 lt_cv_file_magic_cmd='/bin/file'
8711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8712 ;;
8713 sni)
8714 lt_cv_file_magic_cmd='/bin/file'
8715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8716 lt_cv_file_magic_test_file=/lib/libc.so
8717 ;;
8718 siemens)
8719 lt_cv_deplibs_check_method=pass_all
8720 ;;
8721 pc)
8722 lt_cv_deplibs_check_method=pass_all
8723 ;;
8724 esac
8725 ;;
8726
8727tpf*)
8728 lt_cv_deplibs_check_method=pass_all
8729 ;;
8730os2*)
8731 lt_cv_deplibs_check_method=pass_all
8732 ;;
8733esac
8734
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8737$as_echo "$lt_cv_deplibs_check_method" >&6; }
8738
8739file_magic_glob=
8740want_nocaseglob=no
8741if test "$build" = "$host"; then
8742 case $host_os in
8743 mingw* | pw32*)
8744 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8745 want_nocaseglob=yes
8746 else
8747 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8748 fi
8749 ;;
8750 esac
8751fi
8752
8753file_magic_cmd=$lt_cv_file_magic_cmd
8754deplibs_check_method=$lt_cv_deplibs_check_method
8755test -z "$deplibs_check_method" && deplibs_check_method=unknown
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8780set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$DLLTOOL"; then
8787 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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
8806DLLTOOL=$ac_cv_prog_DLLTOOL
8807if test -n "$DLLTOOL"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8809$as_echo "$DLLTOOL" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816fi
8817if test -z "$ac_cv_prog_DLLTOOL"; then
8818 ac_ct_DLLTOOL=$DLLTOOL
8819 # Extract the first word of "dlltool", so it can be a program name with args.
8820set dummy dlltool; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 if test -n "$ac_ct_DLLTOOL"; then
8827 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840done
8841 done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8847if test -n "$ac_ct_DLLTOOL"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8849$as_echo "$ac_ct_DLLTOOL" >&6; }
8850else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855 if test "x$ac_ct_DLLTOOL" = x; then
8856 DLLTOOL="false"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859yes:)
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862ac_tool_warned=yes ;;
8863esac
8864 DLLTOOL=$ac_ct_DLLTOOL
8865 fi
8866else
8867 DLLTOOL="$ac_cv_prog_DLLTOOL"
8868fi
8869
8870test -z "$DLLTOOL" && DLLTOOL=dlltool
8871
8872
8873
8874
8875
8876
8877
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8879$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8880if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882else
8883 lt_cv_sharedlib_from_linklib_cmd='unknown'
8884
8885case $host_os in
8886cygwin* | mingw* | pw32* | cegcc*)
8887 # two different shell functions defined in ltmain.sh;
8888 # decide which one to use based on capabilities of $DLLTOOL
8889 case `$DLLTOOL --help 2>&1` in
8890 *--identify-strict*)
8891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8892 ;;
8893 *)
8894 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8895 ;;
8896 esac
8897 ;;
8898*)
8899 # fallback: assume linklib IS sharedlib
8900 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8901 ;;
8902esac
8903
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8906$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8907sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8908test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8909
8910
8911
8912
8913
8914
8915
8916if test -n "$ac_tool_prefix"; then
8917 for ac_prog in ar
8918 do
8919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if ${ac_cv_prog_AR+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925else
8926 if test -n "$AR"; then
8927 ac_cv_prog_AR="$AR" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8939 fi
8940done
8941 done
8942IFS=$as_save_IFS
8943
8944fi
8945fi
8946AR=$ac_cv_prog_AR
8947if test -n "$AR"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8949$as_echo "$AR" >&6; }
8950else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
8955
8956 test -n "$AR" && break
8957 done
8958fi
8959if test -z "$AR"; then
8960 ac_ct_AR=$AR
8961 for ac_prog in ar
8962do
8963 # Extract the first word of "$ac_prog", so it can be a program name with args.
8964set dummy $ac_prog; ac_word=$2
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966$as_echo_n "checking for $ac_word... " >&6; }
8967if ${ac_cv_prog_ac_ct_AR+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969else
8970 if test -n "$ac_ct_AR"; then
8971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8972else
8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974for as_dir in $PATH
8975do
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_ac_ct_AR="$ac_prog"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8983 fi
8984done
8985 done
8986IFS=$as_save_IFS
8987
8988fi
8989fi
8990ac_ct_AR=$ac_cv_prog_ac_ct_AR
8991if test -n "$ac_ct_AR"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8993$as_echo "$ac_ct_AR" >&6; }
8994else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996$as_echo "no" >&6; }
8997fi
8998
8999
9000 test -n "$ac_ct_AR" && break
9001done
9002
9003 if test "x$ac_ct_AR" = x; then
9004 AR="false"
9005 else
9006 case $cross_compiling:$ac_tool_warned in
9007yes:)
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010ac_tool_warned=yes ;;
9011esac
9012 AR=$ac_ct_AR
9013 fi
9014fi
9015
9016: ${AR=ar}
9017: ${AR_FLAGS=cru}
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9030$as_echo_n "checking for archiver @FILE support... " >&6; }
9031if ${lt_cv_ar_at_file+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033else
9034 lt_cv_ar_at_file=no
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h. */
9037
9038int main (void)
9039{
9040
9041 ;
9042 return 0;
9043}
9044_ACEOF
9045if ac_fn_c_try_compile "$LINENO"; then :
9046 echo conftest.$ac_objext > conftest.lst
9047 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9049 (eval $lt_ar_try) 2>&5
9050 ac_status=$?
9051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9052 test $ac_status = 0; }
9053 if test 0 -eq "$ac_status"; then
9054 # Ensure the archiver fails upon bogus file names.
9055 rm -f conftest.$ac_objext libconftest.a
9056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9057 (eval $lt_ar_try) 2>&5
9058 ac_status=$?
9059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9060 test $ac_status = 0; }
9061 if test 0 -ne "$ac_status"; then
9062 lt_cv_ar_at_file=@
9063 fi
9064 fi
9065 rm -f conftest.* libconftest.a
9066
9067fi
9068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9072$as_echo "$lt_cv_ar_at_file" >&6; }
9073
9074if test no = "$lt_cv_ar_at_file"; then
9075 archiver_list_spec=
9076else
9077 archiver_list_spec=$lt_cv_ar_at_file
9078fi
9079
9080
9081
9082
9083
9084
9085
9086if test -n "$ac_tool_prefix"; then
9087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9088set dummy ${ac_tool_prefix}strip; ac_word=$2
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090$as_echo_n "checking for $ac_word... " >&6; }
9091if ${ac_cv_prog_STRIP+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093else
9094 if test -n "$STRIP"; then
9095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9096else
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9107 fi
9108done
9109 done
9110IFS=$as_save_IFS
9111
9112fi
9113fi
9114STRIP=$ac_cv_prog_STRIP
9115if test -n "$STRIP"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9117$as_echo "$STRIP" >&6; }
9118else
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120$as_echo "no" >&6; }
9121fi
9122
9123
9124fi
9125if test -z "$ac_cv_prog_STRIP"; then
9126 ac_ct_STRIP=$STRIP
9127 # Extract the first word of "strip", so it can be a program name with args.
9128set dummy strip; ac_word=$2
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130$as_echo_n "checking for $ac_word... " >&6; }
9131if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133else
9134 if test -n "$ac_ct_STRIP"; then
9135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9136else
9137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138for as_dir in $PATH
9139do
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144 ac_cv_prog_ac_ct_STRIP="strip"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9147 fi
9148done
9149 done
9150IFS=$as_save_IFS
9151
9152fi
9153fi
9154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9155if test -n "$ac_ct_STRIP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9157$as_echo "$ac_ct_STRIP" >&6; }
9158else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160$as_echo "no" >&6; }
9161fi
9162
9163 if test "x$ac_ct_STRIP" = x; then
9164 STRIP=":"
9165 else
9166 case $cross_compiling:$ac_tool_warned in
9167yes:)
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170ac_tool_warned=yes ;;
9171esac
9172 STRIP=$ac_ct_STRIP
9173 fi
9174else
9175 STRIP="$ac_cv_prog_STRIP"
9176fi
9177
9178test -z "$STRIP" && STRIP=:
9179
9180
9181
9182
9183
9184
9185if test -n "$ac_tool_prefix"; then
9186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9187set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189$as_echo_n "checking for $ac_word... " >&6; }
9190if ${ac_cv_prog_RANLIB+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192else
9193 if test -n "$RANLIB"; then
9194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9195else
9196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197for as_dir in $PATH
9198do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207done
9208 done
9209IFS=$as_save_IFS
9210
9211fi
9212fi
9213RANLIB=$ac_cv_prog_RANLIB
9214if test -n "$RANLIB"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9216$as_echo "$RANLIB" >&6; }
9217else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219$as_echo "no" >&6; }
9220fi
9221
9222
9223fi
9224if test -z "$ac_cv_prog_RANLIB"; then
9225 ac_ct_RANLIB=$RANLIB
9226 # Extract the first word of "ranlib", so it can be a program name with args.
9227set dummy ranlib; ac_word=$2
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229$as_echo_n "checking for $ac_word... " >&6; }
9230if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232else
9233 if test -n "$ac_ct_RANLIB"; then
9234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9235else
9236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237for as_dir in $PATH
9238do
9239 IFS=$as_save_IFS
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_ac_ct_RANLIB="ranlib"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 break 2
9246 fi
9247done
9248 done
9249IFS=$as_save_IFS
9250
9251fi
9252fi
9253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9254if test -n "$ac_ct_RANLIB"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9256$as_echo "$ac_ct_RANLIB" >&6; }
9257else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259$as_echo "no" >&6; }
9260fi
9261
9262 if test "x$ac_ct_RANLIB" = x; then
9263 RANLIB=":"
9264 else
9265 case $cross_compiling:$ac_tool_warned in
9266yes:)
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269ac_tool_warned=yes ;;
9270esac
9271 RANLIB=$ac_ct_RANLIB
9272 fi
9273else
9274 RANLIB="$ac_cv_prog_RANLIB"
9275fi
9276
9277test -z "$RANLIB" && RANLIB=:
9278
9279
9280
9281
9282
9283
9284# Determine commands to create old-style static archives.
9285old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9286old_postinstall_cmds='chmod 644 $oldlib'
9287old_postuninstall_cmds=
9288
9289if test -n "$RANLIB"; then
9290 case $host_os in
9291 bitrig* | openbsd*)
9292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9293 ;;
9294 *)
9295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9296 ;;
9297 esac
9298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9299fi
9300
9301case $host_os in
9302 darwin*)
9303 lock_old_archive_extraction=yes ;;
9304 *)
9305 lock_old_archive_extraction=no ;;
9306esac
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346# If no C compiler was specified, use CC.
9347LTCC=${LTCC-"$CC"}
9348
9349# If no C compiler flags were specified, use CFLAGS.
9350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9351
9352# Allow CC to be a program name with arguments.
9353compiler=$CC
9354
9355
9356# Check for command to grab the raw symbol name followed by C symbol from nm.
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9358$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9359if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361else
9362
9363# These are sane defaults that work on at least a few old systems.
9364# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9365
9366# Character class describing NM global symbol codes.
9367symcode='[BCDEGRST]'
9368
9369# Regexp to match symbols that can be accessed directly from C.
9370sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9371
9372# Define system-specific variables.
9373case $host_os in
9374aix*)
9375 symcode='[BCDT]'
9376 ;;
9377cygwin* | mingw* | pw32* | cegcc*)
9378 symcode='[ABCDGISTW]'
9379 ;;
9380hpux*)
9381 if test ia64 = "$host_cpu"; then
9382 symcode='[ABCDEGRST]'
9383 fi
9384 ;;
9385irix* | nonstopux*)
9386 symcode='[BCDEGRST]'
9387 ;;
9388osf*)
9389 symcode='[BCDEGQRST]'
9390 ;;
9391solaris*)
9392 symcode='[BDRT]'
9393 ;;
9394sco3.2v5*)
9395 symcode='[DT]'
9396 ;;
9397sysv4.2uw2*)
9398 symcode='[DT]'
9399 ;;
9400sysv5* | sco5v6* | unixware* | OpenUNIX*)
9401 symcode='[ABDT]'
9402 ;;
9403sysv4)
9404 symcode='[DFNSTU]'
9405 ;;
9406esac
9407
9408# If we're using GNU nm, then use its standard symbol codes.
9409case `$NM -V 2>&1` in
9410*GNU* | *'with BFD'*)
9411 symcode='[ABCDGIRSTW]' ;;
9412esac
9413
9414if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9415 # Gets list of data symbols to import.
9416 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9417 # Adjust the below global symbol transforms to fixup imported variables.
9418 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9419 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9420 lt_c_name_lib_hook="\
9421 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9422 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9423else
9424 # Disable hooks by default.
9425 lt_cv_sys_global_symbol_to_import=
9426 lt_cdecl_hook=
9427 lt_c_name_hook=
9428 lt_c_name_lib_hook=
9429fi
9430
9431# Transform an extracted symbol line into a proper C declaration.
9432# Some systems (esp. on ia64) link data and code symbols differently,
9433# so use this general approach.
9434lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9435$lt_cdecl_hook\
9436" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9437" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9438
9439# Transform an extracted symbol line into symbol name and symbol address
9440lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9441$lt_c_name_hook\
9442" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9443" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9444
9445# Transform an extracted symbol line into symbol name with lib prefix and
9446# symbol address.
9447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9448$lt_c_name_lib_hook\
9449" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9450" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9451" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9452
9453# Handle CRLF in mingw tool chain
9454opt_cr=
9455case $build_os in
9456mingw*)
9457 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9458 ;;
9459esac
9460
9461# Try without a prefix underscore, then with it.
9462for ac_symprfx in "" "_"; do
9463
9464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9465 symxfrm="\\1 $ac_symprfx\\2 \\2"
9466
9467 # Write the raw and C identifiers.
9468 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9469 # Fake it for dumpbin and say T for any non-static function,
9470 # D for any global variable and I for any imported variable.
9471 # Also find C++ and __fastcall symbols from MSVC++,
9472 # which start with @ or ?.
9473 lt_cv_sys_global_symbol_pipe="$AWK '"\
9474" {last_section=section; section=\$ 3};"\
9475" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9476" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9477" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9478" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9479" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9480" \$ 0!~/External *\|/{next};"\
9481" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9482" {if(hide[section]) next};"\
9483" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9484" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9485" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9486" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9487" ' prfx=^$ac_symprfx"
9488 else
9489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9490 fi
9491 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9492
9493 # Check to see that the pipe works correctly.
9494 pipe_works=no
9495
9496 rm -f conftest*
9497 cat > conftest.$ac_ext <<_LT_EOF
9498#ifdef __cplusplus
9499extern "C" {
9500#endif
9501char nm_test_var;
9502void nm_test_func(void);
9503void nm_test_func(void){}
9504#ifdef __cplusplus
9505}
9506#endif
9507int main(){nm_test_var='a';nm_test_func();return(0);}
9508_LT_EOF
9509
9510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511 (eval $ac_compile) 2>&5
9512 ac_status=$?
9513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514 test $ac_status = 0; }; then
9515 # Now try to grab the symbols.
9516 nlist=conftest.nm
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9518 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9519 ac_status=$?
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; } && test -s "$nlist"; then
9522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9525 else
9526 rm -f "$nlist"T
9527 fi
9528
9529 # Make sure that we snagged all the symbols we need.
9530 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9531 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<_LT_EOF > conftest.$ac_ext
9533/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9534#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9535/* DATA imports from DLLs on WIN32 can't be const, because runtime
9536 relocations are performed -- see ld's documentation on pseudo-relocs. */
9537# define LT_DLSYM_CONST
9538#elif defined __osf__
9539/* This system does not cope well with relocations in const data. */
9540# define LT_DLSYM_CONST
9541#else
9542# define LT_DLSYM_CONST const
9543#endif
9544
9545#ifdef __cplusplus
9546extern "C" {
9547#endif
9548
9549_LT_EOF
9550 # Now generate the symbol file.
9551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9552
9553 cat <<_LT_EOF >> conftest.$ac_ext
9554
9555/* The mapping between symbol names and symbols. */
9556LT_DLSYM_CONST struct {
9557 const char *name;
9558 void *address;
9559}
9560lt__PROGRAM__LTX_preloaded_symbols[] =
9561{
9562 { "@PROGRAM@", (void *) 0 },
9563_LT_EOF
9564 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9565 cat <<\_LT_EOF >> conftest.$ac_ext
9566 {0, (void *) 0}
9567};
9568
9569/* This works around a problem in FreeBSD linker */
9570#ifdef FREEBSD_WORKAROUND
9571static const void *lt_preloaded_setup() {
9572 return lt__PROGRAM__LTX_preloaded_symbols;
9573}
9574#endif
9575
9576#ifdef __cplusplus
9577}
9578#endif
9579_LT_EOF
9580 # Now try linking the two files.
9581 mv -f conftest.$ac_objext conftstm.$ac_objext
9582 lt_globsym_save_LIBS=$LIBS
9583 lt_globsym_save_CFLAGS=$CFLAGS
9584 LIBS=conftstm.$ac_objext
9585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9587 (eval $ac_link) 2>&5
9588 ac_status=$?
9589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9590 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9591 pipe_works=yes
9592 fi
9593 LIBS=$lt_globsym_save_LIBS
9594 CFLAGS=$lt_globsym_save_CFLAGS
9595 else
9596 echo "cannot find nm_test_func in $nlist" >&5
9597 fi
9598 else
9599 echo "cannot find nm_test_var in $nlist" >&5
9600 fi
9601 else
9602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9603 fi
9604 else
9605 echo "$progname: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 fi
9608 rm -rf conftest* conftst*
9609
9610 # Do not use the global_symbol_pipe unless it works.
9611 if test yes = "$pipe_works"; then
9612 break
9613 else
9614 lt_cv_sys_global_symbol_pipe=
9615 fi
9616done
9617
9618fi
9619
9620if test -z "$lt_cv_sys_global_symbol_pipe"; then
9621 lt_cv_sys_global_symbol_to_cdecl=
9622fi
9623if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9625$as_echo "failed" >&6; }
9626else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9628$as_echo "ok" >&6; }
9629fi
9630
9631# Response file support.
9632if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9633 nm_file_list_spec='@'
9634elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9635 nm_file_list_spec='@'
9636fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9675$as_echo_n "checking for sysroot... " >&6; }
9676
9677# Check whether --with-sysroot was given.
9678if test "${with_sysroot+set}" = set; then :
9679 withval=$with_sysroot;
9680else
9681 with_sysroot=no
9682fi
9683
9684
9685lt_sysroot=
9686case $with_sysroot in #(
9687 yes)
9688 if test yes = "$GCC"; then
9689 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9690 fi
9691 ;; #(
9692 /*)
9693 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9694 ;; #(
9695 no|'')
9696 ;; #(
9697 *)
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9699$as_echo "$with_sysroot" >&6; }
9700 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9701 ;;
9702esac
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9705$as_echo "${lt_sysroot:-no}" >&6; }
9706
9707
9708
9709
9710
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9712$as_echo_n "checking for a working dd... " >&6; }
9713if ${ac_cv_path_lt_DD+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715else
9716 printf 0123456789abcdef0123456789abcdef >conftest.i
9717cat conftest.i conftest.i >conftest2.i
9718: ${lt_DD:=$DD}
9719if test -z "$lt_DD"; then
9720 ac_path_lt_DD_found=false
9721 # Loop through the user's path and test for each of PROGNAME-LIST
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_prog in dd; do
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9730 as_fn_executable_p "$ac_path_lt_DD" || continue
9731if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9732 cmp -s conftest.i conftest.out \
9733 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9734fi
9735 $ac_path_lt_DD_found && break 3
9736 done
9737 done
9738 done
9739IFS=$as_save_IFS
9740 if test -z "$ac_cv_path_lt_DD"; then
9741 :
9742 fi
9743else
9744 ac_cv_path_lt_DD=$lt_DD
9745fi
9746
9747rm -f conftest.i conftest2.i conftest.out
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9750$as_echo "$ac_cv_path_lt_DD" >&6; }
9751
9752
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9754$as_echo_n "checking how to truncate binary pipes... " >&6; }
9755if ${lt_cv_truncate_bin+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757else
9758 printf 0123456789abcdef0123456789abcdef >conftest.i
9759cat conftest.i conftest.i >conftest2.i
9760lt_cv_truncate_bin=
9761if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9762 cmp -s conftest.i conftest.out \
9763 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9764fi
9765rm -f conftest.i conftest2.i conftest.out
9766test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9769$as_echo "$lt_cv_truncate_bin" >&6; }
9770
9771
9772
9773
9774
9775
9776
9777# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9778func_cc_basename ()
9779{
9780 for cc_temp in $*""; do
9781 case $cc_temp in
9782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9784 \-*) ;;
9785 *) break;;
9786 esac
9787 done
9788 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9789}
9790
9791# Check whether --enable-libtool-lock was given.
9792if test "${enable_libtool_lock+set}" = set; then :
9793 enableval=$enable_libtool_lock;
9794fi
9795
9796test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9797
9798# Some flags need to be propagated to the compiler or linker for good
9799# libtool support.
9800case $host in
9801ia64-*-hpux*)
9802 # Find out what ABI is being produced by ac_compile, and set mode
9803 # options accordingly.
9804 echo 'int i;' > conftest.$ac_ext
9805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9806 (eval $ac_compile) 2>&5
9807 ac_status=$?
9808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809 test $ac_status = 0; }; then
9810 case `/usr/bin/file conftest.$ac_objext` in
9811 *ELF-32*)
9812 HPUX_IA64_MODE=32
9813 ;;
9814 *ELF-64*)
9815 HPUX_IA64_MODE=64
9816 ;;
9817 esac
9818 fi
9819 rm -rf conftest*
9820 ;;
9821*-*-irix6*)
9822 # Find out what ABI is being produced by ac_compile, and set linker
9823 # options accordingly.
9824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; }; then
9830 if test yes = "$lt_cv_prog_gnu_ld"; then
9831 case `/usr/bin/file conftest.$ac_objext` in
9832 *32-bit*)
9833 LD="${LD-ld} -melf32bsmip"
9834 ;;
9835 *N32*)
9836 LD="${LD-ld} -melf32bmipn32"
9837 ;;
9838 *64-bit*)
9839 LD="${LD-ld} -melf64bmip"
9840 ;;
9841 esac
9842 else
9843 case `/usr/bin/file conftest.$ac_objext` in
9844 *32-bit*)
9845 LD="${LD-ld} -32"
9846 ;;
9847 *N32*)
9848 LD="${LD-ld} -n32"
9849 ;;
9850 *64-bit*)
9851 LD="${LD-ld} -64"
9852 ;;
9853 esac
9854 fi
9855 fi
9856 rm -rf conftest*
9857 ;;
9858
9859mips64*-*linux*)
9860 # Find out what ABI is being produced by ac_compile, and set linker
9861 # options accordingly.
9862 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864 (eval $ac_compile) 2>&5
9865 ac_status=$?
9866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867 test $ac_status = 0; }; then
9868 emul=elf
9869 case `/usr/bin/file conftest.$ac_objext` in
9870 *32-bit*)
9871 emul="${emul}32"
9872 ;;
9873 *64-bit*)
9874 emul="${emul}64"
9875 ;;
9876 esac
9877 case `/usr/bin/file conftest.$ac_objext` in
9878 *MSB*)
9879 emul="${emul}btsmip"
9880 ;;
9881 *LSB*)
9882 emul="${emul}ltsmip"
9883 ;;
9884 esac
9885 case `/usr/bin/file conftest.$ac_objext` in
9886 *N32*)
9887 emul="${emul}n32"
9888 ;;
9889 esac
9890 LD="${LD-ld} -m $emul"
9891 fi
9892 rm -rf conftest*
9893 ;;
9894
9895x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9896s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9897 # Find out what ABI is being produced by ac_compile, and set linker
9898 # options accordingly. Note that the listed cases only cover the
9899 # situations where additional linker options are needed (such as when
9900 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9901 # vice versa); the common cases where no linker options are needed do
9902 # not appear in the list.
9903 echo 'int i;' > conftest.$ac_ext
9904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9905 (eval $ac_compile) 2>&5
9906 ac_status=$?
9907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9908 test $ac_status = 0; }; then
9909 case `/usr/bin/file conftest.o` in
9910 *32-bit*)
9911 case $host in
9912 x86_64-*kfreebsd*-gnu)
9913 LD="${LD-ld} -m elf_i386_fbsd"
9914 ;;
9915 x86_64-*linux*)
9916 case `/usr/bin/file conftest.o` in
9917 *x86-64*)
9918 LD="${LD-ld} -m elf32_x86_64"
9919 ;;
9920 *)
9921 LD="${LD-ld} -m elf_i386"
9922 ;;
9923 esac
9924 ;;
9925 powerpc64le-*linux*)
9926 LD="${LD-ld} -m elf32lppclinux"
9927 ;;
9928 powerpc64-*linux*)
9929 LD="${LD-ld} -m elf32ppclinux"
9930 ;;
9931 s390x-*linux*)
9932 LD="${LD-ld} -m elf_s390"
9933 ;;
9934 sparc64-*linux*)
9935 LD="${LD-ld} -m elf32_sparc"
9936 ;;
9937 esac
9938 ;;
9939 *64-bit*)
9940 case $host in
9941 x86_64-*kfreebsd*-gnu)
9942 LD="${LD-ld} -m elf_x86_64_fbsd"
9943 ;;
9944 x86_64-*linux*)
9945 LD="${LD-ld} -m elf_x86_64"
9946 ;;
9947 powerpcle-*linux*)
9948 LD="${LD-ld} -m elf64lppc"
9949 ;;
9950 powerpc-*linux*)
9951 LD="${LD-ld} -m elf64ppc"
9952 ;;
9953 s390*-*linux*|s390*-*tpf*)
9954 LD="${LD-ld} -m elf64_s390"
9955 ;;
9956 sparc*-*linux*)
9957 LD="${LD-ld} -m elf64_sparc"
9958 ;;
9959 esac
9960 ;;
9961 esac
9962 fi
9963 rm -rf conftest*
9964 ;;
9965
9966*-*-sco3.2v5*)
9967 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9968 SAVE_CFLAGS=$CFLAGS
9969 CFLAGS="$CFLAGS -belf"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9971$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9972if ${lt_cv_cc_needs_belf+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974else
9975 ac_ext=c
9976ac_cpp='$CPP $CPPFLAGS'
9977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982/* end confdefs.h. */
9983
9984int main (void)
9985{
9986
9987 ;
9988 return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992 lt_cv_cc_needs_belf=yes
9993else
9994 lt_cv_cc_needs_belf=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 ac_ext=c
9999ac_cpp='$CPP $CPPFLAGS'
10000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002ac_compiler_gnu=$ac_cv_c_compiler_gnu
10003
10004fi
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10006$as_echo "$lt_cv_cc_needs_belf" >&6; }
10007 if test yes != "$lt_cv_cc_needs_belf"; then
10008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10009 CFLAGS=$SAVE_CFLAGS
10010 fi
10011 ;;
10012*-*solaris*)
10013 # Find out what ABI is being produced by ac_compile, and set linker
10014 # options accordingly.
10015 echo 'int i;' > conftest.$ac_ext
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017 (eval $ac_compile) 2>&5
10018 ac_status=$?
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; }; then
10021 case `/usr/bin/file conftest.o` in
10022 *64-bit*)
10023 case $lt_cv_prog_gnu_ld in
10024 yes*)
10025 case $host in
10026 i?86-*-solaris*|x86_64-*-solaris*)
10027 LD="${LD-ld} -m elf_x86_64"
10028 ;;
10029 sparc*-*-solaris*)
10030 LD="${LD-ld} -m elf64_sparc"
10031 ;;
10032 esac
10033 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10034 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10035 LD=${LD-ld}_sol2
10036 fi
10037 ;;
10038 *)
10039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10040 LD="${LD-ld} -64"
10041 fi
10042 ;;
10043 esac
10044 ;;
10045 esac
10046 fi
10047 rm -rf conftest*
10048 ;;
10049esac
10050
10051need_locks=$enable_libtool_lock
10052
10053if test -n "$ac_tool_prefix"; then
10054 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10055set dummy ${ac_tool_prefix}mt; ac_word=$2
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057$as_echo_n "checking for $ac_word... " >&6; }
10058if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 if test -n "$MANIFEST_TOOL"; then
10062 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10063else
10064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $PATH
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075done
10076 done
10077IFS=$as_save_IFS
10078
10079fi
10080fi
10081MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10082if test -n "$MANIFEST_TOOL"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10084$as_echo "$MANIFEST_TOOL" >&6; }
10085else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087$as_echo "no" >&6; }
10088fi
10089
10090
10091fi
10092if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10093 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10094 # Extract the first word of "mt", so it can be a program name with args.
10095set dummy mt; ac_word=$2
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097$as_echo_n "checking for $ac_word... " >&6; }
10098if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100else
10101 if test -n "$ac_ct_MANIFEST_TOOL"; then
10102 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10103else
10104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105for as_dir in $PATH
10106do
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10114 fi
10115done
10116 done
10117IFS=$as_save_IFS
10118
10119fi
10120fi
10121ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10122if test -n "$ac_ct_MANIFEST_TOOL"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10124$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10125else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127$as_echo "no" >&6; }
10128fi
10129
10130 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10131 MANIFEST_TOOL=":"
10132 else
10133 case $cross_compiling:$ac_tool_warned in
10134yes:)
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10137ac_tool_warned=yes ;;
10138esac
10139 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10140 fi
10141else
10142 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10143fi
10144
10145test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10147$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10148if ${lt_cv_path_mainfest_tool+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150else
10151 lt_cv_path_mainfest_tool=no
10152 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10153 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10154 cat conftest.err >&5
10155 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10156 lt_cv_path_mainfest_tool=yes
10157 fi
10158 rm -f conftest*
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10161$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10162if test yes != "$lt_cv_path_mainfest_tool"; then
10163 MANIFEST_TOOL=:
10164fi
10165
10166
10167
10168
10169
10170
10171 case $host_os in
10172 rhapsody* | darwin*)
10173 if test -n "$ac_tool_prefix"; then
10174 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10175set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177$as_echo_n "checking for $ac_word... " >&6; }
10178if ${ac_cv_prog_DSYMUTIL+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180else
10181 if test -n "$DSYMUTIL"; then
10182 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10183else
10184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185for as_dir in $PATH
10186do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195done
10196 done
10197IFS=$as_save_IFS
10198
10199fi
10200fi
10201DSYMUTIL=$ac_cv_prog_DSYMUTIL
10202if test -n "$DSYMUTIL"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10204$as_echo "$DSYMUTIL" >&6; }
10205else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207$as_echo "no" >&6; }
10208fi
10209
10210
10211fi
10212if test -z "$ac_cv_prog_DSYMUTIL"; then
10213 ac_ct_DSYMUTIL=$DSYMUTIL
10214 # Extract the first word of "dsymutil", so it can be a program name with args.
10215set dummy dsymutil; ac_word=$2
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217$as_echo_n "checking for $ac_word... " >&6; }
10218if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220else
10221 if test -n "$ac_ct_DSYMUTIL"; then
10222 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10223else
10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236 done
10237IFS=$as_save_IFS
10238
10239fi
10240fi
10241ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10242if test -n "$ac_ct_DSYMUTIL"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10244$as_echo "$ac_ct_DSYMUTIL" >&6; }
10245else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247$as_echo "no" >&6; }
10248fi
10249
10250 if test "x$ac_ct_DSYMUTIL" = x; then
10251 DSYMUTIL=":"
10252 else
10253 case $cross_compiling:$ac_tool_warned in
10254yes:)
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10257ac_tool_warned=yes ;;
10258esac
10259 DSYMUTIL=$ac_ct_DSYMUTIL
10260 fi
10261else
10262 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10263fi
10264
10265 if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10267set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269$as_echo_n "checking for $ac_word... " >&6; }
10270if ${ac_cv_prog_NMEDIT+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272else
10273 if test -n "$NMEDIT"; then
10274 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10286 fi
10287done
10288 done
10289IFS=$as_save_IFS
10290
10291fi
10292fi
10293NMEDIT=$ac_cv_prog_NMEDIT
10294if test -n "$NMEDIT"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10296$as_echo "$NMEDIT" >&6; }
10297else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
10300fi
10301
10302
10303fi
10304if test -z "$ac_cv_prog_NMEDIT"; then
10305 ac_ct_NMEDIT=$NMEDIT
10306 # Extract the first word of "nmedit", so it can be a program name with args.
10307set dummy nmedit; ac_word=$2
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309$as_echo_n "checking for $ac_word... " >&6; }
10310if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312else
10313 if test -n "$ac_ct_NMEDIT"; then
10314 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10315else
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327done
10328 done
10329IFS=$as_save_IFS
10330
10331fi
10332fi
10333ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10334if test -n "$ac_ct_NMEDIT"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10336$as_echo "$ac_ct_NMEDIT" >&6; }
10337else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342 if test "x$ac_ct_NMEDIT" = x; then
10343 NMEDIT=":"
10344 else
10345 case $cross_compiling:$ac_tool_warned in
10346yes:)
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349ac_tool_warned=yes ;;
10350esac
10351 NMEDIT=$ac_ct_NMEDIT
10352 fi
10353else
10354 NMEDIT="$ac_cv_prog_NMEDIT"
10355fi
10356
10357 if test -n "$ac_tool_prefix"; then
10358 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10359set dummy ${ac_tool_prefix}lipo; ac_word=$2
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if ${ac_cv_prog_LIPO+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 if test -n "$LIPO"; then
10366 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10367else
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380 done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385LIPO=$ac_cv_prog_LIPO
10386if test -n "$LIPO"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10388$as_echo "$LIPO" >&6; }
10389else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392fi
10393
10394
10395fi
10396if test -z "$ac_cv_prog_LIPO"; then
10397 ac_ct_LIPO=$LIPO
10398 # Extract the first word of "lipo", so it can be a program name with args.
10399set dummy lipo; ac_word=$2
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404else
10405 if test -n "$ac_ct_LIPO"; then
10406 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_ac_ct_LIPO="lipo"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420 done
10421IFS=$as_save_IFS
10422
10423fi
10424fi
10425ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10426if test -n "$ac_ct_LIPO"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10428$as_echo "$ac_ct_LIPO" >&6; }
10429else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
10432fi
10433
10434 if test "x$ac_ct_LIPO" = x; then
10435 LIPO=":"
10436 else
10437 case $cross_compiling:$ac_tool_warned in
10438yes:)
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441ac_tool_warned=yes ;;
10442esac
10443 LIPO=$ac_ct_LIPO
10444 fi
10445else
10446 LIPO="$ac_cv_prog_LIPO"
10447fi
10448
10449 if test -n "$ac_tool_prefix"; then
10450 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10451set dummy ${ac_tool_prefix}otool; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if ${ac_cv_prog_OTOOL+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 if test -n "$OTOOL"; then
10458 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472 done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477OTOOL=$ac_cv_prog_OTOOL
10478if test -n "$OTOOL"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10480$as_echo "$OTOOL" >&6; }
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487fi
10488if test -z "$ac_cv_prog_OTOOL"; then
10489 ac_ct_OTOOL=$OTOOL
10490 # Extract the first word of "otool", so it can be a program name with args.
10491set dummy otool; ac_word=$2
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496else
10497 if test -n "$ac_ct_OTOOL"; then
10498 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_ac_ct_OTOOL="otool"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511done
10512 done
10513IFS=$as_save_IFS
10514
10515fi
10516fi
10517ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10518if test -n "$ac_ct_OTOOL"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10520$as_echo "$ac_ct_OTOOL" >&6; }
10521else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524fi
10525
10526 if test "x$ac_ct_OTOOL" = x; then
10527 OTOOL=":"
10528 else
10529 case $cross_compiling:$ac_tool_warned in
10530yes:)
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533ac_tool_warned=yes ;;
10534esac
10535 OTOOL=$ac_ct_OTOOL
10536 fi
10537else
10538 OTOOL="$ac_cv_prog_OTOOL"
10539fi
10540
10541 if test -n "$ac_tool_prefix"; then
10542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10543set dummy ${ac_tool_prefix}otool64; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
10546if ${ac_cv_prog_OTOOL64+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548else
10549 if test -n "$OTOOL64"; then
10550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564 done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569OTOOL64=$ac_cv_prog_OTOOL64
10570if test -n "$OTOOL64"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10572$as_echo "$OTOOL64" >&6; }
10573else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579fi
10580if test -z "$ac_cv_prog_OTOOL64"; then
10581 ac_ct_OTOOL64=$OTOOL64
10582 # Extract the first word of "otool64", so it can be a program name with args.
10583set dummy otool64; ac_word=$2
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585$as_echo_n "checking for $ac_word... " >&6; }
10586if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588else
10589 if test -n "$ac_ct_OTOOL64"; then
10590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10591else
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_ac_ct_OTOOL64="otool64"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603done
10604 done
10605IFS=$as_save_IFS
10606
10607fi
10608fi
10609ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10610if test -n "$ac_ct_OTOOL64"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10612$as_echo "$ac_ct_OTOOL64" >&6; }
10613else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
10616fi
10617
10618 if test "x$ac_ct_OTOOL64" = x; then
10619 OTOOL64=":"
10620 else
10621 case $cross_compiling:$ac_tool_warned in
10622yes:)
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625ac_tool_warned=yes ;;
10626esac
10627 OTOOL64=$ac_ct_OTOOL64
10628 fi
10629else
10630 OTOOL64="$ac_cv_prog_OTOOL64"
10631fi
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10660$as_echo_n "checking for -single_module linker flag... " >&6; }
10661if ${lt_cv_apple_cc_single_mod+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663else
10664 lt_cv_apple_cc_single_mod=no
10665 if test -z "$LT_MULTI_MODULE"; then
10666 # By default we will add the -single_module flag. You can override
10667 # by either setting the environment variable LT_MULTI_MODULE
10668 # non-empty at configure time, or by adding -multi_module to the
10669 # link flags.
10670 rm -rf libconftest.dylib*
10671 echo "int foo(void){return 1;}" > conftest.c
10672 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10673-dynamiclib -Wl,-single_module conftest.c" >&5
10674 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10675 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10676 _lt_result=$?
10677 # If there is a non-empty error log, and "single_module"
10678 # appears in it, assume the flag caused a linker warning
10679 if test -s conftest.err && $GREP single_module conftest.err; then
10680 cat conftest.err >&5
10681 # Otherwise, if the output was created with a 0 exit code from
10682 # the compiler, it worked.
10683 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10684 lt_cv_apple_cc_single_mod=yes
10685 else
10686 cat conftest.err >&5
10687 fi
10688 rm -rf libconftest.dylib*
10689 rm -f conftest.*
10690 fi
10691fi
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10693$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10696$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10697if ${lt_cv_ld_exported_symbols_list+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699else
10700 lt_cv_ld_exported_symbols_list=no
10701 save_LDFLAGS=$LDFLAGS
10702 echo "_main" > conftest.sym
10703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h. */
10706
10707int main (void)
10708{
10709
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714if ac_fn_c_try_link "$LINENO"; then :
10715 lt_cv_ld_exported_symbols_list=yes
10716else
10717 lt_cv_ld_exported_symbols_list=no
10718fi
10719rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LDFLAGS=$save_LDFLAGS
10722
10723fi
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10726
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10728$as_echo_n "checking for -force_load linker flag... " >&6; }
10729if ${lt_cv_ld_force_load+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731else
10732 lt_cv_ld_force_load=no
10733 cat > conftest.c << _LT_EOF
10734int forced_loaded() { return 2;}
10735_LT_EOF
10736 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10737 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10738 echo "$AR cru libconftest.a conftest.o" >&5
10739 $AR cru libconftest.a conftest.o 2>&5
10740 echo "$RANLIB libconftest.a" >&5
10741 $RANLIB libconftest.a 2>&5
10742 cat > conftest.c << _LT_EOF
10743int main() { return 0;}
10744_LT_EOF
10745 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10746 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10747 _lt_result=$?
10748 if test -s conftest.err && $GREP force_load conftest.err; then
10749 cat conftest.err >&5
10750 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10751 lt_cv_ld_force_load=yes
10752 else
10753 cat conftest.err >&5
10754 fi
10755 rm -f conftest.err libconftest.a conftest conftest.c
10756 rm -rf conftest.dSYM
10757
10758fi
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10760$as_echo "$lt_cv_ld_force_load" >&6; }
10761 case $host_os in
10762 rhapsody* | darwin1.[012])
10763 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10764 darwin1.*)
10765 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10766 darwin*) # darwin 5.x on
10767 # if running on 10.5 or later, the deployment target defaults
10768 # to the OS version, if on x86, and 10.4, the deployment
10769 # target defaults to 10.4. Don't you love it?
10770 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10771 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10772 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10773 10.[012][,.]*)
10774 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10775 10.*)
10776 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10777 esac
10778 ;;
10779 esac
10780 if test yes = "$lt_cv_apple_cc_single_mod"; then
10781 _lt_dar_single_mod='$single_module'
10782 fi
10783 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10784 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10785 else
10786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10787 fi
10788 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10789 _lt_dsymutil='~$DSYMUTIL $lib || :'
10790 else
10791 _lt_dsymutil=
10792 fi
10793 ;;
10794 esac
10795
10796# func_munge_path_list VARIABLE PATH
10797# -----------------------------------
10798# VARIABLE is name of variable containing _space_ separated list of
10799# directories to be munged by the contents of PATH, which is string
10800# having a format:
10801# "DIR[:DIR]:"
10802# string "DIR[ DIR]" will be prepended to VARIABLE
10803# ":DIR[:DIR]"
10804# string "DIR[ DIR]" will be appended to VARIABLE
10805# "DIRP[:DIRP]::[DIRA:]DIRA"
10806# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10807# "DIRA[ DIRA]" will be appended to VARIABLE
10808# "DIR[:DIR]"
10809# VARIABLE will be replaced by "DIR[ DIR]"
10810func_munge_path_list ()
10811{
10812 case x$2 in
10813 x)
10814 ;;
10815 *:)
10816 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10817 ;;
10818 x:*)
10819 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10820 ;;
10821 *::*)
10822 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10823 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10824 ;;
10825 *)
10826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10827 ;;
10828 esac
10829}
10830
Alex Deymo486467e2017-12-19 19:04:07 +010010831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10832$as_echo_n "checking for ANSI C header files... " >&6; }
10833if ${ac_cv_header_stdc+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835else
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h. */
10838#include <stdlib.h>
10839#include <stdarg.h>
10840#include <string.h>
10841#include <float.h>
10842
10843int main (void)
10844{
10845
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_header_stdc=yes
10852else
10853 ac_cv_header_stdc=no
10854fi
10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856
10857if test $ac_cv_header_stdc = yes; then
10858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h. */
10861#include <string.h>
10862
10863_ACEOF
10864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10865 $EGREP "memchr" >/dev/null 2>&1; then :
10866
10867else
10868 ac_cv_header_stdc=no
10869fi
10870rm -f conftest*
10871
10872fi
10873
10874if test $ac_cv_header_stdc = yes; then
10875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h. */
10878#include <stdlib.h>
10879
10880_ACEOF
10881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10882 $EGREP "free" >/dev/null 2>&1; then :
10883
10884else
10885 ac_cv_header_stdc=no
10886fi
10887rm -f conftest*
10888
10889fi
10890
10891if test $ac_cv_header_stdc = yes; then
10892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10893 if test "$cross_compiling" = yes; then :
10894 :
10895else
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h. */
10898#include <ctype.h>
10899#include <stdlib.h>
10900#if ((' ' & 0x0FF) == 0x020)
10901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10903#else
10904# define ISLOWER(c) \
10905 (('a' <= (c) && (c) <= 'i') \
10906 || ('j' <= (c) && (c) <= 'r') \
10907 || ('s' <= (c) && (c) <= 'z'))
10908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10909#endif
10910
10911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10912int
10913main ()
10914{
10915 int i;
10916 for (i = 0; i < 256; i++)
10917 if (XOR (islower (i), ISLOWER (i))
10918 || toupper (i) != TOUPPER (i))
10919 return 2;
10920 return 0;
10921}
10922_ACEOF
10923if ac_fn_c_try_run "$LINENO"; then :
10924
10925else
10926 ac_cv_header_stdc=no
10927fi
10928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10929 conftest.$ac_objext conftest.beam conftest.$ac_ext
10930fi
10931
10932fi
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10935$as_echo "$ac_cv_header_stdc" >&6; }
10936if test $ac_cv_header_stdc = yes; then
10937
10938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10939
10940fi
10941
10942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10943for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10944 inttypes.h stdint.h unistd.h
10945do :
10946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10947ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10948"
10949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10950 cat >>confdefs.h <<_ACEOF
10951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10952_ACEOF
10953
10954fi
10955
10956done
10957
10958
Elliott Hughes82be86d2017-09-20 17:00:17 -070010959for ac_header in dlfcn.h
10960do :
10961 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10962"
10963if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10964 cat >>confdefs.h <<_ACEOF
10965#define HAVE_DLFCN_H 1
10966_ACEOF
10967
10968fi
10969
10970done
10971
10972# ------------------------------------ #
10973# Determine libtool default behavior #
10974# ------------------------------------ #
10975
10976#
10977# Default behavior is to enable shared and static libraries on systems
10978# where libtool knows how to build both library versions, and does not
10979# require separate configuration and build runs for each flavor.
10980#
10981
10982xc_lt_want_enable_shared='yes'
10983xc_lt_want_enable_static='yes'
10984
10985#
10986# User may have disabled shared or static libraries.
10987#
10988case "x$enable_shared" in # (
10989 xno)
10990 xc_lt_want_enable_shared='no'
10991 ;;
10992esac
10993case "x$enable_static" in # (
10994 xno)
10995 xc_lt_want_enable_static='no'
10996 ;;
10997esac
10998if test "x$xc_lt_want_enable_shared" = 'xno' &&
10999 test "x$xc_lt_want_enable_static" = 'xno'; then
11000 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11001fi
11002
11003#
11004# Default behavior on systems that require independent configuration
11005# and build runs for shared and static is to enable shared libraries
11006# and disable static ones. On these systems option '--disable-shared'
11007# must be used in order to build a proper static library.
11008#
11009
11010if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11011 test "x$xc_lt_want_enable_static" = 'xyes'; then
11012 case $host_os in # (
11013 pw32* | cegcc* | os2* | aix*)
11014 xc_lt_want_enable_static='no'
11015 ;;
11016 esac
11017fi
11018
11019#
11020# Make libtool aware of current shared and static library preferences
11021# taking in account that, depending on host characteristics, libtool
11022# may modify these option preferences later in this configure script.
11023#
11024
11025enable_shared=$xc_lt_want_enable_shared
11026enable_static=$xc_lt_want_enable_static
11027
11028#
11029# Default behavior is to build PIC objects for shared libraries and
11030# non-PIC objects for static libraries.
11031#
11032
11033xc_lt_want_with_pic='default'
11034
11035#
11036# User may have specified PIC preference.
11037#
11038
11039case "x$with_pic" in # ((
11040 xno)
11041 xc_lt_want_with_pic='no'
11042 ;;
11043 xyes)
11044 xc_lt_want_with_pic='yes'
11045 ;;
11046esac
11047
11048#
11049# Default behavior on some systems where building a shared library out
11050# of non-PIC compiled objects will fail with following linker error
11051# "relocation R_X86_64_32 can not be used when making a shared object"
11052# is to build PIC objects even for static libraries. This behavior may
11053# be overridden using 'configure --disable-shared --without-pic'.
11054#
11055
11056if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11057 case $host_cpu in # (
11058 x86_64 | amd64 | ia64)
11059 case $host_os in # (
11060 linux* | freebsd*)
11061 xc_lt_want_with_pic='yes'
11062 ;;
11063 esac
11064 ;;
11065 esac
11066fi
11067
11068#
11069# Make libtool aware of current PIC preference taking in account that,
11070# depending on host characteristics, libtool may modify PIC default
11071# behavior to fit host system idiosyncrasies later in this script.
11072#
11073
11074with_pic=$xc_lt_want_with_pic
11075
11076## ----------------------- ##
11077## Start of libtool code ##
11078## ----------------------- ##
11079
11080
11081
11082
11083# Set options
11084enable_win32_dll=yes
11085
11086case $host in
11087*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11088 if test -n "$ac_tool_prefix"; then
11089 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11090set dummy ${ac_tool_prefix}as; ac_word=$2
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092$as_echo_n "checking for $ac_word... " >&6; }
11093if ${ac_cv_prog_AS+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095else
11096 if test -n "$AS"; then
11097 ac_cv_prog_AS="$AS" # Let the user override the test.
11098else
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_AS="${ac_tool_prefix}as"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111 done
11112IFS=$as_save_IFS
11113
11114fi
11115fi
11116AS=$ac_cv_prog_AS
11117if test -n "$AS"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11119$as_echo "$AS" >&6; }
11120else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
11123fi
11124
11125
11126fi
11127if test -z "$ac_cv_prog_AS"; then
11128 ac_ct_AS=$AS
11129 # Extract the first word of "as", so it can be a program name with args.
11130set dummy as; ac_word=$2
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132$as_echo_n "checking for $ac_word... " >&6; }
11133if ${ac_cv_prog_ac_ct_AS+:} false; then :
11134 $as_echo_n "(cached) " >&6
11135else
11136 if test -n "$ac_ct_AS"; then
11137 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11138else
11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_AS="as"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150done
11151 done
11152IFS=$as_save_IFS
11153
11154fi
11155fi
11156ac_ct_AS=$ac_cv_prog_ac_ct_AS
11157if test -n "$ac_ct_AS"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11159$as_echo "$ac_ct_AS" >&6; }
11160else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162$as_echo "no" >&6; }
11163fi
11164
11165 if test "x$ac_ct_AS" = x; then
11166 AS="false"
11167 else
11168 case $cross_compiling:$ac_tool_warned in
11169yes:)
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11172ac_tool_warned=yes ;;
11173esac
11174 AS=$ac_ct_AS
11175 fi
11176else
11177 AS="$ac_cv_prog_AS"
11178fi
11179
11180 if test -n "$ac_tool_prefix"; then
11181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11182set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184$as_echo_n "checking for $ac_word... " >&6; }
11185if ${ac_cv_prog_DLLTOOL+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187else
11188 if test -n "$DLLTOOL"; then
11189 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11190else
11191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192for as_dir in $PATH
11193do
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11201 fi
11202done
11203 done
11204IFS=$as_save_IFS
11205
11206fi
11207fi
11208DLLTOOL=$ac_cv_prog_DLLTOOL
11209if test -n "$DLLTOOL"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11211$as_echo "$DLLTOOL" >&6; }
11212else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214$as_echo "no" >&6; }
11215fi
11216
11217
11218fi
11219if test -z "$ac_cv_prog_DLLTOOL"; then
11220 ac_ct_DLLTOOL=$DLLTOOL
11221 # Extract the first word of "dlltool", so it can be a program name with args.
11222set dummy dlltool; ac_word=$2
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227else
11228 if test -n "$ac_ct_DLLTOOL"; then
11229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242done
11243 done
11244IFS=$as_save_IFS
11245
11246fi
11247fi
11248ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11249if test -n "$ac_ct_DLLTOOL"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11251$as_echo "$ac_ct_DLLTOOL" >&6; }
11252else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
11255fi
11256
11257 if test "x$ac_ct_DLLTOOL" = x; then
11258 DLLTOOL="false"
11259 else
11260 case $cross_compiling:$ac_tool_warned in
11261yes:)
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264ac_tool_warned=yes ;;
11265esac
11266 DLLTOOL=$ac_ct_DLLTOOL
11267 fi
11268else
11269 DLLTOOL="$ac_cv_prog_DLLTOOL"
11270fi
11271
11272 if test -n "$ac_tool_prefix"; then
11273 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11274set dummy ${ac_tool_prefix}objdump; ac_word=$2
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276$as_echo_n "checking for $ac_word... " >&6; }
11277if ${ac_cv_prog_OBJDUMP+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279else
11280 if test -n "$OBJDUMP"; then
11281 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11282else
11283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294done
11295 done
11296IFS=$as_save_IFS
11297
11298fi
11299fi
11300OBJDUMP=$ac_cv_prog_OBJDUMP
11301if test -n "$OBJDUMP"; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11303$as_echo "$OBJDUMP" >&6; }
11304else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306$as_echo "no" >&6; }
11307fi
11308
11309
11310fi
11311if test -z "$ac_cv_prog_OBJDUMP"; then
11312 ac_ct_OBJDUMP=$OBJDUMP
11313 # Extract the first word of "objdump", so it can be a program name with args.
11314set dummy objdump; ac_word=$2
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316$as_echo_n "checking for $ac_word... " >&6; }
11317if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319else
11320 if test -n "$ac_ct_OBJDUMP"; then
11321 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11322else
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334done
11335 done
11336IFS=$as_save_IFS
11337
11338fi
11339fi
11340ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11341if test -n "$ac_ct_OBJDUMP"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11343$as_echo "$ac_ct_OBJDUMP" >&6; }
11344else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
11347fi
11348
11349 if test "x$ac_ct_OBJDUMP" = x; then
11350 OBJDUMP="false"
11351 else
11352 case $cross_compiling:$ac_tool_warned in
11353yes:)
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11356ac_tool_warned=yes ;;
11357esac
11358 OBJDUMP=$ac_ct_OBJDUMP
11359 fi
11360else
11361 OBJDUMP="$ac_cv_prog_OBJDUMP"
11362fi
11363
11364 ;;
11365esac
11366
11367test -z "$AS" && AS=as
11368
11369
11370
11371
11372
11373test -z "$DLLTOOL" && DLLTOOL=dlltool
11374
11375
11376
11377
11378
11379test -z "$OBJDUMP" && OBJDUMP=objdump
11380
11381
11382
11383
11384
11385
11386
11387 enable_dlopen=no
11388
11389
11390
11391 # Check whether --enable-shared was given.
11392if test "${enable_shared+set}" = set; then :
11393 enableval=$enable_shared; p=${PACKAGE-default}
11394 case $enableval in
11395 yes) enable_shared=yes ;;
11396 no) enable_shared=no ;;
11397 *)
11398 enable_shared=no
11399 # Look at the argument we got. We use all the common list separators.
11400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11401 for pkg in $enableval; do
11402 IFS=$lt_save_ifs
11403 if test "X$pkg" = "X$p"; then
11404 enable_shared=yes
11405 fi
11406 done
11407 IFS=$lt_save_ifs
11408 ;;
11409 esac
11410else
11411 enable_shared=yes
11412fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422 # Check whether --enable-static was given.
11423if test "${enable_static+set}" = set; then :
11424 enableval=$enable_static; p=${PACKAGE-default}
11425 case $enableval in
11426 yes) enable_static=yes ;;
11427 no) enable_static=no ;;
11428 *)
11429 enable_static=no
11430 # Look at the argument we got. We use all the common list separators.
11431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11432 for pkg in $enableval; do
11433 IFS=$lt_save_ifs
11434 if test "X$pkg" = "X$p"; then
11435 enable_static=yes
11436 fi
11437 done
11438 IFS=$lt_save_ifs
11439 ;;
11440 esac
11441else
11442 enable_static=yes
11443fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454# Check whether --with-pic was given.
11455if test "${with_pic+set}" = set; then :
11456 withval=$with_pic; lt_p=${PACKAGE-default}
11457 case $withval in
11458 yes|no) pic_mode=$withval ;;
11459 *)
11460 pic_mode=default
11461 # Look at the argument we got. We use all the common list separators.
11462 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11463 for lt_pkg in $withval; do
11464 IFS=$lt_save_ifs
11465 if test "X$lt_pkg" = "X$lt_p"; then
11466 pic_mode=yes
11467 fi
11468 done
11469 IFS=$lt_save_ifs
11470 ;;
11471 esac
11472else
11473 pic_mode=default
11474fi
11475
11476
11477
11478
11479
11480
11481
11482
11483 # Check whether --enable-fast-install was given.
11484if test "${enable_fast_install+set}" = set; then :
11485 enableval=$enable_fast_install; p=${PACKAGE-default}
11486 case $enableval in
11487 yes) enable_fast_install=yes ;;
11488 no) enable_fast_install=no ;;
11489 *)
11490 enable_fast_install=no
11491 # Look at the argument we got. We use all the common list separators.
11492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11493 for pkg in $enableval; do
11494 IFS=$lt_save_ifs
11495 if test "X$pkg" = "X$p"; then
11496 enable_fast_install=yes
11497 fi
11498 done
11499 IFS=$lt_save_ifs
11500 ;;
11501 esac
11502else
11503 enable_fast_install=yes
11504fi
11505
11506
11507
11508
11509
11510
11511
11512
11513 shared_archive_member_spec=
11514case $host,$enable_shared in
11515power*-*-aix[5-9]*,yes)
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11517$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11518
11519# Check whether --with-aix-soname was given.
11520if test "${with_aix_soname+set}" = set; then :
11521 withval=$with_aix_soname; case $withval in
11522 aix|svr4|both)
11523 ;;
11524 *)
11525 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11526 ;;
11527 esac
11528 lt_cv_with_aix_soname=$with_aix_soname
11529else
11530 if ${lt_cv_with_aix_soname+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532else
11533 lt_cv_with_aix_soname=aix
11534fi
11535
11536 with_aix_soname=$lt_cv_with_aix_soname
11537fi
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11540$as_echo "$with_aix_soname" >&6; }
11541 if test aix != "$with_aix_soname"; then
11542 # For the AIX way of multilib, we name the shared archive member
11543 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11544 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11545 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11546 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11547 if test 64 = "${OBJECT_MODE-32}"; then
11548 shared_archive_member_spec=shr_64
11549 else
11550 shared_archive_member_spec=shr
11551 fi
11552 fi
11553 ;;
11554*)
11555 with_aix_soname=aix
11556 ;;
11557esac
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568# This can be used to rebuild libtool when needed
11569LIBTOOL_DEPS=$ltmain
11570
11571# Always use our own libtool.
11572LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603test -z "$LN_S" && LN_S="ln -s"
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618if test -n "${ZSH_VERSION+set}"; then
11619 setopt NO_GLOB_SUBST
11620fi
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11623$as_echo_n "checking for objdir... " >&6; }
11624if ${lt_cv_objdir+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626else
11627 rm -f .libs 2>/dev/null
11628mkdir .libs 2>/dev/null
11629if test -d .libs; then
11630 lt_cv_objdir=.libs
11631else
11632 # MS-DOS does not allow filenames that begin with a dot.
11633 lt_cv_objdir=_libs
11634fi
11635rmdir .libs 2>/dev/null
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11638$as_echo "$lt_cv_objdir" >&6; }
11639objdir=$lt_cv_objdir
11640
11641
11642
11643
11644
11645cat >>confdefs.h <<_ACEOF
11646#define LT_OBJDIR "$lt_cv_objdir/"
11647_ACEOF
11648
11649
11650
11651
11652case $host_os in
11653aix3*)
11654 # AIX sometimes has problems with the GCC collect2 program. For some
11655 # reason, if we set the COLLECT_NAMES environment variable, the problems
11656 # vanish in a puff of smoke.
11657 if test set != "${COLLECT_NAMES+set}"; then
11658 COLLECT_NAMES=
11659 export COLLECT_NAMES
11660 fi
11661 ;;
11662esac
11663
11664# Global variables:
11665ofile=libtool
11666can_build_shared=yes
11667
11668# All known linkers require a '.a' archive for static linking (except MSVC,
11669# which needs '.lib').
11670libext=a
11671
11672with_gnu_ld=$lt_cv_prog_gnu_ld
11673
11674old_CC=$CC
11675old_CFLAGS=$CFLAGS
11676
11677# Set sane defaults for various variables
11678test -z "$CC" && CC=cc
11679test -z "$LTCC" && LTCC=$CC
11680test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11681test -z "$LD" && LD=ld
11682test -z "$ac_objext" && ac_objext=o
11683
11684func_cc_basename $compiler
11685cc_basename=$func_cc_basename_result
11686
11687
11688# Only perform the check for file, if the check method requires it
11689test -z "$MAGIC_CMD" && MAGIC_CMD=file
11690case $deplibs_check_method in
11691file_magic*)
11692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11694$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11695if ${lt_cv_path_MAGIC_CMD+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697else
11698 case $MAGIC_CMD in
11699[\\/*] | ?:[\\/]*)
11700 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11701 ;;
11702*)
11703 lt_save_MAGIC_CMD=$MAGIC_CMD
11704 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11706 for ac_dir in $ac_dummy; do
11707 IFS=$lt_save_ifs
11708 test -z "$ac_dir" && ac_dir=.
11709 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11710 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11711 if test -n "$file_magic_test_file"; then
11712 case $deplibs_check_method in
11713 "file_magic "*)
11714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11717 $EGREP "$file_magic_regex" > /dev/null; then
11718 :
11719 else
11720 cat <<_LT_EOF 1>&2
11721
11722*** Warning: the command libtool uses to detect shared libraries,
11723*** $file_magic_cmd, produces output that libtool cannot recognize.
11724*** The result is that libtool may fail to recognize shared libraries
11725*** as such. This will affect the creation of libtool libraries that
11726*** depend on shared libraries, but programs linked with such libtool
11727*** libraries will work regardless of this problem. Nevertheless, you
11728*** may want to report the problem to your system manager and/or to
11729*** bug-libtool@gnu.org
11730
11731_LT_EOF
11732 fi ;;
11733 esac
11734 fi
11735 break
11736 fi
11737 done
11738 IFS=$lt_save_ifs
11739 MAGIC_CMD=$lt_save_MAGIC_CMD
11740 ;;
11741esac
11742fi
11743
11744MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11745if test -n "$MAGIC_CMD"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11747$as_echo "$MAGIC_CMD" >&6; }
11748else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
11751fi
11752
11753
11754
11755
11756
11757if test -z "$lt_cv_path_MAGIC_CMD"; then
11758 if test -n "$ac_tool_prefix"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11760$as_echo_n "checking for file... " >&6; }
11761if ${lt_cv_path_MAGIC_CMD+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763else
11764 case $MAGIC_CMD in
11765[\\/*] | ?:[\\/]*)
11766 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11767 ;;
11768*)
11769 lt_save_MAGIC_CMD=$MAGIC_CMD
11770 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11772 for ac_dir in $ac_dummy; do
11773 IFS=$lt_save_ifs
11774 test -z "$ac_dir" && ac_dir=.
11775 if test -f "$ac_dir/file"; then
11776 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11777 if test -n "$file_magic_test_file"; then
11778 case $deplibs_check_method in
11779 "file_magic "*)
11780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11781 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11783 $EGREP "$file_magic_regex" > /dev/null; then
11784 :
11785 else
11786 cat <<_LT_EOF 1>&2
11787
11788*** Warning: the command libtool uses to detect shared libraries,
11789*** $file_magic_cmd, produces output that libtool cannot recognize.
11790*** The result is that libtool may fail to recognize shared libraries
11791*** as such. This will affect the creation of libtool libraries that
11792*** depend on shared libraries, but programs linked with such libtool
11793*** libraries will work regardless of this problem. Nevertheless, you
11794*** may want to report the problem to your system manager and/or to
11795*** bug-libtool@gnu.org
11796
11797_LT_EOF
11798 fi ;;
11799 esac
11800 fi
11801 break
11802 fi
11803 done
11804 IFS=$lt_save_ifs
11805 MAGIC_CMD=$lt_save_MAGIC_CMD
11806 ;;
11807esac
11808fi
11809
11810MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11811if test -n "$MAGIC_CMD"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11813$as_echo "$MAGIC_CMD" >&6; }
11814else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817fi
11818
11819
11820 else
11821 MAGIC_CMD=:
11822 fi
11823fi
11824
11825 fi
11826 ;;
11827esac
11828
11829# Use C for the default configuration in the libtool script
11830
11831lt_save_CC=$CC
11832ac_ext=c
11833ac_cpp='$CPP $CPPFLAGS'
11834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11836ac_compiler_gnu=$ac_cv_c_compiler_gnu
11837
11838
11839# Source file extension for C test sources.
11840ac_ext=c
11841
11842# Object file extension for compiled C test sources.
11843objext=o
11844objext=$objext
11845
11846# Code to be used in simple compile tests
11847lt_simple_compile_test_code="int some_variable = 0;"
11848
11849# Code to be used in simple link tests
11850lt_simple_link_test_code='int main(){return(0);}'
11851
11852
11853
11854
11855
11856
11857
11858# If no C compiler was specified, use CC.
11859LTCC=${LTCC-"$CC"}
11860
11861# If no C compiler flags were specified, use CFLAGS.
11862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11863
11864# Allow CC to be a program name with arguments.
11865compiler=$CC
11866
11867# Save the default compiler, since it gets overwritten when the other
11868# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11869compiler_DEFAULT=$CC
11870
11871# save warnings/boilerplate of simple test code
11872ac_outfile=conftest.$ac_objext
11873echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11874eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875_lt_compiler_boilerplate=`cat conftest.err`
11876$RM conftest*
11877
11878ac_outfile=conftest.$ac_objext
11879echo "$lt_simple_link_test_code" >conftest.$ac_ext
11880eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11881_lt_linker_boilerplate=`cat conftest.err`
11882$RM -r conftest*
11883
11884
11885## CAVEAT EMPTOR:
11886## There is no encapsulation within the following macros, do not change
11887## the running order or otherwise move them around unless you know exactly
11888## what you are doing...
11889if test -n "$compiler"; then
11890
11891lt_prog_compiler_no_builtin_flag=
11892
11893if test yes = "$GCC"; then
11894 case $cc_basename in
11895 nvcc*)
11896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11897 *)
11898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11899 esac
11900
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11902$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11903if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905else
11906 lt_cv_prog_compiler_rtti_exceptions=no
11907 ac_outfile=conftest.$ac_objext
11908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11910 # Insert the option either (1) after the last *FLAGS variable, or
11911 # (2) before a word containing "conftest.", or (3) at the end.
11912 # Note that $ac_compile itself does not contain backslashes and begins
11913 # with a dollar sign (not a hyphen), so the echo should work correctly.
11914 # The option is referenced via a variable to avoid confusing sed.
11915 lt_compile=`echo "$ac_compile" | $SED \
11916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918 -e 's:$: $lt_compiler_flag:'`
11919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11920 (eval "$lt_compile" 2>conftest.err)
11921 ac_status=$?
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 if (exit $ac_status) && test -s "$ac_outfile"; then
11925 # The compiler can only warn and ignore the option if not recognized
11926 # So say no if there are warnings other than the usual output.
11927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11930 lt_cv_prog_compiler_rtti_exceptions=yes
11931 fi
11932 fi
11933 $RM conftest*
11934
11935fi
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11937$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11938
11939if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11941else
11942 :
11943fi
11944
11945fi
11946
11947
11948
11949
11950
11951
11952 lt_prog_compiler_wl=
11953lt_prog_compiler_pic=
11954lt_prog_compiler_static=
11955
11956
11957 if test yes = "$GCC"; then
11958 lt_prog_compiler_wl='-Wl,'
11959 lt_prog_compiler_static='-static'
11960
11961 case $host_os in
11962 aix*)
11963 # All AIX code is PIC.
11964 if test ia64 = "$host_cpu"; then
11965 # AIX 5 now supports IA64 processor
11966 lt_prog_compiler_static='-Bstatic'
11967 fi
11968 lt_prog_compiler_pic='-fPIC'
11969 ;;
11970
11971 amigaos*)
11972 case $host_cpu in
11973 powerpc)
11974 # see comment about AmigaOS4 .so support
11975 lt_prog_compiler_pic='-fPIC'
11976 ;;
11977 m68k)
11978 # FIXME: we need at least 68020 code to build shared libraries, but
11979 # adding the '-m68020' flag to GCC prevents building anything better,
11980 # like '-m68040'.
11981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11982 ;;
11983 esac
11984 ;;
11985
11986 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11987 # PIC is the default for these OSes.
11988 ;;
11989
11990 mingw* | cygwin* | pw32* | os2* | cegcc*)
11991 # This hack is so that the source file can tell whether it is being
11992 # built for inclusion in a dll (and should export symbols for example).
11993 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11994 # (--disable-auto-import) libraries
11995 lt_prog_compiler_pic='-DDLL_EXPORT'
11996 case $host_os in
11997 os2*)
11998 lt_prog_compiler_static='$wl-static'
11999 ;;
12000 esac
12001 ;;
12002
12003 darwin* | rhapsody*)
12004 # PIC is the default on this platform
12005 # Common symbols not allowed in MH_DYLIB files
12006 lt_prog_compiler_pic='-fno-common'
12007 ;;
12008
12009 haiku*)
12010 # PIC is the default for Haiku.
12011 # The "-static" flag exists, but is broken.
12012 lt_prog_compiler_static=
12013 ;;
12014
12015 hpux*)
12016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12018 # sets the default TLS model and affects inlining.
12019 case $host_cpu in
12020 hppa*64*)
12021 # +Z the default
12022 ;;
12023 *)
12024 lt_prog_compiler_pic='-fPIC'
12025 ;;
12026 esac
12027 ;;
12028
12029 interix[3-9]*)
12030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12031 # Instead, we relocate shared libraries at runtime.
12032 ;;
12033
12034 msdosdjgpp*)
12035 # Just because we use GCC doesn't mean we suddenly get shared libraries
12036 # on systems that don't support them.
12037 lt_prog_compiler_can_build_shared=no
12038 enable_shared=no
12039 ;;
12040
12041 *nto* | *qnx*)
12042 # QNX uses GNU C++, but need to define -shared option too, otherwise
12043 # it will coredump.
12044 lt_prog_compiler_pic='-fPIC -shared'
12045 ;;
12046
12047 sysv4*MP*)
12048 if test -d /usr/nec; then
12049 lt_prog_compiler_pic=-Kconform_pic
12050 fi
12051 ;;
12052
12053 *)
12054 lt_prog_compiler_pic='-fPIC'
12055 ;;
12056 esac
12057
12058 case $cc_basename in
12059 nvcc*) # Cuda Compiler Driver 2.2
12060 lt_prog_compiler_wl='-Xlinker '
12061 if test -n "$lt_prog_compiler_pic"; then
12062 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12063 fi
12064 ;;
12065 esac
12066 else
12067 # PORTME Check for flag to pass linker flags through the system compiler.
12068 case $host_os in
12069 aix*)
12070 lt_prog_compiler_wl='-Wl,'
12071 if test ia64 = "$host_cpu"; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static='-Bstatic'
12074 else
12075 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12076 fi
12077 ;;
12078
12079 darwin* | rhapsody*)
12080 # PIC is the default on this platform
12081 # Common symbols not allowed in MH_DYLIB files
12082 lt_prog_compiler_pic='-fno-common'
12083 case $cc_basename in
12084 nagfor*)
12085 # NAG Fortran compiler
12086 lt_prog_compiler_wl='-Wl,-Wl,,'
12087 lt_prog_compiler_pic='-PIC'
12088 lt_prog_compiler_static='-Bstatic'
12089 ;;
12090 esac
12091 ;;
12092
12093 mingw* | cygwin* | pw32* | os2* | cegcc*)
12094 # This hack is so that the source file can tell whether it is being
12095 # built for inclusion in a dll (and should export symbols for example).
12096 lt_prog_compiler_pic='-DDLL_EXPORT'
12097 case $host_os in
12098 os2*)
12099 lt_prog_compiler_static='$wl-static'
12100 ;;
12101 esac
12102 ;;
12103
12104 hpux9* | hpux10* | hpux11*)
12105 lt_prog_compiler_wl='-Wl,'
12106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12107 # not for PA HP-UX.
12108 case $host_cpu in
12109 hppa*64*|ia64*)
12110 # +Z the default
12111 ;;
12112 *)
12113 lt_prog_compiler_pic='+Z'
12114 ;;
12115 esac
12116 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12117 lt_prog_compiler_static='$wl-a ${wl}archive'
12118 ;;
12119
12120 irix5* | irix6* | nonstopux*)
12121 lt_prog_compiler_wl='-Wl,'
12122 # PIC (with -KPIC) is the default.
12123 lt_prog_compiler_static='-non_shared'
12124 ;;
12125
12126 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12127 case $cc_basename in
12128 # old Intel for x86_64, which still supported -KPIC.
12129 ecc*)
12130 lt_prog_compiler_wl='-Wl,'
12131 lt_prog_compiler_pic='-KPIC'
12132 lt_prog_compiler_static='-static'
12133 ;;
12134 # icc used to be incompatible with GCC.
12135 # ICC 10 doesn't accept -KPIC any more.
12136 icc* | ifort*)
12137 lt_prog_compiler_wl='-Wl,'
12138 lt_prog_compiler_pic='-fPIC'
12139 lt_prog_compiler_static='-static'
12140 ;;
12141 # Lahey Fortran 8.1.
12142 lf95*)
12143 lt_prog_compiler_wl='-Wl,'
12144 lt_prog_compiler_pic='--shared'
12145 lt_prog_compiler_static='--static'
12146 ;;
12147 nagfor*)
12148 # NAG Fortran compiler
12149 lt_prog_compiler_wl='-Wl,-Wl,,'
12150 lt_prog_compiler_pic='-PIC'
12151 lt_prog_compiler_static='-Bstatic'
12152 ;;
12153 tcc*)
12154 # Fabrice Bellard et al's Tiny C Compiler
12155 lt_prog_compiler_wl='-Wl,'
12156 lt_prog_compiler_pic='-fPIC'
12157 lt_prog_compiler_static='-static'
12158 ;;
12159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12160 # Portland Group compilers (*not* the Pentium gcc compiler,
12161 # which looks to be a dead project)
12162 lt_prog_compiler_wl='-Wl,'
12163 lt_prog_compiler_pic='-fpic'
12164 lt_prog_compiler_static='-Bstatic'
12165 ;;
12166 ccc*)
12167 lt_prog_compiler_wl='-Wl,'
12168 # All Alpha code is PIC.
12169 lt_prog_compiler_static='-non_shared'
12170 ;;
12171 xl* | bgxl* | bgf* | mpixl*)
12172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12173 lt_prog_compiler_wl='-Wl,'
12174 lt_prog_compiler_pic='-qpic'
12175 lt_prog_compiler_static='-qstaticlink'
12176 ;;
12177 *)
12178 case `$CC -V 2>&1 | sed 5q` in
12179 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12180 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12181 lt_prog_compiler_pic='-KPIC'
12182 lt_prog_compiler_static='-Bstatic'
12183 lt_prog_compiler_wl=''
12184 ;;
12185 *Sun\ F* | *Sun*Fortran*)
12186 lt_prog_compiler_pic='-KPIC'
12187 lt_prog_compiler_static='-Bstatic'
12188 lt_prog_compiler_wl='-Qoption ld '
12189 ;;
12190 *Sun\ C*)
12191 # Sun C 5.9
12192 lt_prog_compiler_pic='-KPIC'
12193 lt_prog_compiler_static='-Bstatic'
12194 lt_prog_compiler_wl='-Wl,'
12195 ;;
12196 *Intel*\ [CF]*Compiler*)
12197 lt_prog_compiler_wl='-Wl,'
12198 lt_prog_compiler_pic='-fPIC'
12199 lt_prog_compiler_static='-static'
12200 ;;
12201 *Portland\ Group*)
12202 lt_prog_compiler_wl='-Wl,'
12203 lt_prog_compiler_pic='-fpic'
12204 lt_prog_compiler_static='-Bstatic'
12205 ;;
12206 esac
12207 ;;
12208 esac
12209 ;;
12210
12211 newsos6)
12212 lt_prog_compiler_pic='-KPIC'
12213 lt_prog_compiler_static='-Bstatic'
12214 ;;
12215
12216 *nto* | *qnx*)
12217 # QNX uses GNU C++, but need to define -shared option too, otherwise
12218 # it will coredump.
12219 lt_prog_compiler_pic='-fPIC -shared'
12220 ;;
12221
12222 osf3* | osf4* | osf5*)
12223 lt_prog_compiler_wl='-Wl,'
12224 # All OSF/1 code is PIC.
12225 lt_prog_compiler_static='-non_shared'
12226 ;;
12227
12228 rdos*)
12229 lt_prog_compiler_static='-non_shared'
12230 ;;
12231
12232 solaris*)
12233 lt_prog_compiler_pic='-KPIC'
12234 lt_prog_compiler_static='-Bstatic'
12235 case $cc_basename in
12236 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12237 lt_prog_compiler_wl='-Qoption ld ';;
12238 *)
12239 lt_prog_compiler_wl='-Wl,';;
12240 esac
12241 ;;
12242
12243 sunos4*)
12244 lt_prog_compiler_wl='-Qoption ld '
12245 lt_prog_compiler_pic='-PIC'
12246 lt_prog_compiler_static='-Bstatic'
12247 ;;
12248
12249 sysv4 | sysv4.2uw2* | sysv4.3*)
12250 lt_prog_compiler_wl='-Wl,'
12251 lt_prog_compiler_pic='-KPIC'
12252 lt_prog_compiler_static='-Bstatic'
12253 ;;
12254
12255 sysv4*MP*)
12256 if test -d /usr/nec; then
12257 lt_prog_compiler_pic='-Kconform_pic'
12258 lt_prog_compiler_static='-Bstatic'
12259 fi
12260 ;;
12261
12262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12263 lt_prog_compiler_wl='-Wl,'
12264 lt_prog_compiler_pic='-KPIC'
12265 lt_prog_compiler_static='-Bstatic'
12266 ;;
12267
12268 unicos*)
12269 lt_prog_compiler_wl='-Wl,'
12270 lt_prog_compiler_can_build_shared=no
12271 ;;
12272
12273 uts4*)
12274 lt_prog_compiler_pic='-pic'
12275 lt_prog_compiler_static='-Bstatic'
12276 ;;
12277
12278 *)
12279 lt_prog_compiler_can_build_shared=no
12280 ;;
12281 esac
12282 fi
12283
12284case $host_os in
12285 # For platforms that do not support PIC, -DPIC is meaningless:
12286 *djgpp*)
12287 lt_prog_compiler_pic=
12288 ;;
12289 *)
12290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12291 ;;
12292esac
12293
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12295$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12296if ${lt_cv_prog_compiler_pic+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298else
12299 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12302$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12303lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12304
12305#
12306# Check to make sure the PIC flag actually works.
12307#
12308if test -n "$lt_prog_compiler_pic"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12310$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12311if ${lt_cv_prog_compiler_pic_works+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313else
12314 lt_cv_prog_compiler_pic_works=no
12315 ac_outfile=conftest.$ac_objext
12316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12318 # Insert the option either (1) after the last *FLAGS variable, or
12319 # (2) before a word containing "conftest.", or (3) at the end.
12320 # Note that $ac_compile itself does not contain backslashes and begins
12321 # with a dollar sign (not a hyphen), so the echo should work correctly.
12322 # The option is referenced via a variable to avoid confusing sed.
12323 lt_compile=`echo "$ac_compile" | $SED \
12324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326 -e 's:$: $lt_compiler_flag:'`
12327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12328 (eval "$lt_compile" 2>conftest.err)
12329 ac_status=$?
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 if (exit $ac_status) && test -s "$ac_outfile"; then
12333 # The compiler can only warn and ignore the option if not recognized
12334 # So say no if there are warnings other than the usual output.
12335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12338 lt_cv_prog_compiler_pic_works=yes
12339 fi
12340 fi
12341 $RM conftest*
12342
12343fi
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12345$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12346
12347if test yes = "$lt_cv_prog_compiler_pic_works"; then
12348 case $lt_prog_compiler_pic in
12349 "" | " "*) ;;
12350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12351 esac
12352else
12353 lt_prog_compiler_pic=
12354 lt_prog_compiler_can_build_shared=no
12355fi
12356
12357fi
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369#
12370# Check to make sure the static flag actually works.
12371#
12372wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12374$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12375if ${lt_cv_prog_compiler_static_works+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377else
12378 lt_cv_prog_compiler_static_works=no
12379 save_LDFLAGS=$LDFLAGS
12380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12383 # The linker can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 if test -s conftest.err; then
12386 # Append any errors to the config.log.
12387 cat conftest.err 1>&5
12388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12390 if diff conftest.exp conftest.er2 >/dev/null; then
12391 lt_cv_prog_compiler_static_works=yes
12392 fi
12393 else
12394 lt_cv_prog_compiler_static_works=yes
12395 fi
12396 fi
12397 $RM -r conftest*
12398 LDFLAGS=$save_LDFLAGS
12399
12400fi
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12402$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12403
12404if test yes = "$lt_cv_prog_compiler_static_works"; then
12405 :
12406else
12407 lt_prog_compiler_static=
12408fi
12409
12410
12411
12412
12413
12414
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12418if ${lt_cv_prog_compiler_c_o+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420else
12421 lt_cv_prog_compiler_c_o=no
12422 $RM -r conftest 2>/dev/null
12423 mkdir conftest
12424 cd conftest
12425 mkdir out
12426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12427
12428 lt_compiler_flag="-o out/conftest2.$ac_objext"
12429 # Insert the option either (1) after the last *FLAGS variable, or
12430 # (2) before a word containing "conftest.", or (3) at the end.
12431 # Note that $ac_compile itself does not contain backslashes and begins
12432 # with a dollar sign (not a hyphen), so the echo should work correctly.
12433 lt_compile=`echo "$ac_compile" | $SED \
12434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12436 -e 's:$: $lt_compiler_flag:'`
12437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12438 (eval "$lt_compile" 2>out/conftest.err)
12439 ac_status=$?
12440 cat out/conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12443 then
12444 # The compiler can only warn and ignore the option if not recognized
12445 # So say no if there are warnings
12446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12449 lt_cv_prog_compiler_c_o=yes
12450 fi
12451 fi
12452 chmod u+w . 2>&5
12453 $RM conftest*
12454 # SGI C++ compiler will create directory out/ii_files/ for
12455 # template instantiation
12456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12457 $RM out/* && rmdir out
12458 cd ..
12459 $RM -r conftest
12460 $RM conftest*
12461
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12464$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12465
12466
12467
12468
12469
12470
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12473if ${lt_cv_prog_compiler_c_o+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475else
12476 lt_cv_prog_compiler_c_o=no
12477 $RM -r conftest 2>/dev/null
12478 mkdir conftest
12479 cd conftest
12480 mkdir out
12481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12482
12483 lt_compiler_flag="-o out/conftest2.$ac_objext"
12484 # Insert the option either (1) after the last *FLAGS variable, or
12485 # (2) before a word containing "conftest.", or (3) at the end.
12486 # Note that $ac_compile itself does not contain backslashes and begins
12487 # with a dollar sign (not a hyphen), so the echo should work correctly.
12488 lt_compile=`echo "$ac_compile" | $SED \
12489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12491 -e 's:$: $lt_compiler_flag:'`
12492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12493 (eval "$lt_compile" 2>out/conftest.err)
12494 ac_status=$?
12495 cat out/conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12498 then
12499 # The compiler can only warn and ignore the option if not recognized
12500 # So say no if there are warnings
12501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12504 lt_cv_prog_compiler_c_o=yes
12505 fi
12506 fi
12507 chmod u+w . 2>&5
12508 $RM conftest*
12509 # SGI C++ compiler will create directory out/ii_files/ for
12510 # template instantiation
12511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12512 $RM out/* && rmdir out
12513 cd ..
12514 $RM -r conftest
12515 $RM conftest*
12516
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12519$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12520
12521
12522
12523
12524hard_links=nottested
12525if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12526 # do not overwrite the value of need_locks provided by the user
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12528$as_echo_n "checking if we can lock with hard links... " >&6; }
12529 hard_links=yes
12530 $RM conftest*
12531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12532 touch conftest.a
12533 ln conftest.a conftest.b 2>&5 || hard_links=no
12534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12536$as_echo "$hard_links" >&6; }
12537 if test no = "$hard_links"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12539$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12540 need_locks=warn
12541 fi
12542else
12543 need_locks=no
12544fi
12545
12546
12547
12548
12549
12550
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12553
12554 runpath_var=
12555 allow_undefined_flag=
12556 always_export_symbols=no
12557 archive_cmds=
12558 archive_expsym_cmds=
12559 compiler_needs_object=no
12560 enable_shared_with_static_runtimes=no
12561 export_dynamic_flag_spec=
12562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12563 hardcode_automatic=no
12564 hardcode_direct=no
12565 hardcode_direct_absolute=no
12566 hardcode_libdir_flag_spec=
12567 hardcode_libdir_separator=
12568 hardcode_minus_L=no
12569 hardcode_shlibpath_var=unsupported
12570 inherit_rpath=no
12571 link_all_deplibs=unknown
12572 module_cmds=
12573 module_expsym_cmds=
12574 old_archive_from_new_cmds=
12575 old_archive_from_expsyms_cmds=
12576 thread_safe_flag_spec=
12577 whole_archive_flag_spec=
12578 # include_expsyms should be a list of space-separated symbols to be *always*
12579 # included in the symbol list
12580 include_expsyms=
12581 # exclude_expsyms can be an extended regexp of symbols to exclude
12582 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12583 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12584 # as well as any symbol that contains 'd'.
12585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12587 # platforms (ab)use it in PIC code, but their linkers get confused if
12588 # the symbol is explicitly referenced. Since portable code cannot
12589 # rely on this symbol name, it's probably fine to never include it in
12590 # preloaded symbol tables.
12591 # Exclude shared library initialization/finalization symbols.
12592 extract_expsyms_cmds=
12593
12594 case $host_os in
12595 cygwin* | mingw* | pw32* | cegcc*)
12596 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12597 # When not using gcc, we currently assume that we are using
12598 # Microsoft Visual C++.
12599 if test yes != "$GCC"; then
12600 with_gnu_ld=no
12601 fi
12602 ;;
12603 interix*)
12604 # we just hope/assume this is gcc and not c89 (= MSVC++)
12605 with_gnu_ld=yes
12606 ;;
12607 openbsd* | bitrig*)
12608 with_gnu_ld=no
12609 ;;
12610 linux* | k*bsd*-gnu | gnu*)
12611 link_all_deplibs=no
12612 ;;
12613 esac
12614
12615 ld_shlibs=yes
12616
12617 # On some targets, GNU ld is compatible enough with the native linker
12618 # that we're better off using the native interface for both.
12619 lt_use_gnu_ld_interface=no
12620 if test yes = "$with_gnu_ld"; then
12621 case $host_os in
12622 aix*)
12623 # The AIX port of GNU ld has always aspired to compatibility
12624 # with the native linker. However, as the warning in the GNU ld
12625 # block says, versions before 2.19.5* couldn't really create working
12626 # shared libraries, regardless of the interface used.
12627 case `$LD -v 2>&1` in
12628 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12629 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12630 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12631 *)
12632 lt_use_gnu_ld_interface=yes
12633 ;;
12634 esac
12635 ;;
12636 *)
12637 lt_use_gnu_ld_interface=yes
12638 ;;
12639 esac
12640 fi
12641
12642 if test yes = "$lt_use_gnu_ld_interface"; then
12643 # If archive_cmds runs LD, not CC, wlarc should be empty
12644 wlarc='$wl'
12645
12646 # Set some defaults for GNU ld with shared library support. These
12647 # are reset later if shared libraries are not supported. Putting them
12648 # here allows them to be overridden if necessary.
12649 runpath_var=LD_RUN_PATH
12650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12651 export_dynamic_flag_spec='$wl--export-dynamic'
12652 # ancient GNU ld didn't support --whole-archive et. al.
12653 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12654 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12655 else
12656 whole_archive_flag_spec=
12657 fi
12658 supports_anon_versioning=no
12659 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12660 *GNU\ gold*) supports_anon_versioning=yes ;;
12661 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12662 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12663 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12664 *\ 2.11.*) ;; # other 2.11 versions
12665 *) supports_anon_versioning=yes ;;
12666 esac
12667
12668 # See if GNU ld supports shared libraries.
12669 case $host_os in
12670 aix[3-9]*)
12671 # On AIX/PPC, the GNU linker is very broken
12672 if test ia64 != "$host_cpu"; then
12673 ld_shlibs=no
12674 cat <<_LT_EOF 1>&2
12675
12676*** Warning: the GNU linker, at least up to release 2.19, is reported
12677*** to be unable to reliably create shared libraries on AIX.
12678*** Therefore, libtool is disabling shared libraries support. If you
12679*** really care for shared libraries, you may want to install binutils
12680*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12681*** You will then need to restart the configuration process.
12682
12683_LT_EOF
12684 fi
12685 ;;
12686
12687 amigaos*)
12688 case $host_cpu in
12689 powerpc)
12690 # see comment about AmigaOS4 .so support
12691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12692 archive_expsym_cmds=''
12693 ;;
12694 m68k)
12695 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)'
12696 hardcode_libdir_flag_spec='-L$libdir'
12697 hardcode_minus_L=yes
12698 ;;
12699 esac
12700 ;;
12701
12702 beos*)
12703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12704 allow_undefined_flag=unsupported
12705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12706 # support --undefined. This deserves some investigation. FIXME
12707 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12708 else
12709 ld_shlibs=no
12710 fi
12711 ;;
12712
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12715 # as there is no search path for DLLs.
12716 hardcode_libdir_flag_spec='-L$libdir'
12717 export_dynamic_flag_spec='$wl--export-all-symbols'
12718 allow_undefined_flag=unsupported
12719 always_export_symbols=no
12720 enable_shared_with_static_runtimes=yes
12721 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'
12722 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12723
12724 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726 # If the export-symbols file already is a .def file, use it as
12727 # is; otherwise, prepend EXPORTS...
12728 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12729 cp $export_symbols $output_objdir/$soname.def;
12730 else
12731 echo EXPORTS > $output_objdir/$soname.def;
12732 cat $export_symbols >> $output_objdir/$soname.def;
12733 fi~
12734 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12735 else
12736 ld_shlibs=no
12737 fi
12738 ;;
12739
12740 haiku*)
12741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12742 link_all_deplibs=yes
12743 ;;
12744
12745 os2*)
12746 hardcode_libdir_flag_spec='-L$libdir'
12747 hardcode_minus_L=yes
12748 allow_undefined_flag=unsupported
12749 shrext_cmds=.dll
12750 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12751 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12752 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12753 $ECHO EXPORTS >> $output_objdir/$libname.def~
12754 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12756 emximp -o $lib $output_objdir/$libname.def'
12757 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12758 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12759 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12760 $ECHO EXPORTS >> $output_objdir/$libname.def~
12761 prefix_cmds="$SED"~
12762 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12763 prefix_cmds="$prefix_cmds -e 1d";
12764 fi~
12765 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12766 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12767 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12768 emximp -o $lib $output_objdir/$libname.def'
12769 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12770 enable_shared_with_static_runtimes=yes
12771 ;;
12772
12773 interix[3-9]*)
12774 hardcode_direct=no
12775 hardcode_shlibpath_var=no
12776 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12777 export_dynamic_flag_spec='$wl-E'
12778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12779 # Instead, shared libraries are loaded at an image base (0x10000000 by
12780 # default) and relocated if they conflict, which is a slow very memory
12781 # consuming and fragmenting process. To avoid this, we pick a random,
12782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12785 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'
12786 ;;
12787
12788 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12789 tmp_diet=no
12790 if test linux-dietlibc = "$host_os"; then
12791 case $cc_basename in
12792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12793 esac
12794 fi
12795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12796 && test no = "$tmp_diet"
12797 then
12798 tmp_addflag=' $pic_flag'
12799 tmp_sharedflag='-shared'
12800 case $cc_basename,$host_cpu in
12801 pgcc*) # Portland Group C compiler
12802 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'
12803 tmp_addflag=' $pic_flag'
12804 ;;
12805 pgf77* | pgf90* | pgf95* | pgfortran*)
12806 # Portland Group f77 and f90 compilers
12807 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'
12808 tmp_addflag=' $pic_flag -Mnomain' ;;
12809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12810 tmp_addflag=' -i_dynamic' ;;
12811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12812 tmp_addflag=' -i_dynamic -nofor_main' ;;
12813 ifc* | ifort*) # Intel Fortran compiler
12814 tmp_addflag=' -nofor_main' ;;
12815 lf95*) # Lahey Fortran 8.1
12816 whole_archive_flag_spec=
12817 tmp_sharedflag='--shared' ;;
12818 nagfor*) # NAGFOR 5.3
12819 tmp_sharedflag='-Wl,-shared' ;;
12820 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12821 tmp_sharedflag='-qmkshrobj'
12822 tmp_addflag= ;;
12823 nvcc*) # Cuda Compiler Driver 2.2
12824 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'
12825 compiler_needs_object=yes
12826 ;;
12827 esac
12828 case `$CC -V 2>&1 | sed 5q` in
12829 *Sun\ C*) # Sun C 5.9
12830 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'
12831 compiler_needs_object=yes
12832 tmp_sharedflag='-G' ;;
12833 *Sun\ F*) # Sun Fortran 8.3
12834 tmp_sharedflag='-G' ;;
12835 esac
12836 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12837
12838 if test yes = "$supports_anon_versioning"; then
12839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12841 echo "local: *; };" >> $output_objdir/$libname.ver~
12842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12843 fi
12844
12845 case $cc_basename in
12846 tcc*)
12847 export_dynamic_flag_spec='-rdynamic'
12848 ;;
12849 xlf* | bgf* | bgxlf* | mpixlf*)
12850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12853 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12854 if test yes = "$supports_anon_versioning"; then
12855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12857 echo "local: *; };" >> $output_objdir/$libname.ver~
12858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12859 fi
12860 ;;
12861 esac
12862 else
12863 ld_shlibs=no
12864 fi
12865 ;;
12866
12867 netbsd* | netbsdelf*-gnu)
12868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12870 wlarc=
12871 else
12872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12874 fi
12875 ;;
12876
12877 solaris*)
12878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12879 ld_shlibs=no
12880 cat <<_LT_EOF 1>&2
12881
12882*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12883*** create shared libraries on Solaris systems. Therefore, libtool
12884*** is disabling shared libraries support. We urge you to upgrade GNU
12885*** binutils to release 2.9.1 or newer. Another option is to modify
12886*** your PATH or compiler configuration so that the native linker is
12887*** used, and then restart.
12888
12889_LT_EOF
12890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12893 else
12894 ld_shlibs=no
12895 fi
12896 ;;
12897
12898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12899 case `$LD -v 2>&1` in
12900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12901 ld_shlibs=no
12902 cat <<_LT_EOF 1>&2
12903
12904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12905*** reliably create shared libraries on SCO systems. Therefore, libtool
12906*** is disabling shared libraries support. We urge you to upgrade GNU
12907*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12908*** your PATH or compiler configuration so that the native linker is
12909*** used, and then restart.
12910
12911_LT_EOF
12912 ;;
12913 *)
12914 # For security reasons, it is highly recommended that you always
12915 # use absolute paths for naming shared libraries, and exclude the
12916 # DT_RUNPATH tag from executables and libraries. But doing so
12917 # requires that you compile everything twice, which is a pain.
12918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12922 else
12923 ld_shlibs=no
12924 fi
12925 ;;
12926 esac
12927 ;;
12928
12929 sunos4*)
12930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931 wlarc=
12932 hardcode_direct=yes
12933 hardcode_shlibpath_var=no
12934 ;;
12935
12936 *)
12937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12940 else
12941 ld_shlibs=no
12942 fi
12943 ;;
12944 esac
12945
12946 if test no = "$ld_shlibs"; then
12947 runpath_var=
12948 hardcode_libdir_flag_spec=
12949 export_dynamic_flag_spec=
12950 whole_archive_flag_spec=
12951 fi
12952 else
12953 # PORTME fill in a description of your system's linker (not GNU ld)
12954 case $host_os in
12955 aix3*)
12956 allow_undefined_flag=unsupported
12957 always_export_symbols=yes
12958 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'
12959 # Note: this linker hardcodes the directories in LIBPATH if there
12960 # are no directories specified by -L.
12961 hardcode_minus_L=yes
12962 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12963 # Neither direct hardcoding nor static linking is supported with a
12964 # broken collect2.
12965 hardcode_direct=unsupported
12966 fi
12967 ;;
12968
12969 aix[4-9]*)
12970 if test ia64 = "$host_cpu"; then
12971 # On IA64, the linker does run time linking by default, so we don't
12972 # have to do anything special.
12973 aix_use_runtimelinking=no
12974 exp_sym_flag='-Bexport'
12975 no_entry_flag=
12976 else
12977 # If we're using GNU nm, then we don't want the "-C" option.
12978 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12979 # Without the "-l" option, or with the "-B" option, AIX nm treats
12980 # weak defined symbols like other global defined symbols, whereas
12981 # GNU nm marks them as "W".
12982 # While the 'weak' keyword is ignored in the Export File, we need
12983 # it in the Import File for the 'aix-soname' feature, so we have
12984 # to replace the "-B" option with "-P" for AIX nm.
12985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12986 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'
12987 else
12988 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'
12989 fi
12990 aix_use_runtimelinking=no
12991
12992 # Test if we are trying to use run time linking or normal
12993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12994 # have runtime linking enabled, and use it for executables.
12995 # For shared libraries, we enable/disable runtime linking
12996 # depending on the kind of the shared library created -
12997 # when "with_aix_soname,aix_use_runtimelinking" is:
12998 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12999 # "aix,yes" lib.so shared, rtl:yes, for executables
13000 # lib.a static archive
13001 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13002 # lib.a(lib.so.V) shared, rtl:no, for executables
13003 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13004 # lib.a(lib.so.V) shared, rtl:no
13005 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13006 # lib.a static archive
13007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13008 for ld_flag in $LDFLAGS; do
13009 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13010 aix_use_runtimelinking=yes
13011 break
13012 fi
13013 done
13014 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13015 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13016 # so we don't have lib.a shared libs to link our executables.
13017 # We have to force runtime linking in this case.
13018 aix_use_runtimelinking=yes
13019 LDFLAGS="$LDFLAGS -Wl,-brtl"
13020 fi
13021 ;;
13022 esac
13023
13024 exp_sym_flag='-bexport'
13025 no_entry_flag='-bnoentry'
13026 fi
13027
13028 # When large executables or shared objects are built, AIX ld can
13029 # have problems creating the table of contents. If linking a library
13030 # or program results in "error TOC overflow" add -mminimal-toc to
13031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13033
13034 archive_cmds=''
13035 hardcode_direct=yes
13036 hardcode_direct_absolute=yes
13037 hardcode_libdir_separator=':'
13038 link_all_deplibs=yes
13039 file_list_spec='$wl-f,'
13040 case $with_aix_soname,$aix_use_runtimelinking in
13041 aix,*) ;; # traditional, no import file
13042 svr4,* | *,yes) # use import file
13043 # The Import File defines what to hardcode.
13044 hardcode_direct=no
13045 hardcode_direct_absolute=no
13046 ;;
13047 esac
13048
13049 if test yes = "$GCC"; then
13050 case $host_os in aix4.[012]|aix4.[012].*)
13051 # We only want to do this on AIX 4.2 and lower, the check
13052 # below for broken collect2 doesn't work under 4.3+
13053 collect2name=`$CC -print-prog-name=collect2`
13054 if test -f "$collect2name" &&
13055 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13056 then
13057 # We have reworked collect2
13058 :
13059 else
13060 # We have old collect2
13061 hardcode_direct=unsupported
13062 # It fails to find uninstalled libraries when the uninstalled
13063 # path is not listed in the libpath. Setting hardcode_minus_L
13064 # to unsupported forces relinking
13065 hardcode_minus_L=yes
13066 hardcode_libdir_flag_spec='-L$libdir'
13067 hardcode_libdir_separator=
13068 fi
13069 ;;
13070 esac
13071 shared_flag='-shared'
13072 if test yes = "$aix_use_runtimelinking"; then
13073 shared_flag="$shared_flag "'$wl-G'
13074 fi
13075 # Need to ensure runtime linking is disabled for the traditional
13076 # shared library, or the linker may eventually find shared libraries
13077 # /with/ Import File - we do not want to mix them.
13078 shared_flag_aix='-shared'
13079 shared_flag_svr4='-shared $wl-G'
13080 else
13081 # not using gcc
13082 if test ia64 = "$host_cpu"; then
13083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13084 # chokes on -Wl,-G. The following line is correct:
13085 shared_flag='-G'
13086 else
13087 if test yes = "$aix_use_runtimelinking"; then
13088 shared_flag='$wl-G'
13089 else
13090 shared_flag='$wl-bM:SRE'
13091 fi
13092 shared_flag_aix='$wl-bM:SRE'
13093 shared_flag_svr4='$wl-G'
13094 fi
13095 fi
13096
13097 export_dynamic_flag_spec='$wl-bexpall'
13098 # It seems that -bexpall does not export symbols beginning with
13099 # underscore (_), so it is better to generate a list of symbols to export.
13100 always_export_symbols=yes
13101 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13102 # Warning - without using the other runtime loading flags (-brtl),
13103 # -berok will link without error, but may produce a broken library.
13104 allow_undefined_flag='-berok'
13105 # Determine the default libpath from the value encoded in an
13106 # empty executable.
13107 if test set = "${lt_cv_aix_libpath+set}"; then
13108 aix_libpath=$lt_cv_aix_libpath
13109else
13110 if ${lt_cv_aix_libpath_+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112else
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h. */
13115
13116int main (void)
13117{
13118
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123if ac_fn_c_try_link "$LINENO"; then :
13124
13125 lt_aix_libpath_sed='
13126 /Import File Strings/,/^$/ {
13127 /^0/ {
13128 s/^0 *\([^ ]*\) *$/\1/
13129 p
13130 }
13131 }'
13132 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133 # Check for a 64-bit object if we didn't find anything.
13134 if test -z "$lt_cv_aix_libpath_"; then
13135 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13136 fi
13137fi
13138rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 if test -z "$lt_cv_aix_libpath_"; then
13141 lt_cv_aix_libpath_=/usr/lib:/lib
13142 fi
13143
13144fi
13145
13146 aix_libpath=$lt_cv_aix_libpath_
13147fi
13148
13149 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13150 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
13151 else
13152 if test ia64 = "$host_cpu"; then
13153 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13154 allow_undefined_flag="-z nodefs"
13155 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"
13156 else
13157 # Determine the default libpath from the value encoded in an
13158 # empty executable.
13159 if test set = "${lt_cv_aix_libpath+set}"; then
13160 aix_libpath=$lt_cv_aix_libpath
13161else
13162 if ${lt_cv_aix_libpath_+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164else
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h. */
13167
13168int main (void)
13169{
13170
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_link "$LINENO"; then :
13176
13177 lt_aix_libpath_sed='
13178 /Import File Strings/,/^$/ {
13179 /^0/ {
13180 s/^0 *\([^ ]*\) *$/\1/
13181 p
13182 }
13183 }'
13184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185 # Check for a 64-bit object if we didn't find anything.
13186 if test -z "$lt_cv_aix_libpath_"; then
13187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13188 fi
13189fi
13190rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$lt_cv_aix_libpath_"; then
13193 lt_cv_aix_libpath_=/usr/lib:/lib
13194 fi
13195
13196fi
13197
13198 aix_libpath=$lt_cv_aix_libpath_
13199fi
13200
13201 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13202 # Warning - without using the other run time loading flags,
13203 # -berok will link without error, but may produce a broken library.
13204 no_undefined_flag=' $wl-bernotok'
13205 allow_undefined_flag=' $wl-berok'
13206 if test yes = "$with_gnu_ld"; then
13207 # We only use this code for GNU lds that support --whole-archive.
13208 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13209 else
13210 # Exported symbols can be pulled into shared objects from archives
13211 whole_archive_flag_spec='$convenience'
13212 fi
13213 archive_cmds_need_lc=yes
13214 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13215 # -brtl affects multiple linker settings, -berok does not and is overridden later
13216 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13217 if test svr4 != "$with_aix_soname"; then
13218 # This is similar to how AIX traditionally builds its shared libraries.
13219 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'
13220 fi
13221 if test aix != "$with_aix_soname"; then
13222 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'
13223 else
13224 # used by -dlpreopen to get the symbols
13225 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13226 fi
13227 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13228 fi
13229 fi
13230 ;;
13231
13232 amigaos*)
13233 case $host_cpu in
13234 powerpc)
13235 # see comment about AmigaOS4 .so support
13236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13237 archive_expsym_cmds=''
13238 ;;
13239 m68k)
13240 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)'
13241 hardcode_libdir_flag_spec='-L$libdir'
13242 hardcode_minus_L=yes
13243 ;;
13244 esac
13245 ;;
13246
13247 bsdi[45]*)
13248 export_dynamic_flag_spec=-rdynamic
13249 ;;
13250
13251 cygwin* | mingw* | pw32* | cegcc*)
13252 # When not using gcc, we currently assume that we are using
13253 # Microsoft Visual C++.
13254 # hardcode_libdir_flag_spec is actually meaningless, as there is
13255 # no search path for DLLs.
13256 case $cc_basename in
13257 cl*)
13258 # Native MSVC
13259 hardcode_libdir_flag_spec=' '
13260 allow_undefined_flag=unsupported
13261 always_export_symbols=yes
13262 file_list_spec='@'
13263 # Tell ltmain to make .lib files, not .a files.
13264 libext=lib
13265 # Tell ltmain to make .dll files, not .so files.
13266 shrext_cmds=.dll
13267 # FIXME: Setting linknames here is a bad hack.
13268 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13270 cp "$export_symbols" "$output_objdir/$soname.def";
13271 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13272 else
13273 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13274 fi~
13275 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13276 linknames='
13277 # The linker will not automatically build a static lib if we build a DLL.
13278 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13279 enable_shared_with_static_runtimes=yes
13280 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13282 # Don't use ranlib
13283 old_postinstall_cmds='chmod 644 $oldlib'
13284 postlink_cmds='lt_outputfile="@OUTPUT@"~
13285 lt_tool_outputfile="@TOOL_OUTPUT@"~
13286 case $lt_outputfile in
13287 *.exe|*.EXE) ;;
13288 *)
13289 lt_outputfile=$lt_outputfile.exe
13290 lt_tool_outputfile=$lt_tool_outputfile.exe
13291 ;;
13292 esac~
13293 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13295 $RM "$lt_outputfile.manifest";
13296 fi'
13297 ;;
13298 *)
13299 # Assume MSVC wrapper
13300 hardcode_libdir_flag_spec=' '
13301 allow_undefined_flag=unsupported
13302 # Tell ltmain to make .lib files, not .a files.
13303 libext=lib
13304 # Tell ltmain to make .dll files, not .so files.
13305 shrext_cmds=.dll
13306 # FIXME: Setting linknames here is a bad hack.
13307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13308 # The linker will automatically build a .lib file if we build a DLL.
13309 old_archive_from_new_cmds='true'
13310 # FIXME: Should let the user specify the lib program.
13311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13312 enable_shared_with_static_runtimes=yes
13313 ;;
13314 esac
13315 ;;
13316
13317 darwin* | rhapsody*)
13318
13319
13320 archive_cmds_need_lc=no
13321 hardcode_direct=no
13322 hardcode_automatic=yes
13323 hardcode_shlibpath_var=unsupported
13324 if test yes = "$lt_cv_ld_force_load"; then
13325 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\"`'
13326
13327 else
13328 whole_archive_flag_spec=''
13329 fi
13330 link_all_deplibs=yes
13331 allow_undefined_flag=$_lt_dar_allow_undefined
13332 case $cc_basename in
13333 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13334 *) _lt_dar_can_shared=$GCC ;;
13335 esac
13336 if test yes = "$_lt_dar_can_shared"; then
13337 output_verbose_link_cmd=func_echo_all
13338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13340 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"
13341 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"
13342
13343 else
13344 ld_shlibs=no
13345 fi
13346
13347 ;;
13348
13349 dgux*)
13350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13351 hardcode_libdir_flag_spec='-L$libdir'
13352 hardcode_shlibpath_var=no
13353 ;;
13354
13355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13356 # support. Future versions do this automatically, but an explicit c++rt0.o
13357 # does not break anything, and helps significantly (at the cost of a little
13358 # extra space).
13359 freebsd2.2*)
13360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13361 hardcode_libdir_flag_spec='-R$libdir'
13362 hardcode_direct=yes
13363 hardcode_shlibpath_var=no
13364 ;;
13365
13366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13367 freebsd2.*)
13368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13369 hardcode_direct=yes
13370 hardcode_minus_L=yes
13371 hardcode_shlibpath_var=no
13372 ;;
13373
13374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13375 freebsd* | dragonfly*)
13376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec='-R$libdir'
13378 hardcode_direct=yes
13379 hardcode_shlibpath_var=no
13380 ;;
13381
13382 hpux9*)
13383 if test yes = "$GCC"; then
13384 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'
13385 else
13386 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'
13387 fi
13388 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13389 hardcode_libdir_separator=:
13390 hardcode_direct=yes
13391
13392 # hardcode_minus_L: Not really in the search PATH,
13393 # but as the default location of the library.
13394 hardcode_minus_L=yes
13395 export_dynamic_flag_spec='$wl-E'
13396 ;;
13397
13398 hpux10*)
13399 if test yes,no = "$GCC,$with_gnu_ld"; then
13400 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13401 else
13402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13403 fi
13404 if test no = "$with_gnu_ld"; then
13405 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13406 hardcode_libdir_separator=:
13407 hardcode_direct=yes
13408 hardcode_direct_absolute=yes
13409 export_dynamic_flag_spec='$wl-E'
13410 # hardcode_minus_L: Not really in the search PATH,
13411 # but as the default location of the library.
13412 hardcode_minus_L=yes
13413 fi
13414 ;;
13415
13416 hpux11*)
13417 if test yes,no = "$GCC,$with_gnu_ld"; then
13418 case $host_cpu in
13419 hppa*64*)
13420 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 ;;
13422 ia64*)
13423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13424 ;;
13425 *)
13426 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13427 ;;
13428 esac
13429 else
13430 case $host_cpu in
13431 hppa*64*)
13432 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 ;;
13434 ia64*)
13435 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13436 ;;
13437 *)
13438
13439 # Older versions of the 11.00 compiler do not understand -b yet
13440 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13442$as_echo_n "checking if $CC understands -b... " >&6; }
13443if ${lt_cv_prog_compiler__b+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445else
13446 lt_cv_prog_compiler__b=no
13447 save_LDFLAGS=$LDFLAGS
13448 LDFLAGS="$LDFLAGS -b"
13449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13451 # The linker can only warn and ignore the option if not recognized
13452 # So say no if there are warnings
13453 if test -s conftest.err; then
13454 # Append any errors to the config.log.
13455 cat conftest.err 1>&5
13456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13458 if diff conftest.exp conftest.er2 >/dev/null; then
13459 lt_cv_prog_compiler__b=yes
13460 fi
13461 else
13462 lt_cv_prog_compiler__b=yes
13463 fi
13464 fi
13465 $RM -r conftest*
13466 LDFLAGS=$save_LDFLAGS
13467
13468fi
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13470$as_echo "$lt_cv_prog_compiler__b" >&6; }
13471
13472if test yes = "$lt_cv_prog_compiler__b"; then
13473 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13474else
13475 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13476fi
13477
13478 ;;
13479 esac
13480 fi
13481 if test no = "$with_gnu_ld"; then
13482 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13483 hardcode_libdir_separator=:
13484
13485 case $host_cpu in
13486 hppa*64*|ia64*)
13487 hardcode_direct=no
13488 hardcode_shlibpath_var=no
13489 ;;
13490 *)
13491 hardcode_direct=yes
13492 hardcode_direct_absolute=yes
13493 export_dynamic_flag_spec='$wl-E'
13494
13495 # hardcode_minus_L: Not really in the search PATH,
13496 # but as the default location of the library.
13497 hardcode_minus_L=yes
13498 ;;
13499 esac
13500 fi
13501 ;;
13502
13503 irix5* | irix6* | nonstopux*)
13504 if test yes = "$GCC"; then
13505 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'
13506 # Try to use the -exported_symbol ld option, if it does not
13507 # work, assume that -exports_file does not work either and
13508 # implicitly export all symbols.
13509 # This should be the same for all languages, so no per-tag cache variable.
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13511$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13512if ${lt_cv_irix_exported_symbol+:} false; then :
13513 $as_echo_n "(cached) " >&6
13514else
13515 save_LDFLAGS=$LDFLAGS
13516 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h. */
13519int foo (void) { return 0; }
13520_ACEOF
13521if ac_fn_c_try_link "$LINENO"; then :
13522 lt_cv_irix_exported_symbol=yes
13523else
13524 lt_cv_irix_exported_symbol=no
13525fi
13526rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LDFLAGS=$save_LDFLAGS
13529fi
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13531$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13532 if test yes = "$lt_cv_irix_exported_symbol"; then
13533 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'
13534 fi
13535 link_all_deplibs=no
13536 else
13537 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'
13538 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'
13539 fi
13540 archive_cmds_need_lc='no'
13541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13542 hardcode_libdir_separator=:
13543 inherit_rpath=yes
13544 link_all_deplibs=yes
13545 ;;
13546
13547 linux*)
13548 case $cc_basename in
13549 tcc*)
13550 # Fabrice Bellard et al's Tiny C Compiler
13551 ld_shlibs=yes
13552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13553 ;;
13554 esac
13555 ;;
13556
13557 netbsd* | netbsdelf*-gnu)
13558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13560 else
13561 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13562 fi
13563 hardcode_libdir_flag_spec='-R$libdir'
13564 hardcode_direct=yes
13565 hardcode_shlibpath_var=no
13566 ;;
13567
13568 newsos6)
13569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570 hardcode_direct=yes
13571 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13572 hardcode_libdir_separator=:
13573 hardcode_shlibpath_var=no
13574 ;;
13575
13576 *nto* | *qnx*)
13577 ;;
13578
13579 openbsd* | bitrig*)
13580 if test -f /usr/libexec/ld.so; then
13581 hardcode_direct=yes
13582 hardcode_shlibpath_var=no
13583 hardcode_direct_absolute=yes
13584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13587 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13588 export_dynamic_flag_spec='$wl-E'
13589 else
13590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13592 fi
13593 else
13594 ld_shlibs=no
13595 fi
13596 ;;
13597
13598 os2*)
13599 hardcode_libdir_flag_spec='-L$libdir'
13600 hardcode_minus_L=yes
13601 allow_undefined_flag=unsupported
13602 shrext_cmds=.dll
13603 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13606 $ECHO EXPORTS >> $output_objdir/$libname.def~
13607 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13608 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13609 emximp -o $lib $output_objdir/$libname.def'
13610 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13613 $ECHO EXPORTS >> $output_objdir/$libname.def~
13614 prefix_cmds="$SED"~
13615 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13616 prefix_cmds="$prefix_cmds -e 1d";
13617 fi~
13618 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13619 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13621 emximp -o $lib $output_objdir/$libname.def'
13622 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13623 enable_shared_with_static_runtimes=yes
13624 ;;
13625
13626 osf3*)
13627 if test yes = "$GCC"; then
13628 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13629 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'
13630 else
13631 allow_undefined_flag=' -expect_unresolved \*'
13632 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'
13633 fi
13634 archive_cmds_need_lc='no'
13635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13636 hardcode_libdir_separator=:
13637 ;;
13638
13639 osf4* | osf5*) # as osf3* with the addition of -msym flag
13640 if test yes = "$GCC"; then
13641 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13642 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'
13643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13644 else
13645 allow_undefined_flag=' -expect_unresolved \*'
13646 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'
13647 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~
13648 $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'
13649
13650 # Both c and cxx compiler support -rpath directly
13651 hardcode_libdir_flag_spec='-rpath $libdir'
13652 fi
13653 archive_cmds_need_lc='no'
13654 hardcode_libdir_separator=:
13655 ;;
13656
13657 solaris*)
13658 no_undefined_flag=' -z defs'
13659 if test yes = "$GCC"; then
13660 wlarc='$wl'
13661 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663 $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'
13664 else
13665 case `$CC -V 2>&1` in
13666 *"Compilers 5.0"*)
13667 wlarc=''
13668 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13669 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13671 ;;
13672 *)
13673 wlarc='$wl'
13674 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13677 ;;
13678 esac
13679 fi
13680 hardcode_libdir_flag_spec='-R$libdir'
13681 hardcode_shlibpath_var=no
13682 case $host_os in
13683 solaris2.[0-5] | solaris2.[0-5].*) ;;
13684 *)
13685 # The compiler driver will combine and reorder linker options,
13686 # but understands '-z linker_flag'. GCC discards it without '$wl',
13687 # but is careful enough not to reorder.
13688 # Supported since Solaris 2.6 (maybe 2.5.1?)
13689 if test yes = "$GCC"; then
13690 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13691 else
13692 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13693 fi
13694 ;;
13695 esac
13696 link_all_deplibs=yes
13697 ;;
13698
13699 sunos4*)
13700 if test sequent = "$host_vendor"; then
13701 # Use $CC to link under sequent, because it throws in some extra .o
13702 # files that make .init and .fini sections work.
13703 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13704 else
13705 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13706 fi
13707 hardcode_libdir_flag_spec='-L$libdir'
13708 hardcode_direct=yes
13709 hardcode_minus_L=yes
13710 hardcode_shlibpath_var=no
13711 ;;
13712
13713 sysv4)
13714 case $host_vendor in
13715 sni)
13716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717 hardcode_direct=yes # is this really true???
13718 ;;
13719 siemens)
13720 ## LD is ld it makes a PLAMLIB
13721 ## CC just makes a GrossModule.
13722 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13723 reload_cmds='$CC -r -o $output$reload_objs'
13724 hardcode_direct=no
13725 ;;
13726 motorola)
13727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13728 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13729 ;;
13730 esac
13731 runpath_var='LD_RUN_PATH'
13732 hardcode_shlibpath_var=no
13733 ;;
13734
13735 sysv4.3*)
13736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13737 hardcode_shlibpath_var=no
13738 export_dynamic_flag_spec='-Bexport'
13739 ;;
13740
13741 sysv4*MP*)
13742 if test -d /usr/nec; then
13743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744 hardcode_shlibpath_var=no
13745 runpath_var=LD_RUN_PATH
13746 hardcode_runpath_var=yes
13747 ld_shlibs=yes
13748 fi
13749 ;;
13750
13751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13752 no_undefined_flag='$wl-z,text'
13753 archive_cmds_need_lc=no
13754 hardcode_shlibpath_var=no
13755 runpath_var='LD_RUN_PATH'
13756
13757 if test yes = "$GCC"; then
13758 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13760 else
13761 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 fi
13764 ;;
13765
13766 sysv5* | sco3.2v5* | sco5v6*)
13767 # Note: We CANNOT use -z defs as we might desire, because we do not
13768 # link with -lc, and that would cause any symbols used from libc to
13769 # always be unresolved, which means just about no library would
13770 # ever link correctly. If we're not using GNU ld we use -z text
13771 # though, which does catch some bad symbols but isn't as heavy-handed
13772 # as -z defs.
13773 no_undefined_flag='$wl-z,text'
13774 allow_undefined_flag='$wl-z,nodefs'
13775 archive_cmds_need_lc=no
13776 hardcode_shlibpath_var=no
13777 hardcode_libdir_flag_spec='$wl-R,$libdir'
13778 hardcode_libdir_separator=':'
13779 link_all_deplibs=yes
13780 export_dynamic_flag_spec='$wl-Bexport'
13781 runpath_var='LD_RUN_PATH'
13782
13783 if test yes = "$GCC"; then
13784 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 else
13787 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 fi
13790 ;;
13791
13792 uts4*)
13793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13794 hardcode_libdir_flag_spec='-L$libdir'
13795 hardcode_shlibpath_var=no
13796 ;;
13797
13798 *)
13799 ld_shlibs=no
13800 ;;
13801 esac
13802
13803 if test sni = "$host_vendor"; then
13804 case $host in
13805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13806 export_dynamic_flag_spec='$wl-Blargedynsym'
13807 ;;
13808 esac
13809 fi
13810 fi
13811
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13813$as_echo "$ld_shlibs" >&6; }
13814test no = "$ld_shlibs" && can_build_shared=no
13815
13816with_gnu_ld=$with_gnu_ld
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832#
13833# Do we need to explicitly link libc?
13834#
13835case "x$archive_cmds_need_lc" in
13836x|xyes)
13837 # Assume -lc should be added
13838 archive_cmds_need_lc=yes
13839
13840 if test yes,yes = "$GCC,$enable_shared"; then
13841 case $archive_cmds in
13842 *'~'*)
13843 # FIXME: we may have to deal with multi-command sequences.
13844 ;;
13845 '$CC '*)
13846 # Test whether the compiler implicitly links with -lc since on some
13847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13848 # to ld, don't add -lc before -lgcc.
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13850$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13851if ${lt_cv_archive_cmds_need_lc+:} false; then :
13852 $as_echo_n "(cached) " >&6
13853else
13854 $RM conftest*
13855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13856
13857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13858 (eval $ac_compile) 2>&5
13859 ac_status=$?
13860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861 test $ac_status = 0; } 2>conftest.err; then
13862 soname=conftest
13863 lib=conftest
13864 libobjs=conftest.$ac_objext
13865 deplibs=
13866 wl=$lt_prog_compiler_wl
13867 pic_flag=$lt_prog_compiler_pic
13868 compiler_flags=-v
13869 linker_flags=-v
13870 verstring=
13871 output_objdir=.
13872 libname=conftest
13873 lt_save_allow_undefined_flag=$allow_undefined_flag
13874 allow_undefined_flag=
13875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13876 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13877 ac_status=$?
13878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879 test $ac_status = 0; }
13880 then
13881 lt_cv_archive_cmds_need_lc=no
13882 else
13883 lt_cv_archive_cmds_need_lc=yes
13884 fi
13885 allow_undefined_flag=$lt_save_allow_undefined_flag
13886 else
13887 cat conftest.err 1>&5
13888 fi
13889 $RM conftest*
13890
13891fi
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13893$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13894 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13895 ;;
13896 esac
13897 fi
13898 ;;
13899esac
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14053$as_echo_n "checking dynamic linker characteristics... " >&6; }
14054
14055if test yes = "$GCC"; then
14056 case $host_os in
14057 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14058 *) lt_awk_arg='/^libraries:/' ;;
14059 esac
14060 case $host_os in
14061 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14062 *) lt_sed_strip_eq='s|=/|/|g' ;;
14063 esac
14064 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14065 case $lt_search_path_spec in
14066 *\;*)
14067 # if the path contains ";" then we assume it to be the separator
14068 # otherwise default to the standard path separator (i.e. ":") - it is
14069 # assumed that no part of a normal pathname contains ";" but that should
14070 # okay in the real world where ";" in dirpaths is itself problematic.
14071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14072 ;;
14073 *)
14074 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14075 ;;
14076 esac
14077 # Ok, now we have the path, separated by spaces, we can step through it
14078 # and add multilib dir if necessary...
14079 lt_tmp_lt_search_path_spec=
14080 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14081 # ...but if some path component already ends with the multilib dir we assume
14082 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14083 case "$lt_multi_os_dir; $lt_search_path_spec " in
14084 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14085 lt_multi_os_dir=
14086 ;;
14087 esac
14088 for lt_sys_path in $lt_search_path_spec; do
14089 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14090 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14091 elif test -n "$lt_multi_os_dir"; then
14092 test -d "$lt_sys_path" && \
14093 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14094 fi
14095 done
14096 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14097BEGIN {RS = " "; FS = "/|\n";} {
14098 lt_foo = "";
14099 lt_count = 0;
14100 for (lt_i = NF; lt_i > 0; lt_i--) {
14101 if ($lt_i != "" && $lt_i != ".") {
14102 if ($lt_i == "..") {
14103 lt_count++;
14104 } else {
14105 if (lt_count == 0) {
14106 lt_foo = "/" $lt_i lt_foo;
14107 } else {
14108 lt_count--;
14109 }
14110 }
14111 }
14112 }
14113 if (lt_foo != "") { lt_freq[lt_foo]++; }
14114 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14115}'`
14116 # AWK program above erroneously prepends '/' to C:/dos/paths
14117 # for these hosts.
14118 case $host_os in
14119 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14120 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14121 esac
14122 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14123else
14124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14125fi
14126library_names_spec=
14127libname_spec='lib$name'
14128soname_spec=
14129shrext_cmds=.so
14130postinstall_cmds=
14131postuninstall_cmds=
14132finish_cmds=
14133finish_eval=
14134shlibpath_var=
14135shlibpath_overrides_runpath=unknown
14136version_type=none
14137dynamic_linker="$host_os ld.so"
14138sys_lib_dlsearch_path_spec="/lib /usr/lib"
14139need_lib_prefix=unknown
14140hardcode_into_libs=no
14141
14142# when you set need_version to no, make sure it does not cause -set_version
14143# flags to be left without arguments
14144need_version=unknown
14145
14146
14147
14148case $host_os in
14149aix3*)
14150 version_type=linux # correct to gnu/linux during the next big refactor
14151 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14152 shlibpath_var=LIBPATH
14153
14154 # AIX 3 has no versioning support, so we append a major version to the name.
14155 soname_spec='$libname$release$shared_ext$major'
14156 ;;
14157
14158aix[4-9]*)
14159 version_type=linux # correct to gnu/linux during the next big refactor
14160 need_lib_prefix=no
14161 need_version=no
14162 hardcode_into_libs=yes
14163 if test ia64 = "$host_cpu"; then
14164 # AIX 5 supports IA64
14165 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 else
14168 # With GCC up to 2.95.x, collect2 would create an import file
14169 # for dependence libraries. The import file would start with
14170 # the line '#! .'. This would cause the generated library to
14171 # depend on '.', always an invalid library. This was fixed in
14172 # development snapshots of GCC prior to 3.0.
14173 case $host_os in
14174 aix4 | aix4.[01] | aix4.[01].*)
14175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14176 echo ' yes '
14177 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14178 :
14179 else
14180 can_build_shared=no
14181 fi
14182 ;;
14183 esac
14184 # Using Import Files as archive members, it is possible to support
14185 # filename-based versioning of shared library archives on AIX. While
14186 # this would work for both with and without runtime linking, it will
14187 # prevent static linking of such archives. So we do filename-based
14188 # shared library versioning with .so extension only, which is used
14189 # when both runtime linking and shared linking is enabled.
14190 # Unfortunately, runtime linking may impact performance, so we do
14191 # not want this to be the default eventually. Also, we use the
14192 # versioned .so libs for executables only if there is the -brtl
14193 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14194 # To allow for filename-based versioning support, we need to create
14195 # libNAME.so.V as an archive file, containing:
14196 # *) an Import File, referring to the versioned filename of the
14197 # archive as well as the shared archive member, telling the
14198 # bitwidth (32 or 64) of that shared object, and providing the
14199 # list of exported symbols of that shared object, eventually
14200 # decorated with the 'weak' keyword
14201 # *) the shared object with the F_LOADONLY flag set, to really avoid
14202 # it being seen by the linker.
14203 # At run time we better use the real file rather than another symlink,
14204 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14205
14206 case $with_aix_soname,$aix_use_runtimelinking in
14207 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14208 # soname into executable. Probably we can add versioning support to
14209 # collect2, so additional links can be useful in future.
14210 aix,yes) # traditional libtool
14211 dynamic_linker='AIX unversionable lib.so'
14212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14213 # instead of lib<name>.a to let people know that these are not
14214 # typical AIX shared libraries.
14215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14216 ;;
14217 aix,no) # traditional AIX only
14218 dynamic_linker='AIX lib.a(lib.so.V)'
14219 # We preserve .a as extension for shared libraries through AIX4.2
14220 # and later when we are not doing run time linking.
14221 library_names_spec='$libname$release.a $libname.a'
14222 soname_spec='$libname$release$shared_ext$major'
14223 ;;
14224 svr4,*) # full svr4 only
14225 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14226 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14227 # We do not specify a path in Import Files, so LIBPATH fires.
14228 shlibpath_overrides_runpath=yes
14229 ;;
14230 *,yes) # both, prefer svr4
14231 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14232 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14233 # unpreferred sharedlib libNAME.a needs extra handling
14234 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"'
14235 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"'
14236 # We do not specify a path in Import Files, so LIBPATH fires.
14237 shlibpath_overrides_runpath=yes
14238 ;;
14239 *,no) # both, prefer aix
14240 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14241 library_names_spec='$libname$release.a $libname.a'
14242 soname_spec='$libname$release$shared_ext$major'
14243 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14244 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)'
14245 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"'
14246 ;;
14247 esac
14248 shlibpath_var=LIBPATH
14249 fi
14250 ;;
14251
14252amigaos*)
14253 case $host_cpu in
14254 powerpc)
14255 # Since July 2007 AmigaOS4 officially supports .so libraries.
14256 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14258 ;;
14259 m68k)
14260 library_names_spec='$libname.ixlibrary $libname.a'
14261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14262 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'
14263 ;;
14264 esac
14265 ;;
14266
14267beos*)
14268 library_names_spec='$libname$shared_ext'
14269 dynamic_linker="$host_os ld.so"
14270 shlibpath_var=LIBRARY_PATH
14271 ;;
14272
14273bsdi[45]*)
14274 version_type=linux # correct to gnu/linux during the next big refactor
14275 need_version=no
14276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14277 soname_spec='$libname$release$shared_ext$major'
14278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14282 # the default ld.so.conf also contains /usr/contrib/lib and
14283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14284 # libtool to hard-code these into programs
14285 ;;
14286
14287cygwin* | mingw* | pw32* | cegcc*)
14288 version_type=windows
14289 shrext_cmds=.dll
14290 need_version=no
14291 need_lib_prefix=no
14292
14293 case $GCC,$cc_basename in
14294 yes,*)
14295 # gcc
14296 library_names_spec='$libname.dll.a'
14297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14298 postinstall_cmds='base_file=`basename \$file`~
14299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14300 dldir=$destdir/`dirname \$dlpath`~
14301 test -d \$dldir || mkdir -p \$dldir~
14302 $install_prog $dir/$dlname \$dldir/$dlname~
14303 chmod a+x \$dldir/$dlname~
14304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14306 fi'
14307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14308 dlpath=$dir/\$dldll~
14309 $RM \$dlpath'
14310 shlibpath_overrides_runpath=yes
14311
14312 case $host_os in
14313 cygwin*)
14314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14315 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14316
14317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14318 ;;
14319 mingw* | cegcc*)
14320 # MinGW DLLs use traditional 'lib' prefix
14321 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14322 ;;
14323 pw32*)
14324 # pw32 DLLs use 'pw' prefix rather than 'lib'
14325 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14326 ;;
14327 esac
14328 dynamic_linker='Win32 ld.exe'
14329 ;;
14330
14331 *,cl*)
14332 # Native MSVC
14333 libname_spec='$name'
14334 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14335 library_names_spec='$libname.dll.lib'
14336
14337 case $build_os in
14338 mingw*)
14339 sys_lib_search_path_spec=
14340 lt_save_ifs=$IFS
14341 IFS=';'
14342 for lt_path in $LIB
14343 do
14344 IFS=$lt_save_ifs
14345 # Let DOS variable expansion print the short 8.3 style file name.
14346 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14347 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14348 done
14349 IFS=$lt_save_ifs
14350 # Convert to MSYS style.
14351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14352 ;;
14353 cygwin*)
14354 # Convert to unix form, then to dos form, then back to unix form
14355 # but this time dos style (no spaces!) so that the unix form looks
14356 # like /cygdrive/c/PROGRA~1:/cygdr...
14357 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14358 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14359 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14360 ;;
14361 *)
14362 sys_lib_search_path_spec=$LIB
14363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14364 # It is most probably a Windows format PATH.
14365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14366 else
14367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14368 fi
14369 # FIXME: find the short name or the path components, as spaces are
14370 # common. (e.g. "Program Files" -> "PROGRA~1")
14371 ;;
14372 esac
14373
14374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375 postinstall_cmds='base_file=`basename \$file`~
14376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14377 dldir=$destdir/`dirname \$dlpath`~
14378 test -d \$dldir || mkdir -p \$dldir~
14379 $install_prog $dir/$dlname \$dldir/$dlname'
14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14381 dlpath=$dir/\$dldll~
14382 $RM \$dlpath'
14383 shlibpath_overrides_runpath=yes
14384 dynamic_linker='Win32 link.exe'
14385 ;;
14386
14387 *)
14388 # Assume MSVC wrapper
14389 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14390 dynamic_linker='Win32 ld.exe'
14391 ;;
14392 esac
14393 # FIXME: first we should search . and the directory the executable is in
14394 shlibpath_var=PATH
14395 ;;
14396
14397darwin* | rhapsody*)
14398 dynamic_linker="$host_os dyld"
14399 version_type=darwin
14400 need_lib_prefix=no
14401 need_version=no
14402 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14403 soname_spec='$libname$release$major$shared_ext'
14404 shlibpath_overrides_runpath=yes
14405 shlibpath_var=DYLD_LIBRARY_PATH
14406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14407
14408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14410 ;;
14411
14412dgux*)
14413 version_type=linux # correct to gnu/linux during the next big refactor
14414 need_lib_prefix=no
14415 need_version=no
14416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14417 soname_spec='$libname$release$shared_ext$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 ;;
14420
14421freebsd* | dragonfly*)
14422 # DragonFly does not have aout. When/if they implement a new
14423 # versioning mechanism, adjust this.
14424 if test -x /usr/bin/objformat; then
14425 objformat=`/usr/bin/objformat`
14426 else
14427 case $host_os in
14428 freebsd[23].*) objformat=aout ;;
14429 *) objformat=elf ;;
14430 esac
14431 fi
14432 version_type=freebsd-$objformat
14433 case $version_type in
14434 freebsd-elf*)
14435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14436 soname_spec='$libname$release$shared_ext$major'
14437 need_version=no
14438 need_lib_prefix=no
14439 ;;
14440 freebsd-*)
14441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14442 need_version=yes
14443 ;;
14444 esac
14445 shlibpath_var=LD_LIBRARY_PATH
14446 case $host_os in
14447 freebsd2.*)
14448 shlibpath_overrides_runpath=yes
14449 ;;
14450 freebsd3.[01]* | freebsdelf3.[01]*)
14451 shlibpath_overrides_runpath=yes
14452 hardcode_into_libs=yes
14453 ;;
14454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14456 shlibpath_overrides_runpath=no
14457 hardcode_into_libs=yes
14458 ;;
14459 *) # from 4.6 on, and DragonFly
14460 shlibpath_overrides_runpath=yes
14461 hardcode_into_libs=yes
14462 ;;
14463 esac
14464 ;;
14465
14466haiku*)
14467 version_type=linux # correct to gnu/linux during the next big refactor
14468 need_lib_prefix=no
14469 need_version=no
14470 dynamic_linker="$host_os runtime_loader"
14471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14472 soname_spec='$libname$release$shared_ext$major'
14473 shlibpath_var=LIBRARY_PATH
14474 shlibpath_overrides_runpath=no
14475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14476 hardcode_into_libs=yes
14477 ;;
14478
14479hpux9* | hpux10* | hpux11*)
14480 # Give a soname corresponding to the major version so that dld.sl refuses to
14481 # link against other versions.
14482 version_type=sunos
14483 need_lib_prefix=no
14484 need_version=no
14485 case $host_cpu in
14486 ia64*)
14487 shrext_cmds='.so'
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.so"
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493 soname_spec='$libname$release$shared_ext$major'
14494 if test 32 = "$HPUX_IA64_MODE"; then
14495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14497 else
14498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14499 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14500 fi
14501 ;;
14502 hppa*64*)
14503 shrext_cmds='.sl'
14504 hardcode_into_libs=yes
14505 dynamic_linker="$host_os dld.sl"
14506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14509 soname_spec='$libname$release$shared_ext$major'
14510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512 ;;
14513 *)
14514 shrext_cmds='.sl'
14515 dynamic_linker="$host_os dld.sl"
14516 shlibpath_var=SHLIB_PATH
14517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14519 soname_spec='$libname$release$shared_ext$major'
14520 ;;
14521 esac
14522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14523 postinstall_cmds='chmod 555 $lib'
14524 # or fails outright, so override atomically:
14525 install_override_mode=555
14526 ;;
14527
14528interix[3-9]*)
14529 version_type=linux # correct to gnu/linux during the next big refactor
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14533 soname_spec='$libname$release$shared_ext$major'
14534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=no
14537 hardcode_into_libs=yes
14538 ;;
14539
14540irix5* | irix6* | nonstopux*)
14541 case $host_os in
14542 nonstopux*) version_type=nonstopux ;;
14543 *)
14544 if test yes = "$lt_cv_prog_gnu_ld"; then
14545 version_type=linux # correct to gnu/linux during the next big refactor
14546 else
14547 version_type=irix
14548 fi ;;
14549 esac
14550 need_lib_prefix=no
14551 need_version=no
14552 soname_spec='$libname$release$shared_ext$major'
14553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14554 case $host_os in
14555 irix5* | nonstopux*)
14556 libsuff= shlibsuff=
14557 ;;
14558 *)
14559 case $LD in # libtool.m4 will add one of these switches to LD
14560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14561 libsuff= shlibsuff= libmagic=32-bit;;
14562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14563 libsuff=32 shlibsuff=N32 libmagic=N32;;
14564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14566 *) libsuff= shlibsuff= libmagic=never-match;;
14567 esac
14568 ;;
14569 esac
14570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14571 shlibpath_overrides_runpath=no
14572 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14573 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14574 hardcode_into_libs=yes
14575 ;;
14576
14577# No shared lib support for Linux oldld, aout, or coff.
14578linux*oldld* | linux*aout* | linux*coff*)
14579 dynamic_linker=no
14580 ;;
14581
14582linux*android*)
14583 version_type=none # Android doesn't support versioned libraries.
14584 need_lib_prefix=no
14585 need_version=no
14586 library_names_spec='$libname$release$shared_ext'
14587 soname_spec='$libname$release$shared_ext'
14588 finish_cmds=
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=yes
14591
14592 # This implies no fast_install, which is unacceptable.
14593 # Some rework will be needed to allow for fast_install
14594 # before this can be enabled.
14595 hardcode_into_libs=yes
14596
14597 dynamic_linker='Android linker'
14598 # Don't embed -rpath directories since the linker doesn't support them.
14599 hardcode_libdir_flag_spec='-L$libdir'
14600 ;;
14601
14602# This must be glibc/ELF.
14603linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14604 version_type=linux # correct to gnu/linux during the next big refactor
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608 soname_spec='$libname$release$shared_ext$major'
14609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=no
14612
14613 # Some binutils ld are patched to set DT_RUNPATH
14614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616else
14617 lt_cv_shlibpath_overrides_runpath=no
14618 save_LDFLAGS=$LDFLAGS
14619 save_libdir=$libdir
14620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h. */
14624
14625int main (void)
14626{
14627
14628 ;
14629 return 0;
14630}
14631_ACEOF
14632if ac_fn_c_try_link "$LINENO"; then :
14633 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14634 lt_cv_shlibpath_overrides_runpath=yes
14635fi
14636fi
14637rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LDFLAGS=$save_LDFLAGS
14640 libdir=$save_libdir
14641
14642fi
14643
14644 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14645
14646 # This implies no fast_install, which is unacceptable.
14647 # Some rework will be needed to allow for fast_install
14648 # before this can be enabled.
14649 hardcode_into_libs=yes
14650
14651 # Ideally, we could use ldconfig to report *all* directores which are
14652 # searched for libraries, however this is still not possible. Aside from not
14653 # being certain /sbin/ldconfig is available, command
14654 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14655 # even though it is searched at run-time. Try to do the best guess by
14656 # appending ld.so.conf contents (and includes) to the search path.
14657 if test -f /etc/ld.so.conf; then
14658 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' ' '`
14659 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14660 fi
14661
14662 # We used to test for /lib/ld.so.1 and disable shared libraries on
14663 # powerpc, because MkLinux only supported shared libraries with the
14664 # GNU dynamic linker. Since this was broken with cross compilers,
14665 # most powerpc-linux boxes support dynamic linking these days and
14666 # people can always --disable-shared, the test was removed, and we
14667 # assume the GNU/Linux dynamic linker is in use.
14668 dynamic_linker='GNU/Linux ld.so'
14669 ;;
14670
14671netbsdelf*-gnu)
14672 version_type=linux
14673 need_lib_prefix=no
14674 need_version=no
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=no
14679 hardcode_into_libs=yes
14680 dynamic_linker='NetBSD ld.elf_so'
14681 ;;
14682
14683netbsd*)
14684 version_type=sunos
14685 need_lib_prefix=no
14686 need_version=no
14687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14690 dynamic_linker='NetBSD (a.out) ld.so'
14691 else
14692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14693 soname_spec='$libname$release$shared_ext$major'
14694 dynamic_linker='NetBSD ld.elf_so'
14695 fi
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14698 hardcode_into_libs=yes
14699 ;;
14700
14701newsos6)
14702 version_type=linux # correct to gnu/linux during the next big refactor
14703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14706 ;;
14707
14708*nto* | *qnx*)
14709 version_type=qnx
14710 need_lib_prefix=no
14711 need_version=no
14712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14713 soname_spec='$libname$release$shared_ext$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=no
14716 hardcode_into_libs=yes
14717 dynamic_linker='ldqnx.so'
14718 ;;
14719
14720openbsd* | bitrig*)
14721 version_type=sunos
14722 sys_lib_dlsearch_path_spec=/usr/lib
14723 need_lib_prefix=no
14724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14725 need_version=no
14726 else
14727 need_version=yes
14728 fi
14729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14733 ;;
14734
14735os2*)
14736 libname_spec='$name'
14737 version_type=windows
14738 shrext_cmds=.dll
14739 need_version=no
14740 need_lib_prefix=no
14741 # OS/2 can only load a DLL with a base name of 8 characters or less.
14742 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14743 v=$($ECHO $release$versuffix | tr -d .-);
14744 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14745 $ECHO $n$v`$shared_ext'
14746 library_names_spec='${libname}_dll.$libext'
14747 dynamic_linker='OS/2 ld.exe'
14748 shlibpath_var=BEGINLIBPATH
14749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14751 postinstall_cmds='base_file=`basename \$file`~
14752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14753 dldir=$destdir/`dirname \$dlpath`~
14754 test -d \$dldir || mkdir -p \$dldir~
14755 $install_prog $dir/$dlname \$dldir/$dlname~
14756 chmod a+x \$dldir/$dlname~
14757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14759 fi'
14760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14761 dlpath=$dir/\$dldll~
14762 $RM \$dlpath'
14763 ;;
14764
14765osf3* | osf4* | osf5*)
14766 version_type=osf
14767 need_lib_prefix=no
14768 need_version=no
14769 soname_spec='$libname$release$shared_ext$major'
14770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774 ;;
14775
14776rdos*)
14777 dynamic_linker=no
14778 ;;
14779
14780solaris*)
14781 version_type=linux # correct to gnu/linux during the next big refactor
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14785 soname_spec='$libname$release$shared_ext$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 hardcode_into_libs=yes
14789 # ldd complains unless libraries are executable
14790 postinstall_cmds='chmod +x $lib'
14791 ;;
14792
14793sunos4*)
14794 version_type=sunos
14795 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes
14799 if test yes = "$with_gnu_ld"; then
14800 need_lib_prefix=no
14801 fi
14802 need_version=yes
14803 ;;
14804
14805sysv4 | sysv4.3*)
14806 version_type=linux # correct to gnu/linux during the next big refactor
14807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14808 soname_spec='$libname$release$shared_ext$major'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 case $host_vendor in
14811 sni)
14812 shlibpath_overrides_runpath=no
14813 need_lib_prefix=no
14814 runpath_var=LD_RUN_PATH
14815 ;;
14816 siemens)
14817 need_lib_prefix=no
14818 ;;
14819 motorola)
14820 need_lib_prefix=no
14821 need_version=no
14822 shlibpath_overrides_runpath=no
14823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14824 ;;
14825 esac
14826 ;;
14827
14828sysv4*MP*)
14829 if test -d /usr/nec; then
14830 version_type=linux # correct to gnu/linux during the next big refactor
14831 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14832 soname_spec='$libname$shared_ext.$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 fi
14835 ;;
14836
14837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14838 version_type=sco
14839 need_lib_prefix=no
14840 need_version=no
14841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14842 soname_spec='$libname$release$shared_ext$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14846 if test yes = "$with_gnu_ld"; then
14847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14848 else
14849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14850 case $host_os in
14851 sco3.2v5*)
14852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14853 ;;
14854 esac
14855 fi
14856 sys_lib_dlsearch_path_spec='/usr/lib'
14857 ;;
14858
14859tpf*)
14860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14861 version_type=linux # correct to gnu/linux during the next big refactor
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14868 ;;
14869
14870uts4*)
14871 version_type=linux # correct to gnu/linux during the next big refactor
14872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873 soname_spec='$libname$release$shared_ext$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 ;;
14876
14877*)
14878 dynamic_linker=no
14879 ;;
14880esac
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14882$as_echo "$dynamic_linker" >&6; }
14883test no = "$dynamic_linker" && can_build_shared=no
14884
14885variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14886if test yes = "$GCC"; then
14887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14888fi
14889
14890if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14891 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14892fi
14893
14894if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14895 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14896fi
14897
14898# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14899configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14900
14901# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14902func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14903
14904# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14905configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15004$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15005hardcode_action=
15006if test -n "$hardcode_libdir_flag_spec" ||
15007 test -n "$runpath_var" ||
15008 test yes = "$hardcode_automatic"; then
15009
15010 # We can hardcode non-existent directories.
15011 if test no != "$hardcode_direct" &&
15012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013 # have to relink, otherwise we might link with an installed library
15014 # when we should be linking with a yet-to-be-installed one
15015 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15016 test no != "$hardcode_minus_L"; then
15017 # Linking always hardcodes the temporary library directory.
15018 hardcode_action=relink
15019 else
15020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021 hardcode_action=immediate
15022 fi
15023else
15024 # We cannot hardcode anything, or else we can only hardcode existing
15025 # directories.
15026 hardcode_action=unsupported
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15029$as_echo "$hardcode_action" >&6; }
15030
15031if test relink = "$hardcode_action" ||
15032 test yes = "$inherit_rpath"; then
15033 # Fast installation is not supported
15034 enable_fast_install=no
15035elif test yes = "$shlibpath_overrides_runpath" ||
15036 test no = "$enable_shared"; then
15037 # Fast installation is not necessary
15038 enable_fast_install=needless
15039fi
15040
15041
15042
15043
15044
15045
15046 if test yes != "$enable_dlopen"; then
15047 enable_dlopen=unknown
15048 enable_dlopen_self=unknown
15049 enable_dlopen_self_static=unknown
15050else
15051 lt_cv_dlopen=no
15052 lt_cv_dlopen_libs=
15053
15054 case $host_os in
15055 beos*)
15056 lt_cv_dlopen=load_add_on
15057 lt_cv_dlopen_libs=
15058 lt_cv_dlopen_self=yes
15059 ;;
15060
15061 mingw* | pw32* | cegcc*)
15062 lt_cv_dlopen=LoadLibrary
15063 lt_cv_dlopen_libs=
15064 ;;
15065
15066 cygwin*)
15067 lt_cv_dlopen=dlopen
15068 lt_cv_dlopen_libs=
15069 ;;
15070
15071 darwin*)
15072 # if libdl is installed we need to link against it
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15074$as_echo_n "checking for dlopen in -ldl... " >&6; }
15075if ${ac_cv_lib_dl_dlopen+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077else
15078 ac_check_lib_save_LIBS=$LIBS
15079LIBS="-ldl $LIBS"
15080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h. */
15082
15083
15084#ifdef __cplusplus
15085extern "C"
15086#endif
15087char dlopen ();
15088int main (void)
15089{
15090return dlopen ();
15091 ;
15092 return 0;
15093}
15094_ACEOF
15095if ac_fn_c_try_link "$LINENO"; then :
15096 ac_cv_lib_dl_dlopen=yes
15097else
15098 ac_cv_lib_dl_dlopen=no
15099fi
15100rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102LIBS=$ac_check_lib_save_LIBS
15103fi
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15105$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15106if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15107 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15108else
15109
15110 lt_cv_dlopen=dyld
15111 lt_cv_dlopen_libs=
15112 lt_cv_dlopen_self=yes
15113
15114fi
15115
15116 ;;
15117
15118 tpf*)
15119 # Don't try to run any link tests for TPF. We know it's impossible
15120 # because TPF is a cross-compiler, and we know how we open DSOs.
15121 lt_cv_dlopen=dlopen
15122 lt_cv_dlopen_libs=
15123 lt_cv_dlopen_self=no
15124 ;;
15125
15126 *)
15127 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15128if test "x$ac_cv_func_shl_load" = xyes; then :
15129 lt_cv_dlopen=shl_load
15130else
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15132$as_echo_n "checking for shl_load in -ldld... " >&6; }
15133if ${ac_cv_lib_dld_shl_load+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135else
15136 ac_check_lib_save_LIBS=$LIBS
15137LIBS="-ldld $LIBS"
15138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h. */
15140
15141
15142#ifdef __cplusplus
15143extern "C"
15144#endif
15145char shl_load ();
15146int main (void)
15147{
15148return shl_load ();
15149 ;
15150 return 0;
15151}
15152_ACEOF
15153if ac_fn_c_try_link "$LINENO"; then :
15154 ac_cv_lib_dld_shl_load=yes
15155else
15156 ac_cv_lib_dld_shl_load=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15160LIBS=$ac_check_lib_save_LIBS
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15163$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15164if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15165 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15166else
15167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15168if test "x$ac_cv_func_dlopen" = xyes; then :
15169 lt_cv_dlopen=dlopen
15170else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172$as_echo_n "checking for dlopen in -ldl... " >&6; }
15173if ${ac_cv_lib_dl_dlopen+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175else
15176 ac_check_lib_save_LIBS=$LIBS
15177LIBS="-ldl $LIBS"
15178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h. */
15180
15181
15182#ifdef __cplusplus
15183extern "C"
15184#endif
15185char dlopen ();
15186int main (void)
15187{
15188return dlopen ();
15189 ;
15190 return 0;
15191}
15192_ACEOF
15193if ac_fn_c_try_link "$LINENO"; then :
15194 ac_cv_lib_dl_dlopen=yes
15195else
15196 ac_cv_lib_dl_dlopen=no
15197fi
15198rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200LIBS=$ac_check_lib_save_LIBS
15201fi
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15203$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15204if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15206else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15208$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15209if ${ac_cv_lib_svld_dlopen+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211else
15212 ac_check_lib_save_LIBS=$LIBS
15213LIBS="-lsvld $LIBS"
15214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h. */
15216
15217
15218#ifdef __cplusplus
15219extern "C"
15220#endif
15221char dlopen ();
15222int main (void)
15223{
15224return dlopen ();
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229if ac_fn_c_try_link "$LINENO"; then :
15230 ac_cv_lib_svld_dlopen=yes
15231else
15232 ac_cv_lib_svld_dlopen=no
15233fi
15234rm -f core conftest.err conftest.$ac_objext \
15235 conftest$ac_exeext conftest.$ac_ext
15236LIBS=$ac_check_lib_save_LIBS
15237fi
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15239$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15240if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15241 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15242else
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15244$as_echo_n "checking for dld_link in -ldld... " >&6; }
15245if ${ac_cv_lib_dld_dld_link+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247else
15248 ac_check_lib_save_LIBS=$LIBS
15249LIBS="-ldld $LIBS"
15250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h. */
15252
15253
15254#ifdef __cplusplus
15255extern "C"
15256#endif
15257char dld_link ();
15258int main (void)
15259{
15260return dld_link ();
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265if ac_fn_c_try_link "$LINENO"; then :
15266 ac_cv_lib_dld_dld_link=yes
15267else
15268 ac_cv_lib_dld_dld_link=no
15269fi
15270rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272LIBS=$ac_check_lib_save_LIBS
15273fi
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15275$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15276if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15277 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15278fi
15279
15280
15281fi
15282
15283
15284fi
15285
15286
15287fi
15288
15289
15290fi
15291
15292
15293fi
15294
15295 ;;
15296 esac
15297
15298 if test no = "$lt_cv_dlopen"; then
15299 enable_dlopen=no
15300 else
15301 enable_dlopen=yes
15302 fi
15303
15304 case $lt_cv_dlopen in
15305 dlopen)
15306 save_CPPFLAGS=$CPPFLAGS
15307 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15308
15309 save_LDFLAGS=$LDFLAGS
15310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15311
15312 save_LIBS=$LIBS
15313 LIBS="$lt_cv_dlopen_libs $LIBS"
15314
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15316$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15317if ${lt_cv_dlopen_self+:} false; then :
15318 $as_echo_n "(cached) " >&6
15319else
15320 if test yes = "$cross_compiling"; then :
15321 lt_cv_dlopen_self=cross
15322else
15323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15324 lt_status=$lt_dlunknown
15325 cat > conftest.$ac_ext <<_LT_EOF
15326#line $LINENO "configure"
15327#include "confdefs.h"
15328
15329#if HAVE_DLFCN_H
15330#include <dlfcn.h>
15331#endif
15332
15333#include <stdio.h>
15334
15335#ifdef RTLD_GLOBAL
15336# define LT_DLGLOBAL RTLD_GLOBAL
15337#else
15338# ifdef DL_GLOBAL
15339# define LT_DLGLOBAL DL_GLOBAL
15340# else
15341# define LT_DLGLOBAL 0
15342# endif
15343#endif
15344
15345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15346 find out it does not work in some platform. */
15347#ifndef LT_DLLAZY_OR_NOW
15348# ifdef RTLD_LAZY
15349# define LT_DLLAZY_OR_NOW RTLD_LAZY
15350# else
15351# ifdef DL_LAZY
15352# define LT_DLLAZY_OR_NOW DL_LAZY
15353# else
15354# ifdef RTLD_NOW
15355# define LT_DLLAZY_OR_NOW RTLD_NOW
15356# else
15357# ifdef DL_NOW
15358# define LT_DLLAZY_OR_NOW DL_NOW
15359# else
15360# define LT_DLLAZY_OR_NOW 0
15361# endif
15362# endif
15363# endif
15364# endif
15365#endif
15366
15367/* When -fvisibility=hidden is used, assume the code has been annotated
15368 correspondingly for the symbols needed. */
15369#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15370int fnord () __attribute__((visibility("default")));
15371#endif
15372
15373int fnord () { return 42; }
15374int main ()
15375{
15376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15377 int status = $lt_dlunknown;
15378
15379 if (self)
15380 {
15381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15382 else
15383 {
15384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15385 else puts (dlerror ());
15386 }
15387 /* dlclose (self); */
15388 }
15389 else
15390 puts (dlerror ());
15391
15392 return status;
15393}
15394_LT_EOF
15395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15396 (eval $ac_link) 2>&5
15397 ac_status=$?
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15400 (./conftest; exit; ) >&5 2>/dev/null
15401 lt_status=$?
15402 case x$lt_status in
15403 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15404 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15405 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15406 esac
15407 else :
15408 # compilation failed
15409 lt_cv_dlopen_self=no
15410 fi
15411fi
15412rm -fr conftest*
15413
15414
15415fi
15416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15417$as_echo "$lt_cv_dlopen_self" >&6; }
15418
15419 if test yes = "$lt_cv_dlopen_self"; then
15420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15422$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15423if ${lt_cv_dlopen_self_static+:} false; then :
15424 $as_echo_n "(cached) " >&6
15425else
15426 if test yes = "$cross_compiling"; then :
15427 lt_cv_dlopen_self_static=cross
15428else
15429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15430 lt_status=$lt_dlunknown
15431 cat > conftest.$ac_ext <<_LT_EOF
15432#line $LINENO "configure"
15433#include "confdefs.h"
15434
15435#if HAVE_DLFCN_H
15436#include <dlfcn.h>
15437#endif
15438
15439#include <stdio.h>
15440
15441#ifdef RTLD_GLOBAL
15442# define LT_DLGLOBAL RTLD_GLOBAL
15443#else
15444# ifdef DL_GLOBAL
15445# define LT_DLGLOBAL DL_GLOBAL
15446# else
15447# define LT_DLGLOBAL 0
15448# endif
15449#endif
15450
15451/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15452 find out it does not work in some platform. */
15453#ifndef LT_DLLAZY_OR_NOW
15454# ifdef RTLD_LAZY
15455# define LT_DLLAZY_OR_NOW RTLD_LAZY
15456# else
15457# ifdef DL_LAZY
15458# define LT_DLLAZY_OR_NOW DL_LAZY
15459# else
15460# ifdef RTLD_NOW
15461# define LT_DLLAZY_OR_NOW RTLD_NOW
15462# else
15463# ifdef DL_NOW
15464# define LT_DLLAZY_OR_NOW DL_NOW
15465# else
15466# define LT_DLLAZY_OR_NOW 0
15467# endif
15468# endif
15469# endif
15470# endif
15471#endif
15472
15473/* When -fvisibility=hidden is used, assume the code has been annotated
15474 correspondingly for the symbols needed. */
15475#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15476int fnord () __attribute__((visibility("default")));
15477#endif
15478
15479int fnord () { return 42; }
15480int main ()
15481{
15482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15483 int status = $lt_dlunknown;
15484
15485 if (self)
15486 {
15487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15488 else
15489 {
15490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15491 else puts (dlerror ());
15492 }
15493 /* dlclose (self); */
15494 }
15495 else
15496 puts (dlerror ());
15497
15498 return status;
15499}
15500_LT_EOF
15501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15502 (eval $ac_link) 2>&5
15503 ac_status=$?
15504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15506 (./conftest; exit; ) >&5 2>/dev/null
15507 lt_status=$?
15508 case x$lt_status in
15509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15511 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15512 esac
15513 else :
15514 # compilation failed
15515 lt_cv_dlopen_self_static=no
15516 fi
15517fi
15518rm -fr conftest*
15519
15520
15521fi
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15523$as_echo "$lt_cv_dlopen_self_static" >&6; }
15524 fi
15525
15526 CPPFLAGS=$save_CPPFLAGS
15527 LDFLAGS=$save_LDFLAGS
15528 LIBS=$save_LIBS
15529 ;;
15530 esac
15531
15532 case $lt_cv_dlopen_self in
15533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15534 *) enable_dlopen_self=unknown ;;
15535 esac
15536
15537 case $lt_cv_dlopen_self_static in
15538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15539 *) enable_dlopen_self_static=unknown ;;
15540 esac
15541fi
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559striplib=
15560old_striplib=
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15562$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15563if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567$as_echo "yes" >&6; }
15568else
15569# FIXME - insert some real tests, host_os isn't really good enough
15570 case $host_os in
15571 darwin*)
15572 if test -n "$STRIP"; then
15573 striplib="$STRIP -x"
15574 old_striplib="$STRIP -S"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576$as_echo "yes" >&6; }
15577 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579$as_echo "no" >&6; }
15580 fi
15581 ;;
15582 *)
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584$as_echo "no" >&6; }
15585 ;;
15586 esac
15587fi
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600 # Report what library types will actually be built
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15602$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15604$as_echo "$can_build_shared" >&6; }
15605
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15607$as_echo_n "checking whether to build shared libraries... " >&6; }
15608 test no = "$can_build_shared" && enable_shared=no
15609
15610 # On AIX, shared libraries and static libraries use the same namespace, and
15611 # are all built from PIC.
15612 case $host_os in
15613 aix3*)
15614 test yes = "$enable_shared" && enable_static=no
15615 if test -n "$RANLIB"; then
15616 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15617 postinstall_cmds='$RANLIB $lib'
15618 fi
15619 ;;
15620
15621 aix[4-9]*)
15622 if test ia64 != "$host_cpu"; then
15623 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15624 yes,aix,yes) ;; # shared object as lib.so file only
15625 yes,svr4,*) ;; # shared object as lib.so archive member only
15626 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15627 esac
15628 fi
15629 ;;
15630 esac
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15632$as_echo "$enable_shared" >&6; }
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15635$as_echo_n "checking whether to build static libraries... " >&6; }
15636 # Make sure either enable_shared or enable_static is yes.
15637 test yes = "$enable_shared" || enable_static=yes
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15639$as_echo "$enable_static" >&6; }
15640
15641
15642
15643
15644fi
15645ac_ext=c
15646ac_cpp='$CPP $CPPFLAGS'
15647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15649ac_compiler_gnu=$ac_cv_c_compiler_gnu
15650
15651CC=$lt_save_CC
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667 ac_config_commands="$ac_config_commands libtool"
15668
15669
15670
15671
15672# Only expand once:
15673
15674
15675## --------------------- ##
15676## End of libtool code ##
15677## --------------------- ##
15678
15679#
15680# Verify if finally libtool shared libraries will be built
15681#
15682
15683case "x$enable_shared" in # ((
15684 xyes | xno)
15685 xc_lt_build_shared=$enable_shared
15686 ;;
15687 *)
15688 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15689 ;;
15690esac
15691
15692#
15693# Verify if finally libtool static libraries will be built
15694#
15695
15696case "x$enable_static" in # ((
15697 xyes | xno)
15698 xc_lt_build_static=$enable_static
15699 ;;
15700 *)
15701 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15702 ;;
15703esac
15704
15705#
15706# Verify if libtool shared libraries should be linked using flag -version-info
15707#
15708
15709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15710$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15711xc_lt_shlib_use_version_info='yes'
15712if test "x$version_type" = 'xnone'; then
15713 xc_lt_shlib_use_version_info='no'
15714fi
15715case $host_os in # (
15716 amigaos*)
15717 xc_lt_shlib_use_version_info='yes'
15718 ;;
15719esac
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15721$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15722
15723#
15724# Verify if libtool shared libraries should be linked using flag -no-undefined
15725#
15726
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15728$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15729xc_lt_shlib_use_no_undefined='no'
15730if test "x$allow_undefined" = 'xno'; then
15731 xc_lt_shlib_use_no_undefined='yes'
15732elif test "x$allow_undefined_flag" = 'xunsupported'; then
15733 xc_lt_shlib_use_no_undefined='yes'
15734fi
15735case $host_os in # (
15736 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15737 xc_lt_shlib_use_no_undefined='yes'
15738 ;;
15739esac
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15741$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15742
15743#
15744# Verify if libtool shared libraries should be linked using flag -mimpure-text
15745#
15746
15747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15748$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15749xc_lt_shlib_use_mimpure_text='no'
15750case $host_os in # (
15751 solaris2*)
15752 if test "x$GCC" = 'xyes'; then
15753 xc_lt_shlib_use_mimpure_text='yes'
15754 fi
15755 ;;
15756esac
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15758$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15759
15760#
15761# Find out whether libtool libraries would be built wit PIC
15762#
15763
15764case "x$pic_mode" in # ((((
15765 xdefault)
15766 xc_lt_build_shared_with_pic='yes'
15767 xc_lt_build_static_with_pic='no'
15768 ;;
15769 xyes)
15770 xc_lt_build_shared_with_pic='yes'
15771 xc_lt_build_static_with_pic='yes'
15772 ;;
15773 xno)
15774 xc_lt_build_shared_with_pic='no'
15775 xc_lt_build_static_with_pic='no'
15776 ;;
15777 *)
15778 xc_lt_build_shared_with_pic='unknown'
15779 xc_lt_build_static_with_pic='unknown'
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15781$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15782 ;;
15783esac
15784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15785$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15787$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15789$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15791$as_echo "$xc_lt_build_static_with_pic" >&6; }
15792
15793#
15794# Verify if libtool shared libraries will be built while static not built
15795#
15796
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15798$as_echo_n "checking whether to build shared libraries only... " >&6; }
15799if test "$xc_lt_build_shared" = 'yes' &&
15800 test "$xc_lt_build_static" = 'no'; then
15801 xc_lt_build_shared_only='yes'
15802else
15803 xc_lt_build_shared_only='no'
15804fi
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15806$as_echo "$xc_lt_build_shared_only" >&6; }
15807
15808#
15809# Verify if libtool static libraries will be built while shared not built
15810#
15811
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15813$as_echo_n "checking whether to build static libraries only... " >&6; }
15814if test "$xc_lt_build_static" = 'yes' &&
15815 test "$xc_lt_build_shared" = 'no'; then
15816 xc_lt_build_static_only='yes'
15817else
15818 xc_lt_build_static_only='no'
15819fi
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15821$as_echo "$xc_lt_build_static_only" >&6; }
15822
15823
15824
15825
15826#
15827# Automake conditionals based on libtool related checks
15828#
15829
15830 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15831 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15832 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15833else
15834 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15835 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15836fi
15837
15838 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15839 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15840 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15841else
15842 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15843 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15844fi
15845
15846 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15847 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15848 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15849else
15850 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15851 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15852fi
15853
15854
15855#
15856# Due to libtool and automake machinery limitations of not allowing
15857# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15858# inclusion of these in shared or static libraries, we are forced to
15859# build using separate configure runs for shared and static libraries
15860# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15861# to compile objects for each kind of library. Notice that relying on
15862# the '-DPIC' CFLAG that libtool provides is not valid given that the
15863# user might for example choose to build static libraries with PIC.
15864#
15865
15866#
15867# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15868# targeting a static library and not building its shared counterpart.
15869#
15870
15871 if test "x$xc_lt_build_static_only" = 'xyes'; then
15872 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15873 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15874else
15875 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15876 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15877fi
15878
15879
15880#
15881# Make staticlib CPPFLAG variable and its definition visible in output
15882# files unconditionally, providing an empty definition unless strictly
15883# targeting a static library and not building its shared counterpart.
15884#
15885
15886CPPFLAG_CURL_STATICLIB=
15887if test "x$xc_lt_build_static_only" = 'xyes'; then
15888 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15889fi
15890
15891
15892
15893# Determine whether all dependent libraries must be specified when linking
15894if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15895then
15896 REQUIRE_LIB_DEPS=no
15897else
15898 REQUIRE_LIB_DEPS=yes
15899fi
15900
15901 if test x$REQUIRE_LIB_DEPS = xyes; then
15902 USE_EXPLICIT_LIB_DEPS_TRUE=
15903 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15904else
15905 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15906 USE_EXPLICIT_LIB_DEPS_FALSE=
15907fi
15908
15909
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15911$as_echo_n "checking for inline... " >&6; }
15912if ${ac_cv_c_inline+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914else
15915 ac_cv_c_inline=no
15916for ac_kw in inline __inline__ __inline; do
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918/* end confdefs.h. */
15919#ifndef __cplusplus
15920typedef int foo_t;
15921static $ac_kw foo_t static_foo () {return 0; }
15922$ac_kw foo_t foo () {return 0; }
15923#endif
15924
15925_ACEOF
15926if ac_fn_c_try_compile "$LINENO"; then :
15927 ac_cv_c_inline=$ac_kw
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 test "$ac_cv_c_inline" != no && break
15931done
15932
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15935$as_echo "$ac_cv_c_inline" >&6; }
15936
15937case $ac_cv_c_inline in
15938 inline | yes) ;;
15939 *)
15940 case $ac_cv_c_inline in
15941 no) ac_val=;;
15942 *) ac_val=$ac_cv_c_inline;;
15943 esac
15944 cat >>confdefs.h <<_ACEOF
15945#ifndef __cplusplus
15946#define inline $ac_val
15947#endif
15948_ACEOF
15949 ;;
15950esac
15951
15952
15953
15954
Alex Deymo486467e2017-12-19 19:04:07 +010015955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15956$as_echo_n "checking if cpp -P is needed... " >&6; }
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958/* end confdefs.h. */
15959
15960 #include <errno.h>
15961TEST EINVAL TEST
15962
15963_ACEOF
15964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15966 cpp=no
15967else
15968 cpp=yes
15969fi
15970rm -f conftest*
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15973$as_echo "$cpp" >&6; }
15974
15975 if test "x$cpp" = "xyes"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15977$as_echo_n "checking if cpp -P works... " >&6; }
15978 OLDCPPFLAGS=$CPPFLAGS
15979 CPPFLAGS="$CPPFLAGS -P"
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h. */
15982
15983 #include <errno.h>
15984TEST EINVAL TEST
15985
15986_ACEOF
15987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15989 cpp_p=yes
15990else
15991 cpp_p=no
15992fi
15993rm -f conftest*
15994
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15996$as_echo "$cpp_p" >&6; }
15997
15998 if test "x$cpp_p" = "xno"; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16000$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16001 # without -P
16002 CPPPFLAG=""
16003 else
16004 # with -P
16005 CPPPFLAG="-P"
16006 fi
16007 CPPFLAGS=$OLDCPPFLAGS
16008 else
16009 # without -P
16010 CPPPFLAG=""
16011 fi
16012
16013
Elliott Hughes82be86d2017-09-20 17:00:17 -070016014 #
16015 compiler_id="unknown"
16016 compiler_num="0"
16017 #
16018 flags_dbg_all="unknown"
16019 flags_dbg_yes="unknown"
16020 flags_dbg_off="unknown"
16021 flags_opt_all="unknown"
16022 flags_opt_yes="unknown"
16023 flags_opt_off="unknown"
16024 #
16025 flags_prefer_cppflags="no"
16026 #
16027
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16029$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16030
16031 OLDCPPFLAGS=$CPPFLAGS
16032 # CPPPFLAG comes from CURL_CPP_P
16033 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16034 if test -z "$SED"; then
16035 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16036 fi
16037 if test -z "$GREP"; then
16038 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16039 fi
16040
16041 tmp_exp=""
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043/* end confdefs.h. */
16044
16045
16046#ifdef __DECC
16047CURL_DEF_TOKEN __DECC
16048#endif
16049
16050
16051_ACEOF
16052if ac_fn_c_try_cpp "$LINENO"; then :
16053
16054 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16055 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16056 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16057 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16058 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16059 tmp_exp=""
16060 fi
16061
16062fi
16063rm -f conftest.err conftest.i conftest.$ac_ext
16064 if test -z "$tmp_exp"; then
16065 curl_cv_have_def___DECC=no
16066
16067 else
16068 curl_cv_have_def___DECC=yes
16069 curl_cv_def___DECC=$tmp_exp
16070
16071 fi
16072 CPPFLAGS=$OLDCPPFLAGS
16073
16074
16075 OLDCPPFLAGS=$CPPFLAGS
16076 # CPPPFLAG comes from CURL_CPP_P
16077 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16078 if test -z "$SED"; then
16079 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16080 fi
16081 if test -z "$GREP"; then
16082 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16083 fi
16084
16085 tmp_exp=""
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087/* end confdefs.h. */
16088
16089
16090#ifdef __DECC_VER
16091CURL_DEF_TOKEN __DECC_VER
16092#endif
16093
16094
16095_ACEOF
16096if ac_fn_c_try_cpp "$LINENO"; then :
16097
16098 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16099 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16100 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16101 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16102 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16103 tmp_exp=""
16104 fi
16105
16106fi
16107rm -f conftest.err conftest.i conftest.$ac_ext
16108 if test -z "$tmp_exp"; then
16109 curl_cv_have_def___DECC_VER=no
16110
16111 else
16112 curl_cv_have_def___DECC_VER=yes
16113 curl_cv_def___DECC_VER=$tmp_exp
16114
16115 fi
16116 CPPFLAGS=$OLDCPPFLAGS
16117
16118 if test "$curl_cv_have_def___DECC" = "yes" &&
16119 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121$as_echo "yes" >&6; }
16122 compiler_id="DEC_C"
16123 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16124 flags_dbg_yes="-g2"
16125 flags_dbg_off=""
16126 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16127 flags_opt_yes="-O1"
16128 flags_opt_off="-O0"
16129 else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131$as_echo "no" >&6; }
16132 fi
16133
16134
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16136$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16137
16138 OLDCPPFLAGS=$CPPFLAGS
16139 # CPPPFLAG comes from CURL_CPP_P
16140 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16141 if test -z "$SED"; then
16142 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16143 fi
16144 if test -z "$GREP"; then
16145 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16146 fi
16147
16148 tmp_exp=""
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150/* end confdefs.h. */
16151
16152
16153#ifdef __HP_cc
16154CURL_DEF_TOKEN __HP_cc
16155#endif
16156
16157
16158_ACEOF
16159if ac_fn_c_try_cpp "$LINENO"; then :
16160
16161 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16162 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16163 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16164 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16165 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16166 tmp_exp=""
16167 fi
16168
16169fi
16170rm -f conftest.err conftest.i conftest.$ac_ext
16171 if test -z "$tmp_exp"; then
16172 curl_cv_have_def___HP_cc=no
16173
16174 else
16175 curl_cv_have_def___HP_cc=yes
16176 curl_cv_def___HP_cc=$tmp_exp
16177
16178 fi
16179 CPPFLAGS=$OLDCPPFLAGS
16180
16181 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183$as_echo "yes" >&6; }
16184 compiler_id="HP_UX_C"
16185 flags_dbg_all="-g -s"
16186 flags_dbg_yes="-g"
16187 flags_dbg_off="-s"
16188 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16189 flags_opt_yes="+O2"
16190 flags_opt_off="+O0"
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}: checking if compiler is IBM C" >&5
16198$as_echo_n "checking if compiler is IBM C... " >&6; }
16199
16200 OLDCPPFLAGS=$CPPFLAGS
16201 # CPPPFLAG comes from CURL_CPP_P
16202 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16203 if test -z "$SED"; then
16204 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16205 fi
16206 if test -z "$GREP"; then
16207 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16208 fi
16209
16210 tmp_exp=""
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212/* end confdefs.h. */
16213
16214
16215#ifdef __IBMC__
16216CURL_DEF_TOKEN __IBMC__
16217#endif
16218
16219
16220_ACEOF
16221if ac_fn_c_try_cpp "$LINENO"; then :
16222
16223 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16224 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16225 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16226 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16227 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16228 tmp_exp=""
16229 fi
16230
16231fi
16232rm -f conftest.err conftest.i conftest.$ac_ext
16233 if test -z "$tmp_exp"; then
16234 curl_cv_have_def___IBMC__=no
16235
16236 else
16237 curl_cv_have_def___IBMC__=yes
16238 curl_cv_def___IBMC__=$tmp_exp
16239
16240 fi
16241 CPPFLAGS=$OLDCPPFLAGS
16242
16243 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16245$as_echo "yes" >&6; }
16246 compiler_id="IBM_C"
16247 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16248 flags_dbg_yes="-g"
16249 flags_dbg_off=""
16250 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16251 flags_opt_all="$flags_opt_all -qnooptimize"
16252 flags_opt_all="$flags_opt_all -qoptimize=0"
16253 flags_opt_all="$flags_opt_all -qoptimize=1"
16254 flags_opt_all="$flags_opt_all -qoptimize=2"
16255 flags_opt_all="$flags_opt_all -qoptimize=3"
16256 flags_opt_all="$flags_opt_all -qoptimize=4"
16257 flags_opt_all="$flags_opt_all -qoptimize=5"
16258 flags_opt_yes="-O2"
16259 flags_opt_off="-qnooptimize"
16260 flags_prefer_cppflags="yes"
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263$as_echo "no" >&6; }
16264 fi
16265
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16268$as_echo_n "checking if compiler is Intel C... " >&6; }
16269
16270 OLDCPPFLAGS=$CPPFLAGS
16271 # CPPPFLAG comes from CURL_CPP_P
16272 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16273 if test -z "$SED"; then
16274 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16275 fi
16276 if test -z "$GREP"; then
16277 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16278 fi
16279
16280 tmp_exp=""
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283
16284
16285#ifdef __INTEL_COMPILER
16286CURL_DEF_TOKEN __INTEL_COMPILER
16287#endif
16288
16289
16290_ACEOF
16291if ac_fn_c_try_cpp "$LINENO"; then :
16292
16293 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16294 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16295 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16296 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16297 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16298 tmp_exp=""
16299 fi
16300
16301fi
16302rm -f conftest.err conftest.i conftest.$ac_ext
16303 if test -z "$tmp_exp"; then
16304 curl_cv_have_def___INTEL_COMPILER=no
16305
16306 else
16307 curl_cv_have_def___INTEL_COMPILER=yes
16308 curl_cv_def___INTEL_COMPILER=$tmp_exp
16309
16310 fi
16311 CPPFLAGS=$OLDCPPFLAGS
16312
16313 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16315$as_echo "yes" >&6; }
16316 compiler_num="$curl_cv_def___INTEL_COMPILER"
16317
16318 OLDCPPFLAGS=$CPPFLAGS
16319 # CPPPFLAG comes from CURL_CPP_P
16320 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16321 if test -z "$SED"; then
16322 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16323 fi
16324 if test -z "$GREP"; then
16325 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16326 fi
16327
16328 tmp_exp=""
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330/* end confdefs.h. */
16331
16332
16333#ifdef __unix__
16334CURL_DEF_TOKEN __unix__
16335#endif
16336
16337
16338_ACEOF
16339if ac_fn_c_try_cpp "$LINENO"; then :
16340
16341 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16342 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16343 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16344 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16345 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16346 tmp_exp=""
16347 fi
16348
16349fi
16350rm -f conftest.err conftest.i conftest.$ac_ext
16351 if test -z "$tmp_exp"; then
16352 curl_cv_have_def___unix__=no
16353
16354 else
16355 curl_cv_have_def___unix__=yes
16356 curl_cv_def___unix__=$tmp_exp
16357
16358 fi
16359 CPPFLAGS=$OLDCPPFLAGS
16360
16361 if test "$curl_cv_have_def___unix__" = "yes"; then
16362 compiler_id="INTEL_UNIX_C"
16363 flags_dbg_all="-g -g0"
16364 flags_dbg_yes="-g"
16365 flags_dbg_off=""
16366 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16367 flags_opt_yes="-O2"
16368 flags_opt_off="-O0"
16369 else
16370 compiler_id="INTEL_WINDOWS_C"
16371 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16372 flags_dbg_all="$flags_dbg_all /debug"
16373 flags_dbg_all="$flags_dbg_all /debug:none"
16374 flags_dbg_all="$flags_dbg_all /debug:minimal"
16375 flags_dbg_all="$flags_dbg_all /debug:partial"
16376 flags_dbg_all="$flags_dbg_all /debug:full"
16377 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16378 flags_dbg_all="$flags_dbg_all /debug:extended"
16379 flags_dbg_yes="/Zi /Oy-"
16380 flags_dbg_off="/debug:none /Oy-"
16381 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16382 flags_opt_yes="/O2"
16383 flags_opt_off="/Od"
16384 fi
16385 else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387$as_echo "no" >&6; }
16388 fi
16389
16390
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16392$as_echo_n "checking if compiler is clang... " >&6; }
16393
16394 OLDCPPFLAGS=$CPPFLAGS
16395 # CPPPFLAG comes from CURL_CPP_P
16396 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16397 if test -z "$SED"; then
16398 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16399 fi
16400 if test -z "$GREP"; then
16401 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16402 fi
16403
16404 tmp_exp=""
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406/* end confdefs.h. */
16407
16408
16409#ifdef __clang__
16410CURL_DEF_TOKEN __clang__
16411#endif
16412
16413
16414_ACEOF
16415if ac_fn_c_try_cpp "$LINENO"; then :
16416
16417 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16418 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16419 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16420 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16421 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16422 tmp_exp=""
16423 fi
16424
16425fi
16426rm -f conftest.err conftest.i conftest.$ac_ext
16427 if test -z "$tmp_exp"; then
16428 curl_cv_have_def___clang__=no
16429
16430 else
16431 curl_cv_have_def___clang__=yes
16432 curl_cv_def___clang__=$tmp_exp
16433
16434 fi
16435 CPPFLAGS=$OLDCPPFLAGS
16436
16437 if test "$curl_cv_have_def___clang__" = "yes"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439$as_echo "yes" >&6; }
16440 compiler_id="CLANG"
16441 fullclangver=`$CC -v 2>&1 | grep version`
16442 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16443 if test -z "$clangver"; then
16444 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016445 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016446 else
16447 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16448 fi
16449 fi
16450 clangvhi=`echo $clangver | cut -d . -f1`
16451 clangvlo=`echo $clangver | cut -d . -f2`
16452 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16453 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16454 flags_dbg_all="$flags_dbg_all -ggdb"
16455 flags_dbg_all="$flags_dbg_all -gstabs"
16456 flags_dbg_all="$flags_dbg_all -gstabs+"
16457 flags_dbg_all="$flags_dbg_all -gcoff"
16458 flags_dbg_all="$flags_dbg_all -gxcoff"
16459 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16460 flags_dbg_all="$flags_dbg_all -gvms"
16461 flags_dbg_yes="-g"
16462 flags_dbg_off=""
16463 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16464 flags_opt_yes="-Os"
16465 flags_opt_off="-O0"
16466 else
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
16469 fi
16470
16471
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16473$as_echo_n "checking if compiler is GNU C... " >&6; }
16474
16475 OLDCPPFLAGS=$CPPFLAGS
16476 # CPPPFLAG comes from CURL_CPP_P
16477 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16478 if test -z "$SED"; then
16479 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16480 fi
16481 if test -z "$GREP"; then
16482 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16483 fi
16484
16485 tmp_exp=""
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h. */
16488
16489
16490#ifdef __GNUC__
16491CURL_DEF_TOKEN __GNUC__
16492#endif
16493
16494
16495_ACEOF
16496if ac_fn_c_try_cpp "$LINENO"; then :
16497
16498 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16499 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16500 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16501 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16502 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16503 tmp_exp=""
16504 fi
16505
16506fi
16507rm -f conftest.err conftest.i conftest.$ac_ext
16508 if test -z "$tmp_exp"; then
16509 curl_cv_have_def___GNUC__=no
16510
16511 else
16512 curl_cv_have_def___GNUC__=yes
16513 curl_cv_def___GNUC__=$tmp_exp
16514
16515 fi
16516 CPPFLAGS=$OLDCPPFLAGS
16517
16518 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16519 test "$compiler_id" = "unknown"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16521$as_echo "yes" >&6; }
16522 compiler_id="GNU_C"
16523 gccver=`$CC -dumpversion`
16524 gccvhi=`echo $gccver | cut -d . -f1`
16525 gccvlo=`echo $gccver | cut -d . -f2`
16526 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16527 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16528 flags_dbg_all="$flags_dbg_all -ggdb"
16529 flags_dbg_all="$flags_dbg_all -gstabs"
16530 flags_dbg_all="$flags_dbg_all -gstabs+"
16531 flags_dbg_all="$flags_dbg_all -gcoff"
16532 flags_dbg_all="$flags_dbg_all -gxcoff"
16533 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16534 flags_dbg_all="$flags_dbg_all -gvms"
16535 flags_dbg_yes="-g"
16536 flags_dbg_off=""
16537 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16538 flags_opt_yes="-O2"
16539 flags_opt_off="-O0"
16540
16541 OLDCPPFLAGS=$CPPFLAGS
16542 # CPPPFLAG comes from CURL_CPP_P
16543 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16544 if test -z "$SED"; then
16545 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16546 fi
16547 if test -z "$GREP"; then
16548 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16549 fi
16550
16551 tmp_exp=""
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h. */
16554
16555
16556#ifdef _WIN32
16557CURL_DEF_TOKEN _WIN32
16558#endif
16559
16560
16561_ACEOF
16562if ac_fn_c_try_cpp "$LINENO"; then :
16563
16564 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16565 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16566 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16567 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16568 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16569 tmp_exp=""
16570 fi
16571
16572fi
16573rm -f conftest.err conftest.i conftest.$ac_ext
16574 if test -z "$tmp_exp"; then
16575 curl_cv_have_def__WIN32=no
16576
16577 else
16578 curl_cv_have_def__WIN32=yes
16579 curl_cv_def__WIN32=$tmp_exp
16580
16581 fi
16582 CPPFLAGS=$OLDCPPFLAGS
16583
16584 else
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586$as_echo "no" >&6; }
16587 fi
16588
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16591$as_echo_n "checking if compiler is LCC... " >&6; }
16592
16593 OLDCPPFLAGS=$CPPFLAGS
16594 # CPPPFLAG comes from CURL_CPP_P
16595 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16596 if test -z "$SED"; then
16597 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16598 fi
16599 if test -z "$GREP"; then
16600 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16601 fi
16602
16603 tmp_exp=""
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h. */
16606
16607
16608#ifdef __LCC__
16609CURL_DEF_TOKEN __LCC__
16610#endif
16611
16612
16613_ACEOF
16614if ac_fn_c_try_cpp "$LINENO"; then :
16615
16616 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16617 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16618 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16619 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16620 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16621 tmp_exp=""
16622 fi
16623
16624fi
16625rm -f conftest.err conftest.i conftest.$ac_ext
16626 if test -z "$tmp_exp"; then
16627 curl_cv_have_def___LCC__=no
16628
16629 else
16630 curl_cv_have_def___LCC__=yes
16631 curl_cv_def___LCC__=$tmp_exp
16632
16633 fi
16634 CPPFLAGS=$OLDCPPFLAGS
16635
16636 if test "$curl_cv_have_def___LCC__" = "yes"; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638$as_echo "yes" >&6; }
16639 compiler_id="LCC"
16640 flags_dbg_all="-g"
16641 flags_dbg_yes="-g"
16642 flags_dbg_off=""
16643 flags_opt_all=""
16644 flags_opt_yes=""
16645 flags_opt_off=""
16646 else
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648$as_echo "no" >&6; }
16649 fi
16650
16651
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16653$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16654
16655 OLDCPPFLAGS=$CPPFLAGS
16656 # CPPPFLAG comes from CURL_CPP_P
16657 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16658 if test -z "$SED"; then
16659 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16660 fi
16661 if test -z "$GREP"; then
16662 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16663 fi
16664
16665 tmp_exp=""
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667/* end confdefs.h. */
16668
16669
16670#ifdef __GNUC__
16671CURL_DEF_TOKEN __GNUC__
16672#endif
16673
16674
16675_ACEOF
16676if ac_fn_c_try_cpp "$LINENO"; then :
16677
16678 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16679 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16680 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16681 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16682 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16683 tmp_exp=""
16684 fi
16685
16686fi
16687rm -f conftest.err conftest.i conftest.$ac_ext
16688 if test -z "$tmp_exp"; then
16689 curl_cv_have_def___GNUC__=no
16690
16691 else
16692 curl_cv_have_def___GNUC__=yes
16693 curl_cv_def___GNUC__=$tmp_exp
16694
16695 fi
16696 CPPFLAGS=$OLDCPPFLAGS
16697
16698
16699 OLDCPPFLAGS=$CPPFLAGS
16700 # CPPPFLAG comes from CURL_CPP_P
16701 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16702 if test -z "$SED"; then
16703 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16704 fi
16705 if test -z "$GREP"; then
16706 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16707 fi
16708
16709 tmp_exp=""
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h. */
16712
16713
16714#ifdef _COMPILER_VERSION
16715CURL_DEF_TOKEN _COMPILER_VERSION
16716#endif
16717
16718
16719_ACEOF
16720if ac_fn_c_try_cpp "$LINENO"; then :
16721
16722 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16723 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16724 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16725 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16726 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16727 tmp_exp=""
16728 fi
16729
16730fi
16731rm -f conftest.err conftest.i conftest.$ac_ext
16732 if test -z "$tmp_exp"; then
16733 curl_cv_have_def__COMPILER_VERSION=no
16734
16735 else
16736 curl_cv_have_def__COMPILER_VERSION=yes
16737 curl_cv_def__COMPILER_VERSION=$tmp_exp
16738
16739 fi
16740 CPPFLAGS=$OLDCPPFLAGS
16741
16742
16743 OLDCPPFLAGS=$CPPFLAGS
16744 # CPPPFLAG comes from CURL_CPP_P
16745 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16746 if test -z "$SED"; then
16747 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16748 fi
16749 if test -z "$GREP"; then
16750 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16751 fi
16752
16753 tmp_exp=""
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755/* end confdefs.h. */
16756
16757
16758#ifdef _SGI_COMPILER_VERSION
16759CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16760#endif
16761
16762
16763_ACEOF
16764if ac_fn_c_try_cpp "$LINENO"; then :
16765
16766 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16767 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16768 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16769 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16770 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16771 tmp_exp=""
16772 fi
16773
16774fi
16775rm -f conftest.err conftest.i conftest.$ac_ext
16776 if test -z "$tmp_exp"; then
16777 curl_cv_have_def__SGI_COMPILER_VERSION=no
16778
16779 else
16780 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16781 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16782
16783 fi
16784 CPPFLAGS=$OLDCPPFLAGS
16785
16786 if test "$curl_cv_have_def___GNUC__" = "no" &&
16787 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16788 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
16791 compiler_id="SGI_MIPSPRO_C"
16792 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16793 flags_dbg_yes="-g"
16794 flags_dbg_off=""
16795 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16796 flags_opt_yes="-O2"
16797 flags_opt_off="-O0"
16798 else
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800$as_echo "no" >&6; }
16801 fi
16802
16803
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16805$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16806
16807 OLDCPPFLAGS=$CPPFLAGS
16808 # CPPPFLAG comes from CURL_CPP_P
16809 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16810 if test -z "$SED"; then
16811 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16812 fi
16813 if test -z "$GREP"; then
16814 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16815 fi
16816
16817 tmp_exp=""
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h. */
16820
16821
16822#ifdef __GNUC__
16823CURL_DEF_TOKEN __GNUC__
16824#endif
16825
16826
16827_ACEOF
16828if ac_fn_c_try_cpp "$LINENO"; then :
16829
16830 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16831 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16832 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16833 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16834 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16835 tmp_exp=""
16836 fi
16837
16838fi
16839rm -f conftest.err conftest.i conftest.$ac_ext
16840 if test -z "$tmp_exp"; then
16841 curl_cv_have_def___GNUC__=no
16842
16843 else
16844 curl_cv_have_def___GNUC__=yes
16845 curl_cv_def___GNUC__=$tmp_exp
16846
16847 fi
16848 CPPFLAGS=$OLDCPPFLAGS
16849
16850
16851 OLDCPPFLAGS=$CPPFLAGS
16852 # CPPPFLAG comes from CURL_CPP_P
16853 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16854 if test -z "$SED"; then
16855 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16856 fi
16857 if test -z "$GREP"; then
16858 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16859 fi
16860
16861 tmp_exp=""
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h. */
16864
16865
16866#ifdef __sgi
16867CURL_DEF_TOKEN __sgi
16868#endif
16869
16870
16871_ACEOF
16872if ac_fn_c_try_cpp "$LINENO"; then :
16873
16874 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16875 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16876 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16877 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16878 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16879 tmp_exp=""
16880 fi
16881
16882fi
16883rm -f conftest.err conftest.i conftest.$ac_ext
16884 if test -z "$tmp_exp"; then
16885 curl_cv_have_def___sgi=no
16886
16887 else
16888 curl_cv_have_def___sgi=yes
16889 curl_cv_def___sgi=$tmp_exp
16890
16891 fi
16892 CPPFLAGS=$OLDCPPFLAGS
16893
16894 if test "$curl_cv_have_def___GNUC__" = "no" &&
16895 test "$curl_cv_have_def___sgi" = "yes" &&
16896 test "$compiler_id" = "unknown"; then
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16898$as_echo "yes" >&6; }
16899 compiler_id="SGI_MIPS_C"
16900 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16901 flags_dbg_yes="-g"
16902 flags_dbg_off=""
16903 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16904 flags_opt_yes="-O2"
16905 flags_opt_off="-O0"
16906 else
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908$as_echo "no" >&6; }
16909 fi
16910
16911
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16913$as_echo_n "checking if compiler is SunPro C... " >&6; }
16914
16915 OLDCPPFLAGS=$CPPFLAGS
16916 # CPPPFLAG comes from CURL_CPP_P
16917 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16918 if test -z "$SED"; then
16919 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16920 fi
16921 if test -z "$GREP"; then
16922 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16923 fi
16924
16925 tmp_exp=""
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h. */
16928
16929
16930#ifdef __SUNPRO_C
16931CURL_DEF_TOKEN __SUNPRO_C
16932#endif
16933
16934
16935_ACEOF
16936if ac_fn_c_try_cpp "$LINENO"; then :
16937
16938 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16939 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16940 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16941 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16942 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16943 tmp_exp=""
16944 fi
16945
16946fi
16947rm -f conftest.err conftest.i conftest.$ac_ext
16948 if test -z "$tmp_exp"; then
16949 curl_cv_have_def___SUNPRO_C=no
16950
16951 else
16952 curl_cv_have_def___SUNPRO_C=yes
16953 curl_cv_def___SUNPRO_C=$tmp_exp
16954
16955 fi
16956 CPPFLAGS=$OLDCPPFLAGS
16957
16958 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16960$as_echo "yes" >&6; }
16961 compiler_id="SUNPRO_C"
16962 flags_dbg_all="-g -s"
16963 flags_dbg_yes="-g"
16964 flags_dbg_off="-s"
16965 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16966 flags_opt_yes="-xO2"
16967 flags_opt_off=""
16968 else
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970$as_echo "no" >&6; }
16971 fi
16972
16973
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16975$as_echo_n "checking if compiler is Tiny C... " >&6; }
16976
16977 OLDCPPFLAGS=$CPPFLAGS
16978 # CPPPFLAG comes from CURL_CPP_P
16979 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16980 if test -z "$SED"; then
16981 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16982 fi
16983 if test -z "$GREP"; then
16984 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16985 fi
16986
16987 tmp_exp=""
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h. */
16990
16991
16992#ifdef __TINYC__
16993CURL_DEF_TOKEN __TINYC__
16994#endif
16995
16996
16997_ACEOF
16998if ac_fn_c_try_cpp "$LINENO"; then :
16999
17000 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17001 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17002 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17003 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17004 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17005 tmp_exp=""
17006 fi
17007
17008fi
17009rm -f conftest.err conftest.i conftest.$ac_ext
17010 if test -z "$tmp_exp"; then
17011 curl_cv_have_def___TINYC__=no
17012
17013 else
17014 curl_cv_have_def___TINYC__=yes
17015 curl_cv_def___TINYC__=$tmp_exp
17016
17017 fi
17018 CPPFLAGS=$OLDCPPFLAGS
17019
17020 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022$as_echo "yes" >&6; }
17023 compiler_id="TINY_C"
17024 flags_dbg_all="-g -b"
17025 flags_dbg_yes="-g"
17026 flags_dbg_off=""
17027 flags_opt_all=""
17028 flags_opt_yes=""
17029 flags_opt_off=""
17030 else
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032$as_echo "no" >&6; }
17033 fi
17034
17035
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17037$as_echo_n "checking if compiler is Watcom C... " >&6; }
17038
17039 OLDCPPFLAGS=$CPPFLAGS
17040 # CPPPFLAG comes from CURL_CPP_P
17041 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17042 if test -z "$SED"; then
17043 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17044 fi
17045 if test -z "$GREP"; then
17046 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17047 fi
17048
17049 tmp_exp=""
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051/* end confdefs.h. */
17052
17053
17054#ifdef __WATCOMC__
17055CURL_DEF_TOKEN __WATCOMC__
17056#endif
17057
17058
17059_ACEOF
17060if ac_fn_c_try_cpp "$LINENO"; then :
17061
17062 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17063 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17064 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17065 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17066 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17067 tmp_exp=""
17068 fi
17069
17070fi
17071rm -f conftest.err conftest.i conftest.$ac_ext
17072 if test -z "$tmp_exp"; then
17073 curl_cv_have_def___WATCOMC__=no
17074
17075 else
17076 curl_cv_have_def___WATCOMC__=yes
17077 curl_cv_def___WATCOMC__=$tmp_exp
17078
17079 fi
17080 CPPFLAGS=$OLDCPPFLAGS
17081
17082 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17084$as_echo "yes" >&6; }
17085
17086 OLDCPPFLAGS=$CPPFLAGS
17087 # CPPPFLAG comes from CURL_CPP_P
17088 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17089 if test -z "$SED"; then
17090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17091 fi
17092 if test -z "$GREP"; then
17093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17094 fi
17095
17096 tmp_exp=""
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098/* end confdefs.h. */
17099
17100
17101#ifdef __UNIX__
17102CURL_DEF_TOKEN __UNIX__
17103#endif
17104
17105
17106_ACEOF
17107if ac_fn_c_try_cpp "$LINENO"; then :
17108
17109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17112 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17113 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17114 tmp_exp=""
17115 fi
17116
17117fi
17118rm -f conftest.err conftest.i conftest.$ac_ext
17119 if test -z "$tmp_exp"; then
17120 curl_cv_have_def___UNIX__=no
17121
17122 else
17123 curl_cv_have_def___UNIX__=yes
17124 curl_cv_def___UNIX__=$tmp_exp
17125
17126 fi
17127 CPPFLAGS=$OLDCPPFLAGS
17128
17129 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17130 compiler_id="WATCOM_UNIX_C"
17131 flags_dbg_all="-g1 -g1+ -g2 -g3"
17132 flags_dbg_yes="-g2"
17133 flags_dbg_off=""
17134 flags_opt_all="-O0 -O1 -O2 -O3"
17135 flags_opt_yes="-O2"
17136 flags_opt_off="-O0"
17137 else
17138 compiler_id="WATCOM_WINDOWS_C"
17139 flags_dbg_all=""
17140 flags_dbg_yes=""
17141 flags_dbg_off=""
17142 flags_opt_all=""
17143 flags_opt_yes=""
17144 flags_opt_off=""
17145 fi
17146 else
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148$as_echo "no" >&6; }
17149 fi
17150
17151 #
17152 if test "$compiler_id" = "unknown"; then
17153 cat <<_EOF 1>&2
17154***
17155*** Warning: This configure script does not have information about the
17156*** compiler you are using, relative to the flags required to enable or
17157*** disable generation of debug info, optimization options or warnings.
17158***
17159*** Whatever settings are present in CFLAGS will be used for this run.
17160***
17161*** If you wish to help the curl project to better support your compiler
17162*** you can report this and the required info on the libcurl development
17163*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17164***
17165_EOF
17166 fi
17167
17168
17169squeeze() {
17170 _sqz_result=""
17171 eval _sqz_input=\$$1
17172 for _sqz_token in $_sqz_input; do
17173 if test -z "$_sqz_result"; then
17174 _sqz_result="$_sqz_token"
17175 else
17176 _sqz_result="$_sqz_result $_sqz_token"
17177 fi
17178 done
17179 eval $1=\$_sqz_result
17180 return 0
17181}
17182
17183
17184 #
17185 if test "$compiler_id" != "unknown"; then
17186 #
17187 if test "$compiler_id" = "GNU_C" ||
17188 test "$compiler_id" = "CLANG"; then
17189
17190 if test "$compiler_id" = "GNU_C" ||
17191 test "$compiler_id" = "CLANG"; then
17192 tmp_has_include="no"
17193 tmp_chg_FLAGS="$CFLAGS"
17194 for word1 in $tmp_chg_FLAGS; do
17195 case "$word1" in
17196 -I*)
17197 tmp_has_include="yes"
17198 ;;
17199 esac
17200 done
17201 if test "$tmp_has_include" = "yes"; then
17202 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17203 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17204 CFLAGS="$tmp_chg_FLAGS"
17205 squeeze CFLAGS
17206 fi
17207 tmp_has_include="no"
17208 tmp_chg_FLAGS="$CPPFLAGS"
17209 for word1 in $tmp_chg_FLAGS; do
17210 case "$word1" in
17211 -I*)
17212 tmp_has_include="yes"
17213 ;;
17214 esac
17215 done
17216 if test "$tmp_has_include" = "yes"; then
17217 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17218 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17219 CPPFLAGS="$tmp_chg_FLAGS"
17220 squeeze CPPFLAGS
17221 fi
17222 fi
17223
17224 fi
17225 #
17226 tmp_save_CPPFLAGS="$CPPFLAGS"
17227 tmp_save_CFLAGS="$CFLAGS"
17228 tmp_CPPFLAGS=""
17229 tmp_CFLAGS=""
17230 #
17231 case "$compiler_id" in
17232 #
17233 CLANG)
17234 #
17235 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17236 ;;
17237 #
17238 DEC_C)
17239 #
17240 tmp_CFLAGS="$tmp_CFLAGS -std1"
17241 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17242 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17243 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17244 ;;
17245 #
17246 GNU_C)
17247 #
17248 if test "$compiler_num" -ge "295"; then
17249 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17250 fi
17251 ;;
17252 #
17253 HP_UX_C)
17254 #
17255 tmp_CFLAGS="$tmp_CFLAGS -z"
17256 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17257 ;;
17258 #
17259 IBM_C)
17260 #
17261 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17262 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17263 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17264 ;;
17265 #
17266 INTEL_UNIX_C)
17267 #
17268 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17269 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17270 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17271 ;;
17272 #
17273 INTEL_WINDOWS_C)
17274 #
17275 tmp_CFLAGS="$tmp_CFLAGS"
17276 ;;
17277 #
17278 LCC)
17279 #
17280 tmp_CFLAGS="$tmp_CFLAGS -n"
17281 ;;
17282 #
17283 SGI_MIPS_C)
17284 #
17285 tmp_CFLAGS="$tmp_CFLAGS"
17286 ;;
17287 #
17288 SGI_MIPSPRO_C)
17289 #
17290 tmp_CFLAGS="$tmp_CFLAGS"
17291 ;;
17292 #
17293 SUNPRO_C)
17294 #
17295 tmp_CFLAGS="$tmp_CFLAGS"
17296 ;;
17297 #
17298 TINY_C)
17299 #
17300 tmp_CFLAGS="$tmp_CFLAGS"
17301 ;;
17302 #
17303 WATCOM_UNIX_C)
17304 #
17305 tmp_CFLAGS="$tmp_CFLAGS"
17306 ;;
17307 #
17308 WATCOM_WINDOWS_C)
17309 #
17310 tmp_CFLAGS="$tmp_CFLAGS"
17311 ;;
17312 #
17313 esac
17314 #
17315 squeeze tmp_CPPFLAGS
17316 squeeze tmp_CFLAGS
17317 #
17318 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17320$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17321 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17322 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17323 squeeze CPPFLAGS
17324 squeeze CFLAGS
17325
17326 tmp_compiler_works="unknown"
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329
17330
17331
17332int main (void)
17333{
17334
17335 int i = 1;
17336 return i;
17337
17338 ;
17339 return 0;
17340}
17341
17342_ACEOF
17343if ac_fn_c_try_compile "$LINENO"; then :
17344
17345 tmp_compiler_works="yes"
17346
17347else
17348
17349 tmp_compiler_works="no"
17350 echo " " >&6
17351 sed 's/^/cc-fail: /' conftest.err >&6
17352 echo " " >&6
17353
17354fi
17355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 if test "$tmp_compiler_works" = "yes"; then
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358/* end confdefs.h. */
17359
17360
17361
17362int main (void)
17363{
17364
17365 int i = 1;
17366 return i;
17367
17368 ;
17369 return 0;
17370}
17371
17372_ACEOF
17373if ac_fn_c_try_link "$LINENO"; then :
17374
17375 tmp_compiler_works="yes"
17376
17377else
17378
17379 tmp_compiler_works="no"
17380 echo " " >&6
17381 sed 's/^/link-fail: /' conftest.err >&6
17382 echo " " >&6
17383
17384fi
17385rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 fi
17388 if test "x$cross_compiling" != "xyes" &&
17389 test "$tmp_compiler_works" = "yes"; then
17390 if test "$cross_compiling" = yes; then :
17391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17393as_fn_error $? "cannot run test program while cross compiling
17394See \`config.log' for more details" "$LINENO" 5; }
17395else
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h. */
17398
17399
17400# ifdef __STDC__
17401# include <stdlib.h>
17402# endif
17403
17404int main (void)
17405{
17406
17407 int i = 0;
17408 exit(i);
17409
17410 ;
17411 return 0;
17412}
17413
17414_ACEOF
17415if ac_fn_c_try_run "$LINENO"; then :
17416
17417 tmp_compiler_works="yes"
17418
17419else
17420
17421 tmp_compiler_works="no"
17422 echo " " >&6
17423 echo "run-fail: test program exited with status $ac_status" >&6
17424 echo " " >&6
17425
17426fi
17427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17428 conftest.$ac_objext conftest.beam conftest.$ac_ext
17429fi
17430
17431 fi
17432 if test "$tmp_compiler_works" = "yes"; then
17433
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17435$as_echo "yes" >&6; }
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17437$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17438
17439 else
17440
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442$as_echo "no" >&6; }
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17444$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17445 CPPFLAGS="$tmp_save_CPPFLAGS"
17446 CFLAGS="$tmp_save_CFLAGS"
17447
17448 fi
17449
17450 fi
17451 #
17452 fi
17453
17454
17455 #
17456 if test "$compiler_id" != "unknown"; then
17457 #
17458 tmp_save_CFLAGS="$CFLAGS"
17459 tmp_save_CPPFLAGS="$CPPFLAGS"
17460 #
17461 tmp_options=""
17462 tmp_CFLAGS="$CFLAGS"
17463 tmp_CPPFLAGS="$CPPFLAGS"
17464
17465 ac_var_stripped=""
17466 for word1 in $tmp_CFLAGS; do
17467 ac_var_strip_word="no"
17468 for word2 in $flags_dbg_all; do
17469 if test "$word1" = "$word2"; then
17470 ac_var_strip_word="yes"
17471 fi
17472 done
17473 if test "$ac_var_strip_word" = "no"; then
17474 ac_var_stripped="$ac_var_stripped $word1"
17475 fi
17476 done
17477 tmp_CFLAGS="$ac_var_stripped"
17478 squeeze tmp_CFLAGS
17479
17480
17481 ac_var_stripped=""
17482 for word1 in $tmp_CPPFLAGS; do
17483 ac_var_strip_word="no"
17484 for word2 in $flags_dbg_all; do
17485 if test "$word1" = "$word2"; then
17486 ac_var_strip_word="yes"
17487 fi
17488 done
17489 if test "$ac_var_strip_word" = "no"; then
17490 ac_var_stripped="$ac_var_stripped $word1"
17491 fi
17492 done
17493 tmp_CPPFLAGS="$ac_var_stripped"
17494 squeeze tmp_CPPFLAGS
17495
17496 #
17497 if test "$want_debug" = "yes"; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17499$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17500 tmp_options="$flags_dbg_yes"
17501 fi
17502 if test "$want_debug" = "no"; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17504$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17505 tmp_options="$flags_dbg_off"
17506 fi
17507 #
17508 if test "$flags_prefer_cppflags" = "yes"; then
17509 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17510 CFLAGS="$tmp_CFLAGS"
17511 else
17512 CPPFLAGS="$tmp_CPPFLAGS"
17513 CFLAGS="$tmp_CFLAGS $tmp_options"
17514 fi
17515 squeeze CPPFLAGS
17516 squeeze CFLAGS
17517
17518 tmp_compiler_works="unknown"
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520/* end confdefs.h. */
17521
17522
17523
17524int main (void)
17525{
17526
17527 int i = 1;
17528 return i;
17529
17530 ;
17531 return 0;
17532}
17533
17534_ACEOF
17535if ac_fn_c_try_compile "$LINENO"; then :
17536
17537 tmp_compiler_works="yes"
17538
17539else
17540
17541 tmp_compiler_works="no"
17542 echo " " >&6
17543 sed 's/^/cc-fail: /' conftest.err >&6
17544 echo " " >&6
17545
17546fi
17547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548 if test "$tmp_compiler_works" = "yes"; then
17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550/* end confdefs.h. */
17551
17552
17553
17554int main (void)
17555{
17556
17557 int i = 1;
17558 return i;
17559
17560 ;
17561 return 0;
17562}
17563
17564_ACEOF
17565if ac_fn_c_try_link "$LINENO"; then :
17566
17567 tmp_compiler_works="yes"
17568
17569else
17570
17571 tmp_compiler_works="no"
17572 echo " " >&6
17573 sed 's/^/link-fail: /' conftest.err >&6
17574 echo " " >&6
17575
17576fi
17577rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17579 fi
17580 if test "x$cross_compiling" != "xyes" &&
17581 test "$tmp_compiler_works" = "yes"; then
17582 if test "$cross_compiling" = yes; then :
17583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585as_fn_error $? "cannot run test program while cross compiling
17586See \`config.log' for more details" "$LINENO" 5; }
17587else
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589/* end confdefs.h. */
17590
17591
17592# ifdef __STDC__
17593# include <stdlib.h>
17594# endif
17595
17596int main (void)
17597{
17598
17599 int i = 0;
17600 exit(i);
17601
17602 ;
17603 return 0;
17604}
17605
17606_ACEOF
17607if ac_fn_c_try_run "$LINENO"; then :
17608
17609 tmp_compiler_works="yes"
17610
17611else
17612
17613 tmp_compiler_works="no"
17614 echo " " >&6
17615 echo "run-fail: test program exited with status $ac_status" >&6
17616 echo " " >&6
17617
17618fi
17619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17620 conftest.$ac_objext conftest.beam conftest.$ac_ext
17621fi
17622
17623 fi
17624 if test "$tmp_compiler_works" = "yes"; then
17625
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17627$as_echo "yes" >&6; }
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17629$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17630
17631 else
17632
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17634$as_echo "no" >&6; }
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17636$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17637 CPPFLAGS="$tmp_save_CPPFLAGS"
17638 CFLAGS="$tmp_save_CFLAGS"
17639
17640 fi
17641
17642 #
17643 fi
17644
17645
17646 #
17647 if test "$compiler_id" != "unknown"; then
17648 #
17649 tmp_save_CFLAGS="$CFLAGS"
17650 tmp_save_CPPFLAGS="$CPPFLAGS"
17651 #
17652 tmp_options=""
17653 tmp_CFLAGS="$CFLAGS"
17654 tmp_CPPFLAGS="$CPPFLAGS"
17655 honor_optimize_option="yes"
17656 #
17657 #
17658 if test "$want_optimize" = "assume_no" ||
17659 test "$want_optimize" = "assume_yes"; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17661$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17662
17663
17664 ac_var_match_word="no"
17665 for word1 in $tmp_CFLAGS; do
17666 for word2 in $flags_opt_all; do
17667 if test "$word1" = "$word2"; then
17668 ac_var_match_word="yes"
17669 fi
17670 done
17671 done
17672
17673 if test "$ac_var_match_word" = "yes"; then
17674
17675 honor_optimize_option="no"
17676
17677
17678 fi
17679
17680
17681
17682 ac_var_match_word="no"
17683 for word1 in $tmp_CPPFLAGS; do
17684 for word2 in $flags_opt_all; do
17685 if test "$word1" = "$word2"; then
17686 ac_var_match_word="yes"
17687 fi
17688 done
17689 done
17690
17691 if test "$ac_var_match_word" = "yes"; then
17692
17693 honor_optimize_option="no"
17694
17695
17696 fi
17697
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17699$as_echo "$honor_optimize_option" >&6; }
17700 if test "$honor_optimize_option" = "yes"; then
17701 if test "$want_optimize" = "assume_yes"; then
17702 want_optimize="yes"
17703 fi
17704 if test "$want_optimize" = "assume_no"; then
17705 want_optimize="no"
17706 fi
17707 fi
17708 fi
17709 #
17710 if test "$honor_optimize_option" = "yes"; then
17711
17712 ac_var_stripped=""
17713 for word1 in $tmp_CFLAGS; do
17714 ac_var_strip_word="no"
17715 for word2 in $flags_opt_all; do
17716 if test "$word1" = "$word2"; then
17717 ac_var_strip_word="yes"
17718 fi
17719 done
17720 if test "$ac_var_strip_word" = "no"; then
17721 ac_var_stripped="$ac_var_stripped $word1"
17722 fi
17723 done
17724 tmp_CFLAGS="$ac_var_stripped"
17725 squeeze tmp_CFLAGS
17726
17727
17728 ac_var_stripped=""
17729 for word1 in $tmp_CPPFLAGS; do
17730 ac_var_strip_word="no"
17731 for word2 in $flags_opt_all; do
17732 if test "$word1" = "$word2"; then
17733 ac_var_strip_word="yes"
17734 fi
17735 done
17736 if test "$ac_var_strip_word" = "no"; then
17737 ac_var_stripped="$ac_var_stripped $word1"
17738 fi
17739 done
17740 tmp_CPPFLAGS="$ac_var_stripped"
17741 squeeze tmp_CPPFLAGS
17742
17743 if test "$want_optimize" = "yes"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17745$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17746 tmp_options="$flags_opt_yes"
17747 fi
17748 if test "$want_optimize" = "no"; then
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17750$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17751 tmp_options="$flags_opt_off"
17752 fi
17753 if test "$flags_prefer_cppflags" = "yes"; then
17754 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17755 CFLAGS="$tmp_CFLAGS"
17756 else
17757 CPPFLAGS="$tmp_CPPFLAGS"
17758 CFLAGS="$tmp_CFLAGS $tmp_options"
17759 fi
17760 squeeze CPPFLAGS
17761 squeeze CFLAGS
17762
17763 tmp_compiler_works="unknown"
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765/* end confdefs.h. */
17766
17767
17768
17769int main (void)
17770{
17771
17772 int i = 1;
17773 return i;
17774
17775 ;
17776 return 0;
17777}
17778
17779_ACEOF
17780if ac_fn_c_try_compile "$LINENO"; then :
17781
17782 tmp_compiler_works="yes"
17783
17784else
17785
17786 tmp_compiler_works="no"
17787 echo " " >&6
17788 sed 's/^/cc-fail: /' conftest.err >&6
17789 echo " " >&6
17790
17791fi
17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 if test "$tmp_compiler_works" = "yes"; then
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795/* end confdefs.h. */
17796
17797
17798
17799int main (void)
17800{
17801
17802 int i = 1;
17803 return i;
17804
17805 ;
17806 return 0;
17807}
17808
17809_ACEOF
17810if ac_fn_c_try_link "$LINENO"; then :
17811
17812 tmp_compiler_works="yes"
17813
17814else
17815
17816 tmp_compiler_works="no"
17817 echo " " >&6
17818 sed 's/^/link-fail: /' conftest.err >&6
17819 echo " " >&6
17820
17821fi
17822rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 if test "x$cross_compiling" != "xyes" &&
17826 test "$tmp_compiler_works" = "yes"; then
17827 if test "$cross_compiling" = yes; then :
17828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17830as_fn_error $? "cannot run test program while cross compiling
17831See \`config.log' for more details" "$LINENO" 5; }
17832else
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h. */
17835
17836
17837# ifdef __STDC__
17838# include <stdlib.h>
17839# endif
17840
17841int main (void)
17842{
17843
17844 int i = 0;
17845 exit(i);
17846
17847 ;
17848 return 0;
17849}
17850
17851_ACEOF
17852if ac_fn_c_try_run "$LINENO"; then :
17853
17854 tmp_compiler_works="yes"
17855
17856else
17857
17858 tmp_compiler_works="no"
17859 echo " " >&6
17860 echo "run-fail: test program exited with status $ac_status" >&6
17861 echo " " >&6
17862
17863fi
17864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17865 conftest.$ac_objext conftest.beam conftest.$ac_ext
17866fi
17867
17868 fi
17869 if test "$tmp_compiler_works" = "yes"; then
17870
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872$as_echo "yes" >&6; }
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17874$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17875
17876 else
17877
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879$as_echo "no" >&6; }
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17881$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17882 CPPFLAGS="$tmp_save_CPPFLAGS"
17883 CFLAGS="$tmp_save_CFLAGS"
17884
17885 fi
17886
17887 fi
17888 #
17889 fi
17890
17891
17892 #
17893 if test "$compiler_id" != "unknown"; then
17894 #
17895 tmp_save_CPPFLAGS="$CPPFLAGS"
17896 tmp_save_CFLAGS="$CFLAGS"
17897 tmp_CPPFLAGS=""
17898 tmp_CFLAGS=""
17899 #
17900 case "$compiler_id" in
17901 #
17902 CLANG)
17903 #
17904 if test "$want_warnings" = "yes"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17906 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17907 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17908 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17909 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17910 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17911 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17912 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17913 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17914 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17915 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17916 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17917 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17918 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17919 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17920 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17921 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17922 #
17923 if test "$compiler_num" -ge "101"; then
17924 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17925 fi
17926 #
17927 if test "$compiler_num" -ge "208"; then
17928 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17929 fi
17930 #
17931 if test "$compiler_num" -ge "209"; then
17932 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17933 fi
17934 #
17935 if test "$compiler_num" -ge "302"; then
17936 case $host_os in
17937 cygwin* | mingw*)
17938 ;;
17939 *)
17940 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17941 ;;
17942 esac
17943 fi
17944 #
17945 if test "$compiler_num" -ge "306"; then
17946 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17947 fi
17948 #
17949 if test "$compiler_num" -ge "309"; then
17950 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017951 # avoid the varargs warning, fixed in 4.0
17952 # https://bugs.llvm.org/show_bug.cgi?id=29140
17953 if test "$compiler_num" -lt "400"; then
17954 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17955 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017956 fi
17957 fi
17958 ;;
17959 #
17960 DEC_C)
17961 #
17962 if test "$want_warnings" = "yes"; then
17963 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17964 fi
17965 ;;
17966 #
17967 GNU_C)
17968 #
17969 if test "$want_warnings" = "yes"; then
17970 #
17971 if test "x$cross_compiling" != "xyes" ||
17972 test "$compiler_num" -ge "300"; then
17973 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17974 fi
17975 #
17976 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17977 #
17978 if test "$compiler_num" -ge "104"; then
17979 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17980 if test "x$cross_compiling" != "xyes" ||
17981 test "$compiler_num" -ge "300"; then
17982 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17983 fi
17984 fi
17985 #
17986 if test "$compiler_num" -ge "207"; then
17987 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17988 if test "x$cross_compiling" != "xyes" ||
17989 test "$compiler_num" -ge "300"; then
17990 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17991 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17992 fi
17993 fi
17994 #
17995 if test "$compiler_num" -ge "295"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17997 fi
17998 #
17999 if test "$compiler_num" -ge "296"; then
18000 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18001 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18002 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18003 fi
18004 #
18005 if test "$compiler_num" -ge "297"; then
18006 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18007 fi
18008 #
18009 if test "$compiler_num" -ge "300"; then
18010 tmp_CFLAGS="$tmp_CFLAGS"
18011 fi
18012 #
18013 if test "$compiler_num" -ge "303"; then
18014 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18015 fi
18016 #
18017 if test "$compiler_num" -ge "304"; then
18018 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18019 fi
18020 #
18021 if test "$compiler_num" -ge "400"; then
18022 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18023 fi
18024 #
18025 if test "$compiler_num" -ge "402"; then
18026 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18027 fi
18028 #
18029 if test "$compiler_num" -ge "403"; then
18030 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18031 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18032 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18033 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18034 fi
18035 #
18036 if test "$compiler_num" -ge "405"; then
18037 if test "$curl_cv_have_def__WIN32" = "yes"; then
18038 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18039 fi
18040 fi
18041 #
18042 if test "$compiler_num" -ge "406"; then
18043 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18044 fi
18045 #
18046 fi
18047 #
18048 if test "$compiler_num" -ge "300"; then
18049 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18050 else
18051 if test "x$cross_compiling" = "xyes"; then
18052 if test "$compiler_num" -ge "104"; then
18053 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18054 fi
18055 if test "$compiler_num" -ge "207"; then
18056 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18057 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18058 fi
18059 fi
18060 fi
18061 ;;
18062 #
18063 HP_UX_C)
18064 #
18065 if test "$want_warnings" = "yes"; then
18066 tmp_CFLAGS="$tmp_CFLAGS +w1"
18067 fi
18068 ;;
18069 #
18070 IBM_C)
18071 #
18072 tmp_CFLAGS="$tmp_CFLAGS"
18073 ;;
18074 #
18075 INTEL_UNIX_C)
18076 #
18077 if test "$want_warnings" = "yes"; then
18078 if test "$compiler_num" -gt "600"; then
18079 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18080 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18081 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18082 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18083 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18084 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18085 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18086 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18087 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18088 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18089 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18090 fi
18091 fi
18092 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18093 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18094 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18095 if test "$compiler_num" -ge "1000"; then
18096 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18097 fi
18098 ;;
18099 #
18100 INTEL_WINDOWS_C)
18101 #
18102 tmp_CFLAGS="$tmp_CFLAGS"
18103 ;;
18104 #
18105 LCC)
18106 #
18107 if test "$want_warnings" = "yes"; then
18108 tmp_CFLAGS="$tmp_CFLAGS"
18109 fi
18110 ;;
18111 #
18112 SGI_MIPS_C)
18113 #
18114 if test "$want_warnings" = "yes"; then
18115 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18116 fi
18117 ;;
18118 #
18119 SGI_MIPSPRO_C)
18120 #
18121 if test "$want_warnings" = "yes"; then
18122 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18123 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18124 fi
18125 ;;
18126 #
18127 SUNPRO_C)
18128 #
18129 if test "$want_warnings" = "yes"; then
18130 tmp_CFLAGS="$tmp_CFLAGS -v"
18131 fi
18132 ;;
18133 #
18134 TINY_C)
18135 #
18136 if test "$want_warnings" = "yes"; then
18137 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18138 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18139 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18140 fi
18141 ;;
18142 #
18143 WATCOM_UNIX_C)
18144 #
18145 if test "$want_warnings" = "yes"; then
18146 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18147 fi
18148 ;;
18149 #
18150 WATCOM_WINDOWS_C)
18151 #
18152 tmp_CFLAGS="$tmp_CFLAGS"
18153 ;;
18154 #
18155 esac
18156 #
18157 squeeze tmp_CPPFLAGS
18158 squeeze tmp_CFLAGS
18159 #
18160 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18162$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18163 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18164 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18165 squeeze CPPFLAGS
18166 squeeze CFLAGS
18167
18168 tmp_compiler_works="unknown"
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h. */
18171
18172
18173
18174int main (void)
18175{
18176
18177 int i = 1;
18178 return i;
18179
18180 ;
18181 return 0;
18182}
18183
18184_ACEOF
18185if ac_fn_c_try_compile "$LINENO"; then :
18186
18187 tmp_compiler_works="yes"
18188
18189else
18190
18191 tmp_compiler_works="no"
18192 echo " " >&6
18193 sed 's/^/cc-fail: /' conftest.err >&6
18194 echo " " >&6
18195
18196fi
18197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 if test "$tmp_compiler_works" = "yes"; then
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h. */
18201
18202
18203
18204int main (void)
18205{
18206
18207 int i = 1;
18208 return i;
18209
18210 ;
18211 return 0;
18212}
18213
18214_ACEOF
18215if ac_fn_c_try_link "$LINENO"; then :
18216
18217 tmp_compiler_works="yes"
18218
18219else
18220
18221 tmp_compiler_works="no"
18222 echo " " >&6
18223 sed 's/^/link-fail: /' conftest.err >&6
18224 echo " " >&6
18225
18226fi
18227rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 fi
18230 if test "x$cross_compiling" != "xyes" &&
18231 test "$tmp_compiler_works" = "yes"; then
18232 if test "$cross_compiling" = yes; then :
18233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18235as_fn_error $? "cannot run test program while cross compiling
18236See \`config.log' for more details" "$LINENO" 5; }
18237else
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h. */
18240
18241
18242# ifdef __STDC__
18243# include <stdlib.h>
18244# endif
18245
18246int main (void)
18247{
18248
18249 int i = 0;
18250 exit(i);
18251
18252 ;
18253 return 0;
18254}
18255
18256_ACEOF
18257if ac_fn_c_try_run "$LINENO"; then :
18258
18259 tmp_compiler_works="yes"
18260
18261else
18262
18263 tmp_compiler_works="no"
18264 echo " " >&6
18265 echo "run-fail: test program exited with status $ac_status" >&6
18266 echo " " >&6
18267
18268fi
18269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18270 conftest.$ac_objext conftest.beam conftest.$ac_ext
18271fi
18272
18273 fi
18274 if test "$tmp_compiler_works" = "yes"; then
18275
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277$as_echo "yes" >&6; }
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18279$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18280
18281 else
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284$as_echo "no" >&6; }
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18286$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18287 CPPFLAGS="$tmp_save_CPPFLAGS"
18288 CFLAGS="$tmp_save_CFLAGS"
18289
18290 fi
18291
18292 fi
18293 #
18294 fi
18295
18296
18297if test "$compiler_id" = "INTEL_UNIX_C"; then
18298 #
18299 if test "$compiler_num" -ge "1000"; then
18300 CFLAGS="$CFLAGS -shared-intel"
18301 elif test "$compiler_num" -ge "900"; then
18302 CFLAGS="$CFLAGS -i-dynamic"
18303 fi
18304 #
18305fi
18306
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18309$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h. */
18312
18313
18314
18315int main (void)
18316{
18317
18318 force compilation error
18319
18320 ;
18321 return 0;
18322}
18323
18324_ACEOF
18325if ac_fn_c_try_compile "$LINENO"; then :
18326
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328$as_echo "no" >&6; }
18329 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18330
18331else
18332
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334$as_echo "yes" >&6; }
18335
18336fi
18337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18341$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h. */
18344
18345
18346 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18347
18348int main (void)
18349{
18350
18351 bad_t dummy;
18352
18353 ;
18354 return 0;
18355}
18356
18357_ACEOF
18358if ac_fn_c_try_compile "$LINENO"; then :
18359
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361$as_echo "no" >&6; }
18362 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18363
18364else
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367$as_echo "yes" >&6; }
18368
18369fi
18370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18371
18372
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18374$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376/* end confdefs.h. */
18377
18378
18379# include <stdlib.h>
18380 int rand(int n);
18381 int rand(int n)
18382 {
18383 if(n)
18384 return ++n;
18385 else
18386 return n;
18387 }
18388
18389int main (void)
18390{
18391
18392 int i[2]={0,0};
18393 int j = rand(i[0]);
18394 if(j)
18395 return j;
18396
18397 ;
18398 return 0;
18399}
18400
18401_ACEOF
18402if ac_fn_c_try_compile "$LINENO"; then :
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405$as_echo "no" >&6; }
18406 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18407
18408else
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411$as_echo "yes" >&6; }
18412
18413fi
18414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415
18416
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18418$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18419 supports_symbol_hiding="no"
18420 symbol_hiding_CFLAGS=""
18421 symbol_hiding_EXTERN=""
18422 tmp_CFLAGS=""
18423 tmp_EXTERN=""
18424 case "$compiler_id" in
18425 CLANG)
18426 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18427 tmp_CFLAGS="-fvisibility=hidden"
18428 supports_symbol_hiding="yes"
18429 ;;
18430 GNU_C)
18431 if test "$compiler_num" -ge "304"; then
18432 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18433 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18434 tmp_CFLAGS="-fvisibility=hidden"
18435 supports_symbol_hiding="yes"
18436 fi
18437 fi
18438 ;;
18439 INTEL_UNIX_C)
18440 if test "$compiler_num" -ge "900"; then
18441 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18442 tmp_save_CFLAGS="$CFLAGS"
18443 CFLAGS="$CFLAGS -fvisibility=hidden"
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445/* end confdefs.h. */
18446
18447
18448# include <stdio.h>
18449
18450int main (void)
18451{
18452
18453 printf("icc fvisibility bug test");
18454
18455 ;
18456 return 0;
18457}
18458
18459_ACEOF
18460if ac_fn_c_try_link "$LINENO"; then :
18461
18462 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18463 tmp_CFLAGS="-fvisibility=hidden"
18464 supports_symbol_hiding="yes"
18465
18466fi
18467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 CFLAGS="$tmp_save_CFLAGS"
18470 fi
18471 fi
18472 ;;
18473 SUNPRO_C)
18474 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18475 tmp_EXTERN="__global"
18476 tmp_CFLAGS="-xldscope=hidden"
18477 supports_symbol_hiding="yes"
18478 fi
18479 ;;
18480 esac
18481 if test "$supports_symbol_hiding" = "yes"; then
18482 tmp_save_CFLAGS="$CFLAGS"
18483 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18484 squeeze CFLAGS
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486/* end confdefs.h. */
18487
18488
18489 $tmp_EXTERN char *dummy(char *buff);
18490 char *dummy(char *buff)
18491 {
18492 if(buff)
18493 return ++buff;
18494 else
18495 return buff;
18496 }
18497
18498int main (void)
18499{
18500
18501 char b[16];
18502 char *r = dummy(&b[0]);
18503 if(r)
18504 return (int)*r;
18505
18506 ;
18507 return 0;
18508}
18509
18510_ACEOF
18511if ac_fn_c_try_compile "$LINENO"; then :
18512
18513 supports_symbol_hiding="yes"
18514 if test -f conftest.err; then
18515 grep 'visibility' conftest.err >/dev/null
18516 if test "$?" -eq "0"; then
18517 supports_symbol_hiding="no"
18518 fi
18519 fi
18520
18521else
18522
18523 supports_symbol_hiding="no"
18524 echo " " >&6
18525 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18526 sed 's/^/cc-err: /' conftest.err >&6
18527 echo " " >&6
18528
18529fi
18530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 CFLAGS="$tmp_save_CFLAGS"
18532 fi
18533 if test "$supports_symbol_hiding" = "yes"; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18535$as_echo "yes" >&6; }
18536 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18537 symbol_hiding_EXTERN="$tmp_EXTERN"
18538 else
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540$as_echo "no" >&6; }
18541 fi
18542
18543
18544
18545 supports_curldebug="unknown"
18546 if test "$want_curldebug" = "yes"; then
18547 if test "x$enable_shared" != "xno" &&
18548 test "x$enable_shared" != "xyes"; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18550$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18551 supports_curldebug="no"
18552 fi
18553 if test "x$enable_static" != "xno" &&
18554 test "x$enable_static" != "xyes"; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18556$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18557 supports_curldebug="no"
18558 fi
18559 if test "$supports_curldebug" != "no"; then
18560 if test "$enable_shared" = "yes" &&
18561 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18562 supports_curldebug="no"
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18564$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18565 fi
18566 fi
18567 fi
18568 #
18569 if test "$want_curldebug" = "yes"; then
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18571$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18572 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18574$as_echo "$supports_curldebug" >&6; }
18575 if test "$supports_curldebug" = "no"; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18577$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18578 want_curldebug="no"
18579 fi
18580 fi
18581 #
18582 if test "$want_curldebug" = "yes"; then
18583 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18584 squeeze CPPFLAGS
18585 fi
18586 if test "$want_debug" = "yes"; then
18587 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18588 squeeze CPPFLAGS
18589 fi
18590
18591 if test x$want_curldebug = xyes; then
18592 CURLDEBUG_TRUE=
18593 CURLDEBUG_FALSE='#'
18594else
18595 CURLDEBUG_TRUE='#'
18596 CURLDEBUG_FALSE=
18597fi
18598
18599
18600supports_unittests=yes
18601# cross-compilation of unit tests static library/programs fails when
18602# libcurl shared library is built. This might be due to a libtool or
18603# automake issue. In this case we disable unit tests.
18604if test "x$cross_compiling" != "xno" &&
18605 test "x$enable_shared" != "xno"; then
18606 supports_unittests=no
18607fi
18608
18609# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18610# a problem related with OpenSSL headers and library versions not matching.
18611# Disable unit tests while time to further investigate this is found.
18612case $host in
18613 mips-sgi-irix6.5)
18614 if test "$compiler_id" = "GNU_C"; then
18615 supports_unittests=no
18616 fi
18617 ;;
18618esac
18619
18620# All AIX autobuilds fails unit tests linking against unittests library
18621# due to unittests library being built with no symbols or members. Libtool ?
18622# Disable unit tests while time to further investigate this is found.
18623case $host_os in
18624 aix*)
18625 supports_unittests=no
18626 ;;
18627esac
18628
18629if test "x$want_debug" = "xyes" &&
18630 test "x$supports_unittests" = "xyes"; then
18631 want_unittests=yes
18632else
18633 want_unittests=no
18634fi
18635 if test x$want_unittests = xyes; then
18636 BUILD_UNITTESTS_TRUE=
18637 BUILD_UNITTESTS_FALSE='#'
18638else
18639 BUILD_UNITTESTS_TRUE='#'
18640 BUILD_UNITTESTS_FALSE=
18641fi
18642
18643
18644
18645
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18648$as_echo_n "checking for windows.h... " >&6; }
18649if ${curl_cv_header_windows_h+:} false; then :
18650 $as_echo_n "(cached) " >&6
18651else
18652
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654/* end confdefs.h. */
18655
18656
18657#undef inline
18658#ifndef WIN32_LEAN_AND_MEAN
18659#define WIN32_LEAN_AND_MEAN
18660#endif
18661#include <windows.h>
18662
18663int main (void)
18664{
18665
18666#if defined(__CYGWIN__) || defined(__CEGCC__)
18667 HAVE_WINDOWS_H shall not be defined.
18668#else
18669 int dummy=2*WINVER;
18670#endif
18671
18672 ;
18673 return 0;
18674}
18675
18676_ACEOF
18677if ac_fn_c_try_compile "$LINENO"; then :
18678
18679 curl_cv_header_windows_h="yes"
18680
18681else
18682
18683 curl_cv_header_windows_h="no"
18684
18685fi
18686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687
18688fi
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18690$as_echo "$curl_cv_header_windows_h" >&6; }
18691 case "$curl_cv_header_windows_h" in
18692 yes)
18693
18694cat >>confdefs.h <<_ACEOF
18695#define HAVE_WINDOWS_H 1
18696_ACEOF
18697
18698 ;;
18699 esac
18700
18701
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18703$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18704if ${curl_cv_native_windows+:} false; then :
18705 $as_echo_n "(cached) " >&6
18706else
18707
18708 if test "$curl_cv_header_windows_h" = "no"; then
18709 curl_cv_native_windows="no"
18710 else
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h. */
18713
18714
18715
18716int main (void)
18717{
18718
18719#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18720 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18721 int dummy=1;
18722#else
18723 Not a native Windows build target.
18724#endif
18725
18726 ;
18727 return 0;
18728}
18729
18730_ACEOF
18731if ac_fn_c_try_compile "$LINENO"; then :
18732
18733 curl_cv_native_windows="yes"
18734
18735else
18736
18737 curl_cv_native_windows="no"
18738
18739fi
18740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 fi
18742
18743fi
18744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18745$as_echo "$curl_cv_native_windows" >&6; }
18746 if test "x$curl_cv_native_windows" = xyes; then
18747 DOING_NATIVE_WINDOWS_TRUE=
18748 DOING_NATIVE_WINDOWS_FALSE='#'
18749else
18750 DOING_NATIVE_WINDOWS_TRUE='#'
18751 DOING_NATIVE_WINDOWS_FALSE=
18752fi
18753
18754
18755case X-"$curl_cv_native_windows" in
18756 X-yes)
18757
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18759$as_echo_n "checking for winsock.h... " >&6; }
18760if ${curl_cv_header_winsock_h+:} false; then :
18761 $as_echo_n "(cached) " >&6
18762else
18763
18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765/* end confdefs.h. */
18766
18767
18768#undef inline
18769#ifndef WIN32_LEAN_AND_MEAN
18770#define WIN32_LEAN_AND_MEAN
18771#endif
18772#include <windows.h>
18773#include <winsock.h>
18774
18775int main (void)
18776{
18777
18778#if defined(__CYGWIN__) || defined(__CEGCC__)
18779 HAVE_WINSOCK_H shall not be defined.
18780#else
18781 int dummy=WSACleanup();
18782#endif
18783
18784 ;
18785 return 0;
18786}
18787
18788_ACEOF
18789if ac_fn_c_try_compile "$LINENO"; then :
18790
18791 curl_cv_header_winsock_h="yes"
18792
18793else
18794
18795 curl_cv_header_winsock_h="no"
18796
18797fi
18798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799
18800fi
18801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18802$as_echo "$curl_cv_header_winsock_h" >&6; }
18803 case "$curl_cv_header_winsock_h" in
18804 yes)
18805
18806cat >>confdefs.h <<_ACEOF
18807#define HAVE_WINSOCK_H 1
18808_ACEOF
18809
18810 ;;
18811 esac
18812
18813
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18815$as_echo_n "checking for winsock2.h... " >&6; }
18816if ${curl_cv_header_winsock2_h+:} false; then :
18817 $as_echo_n "(cached) " >&6
18818else
18819
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821/* end confdefs.h. */
18822
18823
18824#undef inline
18825#ifndef WIN32_LEAN_AND_MEAN
18826#define WIN32_LEAN_AND_MEAN
18827#endif
18828#include <windows.h>
18829#include <winsock2.h>
18830
18831int main (void)
18832{
18833
18834#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18835 HAVE_WINSOCK2_H shall not be defined.
18836#else
18837 int dummy=2*IPPROTO_ESP;
18838#endif
18839
18840 ;
18841 return 0;
18842}
18843
18844_ACEOF
18845if ac_fn_c_try_compile "$LINENO"; then :
18846
18847 curl_cv_header_winsock2_h="yes"
18848
18849else
18850
18851 curl_cv_header_winsock2_h="no"
18852
18853fi
18854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855
18856fi
18857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18858$as_echo "$curl_cv_header_winsock2_h" >&6; }
18859 case "$curl_cv_header_winsock2_h" in
18860 yes)
18861
18862cat >>confdefs.h <<_ACEOF
18863#define HAVE_WINSOCK2_H 1
18864_ACEOF
18865
18866 ;;
18867 esac
18868
18869
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18871$as_echo_n "checking for ws2tcpip.h... " >&6; }
18872if ${curl_cv_header_ws2tcpip_h+:} false; then :
18873 $as_echo_n "(cached) " >&6
18874else
18875
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877/* end confdefs.h. */
18878
18879
18880#undef inline
18881#ifndef WIN32_LEAN_AND_MEAN
18882#define WIN32_LEAN_AND_MEAN
18883#endif
18884#include <windows.h>
18885#include <winsock2.h>
18886#include <ws2tcpip.h>
18887
18888int main (void)
18889{
18890
18891#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18892 HAVE_WS2TCPIP_H shall not be defined.
18893#else
18894 int dummy=2*IP_PKTINFO;
18895#endif
18896
18897 ;
18898 return 0;
18899}
18900
18901_ACEOF
18902if ac_fn_c_try_compile "$LINENO"; then :
18903
18904 curl_cv_header_ws2tcpip_h="yes"
18905
18906else
18907
18908 curl_cv_header_ws2tcpip_h="no"
18909
18910fi
18911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912
18913fi
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18915$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18916 case "$curl_cv_header_ws2tcpip_h" in
18917 yes)
18918
18919cat >>confdefs.h <<_ACEOF
18920#define HAVE_WS2TCPIP_H 1
18921_ACEOF
18922
18923 ;;
18924 esac
18925
18926
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18928$as_echo_n "checking for winldap.h... " >&6; }
18929if ${curl_cv_header_winldap_h+:} false; then :
18930 $as_echo_n "(cached) " >&6
18931else
18932
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934/* end confdefs.h. */
18935
18936
18937#undef inline
18938#ifdef HAVE_WINDOWS_H
18939#ifndef WIN32_LEAN_AND_MEAN
18940#define WIN32_LEAN_AND_MEAN
18941#endif
18942#include <windows.h>
18943#endif
18944#include <winldap.h>
18945
18946int main (void)
18947{
18948
18949#if defined(__CYGWIN__) || defined(__CEGCC__)
18950 HAVE_WINLDAP_H shall not be defined.
18951#else
18952 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18953 ULONG res = ldap_unbind(ldp);
18954#endif
18955
18956 ;
18957 return 0;
18958}
18959
18960_ACEOF
18961if ac_fn_c_try_compile "$LINENO"; then :
18962
18963 curl_cv_header_winldap_h="yes"
18964
18965else
18966
18967 curl_cv_header_winldap_h="no"
18968
18969fi
18970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972fi
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18974$as_echo "$curl_cv_header_winldap_h" >&6; }
18975 case "$curl_cv_header_winldap_h" in
18976 yes)
18977
18978cat >>confdefs.h <<_ACEOF
18979#define HAVE_WINLDAP_H 1
18980_ACEOF
18981
18982 ;;
18983 esac
18984
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18987$as_echo_n "checking for winber.h... " >&6; }
18988if ${curl_cv_header_winber_h+:} false; then :
18989 $as_echo_n "(cached) " >&6
18990else
18991
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993/* end confdefs.h. */
18994
18995
18996#undef inline
18997#ifdef HAVE_WINDOWS_H
18998#ifndef WIN32_LEAN_AND_MEAN
18999#define WIN32_LEAN_AND_MEAN
19000#endif
19001#include <windows.h>
19002#endif
19003#include <winldap.h>
19004#include <winber.h>
19005
19006int main (void)
19007{
19008
19009#if defined(__CYGWIN__) || defined(__CEGCC__)
19010 HAVE_WINBER_H shall not be defined.
19011#else
19012 BERVAL *bvp = NULL;
19013 BerElement *bep = ber_init(bvp);
19014 ber_free(bep, 1);
19015#endif
19016
19017 ;
19018 return 0;
19019}
19020
19021_ACEOF
19022if ac_fn_c_try_compile "$LINENO"; then :
19023
19024 curl_cv_header_winber_h="yes"
19025
19026else
19027
19028 curl_cv_header_winber_h="no"
19029
19030fi
19031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032
19033fi
19034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19035$as_echo "$curl_cv_header_winber_h" >&6; }
19036 case "$curl_cv_header_winber_h" in
19037 yes)
19038
19039cat >>confdefs.h <<_ACEOF
19040#define HAVE_WINBER_H 1
19041_ACEOF
19042
19043 ;;
19044 esac
19045
19046 ;;
19047 *)
19048 curl_cv_header_winsock_h="no"
19049 curl_cv_header_winsock2_h="no"
19050 curl_cv_header_ws2tcpip_h="no"
19051 curl_cv_header_winldap_h="no"
19052 curl_cv_header_winber_h="no"
19053 ;;
19054esac
19055
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19057$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19058 curl_win32_file_api="no"
19059 if test "$curl_cv_header_windows_h" = "yes"; then
19060 if test x"$enable_largefile" != "xno"; then
19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h. */
19063
19064
19065
19066int main (void)
19067{
19068
19069#if !defined(_WIN32_WCE) && \
19070 (defined(__MINGW32__) || \
19071 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19072 int dummy=1;
19073#else
19074 WIN32 large file API not supported.
19075#endif
19076
19077 ;
19078 return 0;
19079}
19080
19081_ACEOF
19082if ac_fn_c_try_compile "$LINENO"; then :
19083
19084 curl_win32_file_api="win32_large_files"
19085
19086fi
19087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088 fi
19089 if test "$curl_win32_file_api" = "no"; then
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091/* end confdefs.h. */
19092
19093
19094
19095int main (void)
19096{
19097
19098#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19099 int dummy=1;
19100#else
19101 WIN32 small file API not supported.
19102#endif
19103
19104 ;
19105 return 0;
19106}
19107
19108_ACEOF
19109if ac_fn_c_try_compile "$LINENO"; then :
19110
19111 curl_win32_file_api="win32_small_files"
19112
19113fi
19114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115 fi
19116 fi
19117 case "$curl_win32_file_api" in
19118 win32_large_files)
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19120$as_echo "yes (large file enabled)" >&6; }
19121
19122cat >>confdefs.h <<_ACEOF
19123#define USE_WIN32_LARGE_FILES 1
19124_ACEOF
19125
19126 ;;
19127 win32_small_files)
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19129$as_echo "yes (large file disabled)" >&6; }
19130
19131cat >>confdefs.h <<_ACEOF
19132#define USE_WIN32_SMALL_FILES 1
19133_ACEOF
19134
19135 ;;
19136 *)
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138$as_echo "no" >&6; }
19139 ;;
19140 esac
19141
19142
19143
19144
19145 tst_cflags="no"
19146 case $host_os in
19147 darwin*)
19148 tst_cflags="yes"
19149 ;;
19150 esac
19151
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19153$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19155$as_echo "$tst_cflags" >&6; };
19156
19157 if test "$tst_cflags" = "yes"; then
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19159$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19160 min=""
19161 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19162 min="-mmacosx-version-min=10.8"
19163 CFLAGS="$CFLAGS $min"
19164 fi
19165 if test -z "$min"; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19167$as_echo "set by user" >&6; }
19168 else
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19170$as_echo "$min set" >&6; }
19171 fi
19172
19173 old_CFLAGS=$CFLAGS
19174 CFLAGS="$CFLAGS -Werror=partial-availability"
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19176$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178/* end confdefs.h. */
19179
19180int main (void)
19181{
19182
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187if ac_fn_c_try_compile "$LINENO"; then :
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189$as_echo "yes" >&6; }
19190else
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192$as_echo "no" >&6; }
19193 CFLAGS=$old_CFLAGS
19194fi
19195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 fi
19197
19198
19199
Alex Deymo486467e2017-12-19 19:04:07 +010019200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19201$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203/* end confdefs.h. */
19204
19205
19206#include <stdlib.h>
19207
19208int main (void)
19209{
19210
19211 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19212
19213 ;
19214 return 0;
19215}
19216
19217_ACEOF
19218if ac_fn_c_try_compile "$LINENO"; then :
19219
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19221$as_echo "yes" >&6; }
19222
19223cat >>confdefs.h <<_ACEOF
19224#define HAVE_BUILTIN_AVAILABLE 1
19225_ACEOF
19226
19227
19228else
19229
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231$as_echo "no" >&6; }
19232
19233fi
19234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235
19236
Elliott Hughes82be86d2017-09-20 17:00:17 -070019237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19238$as_echo_n "checking whether to support http... " >&6; }
19239# Check whether --enable-http was given.
19240if test "${enable_http+set}" = set; then :
19241 enableval=$enable_http; case "$enableval" in
19242 no)
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244$as_echo "no" >&6; }
19245
19246$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19247
19248 disable_http="yes"
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19250$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19251 CURL_DISABLE_HTTP=1
19252
19253
19254$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19255
19256 CURL_DISABLE_RTSP=1
19257
19258 ;;
19259 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260$as_echo "yes" >&6; }
19261 ;;
19262 esac
19263else
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265$as_echo "yes" >&6; }
19266
19267fi
19268
19269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19270$as_echo_n "checking whether to support ftp... " >&6; }
19271# Check whether --enable-ftp was given.
19272if test "${enable_ftp+set}" = set; then :
19273 enableval=$enable_ftp; case "$enableval" in
19274 no)
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276$as_echo "no" >&6; }
19277
19278$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19279
19280 CURL_DISABLE_FTP=1
19281
19282 ;;
19283 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19284$as_echo "yes" >&6; }
19285 ;;
19286 esac
19287else
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289$as_echo "yes" >&6; }
19290
19291fi
19292
19293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19294$as_echo_n "checking whether to support file... " >&6; }
19295# Check whether --enable-file was given.
19296if test "${enable_file+set}" = set; then :
19297 enableval=$enable_file; case "$enableval" in
19298 no)
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300$as_echo "no" >&6; }
19301
19302$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19303
19304 CURL_DISABLE_FILE=1
19305
19306 ;;
19307 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308$as_echo "yes" >&6; }
19309 ;;
19310 esac
19311else
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313$as_echo "yes" >&6; }
19314
19315fi
19316
19317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19318$as_echo_n "checking whether to support ldap... " >&6; }
19319# Check whether --enable-ldap was given.
19320if test "${enable_ldap+set}" = set; then :
19321 enableval=$enable_ldap; case "$enableval" in
19322 no)
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324$as_echo "no" >&6; }
19325
19326$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19327
19328 CURL_DISABLE_LDAP=1
19329
19330 ;;
19331 *)
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333$as_echo "yes" >&6; }
19334 ;;
19335 esac
19336else
19337
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339$as_echo "yes" >&6; }
19340
19341fi
19342
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19344$as_echo_n "checking whether to support ldaps... " >&6; }
19345# Check whether --enable-ldaps was given.
19346if test "${enable_ldaps+set}" = set; then :
19347 enableval=$enable_ldaps; case "$enableval" in
19348 no)
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19350$as_echo "no" >&6; }
19351
19352$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19353
19354 CURL_DISABLE_LDAPS=1
19355
19356 ;;
19357 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19359$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19360
19361$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19362
19363 CURL_DISABLE_LDAPS=1
19364
19365 else
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367$as_echo "yes" >&6; }
19368
19369$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19370
19371 HAVE_LDAP_SSL=1
19372
19373 fi
19374 ;;
19375 esac
19376else
19377
19378 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380$as_echo "no" >&6; }
19381
19382$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19383
19384 CURL_DISABLE_LDAPS=1
19385
19386 else
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19388$as_echo "yes" >&6; }
19389
19390$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19391
19392 HAVE_LDAP_SSL=1
19393
19394 fi
19395
19396fi
19397
19398
19399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19400$as_echo_n "checking whether to support rtsp... " >&6; }
19401# Check whether --enable-rtsp was given.
19402if test "${enable_rtsp+set}" = set; then :
19403 enableval=$enable_rtsp; case "$enableval" in
19404 no)
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406$as_echo "no" >&6; }
19407
19408$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19409
19410 CURL_DISABLE_RTSP=1
19411
19412 ;;
19413 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19414 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417$as_echo "yes" >&6; }
19418 curl_rtsp_msg="enabled"
19419 fi
19420 ;;
19421 esac
19422else
19423 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19425$as_echo "yes" >&6; }
19426 curl_rtsp_msg="enabled"
19427 else
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429$as_echo "no" >&6; }
19430 fi
19431
19432fi
19433
19434
19435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19436$as_echo_n "checking whether to support proxies... " >&6; }
19437# Check whether --enable-proxy was given.
19438if test "${enable_proxy+set}" = set; then :
19439 enableval=$enable_proxy; case "$enableval" in
19440 no)
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19442$as_echo "no" >&6; }
19443
19444$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19445
19446 CURL_DISABLE_PROXY=1
19447
19448 ;;
19449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19450$as_echo "yes" >&6; }
19451 ;;
19452 esac
19453else
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455$as_echo "yes" >&6; }
19456
19457fi
19458
19459
19460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19461$as_echo_n "checking whether to support dict... " >&6; }
19462# Check whether --enable-dict was given.
19463if test "${enable_dict+set}" = set; then :
19464 enableval=$enable_dict; case "$enableval" in
19465 no)
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467$as_echo "no" >&6; }
19468
19469$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19470
19471 CURL_DISABLE_DICT=1
19472
19473 ;;
19474 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19475$as_echo "yes" >&6; }
19476 ;;
19477 esac
19478else
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480$as_echo "yes" >&6; }
19481
19482fi
19483
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19485$as_echo_n "checking whether to support telnet... " >&6; }
19486# Check whether --enable-telnet was given.
19487if test "${enable_telnet+set}" = set; then :
19488 enableval=$enable_telnet; case "$enableval" in
19489 no)
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491$as_echo "no" >&6; }
19492
19493$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19494
19495 CURL_DISABLE_TELNET=1
19496
19497 ;;
19498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499$as_echo "yes" >&6; }
19500 ;;
19501 esac
19502else
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19504$as_echo "yes" >&6; }
19505
19506fi
19507
19508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19509$as_echo_n "checking whether to support tftp... " >&6; }
19510# Check whether --enable-tftp was given.
19511if test "${enable_tftp+set}" = set; then :
19512 enableval=$enable_tftp; case "$enableval" in
19513 no)
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515$as_echo "no" >&6; }
19516
19517$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19518
19519 CURL_DISABLE_TFTP=1
19520
19521 ;;
19522 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523$as_echo "yes" >&6; }
19524 ;;
19525 esac
19526else
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528$as_echo "yes" >&6; }
19529
19530fi
19531
19532
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19534$as_echo_n "checking whether to support pop3... " >&6; }
19535# Check whether --enable-pop3 was given.
19536if test "${enable_pop3+set}" = set; then :
19537 enableval=$enable_pop3; case "$enableval" in
19538 no)
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540$as_echo "no" >&6; }
19541
19542$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19543
19544 CURL_DISABLE_POP3=1
19545
19546 ;;
19547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19548$as_echo "yes" >&6; }
19549 ;;
19550 esac
19551else
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553$as_echo "yes" >&6; }
19554
19555fi
19556
19557
19558
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19560$as_echo_n "checking whether to support imap... " >&6; }
19561# Check whether --enable-imap was given.
19562if test "${enable_imap+set}" = set; then :
19563 enableval=$enable_imap; case "$enableval" in
19564 no)
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19566$as_echo "no" >&6; }
19567
19568$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19569
19570 CURL_DISABLE_IMAP=1
19571
19572 ;;
19573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574$as_echo "yes" >&6; }
19575 ;;
19576 esac
19577else
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19579$as_echo "yes" >&6; }
19580
19581fi
19582
19583
19584
19585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19586$as_echo_n "checking whether to support smb... " >&6; }
19587# Check whether --enable-smb was given.
19588if test "${enable_smb+set}" = set; then :
19589 enableval=$enable_smb; case "$enableval" in
19590 no)
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592$as_echo "no" >&6; }
19593
19594$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19595
19596 CURL_DISABLE_SMB=1
19597
19598 ;;
19599 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600$as_echo "yes" >&6; }
19601 ;;
19602 esac
19603else
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605$as_echo "yes" >&6; }
19606
19607fi
19608
19609
19610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19611$as_echo_n "checking whether to support smtp... " >&6; }
19612# Check whether --enable-smtp was given.
19613if test "${enable_smtp+set}" = set; then :
19614 enableval=$enable_smtp; case "$enableval" in
19615 no)
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617$as_echo "no" >&6; }
19618
19619$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19620
19621 CURL_DISABLE_SMTP=1
19622
19623 ;;
19624 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625$as_echo "yes" >&6; }
19626 ;;
19627 esac
19628else
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630$as_echo "yes" >&6; }
19631
19632fi
19633
19634
19635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19636$as_echo_n "checking whether to support gopher... " >&6; }
19637# Check whether --enable-gopher was given.
19638if test "${enable_gopher+set}" = set; then :
19639 enableval=$enable_gopher; case "$enableval" in
19640 no)
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19642$as_echo "no" >&6; }
19643
19644$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19645
19646 CURL_DISABLE_GOPHER=1
19647
19648 ;;
19649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650$as_echo "yes" >&6; }
19651 ;;
19652 esac
19653else
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655$as_echo "yes" >&6; }
19656
19657fi
19658
19659
19660
19661
19662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19663$as_echo_n "checking whether to provide built-in manual... " >&6; }
19664# Check whether --enable-manual was given.
19665if test "${enable_manual+set}" = set; then :
19666 enableval=$enable_manual; case "$enableval" in
19667 no)
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19669$as_echo "no" >&6; }
19670 ;;
19671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672$as_echo "yes" >&6; }
19673 USE_MANUAL="1"
19674 ;;
19675 esac
19676else
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19678$as_echo "yes" >&6; }
19679 USE_MANUAL="1"
19680
19681fi
19682
19683
19684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19685$as_echo_n "checking whether to enable generation of C code... " >&6; }
19686# Check whether --enable-libcurl_option was given.
19687if test "${enable_libcurl_option+set}" = set; then :
19688 enableval=$enable_libcurl_option; case "$enableval" in
19689 no)
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691$as_echo "no" >&6; }
19692
19693$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19694
19695 curl_libcurl_msg="no"
19696 ;;
19697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698$as_echo "yes" >&6; }
19699 ;;
19700 esac
19701else
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19703$as_echo "yes" >&6; }
19704
19705fi
19706
19707
19708
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19710$as_echo_n "checking whether to use libgcc... " >&6; }
19711# Check whether --enable-libgcc was given.
19712if test "${enable_libgcc+set}" = set; then :
19713 enableval=$enable_libgcc; case "$enableval" in
19714 yes)
19715 LIBS="-lgcc $LIBS"
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717$as_echo "yes" >&6; }
19718 ;;
19719 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720$as_echo "no" >&6; }
19721 ;;
19722 esac
19723else
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19725$as_echo "no" >&6; }
19726
19727fi
19728
19729
19730
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19732$as_echo_n "checking if X/Open network library is required... " >&6; }
19733 tst_lib_xnet_required="no"
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735/* end confdefs.h. */
19736
19737
19738int main (void)
19739{
19740#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19741 return 0;
19742#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19743 return 0;
19744#else
19745 force compilation error
19746#endif
19747}
19748
19749
19750_ACEOF
19751if ac_fn_c_try_compile "$LINENO"; then :
19752
19753 tst_lib_xnet_required="yes"
19754 LIBS="-lxnet $LIBS"
19755
19756fi
19757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19759$as_echo "$tst_lib_xnet_required" >&6; }
19760
19761
19762ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19763if test "x$ac_cv_func_gethostbyname" = xyes; then :
19764 HAVE_GETHOSTBYNAME="1"
19765
19766else
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19768$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19769if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19770 $as_echo_n "(cached) " >&6
19771else
19772 ac_check_lib_save_LIBS=$LIBS
19773LIBS="-lnsl $LIBS"
19774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775/* end confdefs.h. */
19776
19777
19778#ifdef __cplusplus
19779extern "C"
19780#endif
19781char gethostbyname ();
19782int main (void)
19783{
19784return gethostbyname ();
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_lib_nsl_gethostbyname=yes
19791else
19792 ac_cv_lib_nsl_gethostbyname=no
19793fi
19794rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796LIBS=$ac_check_lib_save_LIBS
19797fi
19798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19799$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19800if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19801 HAVE_GETHOSTBYNAME="1"
19802 LIBS="-lnsl $LIBS"
19803
19804fi
19805
19806
19807fi
19808
19809
19810if test "$HAVE_GETHOSTBYNAME" != "1"
19811then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19813$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19814if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19815 $as_echo_n "(cached) " >&6
19816else
19817 ac_check_lib_save_LIBS=$LIBS
19818LIBS="-lsocket $LIBS"
19819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820/* end confdefs.h. */
19821
19822
19823#ifdef __cplusplus
19824extern "C"
19825#endif
19826char gethostbyname ();
19827int main (void)
19828{
19829return gethostbyname ();
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834if ac_fn_c_try_link "$LINENO"; then :
19835 ac_cv_lib_socket_gethostbyname=yes
19836else
19837 ac_cv_lib_socket_gethostbyname=no
19838fi
19839rm -f core conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841LIBS=$ac_check_lib_save_LIBS
19842fi
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19844$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19845if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19846 HAVE_GETHOSTBYNAME="1"
19847 LIBS="-lsocket $LIBS"
19848
19849fi
19850
19851fi
19852
19853if test "$HAVE_GETHOSTBYNAME" != "1"
19854then
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19856$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19857if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19858 $as_echo_n "(cached) " >&6
19859else
19860 ac_check_lib_save_LIBS=$LIBS
19861LIBS="-lwatt $LIBS"
19862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h. */
19864
19865
19866#ifdef __cplusplus
19867extern "C"
19868#endif
19869char gethostbyname ();
19870int main (void)
19871{
19872return gethostbyname ();
19873 ;
19874 return 0;
19875}
19876_ACEOF
19877if ac_fn_c_try_link "$LINENO"; then :
19878 ac_cv_lib_watt_gethostbyname=yes
19879else
19880 ac_cv_lib_watt_gethostbyname=no
19881fi
19882rm -f core conftest.err conftest.$ac_objext \
19883 conftest$ac_exeext conftest.$ac_ext
19884LIBS=$ac_check_lib_save_LIBS
19885fi
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19887$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19888if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19889 HAVE_GETHOSTBYNAME="1"
19890 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19891 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19892 LIBS="-lwatt $LIBS"
19893
19894fi
19895
19896fi
19897
19898if test "$HAVE_GETHOSTBYNAME" != "1"
19899then
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19901$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19902 my_ac_save_LIBS=$LIBS
19903 LIBS="-lnsl -lsocket $LIBS"
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905/* end confdefs.h. */
19906
19907
19908
19909int main (void)
19910{
19911
19912 gethostbyname();
19913
19914 ;
19915 return 0;
19916}
19917
19918_ACEOF
19919if ac_fn_c_try_link "$LINENO"; then :
19920
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19922$as_echo "yes" >&6; }
19923 HAVE_GETHOSTBYNAME="1"
19924
19925else
19926
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928$as_echo "no" >&6; }
19929 LIBS=$my_ac_save_LIBS
19930
19931fi
19932rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934fi
19935
19936if test "$HAVE_GETHOSTBYNAME" != "1"
19937then
19938 if test "$curl_cv_header_windows_h" = "yes"; then
19939 if test "$curl_cv_header_winsock_h" = "yes"; then
19940 case $host in
19941 *-*-mingw32ce*)
19942 winsock_LIB="-lwinsock"
19943 ;;
19944 *)
19945 winsock_LIB="-lwsock32"
19946 ;;
19947 esac
19948 fi
19949 if test "$curl_cv_header_winsock2_h" = "yes"; then
19950 winsock_LIB="-lws2_32"
19951 fi
19952 if test ! -z "$winsock_LIB"; then
19953 my_ac_save_LIBS=$LIBS
19954 LIBS="$winsock_LIB $LIBS"
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19956$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958/* end confdefs.h. */
19959
19960
19961#ifdef HAVE_WINDOWS_H
19962#ifndef WIN32_LEAN_AND_MEAN
19963#define WIN32_LEAN_AND_MEAN
19964#endif
19965#include <windows.h>
19966#ifdef HAVE_WINSOCK2_H
19967#include <winsock2.h>
19968#else
19969#ifdef HAVE_WINSOCK_H
19970#include <winsock.h>
19971#endif
19972#endif
19973#endif
19974
19975int main (void)
19976{
19977
19978 gethostbyname("www.dummysite.com");
19979
19980 ;
19981 return 0;
19982}
19983
19984_ACEOF
19985if ac_fn_c_try_link "$LINENO"; then :
19986
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19988$as_echo "yes" >&6; }
19989 HAVE_GETHOSTBYNAME="1"
19990
19991else
19992
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19994$as_echo "no" >&6; }
19995 winsock_LIB=""
19996 LIBS=$my_ac_save_LIBS
19997
19998fi
19999rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001 fi
20002 fi
20003fi
20004
20005if test "$HAVE_GETHOSTBYNAME" != "1"
20006then
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20008$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010/* end confdefs.h. */
20011
20012
20013/* Older Minix versions may need <net/gen/netdb.h> here instead */
20014#include <netdb.h>
20015
20016int main (void)
20017{
20018
20019 gethostbyname("www.dummysite.com");
20020
20021 ;
20022 return 0;
20023}
20024
20025_ACEOF
20026if ac_fn_c_try_link "$LINENO"; then :
20027
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029$as_echo "yes" >&6; }
20030 HAVE_GETHOSTBYNAME="1"
20031
20032else
20033
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035$as_echo "no" >&6; }
20036
20037fi
20038rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20040fi
20041
20042if test "$HAVE_GETHOSTBYNAME" != "1"
20043then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20045$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047/* end confdefs.h. */
20048
20049
20050#include <stdio.h>
20051#include <netdb.h>
20052
20053int main (void)
20054{
20055
20056 gethostbyname("www.dummysite.com");
20057
20058 ;
20059 return 0;
20060}
20061
20062_ACEOF
20063if ac_fn_c_try_link "$LINENO"; then :
20064
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066$as_echo "yes" >&6; }
20067 HAVE_GETHOSTBYNAME="1"
20068
20069else
20070
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20072$as_echo "no" >&6; }
20073
20074fi
20075rm -f core conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20077fi
20078
20079if test "$HAVE_GETHOSTBYNAME" != "1"
20080then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20082$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20083if ${ac_cv_lib_network_gethostbyname+:} false; then :
20084 $as_echo_n "(cached) " >&6
20085else
20086 ac_check_lib_save_LIBS=$LIBS
20087LIBS="-lnetwork $LIBS"
20088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089/* end confdefs.h. */
20090
20091
20092#ifdef __cplusplus
20093extern "C"
20094#endif
20095char gethostbyname ();
20096int main (void)
20097{
20098return gethostbyname ();
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103if ac_fn_c_try_link "$LINENO"; then :
20104 ac_cv_lib_network_gethostbyname=yes
20105else
20106 ac_cv_lib_network_gethostbyname=no
20107fi
20108rm -f core conftest.err conftest.$ac_objext \
20109 conftest$ac_exeext conftest.$ac_ext
20110LIBS=$ac_check_lib_save_LIBS
20111fi
20112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20113$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20114if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20115 HAVE_GETHOSTBYNAME="1"
20116 LIBS="-lnetwork $LIBS"
20117
20118fi
20119
20120fi
20121
20122if test "$HAVE_GETHOSTBYNAME" != "1"
20123then
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20125$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20126if ${ac_cv_lib_net_gethostbyname+:} false; then :
20127 $as_echo_n "(cached) " >&6
20128else
20129 ac_check_lib_save_LIBS=$LIBS
20130LIBS="-lnet $LIBS"
20131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132/* end confdefs.h. */
20133
20134
20135#ifdef __cplusplus
20136extern "C"
20137#endif
20138char gethostbyname ();
20139int main (void)
20140{
20141return gethostbyname ();
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146if ac_fn_c_try_link "$LINENO"; then :
20147 ac_cv_lib_net_gethostbyname=yes
20148else
20149 ac_cv_lib_net_gethostbyname=no
20150fi
20151rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153LIBS=$ac_check_lib_save_LIBS
20154fi
20155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20156$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20157if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20158 HAVE_GETHOSTBYNAME="1"
20159 LIBS="-lnet $LIBS"
20160
20161fi
20162
20163fi
20164
20165
20166if test "$HAVE_GETHOSTBYNAME" != "1"; then
20167 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20168fi
20169
20170
20171curl_includes_winsock2="\
20172/* includes start */
20173#ifdef HAVE_WINDOWS_H
20174# ifndef WIN32_LEAN_AND_MEAN
20175# define WIN32_LEAN_AND_MEAN
20176# endif
20177# include <windows.h>
20178# ifdef HAVE_WINSOCK2_H
20179# include <winsock2.h>
20180# else
20181# ifdef HAVE_WINSOCK_H
20182# include <winsock.h>
20183# endif
20184# endif
20185#endif
20186/* includes end */"
20187
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20189$as_echo_n "checking for windows.h... " >&6; }
20190if ${curl_cv_header_windows_h+:} false; then :
20191 $as_echo_n "(cached) " >&6
20192else
20193
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195/* end confdefs.h. */
20196
20197
20198#undef inline
20199#ifndef WIN32_LEAN_AND_MEAN
20200#define WIN32_LEAN_AND_MEAN
20201#endif
20202#include <windows.h>
20203
20204int main (void)
20205{
20206
20207#if defined(__CYGWIN__) || defined(__CEGCC__)
20208 HAVE_WINDOWS_H shall not be defined.
20209#else
20210 int dummy=2*WINVER;
20211#endif
20212
20213 ;
20214 return 0;
20215}
20216
20217_ACEOF
20218if ac_fn_c_try_compile "$LINENO"; then :
20219
20220 curl_cv_header_windows_h="yes"
20221
20222else
20223
20224 curl_cv_header_windows_h="no"
20225
20226fi
20227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228
20229fi
20230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20231$as_echo "$curl_cv_header_windows_h" >&6; }
20232 case "$curl_cv_header_windows_h" in
20233 yes)
20234
20235cat >>confdefs.h <<_ACEOF
20236#define HAVE_WINDOWS_H 1
20237_ACEOF
20238
20239 ;;
20240 esac
20241
20242
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20244$as_echo_n "checking for winsock.h... " >&6; }
20245if ${curl_cv_header_winsock_h+:} false; then :
20246 $as_echo_n "(cached) " >&6
20247else
20248
20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250/* end confdefs.h. */
20251
20252
20253#undef inline
20254#ifndef WIN32_LEAN_AND_MEAN
20255#define WIN32_LEAN_AND_MEAN
20256#endif
20257#include <windows.h>
20258#include <winsock.h>
20259
20260int main (void)
20261{
20262
20263#if defined(__CYGWIN__) || defined(__CEGCC__)
20264 HAVE_WINSOCK_H shall not be defined.
20265#else
20266 int dummy=WSACleanup();
20267#endif
20268
20269 ;
20270 return 0;
20271}
20272
20273_ACEOF
20274if ac_fn_c_try_compile "$LINENO"; then :
20275
20276 curl_cv_header_winsock_h="yes"
20277
20278else
20279
20280 curl_cv_header_winsock_h="no"
20281
20282fi
20283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284
20285fi
20286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20287$as_echo "$curl_cv_header_winsock_h" >&6; }
20288 case "$curl_cv_header_winsock_h" in
20289 yes)
20290
20291cat >>confdefs.h <<_ACEOF
20292#define HAVE_WINSOCK_H 1
20293_ACEOF
20294
20295 ;;
20296 esac
20297
20298
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20300$as_echo_n "checking for winsock2.h... " >&6; }
20301if ${curl_cv_header_winsock2_h+:} false; then :
20302 $as_echo_n "(cached) " >&6
20303else
20304
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306/* end confdefs.h. */
20307
20308
20309#undef inline
20310#ifndef WIN32_LEAN_AND_MEAN
20311#define WIN32_LEAN_AND_MEAN
20312#endif
20313#include <windows.h>
20314#include <winsock2.h>
20315
20316int main (void)
20317{
20318
20319#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20320 HAVE_WINSOCK2_H shall not be defined.
20321#else
20322 int dummy=2*IPPROTO_ESP;
20323#endif
20324
20325 ;
20326 return 0;
20327}
20328
20329_ACEOF
20330if ac_fn_c_try_compile "$LINENO"; then :
20331
20332 curl_cv_header_winsock2_h="yes"
20333
20334else
20335
20336 curl_cv_header_winsock2_h="no"
20337
20338fi
20339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340
20341fi
20342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20343$as_echo "$curl_cv_header_winsock2_h" >&6; }
20344 case "$curl_cv_header_winsock2_h" in
20345 yes)
20346
20347cat >>confdefs.h <<_ACEOF
20348#define HAVE_WINSOCK2_H 1
20349_ACEOF
20350
20351 ;;
20352 esac
20353
20354
20355
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20357$as_echo_n "checking for connect in libraries... " >&6; }
20358 tst_connect_save_LIBS="$LIBS"
20359 tst_connect_need_LIBS="unknown"
20360 for tst_lib in '' '-lsocket' ; do
20361 if test "$tst_connect_need_LIBS" = "unknown"; then
20362 LIBS="$tst_lib $tst_connect_save_LIBS"
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364/* end confdefs.h. */
20365
20366
20367 $curl_includes_winsock2
20368 #ifndef HAVE_WINDOWS_H
20369 int connect(int, void*, int);
20370 #endif
20371
20372int main (void)
20373{
20374
20375 if(0 != connect(0, 0, 0))
20376 return 1;
20377
20378 ;
20379 return 0;
20380}
20381
20382_ACEOF
20383if ac_fn_c_try_link "$LINENO"; then :
20384
20385 tst_connect_need_LIBS="$tst_lib"
20386
20387fi
20388rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20390 fi
20391 done
20392 LIBS="$tst_connect_save_LIBS"
20393 #
20394 case X-"$tst_connect_need_LIBS" in
20395 X-unknown)
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20397$as_echo "cannot find connect" >&6; }
20398 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20399 ;;
20400 X-)
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402$as_echo "yes" >&6; }
20403 ;;
20404 *)
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20406$as_echo "$tst_connect_need_LIBS" >&6; }
20407 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20408 ;;
20409 esac
20410
20411
20412CURL_NETWORK_LIBS=$LIBS
20413
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20415$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20416if ${ac_cv_header_time+:} false; then :
20417 $as_echo_n "(cached) " >&6
20418else
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420/* end confdefs.h. */
20421#include <sys/types.h>
20422#include <sys/time.h>
20423#include <time.h>
20424
20425int main (void)
20426{
20427if ((struct tm *) 0)
20428return 0;
20429 ;
20430 return 0;
20431}
20432_ACEOF
20433if ac_fn_c_try_compile "$LINENO"; then :
20434 ac_cv_header_time=yes
20435else
20436 ac_cv_header_time=no
20437fi
20438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439fi
20440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20441$as_echo "$ac_cv_header_time" >&6; }
20442if test $ac_cv_header_time = yes; then
20443
20444$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20445
20446fi
20447
20448
20449 for ac_header in sys/types.h sys/time.h time.h
20450do :
20451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20452ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20454 cat >>confdefs.h <<_ACEOF
20455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20456_ACEOF
20457
20458fi
20459
20460done
20461
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20463$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20464 #
20465 if test "x$dontwant_rt" = "xno" ; then
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467/* end confdefs.h. */
20468
20469
20470#ifdef HAVE_SYS_TYPES_H
20471#include <sys/types.h>
20472#endif
20473#ifdef HAVE_SYS_TIME_H
20474#include <sys/time.h>
20475#ifdef TIME_WITH_SYS_TIME
20476#include <time.h>
20477#endif
20478#else
20479#ifdef HAVE_TIME_H
20480#include <time.h>
20481#endif
20482#endif
20483
20484int main (void)
20485{
20486
20487 struct timespec ts;
20488 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20489
20490 ;
20491 return 0;
20492}
20493
20494_ACEOF
20495if ac_fn_c_try_compile "$LINENO"; then :
20496
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498$as_echo "yes" >&6; }
20499 curl_func_clock_gettime="yes"
20500
20501else
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504$as_echo "no" >&6; }
20505 curl_func_clock_gettime="no"
20506
20507fi
20508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 fi
20510
20511
20512 #
20513 if test "$curl_func_clock_gettime" = "yes"; then
20514 #
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20516$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20517 #
20518 curl_cv_save_LIBS="$LIBS"
20519 curl_cv_gclk_LIBS="unknown"
20520 #
20521 for x_xlibs in '' '-lrt' '-lposix4' ; do
20522 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20523 if test -z "$x_xlibs"; then
20524 LIBS="$curl_cv_save_LIBS"
20525 else
20526 LIBS="$x_xlibs $curl_cv_save_LIBS"
20527 fi
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529/* end confdefs.h. */
20530
20531
20532#ifdef HAVE_SYS_TYPES_H
20533#include <sys/types.h>
20534#endif
20535#ifdef HAVE_SYS_TIME_H
20536#include <sys/time.h>
20537#ifdef TIME_WITH_SYS_TIME
20538#include <time.h>
20539#endif
20540#else
20541#ifdef HAVE_TIME_H
20542#include <time.h>
20543#endif
20544#endif
20545
20546int main (void)
20547{
20548
20549 struct timespec ts;
20550 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20551
20552 ;
20553 return 0;
20554}
20555
20556_ACEOF
20557if ac_fn_c_try_link "$LINENO"; then :
20558
20559 curl_cv_gclk_LIBS="$x_xlibs"
20560
20561fi
20562rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 fi
20565 done
20566 #
20567 LIBS="$curl_cv_save_LIBS"
20568 #
20569 case X-"$curl_cv_gclk_LIBS" in
20570 X-unknown)
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20572$as_echo "cannot find clock_gettime" >&6; }
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20574$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20575 curl_func_clock_gettime="no"
20576 ;;
20577 X-)
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20579$as_echo "no additional lib required" >&6; }
20580 curl_func_clock_gettime="yes"
20581 ;;
20582 *)
20583 if test -z "$curl_cv_save_LIBS"; then
20584 LIBS="$curl_cv_gclk_LIBS"
20585 else
20586 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20587 fi
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20589$as_echo "$curl_cv_gclk_LIBS" >&6; }
20590 curl_func_clock_gettime="yes"
20591 ;;
20592 esac
20593 #
20594 if test "x$cross_compiling" != "xyes" &&
20595 test "$curl_func_clock_gettime" = "yes"; then
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20597$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20598 if test "$cross_compiling" = yes; then :
20599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20601as_fn_error $? "cannot run test program while cross compiling
20602See \`config.log' for more details" "$LINENO" 5; }
20603else
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h. */
20606
20607
20608#ifdef HAVE_STDLIB_H
20609#include <stdlib.h>
20610#endif
20611#ifdef HAVE_SYS_TYPES_H
20612#include <sys/types.h>
20613#endif
20614#ifdef HAVE_SYS_TIME_H
20615#include <sys/time.h>
20616#ifdef TIME_WITH_SYS_TIME
20617#include <time.h>
20618#endif
20619#else
20620#ifdef HAVE_TIME_H
20621#include <time.h>
20622#endif
20623#endif
20624
20625int main (void)
20626{
20627
20628 struct timespec ts;
20629 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20630 exit(0);
20631 else
20632 exit(1);
20633
20634 ;
20635 return 0;
20636}
20637
20638_ACEOF
20639if ac_fn_c_try_run "$LINENO"; then :
20640
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20642$as_echo "yes" >&6; }
20643
20644else
20645
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20647$as_echo "no" >&6; }
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20649$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20650 curl_func_clock_gettime="no"
20651 LIBS="$curl_cv_save_LIBS"
20652
20653fi
20654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655 conftest.$ac_objext conftest.beam conftest.$ac_ext
20656fi
20657
20658 fi
20659 #
20660 case "$curl_func_clock_gettime" in
20661 yes)
20662
20663cat >>confdefs.h <<_ACEOF
20664#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20665_ACEOF
20666
20667 ;;
20668 esac
20669 #
20670 fi
20671 #
20672
20673
20674CURL_NETWORK_AND_TIME_LIBS=$LIBS
20675
20676
20677
20678clean_CPPFLAGS=$CPPFLAGS
20679clean_LDFLAGS=$LDFLAGS
20680clean_LIBS=$LIBS
20681ZLIB_LIBS=""
20682
20683# Check whether --with-zlib was given.
20684if test "${with_zlib+set}" = set; then :
20685 withval=$with_zlib; OPT_ZLIB="$withval"
20686fi
20687
20688
20689if test "$OPT_ZLIB" = "no" ; then
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20691$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20692else
20693 if test "$OPT_ZLIB" = "yes" ; then
20694 OPT_ZLIB=""
20695 fi
20696
20697 if test -z "$OPT_ZLIB" ; then
20698
20699 if test -n "$PKG_CONFIG"; then
20700 PKGCONFIG="$PKG_CONFIG"
20701 else
20702 if test -n "$ac_tool_prefix"; then
20703 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20704set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20706$as_echo_n "checking for $ac_word... " >&6; }
20707if ${ac_cv_path_PKGCONFIG+:} false; then :
20708 $as_echo_n "(cached) " >&6
20709else
20710 case $PKGCONFIG in
20711 [\\/]* | ?:[\\/]*)
20712 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20713 ;;
20714 *)
20715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716as_dummy="$PATH:/usr/bin:/usr/local/bin"
20717for as_dir in $as_dummy
20718do
20719 IFS=$as_save_IFS
20720 test -z "$as_dir" && as_dir=.
20721 for ac_exec_ext in '' $ac_executable_extensions; do
20722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20725 break 2
20726 fi
20727done
20728 done
20729IFS=$as_save_IFS
20730
20731 ;;
20732esac
20733fi
20734PKGCONFIG=$ac_cv_path_PKGCONFIG
20735if test -n "$PKGCONFIG"; then
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20737$as_echo "$PKGCONFIG" >&6; }
20738else
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740$as_echo "no" >&6; }
20741fi
20742
20743
20744fi
20745if test -z "$ac_cv_path_PKGCONFIG"; then
20746 ac_pt_PKGCONFIG=$PKGCONFIG
20747 # Extract the first word of "pkg-config", so it can be a program name with args.
20748set dummy pkg-config; ac_word=$2
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20750$as_echo_n "checking for $ac_word... " >&6; }
20751if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20752 $as_echo_n "(cached) " >&6
20753else
20754 case $ac_pt_PKGCONFIG in
20755 [\\/]* | ?:[\\/]*)
20756 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20757 ;;
20758 *)
20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760as_dummy="$PATH:/usr/bin:/usr/local/bin"
20761for as_dir in $as_dummy
20762do
20763 IFS=$as_save_IFS
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20767 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20769 break 2
20770 fi
20771done
20772 done
20773IFS=$as_save_IFS
20774
20775 ;;
20776esac
20777fi
20778ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20779if test -n "$ac_pt_PKGCONFIG"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20781$as_echo "$ac_pt_PKGCONFIG" >&6; }
20782else
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784$as_echo "no" >&6; }
20785fi
20786
20787 if test "x$ac_pt_PKGCONFIG" = x; then
20788 PKGCONFIG="no"
20789 else
20790 case $cross_compiling:$ac_tool_warned in
20791yes:)
20792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20794ac_tool_warned=yes ;;
20795esac
20796 PKGCONFIG=$ac_pt_PKGCONFIG
20797 fi
20798else
20799 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20800fi
20801
20802 fi
20803
20804 if test "x$PKGCONFIG" != "xno"; then
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20806$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20807 itexists=`
20808 if test -n ""; then
20809 PKG_CONFIG_LIBDIR=""
20810 export PKG_CONFIG_LIBDIR
20811 fi
20812 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20813
20814 if test -z "$itexists"; then
20815 PKGCONFIG="no"
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20817$as_echo "no" >&6; }
20818 else
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20820$as_echo "found" >&6; }
20821 fi
20822 fi
20823
20824
20825 if test "$PKGCONFIG" != "no" ; then
20826 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20827 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20828 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20829 OPT_ZLIB=""
20830 HAVE_LIBZ="1"
20831 fi
20832
20833 if test -z "$HAVE_LIBZ"; then
20834
20835
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20837$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20838if ${ac_cv_lib_z_inflateEnd+:} false; then :
20839 $as_echo_n "(cached) " >&6
20840else
20841 ac_check_lib_save_LIBS=$LIBS
20842LIBS="-lz $LIBS"
20843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844/* end confdefs.h. */
20845
20846
20847#ifdef __cplusplus
20848extern "C"
20849#endif
20850char inflateEnd ();
20851int main (void)
20852{
20853return inflateEnd ();
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858if ac_fn_c_try_link "$LINENO"; then :
20859 ac_cv_lib_z_inflateEnd=yes
20860else
20861 ac_cv_lib_z_inflateEnd=no
20862fi
20863rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865LIBS=$ac_check_lib_save_LIBS
20866fi
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20868$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20869if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20870 HAVE_LIBZ="1"
20871 LIBS="-lz $LIBS"
20872else
20873 OPT_ZLIB="/usr/local"
20874fi
20875
20876 fi
20877 fi
20878
20879 if test -n "$OPT_ZLIB"; then
20880 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20881 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20882 fi
20883
20884 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20885if test "x$ac_cv_header_zlib_h" = xyes; then :
20886
20887 HAVE_ZLIB_H="1"
20888 if test "$HAVE_LIBZ" != "1"; then
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20890$as_echo_n "checking for gzread in -lz... " >&6; }
20891if ${ac_cv_lib_z_gzread+:} false; then :
20892 $as_echo_n "(cached) " >&6
20893else
20894 ac_check_lib_save_LIBS=$LIBS
20895LIBS="-lz $LIBS"
20896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897/* end confdefs.h. */
20898
20899
20900#ifdef __cplusplus
20901extern "C"
20902#endif
20903char gzread ();
20904int main (void)
20905{
20906return gzread ();
20907 ;
20908 return 0;
20909}
20910_ACEOF
20911if ac_fn_c_try_link "$LINENO"; then :
20912 ac_cv_lib_z_gzread=yes
20913else
20914 ac_cv_lib_z_gzread=no
20915fi
20916rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918LIBS=$ac_check_lib_save_LIBS
20919fi
20920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20921$as_echo "$ac_cv_lib_z_gzread" >&6; }
20922if test "x$ac_cv_lib_z_gzread" = xyes; then :
20923
20924 HAVE_LIBZ="1"
20925 LIBS="-lz $LIBS"
20926
20927else
20928 CPPFLAGS=$clean_CPPFLAGS
20929 LDFLAGS=$clean_LDFLAGS
20930fi
20931
20932 fi
20933
20934else
20935
20936 CPPFLAGS=$clean_CPPFLAGS
20937 LDFLAGS=$clean_LDFLAGS
20938
20939fi
20940
20941
20942
20943 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20944 then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20946$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20947 HAVE_LIBZ=""
20948 CPPFLAGS=$clean_CPPFLAGS
20949 LDFLAGS=$clean_LDFLAGS
20950 LIBS=$clean_LIBS
20951 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20952 then
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20954$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20955 CPPFLAGS=$clean_CPPFLAGS
20956 LDFLAGS=$clean_LDFLAGS
20957 LIBS=$clean_LIBS
20958 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20959 then
20960
20961
20962$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20963
20964
20965$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20966
20967
20968 ZLIB_LIBS="-lz"
20969 LIBS="-lz $clean_LIBS"
20970
20971 AMFIXLIB="1"
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20973$as_echo "$as_me: found both libz and libz.h header" >&6;}
20974 curl_zlib_msg="enabled"
20975 fi
20976fi
20977
20978 if test x"$AMFIXLIB" = x1; then
20979 HAVE_LIBZ_TRUE=
20980 HAVE_LIBZ_FALSE='#'
20981else
20982 HAVE_LIBZ_TRUE='#'
20983 HAVE_LIBZ_FALSE=
20984fi
20985
20986
20987
20988
Alex Deymo486467e2017-12-19 19:04:07 +010020989
20990OPT_BROTLI=off
20991
20992# Check whether --with-brotli was given.
20993if test "${with_brotli+set}" = set; then :
20994 withval=$with_brotli; OPT_BROTLI=$withval
20995fi
20996
20997
20998if test X"$OPT_BROTLI" != Xno; then
20999 CLEANLDFLAGS="$LDFLAGS"
21000 CLEANCPPFLAGS="$CPPFLAGS"
21001 CLEANLIBS="$LIBS"
21002
21003 case "$OPT_BROTLI" in
21004 yes)
21005
21006 if test -n "$PKG_CONFIG"; then
21007 PKGCONFIG="$PKG_CONFIG"
21008 else
21009 if test -n "$ac_tool_prefix"; then
21010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21011set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21013$as_echo_n "checking for $ac_word... " >&6; }
21014if ${ac_cv_path_PKGCONFIG+:} false; then :
21015 $as_echo_n "(cached) " >&6
21016else
21017 case $PKGCONFIG in
21018 [\\/]* | ?:[\\/]*)
21019 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21020 ;;
21021 *)
21022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21023as_dummy="$PATH:/usr/bin:/usr/local/bin"
21024for as_dir in $as_dummy
21025do
21026 IFS=$as_save_IFS
21027 test -z "$as_dir" && as_dir=.
21028 for ac_exec_ext in '' $ac_executable_extensions; do
21029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21030 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21032 break 2
21033 fi
21034done
21035 done
21036IFS=$as_save_IFS
21037
21038 ;;
21039esac
21040fi
21041PKGCONFIG=$ac_cv_path_PKGCONFIG
21042if test -n "$PKGCONFIG"; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21044$as_echo "$PKGCONFIG" >&6; }
21045else
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047$as_echo "no" >&6; }
21048fi
21049
21050
21051fi
21052if test -z "$ac_cv_path_PKGCONFIG"; then
21053 ac_pt_PKGCONFIG=$PKGCONFIG
21054 # Extract the first word of "pkg-config", so it can be a program name with args.
21055set dummy pkg-config; ac_word=$2
21056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21057$as_echo_n "checking for $ac_word... " >&6; }
21058if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21059 $as_echo_n "(cached) " >&6
21060else
21061 case $ac_pt_PKGCONFIG in
21062 [\\/]* | ?:[\\/]*)
21063 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21064 ;;
21065 *)
21066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067as_dummy="$PATH:/usr/bin:/usr/local/bin"
21068for as_dir in $as_dummy
21069do
21070 IFS=$as_save_IFS
21071 test -z "$as_dir" && as_dir=.
21072 for ac_exec_ext in '' $ac_executable_extensions; do
21073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21074 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21076 break 2
21077 fi
21078done
21079 done
21080IFS=$as_save_IFS
21081
21082 ;;
21083esac
21084fi
21085ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21086if test -n "$ac_pt_PKGCONFIG"; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21088$as_echo "$ac_pt_PKGCONFIG" >&6; }
21089else
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091$as_echo "no" >&6; }
21092fi
21093
21094 if test "x$ac_pt_PKGCONFIG" = x; then
21095 PKGCONFIG="no"
21096 else
21097 case $cross_compiling:$ac_tool_warned in
21098yes:)
21099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21101ac_tool_warned=yes ;;
21102esac
21103 PKGCONFIG=$ac_pt_PKGCONFIG
21104 fi
21105else
21106 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21107fi
21108
21109 fi
21110
21111 if test "x$PKGCONFIG" != "xno"; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21113$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21114 itexists=`
21115 if test -n ""; then
21116 PKG_CONFIG_LIBDIR=""
21117 export PKG_CONFIG_LIBDIR
21118 fi
21119 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21120
21121 if test -z "$itexists"; then
21122 PKGCONFIG="no"
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124$as_echo "no" >&6; }
21125 else
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21127$as_echo "found" >&6; }
21128 fi
21129 fi
21130
21131
21132 if test "$PKGCONFIG" != "no" ; then
21133 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21134 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21135 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21136 version=`$PKGCONFIG --modversion libbrotlidec`
21137 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21138 fi
21139
21140 ;;
21141 off)
21142 ;;
21143 *)
21144 PREFIX_BROTLI=$OPT_BROTLI
21145 ;;
21146 esac
21147
21148 if test -n "$PREFIX_BROTLI"; then
21149 LIB_BROTLI="-lbrotlidec"
21150 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21151 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21152 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21153 fi
21154
21155 LDFLAGS="$LDFLAGS $LD_BROTLI"
21156 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21157 LIBS="$LIB_BROTLI $LIBS"
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21160$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21161if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21162 $as_echo_n "(cached) " >&6
21163else
21164 ac_check_lib_save_LIBS=$LIBS
21165LIBS="-lbrotlidec $LIBS"
21166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167/* end confdefs.h. */
21168
21169
21170#ifdef __cplusplus
21171extern "C"
21172#endif
21173char BrotliDecoderDecompress ();
21174int main (void)
21175{
21176return BrotliDecoderDecompress ();
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181if ac_fn_c_try_link "$LINENO"; then :
21182 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21183else
21184 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21185fi
21186rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
21188LIBS=$ac_check_lib_save_LIBS
21189fi
21190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21191$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21192if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21193 cat >>confdefs.h <<_ACEOF
21194#define HAVE_LIBBROTLIDEC 1
21195_ACEOF
21196
21197 LIBS="-lbrotlidec $LIBS"
21198
21199fi
21200
21201
21202 for ac_header in brotli/decode.h
21203do :
21204 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21205if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21206 cat >>confdefs.h <<_ACEOF
21207#define HAVE_BROTLI_DECODE_H 1
21208_ACEOF
21209 curl_brotli_msg="enabled (libbrotlidec)"
21210 HAVE_BROTLI=1
21211
21212$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21213
21214 HAVE_BROTLI=1
21215
21216
21217fi
21218
21219done
21220
21221
21222 if test X"$OPT_BROTLI" != Xoff &&
21223 test "$HAVE_BROTLI" != "1"; then
21224 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21225 fi
21226
21227 if test "$HAVE_BROTLI" = "1"; then
21228 if test -n "$DIR_BROTLI"; then
21229
21230 if test "x$cross_compiling" != "xyes"; then
21231 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_BROTLI"
21232 export LD_LIBRARY_PATH
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&5
21234$as_echo "$as_me: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&6;}
21235 fi
21236 fi
21237 else
21238 LDFLAGS=$CLEANLDFLAGS
21239 CPPFLAGS=$CLEANCPPFLAGS
21240 LIBS=$CLEANLIBS
21241 fi
21242fi
21243
21244
Elliott Hughes82be86d2017-09-20 17:00:17 -070021245LDAPLIBNAME=""
21246
21247# Check whether --with-ldap-lib was given.
21248if test "${with_ldap_lib+set}" = set; then :
21249 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21250fi
21251
21252
21253LBERLIBNAME=""
21254
21255# Check whether --with-lber-lib was given.
21256if test "${with_lber_lib+set}" = set; then :
21257 withval=$with_lber_lib; LBERLIBNAME="$withval"
21258fi
21259
21260
21261if test x$CURL_DISABLE_LDAP != x1 ; then
21262
21263
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21265$as_echo_n "checking for lber.h... " >&6; }
21266if ${curl_cv_header_lber_h+:} false; then :
21267 $as_echo_n "(cached) " >&6
21268else
21269
21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271/* end confdefs.h. */
21272
21273
21274#undef inline
21275#ifdef HAVE_WINDOWS_H
21276#ifndef WIN32_LEAN_AND_MEAN
21277#define WIN32_LEAN_AND_MEAN
21278#endif
21279#include <windows.h>
21280#else
21281#ifdef HAVE_SYS_TYPES_H
21282#include <sys/types.h>
21283#endif
21284#endif
21285#ifndef NULL
21286#define NULL (void *)0
21287#endif
21288#include <lber.h>
21289
21290int main (void)
21291{
21292
21293 BerValue *bvp = NULL;
21294 BerElement *bep = ber_init(bvp);
21295 ber_free(bep, 1);
21296
21297 ;
21298 return 0;
21299}
21300
21301_ACEOF
21302if ac_fn_c_try_compile "$LINENO"; then :
21303
21304 curl_cv_header_lber_h="yes"
21305
21306else
21307
21308 curl_cv_header_lber_h="no"
21309
21310fi
21311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312
21313fi
21314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21315$as_echo "$curl_cv_header_lber_h" >&6; }
21316 if test "$curl_cv_header_lber_h" = "yes"; then
21317
21318cat >>confdefs.h <<_ACEOF
21319#define HAVE_LBER_H 1
21320_ACEOF
21321
21322 #
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324/* end confdefs.h. */
21325
21326
21327#undef inline
21328#ifdef HAVE_WINDOWS_H
21329#ifndef WIN32_LEAN_AND_MEAN
21330#define WIN32_LEAN_AND_MEAN
21331#endif
21332#include <windows.h>
21333#else
21334#ifdef HAVE_SYS_TYPES_H
21335#include <sys/types.h>
21336#endif
21337#endif
21338#ifndef NULL
21339#define NULL (void *)0
21340#endif
21341#ifndef LDAP_DEPRECATED
21342#define LDAP_DEPRECATED 1
21343#endif
21344#include <ldap.h>
21345
21346int main (void)
21347{
21348
21349 BerValue *bvp = NULL;
21350 BerElement *bep = ber_init(bvp);
21351 ber_free(bep, 1);
21352
21353 ;
21354 return 0;
21355}
21356
21357_ACEOF
21358if ac_fn_c_try_compile "$LINENO"; then :
21359
21360 curl_cv_need_header_lber_h="no"
21361
21362else
21363
21364 curl_cv_need_header_lber_h="yes"
21365
21366fi
21367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 #
21369 case "$curl_cv_need_header_lber_h" in
21370 yes)
21371
21372cat >>confdefs.h <<_ACEOF
21373#define NEED_LBER_H 1
21374_ACEOF
21375
21376 ;;
21377 esac
21378 fi
21379
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21382$as_echo_n "checking for ldap.h... " >&6; }
21383if ${curl_cv_header_ldap_h+:} false; then :
21384 $as_echo_n "(cached) " >&6
21385else
21386
21387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388/* end confdefs.h. */
21389
21390
21391#undef inline
21392#ifdef HAVE_WINDOWS_H
21393#ifndef WIN32_LEAN_AND_MEAN
21394#define WIN32_LEAN_AND_MEAN
21395#endif
21396#include <windows.h>
21397#else
21398#ifdef HAVE_SYS_TYPES_H
21399#include <sys/types.h>
21400#endif
21401#endif
21402#ifndef LDAP_DEPRECATED
21403#define LDAP_DEPRECATED 1
21404#endif
21405#ifdef NEED_LBER_H
21406#include <lber.h>
21407#endif
21408#include <ldap.h>
21409
21410int main (void)
21411{
21412
21413 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21414 int res = ldap_unbind(ldp);
21415
21416 ;
21417 return 0;
21418}
21419
21420_ACEOF
21421if ac_fn_c_try_compile "$LINENO"; then :
21422
21423 curl_cv_header_ldap_h="yes"
21424
21425else
21426
21427 curl_cv_header_ldap_h="no"
21428
21429fi
21430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431
21432fi
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21434$as_echo "$curl_cv_header_ldap_h" >&6; }
21435 case "$curl_cv_header_ldap_h" in
21436 yes)
21437
21438cat >>confdefs.h <<_ACEOF
21439#define HAVE_LDAP_H 1
21440_ACEOF
21441
21442 ;;
21443 esac
21444
21445
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21447$as_echo_n "checking for ldapssl.h... " >&6; }
21448if ${curl_cv_header_ldapssl_h+:} false; then :
21449 $as_echo_n "(cached) " >&6
21450else
21451
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453/* end confdefs.h. */
21454
21455
21456#undef inline
21457#ifdef HAVE_WINDOWS_H
21458#ifndef WIN32_LEAN_AND_MEAN
21459#define WIN32_LEAN_AND_MEAN
21460#endif
21461#include <windows.h>
21462#else
21463#ifdef HAVE_SYS_TYPES_H
21464#include <sys/types.h>
21465#endif
21466#endif
21467#ifndef NULL
21468#define NULL (void *)0
21469#endif
21470#ifndef LDAP_DEPRECATED
21471#define LDAP_DEPRECATED 1
21472#endif
21473#ifdef NEED_LBER_H
21474#include <lber.h>
21475#endif
21476#ifdef HAVE_LDAP_H
21477#include <ldap.h>
21478#endif
21479#include <ldapssl.h>
21480
21481int main (void)
21482{
21483
21484 char *cert_label = NULL;
21485 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21486
21487 ;
21488 return 0;
21489}
21490
21491_ACEOF
21492if ac_fn_c_try_compile "$LINENO"; then :
21493
21494 curl_cv_header_ldapssl_h="yes"
21495
21496else
21497
21498 curl_cv_header_ldapssl_h="no"
21499
21500fi
21501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502
21503fi
21504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21505$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21506 case "$curl_cv_header_ldapssl_h" in
21507 yes)
21508
21509cat >>confdefs.h <<_ACEOF
21510#define HAVE_LDAPSSL_H 1
21511_ACEOF
21512
21513 ;;
21514 esac
21515
21516
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21518$as_echo_n "checking for ldap_ssl.h... " >&6; }
21519if ${curl_cv_header_ldap_ssl_h+:} false; then :
21520 $as_echo_n "(cached) " >&6
21521else
21522
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524/* end confdefs.h. */
21525
21526
21527#undef inline
21528#ifdef HAVE_WINDOWS_H
21529#ifndef WIN32_LEAN_AND_MEAN
21530#define WIN32_LEAN_AND_MEAN
21531#endif
21532#include <windows.h>
21533#else
21534#ifdef HAVE_SYS_TYPES_H
21535#include <sys/types.h>
21536#endif
21537#endif
21538#ifndef LDAP_DEPRECATED
21539#define LDAP_DEPRECATED 1
21540#endif
21541#ifdef NEED_LBER_H
21542#include <lber.h>
21543#endif
21544#ifdef HAVE_LDAP_H
21545#include <ldap.h>
21546#endif
21547#include <ldap_ssl.h>
21548
21549int main (void)
21550{
21551
21552 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21553
21554 ;
21555 return 0;
21556}
21557
21558_ACEOF
21559if ac_fn_c_try_compile "$LINENO"; then :
21560
21561 curl_cv_header_ldap_ssl_h="yes"
21562
21563else
21564
21565 curl_cv_header_ldap_ssl_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_ldap_ssl_h" >&5
21572$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21573 case "$curl_cv_header_ldap_ssl_h" in
21574 yes)
21575
21576cat >>confdefs.h <<_ACEOF
21577#define HAVE_LDAP_SSL_H 1
21578_ACEOF
21579
21580 ;;
21581 esac
21582
21583
21584 if test -z "$LDAPLIBNAME" ; then
21585 if test "$curl_cv_native_windows" = "yes"; then
21586 LDAPLIBNAME="wldap32"
21587 LBERLIBNAME="no"
21588 fi
21589 fi
21590
21591 if test "$LDAPLIBNAME" ; then
21592 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21594$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21595if eval \${$as_ac_Lib+:} false; then :
21596 $as_echo_n "(cached) " >&6
21597else
21598 ac_check_lib_save_LIBS=$LIBS
21599LIBS="-l"$LDAPLIBNAME" $LIBS"
21600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601/* end confdefs.h. */
21602
21603
21604#ifdef __cplusplus
21605extern "C"
21606#endif
21607char ldap_init ();
21608int main (void)
21609{
21610return ldap_init ();
21611 ;
21612 return 0;
21613}
21614_ACEOF
21615if ac_fn_c_try_link "$LINENO"; then :
21616 eval "$as_ac_Lib=yes"
21617else
21618 eval "$as_ac_Lib=no"
21619fi
21620rm -f core conftest.err conftest.$ac_objext \
21621 conftest$ac_exeext conftest.$ac_ext
21622LIBS=$ac_check_lib_save_LIBS
21623fi
21624eval ac_res=\$$as_ac_Lib
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21626$as_echo "$ac_res" >&6; }
21627if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21628 cat >>confdefs.h <<_ACEOF
21629#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21630_ACEOF
21631
21632 LIBS="-l"$LDAPLIBNAME" $LIBS"
21633
21634else
21635
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21637$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21638
21639$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21640
21641 CURL_DISABLE_LDAP=1
21642
21643
21644$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21645
21646 CURL_DISABLE_LDAPS=1
21647
21648fi
21649
21650 else
21651
21652 #
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21654$as_echo_n "checking for LDAP libraries... " >&6; }
21655 #
21656 u_libs=""
21657 #
21658
21659 #
21660 curl_cv_save_LIBS="$LIBS"
21661 curl_cv_ldap_LIBS="unknown"
21662 #
21663 for x_nlibs in '' "$u_libs" \
21664 '-lldap' \
21665 '-lldap -llber' \
21666 '-llber -lldap' \
21667 '-lldapssl -lldapx -lldapsdk' \
21668 '-lldapsdk -lldapx -lldapssl' ; do
21669 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21670 if test -z "$x_nlibs"; then
21671 LIBS="$curl_cv_save_LIBS"
21672 else
21673 LIBS="$x_nlibs $curl_cv_save_LIBS"
21674 fi
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676/* end confdefs.h. */
21677
21678
21679#undef inline
21680#ifdef HAVE_WINDOWS_H
21681#ifndef WIN32_LEAN_AND_MEAN
21682#define WIN32_LEAN_AND_MEAN
21683#endif
21684#include <windows.h>
21685#else
21686#ifdef HAVE_SYS_TYPES_H
21687#include <sys/types.h>
21688#endif
21689#endif
21690#ifndef NULL
21691#define NULL (void *)0
21692#endif
21693#ifndef LDAP_DEPRECATED
21694#define LDAP_DEPRECATED 1
21695#endif
21696#ifdef NEED_LBER_H
21697#include <lber.h>
21698#endif
21699#ifdef HAVE_LDAP_H
21700#include <ldap.h>
21701#endif
21702
21703int main (void)
21704{
21705
21706 BerValue *bvp = NULL;
21707 BerElement *bep = ber_init(bvp);
21708 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21709 int res = ldap_unbind(ldp);
21710 ber_free(bep, 1);
21711
21712 ;
21713 return 0;
21714}
21715
21716_ACEOF
21717if ac_fn_c_try_link "$LINENO"; then :
21718
21719 curl_cv_ldap_LIBS="$x_nlibs"
21720
21721fi
21722rm -f core conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
21724 fi
21725 done
21726 #
21727 LIBS="$curl_cv_save_LIBS"
21728 #
21729 case X-"$curl_cv_ldap_LIBS" in
21730 X-unknown)
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21732$as_echo "cannot find LDAP libraries" >&6; }
21733 ;;
21734 X-)
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21736$as_echo "no additional lib required" >&6; }
21737 ;;
21738 *)
21739 if test -z "$curl_cv_save_LIBS"; then
21740 LIBS="$curl_cv_ldap_LIBS"
21741 else
21742 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21743 fi
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21745$as_echo "$curl_cv_ldap_LIBS" >&6; }
21746 ;;
21747 esac
21748 #
21749
21750 case X-"$curl_cv_ldap_LIBS" in
21751 X-unknown)
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21753$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21754
21755$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21756
21757 CURL_DISABLE_LDAP=1
21758
21759
21760$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21761
21762 CURL_DISABLE_LDAPS=1
21763
21764 ;;
21765 esac
21766 fi
21767fi
21768
21769if test x$CURL_DISABLE_LDAP != x1 ; then
21770
21771 if test "$LBERLIBNAME" ; then
21772 if test "$LBERLIBNAME" != "no" ; then
21773 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21775$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21776if eval \${$as_ac_Lib+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778else
21779 ac_check_lib_save_LIBS=$LIBS
21780LIBS="-l"$LBERLIBNAME" $LIBS"
21781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782/* end confdefs.h. */
21783
21784
21785#ifdef __cplusplus
21786extern "C"
21787#endif
21788char ber_free ();
21789int main (void)
21790{
21791return ber_free ();
21792 ;
21793 return 0;
21794}
21795_ACEOF
21796if ac_fn_c_try_link "$LINENO"; then :
21797 eval "$as_ac_Lib=yes"
21798else
21799 eval "$as_ac_Lib=no"
21800fi
21801rm -f core conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
21803LIBS=$ac_check_lib_save_LIBS
21804fi
21805eval ac_res=\$$as_ac_Lib
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21807$as_echo "$ac_res" >&6; }
21808if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21809 cat >>confdefs.h <<_ACEOF
21810#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21811_ACEOF
21812
21813 LIBS="-l"$LBERLIBNAME" $LIBS"
21814
21815else
21816
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21818$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21819
21820$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21821
21822 CURL_DISABLE_LDAP=1
21823
21824
21825$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21826
21827 CURL_DISABLE_LDAPS=1
21828
21829fi
21830
21831 fi
21832 fi
21833fi
21834
21835if test x$CURL_DISABLE_LDAP != x1 ; then
21836 for ac_func in ldap_url_parse ldap_init_fd
21837do :
21838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21839ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21840if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21841 cat >>confdefs.h <<_ACEOF
21842#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21843_ACEOF
21844
21845fi
21846done
21847
21848
21849 if test "$LDAPLIBNAME" = "wldap32"; then
21850 curl_ldap_msg="enabled (winldap)"
21851
21852$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21853
21854 else
21855 curl_ldap_msg="enabled (OpenLDAP)"
21856 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21857
21858$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21859
21860 USE_OPENLDAP=1
21861
21862 fi
21863 fi
21864fi
21865
21866if test x$CURL_DISABLE_LDAPS != x1 ; then
21867 curl_ldaps_msg="enabled"
21868fi
21869
21870
21871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21872$as_echo_n "checking whether to enable IPv6... " >&6; }
21873# Check whether --enable-ipv6 was given.
21874if test "${enable_ipv6+set}" = set; then :
21875 enableval=$enable_ipv6; case "$enableval" in
21876 no)
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21878$as_echo "no" >&6; }
21879 ipv6=no
21880 ;;
21881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21882$as_echo "yes" >&6; }
21883 ipv6=yes
21884 ;;
21885 esac
21886else
21887 if test "$cross_compiling" = yes; then :
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21889$as_echo "yes" >&6; }
21890 ipv6=yes
21891
21892else
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894/* end confdefs.h. */
21895 /* is AF_INET6 available? */
21896#include <sys/types.h>
21897#ifdef HAVE_WINSOCK2_H
21898#include <winsock2.h>
21899#else
21900#include <sys/socket.h>
21901#endif
21902#include <stdlib.h> /* for exit() */
21903main()
21904{
21905 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21906 exit(1);
21907 else
21908 exit(0);
21909}
21910
21911_ACEOF
21912if ac_fn_c_try_run "$LINENO"; then :
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21914$as_echo "yes" >&6; }
21915 ipv6=yes
21916else
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21918$as_echo "no" >&6; }
21919 ipv6=no
21920fi
21921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21922 conftest.$ac_objext conftest.beam conftest.$ac_ext
21923fi
21924
21925fi
21926
21927
21928if test "$ipv6" = "yes"; then
21929 curl_ipv6_msg="enabled"
21930fi
21931
21932# Check if struct sockaddr_in6 have sin6_scope_id member
21933if test "$ipv6" = yes; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21935$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937/* end confdefs.h. */
21938
21939#include <sys/types.h>
21940#ifdef HAVE_WINSOCK2_H
21941#include <winsock2.h>
21942#include <ws2tcpip.h>
21943#else
21944#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021945#if defined (__TANDEM)
21946# include <netinet/in6.h>
21947#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021948#endif
21949int main (void)
21950{
21951struct sockaddr_in6 s; s.sin6_scope_id = 0;
21952 ;
21953 return 0;
21954}
21955_ACEOF
21956if ac_fn_c_try_compile "$LINENO"; then :
21957 have_sin6_scope_id=yes
21958fi
21959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 if test "$have_sin6_scope_id" = yes; then
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962$as_echo "yes" >&6; }
21963
21964$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21965
21966 else
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21968$as_echo "no" >&6; }
21969 fi
21970fi
21971
21972
21973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21974$as_echo_n "checking if argv can be written to... " >&6; }
21975if test "$cross_compiling" = yes; then :
21976
21977 curl_cv_writable_argv=cross
21978
21979else
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981/* end confdefs.h. */
21982
21983
21984int main(int argc, char ** argv) {
21985 argv[0][0] = ' ';
21986 return (argv[0][0] == ' ')?0:1;
21987}
21988
21989
21990_ACEOF
21991if ac_fn_c_try_run "$LINENO"; then :
21992
21993 curl_cv_writable_argv=yes
21994
21995else
21996
21997 curl_cv_writable_argv=no
21998
21999fi
22000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22001 conftest.$ac_objext conftest.beam conftest.$ac_ext
22002fi
22003
22004case $curl_cv_writable_argv in
22005yes)
22006
22007$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010$as_echo "yes" >&6; }
22011 ;;
22012no)
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014$as_echo "no" >&6; }
22015 ;;
22016*)
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018$as_echo "no" >&6; }
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22020$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22021 ;;
22022esac
22023
22024
22025
22026GSSAPI_ROOT="/usr"
22027
22028# Check whether --with-gssapi-includes was given.
22029if test "${with_gssapi_includes+set}" = set; then :
22030 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22031 want_gss="yes"
22032
22033fi
22034
22035
22036
22037# Check whether --with-gssapi-libs was given.
22038if test "${with_gssapi_libs+set}" = set; then :
22039 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22040 want_gss="yes"
22041
22042fi
22043
22044
22045
22046# Check whether --with-gssapi was given.
22047if test "${with_gssapi+set}" = set; then :
22048 withval=$with_gssapi;
22049 GSSAPI_ROOT="$withval"
22050 if test x"$GSSAPI_ROOT" != xno; then
22051 want_gss="yes"
22052 if test x"$GSSAPI_ROOT" = xyes; then
22053 GSSAPI_ROOT="/usr"
22054 fi
22055 fi
22056
22057fi
22058
22059
22060: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22061
22062save_CPPFLAGS="$CPPFLAGS"
22063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22064$as_echo_n "checking if GSS-API support is requested... " >&6; }
22065if test x"$want_gss" = xyes; then
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22067$as_echo "yes" >&6; }
22068
22069 if test -z "$GSSAPI_INCS"; then
22070 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22071 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22072 elif test -f "$KRB5CONFIG"; then
22073 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22074 elif test "$GSSAPI_ROOT" != "yes"; then
22075 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22076 fi
22077 fi
22078
22079 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22080
22081 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22082if test "x$ac_cv_header_gss_h" = xyes; then :
22083
22084
22085$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22086
22087 gnu_gss=yes
22088
22089else
22090
22091 for ac_header in gssapi/gssapi.h
22092do :
22093 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22094if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22095 cat >>confdefs.h <<_ACEOF
22096#define HAVE_GSSAPI_GSSAPI_H 1
22097_ACEOF
22098
22099else
22100 not_mit=1
22101fi
22102
22103done
22104
22105 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22106do :
22107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22108ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22109$ac_includes_default
22110#ifdef HAVE_GSSAPI_GSSAPI_H
22111#include <gssapi/gssapi.h>
22112#endif
22113
22114"
22115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22116 cat >>confdefs.h <<_ACEOF
22117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22118_ACEOF
22119
22120else
22121 not_mit=1
22122fi
22123
22124done
22125
22126 if test "x$not_mit" = "x1"; then
22127 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22128if test "x$ac_cv_header_gssapi_h" = xyes; then :
22129
22130
22131$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22132
22133
22134else
22135
22136 want_gss=no
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22138$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22139
22140
22141fi
22142
22143
22144 else
22145
22146$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22147
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22149$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151/* end confdefs.h. */
22152
22153
22154#include <gssapi/gssapi.h>
22155#include <gssapi/gssapi_generic.h>
22156#include <gssapi/gssapi_krb5.h>
22157
22158int main (void)
22159{
22160
22161 gss_import_name(
22162 (OM_uint32 *)0,
22163 (gss_buffer_t)0,
22164 GSS_C_NT_HOSTBASED_SERVICE,
22165 (gss_name_t *)0);
22166
22167 ;
22168 return 0;
22169}
22170
22171_ACEOF
22172if ac_fn_c_try_compile "$LINENO"; then :
22173
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175$as_echo "yes" >&6; }
22176
22177else
22178
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180$as_echo "no" >&6; }
22181
22182$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22183
22184
22185fi
22186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 fi
22188
22189
22190fi
22191
22192
22193else
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22195$as_echo "no" >&6; }
22196fi
22197if test x"$want_gss" = xyes; then
22198
22199$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22200
22201 HAVE_GSSAPI=1
22202 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22203
22204 if test -n "$gnu_gss"; then
22205 curl_gss_msg="enabled (GNU GSS)"
22206 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22207 LIBS="-lgss $LIBS"
22208 elif test -z "$GSSAPI_LIB_DIR"; then
22209 case $host in
22210 *-*-darwin*)
22211 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22212 ;;
22213 *)
22214 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22215 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22216 LIBS="$gss_libs $LIBS"
22217 elif test -f "$KRB5CONFIG"; then
22218 gss_libs=`$KRB5CONFIG --libs gssapi`
22219 LIBS="$gss_libs $LIBS"
22220 else
22221 case $host in
22222 *-hp-hpux*)
22223 gss_libname="gss"
22224 ;;
22225 *)
22226 gss_libname="gssapi"
22227 ;;
22228 esac
22229
22230 if test "$GSSAPI_ROOT" != "yes"; then
22231 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22232 LIBS="-l$gss_libname $LIBS"
22233 else
22234 LIBS="-l$gss_libname $LIBS"
22235 fi
22236 fi
22237 ;;
22238 esac
22239 else
22240 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22241 case $host in
22242 *-hp-hpux*)
22243 LIBS="-lgss $LIBS"
22244 ;;
22245 *)
22246 LIBS="-lgssapi $LIBS"
22247 ;;
22248 esac
22249 fi
22250else
22251 CPPFLAGS="$save_CPPFLAGS"
22252fi
22253
Alex Deymo486467e2017-12-19 19:04:07 +010022254build_libstubgss=no
22255if test x"$want_gss" = "xyes"; then
22256 build_libstubgss=yes
22257fi
22258
22259 if test "x$build_libstubgss" = "xyes"; then
22260 BUILD_STUB_GSS_TRUE=
22261 BUILD_STUB_GSS_FALSE='#'
22262else
22263 BUILD_STUB_GSS_TRUE='#'
22264 BUILD_STUB_GSS_FALSE=
22265fi
22266
22267
22268
22269DEFAULT_SSL_BACKEND=no
22270VALID_DEFAULT_SSL_BACKEND=
22271
22272# Check whether --with-default-ssl-backend was given.
22273if test "${with_default_ssl_backend+set}" = set; then :
22274 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22275fi
22276
22277case "$DEFAULT_SSL_BACKEND" in
22278 no)
22279 ;;
22280 default|yes)
22281 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22282 ;;
22283 *)
22284
22285 VALID_DEFAULT_SSL_BACKEND=no
22286 ;;
22287esac
22288
22289
Elliott Hughes82be86d2017-09-20 17:00:17 -070022290
22291OPT_WINSSL=no
22292
22293# Check whether --with-winssl was given.
22294if test "${with_winssl+set}" = set; then :
22295 withval=$with_winssl; OPT_WINSSL=$withval
22296fi
22297
22298
22299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22300$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022301if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22302 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022303 if test "x$OPT_WINSSL" != "xno" &&
22304 test "x$curl_cv_native_windows" = "xyes"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22306$as_echo "yes" >&6; }
22307
22308$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22309
22310 USE_SCHANNEL=1
22311
Alex Deymo486467e2017-12-19 19:04:07 +010022312 ssl_msg="Windows-native"
22313 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022314 WINSSL_ENABLED=1
22315 # --with-winssl implies --enable-sspi
22316
22317$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22318
22319 USE_WINDOWS_SSPI=1
22320
22321 curl_sspi_msg="enabled"
22322 LIBS="-lcrypt32 $LIBS"
22323 else
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22325$as_echo "no" >&6; }
22326 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022327 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022328else
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22330$as_echo "no" >&6; }
22331fi
22332
22333OPT_DARWINSSL=no
22334
22335# Check whether --with-darwinssl was given.
22336if test "${with_darwinssl+set}" = set; then :
22337 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22338fi
22339
22340
22341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22342$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022343if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022344 if test "x$OPT_DARWINSSL" != "xno" &&
22345 test -d "/System/Library/Frameworks/Security.framework"; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347$as_echo "yes" >&6; }
22348
22349$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22350
22351 USE_DARWINSSL=1
22352
Alex Deymo486467e2017-12-19 19:04:07 +010022353 ssl_msg="Apple OS-native"
22354 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022355 DARWINSSL_ENABLED=1
22356 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22357 else
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22359$as_echo "no" >&6; }
22360 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022361 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022362else
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22364$as_echo "no" >&6; }
22365fi
22366
22367
22368OPT_SSL=off
22369ca="no"
22370
22371# Check whether --with-ssl was given.
22372if test "${with_ssl+set}" = set; then :
22373 withval=$with_ssl; OPT_SSL=$withval
22374fi
22375
22376
Alex Deymo486467e2017-12-19 19:04:07 +010022377if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22378 test X"$OPT_SSL" != Xno; then
22379 ssl_msg=
22380
Elliott Hughes82be86d2017-09-20 17:00:17 -070022381 CLEANLDFLAGS="$LDFLAGS"
22382 CLEANCPPFLAGS="$CPPFLAGS"
22383 CLEANLIBS="$LIBS"
22384
22385 case $host in
22386 *-*-msys* | *-*-mingw*)
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22388$as_echo_n "checking for gdi32... " >&6; }
22389 my_ac_save_LIBS=$LIBS
22390 LIBS="-lgdi32 $LIBS"
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392/* end confdefs.h. */
22393#include <windef.h>
22394 #include <wingdi.h>
22395int main (void)
22396{
22397GdiFlush();
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402if ac_fn_c_try_link "$LINENO"; then :
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22404$as_echo "yes" >&6; }
22405else
22406 LIBS=$my_ac_save_LIBS
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408$as_echo "no" >&6; }
22409
22410fi
22411rm -f core conftest.err conftest.$ac_objext \
22412 conftest$ac_exeext conftest.$ac_ext
22413 ;;
22414 esac
22415
22416 case "$OPT_SSL" in
22417 yes)
22418 if test x$cross_compiling != xyes; then
22419 PKGTEST="yes"
22420 fi
22421 PREFIX_OPENSSL=/usr/local/ssl
22422 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22423 ;;
22424 off)
22425 if test x$cross_compiling != xyes; then
22426 PKGTEST="yes"
22427 fi
22428 PREFIX_OPENSSL=
22429 ;;
22430 *)
22431 PKGTEST="no"
22432 PREFIX_OPENSSL=$OPT_SSL
22433
22434 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22436$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22437 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22438 PKGTEST="yes"
22439 fi
22440
22441 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22442 if test "$PREFIX_OPENSSL" != "/usr" ; then
22443 SSL_LDFLAGS="-L$LIB_OPENSSL"
22444 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22445 fi
22446 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22447 ;;
22448 esac
22449
22450 if test "$PKGTEST" = "yes"; then
22451
22452
22453 if test -n "$PKG_CONFIG"; then
22454 PKGCONFIG="$PKG_CONFIG"
22455 else
22456 if test -n "$ac_tool_prefix"; then
22457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22458set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22460$as_echo_n "checking for $ac_word... " >&6; }
22461if ${ac_cv_path_PKGCONFIG+:} false; then :
22462 $as_echo_n "(cached) " >&6
22463else
22464 case $PKGCONFIG in
22465 [\\/]* | ?:[\\/]*)
22466 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22467 ;;
22468 *)
22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470as_dummy="$PATH:/usr/bin:/usr/local/bin"
22471for as_dir in $as_dummy
22472do
22473 IFS=$as_save_IFS
22474 test -z "$as_dir" && as_dir=.
22475 for ac_exec_ext in '' $ac_executable_extensions; do
22476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22477 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22479 break 2
22480 fi
22481done
22482 done
22483IFS=$as_save_IFS
22484
22485 ;;
22486esac
22487fi
22488PKGCONFIG=$ac_cv_path_PKGCONFIG
22489if test -n "$PKGCONFIG"; then
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22491$as_echo "$PKGCONFIG" >&6; }
22492else
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494$as_echo "no" >&6; }
22495fi
22496
22497
22498fi
22499if test -z "$ac_cv_path_PKGCONFIG"; then
22500 ac_pt_PKGCONFIG=$PKGCONFIG
22501 # Extract the first word of "pkg-config", so it can be a program name with args.
22502set dummy pkg-config; ac_word=$2
22503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22504$as_echo_n "checking for $ac_word... " >&6; }
22505if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22506 $as_echo_n "(cached) " >&6
22507else
22508 case $ac_pt_PKGCONFIG in
22509 [\\/]* | ?:[\\/]*)
22510 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22511 ;;
22512 *)
22513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514as_dummy="$PATH:/usr/bin:/usr/local/bin"
22515for as_dir in $as_dummy
22516do
22517 IFS=$as_save_IFS
22518 test -z "$as_dir" && as_dir=.
22519 for ac_exec_ext in '' $ac_executable_extensions; do
22520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22521 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22523 break 2
22524 fi
22525done
22526 done
22527IFS=$as_save_IFS
22528
22529 ;;
22530esac
22531fi
22532ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22533if test -n "$ac_pt_PKGCONFIG"; then
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22535$as_echo "$ac_pt_PKGCONFIG" >&6; }
22536else
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22538$as_echo "no" >&6; }
22539fi
22540
22541 if test "x$ac_pt_PKGCONFIG" = x; then
22542 PKGCONFIG="no"
22543 else
22544 case $cross_compiling:$ac_tool_warned in
22545yes:)
22546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22548ac_tool_warned=yes ;;
22549esac
22550 PKGCONFIG=$ac_pt_PKGCONFIG
22551 fi
22552else
22553 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22554fi
22555
22556 fi
22557
22558 if test "x$PKGCONFIG" != "xno"; then
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22560$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22561 itexists=`
22562 if test -n "$OPENSSL_PCDIR"; then
22563 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22564 export PKG_CONFIG_LIBDIR
22565 fi
22566 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22567
22568 if test -z "$itexists"; then
22569 PKGCONFIG="no"
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571$as_echo "no" >&6; }
22572 else
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22574$as_echo "found" >&6; }
22575 fi
22576 fi
22577
22578
22579 if test "$PKGCONFIG" != "no" ; then
22580 SSL_LIBS=`
22581 if test -n "$OPENSSL_PCDIR"; then
22582 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22583 export PKG_CONFIG_LIBDIR
22584 fi
22585 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22586
22587 SSL_LDFLAGS=`
22588 if test -n "$OPENSSL_PCDIR"; then
22589 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22590 export PKG_CONFIG_LIBDIR
22591 fi
22592 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22593
22594 SSL_CPPFLAGS=`
22595 if test -n "$OPENSSL_PCDIR"; then
22596 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22597 export PKG_CONFIG_LIBDIR
22598 fi
22599 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22600
22601
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22603$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22605$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22607$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22608
22609 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22610
22611 LIBS="$SSL_LIBS $LIBS"
22612 fi
22613 fi
22614
22615 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22616 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22617
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22619$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22620if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22621 $as_echo_n "(cached) " >&6
22622else
22623 ac_check_lib_save_LIBS=$LIBS
22624LIBS="-lcrypto $LIBS"
22625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626/* end confdefs.h. */
22627
22628
22629#ifdef __cplusplus
22630extern "C"
22631#endif
22632char HMAC_Update ();
22633int main (void)
22634{
22635return HMAC_Update ();
22636 ;
22637 return 0;
22638}
22639_ACEOF
22640if ac_fn_c_try_link "$LINENO"; then :
22641 ac_cv_lib_crypto_HMAC_Update=yes
22642else
22643 ac_cv_lib_crypto_HMAC_Update=no
22644fi
22645rm -f core conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
22647LIBS=$ac_check_lib_save_LIBS
22648fi
22649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22650$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22651if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22652
22653 HAVECRYPTO="yes"
22654 LIBS="-lcrypto $LIBS"
22655
22656else
22657
22658 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22659 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22661$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22662if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22663 $as_echo_n "(cached) " >&6
22664else
22665 ac_check_lib_save_LIBS=$LIBS
22666LIBS="-lcrypto $LIBS"
22667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668/* end confdefs.h. */
22669
22670
22671#ifdef __cplusplus
22672extern "C"
22673#endif
22674char HMAC_Init_ex ();
22675int main (void)
22676{
22677return HMAC_Init_ex ();
22678 ;
22679 return 0;
22680}
22681_ACEOF
22682if ac_fn_c_try_link "$LINENO"; then :
22683 ac_cv_lib_crypto_HMAC_Init_ex=yes
22684else
22685 ac_cv_lib_crypto_HMAC_Init_ex=no
22686fi
22687rm -f core conftest.err conftest.$ac_objext \
22688 conftest$ac_exeext conftest.$ac_ext
22689LIBS=$ac_check_lib_save_LIBS
22690fi
22691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22692$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22693if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22694
22695 HAVECRYPTO="yes"
22696 LIBS="-lcrypto $LIBS"
22697else
22698
22699
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22701$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022702 LIBS="$LIBS -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704/* end confdefs.h. */
22705
22706 #include <openssl/err.h>
22707
22708int main (void)
22709{
22710
22711 ERR_clear_error();
22712
22713 ;
22714 return 0;
22715}
22716_ACEOF
22717if ac_fn_c_try_link "$LINENO"; then :
22718
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720$as_echo "yes" >&6; }
22721 HAVECRYPTO="yes"
22722
22723else
22724
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22726$as_echo "no" >&6; }
22727
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22729$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022730 LIBS="$LIBS -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732/* end confdefs.h. */
22733
22734 #include <openssl/err.h>
22735
22736int main (void)
22737{
22738
22739 ERR_clear_error();
22740
22741 ;
22742 return 0;
22743}
22744_ACEOF
22745if ac_fn_c_try_link "$LINENO"; then :
22746
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22748$as_echo "yes" >&6; }
22749 HAVECRYPTO="yes"
22750
22751else
22752
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22754$as_echo "no" >&6; }
22755 LDFLAGS="$CLEANLDFLAGS"
22756 CPPFLAGS="$CLEANCPPFLAGS"
22757 LIBS="$CLEANLIBS"
22758
22759
22760fi
22761rm -f core conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22763
22764
22765fi
22766rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768
22769
22770fi
22771
22772
22773fi
22774
22775
22776 if test X"$HAVECRYPTO" = X"yes"; then
22777
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22779$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22780if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22781 $as_echo_n "(cached) " >&6
22782else
22783 ac_check_lib_save_LIBS=$LIBS
22784LIBS="-lssl $LIBS"
22785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786/* end confdefs.h. */
22787
22788
22789#ifdef __cplusplus
22790extern "C"
22791#endif
22792char SSL_connect ();
22793int main (void)
22794{
22795return SSL_connect ();
22796 ;
22797 return 0;
22798}
22799_ACEOF
22800if ac_fn_c_try_link "$LINENO"; then :
22801 ac_cv_lib_ssl_SSL_connect=yes
22802else
22803 ac_cv_lib_ssl_SSL_connect=no
22804fi
22805rm -f core conftest.err conftest.$ac_objext \
22806 conftest$ac_exeext conftest.$ac_ext
22807LIBS=$ac_check_lib_save_LIBS
22808fi
22809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22810$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22811if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22812 cat >>confdefs.h <<_ACEOF
22813#define HAVE_LIBSSL 1
22814_ACEOF
22815
22816 LIBS="-lssl $LIBS"
22817
22818fi
22819
22820
22821 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22823$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22824 OLIBS=$LIBS
22825 LIBS="-lRSAglue -lrsaref $LIBS"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22827$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22828if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22829 $as_echo_n "(cached) " >&6
22830else
22831 ac_check_lib_save_LIBS=$LIBS
22832LIBS="-lssl $LIBS"
22833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834/* end confdefs.h. */
22835
22836
22837#ifdef __cplusplus
22838extern "C"
22839#endif
22840char SSL_connect ();
22841int main (void)
22842{
22843return SSL_connect ();
22844 ;
22845 return 0;
22846}
22847_ACEOF
22848if ac_fn_c_try_link "$LINENO"; then :
22849 ac_cv_lib_ssl_SSL_connect=yes
22850else
22851 ac_cv_lib_ssl_SSL_connect=no
22852fi
22853rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22855LIBS=$ac_check_lib_save_LIBS
22856fi
22857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22858$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22859if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22860 cat >>confdefs.h <<_ACEOF
22861#define HAVE_LIBSSL 1
22862_ACEOF
22863
22864 LIBS="-lssl $LIBS"
22865
22866fi
22867
22868 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870$as_echo "no" >&6; }
22871 LIBS=$OLIBS
22872 else
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22874$as_echo "yes" >&6; }
22875 fi
22876
22877 else
22878
22879 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22880 openssl/pem.h openssl/ssl.h openssl/err.h
22881do :
22882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22883ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22885 cat >>confdefs.h <<_ACEOF
22886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22887_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022888 ssl_msg="OpenSSL"
22889 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022890 OPENSSL_ENABLED=1
22891
22892$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22893
22894fi
22895
22896done
22897
22898
22899 if test $ac_cv_header_openssl_x509_h = no; then
22900 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22901do :
22902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22905 cat >>confdefs.h <<_ACEOF
22906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22907_ACEOF
22908
22909fi
22910
22911done
22912
22913
22914 if test $ac_cv_header_x509_h = yes &&
22915 test $ac_cv_header_crypto_h = yes &&
22916 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022917 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022918 OPENSSL_ENABLED=1
22919 fi
22920 fi
22921 fi
22922
Alex Deymo486467e2017-12-19 19:04:07 +010022923 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022924 LIBS="$CLEANLIBS"
22925 fi
22926
22927 if test X"$OPT_SSL" != Xoff &&
22928 test "$OPENSSL_ENABLED" != "1"; then
22929 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22930 fi
22931 fi
22932
22933 if test X"$OPENSSL_ENABLED" = X"1"; then
22934 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22935if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22936
22937 for ac_header in openssl/engine.h
22938do :
22939 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22940if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22941 cat >>confdefs.h <<_ACEOF
22942#define HAVE_OPENSSL_ENGINE_H 1
22943_ACEOF
22944
22945fi
22946
22947done
22948
22949 for ac_func in ENGINE_load_builtin_engines
22950do :
22951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22954 cat >>confdefs.h <<_ACEOF
22955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22956_ACEOF
22957
22958fi
22959done
22960
22961
22962fi
22963
22964
22965
22966 for ac_func in RAND_egd \
22967 ENGINE_cleanup \
22968 SSL_get_shutdown \
22969 SSLv2_client_method
22970do :
22971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22974 cat >>confdefs.h <<_ACEOF
22975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22976_ACEOF
22977
22978fi
22979done
22980
22981
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22983$as_echo_n "checking for BoringSSL... " >&6; }
22984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985/* end confdefs.h. */
22986
22987
22988 #include <openssl/base.h>
22989
22990int main (void)
22991{
22992
22993 #ifndef OPENSSL_IS_BORINGSSL
22994 #error not boringssl
22995 #endif
22996
22997 ;
22998 return 0;
22999}
23000
23001_ACEOF
23002if ac_fn_c_try_compile "$LINENO"; then :
23003
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23005$as_echo "yes" >&6; }
23006
23007cat >>confdefs.h <<_ACEOF
23008#define HAVE_BORINGSSL 1
23009_ACEOF
23010
Alex Deymo486467e2017-12-19 19:04:07 +010023011 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023012
23013else
23014
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016$as_echo "no" >&6; }
23017
23018fi
23019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23022$as_echo_n "checking for libressl... " >&6; }
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024/* end confdefs.h. */
23025
23026
23027#include <openssl/opensslv.h>
23028
23029int main (void)
23030{
23031
23032 int dummy = LIBRESSL_VERSION_NUMBER;
23033
23034 ;
23035 return 0;
23036}
23037
23038_ACEOF
23039if ac_fn_c_try_compile "$LINENO"; then :
23040
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23042$as_echo "yes" >&6; }
23043
23044cat >>confdefs.h <<_ACEOF
23045#define HAVE_LIBRESSL 1
23046_ACEOF
23047
Alex Deymo486467e2017-12-19 19:04:07 +010023048 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023049
23050else
23051
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053$as_echo "no" >&6; }
23054
23055fi
23056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 fi
23058
23059 if test "$OPENSSL_ENABLED" = "1"; then
23060 if test -n "$LIB_OPENSSL"; then
23061 if test "x$cross_compiling" != "xyes"; then
23062 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23063 export LD_LIBRARY_PATH
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23065$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23066 fi
23067 fi
23068
23069 #
23070
23071 #
23072 tst_api="unknown"
23073 #
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23075$as_echo_n "checking for OpenSSL headers version... " >&6; }
23076
23077 OLDCPPFLAGS=$CPPFLAGS
23078 # CPPPFLAG comes from CURL_CPP_P
23079 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23080 if test -z "$SED"; then
23081 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23082 fi
23083 if test -z "$GREP"; then
23084 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23085 fi
23086
23087 tmp_exp=""
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089/* end confdefs.h. */
23090
23091
23092# ifdef USE_OPENSSL
23093# include <openssl/crypto.h>
23094# else
23095# include <crypto.h>
23096# endif
23097
23098#ifdef OPENSSL_VERSION_NUMBER
23099CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23100#endif
23101
23102
23103_ACEOF
23104if ac_fn_c_try_cpp "$LINENO"; then :
23105
23106 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23107 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23108 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23109 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23110 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23111 tmp_exp=""
23112 fi
23113
23114fi
23115rm -f conftest.err conftest.i conftest.$ac_ext
23116 if test -z "$tmp_exp"; then
23117 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23118
23119 else
23120 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23121 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23122
23123 fi
23124 CPPFLAGS=$OLDCPPFLAGS
23125
23126 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23127 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23128 case "x$tst_verlen" in
23129 x6)
23130 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23131 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23132 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23133 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23134 ;;
23135 x11|x10)
23136 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23137 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23138 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23139 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23140 ;;
23141 *)
23142 tst_api="unknown"
23143 ;;
23144 esac
23145 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023146 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023147 0x110) tst_show="1.1.0" ;;
23148 0x102) tst_show="1.0.2" ;;
23149 0x101) tst_show="1.0.1" ;;
23150 0x100) tst_show="1.0.0" ;;
23151 0x099) tst_show="0.9.9" ;;
23152 0x098) tst_show="0.9.8" ;;
23153 0x097) tst_show="0.9.7" ;;
23154 0x096) tst_show="0.9.6" ;;
23155 0x095) tst_show="0.9.5" ;;
23156 0x094) tst_show="0.9.4" ;;
23157 0x093) tst_show="0.9.3" ;;
23158 0x092) tst_show="0.9.2" ;;
23159 0x091) tst_show="0.9.1" ;;
23160 *) tst_show="unknown" ;;
23161 esac
23162 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23163 else
23164 tst_show="unknown"
23165 fi
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23167$as_echo "$tst_show" >&6; }
23168 #
23169 curl_openssl_api_headers=$tst_api
23170
23171
23172 #
23173 tst_api="unknown"
23174 #
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23176$as_echo_n "checking for OpenSSL library version... " >&6; }
23177 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179/* end confdefs.h. */
23180
23181
23182#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23183#ifdef __STDC__
23184# include <limits.h>
23185#else
23186# include <assert.h>
23187#endif
23188#undef ERR_clear_last_mark
23189#ifdef __cplusplus
23190extern "C"
23191#endif
23192char ERR_clear_last_mark ();
23193#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23194choke me
23195#endif
23196
23197int main (void)
23198{
23199return ERR_clear_last_mark ();
23200 ;
23201 return 0;
23202}
23203
23204_ACEOF
23205if ac_fn_c_try_link "$LINENO"; then :
23206
23207 tst_api="0x111"
23208
23209fi
23210rm -f core conftest.err conftest.$ac_objext \
23211 conftest$ac_exeext conftest.$ac_ext
23212 fi
23213 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023214 case $host in
23215 *-*-vms*)
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217/* end confdefs.h. */
23218
23219
23220#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23221#ifdef __STDC__
23222# include <limits.h>
23223#else
23224# include <assert.h>
23225#endif
23226#undef SSL_CTX_set_not_resumbl_sess_cb
23227#ifdef __cplusplus
23228extern "C"
23229#endif
23230char SSL_CTX_set_not_resumbl_sess_cb ();
23231#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23232choke me
23233#endif
23234
23235int main (void)
23236{
23237return SSL_CTX_set_not_resumbl_sess_cb ();
23238 ;
23239 return 0;
23240}
23241
23242_ACEOF
23243if ac_fn_c_try_link "$LINENO"; then :
23244
23245 tst_api="0x110"
23246
23247fi
23248rm -f core conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23250 ;;
23251 *)
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253/* end confdefs.h. */
23254
23255
23256#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23257#ifdef __STDC__
23258# include <limits.h>
23259#else
23260# include <assert.h>
23261#endif
23262#undef SSL_CTX_set_not_resumable_session_callback
23263#ifdef __cplusplus
23264extern "C"
23265#endif
23266char SSL_CTX_set_not_resumable_session_callback ();
23267#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23268choke me
23269#endif
23270
23271int main (void)
23272{
23273return SSL_CTX_set_not_resumable_session_callback ();
23274 ;
23275 return 0;
23276}
23277
23278_ACEOF
23279if ac_fn_c_try_link "$LINENO"; then :
23280
23281 tst_api="0x110"
23282
23283fi
23284rm -f core conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23286 ;;
23287 esac
23288 fi
23289 if test "$tst_api" = "unknown"; then
23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291/* end confdefs.h. */
23292
23293
23294#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23295#ifdef __STDC__
23296# include <limits.h>
23297#else
23298# include <assert.h>
23299#endif
23300#undef SSL_CONF_CTX_new
23301#ifdef __cplusplus
23302extern "C"
23303#endif
23304char SSL_CONF_CTX_new ();
23305#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23306choke me
23307#endif
23308
23309int main (void)
23310{
23311return SSL_CONF_CTX_new ();
23312 ;
23313 return 0;
23314}
23315
23316_ACEOF
23317if ac_fn_c_try_link "$LINENO"; then :
23318
23319 tst_api="0x102"
23320
23321fi
23322rm -f core conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
23324 fi
23325 if test "$tst_api" = "unknown"; then
23326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327/* end confdefs.h. */
23328
23329
23330#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23331#ifdef __STDC__
23332# include <limits.h>
23333#else
23334# include <assert.h>
23335#endif
23336#undef SSL_renegotiate_abbreviated
23337#ifdef __cplusplus
23338extern "C"
23339#endif
23340char SSL_renegotiate_abbreviated ();
23341#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23342choke me
23343#endif
23344
23345int main (void)
23346{
23347return SSL_renegotiate_abbreviated ();
23348 ;
23349 return 0;
23350}
23351
23352_ACEOF
23353if ac_fn_c_try_link "$LINENO"; then :
23354
23355 tst_api="0x101"
23356
23357fi
23358rm -f core conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23360 fi
23361 if test "$tst_api" = "unknown"; then
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363/* end confdefs.h. */
23364
23365
23366#define OBJ_add_sigid innocuous_OBJ_add_sigid
23367#ifdef __STDC__
23368# include <limits.h>
23369#else
23370# include <assert.h>
23371#endif
23372#undef OBJ_add_sigid
23373#ifdef __cplusplus
23374extern "C"
23375#endif
23376char OBJ_add_sigid ();
23377#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23378choke me
23379#endif
23380
23381int main (void)
23382{
23383return OBJ_add_sigid ();
23384 ;
23385 return 0;
23386}
23387
23388_ACEOF
23389if ac_fn_c_try_link "$LINENO"; then :
23390
23391 tst_api="0x100"
23392
23393fi
23394rm -f core conftest.err conftest.$ac_objext \
23395 conftest$ac_exeext conftest.$ac_ext
23396 fi
23397 if test "$tst_api" = "unknown"; then
23398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399/* end confdefs.h. */
23400
23401
23402#define ERR_set_mark innocuous_ERR_set_mark
23403#ifdef __STDC__
23404# include <limits.h>
23405#else
23406# include <assert.h>
23407#endif
23408#undef ERR_set_mark
23409#ifdef __cplusplus
23410extern "C"
23411#endif
23412char ERR_set_mark ();
23413#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23414choke me
23415#endif
23416
23417int main (void)
23418{
23419return ERR_set_mark ();
23420 ;
23421 return 0;
23422}
23423
23424_ACEOF
23425if ac_fn_c_try_link "$LINENO"; then :
23426
23427 tst_api="0x098"
23428
23429fi
23430rm -f core conftest.err conftest.$ac_objext \
23431 conftest$ac_exeext conftest.$ac_ext
23432 fi
23433 if test "$tst_api" = "unknown"; then
23434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435/* end confdefs.h. */
23436
23437
23438#define ERR_peek_last_error innocuous_ERR_peek_last_error
23439#ifdef __STDC__
23440# include <limits.h>
23441#else
23442# include <assert.h>
23443#endif
23444#undef ERR_peek_last_error
23445#ifdef __cplusplus
23446extern "C"
23447#endif
23448char ERR_peek_last_error ();
23449#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23450choke me
23451#endif
23452
23453int main (void)
23454{
23455return ERR_peek_last_error ();
23456 ;
23457 return 0;
23458}
23459
23460_ACEOF
23461if ac_fn_c_try_link "$LINENO"; then :
23462
23463 tst_api="0x097"
23464
23465fi
23466rm -f core conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23468 fi
23469 if test "$tst_api" = "unknown"; then
23470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471/* end confdefs.h. */
23472
23473
23474#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23475#ifdef __STDC__
23476# include <limits.h>
23477#else
23478# include <assert.h>
23479#endif
23480#undef c2i_ASN1_OBJECT
23481#ifdef __cplusplus
23482extern "C"
23483#endif
23484char c2i_ASN1_OBJECT ();
23485#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23486choke me
23487#endif
23488
23489int main (void)
23490{
23491return c2i_ASN1_OBJECT ();
23492 ;
23493 return 0;
23494}
23495
23496_ACEOF
23497if ac_fn_c_try_link "$LINENO"; then :
23498
23499 tst_api="0x096"
23500
23501fi
23502rm -f core conftest.err conftest.$ac_objext \
23503 conftest$ac_exeext conftest.$ac_ext
23504 fi
23505 if test "$tst_api" = "unknown"; then
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507/* end confdefs.h. */
23508
23509
23510#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23511#ifdef __STDC__
23512# include <limits.h>
23513#else
23514# include <assert.h>
23515#endif
23516#undef SSL_CTX_set_purpose
23517#ifdef __cplusplus
23518extern "C"
23519#endif
23520char SSL_CTX_set_purpose ();
23521#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23522choke me
23523#endif
23524
23525int main (void)
23526{
23527return SSL_CTX_set_purpose ();
23528 ;
23529 return 0;
23530}
23531
23532_ACEOF
23533if ac_fn_c_try_link "$LINENO"; then :
23534
23535 tst_api="0x095"
23536
23537fi
23538rm -f core conftest.err conftest.$ac_objext \
23539 conftest$ac_exeext conftest.$ac_ext
23540 fi
23541 if test "$tst_api" = "unknown"; then
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543/* end confdefs.h. */
23544
23545
23546#define OBJ_obj2txt innocuous_OBJ_obj2txt
23547#ifdef __STDC__
23548# include <limits.h>
23549#else
23550# include <assert.h>
23551#endif
23552#undef OBJ_obj2txt
23553#ifdef __cplusplus
23554extern "C"
23555#endif
23556char OBJ_obj2txt ();
23557#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23558choke me
23559#endif
23560
23561int main (void)
23562{
23563return OBJ_obj2txt ();
23564 ;
23565 return 0;
23566}
23567
23568_ACEOF
23569if ac_fn_c_try_link "$LINENO"; then :
23570
23571 tst_api="0x094"
23572
23573fi
23574rm -f core conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
23576 fi
23577 if test "$tst_api" = "unknown"; then
23578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23579/* end confdefs.h. */
23580
23581
23582#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23583#ifdef __STDC__
23584# include <limits.h>
23585#else
23586# include <assert.h>
23587#endif
23588#undef SSL_get_verify_depth
23589#ifdef __cplusplus
23590extern "C"
23591#endif
23592char SSL_get_verify_depth ();
23593#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23594choke me
23595#endif
23596
23597int main (void)
23598{
23599return SSL_get_verify_depth ();
23600 ;
23601 return 0;
23602}
23603
23604_ACEOF
23605if ac_fn_c_try_link "$LINENO"; then :
23606
23607 tst_api="0x093"
23608
23609fi
23610rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23612 fi
23613 if test "$tst_api" = "unknown"; then
23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615/* end confdefs.h. */
23616
23617
23618#define SSL_library_init innocuous_SSL_library_init
23619#ifdef __STDC__
23620# include <limits.h>
23621#else
23622# include <assert.h>
23623#endif
23624#undef SSL_library_init
23625#ifdef __cplusplus
23626extern "C"
23627#endif
23628char SSL_library_init ();
23629#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23630choke me
23631#endif
23632
23633int main (void)
23634{
23635return SSL_library_init ();
23636 ;
23637 return 0;
23638}
23639
23640_ACEOF
23641if ac_fn_c_try_link "$LINENO"; then :
23642
23643 tst_api="0x092"
23644
23645fi
23646rm -f core conftest.err conftest.$ac_objext \
23647 conftest$ac_exeext conftest.$ac_ext
23648 fi
23649 if test "$tst_api" = "unknown"; then
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651/* end confdefs.h. */
23652
23653
23654#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23655#ifdef __STDC__
23656# include <limits.h>
23657#else
23658# include <assert.h>
23659#endif
23660#undef SSL_CTX_set_cipher_list
23661#ifdef __cplusplus
23662extern "C"
23663#endif
23664char SSL_CTX_set_cipher_list ();
23665#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23666choke me
23667#endif
23668
23669int main (void)
23670{
23671return SSL_CTX_set_cipher_list ();
23672 ;
23673 return 0;
23674}
23675
23676_ACEOF
23677if ac_fn_c_try_link "$LINENO"; then :
23678
23679 tst_api="0x091"
23680
23681fi
23682rm -f core conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
23684 fi
23685 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023686 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023687 0x110) tst_show="1.1.0" ;;
23688 0x102) tst_show="1.0.2" ;;
23689 0x101) tst_show="1.0.1" ;;
23690 0x100) tst_show="1.0.0" ;;
23691 0x099) tst_show="0.9.9" ;;
23692 0x098) tst_show="0.9.8" ;;
23693 0x097) tst_show="0.9.7" ;;
23694 0x096) tst_show="0.9.6" ;;
23695 0x095) tst_show="0.9.5" ;;
23696 0x094) tst_show="0.9.4" ;;
23697 0x093) tst_show="0.9.3" ;;
23698 0x092) tst_show="0.9.2" ;;
23699 0x091) tst_show="0.9.1" ;;
23700 *) tst_show="unknown" ;;
23701 esac
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23703$as_echo "$tst_show" >&6; }
23704 #
23705 curl_openssl_api_library=$tst_api
23706
23707 #
23708 tst_match="yes"
23709 #
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23711$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23712 if test "$curl_openssl_api_headers" = "unknown" ||
23713 test "$curl_openssl_api_library" = "unknown"; then
23714 tst_match="fail"
23715 tst_warns="Can not compare OpenSSL headers and library versions."
23716 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23717 tst_match="no"
23718 tst_warns="OpenSSL headers and library versions do not match."
23719 fi
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23721$as_echo "$tst_match" >&6; }
23722 if test "$tst_match" != "yes"; then
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23724$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23725 fi
23726
23727 fi
23728
Alex Deymo486467e2017-12-19 19:04:07 +010023729 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023730fi
23731
23732
23733if test X"$OPENSSL_ENABLED" = X"1"; then
23734
23735# Check whether --with-egd-socket was given.
23736if test "${with_egd_socket+set}" = set; then :
23737 withval=$with_egd_socket; EGD_SOCKET="$withval"
23738
23739fi
23740
23741 if test -n "$EGD_SOCKET" ; then
23742
23743cat >>confdefs.h <<_ACEOF
23744#define EGD_SOCKET "$EGD_SOCKET"
23745_ACEOF
23746
23747 fi
23748
23749
23750# Check whether --with-random was given.
23751if test "${with_random+set}" = set; then :
23752 withval=$with_random; RANDOM_FILE="$withval"
23753else
23754
23755 if test x$cross_compiling != xyes; then
23756 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23758$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23759if eval \${$as_ac_File+:} false; then :
23760 $as_echo_n "(cached) " >&6
23761else
23762 test "$cross_compiling" = yes &&
23763 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23764if test -r ""/dev/urandom""; then
23765 eval "$as_ac_File=yes"
23766else
23767 eval "$as_ac_File=no"
23768fi
23769fi
23770eval ac_res=\$$as_ac_File
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23772$as_echo "$ac_res" >&6; }
23773if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23774 RANDOM_FILE="/dev/urandom"
23775fi
23776
23777 else
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23779$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23780 fi
23781
23782
23783fi
23784
23785 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23786
23787
23788cat >>confdefs.h <<_ACEOF
23789#define RANDOM_FILE "$RANDOM_FILE"
23790_ACEOF
23791
23792 fi
23793fi
23794
23795if test "$OPENSSL_ENABLED" = "1"; then
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23797$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23798if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23799 $as_echo_n "(cached) " >&6
23800else
23801 ac_check_lib_save_LIBS=$LIBS
23802LIBS="-lcrypto $LIBS"
23803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804/* end confdefs.h. */
23805
23806
23807#ifdef __cplusplus
23808extern "C"
23809#endif
23810char SRP_Calc_client_key ();
23811int main (void)
23812{
23813return SRP_Calc_client_key ();
23814 ;
23815 return 0;
23816}
23817_ACEOF
23818if ac_fn_c_try_link "$LINENO"; then :
23819 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23820else
23821 ac_cv_lib_crypto_SRP_Calc_client_key=no
23822fi
23823rm -f core conftest.err conftest.$ac_objext \
23824 conftest$ac_exeext conftest.$ac_ext
23825LIBS=$ac_check_lib_save_LIBS
23826fi
23827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23828$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23829if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23830
23831
23832$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23833
23834 HAVE_OPENSSL_SRP=1
23835
23836
23837fi
23838
23839fi
23840
23841
23842OPT_GNUTLS=no
23843
23844
23845# Check whether --with-gnutls was given.
23846if test "${with_gnutls+set}" = set; then :
23847 withval=$with_gnutls; OPT_GNUTLS=$withval
23848fi
23849
23850
Alex Deymo486467e2017-12-19 19:04:07 +010023851if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23852 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023853
23854 if test X"$OPT_GNUTLS" != Xno; then
23855
23856 addld=""
23857 addlib=""
23858 gtlslib=""
23859 version=""
23860 addcflags=""
23861
23862 if test "x$OPT_GNUTLS" = "xyes"; then
23863
23864 if test -n "$PKG_CONFIG"; then
23865 PKGCONFIG="$PKG_CONFIG"
23866 else
23867 if test -n "$ac_tool_prefix"; then
23868 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23869set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23871$as_echo_n "checking for $ac_word... " >&6; }
23872if ${ac_cv_path_PKGCONFIG+:} false; then :
23873 $as_echo_n "(cached) " >&6
23874else
23875 case $PKGCONFIG in
23876 [\\/]* | ?:[\\/]*)
23877 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23878 ;;
23879 *)
23880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23881as_dummy="$PATH:/usr/bin:/usr/local/bin"
23882for as_dir in $as_dummy
23883do
23884 IFS=$as_save_IFS
23885 test -z "$as_dir" && as_dir=.
23886 for ac_exec_ext in '' $ac_executable_extensions; do
23887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23888 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23890 break 2
23891 fi
23892done
23893 done
23894IFS=$as_save_IFS
23895
23896 ;;
23897esac
23898fi
23899PKGCONFIG=$ac_cv_path_PKGCONFIG
23900if test -n "$PKGCONFIG"; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23902$as_echo "$PKGCONFIG" >&6; }
23903else
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905$as_echo "no" >&6; }
23906fi
23907
23908
23909fi
23910if test -z "$ac_cv_path_PKGCONFIG"; then
23911 ac_pt_PKGCONFIG=$PKGCONFIG
23912 # Extract the first word of "pkg-config", so it can be a program name with args.
23913set dummy pkg-config; ac_word=$2
23914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23915$as_echo_n "checking for $ac_word... " >&6; }
23916if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23917 $as_echo_n "(cached) " >&6
23918else
23919 case $ac_pt_PKGCONFIG in
23920 [\\/]* | ?:[\\/]*)
23921 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23922 ;;
23923 *)
23924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23925as_dummy="$PATH:/usr/bin:/usr/local/bin"
23926for as_dir in $as_dummy
23927do
23928 IFS=$as_save_IFS
23929 test -z "$as_dir" && as_dir=.
23930 for ac_exec_ext in '' $ac_executable_extensions; do
23931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23932 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23934 break 2
23935 fi
23936done
23937 done
23938IFS=$as_save_IFS
23939
23940 ;;
23941esac
23942fi
23943ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23944if test -n "$ac_pt_PKGCONFIG"; then
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23946$as_echo "$ac_pt_PKGCONFIG" >&6; }
23947else
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949$as_echo "no" >&6; }
23950fi
23951
23952 if test "x$ac_pt_PKGCONFIG" = x; then
23953 PKGCONFIG="no"
23954 else
23955 case $cross_compiling:$ac_tool_warned in
23956yes:)
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23959ac_tool_warned=yes ;;
23960esac
23961 PKGCONFIG=$ac_pt_PKGCONFIG
23962 fi
23963else
23964 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23965fi
23966
23967 fi
23968
23969 if test "x$PKGCONFIG" != "xno"; then
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23971$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23972 itexists=`
23973 if test -n ""; then
23974 PKG_CONFIG_LIBDIR=""
23975 export PKG_CONFIG_LIBDIR
23976 fi
23977 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23978
23979 if test -z "$itexists"; then
23980 PKGCONFIG="no"
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982$as_echo "no" >&6; }
23983 else
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23985$as_echo "found" >&6; }
23986 fi
23987 fi
23988
23989
23990 if test "$PKGCONFIG" != "no" ; then
23991 addlib=`$PKGCONFIG --libs-only-l gnutls`
23992 addld=`$PKGCONFIG --libs-only-L gnutls`
23993 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23994 version=`$PKGCONFIG --modversion gnutls`
23995 gtlslib=`echo $addld | $SED -e 's/-L//'`
23996 else
23997 check=`libgnutls-config --version 2>/dev/null`
23998 if test -n "$check"; then
23999 addlib=`libgnutls-config --libs`
24000 addcflags=`libgnutls-config --cflags`
24001 version=`libgnutls-config --version`
24002 gtlslib=`libgnutls-config --prefix`/lib$libsuff
24003 fi
24004 fi
24005 else
24006 cfg=$OPT_GNUTLS/bin/libgnutls-config
24007 check=`$cfg --version 2>/dev/null`
24008 if test -n "$check"; then
24009 addlib=`$cfg --libs`
24010 addcflags=`$cfg --cflags`
24011 version=`$cfg --version`
24012 gtlslib=`$cfg --prefix`/lib$libsuff
24013 else
24014 addlib=-lgnutls
24015 addld=-L$OPT_GNUTLS/lib$libsuff
24016 addcflags=-I$OPT_GNUTLS/include
24017 version="" # we just don't know
24018 gtlslib=$OPT_GNUTLS/lib$libsuff
24019 fi
24020 fi
24021
24022 if test -z "$version"; then
24023 version="unknown"
24024 fi
24025
24026 if test -n "$addlib"; then
24027
24028 CLEANLIBS="$LIBS"
24029 CLEANCPPFLAGS="$CPPFLAGS"
24030 CLEANLDFLAGS="$LDFLAGS"
24031
24032 LIBS="$addlib $LIBS"
24033 LDFLAGS="$LDFLAGS $addld"
24034 if test "$addcflags" != "-I/usr/include"; then
24035 CPPFLAGS="$CPPFLAGS $addcflags"
24036 fi
24037
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24039$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24040if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24041 $as_echo_n "(cached) " >&6
24042else
24043 ac_check_lib_save_LIBS=$LIBS
24044LIBS="-lgnutls $LIBS"
24045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046/* end confdefs.h. */
24047
24048
24049#ifdef __cplusplus
24050extern "C"
24051#endif
24052char gnutls_check_version ();
24053int main (void)
24054{
24055return gnutls_check_version ();
24056 ;
24057 return 0;
24058}
24059_ACEOF
24060if ac_fn_c_try_link "$LINENO"; then :
24061 ac_cv_lib_gnutls_gnutls_check_version=yes
24062else
24063 ac_cv_lib_gnutls_gnutls_check_version=no
24064fi
24065rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
24067LIBS=$ac_check_lib_save_LIBS
24068fi
24069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24070$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24071if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24072
24073
24074$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24075
24076 USE_GNUTLS=1
24077
24078 GNUTLS_ENABLED=1
24079 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024080 ssl_msg="GnuTLS"
24081 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024082
24083else
24084
24085 LIBS="$CLEANLIBS"
24086 CPPFLAGS="$CLEANCPPFLAGS"
24087
24088fi
24089
24090
24091 if test "x$USE_GNUTLS" = "xyes"; then
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24093$as_echo "$as_me: detected GnuTLS version $version" >&6;}
24094
24095 if test -n "$gtlslib"; then
24096 if test "x$cross_compiling" != "xyes"; then
24097 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24098 export LD_LIBRARY_PATH
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24100$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24101 fi
24102 fi
24103 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24104do :
24105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24106ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24107if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24108 cat >>confdefs.h <<_ACEOF
24109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110_ACEOF
24111
24112fi
24113done
24114
24115 fi
24116
24117 fi
24118
24119 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024120 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024121fi
24122
24123
24124if test "$GNUTLS_ENABLED" = "1"; then
24125 USE_GNUTLS_NETTLE=
24126 # First check if we can detect either crypto library via transitive linking
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24128$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24129if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24130 $as_echo_n "(cached) " >&6
24131else
24132 ac_check_lib_save_LIBS=$LIBS
24133LIBS="-lgnutls $LIBS"
24134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135/* end confdefs.h. */
24136
24137
24138#ifdef __cplusplus
24139extern "C"
24140#endif
24141char nettle_MD5Init ();
24142int main (void)
24143{
24144return nettle_MD5Init ();
24145 ;
24146 return 0;
24147}
24148_ACEOF
24149if ac_fn_c_try_link "$LINENO"; then :
24150 ac_cv_lib_gnutls_nettle_MD5Init=yes
24151else
24152 ac_cv_lib_gnutls_nettle_MD5Init=no
24153fi
24154rm -f core conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
24156LIBS=$ac_check_lib_save_LIBS
24157fi
24158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24159$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24160if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24161 USE_GNUTLS_NETTLE=1
24162fi
24163
24164 if test "$USE_GNUTLS_NETTLE" = ""; then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24166$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24167if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24168 $as_echo_n "(cached) " >&6
24169else
24170 ac_check_lib_save_LIBS=$LIBS
24171LIBS="-lgnutls $LIBS"
24172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24173/* end confdefs.h. */
24174
24175
24176#ifdef __cplusplus
24177extern "C"
24178#endif
24179char gcry_control ();
24180int main (void)
24181{
24182return gcry_control ();
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187if ac_fn_c_try_link "$LINENO"; then :
24188 ac_cv_lib_gnutls_gcry_control=yes
24189else
24190 ac_cv_lib_gnutls_gcry_control=no
24191fi
24192rm -f core conftest.err conftest.$ac_objext \
24193 conftest$ac_exeext conftest.$ac_ext
24194LIBS=$ac_check_lib_save_LIBS
24195fi
24196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24197$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24198if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24199 USE_GNUTLS_NETTLE=0
24200fi
24201
24202 fi
24203 # If not, try linking directly to both of them to see if they are available
24204 if test "$USE_GNUTLS_NETTLE" = ""; then
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24206$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24207if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24208 $as_echo_n "(cached) " >&6
24209else
24210 ac_check_lib_save_LIBS=$LIBS
24211LIBS="-lnettle $LIBS"
24212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213/* end confdefs.h. */
24214
24215
24216#ifdef __cplusplus
24217extern "C"
24218#endif
24219char nettle_MD5Init ();
24220int main (void)
24221{
24222return nettle_MD5Init ();
24223 ;
24224 return 0;
24225}
24226_ACEOF
24227if ac_fn_c_try_link "$LINENO"; then :
24228 ac_cv_lib_nettle_nettle_MD5Init=yes
24229else
24230 ac_cv_lib_nettle_nettle_MD5Init=no
24231fi
24232rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234LIBS=$ac_check_lib_save_LIBS
24235fi
24236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24237$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24238if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24239 USE_GNUTLS_NETTLE=1
24240fi
24241
24242 fi
24243 if test "$USE_GNUTLS_NETTLE" = ""; then
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24245$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24246if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24247 $as_echo_n "(cached) " >&6
24248else
24249 ac_check_lib_save_LIBS=$LIBS
24250LIBS="-lgcrypt $LIBS"
24251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252/* end confdefs.h. */
24253
24254
24255#ifdef __cplusplus
24256extern "C"
24257#endif
24258char gcry_control ();
24259int main (void)
24260{
24261return gcry_control ();
24262 ;
24263 return 0;
24264}
24265_ACEOF
24266if ac_fn_c_try_link "$LINENO"; then :
24267 ac_cv_lib_gcrypt_gcry_control=yes
24268else
24269 ac_cv_lib_gcrypt_gcry_control=no
24270fi
24271rm -f core conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24273LIBS=$ac_check_lib_save_LIBS
24274fi
24275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24276$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24277if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24278 USE_GNUTLS_NETTLE=0
24279fi
24280
24281 fi
24282 if test "$USE_GNUTLS_NETTLE" = ""; then
24283 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24284 fi
24285 if test "$USE_GNUTLS_NETTLE" = "1"; then
24286
24287$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24288
24289 USE_GNUTLS_NETTLE=1
24290
24291 LIBS="-lnettle $LIBS"
24292 else
24293 LIBS="-lgcrypt $LIBS"
24294 fi
24295fi
24296
24297if test "$GNUTLS_ENABLED" = "1"; then
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24299$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24300if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24301 $as_echo_n "(cached) " >&6
24302else
24303 ac_check_lib_save_LIBS=$LIBS
24304LIBS="-lgnutls $LIBS"
24305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306/* end confdefs.h. */
24307
24308
24309#ifdef __cplusplus
24310extern "C"
24311#endif
24312char gnutls_srp_verifier ();
24313int main (void)
24314{
24315return gnutls_srp_verifier ();
24316 ;
24317 return 0;
24318}
24319_ACEOF
24320if ac_fn_c_try_link "$LINENO"; then :
24321 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24322else
24323 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24324fi
24325rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327LIBS=$ac_check_lib_save_LIBS
24328fi
24329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24330$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24331if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24332
24333
24334$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24335
24336 HAVE_GNUTLS_SRP=1
24337
24338
24339fi
24340
24341fi
24342
24343
24344OPT_POLARSSL=no
24345
24346_cppflags=$CPPFLAGS
24347_ldflags=$LDFLAGS
24348
24349# Check whether --with-polarssl was given.
24350if test "${with_polarssl+set}" = set; then :
24351 withval=$with_polarssl; OPT_POLARSSL=$withval
24352fi
24353
24354
Alex Deymo486467e2017-12-19 19:04:07 +010024355if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24356 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024357
24358 if test X"$OPT_POLARSSL" != Xno; then
24359
24360 if test "$OPT_POLARSSL" = "yes"; then
24361 OPT_POLARSSL=""
24362 fi
24363
24364 if test -z "$OPT_POLARSSL" ; then
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24367$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24368if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24369 $as_echo_n "(cached) " >&6
24370else
24371 ac_check_lib_save_LIBS=$LIBS
24372LIBS="-lpolarssl $LIBS"
24373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374/* end confdefs.h. */
24375
24376
24377#ifdef __cplusplus
24378extern "C"
24379#endif
24380char havege_init ();
24381int main (void)
24382{
24383return havege_init ();
24384 ;
24385 return 0;
24386}
24387_ACEOF
24388if ac_fn_c_try_link "$LINENO"; then :
24389 ac_cv_lib_polarssl_havege_init=yes
24390else
24391 ac_cv_lib_polarssl_havege_init=no
24392fi
24393rm -f core conftest.err conftest.$ac_objext \
24394 conftest$ac_exeext conftest.$ac_ext
24395LIBS=$ac_check_lib_save_LIBS
24396fi
24397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24398$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24399if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24400
24401
24402$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24403
24404 USE_POLARSSL=1
24405
24406 POLARSSL_ENABLED=1
24407 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024408 ssl_msg="PolarSSL"
24409 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024410
24411fi
24412
24413 fi
24414
24415 addld=""
24416 addlib=""
24417 addcflags=""
24418 polarssllib=""
24419
24420 if test "x$USE_POLARSSL" != "xyes"; then
24421 addld=-L$OPT_POLARSSL/lib$libsuff
24422 addcflags=-I$OPT_POLARSSL/include
24423 polarssllib=$OPT_POLARSSL/lib$libsuff
24424
24425 LDFLAGS="$LDFLAGS $addld"
24426 if test "$addcflags" != "-I/usr/include"; then
24427 CPPFLAGS="$CPPFLAGS $addcflags"
24428 fi
24429
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24431$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24432if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24433 $as_echo_n "(cached) " >&6
24434else
24435 ac_check_lib_save_LIBS=$LIBS
24436LIBS="-lpolarssl $LIBS"
24437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438/* end confdefs.h. */
24439
24440
24441#ifdef __cplusplus
24442extern "C"
24443#endif
24444char ssl_init ();
24445int main (void)
24446{
24447return ssl_init ();
24448 ;
24449 return 0;
24450}
24451_ACEOF
24452if ac_fn_c_try_link "$LINENO"; then :
24453 ac_cv_lib_polarssl_ssl_init=yes
24454else
24455 ac_cv_lib_polarssl_ssl_init=no
24456fi
24457rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459LIBS=$ac_check_lib_save_LIBS
24460fi
24461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24462$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24463if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24464
24465
24466$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24467
24468 USE_POLARSSL=1
24469
24470 POLARSSL_ENABLED=1
24471 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024472 ssl_msg="PolarSSL"
24473 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024474
24475else
24476
24477 CPPFLAGS=$_cppflags
24478 LDFLAGS=$_ldflags
24479
24480fi
24481
24482 fi
24483
24484 if test "x$USE_POLARSSL" = "xyes"; then
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24486$as_echo "$as_me: detected PolarSSL" >&6;}
24487
24488 LIBS="-lpolarssl $LIBS"
24489
24490 if test -n "$polarssllib"; then
24491 if test "x$cross_compiling" != "xyes"; then
24492 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24493 export LD_LIBRARY_PATH
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24495$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24496 fi
24497 fi
24498 fi
24499
24500 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024501 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024502fi
24503
24504
24505OPT_MBEDTLS=no
24506
24507_cppflags=$CPPFLAGS
24508_ldflags=$LDFLAGS
24509
24510# Check whether --with-mbedtls was given.
24511if test "${with_mbedtls+set}" = set; then :
24512 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24513fi
24514
24515
Alex Deymo486467e2017-12-19 19:04:07 +010024516if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24517 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024518
24519 if test X"$OPT_MBEDTLS" != Xno; then
24520
24521 if test "$OPT_MBEDTLS" = "yes"; then
24522 OPT_MBEDTLS=""
24523 fi
24524
24525 if test -z "$OPT_MBEDTLS" ; then
24526
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24528$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24529if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24530 $as_echo_n "(cached) " >&6
24531else
24532 ac_check_lib_save_LIBS=$LIBS
24533LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535/* end confdefs.h. */
24536
24537
24538#ifdef __cplusplus
24539extern "C"
24540#endif
24541char mbedtls_havege_init ();
24542int main (void)
24543{
24544return mbedtls_havege_init ();
24545 ;
24546 return 0;
24547}
24548_ACEOF
24549if ac_fn_c_try_link "$LINENO"; then :
24550 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24551else
24552 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24553fi
24554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24556LIBS=$ac_check_lib_save_LIBS
24557fi
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24559$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24560if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24561
24562
24563$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24564
24565 USE_MBEDTLS=1
24566
24567 MBEDTLS_ENABLED=1
24568 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024569 ssl_msg="mbedTLS"
24570 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024571
24572fi
24573
24574 fi
24575
24576 addld=""
24577 addlib=""
24578 addcflags=""
24579 mbedtlslib=""
24580
24581 if test "x$USE_MBEDTLS" != "xyes"; then
24582 addld=-L$OPT_MBEDTLS/lib$libsuff
24583 addcflags=-I$OPT_MBEDTLS/include
24584 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24585
24586 LDFLAGS="$LDFLAGS $addld"
24587 if test "$addcflags" != "-I/usr/include"; then
24588 CPPFLAGS="$CPPFLAGS $addcflags"
24589 fi
24590
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24592$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24593if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24594 $as_echo_n "(cached) " >&6
24595else
24596 ac_check_lib_save_LIBS=$LIBS
24597LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599/* end confdefs.h. */
24600
24601
24602#ifdef __cplusplus
24603extern "C"
24604#endif
24605char mbedtls_ssl_init ();
24606int main (void)
24607{
24608return mbedtls_ssl_init ();
24609 ;
24610 return 0;
24611}
24612_ACEOF
24613if ac_fn_c_try_link "$LINENO"; then :
24614 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24615else
24616 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24617fi
24618rm -f core conftest.err conftest.$ac_objext \
24619 conftest$ac_exeext conftest.$ac_ext
24620LIBS=$ac_check_lib_save_LIBS
24621fi
24622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24623$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24624if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24625
24626
24627$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24628
24629 USE_MBEDTLS=1
24630
24631 MBEDTLS_ENABLED=1
24632 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024633 ssl_msg="mbedTLS"
24634 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024635
24636else
24637
24638 CPPFLAGS=$_cppflags
24639 LDFLAGS=$_ldflags
24640
24641fi
24642
24643 fi
24644
24645 if test "x$USE_MBEDTLS" = "xyes"; then
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24647$as_echo "$as_me: detected mbedTLS" >&6;}
24648
24649 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24650
24651 if test -n "$mbedtlslib"; then
24652 if test "x$cross_compiling" != "xyes"; then
24653 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24654 export LD_LIBRARY_PATH
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24656$as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24657 fi
24658 fi
24659 fi
24660
24661 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024662 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024663fi
24664
24665
24666OPT_CYASSL=no
24667
24668_cppflags=$CPPFLAGS
24669_ldflags=$LDFLAGS
24670
24671# Check whether --with-cyassl was given.
24672if test "${with_cyassl+set}" = set; then :
24673 withval=$with_cyassl; OPT_CYASSL=$withval
24674fi
24675
24676
Alex Deymo486467e2017-12-19 19:04:07 +010024677if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24678 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024679
24680 if test X"$OPT_CYASSL" != Xno; then
24681
24682 if test "$OPT_CYASSL" = "yes"; then
24683 OPT_CYASSL=""
24684 fi
24685
24686
24687 cyassllibname=cyassl
24688
24689 if test -z "$OPT_CYASSL" ; then
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24692$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24693if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24694 $as_echo_n "(cached) " >&6
24695else
24696 ac_check_lib_save_LIBS=$LIBS
24697LIBS="-lcyassl $LIBS"
24698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699/* end confdefs.h. */
24700
24701
24702#ifdef __cplusplus
24703extern "C"
24704#endif
24705char CyaSSL_Init ();
24706int main (void)
24707{
24708return CyaSSL_Init ();
24709 ;
24710 return 0;
24711}
24712_ACEOF
24713if ac_fn_c_try_link "$LINENO"; then :
24714 ac_cv_lib_cyassl_CyaSSL_Init=yes
24715else
24716 ac_cv_lib_cyassl_CyaSSL_Init=no
24717fi
24718rm -f core conftest.err conftest.$ac_objext \
24719 conftest$ac_exeext conftest.$ac_ext
24720LIBS=$ac_check_lib_save_LIBS
24721fi
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24723$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24724if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24725
24726
24727$as_echo "#define USE_CYASSL 1" >>confdefs.h
24728
24729 USE_CYASSL=1
24730
24731 CYASSL_ENABLED=1
24732 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024733 ssl_msg="CyaSSL"
24734 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024735
24736fi
24737
24738 fi
24739
24740 addld=""
24741 addlib=""
24742 addcflags=""
24743 cyassllib=""
24744
24745 if test "x$USE_CYASSL" != "xyes"; then
24746 addld=-L$OPT_CYASSL/lib$libsuff
24747 addcflags=-I$OPT_CYASSL/include
24748 cyassllib=$OPT_CYASSL/lib$libsuff
24749
24750 LDFLAGS="$LDFLAGS $addld"
24751 if test "$addcflags" != "-I/usr/include"; then
24752 CPPFLAGS="$CPPFLAGS $addcflags"
24753 fi
24754
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24756$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24757if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24758 $as_echo_n "(cached) " >&6
24759else
24760 ac_check_lib_save_LIBS=$LIBS
24761LIBS="-lcyassl $LIBS"
24762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763/* end confdefs.h. */
24764
24765
24766#ifdef __cplusplus
24767extern "C"
24768#endif
24769char CyaSSL_Init ();
24770int main (void)
24771{
24772return CyaSSL_Init ();
24773 ;
24774 return 0;
24775}
24776_ACEOF
24777if ac_fn_c_try_link "$LINENO"; then :
24778 ac_cv_lib_cyassl_CyaSSL_Init=yes
24779else
24780 ac_cv_lib_cyassl_CyaSSL_Init=no
24781fi
24782rm -f core conftest.err conftest.$ac_objext \
24783 conftest$ac_exeext conftest.$ac_ext
24784LIBS=$ac_check_lib_save_LIBS
24785fi
24786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24787$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24788if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24789
24790
24791$as_echo "#define USE_CYASSL 1" >>confdefs.h
24792
24793 USE_CYASSL=1
24794
24795 CYASSL_ENABLED=1
24796 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024797 ssl_msg="CyaSSL"
24798 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024799
24800else
24801
24802 CPPFLAGS=$_cppflags
24803 LDFLAGS=$_ldflags
24804 cyassllib=""
24805
24806fi
24807
24808 fi
24809
24810 addld=""
24811 addlib=""
24812 addcflags=""
24813
24814 if test "x$USE_CYASSL" != "xyes"; then
24815 addld=-L$OPT_CYASSL/lib$libsuff
24816 addcflags=-I$OPT_CYASSL/include
24817 cyassllib=$OPT_CYASSL/lib$libsuff
24818
24819 LDFLAGS="$LDFLAGS $addld"
24820 if test "$addcflags" != "-I/usr/include"; then
24821 CPPFLAGS="$CPPFLAGS $addcflags"
24822 fi
24823
24824 cyassllibname=wolfssl
24825 my_ac_save_LIBS="$LIBS"
24826 LIBS="-l$cyassllibname -lm $LIBS"
24827
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24829$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831/* end confdefs.h. */
24832
24833
24834/* These aren't needed for detection and confuse WolfSSL.
24835 They are set up properly later if it is detected. */
24836#undef SIZEOF_LONG
24837#undef SIZEOF_LONG_LONG
24838#include <cyassl/ssl.h>
24839
24840int main (void)
24841{
24842
24843 return CyaSSL_Init();
24844
24845 ;
24846 return 0;
24847}
24848
24849_ACEOF
24850if ac_fn_c_try_link "$LINENO"; then :
24851
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24853$as_echo "yes" >&6; }
24854
24855$as_echo "#define USE_CYASSL 1" >>confdefs.h
24856
24857 USE_CYASSL=1
24858
24859 CYASSL_ENABLED=1
24860 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024861 ssl_msg="WolfSSL"
24862 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024863
24864else
24865
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24867$as_echo "no" >&6; }
24868 CPPFLAGS=$_cppflags
24869 LDFLAGS=$_ldflags
24870 cyassllib=""
24871
24872fi
24873rm -f core conftest.err conftest.$ac_objext \
24874 conftest$ac_exeext conftest.$ac_ext
24875 LIBS="$my_ac_save_LIBS"
24876 fi
24877
24878 if test "x$USE_CYASSL" = "xyes"; then
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24880$as_echo "$as_me: detected $cyassllibname" >&6;}
24881
24882 # The cast to long int works around a bug in the HP C Compiler
24883# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24884# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24885# This bug is HP SR number 8606223364.
24886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24887$as_echo_n "checking size of long long... " >&6; }
24888if ${ac_cv_sizeof_long_long+:} false; then :
24889 $as_echo_n "(cached) " >&6
24890else
24891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24892
24893else
24894 if test "$ac_cv_type_long_long" = yes; then
24895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24897as_fn_error 77 "cannot compute sizeof (long long)
24898See \`config.log' for more details" "$LINENO" 5; }
24899 else
24900 ac_cv_sizeof_long_long=0
24901 fi
24902fi
24903
24904fi
24905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24906$as_echo "$ac_cv_sizeof_long_long" >&6; }
24907
24908
24909
24910cat >>confdefs.h <<_ACEOF
24911#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24912_ACEOF
24913
24914
24915
24916 for ac_header in cyassl/options.h
24917do :
24918 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24919if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24920 cat >>confdefs.h <<_ACEOF
24921#define HAVE_CYASSL_OPTIONS_H 1
24922_ACEOF
24923
24924fi
24925
24926done
24927
24928
24929 for ac_header in cyassl/error-ssl.h
24930do :
24931 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24932if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24933 cat >>confdefs.h <<_ACEOF
24934#define HAVE_CYASSL_ERROR_SSL_H 1
24935_ACEOF
24936
24937fi
24938
24939done
24940
24941
24942 LIBS="-l$cyassllibname -lm $LIBS"
24943
24944 if test "x$cyassllibname" = "xwolfssl"; then
24945 for ac_func in wolfSSLv3_client_method \
24946 wolfSSL_CTX_UseSupportedCurve \
24947 wolfSSL_get_peer_certificate \
24948 wolfSSL_UseALPN
24949do :
24950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24953 cat >>confdefs.h <<_ACEOF
24954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24955_ACEOF
24956
24957fi
24958done
24959
24960 else
24961 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24962 CyaSSL_get_peer_certificate
24963do :
24964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24965ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24966if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24967 cat >>confdefs.h <<_ACEOF
24968#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24969_ACEOF
24970
24971fi
24972done
24973
24974 fi
24975
24976 if test -n "$cyassllib"; then
24977 if test "x$cross_compiling" != "xyes"; then
24978 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24979 export LD_LIBRARY_PATH
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24981$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24982 fi
24983 fi
24984
24985 fi
24986
24987 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024988 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024989fi
24990
24991
24992OPT_NSS=no
24993
24994
24995# Check whether --with-nss was given.
24996if test "${with_nss+set}" = set; then :
24997 withval=$with_nss; OPT_NSS=$withval
24998fi
24999
25000
Alex Deymo486467e2017-12-19 19:04:07 +010025001if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25002 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025003
25004 if test X"$OPT_NSS" != Xno; then
25005
25006 addld=""
25007 addlib=""
25008 addcflags=""
25009 nssprefix=""
25010 version=""
25011
25012 if test "x$OPT_NSS" = "xyes"; then
25013
25014
25015 if test -n "$PKG_CONFIG"; then
25016 PKGCONFIG="$PKG_CONFIG"
25017 else
25018 if test -n "$ac_tool_prefix"; then
25019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25020set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25022$as_echo_n "checking for $ac_word... " >&6; }
25023if ${ac_cv_path_PKGCONFIG+:} false; then :
25024 $as_echo_n "(cached) " >&6
25025else
25026 case $PKGCONFIG in
25027 [\\/]* | ?:[\\/]*)
25028 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25029 ;;
25030 *)
25031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25032as_dummy="$PATH:/usr/bin:/usr/local/bin"
25033for as_dir in $as_dummy
25034do
25035 IFS=$as_save_IFS
25036 test -z "$as_dir" && as_dir=.
25037 for ac_exec_ext in '' $ac_executable_extensions; do
25038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25039 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25041 break 2
25042 fi
25043done
25044 done
25045IFS=$as_save_IFS
25046
25047 ;;
25048esac
25049fi
25050PKGCONFIG=$ac_cv_path_PKGCONFIG
25051if test -n "$PKGCONFIG"; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25053$as_echo "$PKGCONFIG" >&6; }
25054else
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25056$as_echo "no" >&6; }
25057fi
25058
25059
25060fi
25061if test -z "$ac_cv_path_PKGCONFIG"; then
25062 ac_pt_PKGCONFIG=$PKGCONFIG
25063 # Extract the first word of "pkg-config", so it can be a program name with args.
25064set dummy pkg-config; ac_word=$2
25065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25066$as_echo_n "checking for $ac_word... " >&6; }
25067if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25068 $as_echo_n "(cached) " >&6
25069else
25070 case $ac_pt_PKGCONFIG in
25071 [\\/]* | ?:[\\/]*)
25072 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25073 ;;
25074 *)
25075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25076as_dummy="$PATH:/usr/bin:/usr/local/bin"
25077for as_dir in $as_dummy
25078do
25079 IFS=$as_save_IFS
25080 test -z "$as_dir" && as_dir=.
25081 for ac_exec_ext in '' $ac_executable_extensions; do
25082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25083 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25085 break 2
25086 fi
25087done
25088 done
25089IFS=$as_save_IFS
25090
25091 ;;
25092esac
25093fi
25094ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25095if test -n "$ac_pt_PKGCONFIG"; then
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25097$as_echo "$ac_pt_PKGCONFIG" >&6; }
25098else
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100$as_echo "no" >&6; }
25101fi
25102
25103 if test "x$ac_pt_PKGCONFIG" = x; then
25104 PKGCONFIG="no"
25105 else
25106 case $cross_compiling:$ac_tool_warned in
25107yes:)
25108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25110ac_tool_warned=yes ;;
25111esac
25112 PKGCONFIG=$ac_pt_PKGCONFIG
25113 fi
25114else
25115 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25116fi
25117
25118 fi
25119
25120 if test "x$PKGCONFIG" != "xno"; then
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25122$as_echo_n "checking for nss options with pkg-config... " >&6; }
25123 itexists=`
25124 if test -n ""; then
25125 PKG_CONFIG_LIBDIR=""
25126 export PKG_CONFIG_LIBDIR
25127 fi
25128 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25129
25130 if test -z "$itexists"; then
25131 PKGCONFIG="no"
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133$as_echo "no" >&6; }
25134 else
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25136$as_echo "found" >&6; }
25137 fi
25138 fi
25139
25140
25141 if test "$PKGCONFIG" != "no" ; then
25142 addlib=`$PKGCONFIG --libs nss`
25143 addcflags=`$PKGCONFIG --cflags nss`
25144 version=`$PKGCONFIG --modversion nss`
25145 nssprefix=`$PKGCONFIG --variable=prefix nss`
25146 else
25147
25148 check=`nss-config --version 2>/dev/null`
25149 if test -n "$check"; then
25150 addlib=`nss-config --libs`
25151 addcflags=`nss-config --cflags`
25152 version=`nss-config --version`
25153 nssprefix=`nss-config --prefix`
25154 else
25155 addlib="-lnss3"
25156 addcflags=""
25157 version="unknown"
25158 fi
25159 fi
25160 else
25161 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25162 if test -f "$NSS_PCDIR/nss.pc"; then
25163
25164 if test -n "$PKG_CONFIG"; then
25165 PKGCONFIG="$PKG_CONFIG"
25166 else
25167 if test -n "$ac_tool_prefix"; then
25168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25169set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171$as_echo_n "checking for $ac_word... " >&6; }
25172if ${ac_cv_path_PKGCONFIG+:} false; then :
25173 $as_echo_n "(cached) " >&6
25174else
25175 case $PKGCONFIG in
25176 [\\/]* | ?:[\\/]*)
25177 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25178 ;;
25179 *)
25180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25181as_dummy="$PATH:/usr/bin:/usr/local/bin"
25182for as_dir in $as_dummy
25183do
25184 IFS=$as_save_IFS
25185 test -z "$as_dir" && as_dir=.
25186 for ac_exec_ext in '' $ac_executable_extensions; do
25187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25188 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25190 break 2
25191 fi
25192done
25193 done
25194IFS=$as_save_IFS
25195
25196 ;;
25197esac
25198fi
25199PKGCONFIG=$ac_cv_path_PKGCONFIG
25200if test -n "$PKGCONFIG"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25202$as_echo "$PKGCONFIG" >&6; }
25203else
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205$as_echo "no" >&6; }
25206fi
25207
25208
25209fi
25210if test -z "$ac_cv_path_PKGCONFIG"; then
25211 ac_pt_PKGCONFIG=$PKGCONFIG
25212 # Extract the first word of "pkg-config", so it can be a program name with args.
25213set dummy pkg-config; ac_word=$2
25214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215$as_echo_n "checking for $ac_word... " >&6; }
25216if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25217 $as_echo_n "(cached) " >&6
25218else
25219 case $ac_pt_PKGCONFIG in
25220 [\\/]* | ?:[\\/]*)
25221 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25222 ;;
25223 *)
25224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225as_dummy="$PATH:/usr/bin:/usr/local/bin"
25226for as_dir in $as_dummy
25227do
25228 IFS=$as_save_IFS
25229 test -z "$as_dir" && as_dir=.
25230 for ac_exec_ext in '' $ac_executable_extensions; do
25231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25232 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25234 break 2
25235 fi
25236done
25237 done
25238IFS=$as_save_IFS
25239
25240 ;;
25241esac
25242fi
25243ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25244if test -n "$ac_pt_PKGCONFIG"; then
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25246$as_echo "$ac_pt_PKGCONFIG" >&6; }
25247else
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25249$as_echo "no" >&6; }
25250fi
25251
25252 if test "x$ac_pt_PKGCONFIG" = x; then
25253 PKGCONFIG="no"
25254 else
25255 case $cross_compiling:$ac_tool_warned in
25256yes:)
25257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25259ac_tool_warned=yes ;;
25260esac
25261 PKGCONFIG=$ac_pt_PKGCONFIG
25262 fi
25263else
25264 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25265fi
25266
25267 fi
25268
25269 if test "x$PKGCONFIG" != "xno"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25271$as_echo_n "checking for nss options with pkg-config... " >&6; }
25272 itexists=`
25273 if test -n "$NSS_PCDIR"; then
25274 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25275 export PKG_CONFIG_LIBDIR
25276 fi
25277 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25278
25279 if test -z "$itexists"; then
25280 PKGCONFIG="no"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282$as_echo "no" >&6; }
25283 else
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25285$as_echo "found" >&6; }
25286 fi
25287 fi
25288
25289 if test "$PKGCONFIG" != "no" ; then
25290 addld=`
25291 if test -n "$NSS_PCDIR"; then
25292 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25293 export PKG_CONFIG_LIBDIR
25294 fi
25295 $PKGCONFIG --libs-only-L nss`
25296 addlib=`
25297 if test -n "$NSS_PCDIR"; then
25298 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25299 export PKG_CONFIG_LIBDIR
25300 fi
25301 $PKGCONFIG --libs-only-l nss`
25302 addcflags=`
25303 if test -n "$NSS_PCDIR"; then
25304 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25305 export PKG_CONFIG_LIBDIR
25306 fi
25307 $PKGCONFIG --cflags nss`
25308 version=`
25309 if test -n "$NSS_PCDIR"; then
25310 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25311 export PKG_CONFIG_LIBDIR
25312 fi
25313 $PKGCONFIG --modversion nss`
25314 nssprefix=`
25315 if test -n "$NSS_PCDIR"; then
25316 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25317 export PKG_CONFIG_LIBDIR
25318 fi
25319 $PKGCONFIG --variable=prefix nss`
25320 fi
25321 fi
25322 fi
25323
25324 if test -z "$addlib"; then
25325 # Without pkg-config, we'll kludge in some defaults
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25327$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25328 addld="-L$OPT_NSS/lib"
25329 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25330 addcflags="-I$OPT_NSS/include"
25331 version="unknown"
25332 nssprefix=$OPT_NSS
25333 fi
25334
25335 CLEANLDFLAGS="$LDFLAGS"
25336 CLEANLIBS="$LIBS"
25337 CLEANCPPFLAGS="$CPPFLAGS"
25338
25339 LDFLAGS="$addld $LDFLAGS"
25340 LIBS="$addlib $LIBS"
25341 if test "$addcflags" != "-I/usr/include"; then
25342 CPPFLAGS="$CPPFLAGS $addcflags"
25343 fi
25344
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25346$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25347if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25348 $as_echo_n "(cached) " >&6
25349else
25350 ac_check_lib_save_LIBS=$LIBS
25351LIBS="-lnss3 $LIBS"
25352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25353/* end confdefs.h. */
25354
25355
25356#ifdef __cplusplus
25357extern "C"
25358#endif
25359char SSL_VersionRangeSet ();
25360int main (void)
25361{
25362return SSL_VersionRangeSet ();
25363 ;
25364 return 0;
25365}
25366_ACEOF
25367if ac_fn_c_try_link "$LINENO"; then :
25368 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25369else
25370 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25371fi
25372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
25374LIBS=$ac_check_lib_save_LIBS
25375fi
25376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25377$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25378if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25379
25380
25381$as_echo "#define USE_NSS 1" >>confdefs.h
25382
25383 USE_NSS=1
25384
25385 USE_NSS="yes"
25386 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025387 ssl_msg="NSS"
25388 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025389
25390else
25391
25392 LDFLAGS="$CLEANLDFLAGS"
25393 LIBS="$CLEANLIBS"
25394 CPPFLAGS="$CLEANCPPFLAGS"
25395
25396fi
25397
25398
25399 if test "x$USE_NSS" = "xyes"; then
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25401$as_echo "$as_me: detected NSS version $version" >&6;}
25402
Elliott Hughescac39802018-04-27 16:19:43 -070025403 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25404if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25405
25406
25407$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25408
25409
25410fi
25411
25412
Elliott Hughes82be86d2017-09-20 17:00:17 -070025413 NSS_LIBS=$addlib
25414
25415
25416 if test "x$cross_compiling" != "xyes"; then
25417 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25418 export LD_LIBRARY_PATH
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25420$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25421 fi
25422
25423 fi
25424 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025425 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025426fi
Alex Deymo486467e2017-12-19 19:04:07 +010025427
Elliott Hughes82be86d2017-09-20 17:00:17 -070025428OPT_AXTLS=off
25429
25430
25431# Check whether --with-axtls was given.
25432if test "${with_axtls+set}" = set; then :
25433 withval=$with_axtls; OPT_AXTLS=$withval
25434fi
25435
25436
Alex Deymo486467e2017-12-19 19:04:07 +010025437if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25438 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025439 if test X"$OPT_AXTLS" != Xno; then
25440 CLEANLDFLAGS="$LDFLAGS"
25441 CLEANCPPFLAGS="$CPPFLAGS"
25442 CLEANLIBS="$LIBS"
25443
25444 case "$OPT_AXTLS" in
25445 yes)
25446 PREFIX_AXTLS=/usr/local
25447 LIB_AXTLS="$PREFIX_AXTLS/lib"
25448 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25449 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25450 ;;
25451 off)
25452 PREFIX_AXTLS=
25453 ;;
25454 *)
25455 PREFIX_AXTLS=$OPT_AXTLS
25456 LIB_AXTLS="$PREFIX_AXTLS/lib"
25457 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25458 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25459 ;;
25460 esac
25461
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25463$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25464if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25465 $as_echo_n "(cached) " >&6
25466else
25467 ac_check_lib_save_LIBS=$LIBS
25468LIBS="-laxtls $LIBS"
25469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470/* end confdefs.h. */
25471
25472
25473#ifdef __cplusplus
25474extern "C"
25475#endif
25476char ssl_version ();
25477int main (void)
25478{
25479return ssl_version ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
25484if ac_fn_c_try_link "$LINENO"; then :
25485 ac_cv_lib_axtls_ssl_version=yes
25486else
25487 ac_cv_lib_axtls_ssl_version=no
25488fi
25489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
25491LIBS=$ac_check_lib_save_LIBS
25492fi
25493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25494$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25495if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25496
25497 LIBS="-laxtls $LIBS"
25498
25499$as_echo "#define USE_AXTLS 1" >>confdefs.h
25500
25501 USE_AXTLS=1
25502
25503 AXTLS_ENABLED=1
25504 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025505 ssl_msg="axTLS"
25506 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025507
25508 if test "x$cross_compiling" != "xyes"; then
25509 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25510 export LD_LIBRARY_PATH
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25512$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25513 fi
25514
25515else
25516
25517 LDFLAGS="$CLEANLDFLAGS"
25518 CPPFLAGS="$CLEANCPPFLAGS"
25519 LIBS="$CLEANLIBS"
25520
25521fi
25522
25523 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025524 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025525fi
25526
Alex Deymo486467e2017-12-19 19:04:07 +010025527case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25528x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25530$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25531 { $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
25532$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025533 ;;
25534x1)
25535 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025536
25537 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025538 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25539$as_echo "$as_me: built with one SSL backend" >&6;}
25540 ;;
25541*)
25542 # more than one SSL backend is enabled
25543
25544 SSL_ENABLED="1"
25545
25546 CURL_WITH_MULTI_SSL="1"
25547
25548$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25551$as_echo "$as_me: built with multiple SSL backends" >&6;}
25552 ;;
25553esac
25554
25555if test -n "$ssl_backends"; then
25556 curl_ssl_msg="enabled ($ssl_backends)"
25557fi
25558
25559if test no = "$VALID_DEFAULT_SSL_BACKEND"
25560then
25561 if test -n "$SSL_ENABLED"
25562 then
25563 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25564 else
25565 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25566 fi
25567elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25568then
25569
25570cat >>confdefs.h <<_ACEOF
25571#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25572_ACEOF
25573
Elliott Hughes82be86d2017-09-20 17:00:17 -070025574fi
25575
25576
25577
25578
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25580$as_echo_n "checking default CA cert bundle/path... " >&6; }
25581
25582
25583# Check whether --with-ca-bundle was given.
25584if test "${with_ca_bundle+set}" = set; then :
25585 withval=$with_ca_bundle;
25586 want_ca="$withval"
25587 if test "x$want_ca" = "xyes"; then
25588 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25589 fi
25590
25591else
25592 want_ca="unset"
25593fi
25594
25595
25596# Check whether --with-ca-path was given.
25597if test "${with_ca_path+set}" = set; then :
25598 withval=$with_ca_path;
25599 want_capath="$withval"
25600 if test "x$want_capath" = "xyes"; then
25601 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25602 fi
25603
25604else
25605 want_capath="unset"
25606fi
25607
25608
25609 ca_warning=" (warning: certs not found)"
25610 capath_warning=" (warning: certs not found)"
25611 check_capath=""
25612
25613 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25614 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25615 ca="$want_ca"
25616 capath="$want_capath"
25617 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25618 ca="$want_ca"
25619 capath="no"
25620 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25621 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25622 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25623 fi
25624 capath="$want_capath"
25625 ca="no"
25626 else
25627 ca="no"
25628 capath="no"
25629 if test "x$cross_compiling" != "xyes"; then
25630 if test "x$want_ca" = "xunset"; then
25631 if test "x$prefix" != xNONE; then
25632 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25633 else
25634 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25635 fi
25636
25637 for a in /etc/ssl/certs/ca-certificates.crt \
25638 /etc/pki/tls/certs/ca-bundle.crt \
25639 /usr/share/ssl/certs/ca-bundle.crt \
25640 /usr/local/share/certs/ca-root-nss.crt \
25641 /etc/ssl/cert.pem \
25642 "$cac"; do
25643 if test -f "$a"; then
25644 ca="$a"
25645 break
25646 fi
25647 done
25648 fi
25649 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25650 "x$OPENSSL_ENABLED" = "x1"; then
25651 check_capath="/etc/ssl/certs/"
25652 fi
25653 else
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25655$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25656 fi
25657 fi
25658
25659 if test "x$ca" = "xno" || test -f "$ca"; then
25660 ca_warning=""
25661 fi
25662
25663 if test "x$capath" != "xno"; then
25664 check_capath="$capath"
25665 fi
25666
25667 if test ! -z "$check_capath"; then
25668 for a in "$check_capath"; do
25669 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
25670 if test "x$capath" = "xno"; then
25671 capath="$a"
25672 fi
25673 capath_warning=""
25674 break
25675 fi
25676 done
25677 fi
25678
25679 if test "x$capath" = "xno"; then
25680 capath_warning=""
25681 fi
25682
25683 if test "x$ca" != "xno"; then
25684 CURL_CA_BUNDLE='"'$ca'"'
25685
25686cat >>confdefs.h <<_ACEOF
25687#define CURL_CA_BUNDLE "$ca"
25688_ACEOF
25689
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25692$as_echo "$ca" >&6; }
25693 fi
25694 if test "x$capath" != "xno"; then
25695 CURL_CA_PATH="\"$capath\""
25696
25697cat >>confdefs.h <<_ACEOF
25698#define CURL_CA_PATH "$capath"
25699_ACEOF
25700
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25702$as_echo "$capath (capath)" >&6; }
25703 fi
25704 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25706$as_echo "no" >&6; }
25707 fi
25708
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25710$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25711
25712# Check whether --with-ca-fallback was given.
25713if test "${with_ca_fallback+set}" = set; then :
25714 withval=$with_ca_fallback;
25715 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25716 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25717 fi
25718
25719else
25720 with_ca_fallback="no"
25721fi
25722
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25724$as_echo "$with_ca_fallback" >&6; }
25725 if test "x$with_ca_fallback" = "xyes"; then
25726 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25727 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25728 fi
25729
25730cat >>confdefs.h <<_ACEOF
25731#define CURL_CA_FALLBACK 1
25732_ACEOF
25733
25734 fi
25735
25736
25737
25738
25739# Check whether --with-libpsl was given.
25740if test "${with_libpsl+set}" = set; then :
25741 withval=$with_libpsl; with_libpsl=$withval
25742else
25743 with_libpsl=yes
25744fi
25745
25746if test $with_libpsl != "no"; then
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25748$as_echo_n "checking for library containing psl_builtin... " >&6; }
25749if ${ac_cv_search_psl_builtin+:} false; then :
25750 $as_echo_n "(cached) " >&6
25751else
25752 ac_func_search_save_LIBS=$LIBS
25753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25754/* end confdefs.h. */
25755
25756
25757#ifdef __cplusplus
25758extern "C"
25759#endif
25760char psl_builtin ();
25761int main (void)
25762{
25763return psl_builtin ();
25764 ;
25765 return 0;
25766}
25767_ACEOF
25768for ac_lib in '' psl; do
25769 if test -z "$ac_lib"; then
25770 ac_res="none required"
25771 else
25772 ac_res=-l$ac_lib
25773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25774 fi
25775 if ac_fn_c_try_link "$LINENO"; then :
25776 ac_cv_search_psl_builtin=$ac_res
25777fi
25778rm -f core conftest.err conftest.$ac_objext \
25779 conftest$ac_exeext
25780 if ${ac_cv_search_psl_builtin+:} false; then :
25781 break
25782fi
25783done
25784if ${ac_cv_search_psl_builtin+:} false; then :
25785
25786else
25787 ac_cv_search_psl_builtin=no
25788fi
25789rm conftest.$ac_ext
25790LIBS=$ac_func_search_save_LIBS
25791fi
25792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25793$as_echo "$ac_cv_search_psl_builtin" >&6; }
25794ac_res=$ac_cv_search_psl_builtin
25795if test "$ac_res" != no; then :
25796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25797 curl_psl_msg="yes";
25798
25799$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25800
25801
25802else
25803 curl_psl_msg="no (libpsl not found)";
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25805$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25806
25807
25808fi
25809
25810fi
25811 if test "$curl_psl_msg" = "yes"; then
25812 USE_LIBPSL_TRUE=
25813 USE_LIBPSL_FALSE='#'
25814else
25815 USE_LIBPSL_TRUE='#'
25816 USE_LIBPSL_FALSE=
25817fi
25818
25819
25820
25821OPT_LIBMETALINK=no
25822
25823
25824# Check whether --with-libmetalink was given.
25825if test "${with_libmetalink+set}" = set; then :
25826 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25827fi
25828
25829
25830if test X"$OPT_LIBMETALINK" != Xno; then
25831
25832 addld=""
25833 addlib=""
25834 addcflags=""
25835 version=""
25836 libmetalinklib=""
25837
25838 PKGTEST="no"
25839 if test "x$OPT_LIBMETALINK" = "xyes"; then
25840 PKGTEST="yes"
25841
25842 if test -n "$PKG_CONFIG"; then
25843 PKGCONFIG="$PKG_CONFIG"
25844 else
25845 if test -n "$ac_tool_prefix"; then
25846 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25847set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25849$as_echo_n "checking for $ac_word... " >&6; }
25850if ${ac_cv_path_PKGCONFIG+:} false; then :
25851 $as_echo_n "(cached) " >&6
25852else
25853 case $PKGCONFIG in
25854 [\\/]* | ?:[\\/]*)
25855 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25856 ;;
25857 *)
25858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25859as_dummy="$PATH:/usr/bin:/usr/local/bin"
25860for as_dir in $as_dummy
25861do
25862 IFS=$as_save_IFS
25863 test -z "$as_dir" && as_dir=.
25864 for ac_exec_ext in '' $ac_executable_extensions; do
25865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25866 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25868 break 2
25869 fi
25870done
25871 done
25872IFS=$as_save_IFS
25873
25874 ;;
25875esac
25876fi
25877PKGCONFIG=$ac_cv_path_PKGCONFIG
25878if test -n "$PKGCONFIG"; then
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25880$as_echo "$PKGCONFIG" >&6; }
25881else
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883$as_echo "no" >&6; }
25884fi
25885
25886
25887fi
25888if test -z "$ac_cv_path_PKGCONFIG"; then
25889 ac_pt_PKGCONFIG=$PKGCONFIG
25890 # Extract the first word of "pkg-config", so it can be a program name with args.
25891set dummy pkg-config; ac_word=$2
25892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25893$as_echo_n "checking for $ac_word... " >&6; }
25894if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25895 $as_echo_n "(cached) " >&6
25896else
25897 case $ac_pt_PKGCONFIG in
25898 [\\/]* | ?:[\\/]*)
25899 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25900 ;;
25901 *)
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903as_dummy="$PATH:/usr/bin:/usr/local/bin"
25904for as_dir in $as_dummy
25905do
25906 IFS=$as_save_IFS
25907 test -z "$as_dir" && as_dir=.
25908 for ac_exec_ext in '' $ac_executable_extensions; do
25909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25910 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25912 break 2
25913 fi
25914done
25915 done
25916IFS=$as_save_IFS
25917
25918 ;;
25919esac
25920fi
25921ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25922if test -n "$ac_pt_PKGCONFIG"; then
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25924$as_echo "$ac_pt_PKGCONFIG" >&6; }
25925else
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25927$as_echo "no" >&6; }
25928fi
25929
25930 if test "x$ac_pt_PKGCONFIG" = x; then
25931 PKGCONFIG="no"
25932 else
25933 case $cross_compiling:$ac_tool_warned in
25934yes:)
25935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25937ac_tool_warned=yes ;;
25938esac
25939 PKGCONFIG=$ac_pt_PKGCONFIG
25940 fi
25941else
25942 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25943fi
25944
25945 fi
25946
25947 if test "x$PKGCONFIG" != "xno"; then
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25949$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25950 itexists=`
25951 if test -n ""; then
25952 PKG_CONFIG_LIBDIR=""
25953 export PKG_CONFIG_LIBDIR
25954 fi
25955 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25956
25957 if test -z "$itexists"; then
25958 PKGCONFIG="no"
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25960$as_echo "no" >&6; }
25961 else
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25963$as_echo "found" >&6; }
25964 fi
25965 fi
25966
25967 else
25968 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25970$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25971 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25972 PKGTEST="yes"
25973 fi
25974 if test "$PKGTEST" = "yes"; then
25975
25976 if test -n "$PKG_CONFIG"; then
25977 PKGCONFIG="$PKG_CONFIG"
25978 else
25979 if test -n "$ac_tool_prefix"; then
25980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25981set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25983$as_echo_n "checking for $ac_word... " >&6; }
25984if ${ac_cv_path_PKGCONFIG+:} false; then :
25985 $as_echo_n "(cached) " >&6
25986else
25987 case $PKGCONFIG in
25988 [\\/]* | ?:[\\/]*)
25989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25990 ;;
25991 *)
25992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993as_dummy="$PATH:/usr/bin:/usr/local/bin"
25994for as_dir in $as_dummy
25995do
25996 IFS=$as_save_IFS
25997 test -z "$as_dir" && as_dir=.
25998 for ac_exec_ext in '' $ac_executable_extensions; do
25999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26000 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26002 break 2
26003 fi
26004done
26005 done
26006IFS=$as_save_IFS
26007
26008 ;;
26009esac
26010fi
26011PKGCONFIG=$ac_cv_path_PKGCONFIG
26012if test -n "$PKGCONFIG"; then
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26014$as_echo "$PKGCONFIG" >&6; }
26015else
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017$as_echo "no" >&6; }
26018fi
26019
26020
26021fi
26022if test -z "$ac_cv_path_PKGCONFIG"; then
26023 ac_pt_PKGCONFIG=$PKGCONFIG
26024 # Extract the first word of "pkg-config", so it can be a program name with args.
26025set dummy pkg-config; ac_word=$2
26026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027$as_echo_n "checking for $ac_word... " >&6; }
26028if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26029 $as_echo_n "(cached) " >&6
26030else
26031 case $ac_pt_PKGCONFIG in
26032 [\\/]* | ?:[\\/]*)
26033 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26034 ;;
26035 *)
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037as_dummy="$PATH:/usr/bin:/usr/local/bin"
26038for as_dir in $as_dummy
26039do
26040 IFS=$as_save_IFS
26041 test -z "$as_dir" && as_dir=.
26042 for ac_exec_ext in '' $ac_executable_extensions; do
26043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26044 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26046 break 2
26047 fi
26048done
26049 done
26050IFS=$as_save_IFS
26051
26052 ;;
26053esac
26054fi
26055ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26056if test -n "$ac_pt_PKGCONFIG"; then
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26058$as_echo "$ac_pt_PKGCONFIG" >&6; }
26059else
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26061$as_echo "no" >&6; }
26062fi
26063
26064 if test "x$ac_pt_PKGCONFIG" = x; then
26065 PKGCONFIG="no"
26066 else
26067 case $cross_compiling:$ac_tool_warned in
26068yes:)
26069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26071ac_tool_warned=yes ;;
26072esac
26073 PKGCONFIG=$ac_pt_PKGCONFIG
26074 fi
26075else
26076 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26077fi
26078
26079 fi
26080
26081 if test "x$PKGCONFIG" != "xno"; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26083$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26084 itexists=`
26085 if test -n "$LIBMETALINK_PCDIR"; then
26086 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26087 export PKG_CONFIG_LIBDIR
26088 fi
26089 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26090
26091 if test -z "$itexists"; then
26092 PKGCONFIG="no"
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094$as_echo "no" >&6; }
26095 else
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26097$as_echo "found" >&6; }
26098 fi
26099 fi
26100
26101 fi
26102 fi
26103 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26104 addlib=`
26105 if test -n "$LIBMETALINK_PCDIR"; then
26106 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26107 export PKG_CONFIG_LIBDIR
26108 fi
26109 $PKGCONFIG --libs-only-l libmetalink`
26110 addld=`
26111 if test -n "$LIBMETALINK_PCDIR"; then
26112 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26113 export PKG_CONFIG_LIBDIR
26114 fi
26115 $PKGCONFIG --libs-only-L libmetalink`
26116 addcflags=`
26117 if test -n "$LIBMETALINK_PCDIR"; then
26118 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26119 export PKG_CONFIG_LIBDIR
26120 fi
26121 $PKGCONFIG --cflags-only-I libmetalink`
26122 version=`
26123 if test -n "$LIBMETALINK_PCDIR"; then
26124 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26125 export PKG_CONFIG_LIBDIR
26126 fi
26127 $PKGCONFIG --modversion libmetalink`
26128 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26129 fi
26130 if test -n "$addlib"; then
26131
26132 clean_CPPFLAGS="$CPPFLAGS"
26133 clean_LDFLAGS="$LDFLAGS"
26134 clean_LIBS="$LIBS"
26135 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26136 LDFLAGS="$clean_LDFLAGS $addld"
26137 LIBS="$addlib $clean_LIBS"
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26139$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141/* end confdefs.h. */
26142
26143
26144# include <metalink/metalink.h>
26145
26146int main (void)
26147{
26148
26149 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26150 return 1;
26151
26152 ;
26153 return 0;
26154}
26155
26156_ACEOF
26157if ac_fn_c_try_link "$LINENO"; then :
26158
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26160$as_echo "yes ($version)" >&6; }
26161 want_metalink="yes"
26162
26163else
26164
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26166$as_echo "no ($version)" >&6; }
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26168$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26169 want_metalink="no"
26170
26171fi
26172rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174 CPPFLAGS="$clean_CPPFLAGS"
26175 LDFLAGS="$clean_LDFLAGS"
26176 LIBS="$clean_LIBS"
26177 if test "$want_metalink" = "yes"; then
26178
26179$as_echo "#define USE_METALINK 1" >>confdefs.h
26180
26181 LIBMETALINK_LIBS=$addlib
26182 LIBMETALINK_LDFLAGS=$addld
26183 LIBMETALINK_CPPFLAGS=$addcflags
26184
26185
26186
26187 curl_mtlnk_msg="enabled"
26188 fi
26189
26190 fi
26191fi
26192
26193
26194OPT_LIBSSH2=off
26195
26196# Check whether --with-libssh2 was given.
26197if test "${with_libssh2+set}" = set; then :
26198 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026199else
26200 OPT_LIBSSH2=no
26201fi
26202
26203
26204
26205OPT_LIBSSH=off
26206
26207# Check whether --with-libssh was given.
26208if test "${with_libssh+set}" = set; then :
26209 withval=$with_libssh; OPT_LIBSSH=$withval
26210else
26211 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026212fi
26213
26214
26215if test X"$OPT_LIBSSH2" != Xno; then
26216 CLEANLDFLAGS="$LDFLAGS"
26217 CLEANCPPFLAGS="$CPPFLAGS"
26218 CLEANLIBS="$LIBS"
26219
26220 case "$OPT_LIBSSH2" in
26221 yes)
26222
26223 if test -n "$PKG_CONFIG"; then
26224 PKGCONFIG="$PKG_CONFIG"
26225 else
26226 if test -n "$ac_tool_prefix"; then
26227 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26228set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26230$as_echo_n "checking for $ac_word... " >&6; }
26231if ${ac_cv_path_PKGCONFIG+:} false; then :
26232 $as_echo_n "(cached) " >&6
26233else
26234 case $PKGCONFIG in
26235 [\\/]* | ?:[\\/]*)
26236 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26237 ;;
26238 *)
26239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26240as_dummy="$PATH:/usr/bin:/usr/local/bin"
26241for as_dir in $as_dummy
26242do
26243 IFS=$as_save_IFS
26244 test -z "$as_dir" && as_dir=.
26245 for ac_exec_ext in '' $ac_executable_extensions; do
26246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26247 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26249 break 2
26250 fi
26251done
26252 done
26253IFS=$as_save_IFS
26254
26255 ;;
26256esac
26257fi
26258PKGCONFIG=$ac_cv_path_PKGCONFIG
26259if test -n "$PKGCONFIG"; then
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26261$as_echo "$PKGCONFIG" >&6; }
26262else
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26264$as_echo "no" >&6; }
26265fi
26266
26267
26268fi
26269if test -z "$ac_cv_path_PKGCONFIG"; then
26270 ac_pt_PKGCONFIG=$PKGCONFIG
26271 # Extract the first word of "pkg-config", so it can be a program name with args.
26272set dummy pkg-config; ac_word=$2
26273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26274$as_echo_n "checking for $ac_word... " >&6; }
26275if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26276 $as_echo_n "(cached) " >&6
26277else
26278 case $ac_pt_PKGCONFIG in
26279 [\\/]* | ?:[\\/]*)
26280 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26281 ;;
26282 *)
26283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26284as_dummy="$PATH:/usr/bin:/usr/local/bin"
26285for as_dir in $as_dummy
26286do
26287 IFS=$as_save_IFS
26288 test -z "$as_dir" && as_dir=.
26289 for ac_exec_ext in '' $ac_executable_extensions; do
26290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26291 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26293 break 2
26294 fi
26295done
26296 done
26297IFS=$as_save_IFS
26298
26299 ;;
26300esac
26301fi
26302ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26303if test -n "$ac_pt_PKGCONFIG"; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26305$as_echo "$ac_pt_PKGCONFIG" >&6; }
26306else
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26308$as_echo "no" >&6; }
26309fi
26310
26311 if test "x$ac_pt_PKGCONFIG" = x; then
26312 PKGCONFIG="no"
26313 else
26314 case $cross_compiling:$ac_tool_warned in
26315yes:)
26316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26318ac_tool_warned=yes ;;
26319esac
26320 PKGCONFIG=$ac_pt_PKGCONFIG
26321 fi
26322else
26323 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26324fi
26325
26326 fi
26327
26328 if test "x$PKGCONFIG" != "xno"; then
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26330$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26331 itexists=`
26332 if test -n ""; then
26333 PKG_CONFIG_LIBDIR=""
26334 export PKG_CONFIG_LIBDIR
26335 fi
26336 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26337
26338 if test -z "$itexists"; then
26339 PKGCONFIG="no"
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26341$as_echo "no" >&6; }
26342 else
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26344$as_echo "found" >&6; }
26345 fi
26346 fi
26347
26348
26349 if test "$PKGCONFIG" != "no" ; then
26350 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26351 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26352 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26353 version=`$PKGCONFIG --modversion libssh2`
26354 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26355 fi
26356
26357 ;;
26358 off)
26359 ;;
26360 *)
26361 PREFIX_SSH2=$OPT_LIBSSH2
26362 ;;
26363 esac
26364
26365 if test -n "$PREFIX_SSH2"; then
26366 LIB_SSH2="-lssh2"
26367 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26368 CPP_SSH2=-I${PREFIX_SSH2}/include
26369 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26370 fi
26371
26372 LDFLAGS="$LDFLAGS $LD_SSH2"
26373 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26374 LIBS="$LIB_SSH2 $LIBS"
26375
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26377$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26378if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26379 $as_echo_n "(cached) " >&6
26380else
26381 ac_check_lib_save_LIBS=$LIBS
26382LIBS="-lssh2 $LIBS"
26383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26384/* end confdefs.h. */
26385
26386
26387#ifdef __cplusplus
26388extern "C"
26389#endif
26390char libssh2_channel_open_ex ();
26391int main (void)
26392{
26393return libssh2_channel_open_ex ();
26394 ;
26395 return 0;
26396}
26397_ACEOF
26398if ac_fn_c_try_link "$LINENO"; then :
26399 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26400else
26401 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26402fi
26403rm -f core conftest.err conftest.$ac_objext \
26404 conftest$ac_exeext conftest.$ac_ext
26405LIBS=$ac_check_lib_save_LIBS
26406fi
26407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26408$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26409if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26410 cat >>confdefs.h <<_ACEOF
26411#define HAVE_LIBSSH2 1
26412_ACEOF
26413
26414 LIBS="-lssh2 $LIBS"
26415
26416fi
26417
26418
26419 for ac_header in libssh2.h
26420do :
26421 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26422if test "x$ac_cv_header_libssh2_h" = xyes; then :
26423 cat >>confdefs.h <<_ACEOF
26424#define HAVE_LIBSSH2_H 1
26425_ACEOF
26426 curl_ssh_msg="enabled (libSSH2)"
26427 LIBSSH2_ENABLED=1
26428
26429$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26430
26431 USE_LIBSSH2=1
26432
26433
26434fi
26435
26436done
26437
26438
26439 if test X"$OPT_LIBSSH2" != Xoff &&
26440 test "$LIBSSH2_ENABLED" != "1"; then
26441 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26442 fi
26443
26444 if test "$LIBSSH2_ENABLED" = "1"; then
26445 if test -n "$DIR_SSH2"; then
26446
26447 if test "x$cross_compiling" != "xyes"; then
26448 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26449 export LD_LIBRARY_PATH
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26451$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26452 fi
26453 fi
26454 else
26455 LDFLAGS=$CLEANLDFLAGS
26456 CPPFLAGS=$CLEANCPPFLAGS
26457 LIBS=$CLEANLIBS
26458 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026459elif test X"$OPT_LIBSSH" != Xno; then
26460 CLEANLDFLAGS="$LDFLAGS"
26461 CLEANCPPFLAGS="$CPPFLAGS"
26462 CLEANLIBS="$LIBS"
26463
26464 case "$OPT_LIBSSH" in
26465 yes)
26466
26467 if test -n "$PKG_CONFIG"; then
26468 PKGCONFIG="$PKG_CONFIG"
26469 else
26470 if test -n "$ac_tool_prefix"; then
26471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26472set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26474$as_echo_n "checking for $ac_word... " >&6; }
26475if ${ac_cv_path_PKGCONFIG+:} false; then :
26476 $as_echo_n "(cached) " >&6
26477else
26478 case $PKGCONFIG in
26479 [\\/]* | ?:[\\/]*)
26480 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26481 ;;
26482 *)
26483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484as_dummy="$PATH:/usr/bin:/usr/local/bin"
26485for as_dir in $as_dummy
26486do
26487 IFS=$as_save_IFS
26488 test -z "$as_dir" && as_dir=.
26489 for ac_exec_ext in '' $ac_executable_extensions; do
26490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26491 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26493 break 2
26494 fi
26495done
26496 done
26497IFS=$as_save_IFS
26498
26499 ;;
26500esac
26501fi
26502PKGCONFIG=$ac_cv_path_PKGCONFIG
26503if test -n "$PKGCONFIG"; then
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26505$as_echo "$PKGCONFIG" >&6; }
26506else
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26508$as_echo "no" >&6; }
26509fi
26510
26511
26512fi
26513if test -z "$ac_cv_path_PKGCONFIG"; then
26514 ac_pt_PKGCONFIG=$PKGCONFIG
26515 # Extract the first word of "pkg-config", so it can be a program name with args.
26516set dummy pkg-config; ac_word=$2
26517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26518$as_echo_n "checking for $ac_word... " >&6; }
26519if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26520 $as_echo_n "(cached) " >&6
26521else
26522 case $ac_pt_PKGCONFIG in
26523 [\\/]* | ?:[\\/]*)
26524 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26525 ;;
26526 *)
26527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26528as_dummy="$PATH:/usr/bin:/usr/local/bin"
26529for as_dir in $as_dummy
26530do
26531 IFS=$as_save_IFS
26532 test -z "$as_dir" && as_dir=.
26533 for ac_exec_ext in '' $ac_executable_extensions; do
26534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26535 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26537 break 2
26538 fi
26539done
26540 done
26541IFS=$as_save_IFS
26542
26543 ;;
26544esac
26545fi
26546ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26547if test -n "$ac_pt_PKGCONFIG"; then
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26549$as_echo "$ac_pt_PKGCONFIG" >&6; }
26550else
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26552$as_echo "no" >&6; }
26553fi
26554
26555 if test "x$ac_pt_PKGCONFIG" = x; then
26556 PKGCONFIG="no"
26557 else
26558 case $cross_compiling:$ac_tool_warned in
26559yes:)
26560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26562ac_tool_warned=yes ;;
26563esac
26564 PKGCONFIG=$ac_pt_PKGCONFIG
26565 fi
26566else
26567 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26568fi
26569
26570 fi
26571
26572 if test "x$PKGCONFIG" != "xno"; then
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26574$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26575 itexists=`
26576 if test -n ""; then
26577 PKG_CONFIG_LIBDIR=""
26578 export PKG_CONFIG_LIBDIR
26579 fi
26580 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26581
26582 if test -z "$itexists"; then
26583 PKGCONFIG="no"
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585$as_echo "no" >&6; }
26586 else
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26588$as_echo "found" >&6; }
26589 fi
26590 fi
26591
26592
26593 if test "$PKGCONFIG" != "no" ; then
26594 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26595 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26596 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26597 version=`$PKGCONFIG --modversion libssh`
26598 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26599 fi
26600
26601 ;;
26602 off)
26603 ;;
26604 *)
26605 PREFIX_SSH=$OPT_LIBSSH
26606 ;;
26607 esac
26608
26609 if test -n "$PREFIX_SSH"; then
26610 LIB_SSH="-lssh"
26611 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26612 CPP_SSH=-I${PREFIX_SSH}/include
26613 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26614 fi
26615
26616 LDFLAGS="$LDFLAGS $LD_SSH"
26617 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26618 LIBS="$LIB_SSH $LIBS"
26619
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26621$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26622if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26623 $as_echo_n "(cached) " >&6
26624else
26625 ac_check_lib_save_LIBS=$LIBS
26626LIBS="-lssh $LIBS"
26627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628/* end confdefs.h. */
26629
26630
26631#ifdef __cplusplus
26632extern "C"
26633#endif
26634char ssh_new ();
26635int main (void)
26636{
26637return ssh_new ();
26638 ;
26639 return 0;
26640}
26641_ACEOF
26642if ac_fn_c_try_link "$LINENO"; then :
26643 ac_cv_lib_ssh_ssh_new=yes
26644else
26645 ac_cv_lib_ssh_ssh_new=no
26646fi
26647rm -f core conftest.err conftest.$ac_objext \
26648 conftest$ac_exeext conftest.$ac_ext
26649LIBS=$ac_check_lib_save_LIBS
26650fi
26651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26652$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26653if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26654 cat >>confdefs.h <<_ACEOF
26655#define HAVE_LIBSSH 1
26656_ACEOF
26657
26658 LIBS="-lssh $LIBS"
26659
26660fi
26661
26662
26663 for ac_header in libssh/libssh.h
26664do :
26665 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26666if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26667 cat >>confdefs.h <<_ACEOF
26668#define HAVE_LIBSSH_LIBSSH_H 1
26669_ACEOF
26670 curl_ssh_msg="enabled (libSSH)"
26671 LIBSSH_ENABLED=1
26672
26673$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26674
26675 USE_LIBSSH=1
26676
26677
26678fi
26679
26680done
26681
26682
26683 if test X"$OPT_LIBSSH" != Xoff &&
26684 test "$LIBSSH_ENABLED" != "1"; then
26685 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26686 fi
26687
26688 if test "$LIBSSH_ENABLED" = "1"; then
26689 if test -n "$DIR_SSH"; then
26690
26691 if test "x$cross_compiling" != "xyes"; then
26692 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH"
26693 export LD_LIBRARY_PATH
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to LD_LIBRARY_PATH" >&5
26695$as_echo "$as_me: Added $DIR_SSH to LD_LIBRARY_PATH" >&6;}
26696 fi
26697 fi
26698 else
26699 LDFLAGS=$CLEANLDFLAGS
26700 CPPFLAGS=$CLEANCPPFLAGS
26701 LIBS=$CLEANLIBS
26702 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026703fi
26704
26705
26706OPT_LIBRTMP=off
26707
26708# Check whether --with-librtmp was given.
26709if test "${with_librtmp+set}" = set; then :
26710 withval=$with_librtmp; OPT_LIBRTMP=$withval
26711fi
26712
26713
26714if test X"$OPT_LIBRTMP" != Xno; then
26715 CLEANLDFLAGS="$LDFLAGS"
26716 CLEANCPPFLAGS="$CPPFLAGS"
26717 CLEANLIBS="$LIBS"
26718
26719 case "$OPT_LIBRTMP" in
26720 yes)
26721
26722 if test -n "$PKG_CONFIG"; then
26723 PKGCONFIG="$PKG_CONFIG"
26724 else
26725 if test -n "$ac_tool_prefix"; then
26726 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26727set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26729$as_echo_n "checking for $ac_word... " >&6; }
26730if ${ac_cv_path_PKGCONFIG+:} false; then :
26731 $as_echo_n "(cached) " >&6
26732else
26733 case $PKGCONFIG in
26734 [\\/]* | ?:[\\/]*)
26735 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26736 ;;
26737 *)
26738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26739as_dummy="$PATH:/usr/bin:/usr/local/bin"
26740for as_dir in $as_dummy
26741do
26742 IFS=$as_save_IFS
26743 test -z "$as_dir" && as_dir=.
26744 for ac_exec_ext in '' $ac_executable_extensions; do
26745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26746 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26748 break 2
26749 fi
26750done
26751 done
26752IFS=$as_save_IFS
26753
26754 ;;
26755esac
26756fi
26757PKGCONFIG=$ac_cv_path_PKGCONFIG
26758if test -n "$PKGCONFIG"; then
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26760$as_echo "$PKGCONFIG" >&6; }
26761else
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26763$as_echo "no" >&6; }
26764fi
26765
26766
26767fi
26768if test -z "$ac_cv_path_PKGCONFIG"; then
26769 ac_pt_PKGCONFIG=$PKGCONFIG
26770 # Extract the first word of "pkg-config", so it can be a program name with args.
26771set dummy pkg-config; ac_word=$2
26772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26773$as_echo_n "checking for $ac_word... " >&6; }
26774if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776else
26777 case $ac_pt_PKGCONFIG in
26778 [\\/]* | ?:[\\/]*)
26779 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26780 ;;
26781 *)
26782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26783as_dummy="$PATH:/usr/bin:/usr/local/bin"
26784for as_dir in $as_dummy
26785do
26786 IFS=$as_save_IFS
26787 test -z "$as_dir" && as_dir=.
26788 for ac_exec_ext in '' $ac_executable_extensions; do
26789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26790 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26792 break 2
26793 fi
26794done
26795 done
26796IFS=$as_save_IFS
26797
26798 ;;
26799esac
26800fi
26801ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26802if test -n "$ac_pt_PKGCONFIG"; then
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26804$as_echo "$ac_pt_PKGCONFIG" >&6; }
26805else
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26807$as_echo "no" >&6; }
26808fi
26809
26810 if test "x$ac_pt_PKGCONFIG" = x; then
26811 PKGCONFIG="no"
26812 else
26813 case $cross_compiling:$ac_tool_warned in
26814yes:)
26815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26817ac_tool_warned=yes ;;
26818esac
26819 PKGCONFIG=$ac_pt_PKGCONFIG
26820 fi
26821else
26822 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26823fi
26824
26825 fi
26826
26827 if test "x$PKGCONFIG" != "xno"; then
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26829$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26830 itexists=`
26831 if test -n ""; then
26832 PKG_CONFIG_LIBDIR=""
26833 export PKG_CONFIG_LIBDIR
26834 fi
26835 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26836
26837 if test -z "$itexists"; then
26838 PKGCONFIG="no"
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26840$as_echo "no" >&6; }
26841 else
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26843$as_echo "found" >&6; }
26844 fi
26845 fi
26846
26847
26848 if test "$PKGCONFIG" != "no" ; then
26849 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26850 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26851 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26852 version=`$PKGCONFIG --modversion librtmp`
26853 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26854 else
26855 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26856 fi
26857
26858 ;;
26859 off)
26860 LIB_RTMP="-lrtmp"
26861 ;;
26862 *)
26863 LIB_RTMP="-lrtmp"
26864 PREFIX_RTMP=$OPT_LIBRTMP
26865 ;;
26866 esac
26867
26868 if test -n "$PREFIX_RTMP"; then
26869 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26870 CPP_RTMP=-I${PREFIX_RTMP}/include
26871 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26872 fi
26873
26874 LDFLAGS="$LDFLAGS $LD_RTMP"
26875 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26876 LIBS="$LIB_RTMP $LIBS"
26877
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26879$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26880if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26881 $as_echo_n "(cached) " >&6
26882else
26883 ac_check_lib_save_LIBS=$LIBS
26884LIBS="-lrtmp $LIBS"
26885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26886/* end confdefs.h. */
26887
26888
26889#ifdef __cplusplus
26890extern "C"
26891#endif
26892char RTMP_Init ();
26893int main (void)
26894{
26895return RTMP_Init ();
26896 ;
26897 return 0;
26898}
26899_ACEOF
26900if ac_fn_c_try_link "$LINENO"; then :
26901 ac_cv_lib_rtmp_RTMP_Init=yes
26902else
26903 ac_cv_lib_rtmp_RTMP_Init=no
26904fi
26905rm -f core conftest.err conftest.$ac_objext \
26906 conftest$ac_exeext conftest.$ac_ext
26907LIBS=$ac_check_lib_save_LIBS
26908fi
26909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26910$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26911if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26912
26913 for ac_header in librtmp/rtmp.h
26914do :
26915 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26916if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26917 cat >>confdefs.h <<_ACEOF
26918#define HAVE_LIBRTMP_RTMP_H 1
26919_ACEOF
26920 curl_rtmp_msg="enabled (librtmp)"
26921 LIBRTMP_ENABLED=1
26922
26923$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26924
26925 USE_LIBRTMP=1
26926
26927
26928fi
26929
26930done
26931
26932
26933else
26934 LDFLAGS=$CLEANLDFLAGS
26935 CPPFLAGS=$CLEANCPPFLAGS
26936 LIBS=$CLEANLIBS
26937
26938fi
26939
26940
26941 if test X"$OPT_LIBRTMP" != Xoff &&
26942 test "$LIBRTMP_ENABLED" != "1"; then
26943 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26944 fi
26945
26946fi
26947
26948
26949versioned_symbols_flavour=
26950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26951$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26952# Check whether --enable-versioned-symbols was given.
26953if test "${enable_versioned_symbols+set}" = set; then :
26954 enableval=$enable_versioned_symbols; case "$enableval" in
26955 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26956$as_echo "yes" >&6; }
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26958$as_echo_n "checking if libraries can be versioned... " >&6; }
26959 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26960 if test -z "$GLD"; then
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26962$as_echo "no" >&6; }
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26964$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26965 else
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26967$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026968 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26969 versioned_symbols_flavour="MULTISSL_"
26970 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026971 versioned_symbols_flavour="OPENSSL_"
26972 elif test "x$GNUTLS_ENABLED" = "x1"; then
26973 versioned_symbols_flavour="GNUTLS_"
26974 elif test "x$NSS_ENABLED" = "x1"; then
26975 versioned_symbols_flavour="NSS_"
26976 elif test "x$POLARSSL_ENABLED" = "x1"; then
26977 versioned_symbols_flavour="POLARSSL_"
26978 elif test "x$CYASSL_ENABLED" = "x1"; then
26979 versioned_symbols_flavour="CYASSL_"
26980 elif test "x$AXTLS_ENABLED" = "x1"; then
26981 versioned_symbols_flavour="AXTLS_"
26982 elif test "x$WINSSL_ENABLED" = "x1"; then
26983 versioned_symbols_flavour="WINSSL_"
26984 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26985 versioned_symbols_flavour="DARWINSSL_"
26986 else
26987 versioned_symbols_flavour=""
26988 fi
26989 versioned_symbols="yes"
26990 fi
26991 ;;
26992
26993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26994$as_echo "no" >&6; }
26995 ;;
26996 esac
26997
26998else
26999
27000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27001$as_echo "no" >&6; }
27002
27003
27004fi
27005
27006
27007CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27008
27009 if test "x$versioned_symbols" = 'xyes'; then
27010 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27011 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27012else
27013 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27014 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27015fi
27016
27017
27018
27019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27020$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27021OPT_WINIDN="default"
27022
27023# Check whether --with-winidn was given.
27024if test "${with_winidn+set}" = set; then :
27025 withval=$with_winidn; OPT_WINIDN=$withval
27026fi
27027
27028case "$OPT_WINIDN" in
27029 no|default)
27030 want_winidn="no"
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032$as_echo "no" >&6; }
27033 ;;
27034 yes)
27035 want_winidn="yes"
27036 want_winidn_path="default"
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27038$as_echo "yes" >&6; }
27039 ;;
27040 *)
27041 want_winidn="yes"
27042 want_winidn_path="$withval"
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27044$as_echo "yes ($withval)" >&6; }
27045 ;;
27046esac
27047
27048if test "$want_winidn" = "yes"; then
27049 clean_CPPFLAGS="$CPPFLAGS"
27050 clean_LDFLAGS="$LDFLAGS"
27051 clean_LIBS="$LIBS"
27052 WINIDN_LIBS="-lnormaliz"
27053 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27054 #
27055 if test "$want_winidn_path" != "default"; then
27056 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27057 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27058 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27059 fi
27060 #
27061 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27062 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27063 LIBS="$WINIDN_LIBS $LIBS"
27064 #
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27066$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27068/* end confdefs.h. */
27069
27070
27071 #include <windows.h>
27072
27073int main (void)
27074{
27075
27076 IdnToUnicode(0, NULL, 0, NULL, 0);
27077
27078 ;
27079 return 0;
27080}
27081
27082_ACEOF
27083if ac_fn_c_try_link "$LINENO"; then :
27084
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086$as_echo "yes" >&6; }
27087 tst_links_winidn="yes"
27088
27089else
27090
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27092$as_echo "no" >&6; }
27093 tst_links_winidn="no"
27094
27095fi
27096rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27098 #
27099 if test "$tst_links_winidn" = "yes"; then
27100
27101$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27102
27103
27104$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27105
27106 IDN_ENABLED=1
27107
27108 curl_idn_msg="enabled (Windows-native)"
27109 else
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27111$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27112 CPPFLAGS="$clean_CPPFLAGS"
27113 LDFLAGS="$clean_LDFLAGS"
27114 LIBS="$clean_LIBS"
27115 fi
27116fi
27117
27118
27119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27120$as_echo_n "checking whether to build with libidn2... " >&6; }
27121OPT_IDN="default"
27122
27123# Check whether --with-libidn2 was given.
27124if test "${with_libidn2+set}" = set; then :
27125 withval=$with_libidn2; OPT_IDN=$withval
27126fi
27127
27128case "$OPT_IDN" in
27129 no)
27130 want_idn="no"
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27132$as_echo "no" >&6; }
27133 ;;
27134 default)
27135 want_idn="yes"
27136 want_idn_path="default"
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27138$as_echo "(assumed) yes" >&6; }
27139 ;;
27140 yes)
27141 want_idn="yes"
27142 want_idn_path="default"
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27144$as_echo "yes" >&6; }
27145 ;;
27146 *)
27147 want_idn="yes"
27148 want_idn_path="$withval"
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27150$as_echo "yes ($withval)" >&6; }
27151 ;;
27152esac
27153
27154if test "$want_idn" = "yes"; then
27155 clean_CPPFLAGS="$CPPFLAGS"
27156 clean_LDFLAGS="$LDFLAGS"
27157 clean_LIBS="$LIBS"
27158 PKGCONFIG="no"
27159 #
27160 if test "$want_idn_path" != "default"; then
27161 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27162
27163 if test -n "$PKG_CONFIG"; then
27164 PKGCONFIG="$PKG_CONFIG"
27165 else
27166 if test -n "$ac_tool_prefix"; then
27167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27168set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27170$as_echo_n "checking for $ac_word... " >&6; }
27171if ${ac_cv_path_PKGCONFIG+:} false; then :
27172 $as_echo_n "(cached) " >&6
27173else
27174 case $PKGCONFIG in
27175 [\\/]* | ?:[\\/]*)
27176 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27177 ;;
27178 *)
27179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27180as_dummy="$PATH:/usr/bin:/usr/local/bin"
27181for as_dir in $as_dummy
27182do
27183 IFS=$as_save_IFS
27184 test -z "$as_dir" && as_dir=.
27185 for ac_exec_ext in '' $ac_executable_extensions; do
27186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27187 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27189 break 2
27190 fi
27191done
27192 done
27193IFS=$as_save_IFS
27194
27195 ;;
27196esac
27197fi
27198PKGCONFIG=$ac_cv_path_PKGCONFIG
27199if test -n "$PKGCONFIG"; then
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27201$as_echo "$PKGCONFIG" >&6; }
27202else
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27204$as_echo "no" >&6; }
27205fi
27206
27207
27208fi
27209if test -z "$ac_cv_path_PKGCONFIG"; then
27210 ac_pt_PKGCONFIG=$PKGCONFIG
27211 # Extract the first word of "pkg-config", so it can be a program name with args.
27212set dummy pkg-config; ac_word=$2
27213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27214$as_echo_n "checking for $ac_word... " >&6; }
27215if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27216 $as_echo_n "(cached) " >&6
27217else
27218 case $ac_pt_PKGCONFIG in
27219 [\\/]* | ?:[\\/]*)
27220 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27221 ;;
27222 *)
27223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27224as_dummy="$PATH:/usr/bin:/usr/local/bin"
27225for as_dir in $as_dummy
27226do
27227 IFS=$as_save_IFS
27228 test -z "$as_dir" && as_dir=.
27229 for ac_exec_ext in '' $ac_executable_extensions; do
27230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27231 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27233 break 2
27234 fi
27235done
27236 done
27237IFS=$as_save_IFS
27238
27239 ;;
27240esac
27241fi
27242ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27243if test -n "$ac_pt_PKGCONFIG"; then
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27245$as_echo "$ac_pt_PKGCONFIG" >&6; }
27246else
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248$as_echo "no" >&6; }
27249fi
27250
27251 if test "x$ac_pt_PKGCONFIG" = x; then
27252 PKGCONFIG="no"
27253 else
27254 case $cross_compiling:$ac_tool_warned in
27255yes:)
27256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27258ac_tool_warned=yes ;;
27259esac
27260 PKGCONFIG=$ac_pt_PKGCONFIG
27261 fi
27262else
27263 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27264fi
27265
27266 fi
27267
27268 if test "x$PKGCONFIG" != "xno"; then
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27270$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27271 itexists=`
27272 if test -n "$IDN_PCDIR"; then
27273 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27274 export PKG_CONFIG_LIBDIR
27275 fi
27276 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27277
27278 if test -z "$itexists"; then
27279 PKGCONFIG="no"
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27281$as_echo "no" >&6; }
27282 else
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27284$as_echo "found" >&6; }
27285 fi
27286 fi
27287
27288 if test "$PKGCONFIG" != "no"; then
27289 IDN_LIBS=`
27290 if test -n "$IDN_PCDIR"; then
27291 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27292 export PKG_CONFIG_LIBDIR
27293 fi
27294 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27295 IDN_LDFLAGS=`
27296 if test -n "$IDN_PCDIR"; then
27297 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27298 export PKG_CONFIG_LIBDIR
27299 fi
27300 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27301 IDN_CPPFLAGS=`
27302 if test -n "$IDN_PCDIR"; then
27303 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27304 export PKG_CONFIG_LIBDIR
27305 fi
27306 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27307 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27308 else
27309 IDN_LIBS="-lidn2"
27310 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27311 IDN_CPPFLAGS="-I$want_idn_path/include"
27312 IDN_DIR="$want_idn_path/lib$libsuff"
27313 fi
27314 else
27315
27316 if test -n "$PKG_CONFIG"; then
27317 PKGCONFIG="$PKG_CONFIG"
27318 else
27319 if test -n "$ac_tool_prefix"; then
27320 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27321set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27323$as_echo_n "checking for $ac_word... " >&6; }
27324if ${ac_cv_path_PKGCONFIG+:} false; then :
27325 $as_echo_n "(cached) " >&6
27326else
27327 case $PKGCONFIG in
27328 [\\/]* | ?:[\\/]*)
27329 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27330 ;;
27331 *)
27332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27333as_dummy="$PATH:/usr/bin:/usr/local/bin"
27334for as_dir in $as_dummy
27335do
27336 IFS=$as_save_IFS
27337 test -z "$as_dir" && as_dir=.
27338 for ac_exec_ext in '' $ac_executable_extensions; do
27339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27340 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27342 break 2
27343 fi
27344done
27345 done
27346IFS=$as_save_IFS
27347
27348 ;;
27349esac
27350fi
27351PKGCONFIG=$ac_cv_path_PKGCONFIG
27352if test -n "$PKGCONFIG"; then
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27354$as_echo "$PKGCONFIG" >&6; }
27355else
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27357$as_echo "no" >&6; }
27358fi
27359
27360
27361fi
27362if test -z "$ac_cv_path_PKGCONFIG"; then
27363 ac_pt_PKGCONFIG=$PKGCONFIG
27364 # Extract the first word of "pkg-config", so it can be a program name with args.
27365set dummy pkg-config; ac_word=$2
27366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27367$as_echo_n "checking for $ac_word... " >&6; }
27368if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27369 $as_echo_n "(cached) " >&6
27370else
27371 case $ac_pt_PKGCONFIG in
27372 [\\/]* | ?:[\\/]*)
27373 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27374 ;;
27375 *)
27376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377as_dummy="$PATH:/usr/bin:/usr/local/bin"
27378for as_dir in $as_dummy
27379do
27380 IFS=$as_save_IFS
27381 test -z "$as_dir" && as_dir=.
27382 for ac_exec_ext in '' $ac_executable_extensions; do
27383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27384 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27386 break 2
27387 fi
27388done
27389 done
27390IFS=$as_save_IFS
27391
27392 ;;
27393esac
27394fi
27395ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27396if test -n "$ac_pt_PKGCONFIG"; then
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27398$as_echo "$ac_pt_PKGCONFIG" >&6; }
27399else
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27401$as_echo "no" >&6; }
27402fi
27403
27404 if test "x$ac_pt_PKGCONFIG" = x; then
27405 PKGCONFIG="no"
27406 else
27407 case $cross_compiling:$ac_tool_warned in
27408yes:)
27409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27411ac_tool_warned=yes ;;
27412esac
27413 PKGCONFIG=$ac_pt_PKGCONFIG
27414 fi
27415else
27416 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27417fi
27418
27419 fi
27420
27421 if test "x$PKGCONFIG" != "xno"; then
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27423$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27424 itexists=`
27425 if test -n ""; then
27426 PKG_CONFIG_LIBDIR=""
27427 export PKG_CONFIG_LIBDIR
27428 fi
27429 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27430
27431 if test -z "$itexists"; then
27432 PKGCONFIG="no"
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434$as_echo "no" >&6; }
27435 else
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27437$as_echo "found" >&6; }
27438 fi
27439 fi
27440
27441 if test "$PKGCONFIG" != "no"; then
27442 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27443 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27444 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27445 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27446 else
27447 IDN_LIBS="-lidn2"
27448 fi
27449 fi
27450 #
27451 if test "$PKGCONFIG" != "no"; then
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27453$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27455$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27457$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27459$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27460 else
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27462$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27464$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27466$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27468$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27469 fi
27470 #
27471 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27472 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27473 LIBS="$IDN_LIBS $LIBS"
27474 #
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27476$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478/* end confdefs.h. */
27479
27480
27481#define idn2_lookup_ul innocuous_idn2_lookup_ul
27482#ifdef __STDC__
27483# include <limits.h>
27484#else
27485# include <assert.h>
27486#endif
27487#undef idn2_lookup_ul
27488#ifdef __cplusplus
27489extern "C"
27490#endif
27491char idn2_lookup_ul ();
27492#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27493choke me
27494#endif
27495
27496int main (void)
27497{
27498return idn2_lookup_ul ();
27499 ;
27500 return 0;
27501}
27502
27503_ACEOF
27504if ac_fn_c_try_link "$LINENO"; then :
27505
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27507$as_echo "yes" >&6; }
27508 tst_links_libidn="yes"
27509
27510else
27511
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513$as_echo "no" >&6; }
27514 tst_links_libidn="no"
27515
27516fi
27517rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27519 #
27520 for ac_header in idn2.h
27521do :
27522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27523ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27524if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27525 cat >>confdefs.h <<_ACEOF
27526#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27527_ACEOF
27528
27529fi
27530
27531done
27532
27533
27534 if test "$tst_links_libidn" = "yes"; then
27535
27536$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27537
27538
27539 IDN_ENABLED=1
27540
27541 curl_idn_msg="enabled (libidn2)"
27542 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27543 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27544 export LD_LIBRARY_PATH
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27546$as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27547 fi
27548 else
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27550$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27551 CPPFLAGS="$clean_CPPFLAGS"
27552 LDFLAGS="$clean_LDFLAGS"
27553 LIBS="$clean_LIBS"
27554 fi
27555fi
27556
27557
27558
27559
27560
27561OPT_H2="yes"
27562
27563if test "x$disable_http" = "xyes"; then
27564 # without HTTP, nghttp2 is no use
27565 OPT_H2="no"
27566fi
27567
27568
27569# Check whether --with-nghttp2 was given.
27570if test "${with_nghttp2+set}" = set; then :
27571 withval=$with_nghttp2; OPT_H2=$withval
27572fi
27573
27574case "$OPT_H2" in
27575 no)
27576 want_h2="no"
27577 ;;
27578 yes)
27579 want_h2="default"
27580 want_h2_path=""
27581 ;;
27582 *)
27583 want_h2="yes"
27584 want_h2_path="$withval/lib/pkgconfig"
27585 ;;
27586esac
27587
27588curl_h2_msg="disabled (--with-nghttp2)"
27589if test X"$want_h2" != Xno; then
27590 CLEANLDFLAGS="$LDFLAGS"
27591 CLEANCPPFLAGS="$CPPFLAGS"
27592 CLEANLIBS="$LIBS"
27593
27594
27595 if test -n "$PKG_CONFIG"; then
27596 PKGCONFIG="$PKG_CONFIG"
27597 else
27598 if test -n "$ac_tool_prefix"; then
27599 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27600set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27602$as_echo_n "checking for $ac_word... " >&6; }
27603if ${ac_cv_path_PKGCONFIG+:} false; then :
27604 $as_echo_n "(cached) " >&6
27605else
27606 case $PKGCONFIG in
27607 [\\/]* | ?:[\\/]*)
27608 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27609 ;;
27610 *)
27611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27612as_dummy="$PATH:/usr/bin:/usr/local/bin"
27613for as_dir in $as_dummy
27614do
27615 IFS=$as_save_IFS
27616 test -z "$as_dir" && as_dir=.
27617 for ac_exec_ext in '' $ac_executable_extensions; do
27618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27619 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27621 break 2
27622 fi
27623done
27624 done
27625IFS=$as_save_IFS
27626
27627 ;;
27628esac
27629fi
27630PKGCONFIG=$ac_cv_path_PKGCONFIG
27631if test -n "$PKGCONFIG"; then
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27633$as_echo "$PKGCONFIG" >&6; }
27634else
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27636$as_echo "no" >&6; }
27637fi
27638
27639
27640fi
27641if test -z "$ac_cv_path_PKGCONFIG"; then
27642 ac_pt_PKGCONFIG=$PKGCONFIG
27643 # Extract the first word of "pkg-config", so it can be a program name with args.
27644set dummy pkg-config; ac_word=$2
27645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27646$as_echo_n "checking for $ac_word... " >&6; }
27647if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27648 $as_echo_n "(cached) " >&6
27649else
27650 case $ac_pt_PKGCONFIG in
27651 [\\/]* | ?:[\\/]*)
27652 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27653 ;;
27654 *)
27655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656as_dummy="$PATH:/usr/bin:/usr/local/bin"
27657for as_dir in $as_dummy
27658do
27659 IFS=$as_save_IFS
27660 test -z "$as_dir" && as_dir=.
27661 for ac_exec_ext in '' $ac_executable_extensions; do
27662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27663 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27665 break 2
27666 fi
27667done
27668 done
27669IFS=$as_save_IFS
27670
27671 ;;
27672esac
27673fi
27674ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27675if test -n "$ac_pt_PKGCONFIG"; then
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27677$as_echo "$ac_pt_PKGCONFIG" >&6; }
27678else
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27680$as_echo "no" >&6; }
27681fi
27682
27683 if test "x$ac_pt_PKGCONFIG" = x; then
27684 PKGCONFIG="no"
27685 else
27686 case $cross_compiling:$ac_tool_warned in
27687yes:)
27688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27690ac_tool_warned=yes ;;
27691esac
27692 PKGCONFIG=$ac_pt_PKGCONFIG
27693 fi
27694else
27695 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27696fi
27697
27698 fi
27699
27700 if test "x$PKGCONFIG" != "xno"; then
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27702$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27703 itexists=`
27704 if test -n "$want_h2_path"; then
27705 PKG_CONFIG_LIBDIR="$want_h2_path"
27706 export PKG_CONFIG_LIBDIR
27707 fi
27708 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27709
27710 if test -z "$itexists"; then
27711 PKGCONFIG="no"
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713$as_echo "no" >&6; }
27714 else
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27716$as_echo "found" >&6; }
27717 fi
27718 fi
27719
27720
27721 if test "$PKGCONFIG" != "no" ; then
27722 LIB_H2=`
27723 if test -n "$want_h2_path"; then
27724 PKG_CONFIG_LIBDIR="$want_h2_path"
27725 export PKG_CONFIG_LIBDIR
27726 fi
27727
27728 $PKGCONFIG --libs-only-l libnghttp2`
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27730$as_echo "$as_me: -l is $LIB_H2" >&6;}
27731
27732 CPP_H2=`
27733 if test -n "$want_h2_path"; then
27734 PKG_CONFIG_LIBDIR="$want_h2_path"
27735 export PKG_CONFIG_LIBDIR
27736 fi
27737 $PKGCONFIG --cflags-only-I libnghttp2`
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27739$as_echo "$as_me: -I is $CPP_H2" >&6;}
27740
27741 LD_H2=`
27742 if test -n "$want_h2_path"; then
27743 PKG_CONFIG_LIBDIR="$want_h2_path"
27744 export PKG_CONFIG_LIBDIR
27745 fi
27746
27747 $PKGCONFIG --libs-only-L libnghttp2`
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27749$as_echo "$as_me: -L is $LD_H2" >&6;}
27750
27751 LDFLAGS="$LDFLAGS $LD_H2"
27752 CPPFLAGS="$CPPFLAGS $CPP_H2"
27753 LIBS="$LIB_H2 $LIBS"
27754
27755 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27756 # >= 1.0.0
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27758$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27759if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27760 $as_echo_n "(cached) " >&6
27761else
27762 ac_check_lib_save_LIBS=$LIBS
27763LIBS="-lnghttp2 $LIBS"
27764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765/* end confdefs.h. */
27766
27767
27768#ifdef __cplusplus
27769extern "C"
27770#endif
27771char nghttp2_option_set_no_recv_client_magic ();
27772int main (void)
27773{
27774return nghttp2_option_set_no_recv_client_magic ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
27779if ac_fn_c_try_link "$LINENO"; then :
27780 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27781else
27782 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27783fi
27784rm -f core conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext conftest.$ac_ext
27786LIBS=$ac_check_lib_save_LIBS
27787fi
27788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27789$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27790if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27791
27792 for ac_header in nghttp2/nghttp2.h
27793do :
27794 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27795if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27796 cat >>confdefs.h <<_ACEOF
27797#define HAVE_NGHTTP2_NGHTTP2_H 1
27798_ACEOF
27799 curl_h2_msg="enabled (nghttp2)"
27800 NGHTTP2_ENABLED=1
27801
27802$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27803
27804 USE_NGHTTP2=1
27805
27806
27807fi
27808
27809done
27810
27811
27812else
27813 LDFLAGS=$CLEANLDFLAGS
27814 CPPFLAGS=$CLEANCPPFLAGS
27815 LIBS=$CLEANLIBS
27816
27817fi
27818
27819
27820 else
27821 if test X"$want_h2" != Xdefault; then
27822 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27823 fi
27824 fi
27825
27826fi
27827
27828
27829OPT_ZSH_FPATH=default
27830
27831# Check whether --with-zsh-functions-dir was given.
27832if test "${with_zsh_functions_dir+set}" = set; then :
27833 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27834fi
27835
27836case "$OPT_ZSH_FPATH" in
27837 no)
27838 ;;
27839 default|yes)
27840 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27841
27842 ;;
27843 *)
27844 ZSH_FUNCTIONS_DIR="$withval"
27845
27846 ;;
27847esac
27848
27849
27850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27851$as_echo_n "checking for ANSI C header files... " >&6; }
27852if ${ac_cv_header_stdc+:} false; then :
27853 $as_echo_n "(cached) " >&6
27854else
27855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856/* end confdefs.h. */
27857#include <stdlib.h>
27858#include <stdarg.h>
27859#include <string.h>
27860#include <float.h>
27861
27862int main (void)
27863{
27864
27865 ;
27866 return 0;
27867}
27868_ACEOF
27869if ac_fn_c_try_compile "$LINENO"; then :
27870 ac_cv_header_stdc=yes
27871else
27872 ac_cv_header_stdc=no
27873fi
27874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27875
27876if test $ac_cv_header_stdc = yes; then
27877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879/* end confdefs.h. */
27880#include <string.h>
27881
27882_ACEOF
27883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27884 $EGREP "memchr" >/dev/null 2>&1; then :
27885
27886else
27887 ac_cv_header_stdc=no
27888fi
27889rm -f conftest*
27890
27891fi
27892
27893if test $ac_cv_header_stdc = yes; then
27894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896/* end confdefs.h. */
27897#include <stdlib.h>
27898
27899_ACEOF
27900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27901 $EGREP "free" >/dev/null 2>&1; then :
27902
27903else
27904 ac_cv_header_stdc=no
27905fi
27906rm -f conftest*
27907
27908fi
27909
27910if test $ac_cv_header_stdc = yes; then
27911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27912 if test "$cross_compiling" = yes; then :
27913 :
27914else
27915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27916/* end confdefs.h. */
27917#include <ctype.h>
27918#include <stdlib.h>
27919#if ((' ' & 0x0FF) == 0x020)
27920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27922#else
27923# define ISLOWER(c) \
27924 (('a' <= (c) && (c) <= 'i') \
27925 || ('j' <= (c) && (c) <= 'r') \
27926 || ('s' <= (c) && (c) <= 'z'))
27927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27928#endif
27929
27930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27931int
27932main ()
27933{
27934 int i;
27935 for (i = 0; i < 256; i++)
27936 if (XOR (islower (i), ISLOWER (i))
27937 || toupper (i) != TOUPPER (i))
27938 return 2;
27939 return 0;
27940}
27941_ACEOF
27942if ac_fn_c_try_run "$LINENO"; then :
27943
27944else
27945 ac_cv_header_stdc=no
27946fi
27947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27948 conftest.$ac_objext conftest.beam conftest.$ac_ext
27949fi
27950
27951fi
27952fi
27953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27954$as_echo "$ac_cv_header_stdc" >&6; }
27955if test $ac_cv_header_stdc = yes; then
27956
27957$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27958
27959fi
27960
27961
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27964$as_echo_n "checking for malloc.h... " >&6; }
27965if ${curl_cv_header_malloc_h+:} false; then :
27966 $as_echo_n "(cached) " >&6
27967else
27968
27969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970/* end confdefs.h. */
27971
27972
27973#include <malloc.h>
27974
27975int main (void)
27976{
27977
27978 void *p = malloc(10);
27979 void *q = calloc(10,10);
27980 free(p);
27981 free(q);
27982
27983 ;
27984 return 0;
27985}
27986
27987_ACEOF
27988if ac_fn_c_try_compile "$LINENO"; then :
27989
27990 curl_cv_header_malloc_h="yes"
27991
27992else
27993
27994 curl_cv_header_malloc_h="no"
27995
27996fi
27997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998
27999fi
28000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28001$as_echo "$curl_cv_header_malloc_h" >&6; }
28002 if test "$curl_cv_header_malloc_h" = "yes"; then
28003
28004cat >>confdefs.h <<_ACEOF
28005#define HAVE_MALLOC_H 1
28006_ACEOF
28007
28008 #
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010/* end confdefs.h. */
28011
28012
28013#include <stdlib.h>
28014
28015int main (void)
28016{
28017
28018 void *p = malloc(10);
28019 void *q = calloc(10,10);
28020 free(p);
28021 free(q);
28022
28023 ;
28024 return 0;
28025}
28026
28027_ACEOF
28028if ac_fn_c_try_compile "$LINENO"; then :
28029
28030 curl_cv_need_header_malloc_h="no"
28031
28032else
28033
28034 curl_cv_need_header_malloc_h="yes"
28035
28036fi
28037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038 #
28039 case "$curl_cv_need_header_malloc_h" in
28040 yes)
28041
28042cat >>confdefs.h <<_ACEOF
28043#define NEED_MALLOC_H 1
28044_ACEOF
28045
28046 ;;
28047 esac
28048 fi
28049
28050
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28052$as_echo_n "checking for memory.h... " >&6; }
28053if ${curl_cv_header_memory_h+:} false; then :
28054 $as_echo_n "(cached) " >&6
28055else
28056
28057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28058/* end confdefs.h. */
28059
28060
28061#include <memory.h>
28062
28063int main (void)
28064{
28065
28066 void *p = malloc(10);
28067 void *q = calloc(10,10);
28068 free(p);
28069 free(q);
28070
28071 ;
28072 return 0;
28073}
28074
28075_ACEOF
28076if ac_fn_c_try_compile "$LINENO"; then :
28077
28078 curl_cv_header_memory_h="yes"
28079
28080else
28081
28082 curl_cv_header_memory_h="no"
28083
28084fi
28085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086
28087fi
28088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28089$as_echo "$curl_cv_header_memory_h" >&6; }
28090 if test "$curl_cv_header_memory_h" = "yes"; then
28091
28092cat >>confdefs.h <<_ACEOF
28093#define HAVE_MEMORY_H 1
28094_ACEOF
28095
28096 #
28097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098/* end confdefs.h. */
28099
28100
28101#include <stdlib.h>
28102
28103int main (void)
28104{
28105
28106 void *p = malloc(10);
28107 void *q = calloc(10,10);
28108 free(p);
28109 free(q);
28110
28111 ;
28112 return 0;
28113}
28114
28115_ACEOF
28116if ac_fn_c_try_compile "$LINENO"; then :
28117
28118 curl_cv_need_header_memory_h="no"
28119
28120else
28121
28122 curl_cv_need_header_memory_h="yes"
28123
28124fi
28125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28126 #
28127 case "$curl_cv_need_header_memory_h" in
28128 yes)
28129
28130cat >>confdefs.h <<_ACEOF
28131#define NEED_MEMORY_H 1
28132_ACEOF
28133
28134 ;;
28135 esac
28136 fi
28137
28138
28139for ac_header in sys/types.h \
28140 sys/time.h \
28141 sys/select.h \
28142 sys/socket.h \
28143 sys/ioctl.h \
28144 sys/uio.h \
28145 assert.h \
28146 unistd.h \
28147 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028148 arpa/inet.h \
28149 net/if.h \
28150 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028151 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028152 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028153 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028154 netinet/tcp.h \
28155 netdb.h \
28156 sys/sockio.h \
28157 sys/stat.h \
28158 sys/param.h \
28159 termios.h \
28160 termio.h \
28161 sgtty.h \
28162 fcntl.h \
28163 alloca.h \
28164 time.h \
28165 io.h \
28166 pwd.h \
28167 utime.h \
28168 sys/utime.h \
28169 sys/poll.h \
28170 poll.h \
28171 socket.h \
28172 sys/resource.h \
28173 libgen.h \
28174 locale.h \
28175 errno.h \
28176 stdbool.h \
28177 arpa/tftp.h \
28178 sys/filio.h \
28179 sys/wait.h \
28180 setjmp.h
28181do :
28182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28183ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28184#ifdef HAVE_SYS_TYPES_H
28185#include <sys/types.h>
28186#endif
28187#ifdef HAVE_SYS_TIME_H
28188#include <sys/time.h>
28189#endif
28190#ifdef HAVE_SYS_SELECT_H
28191#include <sys/select.h>
28192#endif
28193#ifdef HAVE_SYS_SOCKET_H
28194#include <sys/socket.h>
28195#endif
28196#ifdef HAVE_NETINET_IN_H
28197#include <netinet/in.h>
28198#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028199#ifdef HAVE_NETINET_IN6_H
28200#include <netinet/in6.h>
28201#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028202#ifdef HAVE_SYS_UN_H
28203#include <sys/un.h>
28204#endif
28205
28206
28207"
28208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28209 cat >>confdefs.h <<_ACEOF
28210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28211_ACEOF
28212
28213fi
28214
28215done
28216
28217
28218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28219$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28220if ${ac_cv_c_const+:} false; then :
28221 $as_echo_n "(cached) " >&6
28222else
28223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28224/* end confdefs.h. */
28225
28226int main (void)
28227{
28228
28229#ifndef __cplusplus
28230 /* Ultrix mips cc rejects this sort of thing. */
28231 typedef int charset[2];
28232 const charset cs = { 0, 0 };
28233 /* SunOS 4.1.1 cc rejects this. */
28234 char const *const *pcpcc;
28235 char **ppc;
28236 /* NEC SVR4.0.2 mips cc rejects this. */
28237 struct point {int x, y;};
28238 static struct point const zero = {0,0};
28239 /* AIX XL C 1.02.0.0 rejects this.
28240 It does not let you subtract one const X* pointer from another in
28241 an arm of an if-expression whose if-part is not a constant
28242 expression */
28243 const char *g = "string";
28244 pcpcc = &g + (g ? g-g : 0);
28245 /* HPUX 7.0 cc rejects these. */
28246 ++pcpcc;
28247 ppc = (char**) pcpcc;
28248 pcpcc = (char const *const *) ppc;
28249 { /* SCO 3.2v4 cc rejects this sort of thing. */
28250 char tx;
28251 char *t = &tx;
28252 char const *s = 0 ? (char *) 0 : (char const *) 0;
28253
28254 *t++ = 0;
28255 if (s) return 0;
28256 }
28257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28258 int x[] = {25, 17};
28259 const int *foo = &x[0];
28260 ++foo;
28261 }
28262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28263 typedef const int *iptr;
28264 iptr p = 0;
28265 ++p;
28266 }
28267 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28269 struct s { int j; const int *ap[3]; } bx;
28270 struct s *b = &bx; b->j = 5;
28271 }
28272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28273 const int foo = 10;
28274 if (!foo) return 0;
28275 }
28276 return !cs[0] && !zero.x;
28277#endif
28278
28279 ;
28280 return 0;
28281}
28282_ACEOF
28283if ac_fn_c_try_compile "$LINENO"; then :
28284 ac_cv_c_const=yes
28285else
28286 ac_cv_c_const=no
28287fi
28288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289fi
28290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28291$as_echo "$ac_cv_c_const" >&6; }
28292if test $ac_cv_c_const = no; then
28293
28294$as_echo "#define const /**/" >>confdefs.h
28295
28296fi
28297
28298
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28300$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28301if ${curl_cv_variadic_macros_c99+:} false; then :
28302 $as_echo_n "(cached) " >&6
28303else
28304
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306/* end confdefs.h. */
28307
28308
28309#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28310#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28311 int fun3(int arg1, int arg2, int arg3);
28312 int fun2(int arg1, int arg2);
28313 int fun3(int arg1, int arg2, int arg3)
28314 { return arg1 + arg2 + arg3; }
28315 int fun2(int arg1, int arg2)
28316 { return arg1 + arg2; }
28317
28318int main (void)
28319{
28320
28321 int res3 = c99_vmacro3(1, 2, 3);
28322 int res2 = c99_vmacro2(1, 2);
28323
28324 ;
28325 return 0;
28326}
28327
28328_ACEOF
28329if ac_fn_c_try_compile "$LINENO"; then :
28330
28331 curl_cv_variadic_macros_c99="yes"
28332
28333else
28334
28335 curl_cv_variadic_macros_c99="no"
28336
28337fi
28338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339
28340fi
28341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28342$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28343 case "$curl_cv_variadic_macros_c99" in
28344 yes)
28345
28346cat >>confdefs.h <<_ACEOF
28347#define HAVE_VARIADIC_MACROS_C99 1
28348_ACEOF
28349
28350 ;;
28351 esac
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28353$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28354if ${curl_cv_variadic_macros_gcc+:} false; then :
28355 $as_echo_n "(cached) " >&6
28356else
28357
28358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28359/* end confdefs.h. */
28360
28361
28362#define gcc_vmacro3(first, args...) fun3(first, args)
28363#define gcc_vmacro2(first, args...) fun2(first, args)
28364 int fun3(int arg1, int arg2, int arg3);
28365 int fun2(int arg1, int arg2);
28366 int fun3(int arg1, int arg2, int arg3)
28367 { return arg1 + arg2 + arg3; }
28368 int fun2(int arg1, int arg2)
28369 { return arg1 + arg2; }
28370
28371int main (void)
28372{
28373
28374 int res3 = gcc_vmacro3(1, 2, 3);
28375 int res2 = gcc_vmacro2(1, 2);
28376
28377 ;
28378 return 0;
28379}
28380
28381_ACEOF
28382if ac_fn_c_try_compile "$LINENO"; then :
28383
28384 curl_cv_variadic_macros_gcc="yes"
28385
28386else
28387
28388 curl_cv_variadic_macros_gcc="no"
28389
28390fi
28391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28392
28393fi
28394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28395$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28396 case "$curl_cv_variadic_macros_gcc" in
28397 yes)
28398
28399cat >>confdefs.h <<_ACEOF
28400#define HAVE_VARIADIC_MACROS_GCC 1
28401_ACEOF
28402
28403 ;;
28404 esac
28405
28406ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28407if test "x$ac_cv_type_size_t" = xyes; then :
28408
28409else
28410
28411cat >>confdefs.h <<_ACEOF
28412#define size_t unsigned int
28413_ACEOF
28414
28415fi
28416
28417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28418$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28419if ${ac_cv_header_time+:} false; then :
28420 $as_echo_n "(cached) " >&6
28421else
28422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28423/* end confdefs.h. */
28424#include <sys/types.h>
28425#include <sys/time.h>
28426#include <time.h>
28427
28428int main (void)
28429{
28430if ((struct tm *) 0)
28431return 0;
28432 ;
28433 return 0;
28434}
28435_ACEOF
28436if ac_fn_c_try_compile "$LINENO"; then :
28437 ac_cv_header_time=yes
28438else
28439 ac_cv_header_time=no
28440fi
28441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442fi
28443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28444$as_echo "$ac_cv_header_time" >&6; }
28445if test $ac_cv_header_time = yes; then
28446
28447$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28448
28449fi
28450
28451
28452 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28453do :
28454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28455ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28456if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28457 cat >>confdefs.h <<_ACEOF
28458#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28459_ACEOF
28460
28461fi
28462
28463done
28464
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28466$as_echo_n "checking for struct timeval... " >&6; }
28467if ${curl_cv_struct_timeval+:} false; then :
28468 $as_echo_n "(cached) " >&6
28469else
28470
28471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28472/* end confdefs.h. */
28473
28474
28475#undef inline
28476#ifdef HAVE_WINDOWS_H
28477#ifndef WIN32_LEAN_AND_MEAN
28478#define WIN32_LEAN_AND_MEAN
28479#endif
28480#include <windows.h>
28481#ifdef HAVE_WINSOCK2_H
28482#include <winsock2.h>
28483#else
28484#ifdef HAVE_WINSOCK_H
28485#include <winsock.h>
28486#endif
28487#endif
28488#endif
28489#ifdef HAVE_SYS_TYPES_H
28490#include <sys/types.h>
28491#endif
28492#ifdef HAVE_SYS_TIME_H
28493#include <sys/time.h>
28494#ifdef TIME_WITH_SYS_TIME
28495#include <time.h>
28496#endif
28497#else
28498#ifdef HAVE_TIME_H
28499#include <time.h>
28500#endif
28501#endif
28502#ifdef HAVE_SYS_SOCKET_H
28503#include <sys/socket.h>
28504#endif
28505
28506int main (void)
28507{
28508
28509 struct timeval ts;
28510 ts.tv_sec = 0;
28511 ts.tv_usec = 0;
28512
28513 ;
28514 return 0;
28515}
28516
28517_ACEOF
28518if ac_fn_c_try_compile "$LINENO"; then :
28519
28520 curl_cv_struct_timeval="yes"
28521
28522else
28523
28524 curl_cv_struct_timeval="no"
28525
28526fi
28527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528
28529fi
28530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28531$as_echo "$curl_cv_struct_timeval" >&6; }
28532 case "$curl_cv_struct_timeval" in
28533 yes)
28534
28535cat >>confdefs.h <<_ACEOF
28536#define HAVE_STRUCT_TIMEVAL 1
28537_ACEOF
28538
28539 ;;
28540 esac
28541
28542
28543
28544 if test "x$cross_compiling" != xyes; then
28545
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28547$as_echo_n "checking run-time libs availability... " >&6; }
28548 if test "$cross_compiling" = yes; then :
28549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28551as_fn_error $? "cannot run test program while cross compiling
28552See \`config.log' for more details" "$LINENO" 5; }
28553else
28554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28555/* end confdefs.h. */
28556
28557main()
28558{
28559 return 0;
28560}
28561
28562_ACEOF
28563if ac_fn_c_try_run "$LINENO"; then :
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28565$as_echo "fine" >&6; }
28566else
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28568$as_echo "failed" >&6; }
28569 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28570
28571fi
28572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28573 conftest.$ac_objext conftest.beam conftest.$ac_ext
28574fi
28575
28576
28577 fi
28578
28579
28580# The cast to long int works around a bug in the HP C Compiler
28581# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28582# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28583# This bug is HP SR number 8606223364.
28584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28585$as_echo_n "checking size of size_t... " >&6; }
28586if ${ac_cv_sizeof_size_t+:} false; then :
28587 $as_echo_n "(cached) " >&6
28588else
28589 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28590
28591else
28592 if test "$ac_cv_type_size_t" = yes; then
28593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28595as_fn_error 77 "cannot compute sizeof (size_t)
28596See \`config.log' for more details" "$LINENO" 5; }
28597 else
28598 ac_cv_sizeof_size_t=0
28599 fi
28600fi
28601
28602fi
28603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28604$as_echo "$ac_cv_sizeof_size_t" >&6; }
28605
28606
28607
28608cat >>confdefs.h <<_ACEOF
28609#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28610_ACEOF
28611
28612
28613# The cast to long int works around a bug in the HP C Compiler
28614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28616# This bug is HP SR number 8606223364.
28617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28618$as_echo_n "checking size of long... " >&6; }
28619if ${ac_cv_sizeof_long+:} false; then :
28620 $as_echo_n "(cached) " >&6
28621else
28622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28623
28624else
28625 if test "$ac_cv_type_long" = yes; then
28626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28628as_fn_error 77 "cannot compute sizeof (long)
28629See \`config.log' for more details" "$LINENO" 5; }
28630 else
28631 ac_cv_sizeof_long=0
28632 fi
28633fi
28634
28635fi
28636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28637$as_echo "$ac_cv_sizeof_long" >&6; }
28638
28639
28640
28641cat >>confdefs.h <<_ACEOF
28642#define SIZEOF_LONG $ac_cv_sizeof_long
28643_ACEOF
28644
28645
28646# The cast to long int works around a bug in the HP C Compiler
28647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28649# This bug is HP SR number 8606223364.
28650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28651$as_echo_n "checking size of int... " >&6; }
28652if ${ac_cv_sizeof_int+:} false; then :
28653 $as_echo_n "(cached) " >&6
28654else
28655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28656
28657else
28658 if test "$ac_cv_type_int" = yes; then
28659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661as_fn_error 77 "cannot compute sizeof (int)
28662See \`config.log' for more details" "$LINENO" 5; }
28663 else
28664 ac_cv_sizeof_int=0
28665 fi
28666fi
28667
28668fi
28669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28670$as_echo "$ac_cv_sizeof_int" >&6; }
28671
28672
28673
28674cat >>confdefs.h <<_ACEOF
28675#define SIZEOF_INT $ac_cv_sizeof_int
28676_ACEOF
28677
28678
28679# The cast to long int works around a bug in the HP C Compiler
28680# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28681# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28682# This bug is HP SR number 8606223364.
28683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28684$as_echo_n "checking size of short... " >&6; }
28685if ${ac_cv_sizeof_short+:} false; then :
28686 $as_echo_n "(cached) " >&6
28687else
28688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28689
28690else
28691 if test "$ac_cv_type_short" = yes; then
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28694as_fn_error 77 "cannot compute sizeof (short)
28695See \`config.log' for more details" "$LINENO" 5; }
28696 else
28697 ac_cv_sizeof_short=0
28698 fi
28699fi
28700
28701fi
28702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28703$as_echo "$ac_cv_sizeof_short" >&6; }
28704
28705
28706
28707cat >>confdefs.h <<_ACEOF
28708#define SIZEOF_SHORT $ac_cv_sizeof_short
28709_ACEOF
28710
28711
Elliott Hughes82be86d2017-09-20 17:00:17 -070028712# The cast to long int works around a bug in the HP C Compiler
28713# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28714# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28715# This bug is HP SR number 8606223364.
28716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28717$as_echo_n "checking size of time_t... " >&6; }
28718if ${ac_cv_sizeof_time_t+:} false; then :
28719 $as_echo_n "(cached) " >&6
28720else
28721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28722
28723else
28724 if test "$ac_cv_type_time_t" = yes; then
28725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28727as_fn_error 77 "cannot compute sizeof (time_t)
28728See \`config.log' for more details" "$LINENO" 5; }
28729 else
28730 ac_cv_sizeof_time_t=0
28731 fi
28732fi
28733
28734fi
28735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28736$as_echo "$ac_cv_sizeof_time_t" >&6; }
28737
28738
28739
28740cat >>confdefs.h <<_ACEOF
28741#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28742_ACEOF
28743
28744
28745# The cast to long int works around a bug in the HP C Compiler
28746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28748# This bug is HP SR number 8606223364.
28749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28750$as_echo_n "checking size of off_t... " >&6; }
28751if ${ac_cv_sizeof_off_t+:} false; then :
28752 $as_echo_n "(cached) " >&6
28753else
28754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28755
28756else
28757 if test "$ac_cv_type_off_t" = yes; then
28758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28760as_fn_error 77 "cannot compute sizeof (off_t)
28761See \`config.log' for more details" "$LINENO" 5; }
28762 else
28763 ac_cv_sizeof_off_t=0
28764 fi
28765fi
28766
28767fi
28768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28769$as_echo "$ac_cv_sizeof_off_t" >&6; }
28770
28771
28772
28773cat >>confdefs.h <<_ACEOF
28774#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28775_ACEOF
28776
28777
28778
Alex Deymo486467e2017-12-19 19:04:07 +010028779o=$CPPFLAGS
28780CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28781# The cast to long int works around a bug in the HP C Compiler
28782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28784# This bug is HP SR number 8606223364.
28785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28786$as_echo_n "checking size of curl_off_t... " >&6; }
28787if ${ac_cv_sizeof_curl_off_t+:} false; then :
28788 $as_echo_n "(cached) " >&6
28789else
28790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28791#include <curl/system.h>
28792
28793"; then :
28794
28795else
28796 if test "$ac_cv_type_curl_off_t" = yes; then
28797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28799as_fn_error 77 "cannot compute sizeof (curl_off_t)
28800See \`config.log' for more details" "$LINENO" 5; }
28801 else
28802 ac_cv_sizeof_curl_off_t=0
28803 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070028804fi
28805
Alex Deymo486467e2017-12-19 19:04:07 +010028806fi
28807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28808$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28809
28810
28811
28812cat >>confdefs.h <<_ACEOF
28813#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28814_ACEOF
28815
28816
28817CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028818
28819ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28820if test "x$ac_cv_type_long_long" = xyes; then :
28821
28822$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28823
28824 longlong="yes"
28825
28826fi
28827
28828
28829if test "xyes" = "x$longlong"; then
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28831$as_echo_n "checking if numberLL works... " >&6; }
28832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28833/* end confdefs.h. */
28834
28835
28836
28837int main (void)
28838{
28839
28840 long long val = 1000LL;
28841
28842 ;
28843 return 0;
28844}
28845
28846_ACEOF
28847if ac_fn_c_try_compile "$LINENO"; then :
28848
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28850$as_echo "yes" >&6; }
28851
28852$as_echo "#define HAVE_LL 1" >>confdefs.h
28853
28854
28855else
28856
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858$as_echo "no" >&6; }
28859
28860fi
28861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28862fi
28863
28864
28865# check for ssize_t
28866ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28867if test "x$ac_cv_type_ssize_t" = xyes; then :
28868
28869else
28870
28871$as_echo "#define ssize_t int" >>confdefs.h
28872
28873fi
28874
28875
28876# check for bool type
28877ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28878#ifdef HAVE_SYS_TYPES_H
28879#include <sys/types.h>
28880#endif
28881#ifdef HAVE_STDBOOL_H
28882#include <stdbool.h>
28883#endif
28884
28885"
28886if test "x$ac_cv_type_bool" = xyes; then :
28887
28888
28889$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28890
28891
28892fi
28893
28894
Elliott Hughescac39802018-04-27 16:19:43 -070028895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28896$as_echo_n "checking if time_t is unsigned... " >&6; }
28897if test "$cross_compiling" = yes; then :
28898
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28900$as_echo "no" >&6; }
28901
28902else
28903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904/* end confdefs.h. */
28905
28906
28907 #include <time.h>
28908 #include <limits.h>
28909 time_t t = -1;
28910 return (t > 0);
28911
28912_ACEOF
28913if ac_fn_c_try_run "$LINENO"; then :
28914
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28916$as_echo "yes" >&6; }
28917
28918$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28919
28920
28921else
28922
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28924$as_echo "no" >&6; }
28925
28926fi
28927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28928 conftest.$ac_objext conftest.beam conftest.$ac_ext
28929fi
28930
28931
Elliott Hughes82be86d2017-09-20 17:00:17 -070028932
28933curl_includes_ws2tcpip="\
28934/* includes start */
28935#ifdef HAVE_WINDOWS_H
28936# ifndef WIN32_LEAN_AND_MEAN
28937# define WIN32_LEAN_AND_MEAN
28938# endif
28939# include <windows.h>
28940# ifdef HAVE_WINSOCK2_H
28941# include <winsock2.h>
28942# ifdef HAVE_WS2TCPIP_H
28943# include <ws2tcpip.h>
28944# endif
28945# endif
28946#endif
28947/* includes end */"
28948
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28950$as_echo_n "checking for windows.h... " >&6; }
28951if ${curl_cv_header_windows_h+:} false; then :
28952 $as_echo_n "(cached) " >&6
28953else
28954
28955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28956/* end confdefs.h. */
28957
28958
28959#undef inline
28960#ifndef WIN32_LEAN_AND_MEAN
28961#define WIN32_LEAN_AND_MEAN
28962#endif
28963#include <windows.h>
28964
28965int main (void)
28966{
28967
28968#if defined(__CYGWIN__) || defined(__CEGCC__)
28969 HAVE_WINDOWS_H shall not be defined.
28970#else
28971 int dummy=2*WINVER;
28972#endif
28973
28974 ;
28975 return 0;
28976}
28977
28978_ACEOF
28979if ac_fn_c_try_compile "$LINENO"; then :
28980
28981 curl_cv_header_windows_h="yes"
28982
28983else
28984
28985 curl_cv_header_windows_h="no"
28986
28987fi
28988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28989
28990fi
28991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28992$as_echo "$curl_cv_header_windows_h" >&6; }
28993 case "$curl_cv_header_windows_h" in
28994 yes)
28995
28996cat >>confdefs.h <<_ACEOF
28997#define HAVE_WINDOWS_H 1
28998_ACEOF
28999
29000 ;;
29001 esac
29002
29003
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
29005$as_echo_n "checking for winsock2.h... " >&6; }
29006if ${curl_cv_header_winsock2_h+:} false; then :
29007 $as_echo_n "(cached) " >&6
29008else
29009
29010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29011/* end confdefs.h. */
29012
29013
29014#undef inline
29015#ifndef WIN32_LEAN_AND_MEAN
29016#define WIN32_LEAN_AND_MEAN
29017#endif
29018#include <windows.h>
29019#include <winsock2.h>
29020
29021int main (void)
29022{
29023
29024#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29025 HAVE_WINSOCK2_H shall not be defined.
29026#else
29027 int dummy=2*IPPROTO_ESP;
29028#endif
29029
29030 ;
29031 return 0;
29032}
29033
29034_ACEOF
29035if ac_fn_c_try_compile "$LINENO"; then :
29036
29037 curl_cv_header_winsock2_h="yes"
29038
29039else
29040
29041 curl_cv_header_winsock2_h="no"
29042
29043fi
29044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045
29046fi
29047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29048$as_echo "$curl_cv_header_winsock2_h" >&6; }
29049 case "$curl_cv_header_winsock2_h" in
29050 yes)
29051
29052cat >>confdefs.h <<_ACEOF
29053#define HAVE_WINSOCK2_H 1
29054_ACEOF
29055
29056 ;;
29057 esac
29058
29059
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29061$as_echo_n "checking for ws2tcpip.h... " >&6; }
29062if ${curl_cv_header_ws2tcpip_h+:} false; then :
29063 $as_echo_n "(cached) " >&6
29064else
29065
29066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29067/* end confdefs.h. */
29068
29069
29070#undef inline
29071#ifndef WIN32_LEAN_AND_MEAN
29072#define WIN32_LEAN_AND_MEAN
29073#endif
29074#include <windows.h>
29075#include <winsock2.h>
29076#include <ws2tcpip.h>
29077
29078int main (void)
29079{
29080
29081#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29082 HAVE_WS2TCPIP_H shall not be defined.
29083#else
29084 int dummy=2*IP_PKTINFO;
29085#endif
29086
29087 ;
29088 return 0;
29089}
29090
29091_ACEOF
29092if ac_fn_c_try_compile "$LINENO"; then :
29093
29094 curl_cv_header_ws2tcpip_h="yes"
29095
29096else
29097
29098 curl_cv_header_ws2tcpip_h="no"
29099
29100fi
29101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29102
29103fi
29104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29105$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29106 case "$curl_cv_header_ws2tcpip_h" in
29107 yes)
29108
29109cat >>confdefs.h <<_ACEOF
29110#define HAVE_WS2TCPIP_H 1
29111_ACEOF
29112
29113 ;;
29114 esac
29115
29116
29117
29118curl_includes_sys_socket="\
29119/* includes start */
29120#ifdef HAVE_SYS_TYPES_H
29121# include <sys/types.h>
29122#endif
29123#ifdef HAVE_SYS_SOCKET_H
29124# include <sys/socket.h>
29125#endif
29126/* includes end */"
29127 for ac_header in sys/types.h sys/socket.h
29128do :
29129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29130ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29131"
29132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29133 cat >>confdefs.h <<_ACEOF
29134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29135_ACEOF
29136
29137fi
29138
29139done
29140
29141
29142
29143curl_preprocess_callconv="\
29144/* preprocess start */
29145#ifdef HAVE_WINDOWS_H
29146# define FUNCALLCONV __stdcall
29147#else
29148# define FUNCALLCONV
29149#endif
29150/* preprocess end */"
29151
29152
29153 #
29154 #
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29156$as_echo_n "checking for curl_socklen_t data type... " >&6; }
29157 curl_typeof_curl_socklen_t="unknown"
29158 for arg1 in int SOCKET; do
29159 for arg2 in 'struct sockaddr' void; do
29160 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29161 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29163/* end confdefs.h. */
29164
29165
29166 $curl_includes_ws2tcpip
29167 $curl_includes_sys_socket
29168 $curl_preprocess_callconv
29169 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29170
29171int main (void)
29172{
29173
29174 $t *lenptr = 0;
29175 if(0 != getpeername(0, 0, lenptr))
29176 return 1;
29177
29178 ;
29179 return 0;
29180}
29181
29182_ACEOF
29183if ac_fn_c_try_compile "$LINENO"; then :
29184
29185 curl_typeof_curl_socklen_t="$t"
29186
29187fi
29188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189 fi
29190 done
29191 done
29192 done
29193 for t in socklen_t int; do
29194 if test "$curl_typeof_curl_socklen_t" = "void"; then
29195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196/* end confdefs.h. */
29197
29198
29199 $curl_includes_sys_socket
29200 typedef $t curl_socklen_t;
29201
29202int main (void)
29203{
29204
29205 curl_socklen_t dummy;
29206
29207 ;
29208 return 0;
29209}
29210
29211_ACEOF
29212if ac_fn_c_try_compile "$LINENO"; then :
29213
29214 curl_typeof_curl_socklen_t="$t"
29215
29216fi
29217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29218 fi
29219 done
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29221$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29222 if test "$curl_typeof_curl_socklen_t" = "void" ||
29223 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29224 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29225 fi
29226 #
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29228$as_echo_n "checking size of curl_socklen_t... " >&6; }
29229 curl_sizeof_curl_socklen_t="unknown"
29230 curl_pull_headers_socklen_t="unknown"
29231 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29232 tst_pull_header_checks='none ws2tcpip'
29233 tst_size_checks='4'
29234 else
29235 tst_pull_header_checks='none systypes syssocket'
29236 tst_size_checks='4 8 2'
29237 fi
29238 for tst_size in $tst_size_checks; do
29239 for tst_pull_headers in $tst_pull_header_checks; do
29240 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29241 case $tst_pull_headers in
29242 ws2tcpip)
29243 tmp_includes="$curl_includes_ws2tcpip"
29244 ;;
29245 systypes)
29246 tmp_includes="$curl_includes_sys_types"
29247 ;;
29248 syssocket)
29249 tmp_includes="$curl_includes_sys_socket"
29250 ;;
29251 *)
29252 tmp_includes=""
29253 ;;
29254 esac
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256/* end confdefs.h. */
29257
29258
29259 $tmp_includes
29260 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29261 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29262
29263int main (void)
29264{
29265
29266 curl_socklen_t dummy;
29267
29268 ;
29269 return 0;
29270}
29271
29272_ACEOF
29273if ac_fn_c_try_compile "$LINENO"; then :
29274
29275 curl_sizeof_curl_socklen_t="$tst_size"
29276 curl_pull_headers_socklen_t="$tst_pull_headers"
29277
29278fi
29279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29280 fi
29281 done
29282 done
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29284$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29285 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29286 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29287 fi
29288 #
29289 case $curl_pull_headers_socklen_t in
29290 ws2tcpip)
29291
29292cat >>confdefs.h <<_EOF
29293#define CURL_PULL_WS2TCPIP_H 1
29294_EOF
29295
29296 ;;
29297 systypes)
29298
29299cat >>confdefs.h <<_EOF
29300#define CURL_PULL_SYS_TYPES_H 1
29301_EOF
29302
29303 ;;
29304 syssocket)
29305
29306cat >>confdefs.h <<_EOF
29307#define CURL_PULL_SYS_TYPES_H 1
29308_EOF
29309
29310
29311cat >>confdefs.h <<_EOF
29312#define CURL_PULL_SYS_SOCKET_H 1
29313_EOF
29314
29315 ;;
29316 esac
29317
29318cat >>confdefs.h <<_EOF
29319#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29320_EOF
29321
29322
29323cat >>confdefs.h <<_EOF
29324#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29325_EOF
29326
29327
29328
29329
29330curl_includes_poll="\
29331/* includes start */
29332#ifdef HAVE_SYS_TYPES_H
29333# include <sys/types.h>
29334#endif
29335#ifdef HAVE_POLL_H
29336# include <poll.h>
29337#endif
29338#ifdef HAVE_SYS_POLL_H
29339# include <sys/poll.h>
29340#endif
29341/* includes end */"
29342 for ac_header in sys/types.h poll.h sys/poll.h
29343do :
29344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29345ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29346"
29347if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29348 cat >>confdefs.h <<_ACEOF
29349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29350_ACEOF
29351
29352fi
29353
29354done
29355
29356
29357
29358 #
29359 tst_poll_events_macro_defined="unknown"
29360 #
29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362/* end confdefs.h. */
29363
29364
29365 $curl_includes_poll
29366
29367int main (void)
29368{
29369
29370#if defined(events) || defined(revents)
29371 return 0;
29372#else
29373 force compilation error
29374#endif
29375
29376 ;
29377 return 0;
29378}
29379
29380_ACEOF
29381if ac_fn_c_try_compile "$LINENO"; then :
29382
29383 tst_poll_events_macro_defined="yes"
29384
29385else
29386
29387 tst_poll_events_macro_defined="no"
29388
29389fi
29390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 #
29392 if test "$tst_poll_events_macro_defined" = "yes"; then
29393 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29394
29395cat >>confdefs.h <<_EOF
29396#define CURL_PULL_SYS_POLL_H 1
29397_EOF
29398
29399 fi
29400 fi
29401 #
29402
29403
29404
29405 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29406#undef inline
29407#ifdef HAVE_WINDOWS_H
29408#ifndef WIN32_LEAN_AND_MEAN
29409#define WIN32_LEAN_AND_MEAN
29410#endif
29411#include <windows.h>
29412#ifdef HAVE_WINSOCK2_H
29413#include <winsock2.h>
29414#else
29415#ifdef HAVE_WINSOCK_H
29416#include <winsock.h>
29417#endif
29418#endif
29419#else
29420#ifdef HAVE_SYS_TYPES_H
29421#include <sys/types.h>
29422#endif
29423#ifdef HAVE_SYS_SOCKET_H
29424#include <sys/socket.h>
29425#endif
29426#ifdef HAVE_NETINET_IN_H
29427#include <netinet/in.h>
29428#endif
29429#ifdef HAVE_ARPA_INET_H
29430#include <arpa/inet.h>
29431#endif
29432#endif
29433
29434"
29435if test "x$ac_cv_type_in_addr_t" = xyes; then :
29436
29437else
29438
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29440$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29441if ${curl_cv_in_addr_t_equiv+:} false; then :
29442 $as_echo_n "(cached) " >&6
29443else
29444
29445 curl_cv_in_addr_t_equiv="unknown"
29446 for t in "unsigned long" int size_t unsigned long; do
29447 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29449/* end confdefs.h. */
29450
29451
29452#undef inline
29453#ifdef HAVE_WINDOWS_H
29454#ifndef WIN32_LEAN_AND_MEAN
29455#define WIN32_LEAN_AND_MEAN
29456#endif
29457#include <windows.h>
29458#ifdef HAVE_WINSOCK2_H
29459#include <winsock2.h>
29460#else
29461#ifdef HAVE_WINSOCK_H
29462#include <winsock.h>
29463#endif
29464#endif
29465#else
29466#ifdef HAVE_SYS_TYPES_H
29467#include <sys/types.h>
29468#endif
29469#ifdef HAVE_SYS_SOCKET_H
29470#include <sys/socket.h>
29471#endif
29472#ifdef HAVE_NETINET_IN_H
29473#include <netinet/in.h>
29474#endif
29475#ifdef HAVE_ARPA_INET_H
29476#include <arpa/inet.h>
29477#endif
29478#endif
29479
29480int main (void)
29481{
29482
29483 $t data = inet_addr ("1.2.3.4");
29484
29485 ;
29486 return 0;
29487}
29488
29489_ACEOF
29490if ac_fn_c_try_link "$LINENO"; then :
29491
29492 curl_cv_in_addr_t_equiv="$t"
29493
29494fi
29495rm -f core conftest.err conftest.$ac_objext \
29496 conftest$ac_exeext conftest.$ac_ext
29497 fi
29498 done
29499
29500fi
29501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29502$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29503 case "$curl_cv_in_addr_t_equiv" in
29504 unknown)
29505 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29506 ;;
29507 *)
29508
29509cat >>confdefs.h <<_ACEOF
29510#define in_addr_t $curl_cv_in_addr_t_equiv
29511_ACEOF
29512
29513 ;;
29514 esac
29515
29516fi
29517
29518
29519
29520
29521 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29522#undef inline
29523#ifdef HAVE_WINDOWS_H
29524#ifndef WIN32_LEAN_AND_MEAN
29525#define WIN32_LEAN_AND_MEAN
29526#endif
29527#include <windows.h>
29528#ifdef HAVE_WINSOCK2_H
29529#include <winsock2.h>
29530#endif
29531#else
29532#ifdef HAVE_SYS_TYPES_H
29533#include <sys/types.h>
29534#endif
29535#ifdef HAVE_SYS_SOCKET_H
29536#include <sys/socket.h>
29537#endif
29538#ifdef HAVE_NETINET_IN_H
29539#include <netinet/in.h>
29540#endif
29541#ifdef HAVE_ARPA_INET_H
29542#include <arpa/inet.h>
29543#endif
29544#endif
29545
29546"
29547if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29548
29549$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29550
29551fi
29552
29553
29554
29555
29556 for ac_header in signal.h
29557do :
29558 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29559if test "x$ac_cv_header_signal_h" = xyes; then :
29560 cat >>confdefs.h <<_ACEOF
29561#define HAVE_SIGNAL_H 1
29562_ACEOF
29563
29564fi
29565
29566done
29567
29568 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29569#ifdef HAVE_SIGNAL_H
29570#include <signal.h>
29571#endif
29572
29573"
29574if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29575
29576
29577$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29578
29579
29580fi
29581
29582 case "$ac_cv_type_sig_atomic_t" in
29583 yes)
29584 #
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29586$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29588/* end confdefs.h. */
29589
29590
29591#ifdef HAVE_SIGNAL_H
29592#include <signal.h>
29593#endif
29594
29595int main (void)
29596{
29597
29598 static volatile sig_atomic_t dummy = 0;
29599
29600 ;
29601 return 0;
29602}
29603
29604_ACEOF
29605if ac_fn_c_try_link "$LINENO"; then :
29606
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29608$as_echo "no" >&6; }
29609 curl_cv_sig_atomic_t_volatile="no"
29610
29611else
29612
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29614$as_echo "yes" >&6; }
29615 curl_cv_sig_atomic_t_volatile="yes"
29616
29617fi
29618rm -f core conftest.err conftest.$ac_objext \
29619 conftest$ac_exeext conftest.$ac_ext
29620 #
29621 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29622
29623$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29624
29625 fi
29626 ;;
29627 esac
29628
29629
29630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29631$as_echo_n "checking return type of signal handlers... " >&6; }
29632if ${ac_cv_type_signal+:} false; then :
29633 $as_echo_n "(cached) " >&6
29634else
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636/* end confdefs.h. */
29637#include <sys/types.h>
29638#include <signal.h>
29639
29640int main (void)
29641{
29642return *(signal (0, 0)) (0) == 1;
29643 ;
29644 return 0;
29645}
29646_ACEOF
29647if ac_fn_c_try_compile "$LINENO"; then :
29648 ac_cv_type_signal=int
29649else
29650 ac_cv_type_signal=void
29651fi
29652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29653fi
29654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29655$as_echo "$ac_cv_type_signal" >&6; }
29656
29657cat >>confdefs.h <<_ACEOF
29658#define RETSIGTYPE $ac_cv_type_signal
29659_ACEOF
29660
29661
29662
29663
29664 for ac_header in sys/select.h sys/socket.h
29665do :
29666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29667ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29669 cat >>confdefs.h <<_ACEOF
29670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29671_ACEOF
29672
29673fi
29674
29675done
29676
29677 #
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29679$as_echo_n "checking for select... " >&6; }
29680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29681/* end confdefs.h. */
29682
29683
29684#undef inline
29685#ifdef HAVE_WINDOWS_H
29686#ifndef WIN32_LEAN_AND_MEAN
29687#define WIN32_LEAN_AND_MEAN
29688#endif
29689#include <windows.h>
29690#ifdef HAVE_WINSOCK2_H
29691#include <winsock2.h>
29692#else
29693#ifdef HAVE_WINSOCK_H
29694#include <winsock.h>
29695#endif
29696#endif
29697#endif
29698#ifdef HAVE_SYS_TYPES_H
29699#include <sys/types.h>
29700#endif
29701#ifdef HAVE_SYS_TIME_H
29702#include <sys/time.h>
29703#ifdef TIME_WITH_SYS_TIME
29704#include <time.h>
29705#endif
29706#else
29707#ifdef HAVE_TIME_H
29708#include <time.h>
29709#endif
29710#endif
29711#ifndef HAVE_WINDOWS_H
29712#ifdef HAVE_SYS_SELECT_H
29713#include <sys/select.h>
29714#endif
29715#ifdef HAVE_SYS_SOCKET_H
29716#include <sys/socket.h>
29717#endif
29718#endif
29719
29720int main (void)
29721{
29722
29723 select(0, 0, 0, 0, 0);
29724
29725 ;
29726 return 0;
29727}
29728
29729_ACEOF
29730if ac_fn_c_try_link "$LINENO"; then :
29731
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733$as_echo "yes" >&6; }
29734 curl_cv_select="yes"
29735
29736else
29737
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29739$as_echo "no" >&6; }
29740 curl_cv_select="no"
29741
29742fi
29743rm -f core conftest.err conftest.$ac_objext \
29744 conftest$ac_exeext conftest.$ac_ext
29745 #
29746 if test "$curl_cv_select" = "yes"; then
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29748$as_echo_n "checking types of args and return type for select... " >&6; }
29749if ${curl_cv_func_select_args+:} false; then :
29750 $as_echo_n "(cached) " >&6
29751else
29752
29753 curl_cv_func_select_args="unknown"
29754 for sel_retv in 'int' 'ssize_t'; do
29755 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29756 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29757 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29758 if test "$curl_cv_func_select_args" = "unknown"; then
29759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760/* end confdefs.h. */
29761
29762
29763#undef inline
29764#ifdef HAVE_WINDOWS_H
29765#ifndef WIN32_LEAN_AND_MEAN
29766#define WIN32_LEAN_AND_MEAN
29767#endif
29768#include <windows.h>
29769#ifdef HAVE_WINSOCK2_H
29770#include <winsock2.h>
29771#else
29772#ifdef HAVE_WINSOCK_H
29773#include <winsock.h>
29774#endif
29775#endif
29776#define SELECTCALLCONV PASCAL
29777#endif
29778#ifdef HAVE_SYS_TYPES_H
29779#include <sys/types.h>
29780#endif
29781#ifdef HAVE_SYS_TIME_H
29782#include <sys/time.h>
29783#ifdef TIME_WITH_SYS_TIME
29784#include <time.h>
29785#endif
29786#else
29787#ifdef HAVE_TIME_H
29788#include <time.h>
29789#endif
29790#endif
29791#ifndef HAVE_WINDOWS_H
29792#ifdef HAVE_SYS_SELECT_H
29793#include <sys/select.h>
29794#endif
29795#ifdef HAVE_SYS_SOCKET_H
29796#include <sys/socket.h>
29797#endif
29798#define SELECTCALLCONV
29799#endif
29800#ifndef HAVE_STRUCT_TIMEVAL
29801 struct timeval {
29802 long tv_sec;
29803 long tv_usec;
29804 };
29805#endif
29806 extern $sel_retv SELECTCALLCONV
29807#ifdef __ANDROID__
29808__attribute__((overloadable))
29809#endif
29810 select($sel_arg1,
29811 $sel_arg234,
29812 $sel_arg234,
29813 $sel_arg234,
29814 $sel_arg5);
29815
29816int main (void)
29817{
29818
29819 $sel_arg1 nfds=0;
29820 $sel_arg234 rfds=0;
29821 $sel_arg234 wfds=0;
29822 $sel_arg234 efds=0;
29823 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29824
29825 ;
29826 return 0;
29827}
29828
29829_ACEOF
29830if ac_fn_c_try_compile "$LINENO"; then :
29831
29832 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29833
29834fi
29835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29836 fi
29837 done
29838 done
29839 done
29840 done
29841
29842fi
29843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29844$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29845 if test "$curl_cv_func_select_args" = "unknown"; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29847$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29849$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29850 else
29851 select_prev_IFS=$IFS; IFS=','
29852 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29853 IFS=$select_prev_IFS
29854 shift
29855 #
29856 sel_qual_type_arg5=$3
29857 #
29858
29859cat >>confdefs.h <<_ACEOF
29860#define SELECT_TYPE_ARG1 $1
29861_ACEOF
29862
29863
29864cat >>confdefs.h <<_ACEOF
29865#define SELECT_TYPE_ARG234 $2
29866_ACEOF
29867
29868
29869cat >>confdefs.h <<_ACEOF
29870#define SELECT_TYPE_RETV $4
29871_ACEOF
29872
29873 #
29874 prev_sh_opts=$-
29875 #
29876 case $prev_sh_opts in
29877 *f*)
29878 ;;
29879 *)
29880 set -f
29881 ;;
29882 esac
29883 #
29884 case "$sel_qual_type_arg5" in
29885 const*)
29886 sel_qual_arg5=const
29887 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29888 ;;
29889 *)
29890 sel_qual_arg5=
29891 sel_type_arg5=$sel_qual_type_arg5
29892 ;;
29893 esac
29894 #
29895
29896cat >>confdefs.h <<_ACEOF
29897#define SELECT_QUAL_ARG5 $sel_qual_arg5
29898_ACEOF
29899
29900
29901cat >>confdefs.h <<_ACEOF
29902#define SELECT_TYPE_ARG5 $sel_type_arg5
29903_ACEOF
29904
29905 #
29906 case $prev_sh_opts in
29907 *f*)
29908 ;;
29909 *)
29910 set +f
29911 ;;
29912 esac
29913 #
29914
29915cat >>confdefs.h <<_ACEOF
29916#define HAVE_SELECT 1
29917_ACEOF
29918
29919 curl_cv_func_select="yes"
29920 fi
29921 fi
29922
29923
29924
29925 for ac_header in sys/types.h sys/socket.h
29926do :
29927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29930 cat >>confdefs.h <<_ACEOF
29931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29932_ACEOF
29933
29934fi
29935
29936done
29937
29938 #
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29940$as_echo_n "checking for recv... " >&6; }
29941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942/* end confdefs.h. */
29943
29944
29945#undef inline
29946#ifdef HAVE_WINDOWS_H
29947#ifndef WIN32_LEAN_AND_MEAN
29948#define WIN32_LEAN_AND_MEAN
29949#endif
29950#include <windows.h>
29951#ifdef HAVE_WINSOCK2_H
29952#include <winsock2.h>
29953#else
29954#ifdef HAVE_WINSOCK_H
29955#include <winsock.h>
29956#endif
29957#endif
29958#else
29959#ifdef HAVE_SYS_TYPES_H
29960#include <sys/types.h>
29961#endif
29962#ifdef HAVE_SYS_SOCKET_H
29963#include <sys/socket.h>
29964#endif
29965#endif
29966
29967int main (void)
29968{
29969
29970 recv(0, 0, 0, 0);
29971
29972 ;
29973 return 0;
29974}
29975
29976_ACEOF
29977if ac_fn_c_try_link "$LINENO"; then :
29978
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29980$as_echo "yes" >&6; }
29981 curl_cv_recv="yes"
29982
29983else
29984
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986$as_echo "no" >&6; }
29987 curl_cv_recv="no"
29988
29989fi
29990rm -f core conftest.err conftest.$ac_objext \
29991 conftest$ac_exeext conftest.$ac_ext
29992 #
29993 if test "$curl_cv_recv" = "yes"; then
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29995$as_echo_n "checking types of args and return type for recv... " >&6; }
29996if ${curl_cv_func_recv_args+:} false; then :
29997 $as_echo_n "(cached) " >&6
29998else
29999
30000 curl_cv_func_recv_args="unknown"
30001 for recv_retv in 'int' 'ssize_t'; do
30002 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30003 for recv_arg2 in 'char *' 'void *'; do
30004 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30005 for recv_arg4 in 'int' 'unsigned int'; do
30006 if test "$curl_cv_func_recv_args" = "unknown"; then
30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008/* end confdefs.h. */
30009
30010
30011#undef inline
30012#ifdef HAVE_WINDOWS_H
30013#ifndef WIN32_LEAN_AND_MEAN
30014#define WIN32_LEAN_AND_MEAN
30015#endif
30016#include <windows.h>
30017#ifdef HAVE_WINSOCK2_H
30018#include <winsock2.h>
30019#else
30020#ifdef HAVE_WINSOCK_H
30021#include <winsock.h>
30022#endif
30023#endif
30024#define RECVCALLCONV PASCAL
30025#else
30026#ifdef HAVE_SYS_TYPES_H
30027#include <sys/types.h>
30028#endif
30029#ifdef HAVE_SYS_SOCKET_H
30030#include <sys/socket.h>
30031#endif
30032#define RECVCALLCONV
30033#endif
30034 extern $recv_retv RECVCALLCONV
30035#ifdef __ANDROID__
30036__attribute__((overloadable))
30037#endif
30038 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30039
30040int main (void)
30041{
30042
30043 $recv_arg1 s=0;
30044 $recv_arg2 buf=0;
30045 $recv_arg3 len=0;
30046 $recv_arg4 flags=0;
30047 $recv_retv res = recv(s, buf, len, flags);
30048
30049 ;
30050 return 0;
30051}
30052
30053_ACEOF
30054if ac_fn_c_try_compile "$LINENO"; then :
30055
30056 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30057
30058fi
30059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30060 fi
30061 done
30062 done
30063 done
30064 done
30065 done
30066
30067fi
30068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30069$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30070 if test "$curl_cv_func_recv_args" = "unknown"; then
30071 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30072 else
30073 recv_prev_IFS=$IFS; IFS=','
30074 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30075 IFS=$recv_prev_IFS
30076 shift
30077 #
30078
30079cat >>confdefs.h <<_ACEOF
30080#define RECV_TYPE_ARG1 $1
30081_ACEOF
30082
30083
30084cat >>confdefs.h <<_ACEOF
30085#define RECV_TYPE_ARG2 $2
30086_ACEOF
30087
30088
30089cat >>confdefs.h <<_ACEOF
30090#define RECV_TYPE_ARG3 $3
30091_ACEOF
30092
30093
30094cat >>confdefs.h <<_ACEOF
30095#define RECV_TYPE_ARG4 $4
30096_ACEOF
30097
30098
30099cat >>confdefs.h <<_ACEOF
30100#define RECV_TYPE_RETV $5
30101_ACEOF
30102
30103 #
30104
30105cat >>confdefs.h <<_ACEOF
30106#define HAVE_RECV 1
30107_ACEOF
30108
30109 curl_cv_func_recv="yes"
30110 fi
30111 else
30112 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30113 fi
30114
30115
30116 for ac_header in sys/types.h sys/socket.h
30117do :
30118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30119ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30120if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30121 cat >>confdefs.h <<_ACEOF
30122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30123_ACEOF
30124
30125fi
30126
30127done
30128
30129 #
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30131$as_echo_n "checking for send... " >&6; }
30132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30133/* end confdefs.h. */
30134
30135
30136#undef inline
30137#ifdef HAVE_WINDOWS_H
30138#ifndef WIN32_LEAN_AND_MEAN
30139#define WIN32_LEAN_AND_MEAN
30140#endif
30141#include <windows.h>
30142#ifdef HAVE_WINSOCK2_H
30143#include <winsock2.h>
30144#else
30145#ifdef HAVE_WINSOCK_H
30146#include <winsock.h>
30147#endif
30148#endif
30149#else
30150#ifdef HAVE_SYS_TYPES_H
30151#include <sys/types.h>
30152#endif
30153#ifdef HAVE_SYS_SOCKET_H
30154#include <sys/socket.h>
30155#endif
30156#endif
30157
30158int main (void)
30159{
30160
30161 send(0, 0, 0, 0);
30162
30163 ;
30164 return 0;
30165}
30166
30167_ACEOF
30168if ac_fn_c_try_link "$LINENO"; then :
30169
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30171$as_echo "yes" >&6; }
30172 curl_cv_send="yes"
30173
30174else
30175
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177$as_echo "no" >&6; }
30178 curl_cv_send="no"
30179
30180fi
30181rm -f core conftest.err conftest.$ac_objext \
30182 conftest$ac_exeext conftest.$ac_ext
30183 #
30184 if test "$curl_cv_send" = "yes"; then
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30186$as_echo_n "checking types of args and return type for send... " >&6; }
30187if ${curl_cv_func_send_args+:} false; then :
30188 $as_echo_n "(cached) " >&6
30189else
30190
30191 curl_cv_func_send_args="unknown"
30192 for send_retv in 'int' 'ssize_t'; do
30193 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30194 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30195 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30196 for send_arg4 in 'int' 'unsigned int'; do
30197 if test "$curl_cv_func_send_args" = "unknown"; then
30198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199/* end confdefs.h. */
30200
30201
30202#undef inline
30203#ifdef HAVE_WINDOWS_H
30204#ifndef WIN32_LEAN_AND_MEAN
30205#define WIN32_LEAN_AND_MEAN
30206#endif
30207#include <windows.h>
30208#ifdef HAVE_WINSOCK2_H
30209#include <winsock2.h>
30210#else
30211#ifdef HAVE_WINSOCK_H
30212#include <winsock.h>
30213#endif
30214#endif
30215#define SENDCALLCONV PASCAL
30216#else
30217#ifdef HAVE_SYS_TYPES_H
30218#include <sys/types.h>
30219#endif
30220#ifdef HAVE_SYS_SOCKET_H
30221#include <sys/socket.h>
30222#endif
30223#define SENDCALLCONV
30224#endif
30225 extern $send_retv SENDCALLCONV
30226#ifdef __ANDROID__
30227__attribute__((overloadable))
30228#endif
30229 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30230
30231int main (void)
30232{
30233
30234 $send_arg1 s=0;
30235 $send_arg3 len=0;
30236 $send_arg4 flags=0;
30237 $send_retv res = send(s, 0, len, flags);
30238
30239 ;
30240 return 0;
30241}
30242
30243_ACEOF
30244if ac_fn_c_try_compile "$LINENO"; then :
30245
30246 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30247
30248fi
30249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250 fi
30251 done
30252 done
30253 done
30254 done
30255 done
30256
30257fi
30258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30259$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30260 if test "$curl_cv_func_send_args" = "unknown"; then
30261 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30262 else
30263 send_prev_IFS=$IFS; IFS=','
30264 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30265 IFS=$send_prev_IFS
30266 shift
30267 #
30268 send_qual_type_arg2=$2
30269 #
30270
30271cat >>confdefs.h <<_ACEOF
30272#define SEND_TYPE_ARG1 $1
30273_ACEOF
30274
30275
30276cat >>confdefs.h <<_ACEOF
30277#define SEND_TYPE_ARG3 $3
30278_ACEOF
30279
30280
30281cat >>confdefs.h <<_ACEOF
30282#define SEND_TYPE_ARG4 $4
30283_ACEOF
30284
30285
30286cat >>confdefs.h <<_ACEOF
30287#define SEND_TYPE_RETV $5
30288_ACEOF
30289
30290 #
30291 prev_sh_opts=$-
30292 #
30293 case $prev_sh_opts in
30294 *f*)
30295 ;;
30296 *)
30297 set -f
30298 ;;
30299 esac
30300 #
30301 case "$send_qual_type_arg2" in
30302 const*)
30303 send_qual_arg2=const
30304 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30305 ;;
30306 *)
30307 send_qual_arg2=
30308 send_type_arg2=$send_qual_type_arg2
30309 ;;
30310 esac
30311 #
30312
30313cat >>confdefs.h <<_ACEOF
30314#define SEND_QUAL_ARG2 $send_qual_arg2
30315_ACEOF
30316
30317
30318cat >>confdefs.h <<_ACEOF
30319#define SEND_TYPE_ARG2 $send_type_arg2
30320_ACEOF
30321
30322 #
30323 case $prev_sh_opts in
30324 *f*)
30325 ;;
30326 *)
30327 set +f
30328 ;;
30329 esac
30330 #
30331
30332cat >>confdefs.h <<_ACEOF
30333#define HAVE_SEND 1
30334_ACEOF
30335
30336 curl_cv_func_send="yes"
30337 fi
30338 else
30339 as_fn_error $? "Unable to link function send" "$LINENO" 5
30340 fi
30341
30342
30343 for ac_header in sys/types.h sys/socket.h
30344do :
30345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30346ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30347if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30348 cat >>confdefs.h <<_ACEOF
30349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30350_ACEOF
30351
30352fi
30353
30354done
30355
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30357$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30358if ${curl_cv_msg_nosignal+:} false; then :
30359 $as_echo_n "(cached) " >&6
30360else
30361
30362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30363/* end confdefs.h. */
30364
30365
30366#undef inline
30367#ifdef HAVE_WINDOWS_H
30368#ifndef WIN32_LEAN_AND_MEAN
30369#define WIN32_LEAN_AND_MEAN
30370#endif
30371#include <windows.h>
30372#ifdef HAVE_WINSOCK2_H
30373#include <winsock2.h>
30374#else
30375#ifdef HAVE_WINSOCK_H
30376#include <winsock.h>
30377#endif
30378#endif
30379#else
30380#ifdef HAVE_SYS_TYPES_H
30381#include <sys/types.h>
30382#endif
30383#ifdef HAVE_SYS_SOCKET_H
30384#include <sys/socket.h>
30385#endif
30386#endif
30387
30388int main (void)
30389{
30390
30391 int flag=MSG_NOSIGNAL;
30392
30393 ;
30394 return 0;
30395}
30396
30397_ACEOF
30398if ac_fn_c_try_compile "$LINENO"; then :
30399
30400 curl_cv_msg_nosignal="yes"
30401
30402else
30403
30404 curl_cv_msg_nosignal="no"
30405
30406fi
30407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30408
30409fi
30410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30411$as_echo "$curl_cv_msg_nosignal" >&6; }
30412 case "$curl_cv_msg_nosignal" in
30413 yes)
30414
30415cat >>confdefs.h <<_ACEOF
30416#define HAVE_MSG_NOSIGNAL 1
30417_ACEOF
30418
30419 ;;
30420 esac
30421
30422
30423
30424curl_includes_unistd="\
30425/* includes start */
30426#ifdef HAVE_SYS_TYPES_H
30427# include <sys/types.h>
30428#endif
30429#ifdef HAVE_UNISTD_H
30430# include <unistd.h>
30431#endif
30432/* includes end */"
30433 for ac_header in sys/types.h unistd.h
30434do :
30435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30437"
30438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30439 cat >>confdefs.h <<_ACEOF
30440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441_ACEOF
30442
30443fi
30444
30445done
30446
30447
30448
30449 #
30450 tst_links_alarm="unknown"
30451 tst_proto_alarm="unknown"
30452 tst_compi_alarm="unknown"
30453 tst_allow_alarm="unknown"
30454 #
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30456$as_echo_n "checking if alarm can be linked... " >&6; }
30457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30458/* end confdefs.h. */
30459
30460
30461#define alarm innocuous_alarm
30462#ifdef __STDC__
30463# include <limits.h>
30464#else
30465# include <assert.h>
30466#endif
30467#undef alarm
30468#ifdef __cplusplus
30469extern "C"
30470#endif
30471char alarm ();
30472#if defined __stub_alarm || defined __stub___alarm
30473choke me
30474#endif
30475
30476int main (void)
30477{
30478return alarm ();
30479 ;
30480 return 0;
30481}
30482
30483_ACEOF
30484if ac_fn_c_try_link "$LINENO"; then :
30485
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30487$as_echo "yes" >&6; }
30488 tst_links_alarm="yes"
30489
30490else
30491
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30493$as_echo "no" >&6; }
30494 tst_links_alarm="no"
30495
30496fi
30497rm -f core conftest.err conftest.$ac_objext \
30498 conftest$ac_exeext conftest.$ac_ext
30499 #
30500 if test "$tst_links_alarm" = "yes"; then
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30502$as_echo_n "checking if alarm is prototyped... " >&6; }
30503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504/* end confdefs.h. */
30505
30506 $curl_includes_unistd
30507
30508_ACEOF
30509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30510 $EGREP "alarm" >/dev/null 2>&1; then :
30511
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30513$as_echo "yes" >&6; }
30514 tst_proto_alarm="yes"
30515
30516else
30517
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519$as_echo "no" >&6; }
30520 tst_proto_alarm="no"
30521
30522fi
30523rm -f conftest*
30524
30525 fi
30526 #
30527 if test "$tst_proto_alarm" = "yes"; then
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30529$as_echo_n "checking if alarm is compilable... " >&6; }
30530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30531/* end confdefs.h. */
30532
30533
30534 $curl_includes_unistd
30535
30536int main (void)
30537{
30538
30539 if(0 != alarm(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_alarm="yes"
30552
30553else
30554
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30556$as_echo "no" >&6; }
30557 tst_compi_alarm="no"
30558
30559fi
30560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561 fi
30562 #
30563 if test "$tst_compi_alarm" = "yes"; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30565$as_echo_n "checking if alarm usage allowed... " >&6; }
30566 if test "x$curl_disallow_alarm" != "xyes"; then
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30568$as_echo "yes" >&6; }
30569 tst_allow_alarm="yes"
30570 else
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572$as_echo "no" >&6; }
30573 tst_allow_alarm="no"
30574 fi
30575 fi
30576 #
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30578$as_echo_n "checking if alarm might be used... " >&6; }
30579 if test "$tst_links_alarm" = "yes" &&
30580 test "$tst_proto_alarm" = "yes" &&
30581 test "$tst_compi_alarm" = "yes" &&
30582 test "$tst_allow_alarm" = "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_ALARM 1
30588_ACEOF
30589
30590 curl_cv_func_alarm="yes"
30591 else
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30593$as_echo "no" >&6; }
30594 curl_cv_func_alarm="no"
30595 fi
30596
30597
30598curl_includes_string="\
30599/* includes start */
30600#ifdef HAVE_SYS_TYPES_H
30601# include <sys/types.h>
30602#endif
30603#ifdef HAVE_STRING_H
30604# include <string.h>
30605#endif
30606#ifdef HAVE_STRINGS_H
30607# include <strings.h>
30608#endif
30609/* includes end */"
30610 for ac_header in sys/types.h string.h strings.h
30611do :
30612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30613ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30614"
30615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30616 cat >>confdefs.h <<_ACEOF
30617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30618_ACEOF
30619
30620fi
30621
30622done
30623
30624
30625
30626curl_includes_libgen="\
30627/* includes start */
30628#ifdef HAVE_SYS_TYPES_H
30629# include <sys/types.h>
30630#endif
30631#ifdef HAVE_LIBGEN_H
30632# include <libgen.h>
30633#endif
30634/* includes end */"
30635 for ac_header in sys/types.h libgen.h
30636do :
30637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30638ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30639"
30640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30641 cat >>confdefs.h <<_ACEOF
30642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643_ACEOF
30644
30645fi
30646
30647done
30648
30649
30650
30651 #
30652 tst_links_basename="unknown"
30653 tst_proto_basename="unknown"
30654 tst_compi_basename="unknown"
30655 tst_allow_basename="unknown"
30656 #
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30658$as_echo_n "checking if basename can be linked... " >&6; }
30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30660/* end confdefs.h. */
30661
30662
30663#define basename innocuous_basename
30664#ifdef __STDC__
30665# include <limits.h>
30666#else
30667# include <assert.h>
30668#endif
30669#undef basename
30670#ifdef __cplusplus
30671extern "C"
30672#endif
30673char basename ();
30674#if defined __stub_basename || defined __stub___basename
30675choke me
30676#endif
30677
30678int main (void)
30679{
30680return basename ();
30681 ;
30682 return 0;
30683}
30684
30685_ACEOF
30686if ac_fn_c_try_link "$LINENO"; then :
30687
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689$as_echo "yes" >&6; }
30690 tst_links_basename="yes"
30691
30692else
30693
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30695$as_echo "no" >&6; }
30696 tst_links_basename="no"
30697
30698fi
30699rm -f core conftest.err conftest.$ac_objext \
30700 conftest$ac_exeext conftest.$ac_ext
30701 #
30702 if test "$tst_links_basename" = "yes"; then
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30704$as_echo_n "checking if basename is prototyped... " >&6; }
30705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h. */
30707
30708 $curl_includes_string
30709 $curl_includes_libgen
30710 $curl_includes_unistd
30711
30712_ACEOF
30713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30714 $EGREP "basename" >/dev/null 2>&1; then :
30715
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717$as_echo "yes" >&6; }
30718 tst_proto_basename="yes"
30719
30720else
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
30724 tst_proto_basename="no"
30725
30726fi
30727rm -f conftest*
30728
30729 fi
30730 #
30731 if test "$tst_proto_basename" = "yes"; then
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30733$as_echo_n "checking if basename is compilable... " >&6; }
30734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30735/* end confdefs.h. */
30736
30737
30738 $curl_includes_string
30739 $curl_includes_libgen
30740 $curl_includes_unistd
30741
30742int main (void)
30743{
30744
30745 if(0 != basename(0))
30746 return 1;
30747
30748 ;
30749 return 0;
30750}
30751
30752_ACEOF
30753if ac_fn_c_try_compile "$LINENO"; then :
30754
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30756$as_echo "yes" >&6; }
30757 tst_compi_basename="yes"
30758
30759else
30760
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30762$as_echo "no" >&6; }
30763 tst_compi_basename="no"
30764
30765fi
30766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767 fi
30768 #
30769 if test "$tst_compi_basename" = "yes"; then
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30771$as_echo_n "checking if basename usage allowed... " >&6; }
30772 if test "x$curl_disallow_basename" != "xyes"; then
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774$as_echo "yes" >&6; }
30775 tst_allow_basename="yes"
30776 else
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778$as_echo "no" >&6; }
30779 tst_allow_basename="no"
30780 fi
30781 fi
30782 #
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30784$as_echo_n "checking if basename might be used... " >&6; }
30785 if test "$tst_links_basename" = "yes" &&
30786 test "$tst_proto_basename" = "yes" &&
30787 test "$tst_compi_basename" = "yes" &&
30788 test "$tst_allow_basename" = "yes"; then
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790$as_echo "yes" >&6; }
30791
30792cat >>confdefs.h <<_ACEOF
30793#define HAVE_BASENAME 1
30794_ACEOF
30795
30796 curl_cv_func_basename="yes"
30797 else
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799$as_echo "no" >&6; }
30800 curl_cv_func_basename="no"
30801 fi
30802
30803
30804curl_includes_socket="\
30805/* includes start */
30806#ifdef HAVE_SYS_TYPES_H
30807# include <sys/types.h>
30808#endif
30809#ifdef HAVE_SOCKET_H
30810# include <socket.h>
30811#endif
30812/* includes end */"
30813 for ac_header in sys/types.h socket.h
30814do :
30815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30816ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30817"
30818if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30819 cat >>confdefs.h <<_ACEOF
30820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30821_ACEOF
30822
30823fi
30824
30825done
30826
30827
30828
30829 #
30830 tst_links_closesocket="unknown"
30831 tst_proto_closesocket="unknown"
30832 tst_compi_closesocket="unknown"
30833 tst_allow_closesocket="unknown"
30834 #
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30836$as_echo_n "checking if closesocket can be linked... " >&6; }
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838/* end confdefs.h. */
30839
30840
30841 $curl_includes_winsock2
30842 $curl_includes_socket
30843
30844int main (void)
30845{
30846
30847 if(0 != closesocket(0))
30848 return 1;
30849
30850 ;
30851 return 0;
30852}
30853
30854_ACEOF
30855if ac_fn_c_try_link "$LINENO"; then :
30856
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30858$as_echo "yes" >&6; }
30859 tst_links_closesocket="yes"
30860
30861else
30862
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30864$as_echo "no" >&6; }
30865 tst_links_closesocket="no"
30866
30867fi
30868rm -f core conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870 #
30871 if test "$tst_links_closesocket" = "yes"; then
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30873$as_echo_n "checking if closesocket is prototyped... " >&6; }
30874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30875/* end confdefs.h. */
30876
30877 $curl_includes_winsock2
30878 $curl_includes_socket
30879
30880_ACEOF
30881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30882 $EGREP "closesocket" >/dev/null 2>&1; then :
30883
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30885$as_echo "yes" >&6; }
30886 tst_proto_closesocket="yes"
30887
30888else
30889
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891$as_echo "no" >&6; }
30892 tst_proto_closesocket="no"
30893
30894fi
30895rm -f conftest*
30896
30897 fi
30898 #
30899 if test "$tst_proto_closesocket" = "yes"; then
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30901$as_echo_n "checking if closesocket is compilable... " >&6; }
30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903/* end confdefs.h. */
30904
30905
30906 $curl_includes_winsock2
30907 $curl_includes_socket
30908
30909int main (void)
30910{
30911
30912 if(0 != closesocket(0))
30913 return 1;
30914
30915 ;
30916 return 0;
30917}
30918
30919_ACEOF
30920if ac_fn_c_try_compile "$LINENO"; then :
30921
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30923$as_echo "yes" >&6; }
30924 tst_compi_closesocket="yes"
30925
30926else
30927
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30929$as_echo "no" >&6; }
30930 tst_compi_closesocket="no"
30931
30932fi
30933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30934 fi
30935 #
30936 if test "$tst_compi_closesocket" = "yes"; then
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30938$as_echo_n "checking if closesocket usage allowed... " >&6; }
30939 if test "x$curl_disallow_closesocket" != "xyes"; then
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30941$as_echo "yes" >&6; }
30942 tst_allow_closesocket="yes"
30943 else
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30945$as_echo "no" >&6; }
30946 tst_allow_closesocket="no"
30947 fi
30948 fi
30949 #
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30951$as_echo_n "checking if closesocket might be used... " >&6; }
30952 if test "$tst_links_closesocket" = "yes" &&
30953 test "$tst_proto_closesocket" = "yes" &&
30954 test "$tst_compi_closesocket" = "yes" &&
30955 test "$tst_allow_closesocket" = "yes"; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957$as_echo "yes" >&6; }
30958
30959cat >>confdefs.h <<_ACEOF
30960#define HAVE_CLOSESOCKET 1
30961_ACEOF
30962
30963 curl_cv_func_closesocket="yes"
30964 else
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30966$as_echo "no" >&6; }
30967 curl_cv_func_closesocket="no"
30968 fi
30969
30970
30971 #
30972 tst_links_closesocket_camel="unknown"
30973 tst_proto_closesocket_camel="unknown"
30974 tst_compi_closesocket_camel="unknown"
30975 tst_allow_closesocket_camel="unknown"
30976 #
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30978$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30980/* end confdefs.h. */
30981
30982
30983 $curl_includes_sys_socket
30984
30985int main (void)
30986{
30987
30988 if(0 != CloseSocket(0))
30989 return 1;
30990
30991 ;
30992 return 0;
30993}
30994
30995_ACEOF
30996if ac_fn_c_try_link "$LINENO"; then :
30997
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30999$as_echo "yes" >&6; }
31000 tst_links_closesocket_camel="yes"
31001
31002else
31003
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005$as_echo "no" >&6; }
31006 tst_links_closesocket_camel="no"
31007
31008fi
31009rm -f core conftest.err conftest.$ac_objext \
31010 conftest$ac_exeext conftest.$ac_ext
31011 #
31012 if test "$tst_links_closesocket_camel" = "yes"; then
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31014$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018 $curl_includes_sys_socket
31019
31020_ACEOF
31021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31022 $EGREP "CloseSocket" >/dev/null 2>&1; then :
31023
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31025$as_echo "yes" >&6; }
31026 tst_proto_closesocket_camel="yes"
31027
31028else
31029
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31031$as_echo "no" >&6; }
31032 tst_proto_closesocket_camel="no"
31033
31034fi
31035rm -f conftest*
31036
31037 fi
31038 #
31039 if test "$tst_proto_closesocket_camel" = "yes"; then
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31041$as_echo_n "checking if CloseSocket is compilable... " >&6; }
31042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31043/* end confdefs.h. */
31044
31045
31046 $curl_includes_sys_socket
31047
31048int main (void)
31049{
31050
31051 if(0 != CloseSocket(0))
31052 return 1;
31053
31054 ;
31055 return 0;
31056}
31057
31058_ACEOF
31059if ac_fn_c_try_compile "$LINENO"; then :
31060
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31062$as_echo "yes" >&6; }
31063 tst_compi_closesocket_camel="yes"
31064
31065else
31066
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068$as_echo "no" >&6; }
31069 tst_compi_closesocket_camel="no"
31070
31071fi
31072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31073 fi
31074 #
31075 if test "$tst_compi_closesocket_camel" = "yes"; then
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31077$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31078 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080$as_echo "yes" >&6; }
31081 tst_allow_closesocket_camel="yes"
31082 else
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31084$as_echo "no" >&6; }
31085 tst_allow_closesocket_camel="no"
31086 fi
31087 fi
31088 #
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31090$as_echo_n "checking if CloseSocket might be used... " >&6; }
31091 if test "$tst_links_closesocket_camel" = "yes" &&
31092 test "$tst_proto_closesocket_camel" = "yes" &&
31093 test "$tst_compi_closesocket_camel" = "yes" &&
31094 test "$tst_allow_closesocket_camel" = "yes"; then
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096$as_echo "yes" >&6; }
31097
31098cat >>confdefs.h <<_ACEOF
31099#define HAVE_CLOSESOCKET_CAMEL 1
31100_ACEOF
31101
31102 curl_cv_func_closesocket_camel="yes"
31103 else
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31105$as_echo "no" >&6; }
31106 curl_cv_func_closesocket_camel="no"
31107 fi
31108
31109
31110 #
31111 tst_links_connect="unknown"
31112 tst_proto_connect="unknown"
31113 tst_compi_connect="unknown"
31114 tst_allow_connect="unknown"
31115 #
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31117$as_echo_n "checking if connect can be linked... " >&6; }
31118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31119/* end confdefs.h. */
31120
31121
31122 $curl_includes_winsock2
31123 $curl_includes_sys_socket
31124 $curl_includes_socket
31125
31126int main (void)
31127{
31128
31129 if(0 != connect(0, 0, 0))
31130 return 1;
31131
31132 ;
31133 return 0;
31134}
31135
31136_ACEOF
31137if ac_fn_c_try_link "$LINENO"; then :
31138
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140$as_echo "yes" >&6; }
31141 tst_links_connect="yes"
31142
31143else
31144
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146$as_echo "no" >&6; }
31147 tst_links_connect="no"
31148
31149fi
31150rm -f core conftest.err conftest.$ac_objext \
31151 conftest$ac_exeext conftest.$ac_ext
31152 #
31153 if test "$tst_links_connect" = "yes"; then
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31155$as_echo_n "checking if connect is prototyped... " >&6; }
31156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157/* end confdefs.h. */
31158
31159 $curl_includes_winsock2
31160 $curl_includes_sys_socket
31161 $curl_includes_socket
31162
31163_ACEOF
31164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31165 $EGREP "connect" >/dev/null 2>&1; then :
31166
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31168$as_echo "yes" >&6; }
31169 tst_proto_connect="yes"
31170
31171else
31172
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174$as_echo "no" >&6; }
31175 tst_proto_connect="no"
31176
31177fi
31178rm -f conftest*
31179
31180 fi
31181 #
31182 if test "$tst_proto_connect" = "yes"; then
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31184$as_echo_n "checking if connect is compilable... " >&6; }
31185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31186/* end confdefs.h. */
31187
31188
31189 $curl_includes_winsock2
31190 $curl_includes_sys_socket
31191 $curl_includes_socket
31192
31193int main (void)
31194{
31195
31196 if(0 != connect(0, 0, 0))
31197 return 1;
31198
31199 ;
31200 return 0;
31201}
31202
31203_ACEOF
31204if ac_fn_c_try_compile "$LINENO"; then :
31205
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31207$as_echo "yes" >&6; }
31208 tst_compi_connect="yes"
31209
31210else
31211
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31213$as_echo "no" >&6; }
31214 tst_compi_connect="no"
31215
31216fi
31217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218 fi
31219 #
31220 if test "$tst_compi_connect" = "yes"; then
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31222$as_echo_n "checking if connect usage allowed... " >&6; }
31223 if test "x$curl_disallow_connect" != "xyes"; then
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31225$as_echo "yes" >&6; }
31226 tst_allow_connect="yes"
31227 else
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31229$as_echo "no" >&6; }
31230 tst_allow_connect="no"
31231 fi
31232 fi
31233 #
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31235$as_echo_n "checking if connect might be used... " >&6; }
31236 if test "$tst_links_connect" = "yes" &&
31237 test "$tst_proto_connect" = "yes" &&
31238 test "$tst_compi_connect" = "yes" &&
31239 test "$tst_allow_connect" = "yes"; then
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241$as_echo "yes" >&6; }
31242
31243cat >>confdefs.h <<_ACEOF
31244#define HAVE_CONNECT 1
31245_ACEOF
31246
31247 curl_cv_func_connect="yes"
31248 else
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31250$as_echo "no" >&6; }
31251 curl_cv_func_connect="no"
31252 fi
31253
31254
31255curl_includes_fcntl="\
31256/* includes start */
31257#ifdef HAVE_SYS_TYPES_H
31258# include <sys/types.h>
31259#endif
31260#ifdef HAVE_UNISTD_H
31261# include <unistd.h>
31262#endif
31263#ifdef HAVE_FCNTL_H
31264# include <fcntl.h>
31265#endif
31266/* includes end */"
31267 for ac_header in sys/types.h unistd.h fcntl.h
31268do :
31269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31270ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31271"
31272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31273 cat >>confdefs.h <<_ACEOF
31274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31275_ACEOF
31276
31277fi
31278
31279done
31280
31281
31282
31283 #
31284 tst_links_fcntl="unknown"
31285 tst_proto_fcntl="unknown"
31286 tst_compi_fcntl="unknown"
31287 tst_allow_fcntl="unknown"
31288 #
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31290$as_echo_n "checking if fcntl can be linked... " >&6; }
31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292/* end confdefs.h. */
31293
31294
31295#define fcntl innocuous_fcntl
31296#ifdef __STDC__
31297# include <limits.h>
31298#else
31299# include <assert.h>
31300#endif
31301#undef fcntl
31302#ifdef __cplusplus
31303extern "C"
31304#endif
31305char fcntl ();
31306#if defined __stub_fcntl || defined __stub___fcntl
31307choke me
31308#endif
31309
31310int main (void)
31311{
31312return fcntl ();
31313 ;
31314 return 0;
31315}
31316
31317_ACEOF
31318if ac_fn_c_try_link "$LINENO"; then :
31319
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321$as_echo "yes" >&6; }
31322 tst_links_fcntl="yes"
31323
31324else
31325
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327$as_echo "no" >&6; }
31328 tst_links_fcntl="no"
31329
31330fi
31331rm -f core conftest.err conftest.$ac_objext \
31332 conftest$ac_exeext conftest.$ac_ext
31333 #
31334 if test "$tst_links_fcntl" = "yes"; then
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31336$as_echo_n "checking if fcntl is prototyped... " >&6; }
31337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338/* end confdefs.h. */
31339
31340 $curl_includes_fcntl
31341
31342_ACEOF
31343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31344 $EGREP "fcntl" >/dev/null 2>&1; then :
31345
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31347$as_echo "yes" >&6; }
31348 tst_proto_fcntl="yes"
31349
31350else
31351
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31353$as_echo "no" >&6; }
31354 tst_proto_fcntl="no"
31355
31356fi
31357rm -f conftest*
31358
31359 fi
31360 #
31361 if test "$tst_proto_fcntl" = "yes"; then
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31363$as_echo_n "checking if fcntl is compilable... " >&6; }
31364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365/* end confdefs.h. */
31366
31367
31368 $curl_includes_fcntl
31369
31370int main (void)
31371{
31372
31373 if(0 != fcntl(0, 0, 0))
31374 return 1;
31375
31376 ;
31377 return 0;
31378}
31379
31380_ACEOF
31381if ac_fn_c_try_compile "$LINENO"; then :
31382
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31384$as_echo "yes" >&6; }
31385 tst_compi_fcntl="yes"
31386
31387else
31388
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31390$as_echo "no" >&6; }
31391 tst_compi_fcntl="no"
31392
31393fi
31394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31395 fi
31396 #
31397 if test "$tst_compi_fcntl" = "yes"; then
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31399$as_echo_n "checking if fcntl usage allowed... " >&6; }
31400 if test "x$curl_disallow_fcntl" != "xyes"; then
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31402$as_echo "yes" >&6; }
31403 tst_allow_fcntl="yes"
31404 else
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31406$as_echo "no" >&6; }
31407 tst_allow_fcntl="no"
31408 fi
31409 fi
31410 #
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31412$as_echo_n "checking if fcntl might be used... " >&6; }
31413 if test "$tst_links_fcntl" = "yes" &&
31414 test "$tst_proto_fcntl" = "yes" &&
31415 test "$tst_compi_fcntl" = "yes" &&
31416 test "$tst_allow_fcntl" = "yes"; then
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31418$as_echo "yes" >&6; }
31419
31420cat >>confdefs.h <<_ACEOF
31421#define HAVE_FCNTL 1
31422_ACEOF
31423
31424 curl_cv_func_fcntl="yes"
31425
31426 #
31427 tst_compi_fcntl_o_nonblock="unknown"
31428 tst_allow_fcntl_o_nonblock="unknown"
31429 #
31430 case $host_os in
31431 sunos4* | aix3* | beos*)
31432 curl_disallow_fcntl_o_nonblock="yes"
31433 ;;
31434 esac
31435 #
31436 if test "$curl_cv_func_fcntl" = "yes"; then
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31438$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440/* end confdefs.h. */
31441
31442
31443 $curl_includes_fcntl
31444
31445int main (void)
31446{
31447
31448 int flags = 0;
31449 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31450 return 1;
31451
31452 ;
31453 return 0;
31454}
31455
31456_ACEOF
31457if ac_fn_c_try_compile "$LINENO"; then :
31458
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31460$as_echo "yes" >&6; }
31461 tst_compi_fcntl_o_nonblock="yes"
31462
31463else
31464
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31466$as_echo "no" >&6; }
31467 tst_compi_fcntl_o_nonblock="no"
31468
31469fi
31470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31471 fi
31472 #
31473 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31475$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31476 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31478$as_echo "yes" >&6; }
31479 tst_allow_fcntl_o_nonblock="yes"
31480 else
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31482$as_echo "no" >&6; }
31483 tst_allow_fcntl_o_nonblock="no"
31484 fi
31485 fi
31486 #
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31488$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31489 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31490 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31492$as_echo "yes" >&6; }
31493
31494cat >>confdefs.h <<_ACEOF
31495#define HAVE_FCNTL_O_NONBLOCK 1
31496_ACEOF
31497
31498 curl_cv_func_fcntl_o_nonblock="yes"
31499 else
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501$as_echo "no" >&6; }
31502 curl_cv_func_fcntl_o_nonblock="no"
31503 fi
31504
31505 else
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31507$as_echo "no" >&6; }
31508 curl_cv_func_fcntl="no"
31509 fi
31510
31511
31512curl_includes_stdio="\
31513/* includes start */
31514#ifdef HAVE_SYS_TYPES_H
31515# include <sys/types.h>
31516#endif
31517#ifdef HAVE_STDIO_H
31518# include <stdio.h>
31519#endif
31520/* includes end */"
31521 for ac_header in sys/types.h stdio.h
31522do :
31523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31524ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31525"
31526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31527 cat >>confdefs.h <<_ACEOF
31528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31529_ACEOF
31530
31531fi
31532
31533done
31534
31535
31536
31537 #
31538 tst_links_fdopen="unknown"
31539 tst_proto_fdopen="unknown"
31540 tst_compi_fdopen="unknown"
31541 tst_allow_fdopen="unknown"
31542 #
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31544$as_echo_n "checking if fdopen can be linked... " >&6; }
31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546/* end confdefs.h. */
31547
31548
31549#define fdopen innocuous_fdopen
31550#ifdef __STDC__
31551# include <limits.h>
31552#else
31553# include <assert.h>
31554#endif
31555#undef fdopen
31556#ifdef __cplusplus
31557extern "C"
31558#endif
31559char fdopen ();
31560#if defined __stub_fdopen || defined __stub___fdopen
31561choke me
31562#endif
31563
31564int main (void)
31565{
31566return fdopen ();
31567 ;
31568 return 0;
31569}
31570
31571_ACEOF
31572if ac_fn_c_try_link "$LINENO"; then :
31573
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575$as_echo "yes" >&6; }
31576 tst_links_fdopen="yes"
31577
31578else
31579
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581$as_echo "no" >&6; }
31582 tst_links_fdopen="no"
31583
31584fi
31585rm -f core conftest.err conftest.$ac_objext \
31586 conftest$ac_exeext conftest.$ac_ext
31587 #
31588 if test "$tst_links_fdopen" = "yes"; then
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31590$as_echo_n "checking if fdopen is prototyped... " >&6; }
31591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592/* end confdefs.h. */
31593
31594 $curl_includes_stdio
31595
31596_ACEOF
31597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31598 $EGREP "fdopen" >/dev/null 2>&1; then :
31599
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31601$as_echo "yes" >&6; }
31602 tst_proto_fdopen="yes"
31603
31604else
31605
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31607$as_echo "no" >&6; }
31608 tst_proto_fdopen="no"
31609
31610fi
31611rm -f conftest*
31612
31613 fi
31614 #
31615 if test "$tst_proto_fdopen" = "yes"; then
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31617$as_echo_n "checking if fdopen is compilable... " >&6; }
31618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31619/* end confdefs.h. */
31620
31621
31622 $curl_includes_stdio
31623
31624int main (void)
31625{
31626
31627 if(0 != fdopen(0, 0))
31628 return 1;
31629
31630 ;
31631 return 0;
31632}
31633
31634_ACEOF
31635if ac_fn_c_try_compile "$LINENO"; then :
31636
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31638$as_echo "yes" >&6; }
31639 tst_compi_fdopen="yes"
31640
31641else
31642
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31644$as_echo "no" >&6; }
31645 tst_compi_fdopen="no"
31646
31647fi
31648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 fi
31650 #
31651 if test "$tst_compi_fdopen" = "yes"; then
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31653$as_echo_n "checking if fdopen usage allowed... " >&6; }
31654 if test "x$curl_disallow_fdopen" != "xyes"; then
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31656$as_echo "yes" >&6; }
31657 tst_allow_fdopen="yes"
31658 else
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660$as_echo "no" >&6; }
31661 tst_allow_fdopen="no"
31662 fi
31663 fi
31664 #
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31666$as_echo_n "checking if fdopen might be used... " >&6; }
31667 if test "$tst_links_fdopen" = "yes" &&
31668 test "$tst_proto_fdopen" = "yes" &&
31669 test "$tst_compi_fdopen" = "yes" &&
31670 test "$tst_allow_fdopen" = "yes"; then
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31672$as_echo "yes" >&6; }
31673
31674cat >>confdefs.h <<_ACEOF
31675#define HAVE_FDOPEN 1
31676_ACEOF
31677
31678 curl_cv_func_fdopen="yes"
31679 else
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31681$as_echo "no" >&6; }
31682 curl_cv_func_fdopen="no"
31683 fi
31684
31685
31686curl_includes_netdb="\
31687/* includes start */
31688#ifdef HAVE_SYS_TYPES_H
31689# include <sys/types.h>
31690#endif
31691#ifdef HAVE_NETDB_H
31692# include <netdb.h>
31693#endif
31694/* includes end */"
31695 for ac_header in sys/types.h netdb.h
31696do :
31697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31699"
31700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31701 cat >>confdefs.h <<_ACEOF
31702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31703_ACEOF
31704
31705fi
31706
31707done
31708
31709
31710
31711 #
31712 tst_links_freeaddrinfo="unknown"
31713 tst_proto_freeaddrinfo="unknown"
31714 tst_compi_freeaddrinfo="unknown"
31715 tst_allow_freeaddrinfo="unknown"
31716 #
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31718$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720/* end confdefs.h. */
31721
31722
31723 $curl_includes_ws2tcpip
31724 $curl_includes_sys_socket
31725 $curl_includes_netdb
31726
31727int main (void)
31728{
31729
31730 freeaddrinfo(0);
31731
31732 ;
31733 return 0;
31734}
31735
31736_ACEOF
31737if ac_fn_c_try_link "$LINENO"; then :
31738
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740$as_echo "yes" >&6; }
31741 tst_links_freeaddrinfo="yes"
31742
31743else
31744
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31746$as_echo "no" >&6; }
31747 tst_links_freeaddrinfo="no"
31748
31749fi
31750rm -f core conftest.err conftest.$ac_objext \
31751 conftest$ac_exeext conftest.$ac_ext
31752 #
31753 if test "$tst_links_freeaddrinfo" = "yes"; then
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31755$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31757/* end confdefs.h. */
31758
31759 $curl_includes_ws2tcpip
31760 $curl_includes_sys_socket
31761 $curl_includes_netdb
31762
31763_ACEOF
31764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31765 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31766
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31768$as_echo "yes" >&6; }
31769 tst_proto_freeaddrinfo="yes"
31770
31771else
31772
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31774$as_echo "no" >&6; }
31775 tst_proto_freeaddrinfo="no"
31776
31777fi
31778rm -f conftest*
31779
31780 fi
31781 #
31782 if test "$tst_proto_freeaddrinfo" = "yes"; then
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31784$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31786/* end confdefs.h. */
31787
31788
31789 $curl_includes_ws2tcpip
31790 $curl_includes_sys_socket
31791 $curl_includes_netdb
31792
31793int main (void)
31794{
31795
31796 freeaddrinfo(0);
31797
31798 ;
31799 return 0;
31800}
31801
31802_ACEOF
31803if ac_fn_c_try_compile "$LINENO"; then :
31804
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31806$as_echo "yes" >&6; }
31807 tst_compi_freeaddrinfo="yes"
31808
31809else
31810
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812$as_echo "no" >&6; }
31813 tst_compi_freeaddrinfo="no"
31814
31815fi
31816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31817 fi
31818 #
31819 if test "$tst_compi_freeaddrinfo" = "yes"; then
31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31821$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31822 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31824$as_echo "yes" >&6; }
31825 tst_allow_freeaddrinfo="yes"
31826 else
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828$as_echo "no" >&6; }
31829 tst_allow_freeaddrinfo="no"
31830 fi
31831 fi
31832 #
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31834$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31835 if test "$tst_links_freeaddrinfo" = "yes" &&
31836 test "$tst_proto_freeaddrinfo" = "yes" &&
31837 test "$tst_compi_freeaddrinfo" = "yes" &&
31838 test "$tst_allow_freeaddrinfo" = "yes"; then
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31840$as_echo "yes" >&6; }
31841
31842cat >>confdefs.h <<_ACEOF
31843#define HAVE_FREEADDRINFO 1
31844_ACEOF
31845
31846 curl_cv_func_freeaddrinfo="yes"
31847 else
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31849$as_echo "no" >&6; }
31850 curl_cv_func_freeaddrinfo="no"
31851 fi
31852
31853
31854curl_includes_ifaddrs="\
31855/* includes start */
31856#ifdef HAVE_SYS_TYPES_H
31857# include <sys/types.h>
31858#endif
31859#ifdef HAVE_SYS_SOCKET_H
31860# include <sys/socket.h>
31861#endif
31862#ifdef HAVE_NETINET_IN_H
31863# include <netinet/in.h>
31864#endif
31865#ifdef HAVE_IFADDRS_H
31866# include <ifaddrs.h>
31867#endif
31868/* includes end */"
31869 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31870do :
31871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31872ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31873"
31874if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31875 cat >>confdefs.h <<_ACEOF
31876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31877_ACEOF
31878
31879fi
31880
31881done
31882
31883
31884
31885 #
31886 tst_links_freeifaddrs="unknown"
31887 tst_proto_freeifaddrs="unknown"
31888 tst_compi_freeifaddrs="unknown"
31889 tst_allow_freeifaddrs="unknown"
31890 #
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31892$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31894/* end confdefs.h. */
31895
31896
31897#define freeifaddrs innocuous_freeifaddrs
31898#ifdef __STDC__
31899# include <limits.h>
31900#else
31901# include <assert.h>
31902#endif
31903#undef freeifaddrs
31904#ifdef __cplusplus
31905extern "C"
31906#endif
31907char freeifaddrs ();
31908#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31909choke me
31910#endif
31911
31912int main (void)
31913{
31914return freeifaddrs ();
31915 ;
31916 return 0;
31917}
31918
31919_ACEOF
31920if ac_fn_c_try_link "$LINENO"; then :
31921
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923$as_echo "yes" >&6; }
31924 tst_links_freeifaddrs="yes"
31925
31926else
31927
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929$as_echo "no" >&6; }
31930 tst_links_freeifaddrs="no"
31931
31932fi
31933rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
31935 #
31936 if test "$tst_links_freeifaddrs" = "yes"; then
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31938$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31940/* end confdefs.h. */
31941
31942 $curl_includes_ifaddrs
31943
31944_ACEOF
31945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31946 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31947
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949$as_echo "yes" >&6; }
31950 tst_proto_freeifaddrs="yes"
31951
31952else
31953
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955$as_echo "no" >&6; }
31956 tst_proto_freeifaddrs="no"
31957
31958fi
31959rm -f conftest*
31960
31961 fi
31962 #
31963 if test "$tst_proto_freeifaddrs" = "yes"; then
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31965$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967/* end confdefs.h. */
31968
31969
31970 $curl_includes_ifaddrs
31971
31972int main (void)
31973{
31974
31975 freeifaddrs(0);
31976
31977 ;
31978 return 0;
31979}
31980
31981_ACEOF
31982if ac_fn_c_try_compile "$LINENO"; then :
31983
31984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31985$as_echo "yes" >&6; }
31986 tst_compi_freeifaddrs="yes"
31987
31988else
31989
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31991$as_echo "no" >&6; }
31992 tst_compi_freeifaddrs="no"
31993
31994fi
31995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31996 fi
31997 #
31998 if test "$tst_compi_freeifaddrs" = "yes"; then
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32000$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32001 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32003$as_echo "yes" >&6; }
32004 tst_allow_freeifaddrs="yes"
32005 else
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007$as_echo "no" >&6; }
32008 tst_allow_freeifaddrs="no"
32009 fi
32010 fi
32011 #
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32013$as_echo_n "checking if freeifaddrs might be used... " >&6; }
32014 if test "$tst_links_freeifaddrs" = "yes" &&
32015 test "$tst_proto_freeifaddrs" = "yes" &&
32016 test "$tst_compi_freeifaddrs" = "yes" &&
32017 test "$tst_allow_freeifaddrs" = "yes"; then
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32019$as_echo "yes" >&6; }
32020
32021cat >>confdefs.h <<_ACEOF
32022#define HAVE_FREEIFADDRS 1
32023_ACEOF
32024
32025 curl_cv_func_freeifaddrs="yes"
32026 else
32027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028$as_echo "no" >&6; }
32029 curl_cv_func_freeifaddrs="no"
32030 fi
32031
32032
32033curl_includes_sys_xattr="\
32034/* includes start */
32035#ifdef HAVE_SYS_TYPES_H
32036# include <sys/types.h>
32037#endif
32038#ifdef HAVE_SYS_XATTR_H
32039# include <sys/xattr.h>
32040#endif
32041/* includes end */"
32042 for ac_header in sys/types.h sys/xattr.h
32043do :
32044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32045ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32046"
32047if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32048 cat >>confdefs.h <<_ACEOF
32049#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32050_ACEOF
32051
32052fi
32053
32054done
32055
32056
32057
32058 #
32059 tst_links_fsetxattr="unknown"
32060 tst_proto_fsetxattr="unknown"
32061 tst_compi_fsetxattr="unknown"
32062 tst_allow_fsetxattr="unknown"
32063 tst_nargs_fsetxattr="unknown"
32064 #
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32066$as_echo_n "checking if fsetxattr can be linked... " >&6; }
32067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068/* end confdefs.h. */
32069
32070
32071#define fsetxattr innocuous_fsetxattr
32072#ifdef __STDC__
32073# include <limits.h>
32074#else
32075# include <assert.h>
32076#endif
32077#undef fsetxattr
32078#ifdef __cplusplus
32079extern "C"
32080#endif
32081char fsetxattr ();
32082#if defined __stub_fsetxattr || defined __stub___fsetxattr
32083choke me
32084#endif
32085
32086int main (void)
32087{
32088return fsetxattr ();
32089 ;
32090 return 0;
32091}
32092
32093_ACEOF
32094if ac_fn_c_try_link "$LINENO"; then :
32095
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32097$as_echo "yes" >&6; }
32098 tst_links_fsetxattr="yes"
32099
32100else
32101
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32103$as_echo "no" >&6; }
32104 tst_links_fsetxattr="no"
32105
32106fi
32107rm -f core conftest.err conftest.$ac_objext \
32108 conftest$ac_exeext conftest.$ac_ext
32109 #
32110 if test "$tst_links_fsetxattr" = "yes"; then
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32112$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32114/* end confdefs.h. */
32115
32116 $curl_includes_sys_xattr
32117
32118_ACEOF
32119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32120 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32121
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32123$as_echo "yes" >&6; }
32124 tst_proto_fsetxattr="yes"
32125
32126else
32127
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129$as_echo "no" >&6; }
32130 tst_proto_fsetxattr="no"
32131
32132fi
32133rm -f conftest*
32134
32135 fi
32136 #
32137 if test "$tst_proto_fsetxattr" = "yes"; then
32138 if test "$tst_nargs_fsetxattr" = "unknown"; then
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32140$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142/* end confdefs.h. */
32143
32144
32145 $curl_includes_sys_xattr
32146
32147int main (void)
32148{
32149
32150 if(0 != fsetxattr(0, 0, 0, 0, 0))
32151 return 1;
32152
32153 ;
32154 return 0;
32155}
32156
32157_ACEOF
32158if ac_fn_c_try_compile "$LINENO"; then :
32159
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32161$as_echo "yes" >&6; }
32162 tst_compi_fsetxattr="yes"
32163 tst_nargs_fsetxattr="5"
32164
32165else
32166
32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168$as_echo "no" >&6; }
32169 tst_compi_fsetxattr="no"
32170
32171fi
32172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173 fi
32174 if test "$tst_nargs_fsetxattr" = "unknown"; then
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32176$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32178/* end confdefs.h. */
32179
32180
32181 $curl_includes_sys_xattr
32182
32183int main (void)
32184{
32185
32186 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32187 return 1;
32188
32189 ;
32190 return 0;
32191}
32192
32193_ACEOF
32194if ac_fn_c_try_compile "$LINENO"; then :
32195
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32197$as_echo "yes" >&6; }
32198 tst_compi_fsetxattr="yes"
32199 tst_nargs_fsetxattr="6"
32200
32201else
32202
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32204$as_echo "no" >&6; }
32205 tst_compi_fsetxattr="no"
32206
32207fi
32208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32209 fi
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32211$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32212 if test "$tst_compi_fsetxattr" = "yes"; then
32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32214$as_echo "yes" >&6; }
32215 else
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217$as_echo "no" >&6; }
32218 fi
32219 fi
32220 #
32221 if test "$tst_compi_fsetxattr" = "yes"; then
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32223$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32224 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32226$as_echo "yes" >&6; }
32227 tst_allow_fsetxattr="yes"
32228 else
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32230$as_echo "no" >&6; }
32231 tst_allow_fsetxattr="no"
32232 fi
32233 fi
32234 #
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32236$as_echo_n "checking if fsetxattr might be used... " >&6; }
32237 if test "$tst_links_fsetxattr" = "yes" &&
32238 test "$tst_proto_fsetxattr" = "yes" &&
32239 test "$tst_compi_fsetxattr" = "yes" &&
32240 test "$tst_allow_fsetxattr" = "yes"; then
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32242$as_echo "yes" >&6; }
32243
32244cat >>confdefs.h <<_ACEOF
32245#define HAVE_FSETXATTR 1
32246_ACEOF
32247
32248 #
32249 if test "$tst_nargs_fsetxattr" -eq "5"; then
32250
32251$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32252
32253 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32254
32255$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32256
32257 fi
32258 #
32259 curl_cv_func_fsetxattr="yes"
32260 else
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262$as_echo "no" >&6; }
32263 curl_cv_func_fsetxattr="no"
32264 fi
32265
32266
32267 #
32268 tst_links_ftruncate="unknown"
32269 tst_proto_ftruncate="unknown"
32270 tst_compi_ftruncate="unknown"
32271 tst_allow_ftruncate="unknown"
32272 #
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32274$as_echo_n "checking if ftruncate can be linked... " >&6; }
32275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32276/* end confdefs.h. */
32277
32278
32279#define ftruncate innocuous_ftruncate
32280#ifdef __STDC__
32281# include <limits.h>
32282#else
32283# include <assert.h>
32284#endif
32285#undef ftruncate
32286#ifdef __cplusplus
32287extern "C"
32288#endif
32289char ftruncate ();
32290#if defined __stub_ftruncate || defined __stub___ftruncate
32291choke me
32292#endif
32293
32294int main (void)
32295{
32296return ftruncate ();
32297 ;
32298 return 0;
32299}
32300
32301_ACEOF
32302if ac_fn_c_try_link "$LINENO"; then :
32303
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305$as_echo "yes" >&6; }
32306 tst_links_ftruncate="yes"
32307
32308else
32309
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32311$as_echo "no" >&6; }
32312 tst_links_ftruncate="no"
32313
32314fi
32315rm -f core conftest.err conftest.$ac_objext \
32316 conftest$ac_exeext conftest.$ac_ext
32317 #
32318 if test "$tst_links_ftruncate" = "yes"; then
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32320$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32322/* end confdefs.h. */
32323
32324 $curl_includes_unistd
32325
32326_ACEOF
32327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32328 $EGREP "ftruncate" >/dev/null 2>&1; then :
32329
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32331$as_echo "yes" >&6; }
32332 tst_proto_ftruncate="yes"
32333
32334else
32335
32336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32337$as_echo "no" >&6; }
32338 tst_proto_ftruncate="no"
32339
32340fi
32341rm -f conftest*
32342
32343 fi
32344 #
32345 if test "$tst_proto_ftruncate" = "yes"; then
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32347$as_echo_n "checking if ftruncate is compilable... " >&6; }
32348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349/* end confdefs.h. */
32350
32351
32352 $curl_includes_unistd
32353
32354int main (void)
32355{
32356
32357 if(0 != ftruncate(0, 0))
32358 return 1;
32359
32360 ;
32361 return 0;
32362}
32363
32364_ACEOF
32365if ac_fn_c_try_compile "$LINENO"; then :
32366
32367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32368$as_echo "yes" >&6; }
32369 tst_compi_ftruncate="yes"
32370
32371else
32372
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32374$as_echo "no" >&6; }
32375 tst_compi_ftruncate="no"
32376
32377fi
32378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379 fi
32380 #
32381 if test "$tst_compi_ftruncate" = "yes"; then
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32383$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32384 if test "x$curl_disallow_ftruncate" != "xyes"; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32386$as_echo "yes" >&6; }
32387 tst_allow_ftruncate="yes"
32388 else
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32390$as_echo "no" >&6; }
32391 tst_allow_ftruncate="no"
32392 fi
32393 fi
32394 #
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32396$as_echo_n "checking if ftruncate might be used... " >&6; }
32397 if test "$tst_links_ftruncate" = "yes" &&
32398 test "$tst_proto_ftruncate" = "yes" &&
32399 test "$tst_compi_ftruncate" = "yes" &&
32400 test "$tst_allow_ftruncate" = "yes"; then
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32402$as_echo "yes" >&6; }
32403
32404cat >>confdefs.h <<_ACEOF
32405#define HAVE_FTRUNCATE 1
32406_ACEOF
32407
32408 curl_cv_func_ftruncate="yes"
32409 else
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411$as_echo "no" >&6; }
32412 curl_cv_func_ftruncate="no"
32413 fi
32414
32415
32416curl_includes_stdlib="\
32417/* includes start */
32418#ifdef HAVE_SYS_TYPES_H
32419# include <sys/types.h>
32420#endif
32421#ifdef HAVE_STDLIB_H
32422# include <stdlib.h>
32423#endif
32424/* includes end */"
32425 for ac_header in sys/types.h stdlib.h
32426do :
32427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32429"
32430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32431 cat >>confdefs.h <<_ACEOF
32432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32433_ACEOF
32434
32435fi
32436
32437done
32438
32439
32440
32441 #
32442 tst_links_getaddrinfo="unknown"
32443 tst_proto_getaddrinfo="unknown"
32444 tst_compi_getaddrinfo="unknown"
32445 tst_works_getaddrinfo="unknown"
32446 tst_allow_getaddrinfo="unknown"
32447 tst_tsafe_getaddrinfo="unknown"
32448 #
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32450$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452/* end confdefs.h. */
32453
32454
32455 $curl_includes_ws2tcpip
32456 $curl_includes_sys_socket
32457 $curl_includes_netdb
32458
32459int main (void)
32460{
32461
32462 if(0 != getaddrinfo(0, 0, 0, 0))
32463 return 1;
32464
32465 ;
32466 return 0;
32467}
32468
32469_ACEOF
32470if ac_fn_c_try_link "$LINENO"; then :
32471
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32473$as_echo "yes" >&6; }
32474 tst_links_getaddrinfo="yes"
32475
32476else
32477
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32479$as_echo "no" >&6; }
32480 tst_links_getaddrinfo="no"
32481
32482fi
32483rm -f core conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
32485 #
32486 if test "$tst_links_getaddrinfo" = "yes"; then
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32488$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490/* end confdefs.h. */
32491
32492 $curl_includes_ws2tcpip
32493 $curl_includes_sys_socket
32494 $curl_includes_netdb
32495
32496_ACEOF
32497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32498 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32499
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32501$as_echo "yes" >&6; }
32502 tst_proto_getaddrinfo="yes"
32503
32504else
32505
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32507$as_echo "no" >&6; }
32508 tst_proto_getaddrinfo="no"
32509
32510fi
32511rm -f conftest*
32512
32513 fi
32514 #
32515 if test "$tst_proto_getaddrinfo" = "yes"; then
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32517$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32519/* end confdefs.h. */
32520
32521
32522 $curl_includes_ws2tcpip
32523 $curl_includes_sys_socket
32524 $curl_includes_netdb
32525
32526int main (void)
32527{
32528
32529 if(0 != getaddrinfo(0, 0, 0, 0))
32530 return 1;
32531
32532 ;
32533 return 0;
32534}
32535
32536_ACEOF
32537if ac_fn_c_try_compile "$LINENO"; then :
32538
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540$as_echo "yes" >&6; }
32541 tst_compi_getaddrinfo="yes"
32542
32543else
32544
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32546$as_echo "no" >&6; }
32547 tst_compi_getaddrinfo="no"
32548
32549fi
32550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32551 fi
32552 #
32553 if test "x$cross_compiling" != "xyes" &&
32554 test "$tst_compi_getaddrinfo" = "yes"; then
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32556$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32557 if test "$cross_compiling" = yes; then :
32558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32560as_fn_error $? "cannot run test program while cross compiling
32561See \`config.log' for more details" "$LINENO" 5; }
32562else
32563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32564/* end confdefs.h. */
32565
32566
32567 $curl_includes_ws2tcpip
32568 $curl_includes_stdlib
32569 $curl_includes_string
32570 $curl_includes_sys_socket
32571 $curl_includes_netdb
32572
32573int main (void)
32574{
32575
32576 struct addrinfo hints;
32577 struct addrinfo *ai = 0;
32578 int error;
32579
32580 #ifdef HAVE_WINSOCK2_H
32581 WSADATA wsa;
32582 if (WSAStartup(MAKEWORD(2,2), &wsa))
32583 exit(2);
32584 #endif
32585
32586 memset(&hints, 0, sizeof(hints));
32587 hints.ai_flags = AI_NUMERICHOST;
32588 hints.ai_family = AF_UNSPEC;
32589 hints.ai_socktype = SOCK_STREAM;
32590 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32591 if(error || !ai)
32592 exit(1); /* fail */
32593 else
32594 exit(0);
32595
32596 ;
32597 return 0;
32598}
32599
32600_ACEOF
32601if ac_fn_c_try_run "$LINENO"; then :
32602
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32604$as_echo "yes" >&6; }
32605 tst_works_getaddrinfo="yes"
32606
32607else
32608
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32610$as_echo "no" >&6; }
32611 tst_works_getaddrinfo="no"
32612
32613fi
32614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32615 conftest.$ac_objext conftest.beam conftest.$ac_ext
32616fi
32617
32618 fi
32619 #
32620 if test "$tst_compi_getaddrinfo" = "yes" &&
32621 test "$tst_works_getaddrinfo" != "no"; then
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32623$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32624 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32626$as_echo "yes" >&6; }
32627 tst_allow_getaddrinfo="yes"
32628 else
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630$as_echo "no" >&6; }
32631 tst_allow_getaddrinfo="no"
32632 fi
32633 fi
32634 #
32635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32636$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32637 if test "$tst_links_getaddrinfo" = "yes" &&
32638 test "$tst_proto_getaddrinfo" = "yes" &&
32639 test "$tst_compi_getaddrinfo" = "yes" &&
32640 test "$tst_allow_getaddrinfo" = "yes" &&
32641 test "$tst_works_getaddrinfo" != "no"; then
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32643$as_echo "yes" >&6; }
32644
32645cat >>confdefs.h <<_ACEOF
32646#define HAVE_GETADDRINFO 1
32647_ACEOF
32648
32649 curl_cv_func_getaddrinfo="yes"
32650 else
32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32652$as_echo "no" >&6; }
32653 curl_cv_func_getaddrinfo="no"
32654 curl_cv_func_getaddrinfo_threadsafe="no"
32655 fi
32656 #
32657 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32659$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32660 case $host_os in
32661 aix[1234].* | aix5.[01].*)
32662 tst_tsafe_getaddrinfo="no"
32663 ;;
32664 aix*)
32665 tst_tsafe_getaddrinfo="yes"
32666 ;;
32667 darwin[12345].*)
32668 tst_tsafe_getaddrinfo="no"
32669 ;;
32670 darwin*)
32671 tst_tsafe_getaddrinfo="yes"
32672 ;;
32673 freebsd[1234].* | freebsd5.[1234]*)
32674 tst_tsafe_getaddrinfo="no"
32675 ;;
32676 freebsd*)
32677 tst_tsafe_getaddrinfo="yes"
32678 ;;
32679 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32680 tst_tsafe_getaddrinfo="no"
32681 ;;
32682 hpux*)
32683 tst_tsafe_getaddrinfo="yes"
32684 ;;
32685 netbsd[123].*)
32686 tst_tsafe_getaddrinfo="no"
32687 ;;
32688 netbsd*)
32689 tst_tsafe_getaddrinfo="yes"
32690 ;;
32691 *bsd*)
32692 tst_tsafe_getaddrinfo="no"
32693 ;;
32694 solaris2*)
32695 tst_tsafe_getaddrinfo="yes"
32696 ;;
32697 esac
32698 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32699 test "$curl_cv_native_windows" = "yes"; then
32700 tst_tsafe_getaddrinfo="yes"
32701 fi
32702 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32703
32704
32705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32706/* end confdefs.h. */
32707
32708
32709 $curl_includes_sys_socket
32710 $curl_includes_netdb
32711
32712int main (void)
32713{
32714#ifdef h_errno
32715 return 0;
32716#else
32717 force compilation error
32718#endif
32719}
32720
32721
32722_ACEOF
32723if ac_fn_c_try_compile "$LINENO"; then :
32724
32725 tst_symbol_defined="yes"
32726
32727else
32728
32729 tst_symbol_defined="no"
32730
32731fi
32732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 if test "$tst_symbol_defined" = "yes"; then
32734 curl_cv_have_def_h_errno=yes
32735
32736 else
32737 curl_cv_have_def_h_errno=no
32738
32739 fi
32740
32741 if test "$curl_cv_have_def_h_errno" = "yes"; then
32742 tst_h_errno_macro="yes"
32743 else
32744 tst_h_errno_macro="no"
32745 fi
32746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32747/* end confdefs.h. */
32748
32749
32750 $curl_includes_sys_socket
32751 $curl_includes_netdb
32752
32753int main (void)
32754{
32755
32756 h_errno = 2;
32757 if(0 != h_errno)
32758 return 1;
32759
32760 ;
32761 return 0;
32762}
32763
32764_ACEOF
32765if ac_fn_c_try_compile "$LINENO"; then :
32766
32767 tst_h_errno_modifiable_lvalue="yes"
32768
32769else
32770
32771 tst_h_errno_modifiable_lvalue="no"
32772
32773fi
32774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32776/* end confdefs.h. */
32777
32778
32779
32780int main (void)
32781{
32782
32783#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32784 return 0;
32785#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32786 return 0;
32787#else
32788 force compilation error
32789#endif
32790
32791 ;
32792 return 0;
32793}
32794
32795_ACEOF
32796if ac_fn_c_try_compile "$LINENO"; then :
32797
32798 tst_h_errno_sbs_issue_7="yes"
32799
32800else
32801
32802 tst_h_errno_sbs_issue_7="no"
32803
32804fi
32805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32806 if test "$tst_h_errno_macro" = "no" &&
32807 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32808 test "$tst_h_errno_sbs_issue_7" = "no"; then
32809 tst_tsafe_getaddrinfo="no"
32810 else
32811 tst_tsafe_getaddrinfo="yes"
32812 fi
32813 fi
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32815$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32816 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32817
32818cat >>confdefs.h <<_ACEOF
32819#define HAVE_GETADDRINFO_THREADSAFE 1
32820_ACEOF
32821
32822 curl_cv_func_getaddrinfo_threadsafe="yes"
32823 else
32824 curl_cv_func_getaddrinfo_threadsafe="no"
32825 fi
32826 fi
32827
32828
32829 #
32830 tst_links_gai_strerror="unknown"
32831 tst_proto_gai_strerror="unknown"
32832 tst_compi_gai_strerror="unknown"
32833 tst_allow_gai_strerror="unknown"
32834 #
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32836$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32838/* end confdefs.h. */
32839
32840
32841 $curl_includes_winsock2
32842 $curl_includes_netdb
32843
32844int main (void)
32845{
32846
32847 if(0 != gai_strerror(0))
32848 return 1;
32849
32850 ;
32851 return 0;
32852}
32853
32854_ACEOF
32855if ac_fn_c_try_link "$LINENO"; then :
32856
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32858$as_echo "yes" >&6; }
32859 tst_links_gai_strerror="yes"
32860
32861else
32862
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32864$as_echo "no" >&6; }
32865 tst_links_gai_strerror="no"
32866
32867fi
32868rm -f core conftest.err conftest.$ac_objext \
32869 conftest$ac_exeext conftest.$ac_ext
32870 #
32871 if test "$tst_links_gai_strerror" = "yes"; then
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32873$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32875/* end confdefs.h. */
32876
32877 $curl_includes_winsock2
32878 $curl_includes_netdb
32879
32880_ACEOF
32881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32882 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32883
32884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32885$as_echo "yes" >&6; }
32886 tst_proto_gai_strerror="yes"
32887
32888else
32889
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32891$as_echo "no" >&6; }
32892 tst_proto_gai_strerror="no"
32893
32894fi
32895rm -f conftest*
32896
32897 fi
32898 #
32899 if test "$tst_proto_gai_strerror" = "yes"; then
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32901$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32903/* end confdefs.h. */
32904
32905
32906 $curl_includes_winsock2
32907 $curl_includes_netdb
32908
32909int main (void)
32910{
32911
32912 if(0 != gai_strerror(0))
32913 return 1;
32914
32915 ;
32916 return 0;
32917}
32918
32919_ACEOF
32920if ac_fn_c_try_compile "$LINENO"; then :
32921
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32923$as_echo "yes" >&6; }
32924 tst_compi_gai_strerror="yes"
32925
32926else
32927
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32929$as_echo "no" >&6; }
32930 tst_compi_gai_strerror="no"
32931
32932fi
32933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32934 fi
32935 #
32936 if test "$tst_compi_gai_strerror" = "yes"; then
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32938$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32939 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941$as_echo "yes" >&6; }
32942 tst_allow_gai_strerror="yes"
32943 else
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32945$as_echo "no" >&6; }
32946 tst_allow_gai_strerror="no"
32947 fi
32948 fi
32949 #
32950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32951$as_echo_n "checking if gai_strerror might be used... " >&6; }
32952 if test "$tst_links_gai_strerror" = "yes" &&
32953 test "$tst_proto_gai_strerror" = "yes" &&
32954 test "$tst_compi_gai_strerror" = "yes" &&
32955 test "$tst_allow_gai_strerror" = "yes"; then
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32957$as_echo "yes" >&6; }
32958
32959cat >>confdefs.h <<_ACEOF
32960#define HAVE_GAI_STRERROR 1
32961_ACEOF
32962
32963 curl_cv_func_gai_strerror="yes"
32964 else
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966$as_echo "no" >&6; }
32967 curl_cv_func_gai_strerror="no"
32968 fi
32969
32970
32971 #
32972 tst_links_gethostbyaddr="unknown"
32973 tst_proto_gethostbyaddr="unknown"
32974 tst_compi_gethostbyaddr="unknown"
32975 tst_allow_gethostbyaddr="unknown"
32976 #
32977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32978$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32980/* end confdefs.h. */
32981
32982
32983 $curl_includes_winsock2
32984 $curl_includes_netdb
32985
32986int main (void)
32987{
32988
32989 if(0 != gethostbyaddr(0, 0, 0))
32990 return 1;
32991
32992 ;
32993 return 0;
32994}
32995
32996_ACEOF
32997if ac_fn_c_try_link "$LINENO"; then :
32998
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33000$as_echo "yes" >&6; }
33001 tst_links_gethostbyaddr="yes"
33002
33003else
33004
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33006$as_echo "no" >&6; }
33007 tst_links_gethostbyaddr="no"
33008
33009fi
33010rm -f core conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
33012 #
33013 if test "$tst_links_gethostbyaddr" = "yes"; then
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33015$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33017/* end confdefs.h. */
33018
33019 $curl_includes_winsock2
33020 $curl_includes_netdb
33021
33022_ACEOF
33023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33024 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33025
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027$as_echo "yes" >&6; }
33028 tst_proto_gethostbyaddr="yes"
33029
33030else
33031
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33033$as_echo "no" >&6; }
33034 tst_proto_gethostbyaddr="no"
33035
33036fi
33037rm -f conftest*
33038
33039 fi
33040 #
33041 if test "$tst_proto_gethostbyaddr" = "yes"; then
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33043$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33045/* end confdefs.h. */
33046
33047
33048 $curl_includes_winsock2
33049 $curl_includes_netdb
33050
33051int main (void)
33052{
33053
33054 if(0 != gethostbyaddr(0, 0, 0))
33055 return 1;
33056
33057 ;
33058 return 0;
33059}
33060
33061_ACEOF
33062if ac_fn_c_try_compile "$LINENO"; then :
33063
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33065$as_echo "yes" >&6; }
33066 tst_compi_gethostbyaddr="yes"
33067
33068else
33069
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071$as_echo "no" >&6; }
33072 tst_compi_gethostbyaddr="no"
33073
33074fi
33075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33076 fi
33077 #
33078 if test "$tst_compi_gethostbyaddr" = "yes"; then
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33080$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33081 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33083$as_echo "yes" >&6; }
33084 tst_allow_gethostbyaddr="yes"
33085 else
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33087$as_echo "no" >&6; }
33088 tst_allow_gethostbyaddr="no"
33089 fi
33090 fi
33091 #
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33093$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33094 if test "$tst_links_gethostbyaddr" = "yes" &&
33095 test "$tst_proto_gethostbyaddr" = "yes" &&
33096 test "$tst_compi_gethostbyaddr" = "yes" &&
33097 test "$tst_allow_gethostbyaddr" = "yes"; then
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33099$as_echo "yes" >&6; }
33100
33101cat >>confdefs.h <<_ACEOF
33102#define HAVE_GETHOSTBYADDR 1
33103_ACEOF
33104
33105 curl_cv_func_gethostbyaddr="yes"
33106 else
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33108$as_echo "no" >&6; }
33109 curl_cv_func_gethostbyaddr="no"
33110 fi
33111
33112
33113 #
33114 tst_links_gethostbyaddr_r="unknown"
33115 tst_proto_gethostbyaddr_r="unknown"
33116 tst_compi_gethostbyaddr_r="unknown"
33117 tst_allow_gethostbyaddr_r="unknown"
33118 tst_nargs_gethostbyaddr_r="unknown"
33119 #
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33121$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123/* end confdefs.h. */
33124
33125
33126#define gethostbyaddr_r innocuous_gethostbyaddr_r
33127#ifdef __STDC__
33128# include <limits.h>
33129#else
33130# include <assert.h>
33131#endif
33132#undef gethostbyaddr_r
33133#ifdef __cplusplus
33134extern "C"
33135#endif
33136char gethostbyaddr_r ();
33137#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33138choke me
33139#endif
33140
33141int main (void)
33142{
33143return gethostbyaddr_r ();
33144 ;
33145 return 0;
33146}
33147
33148_ACEOF
33149if ac_fn_c_try_link "$LINENO"; then :
33150
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152$as_echo "yes" >&6; }
33153 tst_links_gethostbyaddr_r="yes"
33154
33155else
33156
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158$as_echo "no" >&6; }
33159 tst_links_gethostbyaddr_r="no"
33160
33161fi
33162rm -f core conftest.err conftest.$ac_objext \
33163 conftest$ac_exeext conftest.$ac_ext
33164 #
33165 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33167$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33169/* end confdefs.h. */
33170
33171 $curl_includes_netdb
33172
33173_ACEOF
33174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33175 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33176
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178$as_echo "yes" >&6; }
33179 tst_proto_gethostbyaddr_r="yes"
33180
33181else
33182
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184$as_echo "no" >&6; }
33185 tst_proto_gethostbyaddr_r="no"
33186
33187fi
33188rm -f conftest*
33189
33190 fi
33191 #
33192 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33193 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33195$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197/* end confdefs.h. */
33198
33199
33200 $curl_includes_netdb
33201
33202int main (void)
33203{
33204
33205 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33206 return 1;
33207
33208 ;
33209 return 0;
33210}
33211
33212_ACEOF
33213if ac_fn_c_try_compile "$LINENO"; then :
33214
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33216$as_echo "yes" >&6; }
33217 tst_compi_gethostbyaddr_r="yes"
33218 tst_nargs_gethostbyaddr_r="5"
33219
33220else
33221
33222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33223$as_echo "no" >&6; }
33224 tst_compi_gethostbyaddr_r="no"
33225
33226fi
33227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33228 fi
33229 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33231$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33233/* end confdefs.h. */
33234
33235
33236 $curl_includes_netdb
33237
33238int main (void)
33239{
33240
33241 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33242 return 1;
33243
33244 ;
33245 return 0;
33246}
33247
33248_ACEOF
33249if ac_fn_c_try_compile "$LINENO"; then :
33250
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252$as_echo "yes" >&6; }
33253 tst_compi_gethostbyaddr_r="yes"
33254 tst_nargs_gethostbyaddr_r="7"
33255
33256else
33257
33258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33259$as_echo "no" >&6; }
33260 tst_compi_gethostbyaddr_r="no"
33261
33262fi
33263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 fi
33265 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33267$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33269/* end confdefs.h. */
33270
33271
33272 $curl_includes_netdb
33273
33274int main (void)
33275{
33276
33277 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33278 return 1;
33279
33280 ;
33281 return 0;
33282}
33283
33284_ACEOF
33285if ac_fn_c_try_compile "$LINENO"; then :
33286
33287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33288$as_echo "yes" >&6; }
33289 tst_compi_gethostbyaddr_r="yes"
33290 tst_nargs_gethostbyaddr_r="8"
33291
33292else
33293
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295$as_echo "no" >&6; }
33296 tst_compi_gethostbyaddr_r="no"
33297
33298fi
33299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 fi
33301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33302$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33303 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305$as_echo "yes" >&6; }
33306 else
33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33308$as_echo "no" >&6; }
33309 fi
33310 fi
33311 #
33312 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33314$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33315 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33317$as_echo "yes" >&6; }
33318 tst_allow_gethostbyaddr_r="yes"
33319 else
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321$as_echo "no" >&6; }
33322 tst_allow_gethostbyaddr_r="no"
33323 fi
33324 fi
33325 #
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33327$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33328 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33329 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33330 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33331 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33333$as_echo "yes" >&6; }
33334
33335cat >>confdefs.h <<_ACEOF
33336#define HAVE_GETHOSTBYADDR_R 1
33337_ACEOF
33338
33339 #
33340 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33341
33342$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33343
33344 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33345
33346$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33347
33348 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33349
33350$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33351
33352 fi
33353 #
33354 curl_cv_func_gethostbyaddr_r="yes"
33355 else
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357$as_echo "no" >&6; }
33358 curl_cv_func_gethostbyaddr_r="no"
33359 fi
33360
33361
33362 #
33363 tst_links_gethostbyname="unknown"
33364 tst_proto_gethostbyname="unknown"
33365 tst_compi_gethostbyname="unknown"
33366 tst_allow_gethostbyname="unknown"
33367 #
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33369$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33371/* end confdefs.h. */
33372
33373
33374 $curl_includes_winsock2
33375 $curl_includes_netdb
33376
33377int main (void)
33378{
33379
33380 if(0 != gethostbyname(0))
33381 return 1;
33382
33383 ;
33384 return 0;
33385}
33386
33387_ACEOF
33388if ac_fn_c_try_link "$LINENO"; then :
33389
33390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33391$as_echo "yes" >&6; }
33392 tst_links_gethostbyname="yes"
33393
33394else
33395
33396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33397$as_echo "no" >&6; }
33398 tst_links_gethostbyname="no"
33399
33400fi
33401rm -f core conftest.err conftest.$ac_objext \
33402 conftest$ac_exeext conftest.$ac_ext
33403 #
33404 if test "$tst_links_gethostbyname" = "yes"; then
33405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33406$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33408/* end confdefs.h. */
33409
33410 $curl_includes_winsock2
33411 $curl_includes_netdb
33412
33413_ACEOF
33414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33415 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33416
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418$as_echo "yes" >&6; }
33419 tst_proto_gethostbyname="yes"
33420
33421else
33422
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424$as_echo "no" >&6; }
33425 tst_proto_gethostbyname="no"
33426
33427fi
33428rm -f conftest*
33429
33430 fi
33431 #
33432 if test "$tst_proto_gethostbyname" = "yes"; then
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33434$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33436/* end confdefs.h. */
33437
33438
33439 $curl_includes_winsock2
33440 $curl_includes_netdb
33441
33442int main (void)
33443{
33444
33445 if(0 != gethostbyname(0))
33446 return 1;
33447
33448 ;
33449 return 0;
33450}
33451
33452_ACEOF
33453if ac_fn_c_try_compile "$LINENO"; then :
33454
33455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33456$as_echo "yes" >&6; }
33457 tst_compi_gethostbyname="yes"
33458
33459else
33460
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33462$as_echo "no" >&6; }
33463 tst_compi_gethostbyname="no"
33464
33465fi
33466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33467 fi
33468 #
33469 if test "$tst_compi_gethostbyname" = "yes"; then
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33471$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33472 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33474$as_echo "yes" >&6; }
33475 tst_allow_gethostbyname="yes"
33476 else
33477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33478$as_echo "no" >&6; }
33479 tst_allow_gethostbyname="no"
33480 fi
33481 fi
33482 #
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33484$as_echo_n "checking if gethostbyname might be used... " >&6; }
33485 if test "$tst_links_gethostbyname" = "yes" &&
33486 test "$tst_proto_gethostbyname" = "yes" &&
33487 test "$tst_compi_gethostbyname" = "yes" &&
33488 test "$tst_allow_gethostbyname" = "yes"; then
33489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33490$as_echo "yes" >&6; }
33491
33492cat >>confdefs.h <<_ACEOF
33493#define HAVE_GETHOSTBYNAME 1
33494_ACEOF
33495
33496 curl_cv_func_gethostbyname="yes"
33497 else
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33499$as_echo "no" >&6; }
33500 curl_cv_func_gethostbyname="no"
33501 fi
33502
33503
33504 #
33505 tst_links_gethostbyname_r="unknown"
33506 tst_proto_gethostbyname_r="unknown"
33507 tst_compi_gethostbyname_r="unknown"
33508 tst_allow_gethostbyname_r="unknown"
33509 tst_nargs_gethostbyname_r="unknown"
33510 #
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33512$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33514/* end confdefs.h. */
33515
33516
33517#define gethostbyname_r innocuous_gethostbyname_r
33518#ifdef __STDC__
33519# include <limits.h>
33520#else
33521# include <assert.h>
33522#endif
33523#undef gethostbyname_r
33524#ifdef __cplusplus
33525extern "C"
33526#endif
33527char gethostbyname_r ();
33528#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33529choke me
33530#endif
33531
33532int main (void)
33533{
33534return gethostbyname_r ();
33535 ;
33536 return 0;
33537}
33538
33539_ACEOF
33540if ac_fn_c_try_link "$LINENO"; then :
33541
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33543$as_echo "yes" >&6; }
33544 tst_links_gethostbyname_r="yes"
33545
33546else
33547
33548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33549$as_echo "no" >&6; }
33550 tst_links_gethostbyname_r="no"
33551
33552fi
33553rm -f core conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
33555 #
33556 if test "$tst_links_gethostbyname_r" = "yes"; then
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33558$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33560/* end confdefs.h. */
33561
33562 $curl_includes_netdb
33563
33564_ACEOF
33565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33566 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33567
33568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33569$as_echo "yes" >&6; }
33570 tst_proto_gethostbyname_r="yes"
33571
33572else
33573
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576 tst_proto_gethostbyname_r="no"
33577
33578fi
33579rm -f conftest*
33580
33581 fi
33582 #
33583 if test "$tst_proto_gethostbyname_r" = "yes"; then
33584 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33586$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33588/* end confdefs.h. */
33589
33590
33591 $curl_includes_netdb
33592
33593int main (void)
33594{
33595
33596 if(0 != gethostbyname_r(0, 0, 0))
33597 return 1;
33598
33599 ;
33600 return 0;
33601}
33602
33603_ACEOF
33604if ac_fn_c_try_compile "$LINENO"; then :
33605
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607$as_echo "yes" >&6; }
33608 tst_compi_gethostbyname_r="yes"
33609 tst_nargs_gethostbyname_r="3"
33610
33611else
33612
33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33614$as_echo "no" >&6; }
33615 tst_compi_gethostbyname_r="no"
33616
33617fi
33618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33619 fi
33620 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33622$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33624/* end confdefs.h. */
33625
33626
33627 $curl_includes_netdb
33628
33629int main (void)
33630{
33631
33632 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33633 return 1;
33634
33635 ;
33636 return 0;
33637}
33638
33639_ACEOF
33640if ac_fn_c_try_compile "$LINENO"; then :
33641
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643$as_echo "yes" >&6; }
33644 tst_compi_gethostbyname_r="yes"
33645 tst_nargs_gethostbyname_r="5"
33646
33647else
33648
33649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33650$as_echo "no" >&6; }
33651 tst_compi_gethostbyname_r="no"
33652
33653fi
33654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655 fi
33656 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33658$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33660/* end confdefs.h. */
33661
33662
33663 $curl_includes_netdb
33664
33665int main (void)
33666{
33667
33668 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33669 return 1;
33670
33671 ;
33672 return 0;
33673}
33674
33675_ACEOF
33676if ac_fn_c_try_compile "$LINENO"; then :
33677
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33679$as_echo "yes" >&6; }
33680 tst_compi_gethostbyname_r="yes"
33681 tst_nargs_gethostbyname_r="6"
33682
33683else
33684
33685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33686$as_echo "no" >&6; }
33687 tst_compi_gethostbyname_r="no"
33688
33689fi
33690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691 fi
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33693$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33694 if test "$tst_compi_gethostbyname_r" = "yes"; then
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696$as_echo "yes" >&6; }
33697 else
33698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33699$as_echo "no" >&6; }
33700 fi
33701 fi
33702 #
33703 if test "$tst_compi_gethostbyname_r" = "yes"; then
33704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33705$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33706 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33708$as_echo "yes" >&6; }
33709 tst_allow_gethostbyname_r="yes"
33710 else
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712$as_echo "no" >&6; }
33713 tst_allow_gethostbyname_r="no"
33714 fi
33715 fi
33716 #
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33718$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33719 if test "$tst_links_gethostbyname_r" = "yes" &&
33720 test "$tst_proto_gethostbyname_r" = "yes" &&
33721 test "$tst_compi_gethostbyname_r" = "yes" &&
33722 test "$tst_allow_gethostbyname_r" = "yes"; then
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33724$as_echo "yes" >&6; }
33725
33726cat >>confdefs.h <<_ACEOF
33727#define HAVE_GETHOSTBYNAME_R 1
33728_ACEOF
33729
33730 #
33731 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33732
33733$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33734
33735 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33736
33737$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33738
33739 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33740
33741$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33742
33743 fi
33744 #
33745 curl_cv_func_gethostbyname_r="yes"
33746 else
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748$as_echo "no" >&6; }
33749 curl_cv_func_gethostbyname_r="no"
33750 fi
33751
33752
33753 #
33754 tst_links_gethostname="unknown"
33755 tst_proto_gethostname="unknown"
33756 tst_compi_gethostname="unknown"
33757 tst_allow_gethostname="unknown"
33758 #
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33760$as_echo_n "checking if gethostname can be linked... " >&6; }
33761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33762/* end confdefs.h. */
33763
33764
33765 $curl_includes_winsock2
33766 $curl_includes_unistd
33767
33768int main (void)
33769{
33770
33771 if(0 != gethostname(0, 0))
33772 return 1;
33773
33774 ;
33775 return 0;
33776}
33777
33778_ACEOF
33779if ac_fn_c_try_link "$LINENO"; then :
33780
33781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33782$as_echo "yes" >&6; }
33783 tst_links_gethostname="yes"
33784
33785else
33786
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33788$as_echo "no" >&6; }
33789 tst_links_gethostname="no"
33790
33791fi
33792rm -f core conftest.err conftest.$ac_objext \
33793 conftest$ac_exeext conftest.$ac_ext
33794 #
33795 if test "$tst_links_gethostname" = "yes"; then
33796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33797$as_echo_n "checking if gethostname is prototyped... " >&6; }
33798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33799/* end confdefs.h. */
33800
33801 $curl_includes_winsock2
33802 $curl_includes_unistd
33803
33804_ACEOF
33805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33806 $EGREP "gethostname" >/dev/null 2>&1; then :
33807
33808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33809$as_echo "yes" >&6; }
33810 tst_proto_gethostname="yes"
33811
33812else
33813
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33815$as_echo "no" >&6; }
33816 tst_proto_gethostname="no"
33817
33818fi
33819rm -f conftest*
33820
33821 fi
33822 #
33823 if test "$tst_proto_gethostname" = "yes"; then
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33825$as_echo_n "checking if gethostname is compilable... " >&6; }
33826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33827/* end confdefs.h. */
33828
33829
33830 $curl_includes_winsock2
33831 $curl_includes_unistd
33832
33833int main (void)
33834{
33835
33836 if(0 != gethostname(0, 0))
33837 return 1;
33838
33839 ;
33840 return 0;
33841}
33842
33843_ACEOF
33844if ac_fn_c_try_compile "$LINENO"; then :
33845
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847$as_echo "yes" >&6; }
33848 tst_compi_gethostname="yes"
33849
33850else
33851
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853$as_echo "no" >&6; }
33854 tst_compi_gethostname="no"
33855
33856fi
33857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33858 fi
33859 #
33860 if test "$tst_compi_gethostname" = "yes"; then
33861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33862$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33863 tst_gethostname_type_arg2="unknown"
33864 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33865 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33866 if test "$tst_gethostname_type_arg2" = "unknown"; then
33867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33868/* end confdefs.h. */
33869
33870
33871 $curl_includes_winsock2
33872 $curl_includes_unistd
33873 $curl_preprocess_callconv
33874 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33875
33876int main (void)
33877{
33878
33879 if(0 != gethostname(0, 0))
33880 return 1;
33881
33882 ;
33883 return 0;
33884}
33885
33886_ACEOF
33887if ac_fn_c_try_compile "$LINENO"; then :
33888
33889 tst_gethostname_type_arg2="$tst_arg2"
33890
33891fi
33892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33893 fi
33894 done
33895 done
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33897$as_echo "$tst_gethostname_type_arg2" >&6; }
33898 if test "$tst_gethostname_type_arg2" != "unknown"; then
33899
33900cat >>confdefs.h <<_ACEOF
33901#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33902_ACEOF
33903
33904 fi
33905 fi
33906 #
33907 if test "$tst_compi_gethostname" = "yes"; then
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33909$as_echo_n "checking if gethostname usage allowed... " >&6; }
33910 if test "x$curl_disallow_gethostname" != "xyes"; then
33911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33912$as_echo "yes" >&6; }
33913 tst_allow_gethostname="yes"
33914 else
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33916$as_echo "no" >&6; }
33917 tst_allow_gethostname="no"
33918 fi
33919 fi
33920 #
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33922$as_echo_n "checking if gethostname might be used... " >&6; }
33923 if test "$tst_links_gethostname" = "yes" &&
33924 test "$tst_proto_gethostname" = "yes" &&
33925 test "$tst_compi_gethostname" = "yes" &&
33926 test "$tst_allow_gethostname" = "yes"; then
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33928$as_echo "yes" >&6; }
33929
33930cat >>confdefs.h <<_ACEOF
33931#define HAVE_GETHOSTNAME 1
33932_ACEOF
33933
33934 curl_cv_func_gethostname="yes"
33935 else
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33937$as_echo "no" >&6; }
33938 curl_cv_func_gethostname="no"
33939 fi
33940
33941
33942 #
33943 tst_links_getifaddrs="unknown"
33944 tst_proto_getifaddrs="unknown"
33945 tst_compi_getifaddrs="unknown"
33946 tst_works_getifaddrs="unknown"
33947 tst_allow_getifaddrs="unknown"
33948 #
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33950$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33952/* end confdefs.h. */
33953
33954
33955#define getifaddrs innocuous_getifaddrs
33956#ifdef __STDC__
33957# include <limits.h>
33958#else
33959# include <assert.h>
33960#endif
33961#undef getifaddrs
33962#ifdef __cplusplus
33963extern "C"
33964#endif
33965char getifaddrs ();
33966#if defined __stub_getifaddrs || defined __stub___getifaddrs
33967choke me
33968#endif
33969
33970int main (void)
33971{
33972return getifaddrs ();
33973 ;
33974 return 0;
33975}
33976
33977_ACEOF
33978if ac_fn_c_try_link "$LINENO"; then :
33979
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33981$as_echo "yes" >&6; }
33982 tst_links_getifaddrs="yes"
33983
33984else
33985
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987$as_echo "no" >&6; }
33988 tst_links_getifaddrs="no"
33989
33990fi
33991rm -f core conftest.err conftest.$ac_objext \
33992 conftest$ac_exeext conftest.$ac_ext
33993 #
33994 if test "$tst_links_getifaddrs" = "yes"; then
33995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33996$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33998/* end confdefs.h. */
33999
34000 $curl_includes_ifaddrs
34001
34002_ACEOF
34003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34004 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34005
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34007$as_echo "yes" >&6; }
34008 tst_proto_getifaddrs="yes"
34009
34010else
34011
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34013$as_echo "no" >&6; }
34014 tst_proto_getifaddrs="no"
34015
34016fi
34017rm -f conftest*
34018
34019 fi
34020 #
34021 if test "$tst_proto_getifaddrs" = "yes"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34023$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025/* end confdefs.h. */
34026
34027
34028 $curl_includes_ifaddrs
34029
34030int main (void)
34031{
34032
34033 if(0 != getifaddrs(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_getifaddrs="yes"
34046
34047else
34048
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34050$as_echo "no" >&6; }
34051 tst_compi_getifaddrs="no"
34052
34053fi
34054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055 fi
34056 #
34057 if test "x$cross_compiling" != "xyes" &&
34058 test "$tst_compi_getifaddrs" = "yes"; then
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34060$as_echo_n "checking if getifaddrs seems to work... " >&6; }
34061 if test "$cross_compiling" = yes; then :
34062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34064as_fn_error $? "cannot run test program while cross compiling
34065See \`config.log' for more details" "$LINENO" 5; }
34066else
34067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34068/* end confdefs.h. */
34069
34070
34071 $curl_includes_stdlib
34072 $curl_includes_ifaddrs
34073
34074int main (void)
34075{
34076
34077 struct ifaddrs *ifa = 0;
34078 int error;
34079
34080 error = getifaddrs(&ifa);
34081 if(error || !ifa)
34082 exit(1); /* fail */
34083 else
34084 exit(0);
34085
34086 ;
34087 return 0;
34088}
34089
34090_ACEOF
34091if ac_fn_c_try_run "$LINENO"; then :
34092
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34094$as_echo "yes" >&6; }
34095 tst_works_getifaddrs="yes"
34096
34097else
34098
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34100$as_echo "no" >&6; }
34101 tst_works_getifaddrs="no"
34102
34103fi
34104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34105 conftest.$ac_objext conftest.beam conftest.$ac_ext
34106fi
34107
34108 fi
34109 #
34110 if test "$tst_compi_getifaddrs" = "yes" &&
34111 test "$tst_works_getifaddrs" != "no"; then
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34113$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34114 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34116$as_echo "yes" >&6; }
34117 tst_allow_getifaddrs="yes"
34118 else
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34120$as_echo "no" >&6; }
34121 tst_allow_getifaddrs="no"
34122 fi
34123 fi
34124 #
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34126$as_echo_n "checking if getifaddrs might be used... " >&6; }
34127 if test "$tst_links_getifaddrs" = "yes" &&
34128 test "$tst_proto_getifaddrs" = "yes" &&
34129 test "$tst_compi_getifaddrs" = "yes" &&
34130 test "$tst_allow_getifaddrs" = "yes" &&
34131 test "$tst_works_getifaddrs" != "no"; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133$as_echo "yes" >&6; }
34134
34135cat >>confdefs.h <<_ACEOF
34136#define HAVE_GETIFADDRS 1
34137_ACEOF
34138
34139 curl_cv_func_getifaddrs="yes"
34140 else
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34142$as_echo "no" >&6; }
34143 curl_cv_func_getifaddrs="no"
34144 fi
34145
34146
34147 #
34148 tst_links_getservbyport_r="unknown"
34149 tst_proto_getservbyport_r="unknown"
34150 tst_compi_getservbyport_r="unknown"
34151 tst_allow_getservbyport_r="unknown"
34152 tst_nargs_getservbyport_r="unknown"
34153 #
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34155$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157/* end confdefs.h. */
34158
34159
34160#define getservbyport_r innocuous_getservbyport_r
34161#ifdef __STDC__
34162# include <limits.h>
34163#else
34164# include <assert.h>
34165#endif
34166#undef getservbyport_r
34167#ifdef __cplusplus
34168extern "C"
34169#endif
34170char getservbyport_r ();
34171#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34172choke me
34173#endif
34174
34175int main (void)
34176{
34177return getservbyport_r ();
34178 ;
34179 return 0;
34180}
34181
34182_ACEOF
34183if ac_fn_c_try_link "$LINENO"; then :
34184
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34186$as_echo "yes" >&6; }
34187 tst_links_getservbyport_r="yes"
34188
34189else
34190
34191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34192$as_echo "no" >&6; }
34193 tst_links_getservbyport_r="no"
34194
34195fi
34196rm -f core conftest.err conftest.$ac_objext \
34197 conftest$ac_exeext conftest.$ac_ext
34198 #
34199 if test "$tst_links_getservbyport_r" = "yes"; then
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34201$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34203/* end confdefs.h. */
34204
34205 $curl_includes_netdb
34206
34207_ACEOF
34208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34209 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34210
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34212$as_echo "yes" >&6; }
34213 tst_proto_getservbyport_r="yes"
34214
34215else
34216
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34218$as_echo "no" >&6; }
34219 tst_proto_getservbyport_r="no"
34220
34221fi
34222rm -f conftest*
34223
34224 fi
34225 #
34226 if test "$tst_proto_getservbyport_r" = "yes"; then
34227 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34229$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231/* end confdefs.h. */
34232
34233
34234 $curl_includes_netdb
34235
34236int main (void)
34237{
34238
34239 if(0 != getservbyport_r(0, 0, 0, 0))
34240 return 1;
34241
34242 ;
34243 return 0;
34244}
34245
34246_ACEOF
34247if ac_fn_c_try_compile "$LINENO"; then :
34248
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34250$as_echo "yes" >&6; }
34251 tst_compi_getservbyport_r="yes"
34252 tst_nargs_getservbyport_r="4"
34253
34254else
34255
34256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34257$as_echo "no" >&6; }
34258 tst_compi_getservbyport_r="no"
34259
34260fi
34261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34262 fi
34263 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34265$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34267/* end confdefs.h. */
34268
34269
34270 $curl_includes_netdb
34271
34272int main (void)
34273{
34274
34275 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34276 return 1;
34277
34278 ;
34279 return 0;
34280}
34281
34282_ACEOF
34283if ac_fn_c_try_compile "$LINENO"; then :
34284
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34286$as_echo "yes" >&6; }
34287 tst_compi_getservbyport_r="yes"
34288 tst_nargs_getservbyport_r="5"
34289
34290else
34291
34292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34293$as_echo "no" >&6; }
34294 tst_compi_getservbyport_r="no"
34295
34296fi
34297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298 fi
34299 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34301$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34303/* end confdefs.h. */
34304
34305
34306 $curl_includes_netdb
34307
34308int main (void)
34309{
34310
34311 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34312 return 1;
34313
34314 ;
34315 return 0;
34316}
34317
34318_ACEOF
34319if ac_fn_c_try_compile "$LINENO"; then :
34320
34321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322$as_echo "yes" >&6; }
34323 tst_compi_getservbyport_r="yes"
34324 tst_nargs_getservbyport_r="6"
34325
34326else
34327
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34329$as_echo "no" >&6; }
34330 tst_compi_getservbyport_r="no"
34331
34332fi
34333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34334 fi
34335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34336$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34337 if test "$tst_compi_getservbyport_r" = "yes"; then
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34339$as_echo "yes" >&6; }
34340 else
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342$as_echo "no" >&6; }
34343 fi
34344 fi
34345 #
34346 if test "$tst_compi_getservbyport_r" = "yes"; then
34347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34348$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34349 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34351$as_echo "yes" >&6; }
34352 tst_allow_getservbyport_r="yes"
34353 else
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34355$as_echo "no" >&6; }
34356 tst_allow_getservbyport_r="no"
34357 fi
34358 fi
34359 #
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34361$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34362 if test "$tst_links_getservbyport_r" = "yes" &&
34363 test "$tst_proto_getservbyport_r" = "yes" &&
34364 test "$tst_compi_getservbyport_r" = "yes" &&
34365 test "$tst_allow_getservbyport_r" = "yes"; then
34366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34367$as_echo "yes" >&6; }
34368
34369cat >>confdefs.h <<_ACEOF
34370#define HAVE_GETSERVBYPORT_R 1
34371_ACEOF
34372
34373
34374cat >>confdefs.h <<_ACEOF
34375#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34376_ACEOF
34377
34378 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34379
34380$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34381
34382 else
34383
34384$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34385
34386 fi
34387 curl_cv_func_getservbyport_r="yes"
34388 else
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34390$as_echo "no" >&6; }
34391 curl_cv_func_getservbyport_r="no"
34392 fi
34393
34394
34395curl_includes_time="\
34396/* includes start */
34397#ifdef HAVE_SYS_TYPES_H
34398# include <sys/types.h>
34399#endif
34400#ifdef HAVE_SYS_TIME_H
34401# include <sys/time.h>
34402# ifdef TIME_WITH_SYS_TIME
34403# include <time.h>
34404# endif
34405#else
34406# ifdef HAVE_TIME_H
34407# include <time.h>
34408# endif
34409#endif
34410/* includes end */"
34411 for ac_header in sys/types.h sys/time.h time.h
34412do :
34413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34414ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34415"
34416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34417 cat >>confdefs.h <<_ACEOF
34418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34419_ACEOF
34420
34421fi
34422
34423done
34424
34425
34426
34427 #
34428 tst_links_gmtime_r="unknown"
34429 tst_proto_gmtime_r="unknown"
34430 tst_compi_gmtime_r="unknown"
34431 tst_works_gmtime_r="unknown"
34432 tst_allow_gmtime_r="unknown"
34433 #
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34435$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34437/* end confdefs.h. */
34438
34439
34440#define gmtime_r innocuous_gmtime_r
34441#ifdef __STDC__
34442# include <limits.h>
34443#else
34444# include <assert.h>
34445#endif
34446#undef gmtime_r
34447#ifdef __cplusplus
34448extern "C"
34449#endif
34450char gmtime_r ();
34451#if defined __stub_gmtime_r || defined __stub___gmtime_r
34452choke me
34453#endif
34454
34455int main (void)
34456{
34457return gmtime_r ();
34458 ;
34459 return 0;
34460}
34461
34462_ACEOF
34463if ac_fn_c_try_link "$LINENO"; then :
34464
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34466$as_echo "yes" >&6; }
34467 tst_links_gmtime_r="yes"
34468
34469else
34470
34471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34472$as_echo "no" >&6; }
34473 tst_links_gmtime_r="no"
34474
34475fi
34476rm -f core conftest.err conftest.$ac_objext \
34477 conftest$ac_exeext conftest.$ac_ext
34478 #
34479 if test "$tst_links_gmtime_r" = "yes"; then
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34481$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34483/* end confdefs.h. */
34484
34485 $curl_includes_time
34486
34487_ACEOF
34488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34489 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34490
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34492$as_echo "yes" >&6; }
34493 tst_proto_gmtime_r="yes"
34494
34495else
34496
34497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34498$as_echo "no" >&6; }
34499 tst_proto_gmtime_r="no"
34500
34501fi
34502rm -f conftest*
34503
34504 fi
34505 #
34506 if test "$tst_proto_gmtime_r" = "yes"; then
34507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34508$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34510/* end confdefs.h. */
34511
34512
34513 $curl_includes_time
34514
34515int main (void)
34516{
34517
34518 if(0 != gmtime_r(0, 0))
34519 return 1;
34520
34521 ;
34522 return 0;
34523}
34524
34525_ACEOF
34526if ac_fn_c_try_compile "$LINENO"; then :
34527
34528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529$as_echo "yes" >&6; }
34530 tst_compi_gmtime_r="yes"
34531
34532else
34533
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535$as_echo "no" >&6; }
34536 tst_compi_gmtime_r="no"
34537
34538fi
34539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34540 fi
34541 #
34542 if test "x$cross_compiling" != "xyes" &&
34543 test "$tst_compi_gmtime_r" = "yes"; then
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34545$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34546 if test "$cross_compiling" = yes; then :
34547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34549as_fn_error $? "cannot run test program while cross compiling
34550See \`config.log' for more details" "$LINENO" 5; }
34551else
34552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34553/* end confdefs.h. */
34554
34555
34556 $curl_includes_stdlib
34557 $curl_includes_time
34558
34559int main (void)
34560{
34561
34562 time_t local = 1170352587;
34563 struct tm *gmt = 0;
34564 struct tm result;
34565 gmt = gmtime_r(&local, &result);
34566 if(gmt)
34567 exit(0);
34568 else
34569 exit(1);
34570
34571 ;
34572 return 0;
34573}
34574
34575_ACEOF
34576if ac_fn_c_try_run "$LINENO"; then :
34577
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34579$as_echo "yes" >&6; }
34580 tst_works_gmtime_r="yes"
34581
34582else
34583
34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34585$as_echo "no" >&6; }
34586 tst_works_gmtime_r="no"
34587
34588fi
34589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34590 conftest.$ac_objext conftest.beam conftest.$ac_ext
34591fi
34592
34593 fi
34594 #
34595 if test "$tst_compi_gmtime_r" = "yes" &&
34596 test "$tst_works_gmtime_r" != "no"; then
34597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34598$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34599 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34601$as_echo "yes" >&6; }
34602 tst_allow_gmtime_r="yes"
34603 else
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605$as_echo "no" >&6; }
34606 tst_allow_gmtime_r="no"
34607 fi
34608 fi
34609 #
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34611$as_echo_n "checking if gmtime_r might be used... " >&6; }
34612 if test "$tst_links_gmtime_r" = "yes" &&
34613 test "$tst_proto_gmtime_r" = "yes" &&
34614 test "$tst_compi_gmtime_r" = "yes" &&
34615 test "$tst_allow_gmtime_r" = "yes" &&
34616 test "$tst_works_gmtime_r" != "no"; then
34617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34618$as_echo "yes" >&6; }
34619
34620cat >>confdefs.h <<_ACEOF
34621#define HAVE_GMTIME_R 1
34622_ACEOF
34623
34624 curl_cv_func_gmtime_r="yes"
34625 else
34626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34627$as_echo "no" >&6; }
34628 curl_cv_func_gmtime_r="no"
34629 fi
34630
34631
34632curl_includes_arpa_inet="\
34633/* includes start */
34634#ifdef HAVE_SYS_TYPES_H
34635# include <sys/types.h>
34636#endif
34637#ifdef HAVE_SYS_SOCKET_H
34638# include <sys/socket.h>
34639#endif
34640#ifdef HAVE_NETINET_IN_H
34641# include <netinet/in.h>
34642#endif
34643#ifdef HAVE_ARPA_INET_H
34644# include <arpa/inet.h>
34645#endif
34646#ifdef HAVE_WINSOCK2_H
34647#include <winsock2.h>
34648#include <ws2tcpip.h>
34649#endif
34650/* includes end */"
34651 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34652do :
34653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34655"
34656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34657 cat >>confdefs.h <<_ACEOF
34658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34659_ACEOF
34660
34661fi
34662
34663done
34664
34665
34666
34667 #
34668 tst_links_inet_ntoa_r="unknown"
34669 tst_proto_inet_ntoa_r="unknown"
34670 tst_compi_inet_ntoa_r="unknown"
34671 tst_allow_inet_ntoa_r="unknown"
34672 tst_nargs_inet_ntoa_r="unknown"
34673 #
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34675$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34677/* end confdefs.h. */
34678
34679
34680#define inet_ntoa_r innocuous_inet_ntoa_r
34681#ifdef __STDC__
34682# include <limits.h>
34683#else
34684# include <assert.h>
34685#endif
34686#undef inet_ntoa_r
34687#ifdef __cplusplus
34688extern "C"
34689#endif
34690char inet_ntoa_r ();
34691#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34692choke me
34693#endif
34694
34695int main (void)
34696{
34697return inet_ntoa_r ();
34698 ;
34699 return 0;
34700}
34701
34702_ACEOF
34703if ac_fn_c_try_link "$LINENO"; then :
34704
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706$as_echo "yes" >&6; }
34707 tst_links_inet_ntoa_r="yes"
34708
34709else
34710
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34712$as_echo "no" >&6; }
34713 tst_links_inet_ntoa_r="no"
34714
34715fi
34716rm -f core conftest.err conftest.$ac_objext \
34717 conftest$ac_exeext conftest.$ac_ext
34718 #
34719 if test "$tst_links_inet_ntoa_r" = "yes"; then
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34721$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34723/* end confdefs.h. */
34724
34725 $curl_includes_arpa_inet
34726
34727_ACEOF
34728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34729 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34730
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34732$as_echo "yes" >&6; }
34733 tst_proto_inet_ntoa_r="yes"
34734
34735else
34736
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34738$as_echo "no" >&6; }
34739 tst_proto_inet_ntoa_r="no"
34740
34741fi
34742rm -f conftest*
34743
34744 fi
34745 #
34746 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34747 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34749$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34751/* end confdefs.h. */
34752
34753
34754 $curl_includes_arpa_inet
34755
34756int main (void)
34757{
34758
34759 struct in_addr addr;
34760 if(0 != inet_ntoa_r(addr, 0))
34761 return 1;
34762
34763 ;
34764 return 0;
34765}
34766
34767_ACEOF
34768if ac_fn_c_try_compile "$LINENO"; then :
34769
34770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34771$as_echo "yes" >&6; }
34772 tst_compi_inet_ntoa_r="yes"
34773 tst_nargs_inet_ntoa_r="2"
34774
34775else
34776
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34778$as_echo "no" >&6; }
34779 tst_compi_inet_ntoa_r="no"
34780
34781fi
34782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34783 fi
34784 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34786$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34788/* end confdefs.h. */
34789
34790
34791 $curl_includes_arpa_inet
34792
34793int main (void)
34794{
34795
34796 struct in_addr addr;
34797 if(0 != inet_ntoa_r(addr, 0, 0))
34798 return 1;
34799
34800 ;
34801 return 0;
34802}
34803
34804_ACEOF
34805if ac_fn_c_try_compile "$LINENO"; then :
34806
34807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34808$as_echo "yes" >&6; }
34809 tst_compi_inet_ntoa_r="yes"
34810 tst_nargs_inet_ntoa_r="3"
34811
34812else
34813
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815$as_echo "no" >&6; }
34816 tst_compi_inet_ntoa_r="no"
34817
34818fi
34819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34820 fi
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34822$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34823 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34825$as_echo "yes" >&6; }
34826 else
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34828$as_echo "no" >&6; }
34829 fi
34830 fi
34831 #
34832 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34834$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34835 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34837$as_echo "yes" >&6; }
34838 tst_allow_inet_ntoa_r="yes"
34839 else
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841$as_echo "no" >&6; }
34842 tst_allow_inet_ntoa_r="no"
34843 fi
34844 fi
34845 #
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34847$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34848 if test "$tst_links_inet_ntoa_r" = "yes" &&
34849 test "$tst_proto_inet_ntoa_r" = "yes" &&
34850 test "$tst_compi_inet_ntoa_r" = "yes" &&
34851 test "$tst_allow_inet_ntoa_r" = "yes"; then
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34853$as_echo "yes" >&6; }
34854
34855cat >>confdefs.h <<_ACEOF
34856#define HAVE_INET_NTOA_R 1
34857_ACEOF
34858
34859 #
34860 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34861
34862$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34863
34864 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34865
34866$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34867
34868 fi
34869 #
34870 curl_cv_func_inet_ntoa_r="yes"
34871 else
34872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34873$as_echo "no" >&6; }
34874 curl_cv_func_inet_ntoa_r="no"
34875 fi
34876
34877
34878 #
34879 tst_links_inet_ntop="unknown"
34880 tst_proto_inet_ntop="unknown"
34881 tst_compi_inet_ntop="unknown"
34882 tst_works_inet_ntop="unknown"
34883 tst_allow_inet_ntop="unknown"
34884 #
34885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34886$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34888/* end confdefs.h. */
34889
34890
34891#define inet_ntop innocuous_inet_ntop
34892#ifdef __STDC__
34893# include <limits.h>
34894#else
34895# include <assert.h>
34896#endif
34897#undef inet_ntop
34898#ifdef __cplusplus
34899extern "C"
34900#endif
34901char inet_ntop ();
34902#if defined __stub_inet_ntop || defined __stub___inet_ntop
34903choke me
34904#endif
34905
34906int main (void)
34907{
34908return inet_ntop ();
34909 ;
34910 return 0;
34911}
34912
34913_ACEOF
34914if ac_fn_c_try_link "$LINENO"; then :
34915
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34917$as_echo "yes" >&6; }
34918 tst_links_inet_ntop="yes"
34919
34920else
34921
34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34923$as_echo "no" >&6; }
34924 tst_links_inet_ntop="no"
34925
34926fi
34927rm -f core conftest.err conftest.$ac_objext \
34928 conftest$ac_exeext conftest.$ac_ext
34929 #
34930 if test "$tst_links_inet_ntop" = "yes"; then
34931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34932$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34934/* end confdefs.h. */
34935
34936 $curl_includes_arpa_inet
34937
34938_ACEOF
34939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34940 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34941
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34943$as_echo "yes" >&6; }
34944 tst_proto_inet_ntop="yes"
34945
34946else
34947
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34949$as_echo "no" >&6; }
34950 tst_proto_inet_ntop="no"
34951
34952fi
34953rm -f conftest*
34954
34955 fi
34956 #
34957 if test "$tst_proto_inet_ntop" = "yes"; then
34958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34959$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34961/* end confdefs.h. */
34962
34963
34964 $curl_includes_arpa_inet
34965
34966int main (void)
34967{
34968
34969 if(0 != inet_ntop(0, 0, 0, 0))
34970 return 1;
34971
34972 ;
34973 return 0;
34974}
34975
34976_ACEOF
34977if ac_fn_c_try_compile "$LINENO"; then :
34978
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34980$as_echo "yes" >&6; }
34981 tst_compi_inet_ntop="yes"
34982
34983else
34984
34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34986$as_echo "no" >&6; }
34987 tst_compi_inet_ntop="no"
34988
34989fi
34990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34991 fi
34992 #
34993 if test "x$cross_compiling" != "xyes" &&
34994 test "$tst_compi_inet_ntop" = "yes"; then
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34996$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34997 if test "$cross_compiling" = yes; then :
34998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35000as_fn_error $? "cannot run test program while cross compiling
35001See \`config.log' for more details" "$LINENO" 5; }
35002else
35003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35004/* end confdefs.h. */
35005
35006
35007 $curl_includes_stdlib
35008 $curl_includes_arpa_inet
35009 $curl_includes_string
35010
35011int main (void)
35012{
35013
35014 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35015 char ipv4res[sizeof "255.255.255.255"];
35016 unsigned char ipv6a[26];
35017 unsigned char ipv4a[5];
35018 char *ipv6ptr = 0;
35019 char *ipv4ptr = 0;
35020 /* - */
35021 ipv4res[0] = '\0';
35022 ipv4a[0] = 0xc0;
35023 ipv4a[1] = 0xa8;
35024 ipv4a[2] = 0x64;
35025 ipv4a[3] = 0x01;
35026 ipv4a[4] = 0x01;
35027 /* - */
35028 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35029 if(!ipv4ptr)
35030 exit(1); /* fail */
35031 if(ipv4ptr != ipv4res)
35032 exit(1); /* fail */
35033 if(!ipv4ptr[0])
35034 exit(1); /* fail */
35035 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35036 exit(1); /* fail */
35037 /* - */
35038 ipv6res[0] = '\0';
35039 memset(ipv6a, 0, sizeof(ipv6a));
35040 ipv6a[0] = 0xfe;
35041 ipv6a[1] = 0x80;
35042 ipv6a[8] = 0x02;
35043 ipv6a[9] = 0x14;
35044 ipv6a[10] = 0x4f;
35045 ipv6a[11] = 0xff;
35046 ipv6a[12] = 0xfe;
35047 ipv6a[13] = 0x0b;
35048 ipv6a[14] = 0x76;
35049 ipv6a[15] = 0xc8;
35050 ipv6a[25] = 0x01;
35051 /* - */
35052 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35053 if(!ipv6ptr)
35054 exit(1); /* fail */
35055 if(ipv6ptr != ipv6res)
35056 exit(1); /* fail */
35057 if(!ipv6ptr[0])
35058 exit(1); /* fail */
35059 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35060 exit(1); /* fail */
35061 /* - */
35062 exit(0);
35063
35064 ;
35065 return 0;
35066}
35067
35068_ACEOF
35069if ac_fn_c_try_run "$LINENO"; then :
35070
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35072$as_echo "yes" >&6; }
35073 tst_works_inet_ntop="yes"
35074
35075else
35076
35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078$as_echo "no" >&6; }
35079 tst_works_inet_ntop="no"
35080
35081fi
35082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35083 conftest.$ac_objext conftest.beam conftest.$ac_ext
35084fi
35085
35086 fi
35087 #
35088 if test "$tst_compi_inet_ntop" = "yes" &&
35089 test "$tst_works_inet_ntop" != "no"; then
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35091$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35092 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35094$as_echo "yes" >&6; }
35095 tst_allow_inet_ntop="yes"
35096 else
35097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35098$as_echo "no" >&6; }
35099 tst_allow_inet_ntop="no"
35100 fi
35101 fi
35102 #
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35104$as_echo_n "checking if inet_ntop might be used... " >&6; }
35105 if test "$tst_links_inet_ntop" = "yes" &&
35106 test "$tst_proto_inet_ntop" = "yes" &&
35107 test "$tst_compi_inet_ntop" = "yes" &&
35108 test "$tst_allow_inet_ntop" = "yes" &&
35109 test "$tst_works_inet_ntop" != "no"; then
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35111$as_echo "yes" >&6; }
35112
35113cat >>confdefs.h <<_ACEOF
35114#define HAVE_INET_NTOP 1
35115_ACEOF
35116
35117 curl_cv_func_inet_ntop="yes"
35118 else
35119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35120$as_echo "no" >&6; }
35121 curl_cv_func_inet_ntop="no"
35122 fi
35123
35124
35125 #
35126 tst_links_inet_pton="unknown"
35127 tst_proto_inet_pton="unknown"
35128 tst_compi_inet_pton="unknown"
35129 tst_works_inet_pton="unknown"
35130 tst_allow_inet_pton="unknown"
35131 #
35132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35133$as_echo_n "checking if inet_pton can be linked... " >&6; }
35134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35135/* end confdefs.h. */
35136
35137
35138#define inet_pton innocuous_inet_pton
35139#ifdef __STDC__
35140# include <limits.h>
35141#else
35142# include <assert.h>
35143#endif
35144#undef inet_pton
35145#ifdef __cplusplus
35146extern "C"
35147#endif
35148char inet_pton ();
35149#if defined __stub_inet_pton || defined __stub___inet_pton
35150choke me
35151#endif
35152
35153int main (void)
35154{
35155return inet_pton ();
35156 ;
35157 return 0;
35158}
35159
35160_ACEOF
35161if ac_fn_c_try_link "$LINENO"; then :
35162
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35164$as_echo "yes" >&6; }
35165 tst_links_inet_pton="yes"
35166
35167else
35168
35169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35170$as_echo "no" >&6; }
35171 tst_links_inet_pton="no"
35172
35173fi
35174rm -f core conftest.err conftest.$ac_objext \
35175 conftest$ac_exeext conftest.$ac_ext
35176 #
35177 if test "$tst_links_inet_pton" = "yes"; then
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35179$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181/* end confdefs.h. */
35182
35183 $curl_includes_arpa_inet
35184
35185_ACEOF
35186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35187 $EGREP "inet_pton" >/dev/null 2>&1; then :
35188
35189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35190$as_echo "yes" >&6; }
35191 tst_proto_inet_pton="yes"
35192
35193else
35194
35195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35196$as_echo "no" >&6; }
35197 tst_proto_inet_pton="no"
35198
35199fi
35200rm -f conftest*
35201
35202 fi
35203 #
35204 if test "$tst_proto_inet_pton" = "yes"; then
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35206$as_echo_n "checking if inet_pton is compilable... " >&6; }
35207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35208/* end confdefs.h. */
35209
35210
35211 $curl_includes_arpa_inet
35212
35213int main (void)
35214{
35215
35216 if(0 != inet_pton(0, 0, 0))
35217 return 1;
35218
35219 ;
35220 return 0;
35221}
35222
35223_ACEOF
35224if ac_fn_c_try_compile "$LINENO"; then :
35225
35226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35227$as_echo "yes" >&6; }
35228 tst_compi_inet_pton="yes"
35229
35230else
35231
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35233$as_echo "no" >&6; }
35234 tst_compi_inet_pton="no"
35235
35236fi
35237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238 fi
35239 #
35240 if test "x$cross_compiling" != "xyes" &&
35241 test "$tst_compi_inet_pton" = "yes"; then
35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35243$as_echo_n "checking if inet_pton seems to work... " >&6; }
35244 if test "$cross_compiling" = yes; then :
35245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35247as_fn_error $? "cannot run test program while cross compiling
35248See \`config.log' for more details" "$LINENO" 5; }
35249else
35250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35251/* end confdefs.h. */
35252
35253
35254 $curl_includes_stdlib
35255 $curl_includes_arpa_inet
35256 $curl_includes_string
35257
35258int main (void)
35259{
35260
35261 unsigned char ipv6a[16+1];
35262 unsigned char ipv4a[4+1];
35263 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35264 const char *ipv4src = "192.168.100.1";
35265 /* - */
35266 memset(ipv4a, 1, sizeof(ipv4a));
35267 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35268 exit(1); /* fail */
35269 /* - */
35270 if( (ipv4a[0] != 0xc0) ||
35271 (ipv4a[1] != 0xa8) ||
35272 (ipv4a[2] != 0x64) ||
35273 (ipv4a[3] != 0x01) ||
35274 (ipv4a[4] != 0x01) )
35275 exit(1); /* fail */
35276 /* - */
35277 memset(ipv6a, 1, sizeof(ipv6a));
35278 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35279 exit(1); /* fail */
35280 /* - */
35281 if( (ipv6a[0] != 0xfe) ||
35282 (ipv6a[1] != 0x80) ||
35283 (ipv6a[8] != 0x02) ||
35284 (ipv6a[9] != 0x14) ||
35285 (ipv6a[10] != 0x4f) ||
35286 (ipv6a[11] != 0xff) ||
35287 (ipv6a[12] != 0xfe) ||
35288 (ipv6a[13] != 0x0b) ||
35289 (ipv6a[14] != 0x76) ||
35290 (ipv6a[15] != 0xc8) ||
35291 (ipv6a[16] != 0x01) )
35292 exit(1); /* fail */
35293 /* - */
35294 if( (ipv6a[2] != 0x0) ||
35295 (ipv6a[3] != 0x0) ||
35296 (ipv6a[4] != 0x0) ||
35297 (ipv6a[5] != 0x0) ||
35298 (ipv6a[6] != 0x0) ||
35299 (ipv6a[7] != 0x0) )
35300 exit(1); /* fail */
35301 /* - */
35302 exit(0);
35303
35304 ;
35305 return 0;
35306}
35307
35308_ACEOF
35309if ac_fn_c_try_run "$LINENO"; then :
35310
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35312$as_echo "yes" >&6; }
35313 tst_works_inet_pton="yes"
35314
35315else
35316
35317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35318$as_echo "no" >&6; }
35319 tst_works_inet_pton="no"
35320
35321fi
35322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35323 conftest.$ac_objext conftest.beam conftest.$ac_ext
35324fi
35325
35326 fi
35327 #
35328 if test "$tst_compi_inet_pton" = "yes" &&
35329 test "$tst_works_inet_pton" != "no"; then
35330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35331$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35332 if test "x$curl_disallow_inet_pton" != "xyes"; then
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35334$as_echo "yes" >&6; }
35335 tst_allow_inet_pton="yes"
35336 else
35337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35338$as_echo "no" >&6; }
35339 tst_allow_inet_pton="no"
35340 fi
35341 fi
35342 #
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35344$as_echo_n "checking if inet_pton might be used... " >&6; }
35345 if test "$tst_links_inet_pton" = "yes" &&
35346 test "$tst_proto_inet_pton" = "yes" &&
35347 test "$tst_compi_inet_pton" = "yes" &&
35348 test "$tst_allow_inet_pton" = "yes" &&
35349 test "$tst_works_inet_pton" != "no"; then
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35351$as_echo "yes" >&6; }
35352
35353cat >>confdefs.h <<_ACEOF
35354#define HAVE_INET_PTON 1
35355_ACEOF
35356
35357 curl_cv_func_inet_pton="yes"
35358 else
35359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35360$as_echo "no" >&6; }
35361 curl_cv_func_inet_pton="no"
35362 fi
35363
35364
35365curl_includes_stropts="\
35366/* includes start */
35367#ifdef HAVE_SYS_TYPES_H
35368# include <sys/types.h>
35369#endif
35370#ifdef HAVE_UNISTD_H
35371# include <unistd.h>
35372#endif
35373#ifdef HAVE_SYS_SOCKET_H
35374# include <sys/socket.h>
35375#endif
35376#ifdef HAVE_SYS_IOCTL_H
35377# include <sys/ioctl.h>
35378#endif
35379#ifdef HAVE_STROPTS_H
35380# include <stropts.h>
35381#endif
35382/* includes end */"
35383 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35384do :
35385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35386ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35387"
35388if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35389 cat >>confdefs.h <<_ACEOF
35390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35391_ACEOF
35392
35393fi
35394
35395done
35396
35397
35398
35399 #
35400 tst_links_ioctl="unknown"
35401 tst_proto_ioctl="unknown"
35402 tst_compi_ioctl="unknown"
35403 tst_allow_ioctl="unknown"
35404 #
35405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35406$as_echo_n "checking if ioctl can be linked... " >&6; }
35407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35408/* end confdefs.h. */
35409
35410
35411#define ioctl innocuous_ioctl
35412#ifdef __STDC__
35413# include <limits.h>
35414#else
35415# include <assert.h>
35416#endif
35417#undef ioctl
35418#ifdef __cplusplus
35419extern "C"
35420#endif
35421char ioctl ();
35422#if defined __stub_ioctl || defined __stub___ioctl
35423choke me
35424#endif
35425
35426int main (void)
35427{
35428return ioctl ();
35429 ;
35430 return 0;
35431}
35432
35433_ACEOF
35434if ac_fn_c_try_link "$LINENO"; then :
35435
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437$as_echo "yes" >&6; }
35438 tst_links_ioctl="yes"
35439
35440else
35441
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35443$as_echo "no" >&6; }
35444 tst_links_ioctl="no"
35445
35446fi
35447rm -f core conftest.err conftest.$ac_objext \
35448 conftest$ac_exeext conftest.$ac_ext
35449 #
35450 if test "$tst_links_ioctl" = "yes"; then
35451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35452$as_echo_n "checking if ioctl is prototyped... " >&6; }
35453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35454/* end confdefs.h. */
35455
35456 $curl_includes_stropts
35457
35458_ACEOF
35459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35460 $EGREP "ioctl" >/dev/null 2>&1; then :
35461
35462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35463$as_echo "yes" >&6; }
35464 tst_proto_ioctl="yes"
35465
35466else
35467
35468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35469$as_echo "no" >&6; }
35470 tst_proto_ioctl="no"
35471
35472fi
35473rm -f conftest*
35474
35475 fi
35476 #
35477 if test "$tst_proto_ioctl" = "yes"; then
35478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35479$as_echo_n "checking if ioctl is compilable... " >&6; }
35480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35481/* end confdefs.h. */
35482
35483
35484 $curl_includes_stropts
35485
35486int main (void)
35487{
35488
35489 if(0 != ioctl(0, 0, 0))
35490 return 1;
35491
35492 ;
35493 return 0;
35494}
35495
35496_ACEOF
35497if ac_fn_c_try_compile "$LINENO"; then :
35498
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35500$as_echo "yes" >&6; }
35501 tst_compi_ioctl="yes"
35502
35503else
35504
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35506$as_echo "no" >&6; }
35507 tst_compi_ioctl="no"
35508
35509fi
35510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35511 fi
35512 #
35513 if test "$tst_compi_ioctl" = "yes"; then
35514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35515$as_echo_n "checking if ioctl usage allowed... " >&6; }
35516 if test "x$curl_disallow_ioctl" != "xyes"; then
35517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35518$as_echo "yes" >&6; }
35519 tst_allow_ioctl="yes"
35520 else
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522$as_echo "no" >&6; }
35523 tst_allow_ioctl="no"
35524 fi
35525 fi
35526 #
35527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35528$as_echo_n "checking if ioctl might be used... " >&6; }
35529 if test "$tst_links_ioctl" = "yes" &&
35530 test "$tst_proto_ioctl" = "yes" &&
35531 test "$tst_compi_ioctl" = "yes" &&
35532 test "$tst_allow_ioctl" = "yes"; then
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534$as_echo "yes" >&6; }
35535
35536cat >>confdefs.h <<_ACEOF
35537#define HAVE_IOCTL 1
35538_ACEOF
35539
35540 curl_cv_func_ioctl="yes"
35541
35542 #
35543 tst_compi_ioctl_fionbio="unknown"
35544 tst_allow_ioctl_fionbio="unknown"
35545 #
35546 if test "$curl_cv_func_ioctl" = "yes"; then
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35548$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35550/* end confdefs.h. */
35551
35552
35553 $curl_includes_stropts
35554
35555int main (void)
35556{
35557
35558 int flags = 0;
35559 if(0 != ioctl(0, FIONBIO, &flags))
35560 return 1;
35561
35562 ;
35563 return 0;
35564}
35565
35566_ACEOF
35567if ac_fn_c_try_compile "$LINENO"; then :
35568
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570$as_echo "yes" >&6; }
35571 tst_compi_ioctl_fionbio="yes"
35572
35573else
35574
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576$as_echo "no" >&6; }
35577 tst_compi_ioctl_fionbio="no"
35578
35579fi
35580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35581 fi
35582 #
35583 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35585$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35586 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35588$as_echo "yes" >&6; }
35589 tst_allow_ioctl_fionbio="yes"
35590 else
35591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35592$as_echo "no" >&6; }
35593 tst_allow_ioctl_fionbio="no"
35594 fi
35595 fi
35596 #
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35598$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35599 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35600 test "$tst_allow_ioctl_fionbio" = "yes"; then
35601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35602$as_echo "yes" >&6; }
35603
35604cat >>confdefs.h <<_ACEOF
35605#define HAVE_IOCTL_FIONBIO 1
35606_ACEOF
35607
35608 curl_cv_func_ioctl_fionbio="yes"
35609 else
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35611$as_echo "no" >&6; }
35612 curl_cv_func_ioctl_fionbio="no"
35613 fi
35614
35615
35616 #
35617 tst_compi_ioctl_siocgifaddr="unknown"
35618 tst_allow_ioctl_siocgifaddr="unknown"
35619 #
35620 if test "$curl_cv_func_ioctl" = "yes"; then
35621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35622$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35624/* end confdefs.h. */
35625
35626
35627 $curl_includes_stropts
35628 #include <net/if.h>
35629
35630int main (void)
35631{
35632
35633 struct ifreq ifr;
35634 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35635 return 1;
35636
35637 ;
35638 return 0;
35639}
35640
35641_ACEOF
35642if ac_fn_c_try_compile "$LINENO"; then :
35643
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645$as_echo "yes" >&6; }
35646 tst_compi_ioctl_siocgifaddr="yes"
35647
35648else
35649
35650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651$as_echo "no" >&6; }
35652 tst_compi_ioctl_siocgifaddr="no"
35653
35654fi
35655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35656 fi
35657 #
35658 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35660$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35661 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663$as_echo "yes" >&6; }
35664 tst_allow_ioctl_siocgifaddr="yes"
35665 else
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35667$as_echo "no" >&6; }
35668 tst_allow_ioctl_siocgifaddr="no"
35669 fi
35670 fi
35671 #
35672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35673$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35674 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35675 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35677$as_echo "yes" >&6; }
35678
35679cat >>confdefs.h <<_ACEOF
35680#define HAVE_IOCTL_SIOCGIFADDR 1
35681_ACEOF
35682
35683 curl_cv_func_ioctl_siocgifaddr="yes"
35684 else
35685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35686$as_echo "no" >&6; }
35687 curl_cv_func_ioctl_siocgifaddr="no"
35688 fi
35689
35690 else
35691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35692$as_echo "no" >&6; }
35693 curl_cv_func_ioctl="no"
35694 fi
35695
35696
35697 #
35698 tst_links_ioctlsocket="unknown"
35699 tst_proto_ioctlsocket="unknown"
35700 tst_compi_ioctlsocket="unknown"
35701 tst_allow_ioctlsocket="unknown"
35702 #
35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35704$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35706/* end confdefs.h. */
35707
35708
35709 $curl_includes_winsock2
35710
35711int main (void)
35712{
35713
35714 if(0 != ioctlsocket(0, 0, 0))
35715 return 1;
35716
35717 ;
35718 return 0;
35719}
35720
35721_ACEOF
35722if ac_fn_c_try_link "$LINENO"; then :
35723
35724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35725$as_echo "yes" >&6; }
35726 tst_links_ioctlsocket="yes"
35727
35728else
35729
35730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35731$as_echo "no" >&6; }
35732 tst_links_ioctlsocket="no"
35733
35734fi
35735rm -f core conftest.err conftest.$ac_objext \
35736 conftest$ac_exeext conftest.$ac_ext
35737 #
35738 if test "$tst_links_ioctlsocket" = "yes"; then
35739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35740$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35742/* end confdefs.h. */
35743
35744 $curl_includes_winsock2
35745
35746_ACEOF
35747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35748 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35749
35750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35751$as_echo "yes" >&6; }
35752 tst_proto_ioctlsocket="yes"
35753
35754else
35755
35756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35757$as_echo "no" >&6; }
35758 tst_proto_ioctlsocket="no"
35759
35760fi
35761rm -f conftest*
35762
35763 fi
35764 #
35765 if test "$tst_proto_ioctlsocket" = "yes"; then
35766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35767$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35769/* end confdefs.h. */
35770
35771
35772 $curl_includes_winsock2
35773
35774int main (void)
35775{
35776
35777 if(0 != ioctlsocket(0, 0, 0))
35778 return 1;
35779
35780 ;
35781 return 0;
35782}
35783
35784_ACEOF
35785if ac_fn_c_try_compile "$LINENO"; then :
35786
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35788$as_echo "yes" >&6; }
35789 tst_compi_ioctlsocket="yes"
35790
35791else
35792
35793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35794$as_echo "no" >&6; }
35795 tst_compi_ioctlsocket="no"
35796
35797fi
35798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35799 fi
35800 #
35801 if test "$tst_compi_ioctlsocket" = "yes"; then
35802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35803$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35804 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35806$as_echo "yes" >&6; }
35807 tst_allow_ioctlsocket="yes"
35808 else
35809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35810$as_echo "no" >&6; }
35811 tst_allow_ioctlsocket="no"
35812 fi
35813 fi
35814 #
35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35816$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35817 if test "$tst_links_ioctlsocket" = "yes" &&
35818 test "$tst_proto_ioctlsocket" = "yes" &&
35819 test "$tst_compi_ioctlsocket" = "yes" &&
35820 test "$tst_allow_ioctlsocket" = "yes"; then
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822$as_echo "yes" >&6; }
35823
35824cat >>confdefs.h <<_ACEOF
35825#define HAVE_IOCTLSOCKET 1
35826_ACEOF
35827
35828 curl_cv_func_ioctlsocket="yes"
35829
35830 #
35831 tst_compi_ioctlsocket_fionbio="unknown"
35832 tst_allow_ioctlsocket_fionbio="unknown"
35833 #
35834 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35836$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35838/* end confdefs.h. */
35839
35840
35841 $curl_includes_winsock2
35842
35843int main (void)
35844{
35845
35846 int flags = 0;
35847 if(0 != ioctlsocket(0, FIONBIO, &flags))
35848 return 1;
35849
35850 ;
35851 return 0;
35852}
35853
35854_ACEOF
35855if ac_fn_c_try_compile "$LINENO"; then :
35856
35857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35858$as_echo "yes" >&6; }
35859 tst_compi_ioctlsocket_fionbio="yes"
35860
35861else
35862
35863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35864$as_echo "no" >&6; }
35865 tst_compi_ioctlsocket_fionbio="no"
35866
35867fi
35868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35869 fi
35870 #
35871 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35873$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35874 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35876$as_echo "yes" >&6; }
35877 tst_allow_ioctlsocket_fionbio="yes"
35878 else
35879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35880$as_echo "no" >&6; }
35881 tst_allow_ioctlsocket_fionbio="no"
35882 fi
35883 fi
35884 #
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35886$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35887 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35888 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35890$as_echo "yes" >&6; }
35891
35892cat >>confdefs.h <<_ACEOF
35893#define HAVE_IOCTLSOCKET_FIONBIO 1
35894_ACEOF
35895
35896 curl_cv_func_ioctlsocket_fionbio="yes"
35897 else
35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35899$as_echo "no" >&6; }
35900 curl_cv_func_ioctlsocket_fionbio="no"
35901 fi
35902
35903 else
35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35905$as_echo "no" >&6; }
35906 curl_cv_func_ioctlsocket="no"
35907 fi
35908
35909
35910 #
35911 tst_links_ioctlsocket_camel="unknown"
35912 tst_proto_ioctlsocket_camel="unknown"
35913 tst_compi_ioctlsocket_camel="unknown"
35914 tst_allow_ioctlsocket_camel="unknown"
35915 #
35916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35917$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35919/* end confdefs.h. */
35920
35921
35922#define IoctlSocket innocuous_IoctlSocket
35923#ifdef __STDC__
35924# include <limits.h>
35925#else
35926# include <assert.h>
35927#endif
35928#undef IoctlSocket
35929#ifdef __cplusplus
35930extern "C"
35931#endif
35932char IoctlSocket ();
35933#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35934choke me
35935#endif
35936
35937int main (void)
35938{
35939return IoctlSocket ();
35940 ;
35941 return 0;
35942}
35943
35944_ACEOF
35945if ac_fn_c_try_link "$LINENO"; then :
35946
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948$as_echo "yes" >&6; }
35949 tst_links_ioctlsocket_camel="yes"
35950
35951else
35952
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35954$as_echo "no" >&6; }
35955 tst_links_ioctlsocket_camel="no"
35956
35957fi
35958rm -f core conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
35960 #
35961 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35963$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35965/* end confdefs.h. */
35966
35967 $curl_includes_stropts
35968
35969_ACEOF
35970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35971 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35972
35973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35974$as_echo "yes" >&6; }
35975 tst_proto_ioctlsocket_camel="yes"
35976
35977else
35978
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35980$as_echo "no" >&6; }
35981 tst_proto_ioctlsocket_camel="no"
35982
35983fi
35984rm -f conftest*
35985
35986 fi
35987 #
35988 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35990$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35992/* end confdefs.h. */
35993
35994
35995 $curl_includes_stropts
35996
35997int main (void)
35998{
35999
36000 if(0 != IoctlSocket(0, 0, 0))
36001 return 1;
36002
36003 ;
36004 return 0;
36005}
36006
36007_ACEOF
36008if ac_fn_c_try_compile "$LINENO"; then :
36009
36010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36011$as_echo "yes" >&6; }
36012 tst_compi_ioctlsocket_camel="yes"
36013
36014else
36015
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017$as_echo "no" >&6; }
36018 tst_compi_ioctlsocket_camel="no"
36019
36020fi
36021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022 fi
36023 #
36024 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36026$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36027 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029$as_echo "yes" >&6; }
36030 tst_allow_ioctlsocket_camel="yes"
36031 else
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36033$as_echo "no" >&6; }
36034 tst_allow_ioctlsocket_camel="no"
36035 fi
36036 fi
36037 #
36038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36039$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36040 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36041 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36042 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36043 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36045$as_echo "yes" >&6; }
36046
36047cat >>confdefs.h <<_ACEOF
36048#define HAVE_IOCTLSOCKET_CAMEL 1
36049_ACEOF
36050
36051 curl_cv_func_ioctlsocket_camel="yes"
36052
36053 #
36054 tst_compi_ioctlsocket_camel_fionbio="unknown"
36055 tst_allow_ioctlsocket_camel_fionbio="unknown"
36056 #
36057 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36059$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061/* end confdefs.h. */
36062
36063
36064 $curl_includes_stropts
36065
36066int main (void)
36067{
36068
36069 long flags = 0;
36070 if(0 != ioctlsocket(0, FIONBIO, &flags))
36071 return 1;
36072
36073 ;
36074 return 0;
36075}
36076
36077_ACEOF
36078if ac_fn_c_try_compile "$LINENO"; then :
36079
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081$as_echo "yes" >&6; }
36082 tst_compi_ioctlsocket_camel_fionbio="yes"
36083
36084else
36085
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36087$as_echo "no" >&6; }
36088 tst_compi_ioctlsocket_camel_fionbio="no"
36089
36090fi
36091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36092 fi
36093 #
36094 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36096$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36097 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36099$as_echo "yes" >&6; }
36100 tst_allow_ioctlsocket_camel_fionbio="yes"
36101 else
36102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36103$as_echo "no" >&6; }
36104 tst_allow_ioctlsocket_camel_fionbio="no"
36105 fi
36106 fi
36107 #
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36109$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36110 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36111 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36113$as_echo "yes" >&6; }
36114
36115cat >>confdefs.h <<_ACEOF
36116#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36117_ACEOF
36118
36119 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36120 else
36121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122$as_echo "no" >&6; }
36123 curl_cv_func_ioctlsocket_camel_fionbio="no"
36124 fi
36125
36126 else
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36128$as_echo "no" >&6; }
36129 curl_cv_func_ioctlsocket_camel="no"
36130 fi
36131
36132
36133 #
36134 tst_links_localtime_r="unknown"
36135 tst_proto_localtime_r="unknown"
36136 tst_compi_localtime_r="unknown"
36137 tst_works_localtime_r="unknown"
36138 tst_allow_localtime_r="unknown"
36139 #
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36141$as_echo_n "checking if localtime_r can be linked... " >&6; }
36142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36143/* end confdefs.h. */
36144
36145
36146#define localtime_r innocuous_localtime_r
36147#ifdef __STDC__
36148# include <limits.h>
36149#else
36150# include <assert.h>
36151#endif
36152#undef localtime_r
36153#ifdef __cplusplus
36154extern "C"
36155#endif
36156char localtime_r ();
36157#if defined __stub_localtime_r || defined __stub___localtime_r
36158choke me
36159#endif
36160
36161int main (void)
36162{
36163return localtime_r ();
36164 ;
36165 return 0;
36166}
36167
36168_ACEOF
36169if ac_fn_c_try_link "$LINENO"; then :
36170
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36172$as_echo "yes" >&6; }
36173 tst_links_localtime_r="yes"
36174
36175else
36176
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36178$as_echo "no" >&6; }
36179 tst_links_localtime_r="no"
36180
36181fi
36182rm -f core conftest.err conftest.$ac_objext \
36183 conftest$ac_exeext conftest.$ac_ext
36184 #
36185 if test "$tst_links_localtime_r" = "yes"; then
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36187$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36189/* end confdefs.h. */
36190
36191 $curl_includes_time
36192
36193_ACEOF
36194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36195 $EGREP "localtime_r" >/dev/null 2>&1; then :
36196
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36198$as_echo "yes" >&6; }
36199 tst_proto_localtime_r="yes"
36200
36201else
36202
36203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36204$as_echo "no" >&6; }
36205 tst_proto_localtime_r="no"
36206
36207fi
36208rm -f conftest*
36209
36210 fi
36211 #
36212 if test "$tst_proto_localtime_r" = "yes"; then
36213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36214$as_echo_n "checking if localtime_r is compilable... " >&6; }
36215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36216/* end confdefs.h. */
36217
36218
36219 $curl_includes_time
36220
36221int main (void)
36222{
36223
36224 if(0 != localtime_r(0, 0))
36225 return 1;
36226
36227 ;
36228 return 0;
36229}
36230
36231_ACEOF
36232if ac_fn_c_try_compile "$LINENO"; then :
36233
36234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36235$as_echo "yes" >&6; }
36236 tst_compi_localtime_r="yes"
36237
36238else
36239
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36241$as_echo "no" >&6; }
36242 tst_compi_localtime_r="no"
36243
36244fi
36245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36246 fi
36247 #
36248 if test "x$cross_compiling" != "xyes" &&
36249 test "$tst_compi_localtime_r" = "yes"; then
36250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36251$as_echo_n "checking if localtime_r seems to work... " >&6; }
36252 if test "$cross_compiling" = yes; then :
36253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36255as_fn_error $? "cannot run test program while cross compiling
36256See \`config.log' for more details" "$LINENO" 5; }
36257else
36258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36259/* end confdefs.h. */
36260
36261
36262 $curl_includes_stdlib
36263 $curl_includes_time
36264
36265int main (void)
36266{
36267
36268 time_t clock = 1170352587;
36269 struct tm *tmp = 0;
36270 struct tm result;
36271 tmp = localtime_r(&clock, &result);
36272 if(tmp)
36273 exit(0);
36274 else
36275 exit(1);
36276
36277 ;
36278 return 0;
36279}
36280
36281_ACEOF
36282if ac_fn_c_try_run "$LINENO"; then :
36283
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36285$as_echo "yes" >&6; }
36286 tst_works_localtime_r="yes"
36287
36288else
36289
36290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36291$as_echo "no" >&6; }
36292 tst_works_localtime_r="no"
36293
36294fi
36295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36296 conftest.$ac_objext conftest.beam conftest.$ac_ext
36297fi
36298
36299 fi
36300 #
36301 if test "$tst_compi_localtime_r" = "yes" &&
36302 test "$tst_works_localtime_r" != "no"; then
36303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36304$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36305 if test "x$curl_disallow_localtime_r" != "xyes"; then
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36307$as_echo "yes" >&6; }
36308 tst_allow_localtime_r="yes"
36309 else
36310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36311$as_echo "no" >&6; }
36312 tst_allow_localtime_r="no"
36313 fi
36314 fi
36315 #
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36317$as_echo_n "checking if localtime_r might be used... " >&6; }
36318 if test "$tst_links_localtime_r" = "yes" &&
36319 test "$tst_proto_localtime_r" = "yes" &&
36320 test "$tst_compi_localtime_r" = "yes" &&
36321 test "$tst_allow_localtime_r" = "yes" &&
36322 test "$tst_works_localtime_r" != "no"; then
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36324$as_echo "yes" >&6; }
36325
36326cat >>confdefs.h <<_ACEOF
36327#define HAVE_LOCALTIME_R 1
36328_ACEOF
36329
36330 curl_cv_func_localtime_r="yes"
36331 else
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333$as_echo "no" >&6; }
36334 curl_cv_func_localtime_r="no"
36335 fi
36336
36337
36338 #
36339 tst_links_memrchr="unknown"
36340 tst_macro_memrchr="unknown"
36341 tst_proto_memrchr="unknown"
36342 tst_compi_memrchr="unknown"
36343 tst_allow_memrchr="unknown"
36344 #
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36346$as_echo_n "checking if memrchr can be linked... " >&6; }
36347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36348/* end confdefs.h. */
36349
36350
36351#define memrchr innocuous_memrchr
36352#ifdef __STDC__
36353# include <limits.h>
36354#else
36355# include <assert.h>
36356#endif
36357#undef memrchr
36358#ifdef __cplusplus
36359extern "C"
36360#endif
36361char memrchr ();
36362#if defined __stub_memrchr || defined __stub___memrchr
36363choke me
36364#endif
36365
36366int main (void)
36367{
36368return memrchr ();
36369 ;
36370 return 0;
36371}
36372
36373_ACEOF
36374if ac_fn_c_try_link "$LINENO"; then :
36375
36376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377$as_echo "yes" >&6; }
36378 tst_links_memrchr="yes"
36379
36380else
36381
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383$as_echo "no" >&6; }
36384 tst_links_memrchr="no"
36385
36386fi
36387rm -f core conftest.err conftest.$ac_objext \
36388 conftest$ac_exeext conftest.$ac_ext
36389 #
36390 if test "$tst_links_memrchr" = "no"; then
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36392$as_echo_n "checking if memrchr seems a macro... " >&6; }
36393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36394/* end confdefs.h. */
36395
36396
36397 $curl_includes_string
36398
36399int main (void)
36400{
36401
36402 if(0 != memrchr(0, 0, 0))
36403 return 1;
36404
36405 ;
36406 return 0;
36407}
36408
36409_ACEOF
36410if ac_fn_c_try_link "$LINENO"; then :
36411
36412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36413$as_echo "yes" >&6; }
36414 tst_macro_memrchr="yes"
36415
36416else
36417
36418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36419$as_echo "no" >&6; }
36420 tst_macro_memrchr="no"
36421
36422fi
36423rm -f core conftest.err conftest.$ac_objext \
36424 conftest$ac_exeext conftest.$ac_ext
36425 fi
36426 #
36427 if test "$tst_links_memrchr" = "yes"; then
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36429$as_echo_n "checking if memrchr is prototyped... " >&6; }
36430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36431/* end confdefs.h. */
36432
36433 $curl_includes_string
36434
36435_ACEOF
36436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36437 $EGREP "memrchr" >/dev/null 2>&1; then :
36438
36439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36440$as_echo "yes" >&6; }
36441 tst_proto_memrchr="yes"
36442
36443else
36444
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446$as_echo "no" >&6; }
36447 tst_proto_memrchr="no"
36448
36449fi
36450rm -f conftest*
36451
36452 fi
36453 #
36454 if test "$tst_proto_memrchr" = "yes" ||
36455 test "$tst_macro_memrchr" = "yes"; then
36456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36457$as_echo_n "checking if memrchr is compilable... " >&6; }
36458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36459/* end confdefs.h. */
36460
36461
36462 $curl_includes_string
36463
36464int main (void)
36465{
36466
36467 if(0 != memrchr(0, 0, 0))
36468 return 1;
36469
36470 ;
36471 return 0;
36472}
36473
36474_ACEOF
36475if ac_fn_c_try_compile "$LINENO"; then :
36476
36477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36478$as_echo "yes" >&6; }
36479 tst_compi_memrchr="yes"
36480
36481else
36482
36483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36484$as_echo "no" >&6; }
36485 tst_compi_memrchr="no"
36486
36487fi
36488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36489 fi
36490 #
36491 if test "$tst_compi_memrchr" = "yes"; then
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36493$as_echo_n "checking if memrchr usage allowed... " >&6; }
36494 if test "x$curl_disallow_memrchr" != "xyes"; then
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36496$as_echo "yes" >&6; }
36497 tst_allow_memrchr="yes"
36498 else
36499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36500$as_echo "no" >&6; }
36501 tst_allow_memrchr="no"
36502 fi
36503 fi
36504 #
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36506$as_echo_n "checking if memrchr might be used... " >&6; }
36507 if (test "$tst_proto_memrchr" = "yes" ||
36508 test "$tst_macro_memrchr" = "yes") &&
36509 test "$tst_compi_memrchr" = "yes" &&
36510 test "$tst_allow_memrchr" = "yes"; then
36511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36512$as_echo "yes" >&6; }
36513
36514cat >>confdefs.h <<_ACEOF
36515#define HAVE_MEMRCHR 1
36516_ACEOF
36517
36518 curl_cv_func_memrchr="yes"
36519 else
36520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36521$as_echo "no" >&6; }
36522 curl_cv_func_memrchr="no"
36523 fi
36524
36525
36526 #
36527 tst_links_poll="unknown"
36528 tst_proto_poll="unknown"
36529 tst_compi_poll="unknown"
36530 tst_works_poll="unknown"
36531 tst_allow_poll="unknown"
36532 #
36533 case $host_os in
36534 darwin*|interix*)
36535 curl_disallow_poll="yes"
36536 tst_compi_poll="no"
36537 ;;
36538 esac
36539 #
36540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36541$as_echo_n "checking if poll can be linked... " >&6; }
36542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36543/* end confdefs.h. */
36544
36545
36546 $curl_includes_poll
36547
36548int main (void)
36549{
36550
36551 if(0 != poll(0, 0, 0))
36552 return 1;
36553
36554 ;
36555 return 0;
36556}
36557
36558_ACEOF
36559if ac_fn_c_try_link "$LINENO"; then :
36560
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562$as_echo "yes" >&6; }
36563 tst_links_poll="yes"
36564
36565else
36566
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568$as_echo "no" >&6; }
36569 tst_links_poll="no"
36570
36571fi
36572rm -f core conftest.err conftest.$ac_objext \
36573 conftest$ac_exeext conftest.$ac_ext
36574 #
36575 if test "$tst_links_poll" = "yes"; then
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36577$as_echo_n "checking if poll is prototyped... " >&6; }
36578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36579/* end confdefs.h. */
36580
36581 $curl_includes_poll
36582
36583_ACEOF
36584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36585 $EGREP "poll" >/dev/null 2>&1; then :
36586
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36588$as_echo "yes" >&6; }
36589 tst_proto_poll="yes"
36590
36591else
36592
36593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36594$as_echo "no" >&6; }
36595 tst_proto_poll="no"
36596
36597fi
36598rm -f conftest*
36599
36600 fi
36601 #
36602 if test "$tst_proto_poll" = "yes"; then
36603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36604$as_echo_n "checking if poll is compilable... " >&6; }
36605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36606/* end confdefs.h. */
36607
36608
36609 $curl_includes_poll
36610
36611int main (void)
36612{
36613
36614 if(0 != poll(0, 0, 0))
36615 return 1;
36616
36617 ;
36618 return 0;
36619}
36620
36621_ACEOF
36622if ac_fn_c_try_compile "$LINENO"; then :
36623
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36625$as_echo "yes" >&6; }
36626 tst_compi_poll="yes"
36627
36628else
36629
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36631$as_echo "no" >&6; }
36632 tst_compi_poll="no"
36633
36634fi
36635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636 fi
36637 #
36638 if test "x$cross_compiling" != "xyes" &&
36639 test "$tst_compi_poll" = "yes"; then
36640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36641$as_echo_n "checking if poll seems to work... " >&6; }
36642 if test "$cross_compiling" = yes; then :
36643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36645as_fn_error $? "cannot run test program while cross compiling
36646See \`config.log' for more details" "$LINENO" 5; }
36647else
36648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36649/* end confdefs.h. */
36650
36651
36652 $curl_includes_stdlib
36653 $curl_includes_poll
36654 $curl_includes_time
36655
36656int main (void)
36657{
36658
36659 /* detect the original poll() breakage */
36660 if(0 != poll(0, 0, 10))
36661 exit(1); /* fail */
36662 else {
36663 /* detect the 10.12 poll() breakage */
36664 struct timeval before, after;
36665 int rc;
36666 size_t us;
36667
36668 gettimeofday(&before, NULL);
36669 rc = poll(NULL, 0, 500);
36670 gettimeofday(&after, NULL);
36671
36672 us = (after.tv_sec - before.tv_sec) * 1000000 +
36673 (after.tv_usec - before.tv_usec);
36674
36675 if(us < 400000)
36676 exit(1);
36677 }
36678
36679 ;
36680 return 0;
36681}
36682
36683_ACEOF
36684if ac_fn_c_try_run "$LINENO"; then :
36685
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36687$as_echo "yes" >&6; }
36688 tst_works_poll="yes"
36689
36690else
36691
36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36693$as_echo "no" >&6; }
36694 tst_works_poll="no"
36695
36696fi
36697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36698 conftest.$ac_objext conftest.beam conftest.$ac_ext
36699fi
36700
36701 fi
36702 #
36703 if test "$tst_compi_poll" = "yes" &&
36704 test "$tst_works_poll" != "no"; then
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36706$as_echo_n "checking if poll usage allowed... " >&6; }
36707 if test "x$curl_disallow_poll" != "xyes"; then
36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36709$as_echo "yes" >&6; }
36710 tst_allow_poll="yes"
36711 else
36712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36713$as_echo "no" >&6; }
36714 tst_allow_poll="no"
36715 fi
36716 fi
36717 #
36718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36719$as_echo_n "checking if poll might be used... " >&6; }
36720 if test "$tst_links_poll" = "yes" &&
36721 test "$tst_proto_poll" = "yes" &&
36722 test "$tst_compi_poll" = "yes" &&
36723 test "$tst_allow_poll" = "yes" &&
36724 test "$tst_works_poll" != "no"; then
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726$as_echo "yes" >&6; }
36727
36728cat >>confdefs.h <<_ACEOF
36729#define HAVE_POLL 1
36730_ACEOF
36731
36732
36733cat >>confdefs.h <<_ACEOF
36734#define HAVE_POLL_FINE 1
36735_ACEOF
36736
36737 curl_cv_func_poll="yes"
36738 else
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36740$as_echo "no" >&6; }
36741 curl_cv_func_poll="no"
36742 fi
36743
36744
36745 #
36746 tst_links_setsockopt="unknown"
36747 tst_proto_setsockopt="unknown"
36748 tst_compi_setsockopt="unknown"
36749 tst_allow_setsockopt="unknown"
36750 #
36751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36752$as_echo_n "checking if setsockopt can be linked... " >&6; }
36753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36754/* end confdefs.h. */
36755
36756
36757 $curl_includes_winsock2
36758 $curl_includes_sys_socket
36759
36760int main (void)
36761{
36762
36763 if(0 != setsockopt(0, 0, 0, 0, 0))
36764 return 1;
36765
36766 ;
36767 return 0;
36768}
36769
36770_ACEOF
36771if ac_fn_c_try_link "$LINENO"; then :
36772
36773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36774$as_echo "yes" >&6; }
36775 tst_links_setsockopt="yes"
36776
36777else
36778
36779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36780$as_echo "no" >&6; }
36781 tst_links_setsockopt="no"
36782
36783fi
36784rm -f core conftest.err conftest.$ac_objext \
36785 conftest$ac_exeext conftest.$ac_ext
36786 #
36787 if test "$tst_links_setsockopt" = "yes"; then
36788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36789$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36791/* end confdefs.h. */
36792
36793 $curl_includes_winsock2
36794 $curl_includes_sys_socket
36795
36796_ACEOF
36797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36798 $EGREP "setsockopt" >/dev/null 2>&1; then :
36799
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36801$as_echo "yes" >&6; }
36802 tst_proto_setsockopt="yes"
36803
36804else
36805
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36807$as_echo "no" >&6; }
36808 tst_proto_setsockopt="no"
36809
36810fi
36811rm -f conftest*
36812
36813 fi
36814 #
36815 if test "$tst_proto_setsockopt" = "yes"; then
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36817$as_echo_n "checking if setsockopt is compilable... " >&6; }
36818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36819/* end confdefs.h. */
36820
36821
36822 $curl_includes_winsock2
36823 $curl_includes_sys_socket
36824
36825int main (void)
36826{
36827
36828 if(0 != setsockopt(0, 0, 0, 0, 0))
36829 return 1;
36830
36831 ;
36832 return 0;
36833}
36834
36835_ACEOF
36836if ac_fn_c_try_compile "$LINENO"; then :
36837
36838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36839$as_echo "yes" >&6; }
36840 tst_compi_setsockopt="yes"
36841
36842else
36843
36844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36845$as_echo "no" >&6; }
36846 tst_compi_setsockopt="no"
36847
36848fi
36849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36850 fi
36851 #
36852 if test "$tst_compi_setsockopt" = "yes"; then
36853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36854$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36855 if test "x$curl_disallow_setsockopt" != "xyes"; then
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36857$as_echo "yes" >&6; }
36858 tst_allow_setsockopt="yes"
36859 else
36860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36861$as_echo "no" >&6; }
36862 tst_allow_setsockopt="no"
36863 fi
36864 fi
36865 #
36866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36867$as_echo_n "checking if setsockopt might be used... " >&6; }
36868 if test "$tst_links_setsockopt" = "yes" &&
36869 test "$tst_proto_setsockopt" = "yes" &&
36870 test "$tst_compi_setsockopt" = "yes" &&
36871 test "$tst_allow_setsockopt" = "yes"; then
36872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36873$as_echo "yes" >&6; }
36874
36875cat >>confdefs.h <<_ACEOF
36876#define HAVE_SETSOCKOPT 1
36877_ACEOF
36878
36879 curl_cv_func_setsockopt="yes"
36880
36881 #
36882 tst_compi_setsockopt_so_nonblock="unknown"
36883 tst_allow_setsockopt_so_nonblock="unknown"
36884 #
36885 if test "$curl_cv_func_setsockopt" = "yes"; then
36886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36887$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36889/* end confdefs.h. */
36890
36891
36892 $curl_includes_winsock2
36893 $curl_includes_sys_socket
36894
36895int main (void)
36896{
36897
36898 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36899 return 1;
36900
36901 ;
36902 return 0;
36903}
36904
36905_ACEOF
36906if ac_fn_c_try_compile "$LINENO"; then :
36907
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36909$as_echo "yes" >&6; }
36910 tst_compi_setsockopt_so_nonblock="yes"
36911
36912else
36913
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915$as_echo "no" >&6; }
36916 tst_compi_setsockopt_so_nonblock="no"
36917
36918fi
36919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920 fi
36921 #
36922 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36924$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36925 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36927$as_echo "yes" >&6; }
36928 tst_allow_setsockopt_so_nonblock="yes"
36929 else
36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931$as_echo "no" >&6; }
36932 tst_allow_setsockopt_so_nonblock="no"
36933 fi
36934 fi
36935 #
36936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36937$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36938 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36939 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941$as_echo "yes" >&6; }
36942
36943cat >>confdefs.h <<_ACEOF
36944#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36945_ACEOF
36946
36947 curl_cv_func_setsockopt_so_nonblock="yes"
36948 else
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36950$as_echo "no" >&6; }
36951 curl_cv_func_setsockopt_so_nonblock="no"
36952 fi
36953
36954 else
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36956$as_echo "no" >&6; }
36957 curl_cv_func_setsockopt="no"
36958 fi
36959
36960
36961curl_includes_signal="\
36962/* includes start */
36963#ifdef HAVE_SYS_TYPES_H
36964# include <sys/types.h>
36965#endif
36966#ifdef HAVE_SIGNAL_H
36967# include <signal.h>
36968#endif
36969/* includes end */"
36970 for ac_header in sys/types.h signal.h
36971do :
36972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36973ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36974"
36975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36976 cat >>confdefs.h <<_ACEOF
36977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36978_ACEOF
36979
36980fi
36981
36982done
36983
36984
36985
36986 #
36987 tst_links_sigaction="unknown"
36988 tst_proto_sigaction="unknown"
36989 tst_compi_sigaction="unknown"
36990 tst_allow_sigaction="unknown"
36991 #
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36993$as_echo_n "checking if sigaction can be linked... " >&6; }
36994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36995/* end confdefs.h. */
36996
36997
36998#define sigaction innocuous_sigaction
36999#ifdef __STDC__
37000# include <limits.h>
37001#else
37002# include <assert.h>
37003#endif
37004#undef sigaction
37005#ifdef __cplusplus
37006extern "C"
37007#endif
37008char sigaction ();
37009#if defined __stub_sigaction || defined __stub___sigaction
37010choke me
37011#endif
37012
37013int main (void)
37014{
37015return sigaction ();
37016 ;
37017 return 0;
37018}
37019
37020_ACEOF
37021if ac_fn_c_try_link "$LINENO"; then :
37022
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024$as_echo "yes" >&6; }
37025 tst_links_sigaction="yes"
37026
37027else
37028
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030$as_echo "no" >&6; }
37031 tst_links_sigaction="no"
37032
37033fi
37034rm -f core conftest.err conftest.$ac_objext \
37035 conftest$ac_exeext conftest.$ac_ext
37036 #
37037 if test "$tst_links_sigaction" = "yes"; then
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37039$as_echo_n "checking if sigaction is prototyped... " >&6; }
37040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37041/* end confdefs.h. */
37042
37043 $curl_includes_signal
37044
37045_ACEOF
37046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37047 $EGREP "sigaction" >/dev/null 2>&1; then :
37048
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37050$as_echo "yes" >&6; }
37051 tst_proto_sigaction="yes"
37052
37053else
37054
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37056$as_echo "no" >&6; }
37057 tst_proto_sigaction="no"
37058
37059fi
37060rm -f conftest*
37061
37062 fi
37063 #
37064 if test "$tst_proto_sigaction" = "yes"; then
37065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37066$as_echo_n "checking if sigaction is compilable... " >&6; }
37067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068/* end confdefs.h. */
37069
37070
37071 $curl_includes_signal
37072
37073int main (void)
37074{
37075
37076 if(0 != sigaction(0, 0, 0))
37077 return 1;
37078
37079 ;
37080 return 0;
37081}
37082
37083_ACEOF
37084if ac_fn_c_try_compile "$LINENO"; then :
37085
37086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37087$as_echo "yes" >&6; }
37088 tst_compi_sigaction="yes"
37089
37090else
37091
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37093$as_echo "no" >&6; }
37094 tst_compi_sigaction="no"
37095
37096fi
37097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37098 fi
37099 #
37100 if test "$tst_compi_sigaction" = "yes"; then
37101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37102$as_echo_n "checking if sigaction usage allowed... " >&6; }
37103 if test "x$curl_disallow_sigaction" != "xyes"; then
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105$as_echo "yes" >&6; }
37106 tst_allow_sigaction="yes"
37107 else
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37109$as_echo "no" >&6; }
37110 tst_allow_sigaction="no"
37111 fi
37112 fi
37113 #
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37115$as_echo_n "checking if sigaction might be used... " >&6; }
37116 if test "$tst_links_sigaction" = "yes" &&
37117 test "$tst_proto_sigaction" = "yes" &&
37118 test "$tst_compi_sigaction" = "yes" &&
37119 test "$tst_allow_sigaction" = "yes"; then
37120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37121$as_echo "yes" >&6; }
37122
37123cat >>confdefs.h <<_ACEOF
37124#define HAVE_SIGACTION 1
37125_ACEOF
37126
37127 curl_cv_func_sigaction="yes"
37128 else
37129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130$as_echo "no" >&6; }
37131 curl_cv_func_sigaction="no"
37132 fi
37133
37134
37135 #
37136 tst_links_siginterrupt="unknown"
37137 tst_proto_siginterrupt="unknown"
37138 tst_compi_siginterrupt="unknown"
37139 tst_allow_siginterrupt="unknown"
37140 #
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37142$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37144/* end confdefs.h. */
37145
37146
37147#define siginterrupt innocuous_siginterrupt
37148#ifdef __STDC__
37149# include <limits.h>
37150#else
37151# include <assert.h>
37152#endif
37153#undef siginterrupt
37154#ifdef __cplusplus
37155extern "C"
37156#endif
37157char siginterrupt ();
37158#if defined __stub_siginterrupt || defined __stub___siginterrupt
37159choke me
37160#endif
37161
37162int main (void)
37163{
37164return siginterrupt ();
37165 ;
37166 return 0;
37167}
37168
37169_ACEOF
37170if ac_fn_c_try_link "$LINENO"; then :
37171
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37173$as_echo "yes" >&6; }
37174 tst_links_siginterrupt="yes"
37175
37176else
37177
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37179$as_echo "no" >&6; }
37180 tst_links_siginterrupt="no"
37181
37182fi
37183rm -f core conftest.err conftest.$ac_objext \
37184 conftest$ac_exeext conftest.$ac_ext
37185 #
37186 if test "$tst_links_siginterrupt" = "yes"; then
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37188$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37190/* end confdefs.h. */
37191
37192 $curl_includes_signal
37193
37194_ACEOF
37195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37196 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37197
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37199$as_echo "yes" >&6; }
37200 tst_proto_siginterrupt="yes"
37201
37202else
37203
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37205$as_echo "no" >&6; }
37206 tst_proto_siginterrupt="no"
37207
37208fi
37209rm -f conftest*
37210
37211 fi
37212 #
37213 if test "$tst_proto_siginterrupt" = "yes"; then
37214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37215$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217/* end confdefs.h. */
37218
37219
37220 $curl_includes_signal
37221
37222int main (void)
37223{
37224
37225 if(0 != siginterrupt(0, 0))
37226 return 1;
37227
37228 ;
37229 return 0;
37230}
37231
37232_ACEOF
37233if ac_fn_c_try_compile "$LINENO"; then :
37234
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236$as_echo "yes" >&6; }
37237 tst_compi_siginterrupt="yes"
37238
37239else
37240
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37242$as_echo "no" >&6; }
37243 tst_compi_siginterrupt="no"
37244
37245fi
37246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37247 fi
37248 #
37249 if test "$tst_compi_siginterrupt" = "yes"; then
37250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37251$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37252 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254$as_echo "yes" >&6; }
37255 tst_allow_siginterrupt="yes"
37256 else
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258$as_echo "no" >&6; }
37259 tst_allow_siginterrupt="no"
37260 fi
37261 fi
37262 #
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37264$as_echo_n "checking if siginterrupt might be used... " >&6; }
37265 if test "$tst_links_siginterrupt" = "yes" &&
37266 test "$tst_proto_siginterrupt" = "yes" &&
37267 test "$tst_compi_siginterrupt" = "yes" &&
37268 test "$tst_allow_siginterrupt" = "yes"; then
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37270$as_echo "yes" >&6; }
37271
37272cat >>confdefs.h <<_ACEOF
37273#define HAVE_SIGINTERRUPT 1
37274_ACEOF
37275
37276 curl_cv_func_siginterrupt="yes"
37277 else
37278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37279$as_echo "no" >&6; }
37280 curl_cv_func_siginterrupt="no"
37281 fi
37282
37283
37284 #
37285 tst_links_signal="unknown"
37286 tst_proto_signal="unknown"
37287 tst_compi_signal="unknown"
37288 tst_allow_signal="unknown"
37289 #
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37291$as_echo_n "checking if signal can be linked... " >&6; }
37292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37293/* end confdefs.h. */
37294
37295
37296#define signal innocuous_signal
37297#ifdef __STDC__
37298# include <limits.h>
37299#else
37300# include <assert.h>
37301#endif
37302#undef signal
37303#ifdef __cplusplus
37304extern "C"
37305#endif
37306char signal ();
37307#if defined __stub_signal || defined __stub___signal
37308choke me
37309#endif
37310
37311int main (void)
37312{
37313return signal ();
37314 ;
37315 return 0;
37316}
37317
37318_ACEOF
37319if ac_fn_c_try_link "$LINENO"; then :
37320
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37322$as_echo "yes" >&6; }
37323 tst_links_signal="yes"
37324
37325else
37326
37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37328$as_echo "no" >&6; }
37329 tst_links_signal="no"
37330
37331fi
37332rm -f core conftest.err conftest.$ac_objext \
37333 conftest$ac_exeext conftest.$ac_ext
37334 #
37335 if test "$tst_links_signal" = "yes"; then
37336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37337$as_echo_n "checking if signal is prototyped... " >&6; }
37338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37339/* end confdefs.h. */
37340
37341 $curl_includes_signal
37342
37343_ACEOF
37344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37345 $EGREP "signal" >/dev/null 2>&1; then :
37346
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37348$as_echo "yes" >&6; }
37349 tst_proto_signal="yes"
37350
37351else
37352
37353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37354$as_echo "no" >&6; }
37355 tst_proto_signal="no"
37356
37357fi
37358rm -f conftest*
37359
37360 fi
37361 #
37362 if test "$tst_proto_signal" = "yes"; then
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37364$as_echo_n "checking if signal is compilable... " >&6; }
37365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37366/* end confdefs.h. */
37367
37368
37369 $curl_includes_signal
37370
37371int main (void)
37372{
37373
37374 if(0 != signal(0, 0))
37375 return 1;
37376
37377 ;
37378 return 0;
37379}
37380
37381_ACEOF
37382if ac_fn_c_try_compile "$LINENO"; then :
37383
37384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37385$as_echo "yes" >&6; }
37386 tst_compi_signal="yes"
37387
37388else
37389
37390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37391$as_echo "no" >&6; }
37392 tst_compi_signal="no"
37393
37394fi
37395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37396 fi
37397 #
37398 if test "$tst_compi_signal" = "yes"; then
37399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37400$as_echo_n "checking if signal usage allowed... " >&6; }
37401 if test "x$curl_disallow_signal" != "xyes"; then
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37403$as_echo "yes" >&6; }
37404 tst_allow_signal="yes"
37405 else
37406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37407$as_echo "no" >&6; }
37408 tst_allow_signal="no"
37409 fi
37410 fi
37411 #
37412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37413$as_echo_n "checking if signal might be used... " >&6; }
37414 if test "$tst_links_signal" = "yes" &&
37415 test "$tst_proto_signal" = "yes" &&
37416 test "$tst_compi_signal" = "yes" &&
37417 test "$tst_allow_signal" = "yes"; then
37418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37419$as_echo "yes" >&6; }
37420
37421cat >>confdefs.h <<_ACEOF
37422#define HAVE_SIGNAL 1
37423_ACEOF
37424
37425 curl_cv_func_signal="yes"
37426 else
37427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37428$as_echo "no" >&6; }
37429 curl_cv_func_signal="no"
37430 fi
37431
37432
37433curl_includes_setjmp="\
37434/* includes start */
37435#ifdef HAVE_SYS_TYPES_H
37436# include <sys/types.h>
37437#endif
37438#ifdef HAVE_SETJMP_H
37439# include <setjmp.h>
37440#endif
37441/* includes end */"
37442 for ac_header in sys/types.h setjmp.h
37443do :
37444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37446"
37447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37448 cat >>confdefs.h <<_ACEOF
37449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37450_ACEOF
37451
37452fi
37453
37454done
37455
37456
37457
37458 #
37459 tst_links_sigsetjmp="unknown"
37460 tst_macro_sigsetjmp="unknown"
37461 tst_proto_sigsetjmp="unknown"
37462 tst_compi_sigsetjmp="unknown"
37463 tst_allow_sigsetjmp="unknown"
37464 #
37465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37466$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37468/* end confdefs.h. */
37469
37470
37471#define sigsetjmp innocuous_sigsetjmp
37472#ifdef __STDC__
37473# include <limits.h>
37474#else
37475# include <assert.h>
37476#endif
37477#undef sigsetjmp
37478#ifdef __cplusplus
37479extern "C"
37480#endif
37481char sigsetjmp ();
37482#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37483choke me
37484#endif
37485
37486int main (void)
37487{
37488return sigsetjmp ();
37489 ;
37490 return 0;
37491}
37492
37493_ACEOF
37494if ac_fn_c_try_link "$LINENO"; then :
37495
37496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37497$as_echo "yes" >&6; }
37498 tst_links_sigsetjmp="yes"
37499
37500else
37501
37502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37503$as_echo "no" >&6; }
37504 tst_links_sigsetjmp="no"
37505
37506fi
37507rm -f core conftest.err conftest.$ac_objext \
37508 conftest$ac_exeext conftest.$ac_ext
37509 #
37510 if test "$tst_links_sigsetjmp" = "no"; then
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37512$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37514/* end confdefs.h. */
37515
37516
37517 $curl_includes_setjmp
37518
37519int main (void)
37520{
37521
37522 sigjmp_buf env;
37523 if(0 != sigsetjmp(env, 0))
37524 return 1;
37525
37526 ;
37527 return 0;
37528}
37529
37530_ACEOF
37531if ac_fn_c_try_link "$LINENO"; then :
37532
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37534$as_echo "yes" >&6; }
37535 tst_macro_sigsetjmp="yes"
37536
37537else
37538
37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37540$as_echo "no" >&6; }
37541 tst_macro_sigsetjmp="no"
37542
37543fi
37544rm -f core conftest.err conftest.$ac_objext \
37545 conftest$ac_exeext conftest.$ac_ext
37546 fi
37547 #
37548 if test "$tst_links_sigsetjmp" = "yes"; then
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37550$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552/* end confdefs.h. */
37553
37554 $curl_includes_setjmp
37555
37556_ACEOF
37557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37558 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37559
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37561$as_echo "yes" >&6; }
37562 tst_proto_sigsetjmp="yes"
37563
37564else
37565
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37567$as_echo "no" >&6; }
37568 tst_proto_sigsetjmp="no"
37569
37570fi
37571rm -f conftest*
37572
37573 fi
37574 #
37575 if test "$tst_proto_sigsetjmp" = "yes" ||
37576 test "$tst_macro_sigsetjmp" = "yes"; then
37577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37578$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37580/* end confdefs.h. */
37581
37582
37583 $curl_includes_setjmp
37584
37585int main (void)
37586{
37587
37588 sigjmp_buf env;
37589 if(0 != sigsetjmp(env, 0))
37590 return 1;
37591
37592 ;
37593 return 0;
37594}
37595
37596_ACEOF
37597if ac_fn_c_try_compile "$LINENO"; then :
37598
37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37600$as_echo "yes" >&6; }
37601 tst_compi_sigsetjmp="yes"
37602
37603else
37604
37605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37606$as_echo "no" >&6; }
37607 tst_compi_sigsetjmp="no"
37608
37609fi
37610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37611 fi
37612 #
37613 if test "$tst_compi_sigsetjmp" = "yes"; then
37614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37615$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37616 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37618$as_echo "yes" >&6; }
37619 tst_allow_sigsetjmp="yes"
37620 else
37621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622$as_echo "no" >&6; }
37623 tst_allow_sigsetjmp="no"
37624 fi
37625 fi
37626 #
37627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37628$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37629 if (test "$tst_proto_sigsetjmp" = "yes" ||
37630 test "$tst_macro_sigsetjmp" = "yes") &&
37631 test "$tst_compi_sigsetjmp" = "yes" &&
37632 test "$tst_allow_sigsetjmp" = "yes"; then
37633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37634$as_echo "yes" >&6; }
37635
37636cat >>confdefs.h <<_ACEOF
37637#define HAVE_SIGSETJMP 1
37638_ACEOF
37639
37640 curl_cv_func_sigsetjmp="yes"
37641 else
37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37643$as_echo "no" >&6; }
37644 curl_cv_func_sigsetjmp="no"
37645 fi
37646
37647
37648 #
37649 tst_links_socket="unknown"
37650 tst_proto_socket="unknown"
37651 tst_compi_socket="unknown"
37652 tst_allow_socket="unknown"
37653 #
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37655$as_echo_n "checking if socket can be linked... " >&6; }
37656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37657/* end confdefs.h. */
37658
37659
37660 $curl_includes_winsock2
37661 $curl_includes_sys_socket
37662 $curl_includes_socket
37663
37664int main (void)
37665{
37666
37667 if(0 != socket(0, 0, 0))
37668 return 1;
37669
37670 ;
37671 return 0;
37672}
37673
37674_ACEOF
37675if ac_fn_c_try_link "$LINENO"; then :
37676
37677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678$as_echo "yes" >&6; }
37679 tst_links_socket="yes"
37680
37681else
37682
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684$as_echo "no" >&6; }
37685 tst_links_socket="no"
37686
37687fi
37688rm -f core conftest.err conftest.$ac_objext \
37689 conftest$ac_exeext conftest.$ac_ext
37690 #
37691 if test "$tst_links_socket" = "yes"; then
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37693$as_echo_n "checking if socket is prototyped... " >&6; }
37694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37695/* end confdefs.h. */
37696
37697 $curl_includes_winsock2
37698 $curl_includes_sys_socket
37699 $curl_includes_socket
37700
37701_ACEOF
37702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37703 $EGREP "socket" >/dev/null 2>&1; then :
37704
37705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37706$as_echo "yes" >&6; }
37707 tst_proto_socket="yes"
37708
37709else
37710
37711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37712$as_echo "no" >&6; }
37713 tst_proto_socket="no"
37714
37715fi
37716rm -f conftest*
37717
37718 fi
37719 #
37720 if test "$tst_proto_socket" = "yes"; then
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37722$as_echo_n "checking if socket is compilable... " >&6; }
37723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37724/* end confdefs.h. */
37725
37726
37727 $curl_includes_winsock2
37728 $curl_includes_sys_socket
37729 $curl_includes_socket
37730
37731int main (void)
37732{
37733
37734 if(0 != socket(0, 0, 0))
37735 return 1;
37736
37737 ;
37738 return 0;
37739}
37740
37741_ACEOF
37742if ac_fn_c_try_compile "$LINENO"; then :
37743
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37745$as_echo "yes" >&6; }
37746 tst_compi_socket="yes"
37747
37748else
37749
37750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37751$as_echo "no" >&6; }
37752 tst_compi_socket="no"
37753
37754fi
37755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37756 fi
37757 #
37758 if test "$tst_compi_socket" = "yes"; then
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37760$as_echo_n "checking if socket usage allowed... " >&6; }
37761 if test "x$curl_disallow_socket" != "xyes"; then
37762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37763$as_echo "yes" >&6; }
37764 tst_allow_socket="yes"
37765 else
37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37767$as_echo "no" >&6; }
37768 tst_allow_socket="no"
37769 fi
37770 fi
37771 #
37772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37773$as_echo_n "checking if socket might be used... " >&6; }
37774 if test "$tst_links_socket" = "yes" &&
37775 test "$tst_proto_socket" = "yes" &&
37776 test "$tst_compi_socket" = "yes" &&
37777 test "$tst_allow_socket" = "yes"; then
37778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37779$as_echo "yes" >&6; }
37780
37781cat >>confdefs.h <<_ACEOF
37782#define HAVE_SOCKET 1
37783_ACEOF
37784
37785 curl_cv_func_socket="yes"
37786 else
37787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788$as_echo "no" >&6; }
37789 curl_cv_func_socket="no"
37790 fi
37791
37792
37793 #
37794 tst_links_socketpair="unknown"
37795 tst_proto_socketpair="unknown"
37796 tst_compi_socketpair="unknown"
37797 tst_allow_socketpair="unknown"
37798 #
37799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37800$as_echo_n "checking if socketpair can be linked... " >&6; }
37801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37802/* end confdefs.h. */
37803
37804
37805#define socketpair innocuous_socketpair
37806#ifdef __STDC__
37807# include <limits.h>
37808#else
37809# include <assert.h>
37810#endif
37811#undef socketpair
37812#ifdef __cplusplus
37813extern "C"
37814#endif
37815char socketpair ();
37816#if defined __stub_socketpair || defined __stub___socketpair
37817choke me
37818#endif
37819
37820int main (void)
37821{
37822return socketpair ();
37823 ;
37824 return 0;
37825}
37826
37827_ACEOF
37828if ac_fn_c_try_link "$LINENO"; then :
37829
37830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37831$as_echo "yes" >&6; }
37832 tst_links_socketpair="yes"
37833
37834else
37835
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37837$as_echo "no" >&6; }
37838 tst_links_socketpair="no"
37839
37840fi
37841rm -f core conftest.err conftest.$ac_objext \
37842 conftest$ac_exeext conftest.$ac_ext
37843 #
37844 if test "$tst_links_socketpair" = "yes"; then
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37846$as_echo_n "checking if socketpair is prototyped... " >&6; }
37847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37848/* end confdefs.h. */
37849
37850 $curl_includes_sys_socket
37851 $curl_includes_socket
37852
37853_ACEOF
37854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37855 $EGREP "socketpair" >/dev/null 2>&1; then :
37856
37857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37858$as_echo "yes" >&6; }
37859 tst_proto_socketpair="yes"
37860
37861else
37862
37863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864$as_echo "no" >&6; }
37865 tst_proto_socketpair="no"
37866
37867fi
37868rm -f conftest*
37869
37870 fi
37871 #
37872 if test "$tst_proto_socketpair" = "yes"; then
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37874$as_echo_n "checking if socketpair is compilable... " >&6; }
37875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37876/* end confdefs.h. */
37877
37878
37879 $curl_includes_sys_socket
37880 $curl_includes_socket
37881
37882int main (void)
37883{
37884
37885 int sv[2];
37886 if(0 != socketpair(0, 0, 0, sv))
37887 return 1;
37888
37889 ;
37890 return 0;
37891}
37892
37893_ACEOF
37894if ac_fn_c_try_compile "$LINENO"; then :
37895
37896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37897$as_echo "yes" >&6; }
37898 tst_compi_socketpair="yes"
37899
37900else
37901
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37903$as_echo "no" >&6; }
37904 tst_compi_socketpair="no"
37905
37906fi
37907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37908 fi
37909 #
37910 if test "$tst_compi_socketpair" = "yes"; then
37911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37912$as_echo_n "checking if socketpair usage allowed... " >&6; }
37913 if test "x$curl_disallow_socketpair" != "xyes"; then
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37915$as_echo "yes" >&6; }
37916 tst_allow_socketpair="yes"
37917 else
37918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919$as_echo "no" >&6; }
37920 tst_allow_socketpair="no"
37921 fi
37922 fi
37923 #
37924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37925$as_echo_n "checking if socketpair might be used... " >&6; }
37926 if test "$tst_links_socketpair" = "yes" &&
37927 test "$tst_proto_socketpair" = "yes" &&
37928 test "$tst_compi_socketpair" = "yes" &&
37929 test "$tst_allow_socketpair" = "yes"; then
37930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37931$as_echo "yes" >&6; }
37932
37933cat >>confdefs.h <<_ACEOF
37934#define HAVE_SOCKETPAIR 1
37935_ACEOF
37936
37937 curl_cv_func_socketpair="yes"
37938 else
37939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940$as_echo "no" >&6; }
37941 curl_cv_func_socketpair="no"
37942 fi
37943
37944
37945 #
37946 tst_links_strcasecmp="unknown"
37947 tst_proto_strcasecmp="unknown"
37948 tst_compi_strcasecmp="unknown"
37949 tst_allow_strcasecmp="unknown"
37950 #
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37952$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37954/* end confdefs.h. */
37955
37956
37957#define strcasecmp innocuous_strcasecmp
37958#ifdef __STDC__
37959# include <limits.h>
37960#else
37961# include <assert.h>
37962#endif
37963#undef strcasecmp
37964#ifdef __cplusplus
37965extern "C"
37966#endif
37967char strcasecmp ();
37968#if defined __stub_strcasecmp || defined __stub___strcasecmp
37969choke me
37970#endif
37971
37972int main (void)
37973{
37974return strcasecmp ();
37975 ;
37976 return 0;
37977}
37978
37979_ACEOF
37980if ac_fn_c_try_link "$LINENO"; then :
37981
37982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37983$as_echo "yes" >&6; }
37984 tst_links_strcasecmp="yes"
37985
37986else
37987
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37989$as_echo "no" >&6; }
37990 tst_links_strcasecmp="no"
37991
37992fi
37993rm -f core conftest.err conftest.$ac_objext \
37994 conftest$ac_exeext conftest.$ac_ext
37995 #
37996 if test "$tst_links_strcasecmp" = "yes"; then
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37998$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38000/* end confdefs.h. */
38001
38002 $curl_includes_string
38003
38004_ACEOF
38005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38006 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38007
38008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38009$as_echo "yes" >&6; }
38010 tst_proto_strcasecmp="yes"
38011
38012else
38013
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38015$as_echo "no" >&6; }
38016 tst_proto_strcasecmp="no"
38017
38018fi
38019rm -f conftest*
38020
38021 fi
38022 #
38023 if test "$tst_proto_strcasecmp" = "yes"; then
38024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38025$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38027/* end confdefs.h. */
38028
38029
38030 $curl_includes_string
38031
38032int main (void)
38033{
38034
38035 if(0 != strcasecmp(0, 0))
38036 return 1;
38037
38038 ;
38039 return 0;
38040}
38041
38042_ACEOF
38043if ac_fn_c_try_compile "$LINENO"; then :
38044
38045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38046$as_echo "yes" >&6; }
38047 tst_compi_strcasecmp="yes"
38048
38049else
38050
38051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38052$as_echo "no" >&6; }
38053 tst_compi_strcasecmp="no"
38054
38055fi
38056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38057 fi
38058 #
38059 if test "$tst_compi_strcasecmp" = "yes"; then
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38061$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38062 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064$as_echo "yes" >&6; }
38065 tst_allow_strcasecmp="yes"
38066 else
38067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38068$as_echo "no" >&6; }
38069 tst_allow_strcasecmp="no"
38070 fi
38071 fi
38072 #
38073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38074$as_echo_n "checking if strcasecmp might be used... " >&6; }
38075 if test "$tst_links_strcasecmp" = "yes" &&
38076 test "$tst_proto_strcasecmp" = "yes" &&
38077 test "$tst_compi_strcasecmp" = "yes" &&
38078 test "$tst_allow_strcasecmp" = "yes"; then
38079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38080$as_echo "yes" >&6; }
38081
38082cat >>confdefs.h <<_ACEOF
38083#define HAVE_STRCASECMP 1
38084_ACEOF
38085
38086 curl_cv_func_strcasecmp="yes"
38087 else
38088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38089$as_echo "no" >&6; }
38090 curl_cv_func_strcasecmp="no"
38091 fi
38092
38093
38094 #
38095 tst_links_strcmpi="unknown"
38096 tst_proto_strcmpi="unknown"
38097 tst_compi_strcmpi="unknown"
38098 tst_allow_strcmpi="unknown"
38099 #
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38101$as_echo_n "checking if strcmpi can be linked... " >&6; }
38102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38103/* end confdefs.h. */
38104
38105
38106#define strcmpi innocuous_strcmpi
38107#ifdef __STDC__
38108# include <limits.h>
38109#else
38110# include <assert.h>
38111#endif
38112#undef strcmpi
38113#ifdef __cplusplus
38114extern "C"
38115#endif
38116char strcmpi ();
38117#if defined __stub_strcmpi || defined __stub___strcmpi
38118choke me
38119#endif
38120
38121int main (void)
38122{
38123return strcmpi ();
38124 ;
38125 return 0;
38126}
38127
38128_ACEOF
38129if ac_fn_c_try_link "$LINENO"; then :
38130
38131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38132$as_echo "yes" >&6; }
38133 tst_links_strcmpi="yes"
38134
38135else
38136
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38138$as_echo "no" >&6; }
38139 tst_links_strcmpi="no"
38140
38141fi
38142rm -f core conftest.err conftest.$ac_objext \
38143 conftest$ac_exeext conftest.$ac_ext
38144 #
38145 if test "$tst_links_strcmpi" = "yes"; then
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38147$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38149/* end confdefs.h. */
38150
38151 $curl_includes_string
38152
38153_ACEOF
38154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38155 $EGREP "strcmpi" >/dev/null 2>&1; then :
38156
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38158$as_echo "yes" >&6; }
38159 tst_proto_strcmpi="yes"
38160
38161else
38162
38163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38164$as_echo "no" >&6; }
38165 tst_proto_strcmpi="no"
38166
38167fi
38168rm -f conftest*
38169
38170 fi
38171 #
38172 if test "$tst_proto_strcmpi" = "yes"; then
38173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38174$as_echo_n "checking if strcmpi is compilable... " >&6; }
38175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38176/* end confdefs.h. */
38177
38178
38179 $curl_includes_string
38180
38181int main (void)
38182{
38183
38184 if(0 != strcmpi(0, 0))
38185 return 1;
38186
38187 ;
38188 return 0;
38189}
38190
38191_ACEOF
38192if ac_fn_c_try_compile "$LINENO"; then :
38193
38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38195$as_echo "yes" >&6; }
38196 tst_compi_strcmpi="yes"
38197
38198else
38199
38200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38201$as_echo "no" >&6; }
38202 tst_compi_strcmpi="no"
38203
38204fi
38205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38206 fi
38207 #
38208 if test "$tst_compi_strcmpi" = "yes"; then
38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38210$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38211 if test "x$curl_disallow_strcmpi" != "xyes"; then
38212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213$as_echo "yes" >&6; }
38214 tst_allow_strcmpi="yes"
38215 else
38216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38217$as_echo "no" >&6; }
38218 tst_allow_strcmpi="no"
38219 fi
38220 fi
38221 #
38222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38223$as_echo_n "checking if strcmpi might be used... " >&6; }
38224 if test "$tst_links_strcmpi" = "yes" &&
38225 test "$tst_proto_strcmpi" = "yes" &&
38226 test "$tst_compi_strcmpi" = "yes" &&
38227 test "$tst_allow_strcmpi" = "yes"; then
38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38229$as_echo "yes" >&6; }
38230
38231cat >>confdefs.h <<_ACEOF
38232#define HAVE_STRCMPI 1
38233_ACEOF
38234
38235 curl_cv_func_strcmpi="yes"
38236 else
38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238$as_echo "no" >&6; }
38239 curl_cv_func_strcmpi="no"
38240 fi
38241
38242
38243 #
38244 tst_links_strdup="unknown"
38245 tst_proto_strdup="unknown"
38246 tst_compi_strdup="unknown"
38247 tst_allow_strdup="unknown"
38248 #
38249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38250$as_echo_n "checking if strdup can be linked... " >&6; }
38251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38252/* end confdefs.h. */
38253
38254
38255#define strdup innocuous_strdup
38256#ifdef __STDC__
38257# include <limits.h>
38258#else
38259# include <assert.h>
38260#endif
38261#undef strdup
38262#ifdef __cplusplus
38263extern "C"
38264#endif
38265char strdup ();
38266#if defined __stub_strdup || defined __stub___strdup
38267choke me
38268#endif
38269
38270int main (void)
38271{
38272return strdup ();
38273 ;
38274 return 0;
38275}
38276
38277_ACEOF
38278if ac_fn_c_try_link "$LINENO"; then :
38279
38280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38281$as_echo "yes" >&6; }
38282 tst_links_strdup="yes"
38283
38284else
38285
38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287$as_echo "no" >&6; }
38288 tst_links_strdup="no"
38289
38290fi
38291rm -f core conftest.err conftest.$ac_objext \
38292 conftest$ac_exeext conftest.$ac_ext
38293 #
38294 if test "$tst_links_strdup" = "yes"; then
38295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38296$as_echo_n "checking if strdup is prototyped... " >&6; }
38297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38298/* end confdefs.h. */
38299
38300 $curl_includes_string
38301
38302_ACEOF
38303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38304 $EGREP "strdup" >/dev/null 2>&1; then :
38305
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38307$as_echo "yes" >&6; }
38308 tst_proto_strdup="yes"
38309
38310else
38311
38312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38313$as_echo "no" >&6; }
38314 tst_proto_strdup="no"
38315
38316fi
38317rm -f conftest*
38318
38319 fi
38320 #
38321 if test "$tst_proto_strdup" = "yes"; then
38322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38323$as_echo_n "checking if strdup is compilable... " >&6; }
38324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38325/* end confdefs.h. */
38326
38327
38328 $curl_includes_string
38329
38330int main (void)
38331{
38332
38333 if(0 != strdup(0))
38334 return 1;
38335
38336 ;
38337 return 0;
38338}
38339
38340_ACEOF
38341if ac_fn_c_try_compile "$LINENO"; then :
38342
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38344$as_echo "yes" >&6; }
38345 tst_compi_strdup="yes"
38346
38347else
38348
38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38350$as_echo "no" >&6; }
38351 tst_compi_strdup="no"
38352
38353fi
38354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38355 fi
38356 #
38357 if test "$tst_compi_strdup" = "yes"; then
38358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38359$as_echo_n "checking if strdup usage allowed... " >&6; }
38360 if test "x$curl_disallow_strdup" != "xyes"; then
38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38362$as_echo "yes" >&6; }
38363 tst_allow_strdup="yes"
38364 else
38365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38366$as_echo "no" >&6; }
38367 tst_allow_strdup="no"
38368 fi
38369 fi
38370 #
38371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38372$as_echo_n "checking if strdup might be used... " >&6; }
38373 if test "$tst_links_strdup" = "yes" &&
38374 test "$tst_proto_strdup" = "yes" &&
38375 test "$tst_compi_strdup" = "yes" &&
38376 test "$tst_allow_strdup" = "yes"; then
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378$as_echo "yes" >&6; }
38379
38380cat >>confdefs.h <<_ACEOF
38381#define HAVE_STRDUP 1
38382_ACEOF
38383
38384 curl_cv_func_strdup="yes"
38385 else
38386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38387$as_echo "no" >&6; }
38388 curl_cv_func_strdup="no"
38389 fi
38390
38391
38392 #
38393 tst_links_strerror_r="unknown"
38394 tst_proto_strerror_r="unknown"
38395 tst_compi_strerror_r="unknown"
38396 tst_glibc_strerror_r="unknown"
38397 tst_posix_strerror_r="unknown"
38398 tst_allow_strerror_r="unknown"
38399 tst_works_glibc_strerror_r="unknown"
38400 tst_works_posix_strerror_r="unknown"
38401 tst_glibc_strerror_r_type_arg3="unknown"
38402 tst_posix_strerror_r_type_arg3="unknown"
38403 #
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38405$as_echo_n "checking if strerror_r can be linked... " >&6; }
38406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38407/* end confdefs.h. */
38408
38409
38410#define strerror_r innocuous_strerror_r
38411#ifdef __STDC__
38412# include <limits.h>
38413#else
38414# include <assert.h>
38415#endif
38416#undef strerror_r
38417#ifdef __cplusplus
38418extern "C"
38419#endif
38420char strerror_r ();
38421#if defined __stub_strerror_r || defined __stub___strerror_r
38422choke me
38423#endif
38424
38425int main (void)
38426{
38427return strerror_r ();
38428 ;
38429 return 0;
38430}
38431
38432_ACEOF
38433if ac_fn_c_try_link "$LINENO"; then :
38434
38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38436$as_echo "yes" >&6; }
38437 tst_links_strerror_r="yes"
38438
38439else
38440
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38442$as_echo "no" >&6; }
38443 tst_links_strerror_r="no"
38444
38445fi
38446rm -f core conftest.err conftest.$ac_objext \
38447 conftest$ac_exeext conftest.$ac_ext
38448 #
38449 if test "$tst_links_strerror_r" = "yes"; then
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38451$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453/* end confdefs.h. */
38454
38455 $curl_includes_string
38456
38457_ACEOF
38458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38459 $EGREP "strerror_r" >/dev/null 2>&1; then :
38460
38461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38462$as_echo "yes" >&6; }
38463 tst_proto_strerror_r="yes"
38464
38465else
38466
38467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38468$as_echo "no" >&6; }
38469 tst_proto_strerror_r="no"
38470
38471fi
38472rm -f conftest*
38473
38474 fi
38475 #
38476 if test "$tst_proto_strerror_r" = "yes"; then
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38478$as_echo_n "checking if strerror_r is compilable... " >&6; }
38479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38480/* end confdefs.h. */
38481
38482
38483 $curl_includes_string
38484
38485int main (void)
38486{
38487
38488 if(0 != strerror_r(0, 0, 0))
38489 return 1;
38490
38491 ;
38492 return 0;
38493}
38494
38495_ACEOF
38496if ac_fn_c_try_compile "$LINENO"; then :
38497
38498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499$as_echo "yes" >&6; }
38500 tst_compi_strerror_r="yes"
38501
38502else
38503
38504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505$as_echo "no" >&6; }
38506 tst_compi_strerror_r="no"
38507
38508fi
38509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38510 fi
38511 #
38512 if test "$tst_compi_strerror_r" = "yes"; then
38513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38514$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38515 tst_glibc_strerror_r_type_arg3="unknown"
38516 for arg3 in 'size_t' 'int' 'unsigned int'; do
38517 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38519/* end confdefs.h. */
38520
38521
38522 $curl_includes_string
38523 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38524
38525int main (void)
38526{
38527
38528 if(0 != strerror_r(0, 0, 0))
38529 return 1;
38530
38531 ;
38532 return 0;
38533}
38534
38535_ACEOF
38536if ac_fn_c_try_compile "$LINENO"; then :
38537
38538 tst_glibc_strerror_r_type_arg3="$arg3"
38539
38540fi
38541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38542 fi
38543 done
38544 case "$tst_glibc_strerror_r_type_arg3" in
38545 unknown)
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38547$as_echo "no" >&6; }
38548 tst_glibc_strerror_r="no"
38549 ;;
38550 *)
38551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38552$as_echo "yes" >&6; }
38553 tst_glibc_strerror_r="yes"
38554 ;;
38555 esac
38556 fi
38557 #
38558 if test "x$cross_compiling" != "xyes" &&
38559 test "$tst_glibc_strerror_r" = "yes"; then
38560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38561$as_echo_n "checking if strerror_r seems to work... " >&6; }
38562 if test "$cross_compiling" = yes; then :
38563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38565as_fn_error $? "cannot run test program while cross compiling
38566See \`config.log' for more details" "$LINENO" 5; }
38567else
38568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38569/* end confdefs.h. */
38570
38571
38572 $curl_includes_stdlib
38573 $curl_includes_string
38574# include <errno.h>
38575
38576int main (void)
38577{
38578
38579 char buffer[1024];
38580 char *string = 0;
38581 buffer[0] = '\0';
38582 string = strerror_r(EACCES, buffer, sizeof(buffer));
38583 if(!string)
38584 exit(1); /* fail */
38585 if(!string[0])
38586 exit(1); /* fail */
38587 else
38588 exit(0);
38589
38590 ;
38591 return 0;
38592}
38593
38594_ACEOF
38595if ac_fn_c_try_run "$LINENO"; then :
38596
38597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38598$as_echo "yes" >&6; }
38599 tst_works_glibc_strerror_r="yes"
38600
38601else
38602
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38604$as_echo "no" >&6; }
38605 tst_works_glibc_strerror_r="no"
38606
38607fi
38608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38609 conftest.$ac_objext conftest.beam conftest.$ac_ext
38610fi
38611
38612 fi
38613 #
38614 if test "$tst_compi_strerror_r" = "yes" &&
38615 test "$tst_works_glibc_strerror_r" != "yes"; then
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38617$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38618 tst_posix_strerror_r_type_arg3="unknown"
38619 for arg3 in 'size_t' 'int' 'unsigned int'; do
38620 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38622/* end confdefs.h. */
38623
38624
38625 $curl_includes_string
38626 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38627
38628int main (void)
38629{
38630
38631 if(0 != strerror_r(0, 0, 0))
38632 return 1;
38633
38634 ;
38635 return 0;
38636}
38637
38638_ACEOF
38639if ac_fn_c_try_compile "$LINENO"; then :
38640
38641 tst_posix_strerror_r_type_arg3="$arg3"
38642
38643fi
38644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38645 fi
38646 done
38647 case "$tst_posix_strerror_r_type_arg3" in
38648 unknown)
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38650$as_echo "no" >&6; }
38651 tst_posix_strerror_r="no"
38652 ;;
38653 *)
38654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38655$as_echo "yes" >&6; }
38656 tst_posix_strerror_r="yes"
38657 ;;
38658 esac
38659 fi
38660 #
38661 if test "x$cross_compiling" != "xyes" &&
38662 test "$tst_posix_strerror_r" = "yes"; then
38663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38664$as_echo_n "checking if strerror_r seems to work... " >&6; }
38665 if test "$cross_compiling" = yes; then :
38666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38668as_fn_error $? "cannot run test program while cross compiling
38669See \`config.log' for more details" "$LINENO" 5; }
38670else
38671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38672/* end confdefs.h. */
38673
38674
38675 $curl_includes_stdlib
38676 $curl_includes_string
38677# include <errno.h>
38678
38679int main (void)
38680{
38681
38682 char buffer[1024];
38683 int error = 1;
38684 buffer[0] = '\0';
38685 error = strerror_r(EACCES, buffer, sizeof(buffer));
38686 if(error)
38687 exit(1); /* fail */
38688 if(buffer[0] == '\0')
38689 exit(1); /* fail */
38690 else
38691 exit(0);
38692
38693 ;
38694 return 0;
38695}
38696
38697_ACEOF
38698if ac_fn_c_try_run "$LINENO"; then :
38699
38700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38701$as_echo "yes" >&6; }
38702 tst_works_posix_strerror_r="yes"
38703
38704else
38705
38706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38707$as_echo "no" >&6; }
38708 tst_works_posix_strerror_r="no"
38709
38710fi
38711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38712 conftest.$ac_objext conftest.beam conftest.$ac_ext
38713fi
38714
38715 fi
38716 #
38717 if test "$tst_works_glibc_strerror_r" = "yes"; then
38718 tst_posix_strerror_r="no"
38719 fi
38720 if test "$tst_works_posix_strerror_r" = "yes"; then
38721 tst_glibc_strerror_r="no"
38722 fi
38723 if test "$tst_glibc_strerror_r" = "yes" &&
38724 test "$tst_works_glibc_strerror_r" != "no" &&
38725 test "$tst_posix_strerror_r" != "yes"; then
38726 tst_allow_strerror_r="check"
38727 fi
38728 if test "$tst_posix_strerror_r" = "yes" &&
38729 test "$tst_works_posix_strerror_r" != "no" &&
38730 test "$tst_glibc_strerror_r" != "yes"; then
38731 tst_allow_strerror_r="check"
38732 fi
38733 if test "$tst_allow_strerror_r" = "check"; then
38734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38735$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38736 if test "x$curl_disallow_strerror_r" != "xyes"; then
38737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38738$as_echo "yes" >&6; }
38739 tst_allow_strerror_r="yes"
38740 else
38741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38742$as_echo "no" >&6; }
38743 tst_allow_strerror_r="no"
38744 fi
38745 fi
38746 #
38747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38748$as_echo_n "checking if strerror_r might be used... " >&6; }
38749 if test "$tst_links_strerror_r" = "yes" &&
38750 test "$tst_proto_strerror_r" = "yes" &&
38751 test "$tst_compi_strerror_r" = "yes" &&
38752 test "$tst_allow_strerror_r" = "yes"; then
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38754$as_echo "yes" >&6; }
38755 if test "$tst_glibc_strerror_r" = "yes"; then
38756
38757cat >>confdefs.h <<_ACEOF
38758#define HAVE_STRERROR_R 1
38759_ACEOF
38760
38761
38762cat >>confdefs.h <<_ACEOF
38763#define HAVE_GLIBC_STRERROR_R 1
38764_ACEOF
38765
38766
38767cat >>confdefs.h <<_ACEOF
38768#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38769_ACEOF
38770
38771 fi
38772 if test "$tst_posix_strerror_r" = "yes"; then
38773
38774cat >>confdefs.h <<_ACEOF
38775#define HAVE_STRERROR_R 1
38776_ACEOF
38777
38778
38779cat >>confdefs.h <<_ACEOF
38780#define HAVE_POSIX_STRERROR_R 1
38781_ACEOF
38782
38783
38784cat >>confdefs.h <<_ACEOF
38785#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38786_ACEOF
38787
38788 fi
38789 curl_cv_func_strerror_r="yes"
38790 else
38791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38792$as_echo "no" >&6; }
38793 curl_cv_func_strerror_r="no"
38794 fi
38795 #
38796 if test "$tst_compi_strerror_r" = "yes" &&
38797 test "$tst_allow_strerror_r" = "unknown"; then
38798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38799$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38800 fi
38801 #
38802
38803
38804 #
38805 tst_links_stricmp="unknown"
38806 tst_proto_stricmp="unknown"
38807 tst_compi_stricmp="unknown"
38808 tst_allow_stricmp="unknown"
38809 #
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38811$as_echo_n "checking if stricmp can be linked... " >&6; }
38812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38813/* end confdefs.h. */
38814
38815
38816#define stricmp innocuous_stricmp
38817#ifdef __STDC__
38818# include <limits.h>
38819#else
38820# include <assert.h>
38821#endif
38822#undef stricmp
38823#ifdef __cplusplus
38824extern "C"
38825#endif
38826char stricmp ();
38827#if defined __stub_stricmp || defined __stub___stricmp
38828choke me
38829#endif
38830
38831int main (void)
38832{
38833return stricmp ();
38834 ;
38835 return 0;
38836}
38837
38838_ACEOF
38839if ac_fn_c_try_link "$LINENO"; then :
38840
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38842$as_echo "yes" >&6; }
38843 tst_links_stricmp="yes"
38844
38845else
38846
38847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38848$as_echo "no" >&6; }
38849 tst_links_stricmp="no"
38850
38851fi
38852rm -f core conftest.err conftest.$ac_objext \
38853 conftest$ac_exeext conftest.$ac_ext
38854 #
38855 if test "$tst_links_stricmp" = "yes"; then
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38857$as_echo_n "checking if stricmp is prototyped... " >&6; }
38858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38859/* end confdefs.h. */
38860
38861 $curl_includes_string
38862
38863_ACEOF
38864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38865 $EGREP "stricmp" >/dev/null 2>&1; then :
38866
38867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38868$as_echo "yes" >&6; }
38869 tst_proto_stricmp="yes"
38870
38871else
38872
38873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38874$as_echo "no" >&6; }
38875 tst_proto_stricmp="no"
38876
38877fi
38878rm -f conftest*
38879
38880 fi
38881 #
38882 if test "$tst_proto_stricmp" = "yes"; then
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38884$as_echo_n "checking if stricmp is compilable... " >&6; }
38885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38886/* end confdefs.h. */
38887
38888
38889 $curl_includes_string
38890
38891int main (void)
38892{
38893
38894 if(0 != stricmp(0, 0))
38895 return 1;
38896
38897 ;
38898 return 0;
38899}
38900
38901_ACEOF
38902if ac_fn_c_try_compile "$LINENO"; then :
38903
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905$as_echo "yes" >&6; }
38906 tst_compi_stricmp="yes"
38907
38908else
38909
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911$as_echo "no" >&6; }
38912 tst_compi_stricmp="no"
38913
38914fi
38915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38916 fi
38917 #
38918 if test "$tst_compi_stricmp" = "yes"; then
38919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38920$as_echo_n "checking if stricmp usage allowed... " >&6; }
38921 if test "x$curl_disallow_stricmp" != "xyes"; then
38922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38923$as_echo "yes" >&6; }
38924 tst_allow_stricmp="yes"
38925 else
38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38927$as_echo "no" >&6; }
38928 tst_allow_stricmp="no"
38929 fi
38930 fi
38931 #
38932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38933$as_echo_n "checking if stricmp might be used... " >&6; }
38934 if test "$tst_links_stricmp" = "yes" &&
38935 test "$tst_proto_stricmp" = "yes" &&
38936 test "$tst_compi_stricmp" = "yes" &&
38937 test "$tst_allow_stricmp" = "yes"; then
38938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38939$as_echo "yes" >&6; }
38940
38941cat >>confdefs.h <<_ACEOF
38942#define HAVE_STRICMP 1
38943_ACEOF
38944
38945 curl_cv_func_stricmp="yes"
38946 else
38947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38948$as_echo "no" >&6; }
38949 curl_cv_func_stricmp="no"
38950 fi
38951
38952
38953 #
38954 tst_links_strncasecmp="unknown"
38955 tst_proto_strncasecmp="unknown"
38956 tst_compi_strncasecmp="unknown"
38957 tst_allow_strncasecmp="unknown"
38958 #
38959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38960$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38962/* end confdefs.h. */
38963
38964
38965#define strncasecmp innocuous_strncasecmp
38966#ifdef __STDC__
38967# include <limits.h>
38968#else
38969# include <assert.h>
38970#endif
38971#undef strncasecmp
38972#ifdef __cplusplus
38973extern "C"
38974#endif
38975char strncasecmp ();
38976#if defined __stub_strncasecmp || defined __stub___strncasecmp
38977choke me
38978#endif
38979
38980int main (void)
38981{
38982return strncasecmp ();
38983 ;
38984 return 0;
38985}
38986
38987_ACEOF
38988if ac_fn_c_try_link "$LINENO"; then :
38989
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991$as_echo "yes" >&6; }
38992 tst_links_strncasecmp="yes"
38993
38994else
38995
38996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38997$as_echo "no" >&6; }
38998 tst_links_strncasecmp="no"
38999
39000fi
39001rm -f core conftest.err conftest.$ac_objext \
39002 conftest$ac_exeext conftest.$ac_ext
39003 #
39004 if test "$tst_links_strncasecmp" = "yes"; then
39005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39006$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39008/* end confdefs.h. */
39009
39010 $curl_includes_string
39011
39012_ACEOF
39013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39014 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39015
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39017$as_echo "yes" >&6; }
39018 tst_proto_strncasecmp="yes"
39019
39020else
39021
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39023$as_echo "no" >&6; }
39024 tst_proto_strncasecmp="no"
39025
39026fi
39027rm -f conftest*
39028
39029 fi
39030 #
39031 if test "$tst_proto_strncasecmp" = "yes"; then
39032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39033$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39035/* end confdefs.h. */
39036
39037
39038 $curl_includes_string
39039
39040int main (void)
39041{
39042
39043 if(0 != strncasecmp(0, 0, 0))
39044 return 1;
39045
39046 ;
39047 return 0;
39048}
39049
39050_ACEOF
39051if ac_fn_c_try_compile "$LINENO"; then :
39052
39053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054$as_echo "yes" >&6; }
39055 tst_compi_strncasecmp="yes"
39056
39057else
39058
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060$as_echo "no" >&6; }
39061 tst_compi_strncasecmp="no"
39062
39063fi
39064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39065 fi
39066 #
39067 if test "$tst_compi_strncasecmp" = "yes"; then
39068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39069$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39070 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39072$as_echo "yes" >&6; }
39073 tst_allow_strncasecmp="yes"
39074 else
39075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39076$as_echo "no" >&6; }
39077 tst_allow_strncasecmp="no"
39078 fi
39079 fi
39080 #
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39082$as_echo_n "checking if strncasecmp might be used... " >&6; }
39083 if test "$tst_links_strncasecmp" = "yes" &&
39084 test "$tst_proto_strncasecmp" = "yes" &&
39085 test "$tst_compi_strncasecmp" = "yes" &&
39086 test "$tst_allow_strncasecmp" = "yes"; then
39087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39088$as_echo "yes" >&6; }
39089
39090cat >>confdefs.h <<_ACEOF
39091#define HAVE_STRNCASECMP 1
39092_ACEOF
39093
39094 curl_cv_func_strncasecmp="yes"
39095 else
39096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39097$as_echo "no" >&6; }
39098 curl_cv_func_strncasecmp="no"
39099 fi
39100
39101
39102 #
39103 tst_links_strncmpi="unknown"
39104 tst_proto_strncmpi="unknown"
39105 tst_compi_strncmpi="unknown"
39106 tst_allow_strncmpi="unknown"
39107 #
39108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39109$as_echo_n "checking if strncmpi can be linked... " >&6; }
39110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39111/* end confdefs.h. */
39112
39113
39114#define strncmpi innocuous_strncmpi
39115#ifdef __STDC__
39116# include <limits.h>
39117#else
39118# include <assert.h>
39119#endif
39120#undef strncmpi
39121#ifdef __cplusplus
39122extern "C"
39123#endif
39124char strncmpi ();
39125#if defined __stub_strncmpi || defined __stub___strncmpi
39126choke me
39127#endif
39128
39129int main (void)
39130{
39131return strncmpi ();
39132 ;
39133 return 0;
39134}
39135
39136_ACEOF
39137if ac_fn_c_try_link "$LINENO"; then :
39138
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140$as_echo "yes" >&6; }
39141 tst_links_strncmpi="yes"
39142
39143else
39144
39145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39146$as_echo "no" >&6; }
39147 tst_links_strncmpi="no"
39148
39149fi
39150rm -f core conftest.err conftest.$ac_objext \
39151 conftest$ac_exeext conftest.$ac_ext
39152 #
39153 if test "$tst_links_strncmpi" = "yes"; then
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39155$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39157/* end confdefs.h. */
39158
39159 $curl_includes_string
39160
39161_ACEOF
39162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39163 $EGREP "strncmpi" >/dev/null 2>&1; then :
39164
39165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39166$as_echo "yes" >&6; }
39167 tst_proto_strncmpi="yes"
39168
39169else
39170
39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39172$as_echo "no" >&6; }
39173 tst_proto_strncmpi="no"
39174
39175fi
39176rm -f conftest*
39177
39178 fi
39179 #
39180 if test "$tst_proto_strncmpi" = "yes"; then
39181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39182$as_echo_n "checking if strncmpi is compilable... " >&6; }
39183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39184/* end confdefs.h. */
39185
39186
39187 $curl_includes_string
39188
39189int main (void)
39190{
39191
39192 if(0 != strncmpi(0, 0))
39193 return 1;
39194
39195 ;
39196 return 0;
39197}
39198
39199_ACEOF
39200if ac_fn_c_try_compile "$LINENO"; then :
39201
39202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39203$as_echo "yes" >&6; }
39204 tst_compi_strncmpi="yes"
39205
39206else
39207
39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39209$as_echo "no" >&6; }
39210 tst_compi_strncmpi="no"
39211
39212fi
39213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39214 fi
39215 #
39216 if test "$tst_compi_strncmpi" = "yes"; then
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39218$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39219 if test "x$curl_disallow_strncmpi" != "xyes"; then
39220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39221$as_echo "yes" >&6; }
39222 tst_allow_strncmpi="yes"
39223 else
39224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39225$as_echo "no" >&6; }
39226 tst_allow_strncmpi="no"
39227 fi
39228 fi
39229 #
39230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39231$as_echo_n "checking if strncmpi might be used... " >&6; }
39232 if test "$tst_links_strncmpi" = "yes" &&
39233 test "$tst_proto_strncmpi" = "yes" &&
39234 test "$tst_compi_strncmpi" = "yes" &&
39235 test "$tst_allow_strncmpi" = "yes"; then
39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39237$as_echo "yes" >&6; }
39238
39239cat >>confdefs.h <<_ACEOF
39240#define HAVE_STRNCMPI 1
39241_ACEOF
39242
39243 curl_cv_func_strncmpi="yes"
39244 else
39245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39246$as_echo "no" >&6; }
39247 curl_cv_func_strncmpi="no"
39248 fi
39249
39250
39251 #
39252 tst_links_strnicmp="unknown"
39253 tst_proto_strnicmp="unknown"
39254 tst_compi_strnicmp="unknown"
39255 tst_allow_strnicmp="unknown"
39256 #
39257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39258$as_echo_n "checking if strnicmp can be linked... " >&6; }
39259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260/* end confdefs.h. */
39261
39262
39263#define strnicmp innocuous_strnicmp
39264#ifdef __STDC__
39265# include <limits.h>
39266#else
39267# include <assert.h>
39268#endif
39269#undef strnicmp
39270#ifdef __cplusplus
39271extern "C"
39272#endif
39273char strnicmp ();
39274#if defined __stub_strnicmp || defined __stub___strnicmp
39275choke me
39276#endif
39277
39278int main (void)
39279{
39280return strnicmp ();
39281 ;
39282 return 0;
39283}
39284
39285_ACEOF
39286if ac_fn_c_try_link "$LINENO"; then :
39287
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289$as_echo "yes" >&6; }
39290 tst_links_strnicmp="yes"
39291
39292else
39293
39294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39295$as_echo "no" >&6; }
39296 tst_links_strnicmp="no"
39297
39298fi
39299rm -f core conftest.err conftest.$ac_objext \
39300 conftest$ac_exeext conftest.$ac_ext
39301 #
39302 if test "$tst_links_strnicmp" = "yes"; then
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39304$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39306/* end confdefs.h. */
39307
39308 $curl_includes_string
39309
39310_ACEOF
39311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39312 $EGREP "strnicmp" >/dev/null 2>&1; then :
39313
39314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39315$as_echo "yes" >&6; }
39316 tst_proto_strnicmp="yes"
39317
39318else
39319
39320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39321$as_echo "no" >&6; }
39322 tst_proto_strnicmp="no"
39323
39324fi
39325rm -f conftest*
39326
39327 fi
39328 #
39329 if test "$tst_proto_strnicmp" = "yes"; then
39330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39331$as_echo_n "checking if strnicmp is compilable... " >&6; }
39332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39333/* end confdefs.h. */
39334
39335
39336 $curl_includes_string
39337
39338int main (void)
39339{
39340
39341 if(0 != strnicmp(0, 0))
39342 return 1;
39343
39344 ;
39345 return 0;
39346}
39347
39348_ACEOF
39349if ac_fn_c_try_compile "$LINENO"; then :
39350
39351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39352$as_echo "yes" >&6; }
39353 tst_compi_strnicmp="yes"
39354
39355else
39356
39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39358$as_echo "no" >&6; }
39359 tst_compi_strnicmp="no"
39360
39361fi
39362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39363 fi
39364 #
39365 if test "$tst_compi_strnicmp" = "yes"; then
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39367$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39368 if test "x$curl_disallow_strnicmp" != "xyes"; then
39369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39370$as_echo "yes" >&6; }
39371 tst_allow_strnicmp="yes"
39372 else
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39374$as_echo "no" >&6; }
39375 tst_allow_strnicmp="no"
39376 fi
39377 fi
39378 #
39379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39380$as_echo_n "checking if strnicmp might be used... " >&6; }
39381 if test "$tst_links_strnicmp" = "yes" &&
39382 test "$tst_proto_strnicmp" = "yes" &&
39383 test "$tst_compi_strnicmp" = "yes" &&
39384 test "$tst_allow_strnicmp" = "yes"; then
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39386$as_echo "yes" >&6; }
39387
39388cat >>confdefs.h <<_ACEOF
39389#define HAVE_STRNICMP 1
39390_ACEOF
39391
39392 curl_cv_func_strnicmp="yes"
39393 else
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39395$as_echo "no" >&6; }
39396 curl_cv_func_strnicmp="no"
39397 fi
39398
39399
39400 #
39401 tst_links_strstr="unknown"
39402 tst_proto_strstr="unknown"
39403 tst_compi_strstr="unknown"
39404 tst_allow_strstr="unknown"
39405 #
39406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39407$as_echo_n "checking if strstr can be linked... " >&6; }
39408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39409/* end confdefs.h. */
39410
39411
39412#define strstr innocuous_strstr
39413#ifdef __STDC__
39414# include <limits.h>
39415#else
39416# include <assert.h>
39417#endif
39418#undef strstr
39419#ifdef __cplusplus
39420extern "C"
39421#endif
39422char strstr ();
39423#if defined __stub_strstr || defined __stub___strstr
39424choke me
39425#endif
39426
39427int main (void)
39428{
39429return strstr ();
39430 ;
39431 return 0;
39432}
39433
39434_ACEOF
39435if ac_fn_c_try_link "$LINENO"; then :
39436
39437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438$as_echo "yes" >&6; }
39439 tst_links_strstr="yes"
39440
39441else
39442
39443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39444$as_echo "no" >&6; }
39445 tst_links_strstr="no"
39446
39447fi
39448rm -f core conftest.err conftest.$ac_objext \
39449 conftest$ac_exeext conftest.$ac_ext
39450 #
39451 if test "$tst_links_strstr" = "yes"; then
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39453$as_echo_n "checking if strstr is prototyped... " >&6; }
39454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455/* end confdefs.h. */
39456
39457 $curl_includes_string
39458
39459_ACEOF
39460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39461 $EGREP "strstr" >/dev/null 2>&1; then :
39462
39463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464$as_echo "yes" >&6; }
39465 tst_proto_strstr="yes"
39466
39467else
39468
39469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39470$as_echo "no" >&6; }
39471 tst_proto_strstr="no"
39472
39473fi
39474rm -f conftest*
39475
39476 fi
39477 #
39478 if test "$tst_proto_strstr" = "yes"; then
39479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39480$as_echo_n "checking if strstr is compilable... " >&6; }
39481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39482/* end confdefs.h. */
39483
39484
39485 $curl_includes_string
39486
39487int main (void)
39488{
39489
39490 if(0 != strstr(0, 0))
39491 return 1;
39492
39493 ;
39494 return 0;
39495}
39496
39497_ACEOF
39498if ac_fn_c_try_compile "$LINENO"; then :
39499
39500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39501$as_echo "yes" >&6; }
39502 tst_compi_strstr="yes"
39503
39504else
39505
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39507$as_echo "no" >&6; }
39508 tst_compi_strstr="no"
39509
39510fi
39511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39512 fi
39513 #
39514 if test "$tst_compi_strstr" = "yes"; then
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39516$as_echo_n "checking if strstr usage allowed... " >&6; }
39517 if test "x$curl_disallow_strstr" != "xyes"; then
39518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39519$as_echo "yes" >&6; }
39520 tst_allow_strstr="yes"
39521 else
39522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523$as_echo "no" >&6; }
39524 tst_allow_strstr="no"
39525 fi
39526 fi
39527 #
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39529$as_echo_n "checking if strstr might be used... " >&6; }
39530 if test "$tst_links_strstr" = "yes" &&
39531 test "$tst_proto_strstr" = "yes" &&
39532 test "$tst_compi_strstr" = "yes" &&
39533 test "$tst_allow_strstr" = "yes"; then
39534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39535$as_echo "yes" >&6; }
39536
39537cat >>confdefs.h <<_ACEOF
39538#define HAVE_STRSTR 1
39539_ACEOF
39540
39541 curl_cv_func_strstr="yes"
39542 else
39543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39544$as_echo "no" >&6; }
39545 curl_cv_func_strstr="no"
39546 fi
39547
39548
39549 #
39550 tst_links_strtok_r="unknown"
39551 tst_proto_strtok_r="unknown"
39552 tst_compi_strtok_r="unknown"
39553 tst_allow_strtok_r="unknown"
39554 #
39555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39556$as_echo_n "checking if strtok_r can be linked... " >&6; }
39557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39558/* end confdefs.h. */
39559
39560
39561#define strtok_r innocuous_strtok_r
39562#ifdef __STDC__
39563# include <limits.h>
39564#else
39565# include <assert.h>
39566#endif
39567#undef strtok_r
39568#ifdef __cplusplus
39569extern "C"
39570#endif
39571char strtok_r ();
39572#if defined __stub_strtok_r || defined __stub___strtok_r
39573choke me
39574#endif
39575
39576int main (void)
39577{
39578return strtok_r ();
39579 ;
39580 return 0;
39581}
39582
39583_ACEOF
39584if ac_fn_c_try_link "$LINENO"; then :
39585
39586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39587$as_echo "yes" >&6; }
39588 tst_links_strtok_r="yes"
39589
39590else
39591
39592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39593$as_echo "no" >&6; }
39594 tst_links_strtok_r="no"
39595
39596fi
39597rm -f core conftest.err conftest.$ac_objext \
39598 conftest$ac_exeext conftest.$ac_ext
39599 #
39600 if test "$tst_links_strtok_r" = "yes"; then
39601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39602$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39604/* end confdefs.h. */
39605
39606 $curl_includes_string
39607
39608_ACEOF
39609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39610 $EGREP "strtok_r" >/dev/null 2>&1; then :
39611
39612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39613$as_echo "yes" >&6; }
39614 tst_proto_strtok_r="yes"
39615
39616else
39617
39618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39619$as_echo "no" >&6; }
39620 tst_proto_strtok_r="no"
39621
39622fi
39623rm -f conftest*
39624
39625 fi
39626 #
39627 if test "$tst_proto_strtok_r" = "yes"; then
39628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39629$as_echo_n "checking if strtok_r is compilable... " >&6; }
39630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39631/* end confdefs.h. */
39632
39633
39634 $curl_includes_string
39635
39636int main (void)
39637{
39638
39639 if(0 != strtok_r(0, 0, 0))
39640 return 1;
39641
39642 ;
39643 return 0;
39644}
39645
39646_ACEOF
39647if ac_fn_c_try_compile "$LINENO"; then :
39648
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39650$as_echo "yes" >&6; }
39651 tst_compi_strtok_r="yes"
39652
39653else
39654
39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656$as_echo "no" >&6; }
39657 tst_compi_strtok_r="no"
39658
39659fi
39660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39661 fi
39662 #
39663 if test "$tst_compi_strtok_r" = "yes"; then
39664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39665$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39666 if test "x$curl_disallow_strtok_r" != "xyes"; then
39667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39668$as_echo "yes" >&6; }
39669 tst_allow_strtok_r="yes"
39670 else
39671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39672$as_echo "no" >&6; }
39673 tst_allow_strtok_r="no"
39674 fi
39675 fi
39676 #
39677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39678$as_echo_n "checking if strtok_r might be used... " >&6; }
39679 if test "$tst_links_strtok_r" = "yes" &&
39680 test "$tst_proto_strtok_r" = "yes" &&
39681 test "$tst_compi_strtok_r" = "yes" &&
39682 test "$tst_allow_strtok_r" = "yes"; then
39683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39684$as_echo "yes" >&6; }
39685
39686cat >>confdefs.h <<_ACEOF
39687#define HAVE_STRTOK_R 1
39688_ACEOF
39689
39690 curl_cv_func_strtok_r="yes"
39691 else
39692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39693$as_echo "no" >&6; }
39694 curl_cv_func_strtok_r="no"
39695 fi
39696
39697
39698 #
39699 tst_links_strtoll="unknown"
39700 tst_proto_strtoll="unknown"
39701 tst_compi_strtoll="unknown"
39702 tst_allow_strtoll="unknown"
39703 #
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39705$as_echo_n "checking if strtoll can be linked... " >&6; }
39706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39707/* end confdefs.h. */
39708
39709
39710#define strtoll innocuous_strtoll
39711#ifdef __STDC__
39712# include <limits.h>
39713#else
39714# include <assert.h>
39715#endif
39716#undef strtoll
39717#ifdef __cplusplus
39718extern "C"
39719#endif
39720char strtoll ();
39721#if defined __stub_strtoll || defined __stub___strtoll
39722choke me
39723#endif
39724
39725int main (void)
39726{
39727return strtoll ();
39728 ;
39729 return 0;
39730}
39731
39732_ACEOF
39733if ac_fn_c_try_link "$LINENO"; then :
39734
39735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39736$as_echo "yes" >&6; }
39737 tst_links_strtoll="yes"
39738
39739else
39740
39741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39742$as_echo "no" >&6; }
39743 tst_links_strtoll="no"
39744
39745fi
39746rm -f core conftest.err conftest.$ac_objext \
39747 conftest$ac_exeext conftest.$ac_ext
39748 #
39749 if test "$tst_links_strtoll" = "yes"; then
39750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39751$as_echo_n "checking if strtoll is prototyped... " >&6; }
39752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39753/* end confdefs.h. */
39754
39755 $curl_includes_stdlib
39756
39757_ACEOF
39758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39759 $EGREP "strtoll" >/dev/null 2>&1; then :
39760
39761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39762$as_echo "yes" >&6; }
39763 tst_proto_strtoll="yes"
39764
39765else
39766
39767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39768$as_echo "no" >&6; }
39769 tst_proto_strtoll="no"
39770
39771fi
39772rm -f conftest*
39773
39774 fi
39775 #
39776 if test "$tst_proto_strtoll" = "yes"; then
39777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39778$as_echo_n "checking if strtoll is compilable... " >&6; }
39779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39780/* end confdefs.h. */
39781
39782
39783 $curl_includes_stdlib
39784
39785int main (void)
39786{
39787
39788 if(0 != strtoll(0, 0, 0))
39789 return 1;
39790
39791 ;
39792 return 0;
39793}
39794
39795_ACEOF
39796if ac_fn_c_try_compile "$LINENO"; then :
39797
39798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39799$as_echo "yes" >&6; }
39800 tst_compi_strtoll="yes"
39801
39802else
39803
39804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39805$as_echo "no" >&6; }
39806 tst_compi_strtoll="no"
39807
39808fi
39809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39810 fi
39811 #
39812 if test "$tst_compi_strtoll" = "yes"; then
39813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39814$as_echo_n "checking if strtoll usage allowed... " >&6; }
39815 if test "x$curl_disallow_strtoll" != "xyes"; then
39816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39817$as_echo "yes" >&6; }
39818 tst_allow_strtoll="yes"
39819 else
39820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39821$as_echo "no" >&6; }
39822 tst_allow_strtoll="no"
39823 fi
39824 fi
39825 #
39826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39827$as_echo_n "checking if strtoll might be used... " >&6; }
39828 if test "$tst_links_strtoll" = "yes" &&
39829 test "$tst_proto_strtoll" = "yes" &&
39830 test "$tst_compi_strtoll" = "yes" &&
39831 test "$tst_allow_strtoll" = "yes"; then
39832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39833$as_echo "yes" >&6; }
39834
39835cat >>confdefs.h <<_ACEOF
39836#define HAVE_STRTOLL 1
39837_ACEOF
39838
39839 curl_cv_func_strtoll="yes"
39840 else
39841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39842$as_echo "no" >&6; }
39843 curl_cv_func_strtoll="no"
39844 fi
39845
39846
39847curl_includes_sys_uio="\
39848/* includes start */
39849#ifdef HAVE_SYS_TYPES_H
39850# include <sys/types.h>
39851#endif
39852#ifdef HAVE_SYS_UIO_H
39853# include <sys/uio.h>
39854#endif
39855/* includes end */"
39856 for ac_header in sys/types.h sys/uio.h
39857do :
39858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39859ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39860"
39861if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39862 cat >>confdefs.h <<_ACEOF
39863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39864_ACEOF
39865
39866fi
39867
39868done
39869
39870
39871
39872 #
39873 tst_links_writev="unknown"
39874 tst_proto_writev="unknown"
39875 tst_compi_writev="unknown"
39876 tst_allow_writev="unknown"
39877 #
39878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39879$as_echo_n "checking if writev can be linked... " >&6; }
39880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39881/* end confdefs.h. */
39882
39883
39884#define writev innocuous_writev
39885#ifdef __STDC__
39886# include <limits.h>
39887#else
39888# include <assert.h>
39889#endif
39890#undef writev
39891#ifdef __cplusplus
39892extern "C"
39893#endif
39894char writev ();
39895#if defined __stub_writev || defined __stub___writev
39896choke me
39897#endif
39898
39899int main (void)
39900{
39901return writev ();
39902 ;
39903 return 0;
39904}
39905
39906_ACEOF
39907if ac_fn_c_try_link "$LINENO"; then :
39908
39909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39910$as_echo "yes" >&6; }
39911 tst_links_writev="yes"
39912
39913else
39914
39915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916$as_echo "no" >&6; }
39917 tst_links_writev="no"
39918
39919fi
39920rm -f core conftest.err conftest.$ac_objext \
39921 conftest$ac_exeext conftest.$ac_ext
39922 #
39923 if test "$tst_links_writev" = "yes"; then
39924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39925$as_echo_n "checking if writev is prototyped... " >&6; }
39926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39927/* end confdefs.h. */
39928
39929 $curl_includes_sys_uio
39930
39931_ACEOF
39932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39933 $EGREP "writev" >/dev/null 2>&1; then :
39934
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39936$as_echo "yes" >&6; }
39937 tst_proto_writev="yes"
39938
39939else
39940
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39942$as_echo "no" >&6; }
39943 tst_proto_writev="no"
39944
39945fi
39946rm -f conftest*
39947
39948 fi
39949 #
39950 if test "$tst_proto_writev" = "yes"; then
39951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39952$as_echo_n "checking if writev is compilable... " >&6; }
39953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39954/* end confdefs.h. */
39955
39956
39957 $curl_includes_sys_uio
39958
39959int main (void)
39960{
39961
39962 if(0 != writev(0, 0, 0))
39963 return 1;
39964
39965 ;
39966 return 0;
39967}
39968
39969_ACEOF
39970if ac_fn_c_try_compile "$LINENO"; then :
39971
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39973$as_echo "yes" >&6; }
39974 tst_compi_writev="yes"
39975
39976else
39977
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39979$as_echo "no" >&6; }
39980 tst_compi_writev="no"
39981
39982fi
39983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39984 fi
39985 #
39986 if test "$tst_compi_writev" = "yes"; then
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39988$as_echo_n "checking if writev usage allowed... " >&6; }
39989 if test "x$curl_disallow_writev" != "xyes"; then
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39991$as_echo "yes" >&6; }
39992 tst_allow_writev="yes"
39993 else
39994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39995$as_echo "no" >&6; }
39996 tst_allow_writev="no"
39997 fi
39998 fi
39999 #
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40001$as_echo_n "checking if writev might be used... " >&6; }
40002 if test "$tst_links_writev" = "yes" &&
40003 test "$tst_proto_writev" = "yes" &&
40004 test "$tst_compi_writev" = "yes" &&
40005 test "$tst_allow_writev" = "yes"; then
40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40007$as_echo "yes" >&6; }
40008
40009cat >>confdefs.h <<_ACEOF
40010#define HAVE_WRITEV 1
40011_ACEOF
40012
40013 curl_cv_func_writev="yes"
40014 else
40015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40016$as_echo "no" >&6; }
40017 curl_cv_func_writev="no"
40018 fi
40019
40020
40021case $host in
40022 *msdosdjgpp)
40023 ac_cv_func_pipe=no
40024 skipcheck_pipe=yes
40025 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40026$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40027 ;;
40028esac
40029
40030for ac_func in geteuid \
40031 getpass_r \
40032 getppid \
40033 getpwuid \
40034 getpwuid_r \
40035 getrlimit \
40036 gettimeofday \
40037 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040038 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040039 pipe \
40040 setlocale \
40041 setmode \
40042 setrlimit \
40043 utime \
40044 utimes
40045
40046do :
40047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40048ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40049if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40050 cat >>confdefs.h <<_ACEOF
40051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40052_ACEOF
40053
40054
40055else
40056
40057 func="$ac_func"
40058 eval skipcheck=\$skipcheck_$func
40059 if test "x$skipcheck" != "xyes"; then
40060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40061$as_echo_n "checking deeper for $func... " >&6; }
40062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063/* end confdefs.h. */
40064
40065
40066
40067int main (void)
40068{
40069
40070 $func ();
40071
40072 ;
40073 return 0;
40074}
40075
40076_ACEOF
40077if ac_fn_c_try_link "$LINENO"; then :
40078
40079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40080$as_echo "yes" >&6; }
40081 eval "ac_cv_func_$func=yes"
40082
40083cat >>confdefs.h <<_ACEOF
40084#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40085_ACEOF
40086
40087
40088else
40089
40090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40091$as_echo "but still no" >&6; }
40092
40093fi
40094rm -f core conftest.err conftest.$ac_objext \
40095 conftest$ac_exeext conftest.$ac_ext
40096 fi
40097
40098fi
40099done
40100
40101
40102
40103 for ac_header in sys/types.h sys/socket.h netdb.h
40104do :
40105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40106ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40108 cat >>confdefs.h <<_ACEOF
40109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40110_ACEOF
40111
40112fi
40113
40114done
40115
40116 #
40117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
40118$as_echo_n "checking for getnameinfo... " >&6; }
40119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40120/* end confdefs.h. */
40121
40122
40123#define getnameinfo innocuous_getnameinfo
40124#ifdef __STDC__
40125# include <limits.h>
40126#else
40127# include <assert.h>
40128#endif
40129#undef getnameinfo
40130#ifdef __cplusplus
40131extern "C"
40132#endif
40133char getnameinfo ();
40134#if defined __stub_getnameinfo || defined __stub___getnameinfo
40135choke me
40136#endif
40137
40138int main (void)
40139{
40140return getnameinfo ();
40141 ;
40142 return 0;
40143}
40144
40145_ACEOF
40146if ac_fn_c_try_link "$LINENO"; then :
40147
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40149$as_echo "yes" >&6; }
40150 curl_cv_getnameinfo="yes"
40151
40152else
40153
40154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40155$as_echo "no" >&6; }
40156 curl_cv_getnameinfo="no"
40157
40158fi
40159rm -f core conftest.err conftest.$ac_objext \
40160 conftest$ac_exeext conftest.$ac_ext
40161 #
40162 if test "$curl_cv_getnameinfo" != "yes"; then
40163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
40164$as_echo_n "checking deeper for getnameinfo... " >&6; }
40165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40166/* end confdefs.h. */
40167
40168
40169
40170int main (void)
40171{
40172
40173 getnameinfo();
40174
40175 ;
40176 return 0;
40177}
40178
40179_ACEOF
40180if ac_fn_c_try_link "$LINENO"; then :
40181
40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40183$as_echo "yes" >&6; }
40184 curl_cv_getnameinfo="yes"
40185
40186else
40187
40188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40189$as_echo "but still no" >&6; }
40190 curl_cv_getnameinfo="no"
40191
40192fi
40193rm -f core conftest.err conftest.$ac_objext \
40194 conftest$ac_exeext conftest.$ac_ext
40195 fi
40196 #
40197 if test "$curl_cv_getnameinfo" != "yes"; then
40198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
40199$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
40200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40201/* end confdefs.h. */
40202
40203
40204#undef inline
40205#ifdef HAVE_WINDOWS_H
40206#ifndef WIN32_LEAN_AND_MEAN
40207#define WIN32_LEAN_AND_MEAN
40208#endif
40209#include <windows.h>
40210#ifdef HAVE_WINSOCK2_H
40211#include <winsock2.h>
40212#ifdef HAVE_WS2TCPIP_H
40213#include <ws2tcpip.h>
40214#endif
40215#endif
40216#else
40217#ifdef HAVE_SYS_TYPES_H
40218#include <sys/types.h>
40219#endif
40220#ifdef HAVE_SYS_SOCKET_H
40221#include <sys/socket.h>
40222#endif
40223#ifdef HAVE_NETDB_H
40224#include <netdb.h>
40225#endif
40226#endif
40227
40228int main (void)
40229{
40230
40231 getnameinfo(0, 0, 0, 0, 0, 0, 0);
40232
40233 ;
40234 return 0;
40235}
40236
40237_ACEOF
40238if ac_fn_c_try_link "$LINENO"; then :
40239
40240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40241$as_echo "yes" >&6; }
40242 curl_cv_getnameinfo="yes"
40243
40244else
40245
40246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40247$as_echo "but still no" >&6; }
40248 curl_cv_getnameinfo="no"
40249
40250fi
40251rm -f core conftest.err conftest.$ac_objext \
40252 conftest$ac_exeext conftest.$ac_ext
40253 fi
40254 #
40255 if test "$curl_cv_getnameinfo" = "yes"; then
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40257$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40258if ${curl_cv_func_getnameinfo_args+:} false; then :
40259 $as_echo_n "(cached) " >&6
40260else
40261
40262 curl_cv_func_getnameinfo_args="unknown"
40263 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40264 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40265 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40266 for gni_arg7 in 'int' 'unsigned int'; do
40267 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40269/* end confdefs.h. */
40270
40271
40272#undef inline
40273#ifdef HAVE_WINDOWS_H
40274#ifndef WIN32_LEAN_AND_MEAN
40275#define WIN32_LEAN_AND_MEAN
40276#endif
40277#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40278#undef _WIN32_WINNT
40279#define _WIN32_WINNT 0x0501
40280#endif
40281#include <windows.h>
40282#ifdef HAVE_WINSOCK2_H
40283#include <winsock2.h>
40284#ifdef HAVE_WS2TCPIP_H
40285#include <ws2tcpip.h>
40286#endif
40287#endif
40288#define GNICALLCONV WSAAPI
40289#else
40290#ifdef HAVE_SYS_TYPES_H
40291#include <sys/types.h>
40292#endif
40293#ifdef HAVE_SYS_SOCKET_H
40294#include <sys/socket.h>
40295#endif
40296#ifdef HAVE_NETDB_H
40297#include <netdb.h>
40298#endif
40299#define GNICALLCONV
40300#endif
40301 extern int GNICALLCONV
40302#ifdef __ANDROID__
40303__attribute__((overloadable))
40304#endif
40305 getnameinfo($gni_arg1, $gni_arg2,
40306 char *, $gni_arg46,
40307 char *, $gni_arg46,
40308 $gni_arg7);
40309
40310int main (void)
40311{
40312
40313 $gni_arg2 salen=0;
40314 $gni_arg46 hostlen=0;
40315 $gni_arg46 servlen=0;
40316 $gni_arg7 flags=0;
40317 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40318
40319 ;
40320 return 0;
40321}
40322
40323_ACEOF
40324if ac_fn_c_try_compile "$LINENO"; then :
40325
40326 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40327
40328fi
40329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40330 fi
40331 done
40332 done
40333 done
40334 done
40335
40336fi
40337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40338$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40339 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40341$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40343$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40344 else
40345 gni_prev_IFS=$IFS; IFS=','
40346 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40347 IFS=$gni_prev_IFS
40348 shift
40349 #
40350 gni_qual_type_arg1=$1
40351 #
40352
40353cat >>confdefs.h <<_ACEOF
40354#define GETNAMEINFO_TYPE_ARG2 $2
40355_ACEOF
40356
40357
40358cat >>confdefs.h <<_ACEOF
40359#define GETNAMEINFO_TYPE_ARG46 $3
40360_ACEOF
40361
40362
40363cat >>confdefs.h <<_ACEOF
40364#define GETNAMEINFO_TYPE_ARG7 $4
40365_ACEOF
40366
40367 #
40368 prev_sh_opts=$-
40369 #
40370 case $prev_sh_opts in
40371 *f*)
40372 ;;
40373 *)
40374 set -f
40375 ;;
40376 esac
40377 #
40378 case "$gni_qual_type_arg1" in
40379 const*)
40380 gni_qual_arg1=const
40381 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40382 ;;
40383 *)
40384 gni_qual_arg1=
40385 gni_type_arg1=$gni_qual_type_arg1
40386 ;;
40387 esac
40388 #
40389
40390cat >>confdefs.h <<_ACEOF
40391#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40392_ACEOF
40393
40394
40395cat >>confdefs.h <<_ACEOF
40396#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40397_ACEOF
40398
40399 #
40400 case $prev_sh_opts in
40401 *f*)
40402 ;;
40403 *)
40404 set +f
40405 ;;
40406 esac
40407 #
40408
40409cat >>confdefs.h <<_ACEOF
40410#define HAVE_GETNAMEINFO 1
40411_ACEOF
40412
40413 curl_cv_func_getnameinfo="yes"
40414 fi
40415 fi
40416
40417
40418if test "$ipv6" = "yes"; then
40419 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40420
40421$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40422
40423 IPV6_ENABLED=1
40424
40425 fi
40426
40427 for ac_header in stdio.h sys/types.h sys/socket.h \
40428 netdb.h netinet/in.h arpa/inet.h
40429do :
40430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40431ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40433 cat >>confdefs.h <<_ACEOF
40434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40435_ACEOF
40436
40437fi
40438
40439done
40440
40441 #
40442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40443$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40444if ${curl_cv_working_ni_withscopeid+:} false; then :
40445 $as_echo_n "(cached) " >&6
40446else
40447
40448 if test "$cross_compiling" = yes; then :
40449
40450 # Program is not run when cross-compiling. So we assume
40451 # NI_WITHSCOPEID will work if we are able to compile it.
40452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40453/* end confdefs.h. */
40454
40455
40456#include <sys/types.h>
40457#include <sys/socket.h>
40458#include <netdb.h>
40459
40460int main (void)
40461{
40462
40463 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40464
40465 ;
40466 return 0;
40467}
40468
40469_ACEOF
40470if ac_fn_c_try_compile "$LINENO"; then :
40471
40472 curl_cv_working_ni_withscopeid="yes"
40473
40474else
40475
40476 curl_cv_working_ni_withscopeid="no"
40477
40478fi
40479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40480
40481else
40482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40483/* end confdefs.h. */
40484
40485
40486#ifdef HAVE_STDLIB_H
40487#include <stdlib.h>
40488#endif
40489#ifdef HAVE_STDIO_H
40490#include <stdio.h>
40491#endif
40492#ifdef HAVE_SYS_TYPES_H
40493#include <sys/types.h>
40494#endif
40495#ifdef HAVE_SYS_SOCKET_H
40496#include <sys/socket.h>
40497#endif
40498#ifdef HAVE_NETDB_H
40499#include <netdb.h>
40500#endif
40501#ifdef HAVE_NETINET_IN_H
40502#include <netinet/in.h>
40503#endif
40504#ifdef HAVE_ARPA_INET_H
40505#include <arpa/inet.h>
40506#endif
40507
40508int main (void)
40509{
40510
40511#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40512#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40513 struct sockaddr_storage sa;
40514#else
40515 unsigned char sa[256];
40516#endif
40517 char hostbuf[NI_MAXHOST];
40518 int rc;
40519 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40520 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40521 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40522 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40523 if(fd < 0) {
40524 perror("socket()");
40525 return 1; /* Error creating socket */
40526 }
40527 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40528 if(rc) {
40529 perror("getsockname()");
40530 return 2; /* Error retrieving socket name */
40531 }
40532 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40533 if(rc) {
40534 printf("rc = %s\n", gai_strerror(rc));
40535 return 3; /* Error translating socket address */
40536 }
40537 return 0; /* Ok, NI_WITHSCOPEID works */
40538#else
40539 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40540#endif
40541
40542 ;
40543 return 0;
40544} # AC-LANG-PROGRAM
40545
40546_ACEOF
40547if ac_fn_c_try_run "$LINENO"; then :
40548
40549 # Exit code == 0. Program worked.
40550 curl_cv_working_ni_withscopeid="yes"
40551
40552else
40553
40554 # Exit code != 0. Program failed.
40555 curl_cv_working_ni_withscopeid="no"
40556
40557fi
40558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40559 conftest.$ac_objext conftest.beam conftest.$ac_ext
40560fi
40561 # AC-RUN-IFELSE
40562
40563fi
40564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40565$as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40566 case "$curl_cv_working_ni_withscopeid" in
40567 yes)
40568
40569$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40570
40571 ;;
40572 esac
40573
40574fi
40575
40576
40577 #
40578 tst_method="unknown"
40579
40580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40581$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40582 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40583 tst_method="fcntl O_NONBLOCK"
40584 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40585 tst_method="ioctl FIONBIO"
40586 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40587 tst_method="ioctlsocket FIONBIO"
40588 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40589 tst_method="IoctlSocket FIONBIO"
40590 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40591 tst_method="setsockopt SO_NONBLOCK"
40592 fi
40593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40594$as_echo "$tst_method" >&6; }
40595 if test "$tst_method" = "unknown"; then
40596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40597$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40598 fi
40599
40600
40601
40602# Extract the first word of "perl", so it can be a program name with args.
40603set dummy perl; ac_word=$2
40604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40605$as_echo_n "checking for $ac_word... " >&6; }
40606if ${ac_cv_path_PERL+:} false; then :
40607 $as_echo_n "(cached) " >&6
40608else
40609 case $PERL in
40610 [\\/]* | ?:[\\/]*)
40611 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40612 ;;
40613 *)
40614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40615as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40616for as_dir in $as_dummy
40617do
40618 IFS=$as_save_IFS
40619 test -z "$as_dir" && as_dir=.
40620 for ac_exec_ext in '' $ac_executable_extensions; do
40621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40622 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40624 break 2
40625 fi
40626done
40627 done
40628IFS=$as_save_IFS
40629
40630 ;;
40631esac
40632fi
40633PERL=$ac_cv_path_PERL
40634if test -n "$PERL"; then
40635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40636$as_echo "$PERL" >&6; }
40637else
40638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40639$as_echo "no" >&6; }
40640fi
40641
40642
40643
40644
40645for ac_prog in gnroff nroff
40646do
40647 # Extract the first word of "$ac_prog", so it can be a program name with args.
40648set dummy $ac_prog; ac_word=$2
40649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40650$as_echo_n "checking for $ac_word... " >&6; }
40651if ${ac_cv_path_NROFF+:} false; then :
40652 $as_echo_n "(cached) " >&6
40653else
40654 case $NROFF in
40655 [\\/]* | ?:[\\/]*)
40656 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40657 ;;
40658 *)
40659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40660as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40661for as_dir in $as_dummy
40662do
40663 IFS=$as_save_IFS
40664 test -z "$as_dir" && as_dir=.
40665 for ac_exec_ext in '' $ac_executable_extensions; do
40666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40667 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40669 break 2
40670 fi
40671done
40672 done
40673IFS=$as_save_IFS
40674
40675 ;;
40676esac
40677fi
40678NROFF=$ac_cv_path_NROFF
40679if test -n "$NROFF"; then
40680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40681$as_echo "$NROFF" >&6; }
40682else
40683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40684$as_echo "no" >&6; }
40685fi
40686
40687
40688 test -n "$NROFF" && break
40689done
40690
40691
40692
40693if test -n "$NROFF"; then
40694
40695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40696$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40697 MANOPT="-man"
40698 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40699 if test -z "$mancheck"; then
40700 MANOPT="-mandoc"
40701 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40702 if test -z "$mancheck"; then
40703 MANOPT=""
40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40705$as_echo "failed" >&6; }
40706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40707$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40708 else
40709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40710$as_echo "$MANOPT" >&6; }
40711 fi
40712 else
40713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40714$as_echo "$MANOPT" >&6; }
40715 fi
40716
40717fi
40718
40719if test -z "$MANOPT"
40720then
40721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40722$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40723 USE_MANUAL="no";
40724fi
40725
40726
40727if test "$USE_MANUAL" = "1"; then
40728
40729$as_echo "#define USE_MANUAL 1" >>confdefs.h
40730
40731 curl_manual_msg="enabled"
40732fi
40733
40734 if test x"$USE_MANUAL" = x1; then
40735 USE_MANUAL_TRUE=
40736 USE_MANUAL_FALSE='#'
40737else
40738 USE_MANUAL_TRUE='#'
40739 USE_MANUAL_FALSE=
40740fi
40741
40742
40743
40744
40745
40746 #
40747 if test "$want_ares" = "yes"; then
40748 clean_CPPFLAGS="$CPPFLAGS"
40749 clean_LDFLAGS="$LDFLAGS"
40750 clean_LIBS="$LIBS"
40751 embedded_ares="unknown"
40752 configure_runpath=`pwd`
40753 embedded_ares_builddir="$configure_runpath/ares"
40754 if test -n "$want_ares_path"; then
40755 ares_CPPFLAGS="-I$want_ares_path/include"
40756 ares_LDFLAGS="-L$want_ares_path/lib"
40757 ares_LIBS="-lcares"
40758 else
40759 if test -d "$srcdir/ares"; then
40760 embedded_ares="yes"
40761 subdirs="$subdirs ares"
40762
40763 ares_CPPFLAGS=""
40764 ares_LDFLAGS="-L$embedded_ares_builddir"
40765 ares_LIBS="-lcares"
40766 else
40767 ares_CPPFLAGS=""
40768 ares_LDFLAGS=""
40769 ares_LIBS="-lcares"
40770 fi
40771 fi
40772 #
40773 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40774 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40775 LIBS="$ares_LIBS $clean_LIBS"
40776 #
40777 if test "$embedded_ares" != "yes"; then
40778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40779$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40781/* end confdefs.h. */
40782
40783
40784#include <ares.h>
40785 /* set of dummy functions in case c-ares was built with debug */
40786 void curl_dofree() { }
40787 void curl_sclose() { }
40788 void curl_domalloc() { }
40789 void curl_docalloc() { }
40790 void curl_socket() { }
40791
40792int main (void)
40793{
40794
40795 ares_channel channel;
40796 ares_cancel(channel); /* added in 1.2.0 */
40797 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40798 ares_dup(&channel, channel); /* added in 1.6.0 */
40799
40800 ;
40801 return 0;
40802}
40803
40804_ACEOF
40805if ac_fn_c_try_link "$LINENO"; then :
40806
40807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40808$as_echo "yes" >&6; }
40809
40810else
40811
40812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40813$as_echo "no" >&6; }
40814 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40815 CPPFLAGS="$clean_CPPFLAGS"
40816 LDFLAGS="$clean_LDFLAGS"
40817 LIBS="$clean_LIBS"
40818 # prevent usage
40819 want_ares="no"
40820
40821fi
40822rm -f core conftest.err conftest.$ac_objext \
40823 conftest$ac_exeext conftest.$ac_ext
40824 fi
40825 if test "$want_ares" = "yes"; then
40826
40827$as_echo "#define USE_ARES 1" >>confdefs.h
40828
40829 USE_ARES=1
40830
40831 curl_res_msg="c-ares"
40832 fi
40833 fi
40834
40835 if test x$embedded_ares = xyes; then
40836 USE_EMBEDDED_ARES_TRUE=
40837 USE_EMBEDDED_ARES_FALSE='#'
40838else
40839 USE_EMBEDDED_ARES_TRUE='#'
40840 USE_EMBEDDED_ARES_FALSE=
40841fi
40842
40843
40844if test "x$curl_cv_native_windows" != "xyes" &&
40845 test "x$enable_shared" = "xyes"; then
40846 build_libhostname=yes
40847else
40848 build_libhostname=no
40849fi
40850 if test x$build_libhostname = xyes; then
40851 BUILD_LIBHOSTNAME_TRUE=
40852 BUILD_LIBHOSTNAME_FALSE='#'
40853else
40854 BUILD_LIBHOSTNAME_TRUE='#'
40855 BUILD_LIBHOSTNAME_FALSE=
40856fi
40857
40858
40859if test "x$want_ares" != xyes; then
40860
40861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40862$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40863 OPT_THRES="default"
40864 # Check whether --enable-threaded_resolver was given.
40865if test "${enable_threaded_resolver+set}" = set; then :
40866 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40867fi
40868
40869 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040870 no)
40871 want_thres="no"
40872 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040873 *)
40874 want_thres="yes"
40875 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040876 esac
40877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40878$as_echo "$want_thres" >&6; }
40879
40880fi
40881
40882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40883$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40884# Check whether --enable-pthreads was given.
40885if test "${enable_pthreads+set}" = set; then :
40886 enableval=$enable_pthreads; case "$enableval" in
40887 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40888$as_echo "no" >&6; }
40889 want_pthreads=no
40890 ;;
40891 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40892$as_echo "yes" >&6; }
40893 want_pthreads=yes
40894 ;;
40895 esac
40896else
40897
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40899$as_echo "auto" >&6; }
40900 want_pthreads=auto
40901
40902
40903fi
40904
40905
40906if test "$want_pthreads" != "no"; then
40907 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40908 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40909 fi
40910 if test "$dontwant_rt" != "no"; then
40911 if test "$want_pthreads" = "yes"; then
40912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40913$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40914 fi
40915 want_pthreads=no
40916 fi
40917fi
40918
40919if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40920 want_pthreads=no
40921fi
40922
40923if test "$want_pthreads" != "no"; then
40924 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40925if test "x$ac_cv_header_pthread_h" = xyes; then :
40926
40927$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40928
40929 save_CFLAGS="$CFLAGS"
40930
40931 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40932if test "x$ac_cv_func_pthread_create" = xyes; then :
40933 USE_THREADS_POSIX=1
40934fi
40935
40936
40937 if test "$USE_THREADS_POSIX" != "1"
40938 then
40939 CFLAGS="$CFLAGS -pthread"
40940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40941$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40942if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40943 $as_echo_n "(cached) " >&6
40944else
40945 ac_check_lib_save_LIBS=$LIBS
40946LIBS="-lpthread $LIBS"
40947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40948/* end confdefs.h. */
40949
40950
40951#ifdef __cplusplus
40952extern "C"
40953#endif
40954char pthread_create ();
40955int main (void)
40956{
40957return pthread_create ();
40958 ;
40959 return 0;
40960}
40961_ACEOF
40962if ac_fn_c_try_link "$LINENO"; then :
40963 ac_cv_lib_pthread_pthread_create=yes
40964else
40965 ac_cv_lib_pthread_pthread_create=no
40966fi
40967rm -f core conftest.err conftest.$ac_objext \
40968 conftest$ac_exeext conftest.$ac_ext
40969LIBS=$ac_check_lib_save_LIBS
40970fi
40971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40972$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40973if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40974 USE_THREADS_POSIX=1
40975else
40976 CFLAGS="$save_CFLAGS"
40977fi
40978
40979 fi
40980
40981 if test "x$USE_THREADS_POSIX" = "x1"
40982 then
40983
40984$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40985
40986 curl_res_msg="POSIX threaded"
40987 fi
40988
40989fi
40990
40991
40992fi
40993
40994if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40995 if test "$want_pthreads" = "yes"; then
40996 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40997 fi
40998 if test "$curl_cv_native_windows" = "yes"; then
40999 USE_THREADS_WIN32=1
41000
41001$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41002
41003 curl_res_msg="Win32 threaded"
41004 else
41005 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41006 fi
41007fi
41008
41009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41010$as_echo_n "checking whether to enable verbose strings... " >&6; }
41011# Check whether --enable-verbose was given.
41012if test "${enable_verbose+set}" = set; then :
41013 enableval=$enable_verbose; case "$enableval" in
41014 no)
41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41016$as_echo "no" >&6; }
41017
41018$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41019
41020 curl_verbose_msg="no"
41021 ;;
41022 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41023$as_echo "yes" >&6; }
41024 ;;
41025 esac
41026else
41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41028$as_echo "yes" >&6; }
41029
41030fi
41031
41032
41033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41034$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41035# Check whether --enable-sspi was given.
41036if test "${enable_sspi+set}" = set; then :
41037 enableval=$enable_sspi; case "$enableval" in
41038 yes)
41039 if test "$curl_cv_native_windows" = "yes"; then
41040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41041$as_echo "yes" >&6; }
41042
41043$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41044
41045 USE_WINDOWS_SSPI=1
41046
41047 curl_sspi_msg="enabled"
41048 else
41049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41050$as_echo "no" >&6; }
41051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41052$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41053 fi
41054 ;;
41055 *)
41056 if test "x$WINSSL_ENABLED" = "x1"; then
41057 # --with-winssl implies --enable-sspi
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41059$as_echo "yes" >&6; }
41060 else
41061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41062$as_echo "no" >&6; }
41063 fi
41064 ;;
41065 esac
41066else
41067 if test "x$WINSSL_ENABLED" = "x1"; then
41068 # --with-winssl implies --enable-sspi
41069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41070$as_echo "yes" >&6; }
41071 else
41072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41073$as_echo "no" >&6; }
41074 fi
41075
41076fi
41077
41078
41079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41080$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41081# Check whether --enable-crypto-auth was given.
41082if test "${enable_crypto_auth+set}" = set; then :
41083 enableval=$enable_crypto_auth; case "$enableval" in
41084 no)
41085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41086$as_echo "no" >&6; }
41087
41088$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41089
41090 CURL_DISABLE_CRYPTO_AUTH=1
41091 ;;
41092 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41093$as_echo "yes" >&6; }
41094 ;;
41095 esac
41096else
41097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41098$as_echo "yes" >&6; }
41099
41100fi
41101
41102
41103
41104 OPT_NTLM_WB="default"
41105 # Check whether --enable-ntlm-wb was given.
41106if test "${enable_ntlm_wb+set}" = set; then :
41107 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41108fi
41109
41110 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41111 case "$OPT_NTLM_WB" in
41112 no)
41113 want_ntlm_wb="no"
41114 ;;
41115 default)
41116 want_ntlm_wb="yes"
41117 ;;
41118 *)
41119 want_ntlm_wb="yes"
41120 if test -n "$enableval" && test "$enableval" != "yes"; then
41121 want_ntlm_wb_file="$enableval"
41122 fi
41123 ;;
41124 esac
41125
41126
41127
41128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41129$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41130 if test "$curl_cv_native_windows" = "yes" ||
41131 test "x$SSL_ENABLED" = "x"; then
41132 want_ntlm_wb_file=""
41133 want_ntlm_wb="no"
41134 fi
41135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41136$as_echo "$want_ntlm_wb" >&6; }
41137 if test "$want_ntlm_wb" = "yes"; then
41138
41139$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41140
41141
41142cat >>confdefs.h <<_ACEOF
41143#define NTLM_WB_FILE "$want_ntlm_wb_file"
41144_ACEOF
41145
41146 NTLM_WB_ENABLED=1
41147 fi
41148
41149
41150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41151$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41152# Check whether --enable-tls-srp was given.
41153if test "${enable_tls_srp+set}" = set; then :
41154 enableval=$enable_tls_srp; case "$enableval" in
41155 no)
41156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41157$as_echo "no" >&6; }
41158
41159$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41160
41161 want_tls_srp=no
41162 ;;
41163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41164$as_echo "yes" >&6; }
41165 want_tls_srp=yes
41166 ;;
41167 esac
41168else
41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41170$as_echo "yes" >&6; }
41171 want_tls_srp=yes
41172
41173fi
41174
41175
41176if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41177
41178$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41179
41180 USE_TLS_SRP=1
41181 curl_tls_srp_msg="enabled"
41182fi
41183
41184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41185$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41186# Check whether --enable-unix-sockets was given.
41187if test "${enable_unix_sockets+set}" = set; then :
41188 enableval=$enable_unix_sockets; case "$enableval" in
41189 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41190$as_echo "no" >&6; }
41191 want_unix_sockets=no
41192 ;;
41193 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41194$as_echo "yes" >&6; }
41195 want_unix_sockets=yes
41196 ;;
41197 esac
41198else
41199
41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41201$as_echo "auto" >&6; }
41202 want_unix_sockets=auto
41203
41204
41205fi
41206
41207if test "x$want_unix_sockets" != "xno"; then
41208 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41209 #include <sys/un.h>
41210
41211"
41212if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41213
41214
41215$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41216
41217 USE_UNIX_SOCKETS=1
41218
41219 curl_unix_sockets_msg="enabled"
41220
41221else
41222
41223 if test "x$want_unix_sockets" = "xyes"; then
41224 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41225 fi
41226
41227fi
41228
41229fi
41230
41231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41232$as_echo_n "checking whether to enable support for cookies... " >&6; }
41233# Check whether --enable-cookies was given.
41234if test "${enable_cookies+set}" = set; then :
41235 enableval=$enable_cookies; case "$enableval" in
41236 no)
41237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238$as_echo "no" >&6; }
41239
41240$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41241
41242 ;;
41243 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41244$as_echo "yes" >&6; }
41245 ;;
41246 esac
41247else
41248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41249$as_echo "yes" >&6; }
41250
41251fi
41252
41253
41254
41255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41256$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41257 CFLAG_CURL_SYMBOL_HIDING=""
41258 doing_symbol_hiding="no"
41259 if test x"$curl_cv_native_windows" != "xyes" &&
41260 test "$want_symbol_hiding" = "yes" &&
41261 test "$supports_symbol_hiding" = "yes"; then
41262 doing_symbol_hiding="yes"
41263 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41264
41265cat >>confdefs.h <<_ACEOF
41266#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41267_ACEOF
41268
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270$as_echo "yes" >&6; }
41271 else
41272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41273$as_echo "no" >&6; }
41274 fi
41275 if test x$doing_symbol_hiding = xyes; then
41276 DOING_CURL_SYMBOL_HIDING_TRUE=
41277 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41278else
41279 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41280 DOING_CURL_SYMBOL_HIDING_FALSE=
41281fi
41282
41283
41284
41285
Elliott Hughes82be86d2017-09-20 17:00:17 -070041286LIBCURL_LIBS=$LIBS
41287
41288
41289
41290
41291
41292BLANK_AT_MAKETIME=
41293
41294
41295 if test x$cross_compiling = xyes; then
41296 CROSSCOMPILING_TRUE=
41297 CROSSCOMPILING_FALSE='#'
41298else
41299 CROSSCOMPILING_TRUE='#'
41300 CROSSCOMPILING_FALSE=
41301fi
41302
41303
41304ENABLE_SHARED="$enable_shared"
41305
41306
41307ENABLE_STATIC="$enable_static"
41308
41309
41310
41311
41312if test "x$OPENSSL_ENABLED" = "x1"; then
41313 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41314elif test -n "$SSL_ENABLED"; then
41315 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41316fi
41317if test "x$IPV6_ENABLED" = "x1"; then
41318 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41319fi
41320if test "x$USE_UNIX_SOCKETS" = "x1"; then
41321 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41322fi
41323if test "x$HAVE_LIBZ" = "x1"; then
41324 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41325fi
Alex Deymo486467e2017-12-19 19:04:07 +010041326if test "x$HAVE_BROTLI" = "x1"; then
41327 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41328fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041329if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41330 -o "x$USE_THREADS_WIN32" = "x1"; then
41331 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41332fi
41333if test "x$IDN_ENABLED" = "x1"; then
41334 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41335fi
41336if test "x$USE_WINDOWS_SSPI" = "x1"; then
41337 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41338fi
41339
41340if test "x$HAVE_GSSAPI" = "x1"; then
41341 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41342fi
41343
41344if test "x$curl_psl_msg" = "xyes"; then
41345 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41346fi
41347
41348if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41349 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41350 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41351fi
41352
41353if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41354 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41355 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41356fi
41357
41358if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41359 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41360 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41361 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41362 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41363
41364 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41365 "x$NTLM_WB_ENABLED" = "x1"; then
41366 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41367 fi
41368 fi
41369fi
41370
41371if test "x$USE_TLS_SRP" = "x1"; then
41372 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41373fi
41374
41375if test "x$USE_NGHTTP2" = "x1"; then
41376 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41377fi
41378
Alex Deymo486467e2017-12-19 19:04:07 +010041379if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41380 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41381fi
41382
Elliott Hughes82be86d2017-09-20 17:00:17 -070041383if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41384 -o "x$NSS_ENABLED" = "x1"; then
41385 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41386fi
41387
41388
41389
41390if test "x$CURL_DISABLE_HTTP" != "x1"; then
41391 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41392 if test "x$SSL_ENABLED" = "x1"; then
41393 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41394 fi
41395fi
41396if test "x$CURL_DISABLE_FTP" != "x1"; then
41397 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41398 if test "x$SSL_ENABLED" = "x1"; then
41399 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41400 fi
41401fi
41402if test "x$CURL_DISABLE_FILE" != "x1"; then
41403 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41404fi
41405if test "x$CURL_DISABLE_TELNET" != "x1"; then
41406 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41407fi
41408if test "x$CURL_DISABLE_LDAP" != "x1"; then
41409 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41410 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41411 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41412 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41413 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41414 fi
41415 fi
41416fi
41417if test "x$CURL_DISABLE_DICT" != "x1"; then
41418 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41419fi
41420if test "x$CURL_DISABLE_TFTP" != "x1"; then
41421 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41422fi
41423if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41424 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41425fi
41426if test "x$CURL_DISABLE_POP3" != "x1"; then
41427 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41428 if test "x$SSL_ENABLED" = "x1"; then
41429 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41430 fi
41431fi
41432if test "x$CURL_DISABLE_IMAP" != "x1"; then
41433 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41434 if test "x$SSL_ENABLED" = "x1"; then
41435 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41436 fi
41437fi
41438if test "x$CURL_DISABLE_SMB" != "x1" \
41439 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41440 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41441 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41442 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41443 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41444 if test "x$SSL_ENABLED" = "x1"; then
41445 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41446 fi
41447fi
41448if test "x$CURL_DISABLE_SMTP" != "x1"; then
41449 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41450 if test "x$SSL_ENABLED" = "x1"; then
41451 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41452 fi
41453fi
41454if test "x$USE_LIBSSH2" = "x1"; then
41455 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41456 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41457fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041458if test "x$USE_LIBSSH" = "x1"; then
41459 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41460 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41461fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041462if test "x$CURL_DISABLE_RTSP" != "x1"; then
41463 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41464fi
41465if test "x$USE_LIBRTMP" = "x1"; then
41466 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41467fi
41468
41469SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41470
41471
41472
41473
41474squeeze CFLAGS
41475squeeze CPPFLAGS
41476squeeze DEFS
41477squeeze LDFLAGS
41478squeeze LIBS
41479
41480squeeze LIBCURL_LIBS
41481squeeze CURL_NETWORK_LIBS
41482squeeze CURL_NETWORK_AND_TIME_LIBS
41483
41484squeeze SUPPORT_FEATURES
41485squeeze SUPPORT_PROTOCOLS
41486
41487
41488
41489 xc_bad_var_libs=no
41490 for xc_word in $LIBS; do
41491 case "$xc_word" in
41492 -l* | --library=*)
41493 :
41494 ;;
41495 *)
41496 xc_bad_var_libs=yes
41497 ;;
41498 esac
41499 done
41500 if test $xc_bad_var_libs = yes; then
41501 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41502$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41503 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41504$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41505 fi
41506
41507
41508 xc_bad_var_ldflags=no
41509 for xc_word in $LDFLAGS; do
41510 case "$xc_word" in
41511 -D*)
41512 xc_bad_var_ldflags=yes
41513 ;;
41514 -U*)
41515 xc_bad_var_ldflags=yes
41516 ;;
41517 -I*)
41518 xc_bad_var_ldflags=yes
41519 ;;
41520 -l* | --library=*)
41521 xc_bad_var_ldflags=yes
41522 ;;
41523 esac
41524 done
41525 if test $xc_bad_var_ldflags = yes; then
41526 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41527$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41528 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41529 for xc_word in $LDFLAGS; do
41530 case "$xc_word" in
41531 -D*)
41532 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41533$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41534 ;;
41535 -U*)
41536 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41537$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41538 ;;
41539 -I*)
41540 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41541$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41542 ;;
41543 -l* | --library=*)
41544 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41545$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41546 ;;
41547 esac
41548 done
41549 fi
41550
41551
41552 xc_bad_var_cppflags=no
41553 for xc_word in $CPPFLAGS; do
41554 case "$xc_word" in
41555 -rpath*)
41556 xc_bad_var_cppflags=yes
41557 ;;
41558 -L* | --library-path=*)
41559 xc_bad_var_cppflags=yes
41560 ;;
41561 -l* | --library=*)
41562 xc_bad_var_cppflags=yes
41563 ;;
41564 esac
41565 done
41566 if test $xc_bad_var_cppflags = yes; then
41567 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41568$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41569 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41570 for xc_word in $CPPFLAGS; do
41571 case "$xc_word" in
41572 -rpath*)
41573 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41574$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41575 ;;
41576 -L* | --library-path=*)
41577 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41578$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41579 ;;
41580 -l* | --library=*)
41581 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41582$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41583 ;;
41584 esac
41585 done
41586 fi
41587
41588
41589 xc_bad_var_cflags=no
41590 for xc_word in $CFLAGS; do
41591 case "$xc_word" in
41592 -D*)
41593 xc_bad_var_cflags=yes
41594 ;;
41595 -U*)
41596 xc_bad_var_cflags=yes
41597 ;;
41598 -I*)
41599 xc_bad_var_cflags=yes
41600 ;;
41601 -rpath*)
41602 xc_bad_var_cflags=yes
41603 ;;
41604 -L* | --library-path=*)
41605 xc_bad_var_cflags=yes
41606 ;;
41607 -l* | --library=*)
41608 xc_bad_var_cflags=yes
41609 ;;
41610 esac
41611 done
41612 if test $xc_bad_var_cflags = yes; then
41613 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41614$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41615 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41616 for xc_word in $CFLAGS; do
41617 case "$xc_word" in
41618 -D*)
41619 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41620$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41621 ;;
41622 -U*)
41623 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41624$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41625 ;;
41626 -I*)
41627 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41628$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41629 ;;
41630 -rpath*)
41631 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41632$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41633 ;;
41634 -L* | --library-path=*)
41635 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41636$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41637 ;;
41638 -l* | --library=*)
41639 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41640$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41641 ;;
41642 esac
41643 done
41644 fi
41645
41646 if test $xc_bad_var_libs = yes ||
41647 test $xc_bad_var_cflags = yes ||
41648 test $xc_bad_var_ldflags = yes ||
41649 test $xc_bad_var_cppflags = yes; then
41650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41651$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41652 fi
41653
41654
Elliott Hughes0128fe42018-02-27 14:57:55 -080041655SSL_BACKENDS=${ssl_backends}
41656
41657
Elliott Hughes82be86d2017-09-20 17:00:17 -070041658if test "x$want_curldebug_assumed" = "xyes" &&
41659 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41660 ac_configure_args="$ac_configure_args --enable-curldebug"
41661fi
41662
Alex Deymo486467e2017-12-19 19:04:07 +010041663ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041664
41665cat >confcache <<\_ACEOF
41666# This file is a shell script that caches the results of configure
41667# tests run on this system so they can be shared between configure
41668# scripts and configure runs, see configure's option --config-cache.
41669# It is not useful on other systems. If it contains results you don't
41670# want to keep, you may remove or edit it.
41671#
41672# config.status only pays attention to the cache file if you give it
41673# the --recheck option to rerun configure.
41674#
41675# `ac_cv_env_foo' variables (set or unset) will be overridden when
41676# loading this file, other *unset* `ac_cv_foo' will be assigned the
41677# following values.
41678
41679_ACEOF
41680
41681# The following way of writing the cache mishandles newlines in values,
41682# but we know of no workaround that is simple, portable, and efficient.
41683# So, we kill variables containing newlines.
41684# Ultrix sh set writes to stderr and can't be redirected directly,
41685# and sets the high bit in the cache file unless we assign to the vars.
41686(
41687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41688 eval ac_val=\$$ac_var
41689 case $ac_val in #(
41690 *${as_nl}*)
41691 case $ac_var in #(
41692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41694 esac
41695 case $ac_var in #(
41696 _ | IFS | as_nl) ;; #(
41697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41698 *) { eval $ac_var=; unset $ac_var;} ;;
41699 esac ;;
41700 esac
41701 done
41702
41703 (set) 2>&1 |
41704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41705 *${as_nl}ac_space=\ *)
41706 # `set' does not quote correctly, so add quotes: double-quote
41707 # substitution turns \\\\ into \\, and sed turns \\ into \.
41708 sed -n \
41709 "s/'/'\\\\''/g;
41710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41711 ;; #(
41712 *)
41713 # `set' quotes correctly as required by POSIX, so do not add quotes.
41714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41715 ;;
41716 esac |
41717 sort
41718) |
41719 sed '
41720 /^ac_cv_env_/b end
41721 t clear
41722 :clear
41723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41724 t end
41725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41726 :end' >>confcache
41727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41728 if test -w "$cache_file"; then
41729 if test "x$cache_file" != "x/dev/null"; then
41730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41731$as_echo "$as_me: updating cache $cache_file" >&6;}
41732 if test ! -f "$cache_file" || test -h "$cache_file"; then
41733 cat confcache >"$cache_file"
41734 else
41735 case $cache_file in #(
41736 */* | ?:*)
41737 mv -f confcache "$cache_file"$$ &&
41738 mv -f "$cache_file"$$ "$cache_file" ;; #(
41739 *)
41740 mv -f confcache "$cache_file" ;;
41741 esac
41742 fi
41743 fi
41744 else
41745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41746$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41747 fi
41748fi
41749rm -f confcache
41750
41751test "x$prefix" = xNONE && prefix=$ac_default_prefix
41752# Let make expand exec_prefix.
41753test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41754
41755DEFS=-DHAVE_CONFIG_H
41756
41757ac_libobjs=
41758ac_ltlibobjs=
41759U=
41760for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41761 # 1. Remove the extension, and $U if already installed.
41762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41765 # will be set to the directory where LIBOBJS objects are built.
41766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41768done
41769LIBOBJS=$ac_libobjs
41770
41771LTLIBOBJS=$ac_ltlibobjs
41772
41773
41774if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41775 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41776Usually this means the macro was only invoked conditionally." "$LINENO" 5
41777fi
41778if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41779 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41780Usually this means the macro was only invoked conditionally." "$LINENO" 5
41781fi
41782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41783$as_echo_n "checking that generated files are newer than configure... " >&6; }
41784 if test -n "$am_sleep_pid"; then
41785 # Hide warnings about reused PIDs.
41786 wait $am_sleep_pid 2>/dev/null
41787 fi
41788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41789$as_echo "done" >&6; }
41790if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41791 as_fn_error $? "conditional \"AMDEP\" was never defined.
41792Usually this means the macro was only invoked conditionally." "$LINENO" 5
41793fi
41794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41796Usually this means the macro was only invoked conditionally." "$LINENO" 5
41797fi
41798 if test -n "$EXEEXT"; then
41799 am__EXEEXT_TRUE=
41800 am__EXEEXT_FALSE='#'
41801else
41802 am__EXEEXT_TRUE='#'
41803 am__EXEEXT_FALSE=
41804fi
41805
41806if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41807 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41808Usually this means the macro was only invoked conditionally." "$LINENO" 5
41809fi
41810if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41811 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41812Usually this means the macro was only invoked conditionally." "$LINENO" 5
41813fi
41814if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41815 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41816Usually this means the macro was only invoked conditionally." "$LINENO" 5
41817fi
41818if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41819 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41820Usually this means the macro was only invoked conditionally." "$LINENO" 5
41821fi
41822if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41823 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41824Usually this means the macro was only invoked conditionally." "$LINENO" 5
41825fi
41826if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41827 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41828Usually this means the macro was only invoked conditionally." "$LINENO" 5
41829fi
41830if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41831 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41832Usually this means the macro was only invoked conditionally." "$LINENO" 5
41833fi
41834if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41835 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41836Usually this means the macro was only invoked conditionally." "$LINENO" 5
41837fi
41838if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41839 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41840Usually this means the macro was only invoked conditionally." "$LINENO" 5
41841fi
Alex Deymo486467e2017-12-19 19:04:07 +010041842if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41843 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41844Usually this means the macro was only invoked conditionally." "$LINENO" 5
41845fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041846if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41847 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41848Usually this means the macro was only invoked conditionally." "$LINENO" 5
41849fi
41850if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41851 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41852Usually this means the macro was only invoked conditionally." "$LINENO" 5
41853fi
41854if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41855 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41856Usually this means the macro was only invoked conditionally." "$LINENO" 5
41857fi
41858if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41859 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41860Usually this means the macro was only invoked conditionally." "$LINENO" 5
41861fi
41862if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41863 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41864Usually this means the macro was only invoked conditionally." "$LINENO" 5
41865fi
41866if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41867 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41868Usually this means the macro was only invoked conditionally." "$LINENO" 5
41869fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041870if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41871 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41872Usually this means the macro was only invoked conditionally." "$LINENO" 5
41873fi
41874
41875: "${CONFIG_STATUS=./config.status}"
41876ac_write_fail=0
41877ac_clean_files_save=$ac_clean_files
41878ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41879{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41880$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41881as_write_fail=0
41882cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41883#! $SHELL
41884# Generated by $as_me.
41885# Run this file to recreate the current configuration.
41886# Compiler output produced by configure, useful for debugging
41887# configure, is in config.log if it exists.
41888
41889debug=false
41890ac_cs_recheck=false
41891ac_cs_silent=false
41892
41893SHELL=\${CONFIG_SHELL-$SHELL}
41894export SHELL
41895_ASEOF
41896cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41897## -------------------- ##
41898## M4sh Initialization. ##
41899## -------------------- ##
41900
41901# Be more Bourne compatible
41902DUALCASE=1; export DUALCASE # for MKS sh
41903if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41904 emulate sh
41905 NULLCMD=:
41906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41907 # is contrary to our usage. Disable this feature.
41908 alias -g '${1+"$@"}'='"$@"'
41909 setopt NO_GLOB_SUBST
41910else
41911 case `(set -o) 2>/dev/null` in #(
41912 *posix*) :
41913 set -o posix ;; #(
41914 *) :
41915 ;;
41916esac
41917fi
41918
41919
41920as_nl='
41921'
41922export as_nl
41923# Printing a long string crashes Solaris 7 /usr/bin/printf.
41924as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41927# Prefer a ksh shell builtin over an external printf program on Solaris,
41928# but without wasting forks for bash or zsh.
41929if test -z "$BASH_VERSION$ZSH_VERSION" \
41930 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41931 as_echo='print -r --'
41932 as_echo_n='print -rn --'
41933elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41934 as_echo='printf %s\n'
41935 as_echo_n='printf %s'
41936else
41937 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41938 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41939 as_echo_n='/usr/ucb/echo -n'
41940 else
41941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41942 as_echo_n_body='eval
41943 arg=$1;
41944 case $arg in #(
41945 *"$as_nl"*)
41946 expr "X$arg" : "X\\(.*\\)$as_nl";
41947 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41948 esac;
41949 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41950 '
41951 export as_echo_n_body
41952 as_echo_n='sh -c $as_echo_n_body as_echo'
41953 fi
41954 export as_echo_body
41955 as_echo='sh -c $as_echo_body as_echo'
41956fi
41957
41958
41959
41960# IFS
41961# We need space, tab and new line, in precisely that order. Quoting is
41962# there to prevent editors from complaining about space-tab.
41963# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41964# splitting by setting IFS to empty value.)
41965IFS=" "" $as_nl"
41966
41967# Find who we are. Look in the path if we contain no directory separator.
41968as_myself=
41969case $0 in #((
41970 *[\\/]* ) as_myself=$0 ;;
41971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41972for as_dir in $PATH
41973do
41974 IFS=$as_save_IFS
41975 test -z "$as_dir" && as_dir=.
41976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41977 done
41978IFS=$as_save_IFS
41979
41980 ;;
41981esac
41982# We did not find ourselves, most probably we were run as `sh COMMAND'
41983# in which case we are not to be found in the path.
41984if test "x$as_myself" = x; then
41985 as_myself=$0
41986fi
41987if test ! -f "$as_myself"; then
41988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41989 exit 1
41990fi
41991
41992# Unset variables that we do not need and which cause bugs (e.g. in
41993# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41994# suppresses any "Segmentation fault" message there. '((' could
41995# trigger a bug in pdksh 5.2.14.
41996for as_var in BASH_ENV ENV MAIL MAILPATH
41997do eval test x\${$as_var+set} = xset \
41998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41999done
42000PS1='$ '
42001PS2='> '
42002PS4='+ '
42003
42004# NLS nuisances.
42005LC_ALL=C
42006export LC_ALL
42007LANGUAGE=C
42008export LANGUAGE
42009
42010# CDPATH.
42011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42012
42013
42014# as_fn_error STATUS ERROR [LINENO LOG_FD]
42015# ----------------------------------------
42016# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42017# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42018# script with STATUS, using 1 if that was 0.
42019as_fn_error ()
42020{
42021 as_status=$1; test $as_status -eq 0 && as_status=1
42022 if test "$4"; then
42023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42025 fi
42026 $as_echo "$as_me: error: $2" >&2
42027 as_fn_exit $as_status
42028} # as_fn_error
42029
42030
42031# as_fn_set_status STATUS
42032# -----------------------
42033# Set $? to STATUS, without forking.
42034as_fn_set_status ()
42035{
42036 return $1
42037} # as_fn_set_status
42038
42039# as_fn_exit STATUS
42040# -----------------
42041# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42042as_fn_exit ()
42043{
42044 set +e
42045 as_fn_set_status $1
42046 exit $1
42047} # as_fn_exit
42048
42049# as_fn_unset VAR
42050# ---------------
42051# Portably unset VAR.
42052as_fn_unset ()
42053{
42054 { eval $1=; unset $1;}
42055}
42056as_unset=as_fn_unset
42057# as_fn_append VAR VALUE
42058# ----------------------
42059# Append the text in VALUE to the end of the definition contained in VAR. Take
42060# advantage of any shell optimizations that allow amortized linear growth over
42061# repeated appends, instead of the typical quadratic growth present in naive
42062# implementations.
42063if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42064 eval 'as_fn_append ()
42065 {
42066 eval $1+=\$2
42067 }'
42068else
42069 as_fn_append ()
42070 {
42071 eval $1=\$$1\$2
42072 }
42073fi # as_fn_append
42074
42075# as_fn_arith ARG...
42076# ------------------
42077# Perform arithmetic evaluation on the ARGs, and store the result in the
42078# global $as_val. Take advantage of shells that can avoid forks. The arguments
42079# must be portable across $(()) and expr.
42080if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42081 eval 'as_fn_arith ()
42082 {
42083 as_val=$(( $* ))
42084 }'
42085else
42086 as_fn_arith ()
42087 {
42088 as_val=`expr "$@" || test $? -eq 1`
42089 }
42090fi # as_fn_arith
42091
42092
42093if expr a : '\(a\)' >/dev/null 2>&1 &&
42094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42095 as_expr=expr
42096else
42097 as_expr=false
42098fi
42099
42100if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42101 as_basename=basename
42102else
42103 as_basename=false
42104fi
42105
42106if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42107 as_dirname=dirname
42108else
42109 as_dirname=false
42110fi
42111
42112as_me=`$as_basename -- "$0" ||
42113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42114 X"$0" : 'X\(//\)$' \| \
42115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42116$as_echo X/"$0" |
42117 sed '/^.*\/\([^/][^/]*\)\/*$/{
42118 s//\1/
42119 q
42120 }
42121 /^X\/\(\/\/\)$/{
42122 s//\1/
42123 q
42124 }
42125 /^X\/\(\/\).*/{
42126 s//\1/
42127 q
42128 }
42129 s/.*/./; q'`
42130
42131# Avoid depending upon Character Ranges.
42132as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42133as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42134as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42135as_cr_digits='0123456789'
42136as_cr_alnum=$as_cr_Letters$as_cr_digits
42137
42138ECHO_C= ECHO_N= ECHO_T=
42139case `echo -n x` in #(((((
42140-n*)
42141 case `echo 'xy\c'` in
42142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42143 xy) ECHO_C='\c';;
42144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42145 ECHO_T=' ';;
42146 esac;;
42147*)
42148 ECHO_N='-n';;
42149esac
42150
42151rm -f conf$$ conf$$.exe conf$$.file
42152if test -d conf$$.dir; then
42153 rm -f conf$$.dir/conf$$.file
42154else
42155 rm -f conf$$.dir
42156 mkdir conf$$.dir 2>/dev/null
42157fi
42158if (echo >conf$$.file) 2>/dev/null; then
42159 if ln -s conf$$.file conf$$ 2>/dev/null; then
42160 as_ln_s='ln -s'
42161 # ... but there are two gotchas:
42162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42164 # In both cases, we have to default to `cp -pR'.
42165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42166 as_ln_s='cp -pR'
42167 elif ln conf$$.file conf$$ 2>/dev/null; then
42168 as_ln_s=ln
42169 else
42170 as_ln_s='cp -pR'
42171 fi
42172else
42173 as_ln_s='cp -pR'
42174fi
42175rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42176rmdir conf$$.dir 2>/dev/null
42177
42178
42179# as_fn_mkdir_p
42180# -------------
42181# Create "$as_dir" as a directory, including parents if necessary.
42182as_fn_mkdir_p ()
42183{
42184
42185 case $as_dir in #(
42186 -*) as_dir=./$as_dir;;
42187 esac
42188 test -d "$as_dir" || eval $as_mkdir_p || {
42189 as_dirs=
42190 while :; do
42191 case $as_dir in #(
42192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42193 *) as_qdir=$as_dir;;
42194 esac
42195 as_dirs="'$as_qdir' $as_dirs"
42196 as_dir=`$as_dirname -- "$as_dir" ||
42197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42198 X"$as_dir" : 'X\(//\)[^/]' \| \
42199 X"$as_dir" : 'X\(//\)$' \| \
42200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42201$as_echo X"$as_dir" |
42202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42203 s//\1/
42204 q
42205 }
42206 /^X\(\/\/\)[^/].*/{
42207 s//\1/
42208 q
42209 }
42210 /^X\(\/\/\)$/{
42211 s//\1/
42212 q
42213 }
42214 /^X\(\/\).*/{
42215 s//\1/
42216 q
42217 }
42218 s/.*/./; q'`
42219 test -d "$as_dir" && break
42220 done
42221 test -z "$as_dirs" || eval "mkdir $as_dirs"
42222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42223
42224
42225} # as_fn_mkdir_p
42226if mkdir -p . 2>/dev/null; then
42227 as_mkdir_p='mkdir -p "$as_dir"'
42228else
42229 test -d ./-p && rmdir ./-p
42230 as_mkdir_p=false
42231fi
42232
42233
42234# as_fn_executable_p FILE
42235# -----------------------
42236# Test if FILE is an executable regular file.
42237as_fn_executable_p ()
42238{
42239 test -f "$1" && test -x "$1"
42240} # as_fn_executable_p
42241as_test_x='test -x'
42242as_executable_p=as_fn_executable_p
42243
42244# Sed expression to map a string onto a valid CPP name.
42245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42246
42247# Sed expression to map a string onto a valid variable name.
42248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42249
42250
42251exec 6>&1
42252## ----------------------------------- ##
42253## Main body of $CONFIG_STATUS script. ##
42254## ----------------------------------- ##
42255_ASEOF
42256test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42257
42258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42259# Save the log message, to keep $0 and so on meaningful, and to
42260# report actual input values of CONFIG_FILES etc. instead of their
42261# values after options handling.
42262ac_log="
42263This file was extended by curl $as_me -, which was
42264generated by GNU Autoconf 2.69. Invocation command line was
42265
42266 CONFIG_FILES = $CONFIG_FILES
42267 CONFIG_HEADERS = $CONFIG_HEADERS
42268 CONFIG_LINKS = $CONFIG_LINKS
42269 CONFIG_COMMANDS = $CONFIG_COMMANDS
42270 $ $0 $@
42271
42272on `(hostname || uname -n) 2>/dev/null | sed 1q`
42273"
42274
42275_ACEOF
42276
42277case $ac_config_files in *"
42278"*) set x $ac_config_files; shift; ac_config_files=$*;;
42279esac
42280
42281case $ac_config_headers in *"
42282"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42283esac
42284
42285
42286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42287# Files that config.status was made for.
42288config_files="$ac_config_files"
42289config_headers="$ac_config_headers"
42290config_commands="$ac_config_commands"
42291
42292_ACEOF
42293
42294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42295ac_cs_usage="\
42296\`$as_me' instantiates files and other configuration actions
42297from templates according to the current configuration. Unless the files
42298and actions are specified as TAGs, all are instantiated by default.
42299
42300Usage: $0 [OPTION]... [TAG]...
42301
42302 -h, --help print this help, then exit
42303 -V, --version print version number and configuration settings, then exit
42304 --config print configuration, then exit
42305 -q, --quiet, --silent
42306 do not print progress messages
42307 -d, --debug don't remove temporary files
42308 --recheck update $as_me by reconfiguring in the same conditions
42309 --file=FILE[:TEMPLATE]
42310 instantiate the configuration file FILE
42311 --header=FILE[:TEMPLATE]
42312 instantiate the configuration header FILE
42313
42314Configuration files:
42315$config_files
42316
42317Configuration headers:
42318$config_headers
42319
42320Configuration commands:
42321$config_commands
42322
42323Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42324
42325_ACEOF
42326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42327ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42328ac_cs_version="\\
42329curl config.status -
42330configured by $0, generated by GNU Autoconf 2.69,
42331 with options \\"\$ac_cs_config\\"
42332
42333Copyright (C) 2012 Free Software Foundation, Inc.
42334This config.status script is free software; the Free Software Foundation
42335gives unlimited permission to copy, distribute and modify it."
42336
42337ac_pwd='$ac_pwd'
42338srcdir='$srcdir'
42339INSTALL='$INSTALL'
42340MKDIR_P='$MKDIR_P'
42341AWK='$AWK'
42342test -n "\$AWK" || AWK=awk
42343_ACEOF
42344
42345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42346# The default lists apply if the user does not specify any file.
42347ac_need_defaults=:
42348while test $# != 0
42349do
42350 case $1 in
42351 --*=?*)
42352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42354 ac_shift=:
42355 ;;
42356 --*=)
42357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42358 ac_optarg=
42359 ac_shift=:
42360 ;;
42361 *)
42362 ac_option=$1
42363 ac_optarg=$2
42364 ac_shift=shift
42365 ;;
42366 esac
42367
42368 case $ac_option in
42369 # Handling of the options.
42370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42371 ac_cs_recheck=: ;;
42372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42373 $as_echo "$ac_cs_version"; exit ;;
42374 --config | --confi | --conf | --con | --co | --c )
42375 $as_echo "$ac_cs_config"; exit ;;
42376 --debug | --debu | --deb | --de | --d | -d )
42377 debug=: ;;
42378 --file | --fil | --fi | --f )
42379 $ac_shift
42380 case $ac_optarg in
42381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42382 '') as_fn_error $? "missing file argument" ;;
42383 esac
42384 as_fn_append CONFIG_FILES " '$ac_optarg'"
42385 ac_need_defaults=false;;
42386 --header | --heade | --head | --hea )
42387 $ac_shift
42388 case $ac_optarg in
42389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42390 esac
42391 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42392 ac_need_defaults=false;;
42393 --he | --h)
42394 # Conflict between --help and --header
42395 as_fn_error $? "ambiguous option: \`$1'
42396Try \`$0 --help' for more information.";;
42397 --help | --hel | -h )
42398 $as_echo "$ac_cs_usage"; exit ;;
42399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42401 ac_cs_silent=: ;;
42402
42403 # This is an error.
42404 -*) as_fn_error $? "unrecognized option: \`$1'
42405Try \`$0 --help' for more information." ;;
42406
42407 *) as_fn_append ac_config_targets " $1"
42408 ac_need_defaults=false ;;
42409
42410 esac
42411 shift
42412done
42413
42414ac_configure_extra_args=
42415
42416if $ac_cs_silent; then
42417 exec 6>/dev/null
42418 ac_configure_extra_args="$ac_configure_extra_args --silent"
42419fi
42420
42421_ACEOF
42422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42423if \$ac_cs_recheck; then
42424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42425 shift
42426 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42427 CONFIG_SHELL='$SHELL'
42428 export CONFIG_SHELL
42429 exec "\$@"
42430fi
42431
42432_ACEOF
42433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42434exec 5>>config.log
42435{
42436 echo
42437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42438## Running $as_me. ##
42439_ASBOX
42440 $as_echo "$ac_log"
42441} >&5
42442
42443_ACEOF
42444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42445#
42446# INIT-COMMANDS
42447#
42448AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42449
42450
42451# The HP-UX ksh and POSIX shell print the target directory to stdout
42452# if CDPATH is set.
42453(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42454
42455sed_quote_subst='$sed_quote_subst'
42456double_quote_subst='$double_quote_subst'
42457delay_variable_subst='$delay_variable_subst'
42458macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42459macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42460AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42461DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42462OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42463enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42464enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42465pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42466enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42467shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42468SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42469ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42470PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42471host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42472host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42473host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42474build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42475build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42476build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42477SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42478Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42479GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42480EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42481FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42482LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42483NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42484LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42485max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42486ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42487exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42488lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42489lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42490lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42491lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42492lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42493reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42494reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42495deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42496file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42497file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42498want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42499sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42500AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42501AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42502archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42503STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42504RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42505old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42506old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42507old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42508lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42509CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42510CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42511compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42512GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42513lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42514lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42515lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42516lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42517lt_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"`'
42518lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42519nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42520lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42521lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42522objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42523MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42524lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42525lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42526lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42527lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42528lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42529need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42530MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42531DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42532NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42533LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42534OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42535OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42536libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42537shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42538extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42539archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42540enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42541export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42542whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42543compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42544old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42545old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42546archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42547archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42548module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42549module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42550with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42551allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42552no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42553hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42554hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42555hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42556hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42557hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42558hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42559hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42560inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42561link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42562always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42563export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42564exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42565include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42566prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42567postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42568file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42569variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42570need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42571need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42572version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42573runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42574shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42575shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42576libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42577library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42578soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42579install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42580postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42581postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42582finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42583finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42584hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42585sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42586configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42587configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42588hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42589enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42590enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42591enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42592old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42593striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42594
42595LTCC='$LTCC'
42596LTCFLAGS='$LTCFLAGS'
42597compiler='$compiler_DEFAULT'
42598
42599# A function that is used when there is no print builtin or printf.
42600func_fallback_echo ()
42601{
42602 eval 'cat <<_LTECHO_EOF
42603\$1
42604_LTECHO_EOF'
42605}
42606
42607# Quote evaled strings.
42608for var in AS \
42609DLLTOOL \
42610OBJDUMP \
42611SHELL \
42612ECHO \
42613PATH_SEPARATOR \
42614SED \
42615GREP \
42616EGREP \
42617FGREP \
42618LD \
42619NM \
42620LN_S \
42621lt_SP2NL \
42622lt_NL2SP \
42623reload_flag \
42624deplibs_check_method \
42625file_magic_cmd \
42626file_magic_glob \
42627want_nocaseglob \
42628sharedlib_from_linklib_cmd \
42629AR \
42630AR_FLAGS \
42631archiver_list_spec \
42632STRIP \
42633RANLIB \
42634CC \
42635CFLAGS \
42636compiler \
42637lt_cv_sys_global_symbol_pipe \
42638lt_cv_sys_global_symbol_to_cdecl \
42639lt_cv_sys_global_symbol_to_import \
42640lt_cv_sys_global_symbol_to_c_name_address \
42641lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42642lt_cv_nm_interface \
42643nm_file_list_spec \
42644lt_cv_truncate_bin \
42645lt_prog_compiler_no_builtin_flag \
42646lt_prog_compiler_pic \
42647lt_prog_compiler_wl \
42648lt_prog_compiler_static \
42649lt_cv_prog_compiler_c_o \
42650need_locks \
42651MANIFEST_TOOL \
42652DSYMUTIL \
42653NMEDIT \
42654LIPO \
42655OTOOL \
42656OTOOL64 \
42657shrext_cmds \
42658export_dynamic_flag_spec \
42659whole_archive_flag_spec \
42660compiler_needs_object \
42661with_gnu_ld \
42662allow_undefined_flag \
42663no_undefined_flag \
42664hardcode_libdir_flag_spec \
42665hardcode_libdir_separator \
42666exclude_expsyms \
42667include_expsyms \
42668file_list_spec \
42669variables_saved_for_relink \
42670libname_spec \
42671library_names_spec \
42672soname_spec \
42673install_override_mode \
42674finish_eval \
42675old_striplib \
42676striplib; do
42677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42678 *[\\\\\\\`\\"\\\$]*)
42679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42680 ;;
42681 *)
42682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42683 ;;
42684 esac
42685done
42686
42687# Double-quote double-evaled strings.
42688for var in reload_cmds \
42689old_postinstall_cmds \
42690old_postuninstall_cmds \
42691old_archive_cmds \
42692extract_expsyms_cmds \
42693old_archive_from_new_cmds \
42694old_archive_from_expsyms_cmds \
42695archive_cmds \
42696archive_expsym_cmds \
42697module_cmds \
42698module_expsym_cmds \
42699export_symbols_cmds \
42700prelink_cmds \
42701postlink_cmds \
42702postinstall_cmds \
42703postuninstall_cmds \
42704finish_cmds \
42705sys_lib_search_path_spec \
42706configure_time_dlsearch_path \
42707configure_time_lt_sys_library_path; do
42708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42709 *[\\\\\\\`\\"\\\$]*)
42710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42711 ;;
42712 *)
42713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42714 ;;
42715 esac
42716done
42717
42718ac_aux_dir='$ac_aux_dir'
42719
42720# See if we are running on zsh, and set the options that allow our
42721# commands through without removal of \ escapes INIT.
42722if test -n "\${ZSH_VERSION+set}"; then
42723 setopt NO_GLOB_SUBST
42724fi
42725
42726
42727 PACKAGE='$PACKAGE'
42728 VERSION='$VERSION'
42729 RM='$RM'
42730 ofile='$ofile'
42731
42732
42733
42734
42735_ACEOF
42736
42737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42738
42739# Handling of arguments.
42740for ac_config_target in $ac_config_targets
42741do
42742 case $ac_config_target in
42743 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42744 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42745 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42746 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42747 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42748 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42749 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42750 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42751 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42752 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42753 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42754 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42755 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42756 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42757 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42758 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42759 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42760 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42761 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42762 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42763 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42764 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042765 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42766 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42767 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42768 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42769 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42770 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42771 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42772 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42773 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42774 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42775 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42776 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42777 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42778 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42779 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42780 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42781
42782 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42783 esac
42784done
42785
42786
42787# If the user did not use the arguments to specify the items to instantiate,
42788# then the envvar interface is used. Set only those that are not.
42789# We use the long form for the default assignment because of an extremely
42790# bizarre bug on SunOS 4.1.3.
42791if $ac_need_defaults; then
42792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42795fi
42796
42797# Have a temporary directory for convenience. Make it in the build tree
42798# simply because there is no reason against having it here, and in addition,
42799# creating and moving files from /tmp can sometimes cause problems.
42800# Hook for its removal unless debugging.
42801# Note that there is a small window in which the directory will not be cleaned:
42802# after its creation but before its name has been assigned to `$tmp'.
42803$debug ||
42804{
42805 tmp= ac_tmp=
42806 trap 'exit_status=$?
42807 : "${ac_tmp:=$tmp}"
42808 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42809' 0
42810 trap 'as_fn_exit 1' 1 2 13 15
42811}
42812# Create a (secure) tmp directory for tmp files.
42813
42814{
42815 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42816 test -d "$tmp"
42817} ||
42818{
42819 tmp=./conf$$-$RANDOM
42820 (umask 077 && mkdir "$tmp")
42821} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42822ac_tmp=$tmp
42823
42824# Set up the scripts for CONFIG_FILES section.
42825# No need to generate them if there are no CONFIG_FILES.
42826# This happens for instance with `./config.status config.h'.
42827if test -n "$CONFIG_FILES"; then
42828
42829
42830ac_cr=`echo X | tr X '\015'`
42831# On cygwin, bash can eat \r inside `` if the user requested igncr.
42832# But we know of no other shell where ac_cr would be empty at this
42833# point, so we can use a bashism as a fallback.
42834if test "x$ac_cr" = x; then
42835 eval ac_cr=\$\'\\r\'
42836fi
42837ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42838if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42839 ac_cs_awk_cr='\\r'
42840else
42841 ac_cs_awk_cr=$ac_cr
42842fi
42843
42844echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42845_ACEOF
42846
42847
42848{
42849 echo "cat >conf$$subs.awk <<_ACEOF" &&
42850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42851 echo "_ACEOF"
42852} >conf$$subs.sh ||
42853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42854ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42855ac_delim='%!_!# '
42856for ac_last_try in false false false false false :; do
42857 . ./conf$$subs.sh ||
42858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42859
42860 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42861 if test $ac_delim_n = $ac_delim_num; then
42862 break
42863 elif $ac_last_try; then
42864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42865 else
42866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42867 fi
42868done
42869rm -f conf$$subs.sh
42870
42871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42872cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42873_ACEOF
42874sed -n '
42875h
42876s/^/S["/; s/!.*/"]=/
42877p
42878g
42879s/^[^!]*!//
42880:repl
42881t repl
42882s/'"$ac_delim"'$//
42883t delim
42884:nl
42885h
42886s/\(.\{148\}\)..*/\1/
42887t more1
42888s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42889p
42890n
42891b repl
42892:more1
42893s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42894p
42895g
42896s/.\{148\}//
42897t nl
42898:delim
42899h
42900s/\(.\{148\}\)..*/\1/
42901t more2
42902s/["\\]/\\&/g; s/^/"/; s/$/"/
42903p
42904b
42905:more2
42906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42907p
42908g
42909s/.\{148\}//
42910t delim
42911' <conf$$subs.awk | sed '
42912/^[^""]/{
42913 N
42914 s/\n//
42915}
42916' >>$CONFIG_STATUS || ac_write_fail=1
42917rm -f conf$$subs.awk
42918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42919_ACAWK
42920cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42921 for (key in S) S_is_set[key] = 1
42922 FS = ""
42923
42924}
42925{
42926 line = $ 0
42927 nfields = split(line, field, "@")
42928 substed = 0
42929 len = length(field[1])
42930 for (i = 2; i < nfields; i++) {
42931 key = field[i]
42932 keylen = length(key)
42933 if (S_is_set[key]) {
42934 value = S[key]
42935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42936 len += length(value) + length(field[++i])
42937 substed = 1
42938 } else
42939 len += 1 + keylen
42940 }
42941
42942 print line
42943}
42944
42945_ACAWK
42946_ACEOF
42947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42948if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42950else
42951 cat
42952fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42953 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42954_ACEOF
42955
42956# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42957# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42958# trailing colons and then remove the whole line if VPATH becomes empty
42959# (actually we leave an empty line to preserve line numbers).
42960if test "x$srcdir" = x.; then
42961 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42962h
42963s///
42964s/^/:/
42965s/[ ]*$/:/
42966s/:\$(srcdir):/:/g
42967s/:\${srcdir}:/:/g
42968s/:@srcdir@:/:/g
42969s/^:*//
42970s/:*$//
42971x
42972s/\(=[ ]*\).*/\1/
42973G
42974s/\n//
42975s/^[^=]*=[ ]*$//
42976}'
42977fi
42978
42979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42980fi # test -n "$CONFIG_FILES"
42981
42982# Set up the scripts for CONFIG_HEADERS section.
42983# No need to generate them if there are no CONFIG_HEADERS.
42984# This happens for instance with `./config.status Makefile'.
42985if test -n "$CONFIG_HEADERS"; then
42986cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42987BEGIN {
42988_ACEOF
42989
42990# Transform confdefs.h into an awk script `defines.awk', embedded as
42991# here-document in config.status, that substitutes the proper values into
42992# config.h.in to produce config.h.
42993
42994# Create a delimiter string that does not exist in confdefs.h, to ease
42995# handling of long lines.
42996ac_delim='%!_!# '
42997for ac_last_try in false false :; do
42998 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42999 if test -z "$ac_tt"; then
43000 break
43001 elif $ac_last_try; then
43002 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43003 else
43004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43005 fi
43006done
43007
43008# For the awk script, D is an array of macro values keyed by name,
43009# likewise P contains macro parameters if any. Preserve backslash
43010# newline sequences.
43011
43012ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43013sed -n '
43014s/.\{148\}/&'"$ac_delim"'/g
43015t rset
43016:rset
43017s/^[ ]*#[ ]*define[ ][ ]*/ /
43018t def
43019d
43020:def
43021s/\\$//
43022t bsnl
43023s/["\\]/\\&/g
43024s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43025D["\1"]=" \3"/p
43026s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43027d
43028:bsnl
43029s/["\\]/\\&/g
43030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43031D["\1"]=" \3\\\\\\n"\\/p
43032t cont
43033s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43034t cont
43035d
43036:cont
43037n
43038s/.\{148\}/&'"$ac_delim"'/g
43039t clear
43040:clear
43041s/\\$//
43042t bsnlc
43043s/["\\]/\\&/g; s/^/"/; s/$/"/p
43044d
43045:bsnlc
43046s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43047b cont
43048' <confdefs.h | sed '
43049s/'"$ac_delim"'/"\\\
43050"/g' >>$CONFIG_STATUS || ac_write_fail=1
43051
43052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43053 for (key in D) D_is_set[key] = 1
43054 FS = ""
43055}
43056/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43057 line = \$ 0
43058 split(line, arg, " ")
43059 if (arg[1] == "#") {
43060 defundef = arg[2]
43061 mac1 = arg[3]
43062 } else {
43063 defundef = substr(arg[1], 2)
43064 mac1 = arg[2]
43065 }
43066 split(mac1, mac2, "(") #)
43067 macro = mac2[1]
43068 prefix = substr(line, 1, index(line, defundef) - 1)
43069 if (D_is_set[macro]) {
43070 # Preserve the white space surrounding the "#".
43071 print prefix "define", macro P[macro] D[macro]
43072 next
43073 } else {
43074 # Replace #undef with comments. This is necessary, for example,
43075 # in the case of _POSIX_SOURCE, which is predefined and required
43076 # on some systems where configure will not decide to define it.
43077 if (defundef == "undef") {
43078 print "/*", prefix defundef, macro, "*/"
43079 next
43080 }
43081 }
43082}
43083{ print }
43084_ACAWK
43085_ACEOF
43086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43087 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43088fi # test -n "$CONFIG_HEADERS"
43089
43090
43091eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43092shift
43093for ac_tag
43094do
43095 case $ac_tag in
43096 :[FHLC]) ac_mode=$ac_tag; continue;;
43097 esac
43098 case $ac_mode$ac_tag in
43099 :[FHL]*:*);;
43100 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43101 :[FH]-) ac_tag=-:-;;
43102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43103 esac
43104 ac_save_IFS=$IFS
43105 IFS=:
43106 set x $ac_tag
43107 IFS=$ac_save_IFS
43108 shift
43109 ac_file=$1
43110 shift
43111
43112 case $ac_mode in
43113 :L) ac_source=$1;;
43114 :[FH])
43115 ac_file_inputs=
43116 for ac_f
43117 do
43118 case $ac_f in
43119 -) ac_f="$ac_tmp/stdin";;
43120 *) # Look for the file first in the build tree, then in the source tree
43121 # (if the path is not absolute). The absolute path cannot be DOS-style,
43122 # because $ac_f cannot contain `:'.
43123 test -f "$ac_f" ||
43124 case $ac_f in
43125 [\\/$]*) false;;
43126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43127 esac ||
43128 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43129 esac
43130 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43131 as_fn_append ac_file_inputs " '$ac_f'"
43132 done
43133
43134 # Let's still pretend it is `configure' which instantiates (i.e., don't
43135 # use $as_me), people would be surprised to read:
43136 # /* config.h. Generated by config.status. */
43137 configure_input='Generated from '`
43138 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43139 `' by configure.'
43140 if test x"$ac_file" != x-; then
43141 configure_input="$ac_file. $configure_input"
43142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43143$as_echo "$as_me: creating $ac_file" >&6;}
43144 fi
43145 # Neutralize special characters interpreted by sed in replacement strings.
43146 case $configure_input in #(
43147 *\&* | *\|* | *\\* )
43148 ac_sed_conf_input=`$as_echo "$configure_input" |
43149 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43150 *) ac_sed_conf_input=$configure_input;;
43151 esac
43152
43153 case $ac_tag in
43154 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43156 esac
43157 ;;
43158 esac
43159
43160 ac_dir=`$as_dirname -- "$ac_file" ||
43161$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43162 X"$ac_file" : 'X\(//\)[^/]' \| \
43163 X"$ac_file" : 'X\(//\)$' \| \
43164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43165$as_echo X"$ac_file" |
43166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43167 s//\1/
43168 q
43169 }
43170 /^X\(\/\/\)[^/].*/{
43171 s//\1/
43172 q
43173 }
43174 /^X\(\/\/\)$/{
43175 s//\1/
43176 q
43177 }
43178 /^X\(\/\).*/{
43179 s//\1/
43180 q
43181 }
43182 s/.*/./; q'`
43183 as_dir="$ac_dir"; as_fn_mkdir_p
43184 ac_builddir=.
43185
43186case "$ac_dir" in
43187.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43188*)
43189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43190 # A ".." for each directory in $ac_dir_suffix.
43191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43192 case $ac_top_builddir_sub in
43193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43195 esac ;;
43196esac
43197ac_abs_top_builddir=$ac_pwd
43198ac_abs_builddir=$ac_pwd$ac_dir_suffix
43199# for backward compatibility:
43200ac_top_builddir=$ac_top_build_prefix
43201
43202case $srcdir in
43203 .) # We are building in place.
43204 ac_srcdir=.
43205 ac_top_srcdir=$ac_top_builddir_sub
43206 ac_abs_top_srcdir=$ac_pwd ;;
43207 [\\/]* | ?:[\\/]* ) # Absolute name.
43208 ac_srcdir=$srcdir$ac_dir_suffix;
43209 ac_top_srcdir=$srcdir
43210 ac_abs_top_srcdir=$srcdir ;;
43211 *) # Relative name.
43212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43213 ac_top_srcdir=$ac_top_build_prefix$srcdir
43214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43215esac
43216ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43217
43218
43219 case $ac_mode in
43220 :F)
43221 #
43222 # CONFIG_FILE
43223 #
43224
43225 case $INSTALL in
43226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43228 esac
43229 ac_MKDIR_P=$MKDIR_P
43230 case $MKDIR_P in
43231 [\\/$]* | ?:[\\/]* ) ;;
43232 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43233 esac
43234_ACEOF
43235
43236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43237# If the template does not know about datarootdir, expand it.
43238# FIXME: This hack should be removed a few years after 2.60.
43239ac_datarootdir_hack=; ac_datarootdir_seen=
43240ac_sed_dataroot='
43241/datarootdir/ {
43242 p
43243 q
43244}
43245/@datadir@/p
43246/@docdir@/p
43247/@infodir@/p
43248/@localedir@/p
43249/@mandir@/p'
43250case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43251*datarootdir*) ac_datarootdir_seen=yes;;
43252*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43254$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43255_ACEOF
43256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43257 ac_datarootdir_hack='
43258 s&@datadir@&$datadir&g
43259 s&@docdir@&$docdir&g
43260 s&@infodir@&$infodir&g
43261 s&@localedir@&$localedir&g
43262 s&@mandir@&$mandir&g
43263 s&\\\${datarootdir}&$datarootdir&g' ;;
43264esac
43265_ACEOF
43266
43267# Neutralize VPATH when `$srcdir' = `.'.
43268# Shell code in configure.ac might set extrasub.
43269# FIXME: do we really want to maintain this feature?
43270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43271ac_sed_extra="$ac_vpsub
43272$extrasub
43273_ACEOF
43274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43275:t
43276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43277s|@configure_input@|$ac_sed_conf_input|;t t
43278s&@top_builddir@&$ac_top_builddir_sub&;t t
43279s&@top_build_prefix@&$ac_top_build_prefix&;t t
43280s&@srcdir@&$ac_srcdir&;t t
43281s&@abs_srcdir@&$ac_abs_srcdir&;t t
43282s&@top_srcdir@&$ac_top_srcdir&;t t
43283s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43284s&@builddir@&$ac_builddir&;t t
43285s&@abs_builddir@&$ac_abs_builddir&;t t
43286s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43287s&@INSTALL@&$ac_INSTALL&;t t
43288s&@MKDIR_P@&$ac_MKDIR_P&;t t
43289$ac_datarootdir_hack
43290"
43291eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43292 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43293
43294test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43295 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43297 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43299which seems to be undefined. Please make sure it is defined" >&5
43300$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43301which seems to be undefined. Please make sure it is defined" >&2;}
43302
43303 rm -f "$ac_tmp/stdin"
43304 case $ac_file in
43305 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43306 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43307 esac \
43308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43309 ;;
43310 :H)
43311 #
43312 # CONFIG_HEADER
43313 #
43314 if test x"$ac_file" != x-; then
43315 {
43316 $as_echo "/* $configure_input */" \
43317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43318 } >"$ac_tmp/config.h" \
43319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43320 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43321 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43322$as_echo "$as_me: $ac_file is unchanged" >&6;}
43323 else
43324 rm -f "$ac_file"
43325 mv "$ac_tmp/config.h" "$ac_file" \
43326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43327 fi
43328 else
43329 $as_echo "/* $configure_input */" \
43330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43331 || as_fn_error $? "could not create -" "$LINENO" 5
43332 fi
43333# Compute "$ac_file"'s index in $config_headers.
43334_am_arg="$ac_file"
43335_am_stamp_count=1
43336for _am_header in $config_headers :; do
43337 case $_am_header in
43338 $_am_arg | $_am_arg:* )
43339 break ;;
43340 * )
43341 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43342 esac
43343done
43344echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43345$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43346 X"$_am_arg" : 'X\(//\)[^/]' \| \
43347 X"$_am_arg" : 'X\(//\)$' \| \
43348 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43349$as_echo X"$_am_arg" |
43350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43351 s//\1/
43352 q
43353 }
43354 /^X\(\/\/\)[^/].*/{
43355 s//\1/
43356 q
43357 }
43358 /^X\(\/\/\)$/{
43359 s//\1/
43360 q
43361 }
43362 /^X\(\/\).*/{
43363 s//\1/
43364 q
43365 }
43366 s/.*/./; q'`/stamp-h$_am_stamp_count
43367 ;;
43368
43369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43370$as_echo "$as_me: executing $ac_file commands" >&6;}
43371 ;;
43372 esac
43373
43374
43375 case $ac_file$ac_mode in
43376 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43377 # Older Autoconf quotes --file arguments for eval, but not when files
43378 # are listed without --file. Let's play safe and only enable the eval
43379 # if we detect the quoting.
43380 case $CONFIG_FILES in
43381 *\'*) eval set x "$CONFIG_FILES" ;;
43382 *) set x $CONFIG_FILES ;;
43383 esac
43384 shift
43385 for mf
43386 do
43387 # Strip MF so we end up with the name of the file.
43388 mf=`echo "$mf" | sed -e 's/:.*$//'`
43389 # Check whether this is an Automake generated Makefile or not.
43390 # We used to match only the files named 'Makefile.in', but
43391 # some people rename them; so instead we look at the file content.
43392 # Grep'ing the first line is not enough: some people post-process
43393 # each Makefile.in and add a new line on top of each file to say so.
43394 # Grep'ing the whole file is not good either: AIX grep has a line
43395 # limit of 2048, but all sed's we know have understand at least 4000.
43396 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43397 dirpart=`$as_dirname -- "$mf" ||
43398$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43399 X"$mf" : 'X\(//\)[^/]' \| \
43400 X"$mf" : 'X\(//\)$' \| \
43401 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43402$as_echo X"$mf" |
43403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43404 s//\1/
43405 q
43406 }
43407 /^X\(\/\/\)[^/].*/{
43408 s//\1/
43409 q
43410 }
43411 /^X\(\/\/\)$/{
43412 s//\1/
43413 q
43414 }
43415 /^X\(\/\).*/{
43416 s//\1/
43417 q
43418 }
43419 s/.*/./; q'`
43420 else
43421 continue
43422 fi
43423 # Extract the definition of DEPDIR, am__include, and am__quote
43424 # from the Makefile without running 'make'.
43425 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43426 test -z "$DEPDIR" && continue
43427 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43428 test -z "$am__include" && continue
43429 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43430 # Find all dependency output files, they are included files with
43431 # $(DEPDIR) in their names. We invoke sed twice because it is the
43432 # simplest approach to changing $(DEPDIR) to its actual value in the
43433 # expansion.
43434 for file in `sed -n "
43435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43437 # Make sure the directory exists.
43438 test -f "$dirpart/$file" && continue
43439 fdir=`$as_dirname -- "$file" ||
43440$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43441 X"$file" : 'X\(//\)[^/]' \| \
43442 X"$file" : 'X\(//\)$' \| \
43443 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43444$as_echo X"$file" |
43445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43446 s//\1/
43447 q
43448 }
43449 /^X\(\/\/\)[^/].*/{
43450 s//\1/
43451 q
43452 }
43453 /^X\(\/\/\)$/{
43454 s//\1/
43455 q
43456 }
43457 /^X\(\/\).*/{
43458 s//\1/
43459 q
43460 }
43461 s/.*/./; q'`
43462 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43463 # echo "creating $dirpart/$file"
43464 echo '# dummy' > "$dirpart/$file"
43465 done
43466 done
43467}
43468 ;;
43469 "libtool":C)
43470
43471 # See if we are running on zsh, and set the options that allow our
43472 # commands through without removal of \ escapes.
43473 if test -n "${ZSH_VERSION+set}"; then
43474 setopt NO_GLOB_SUBST
43475 fi
43476
43477 cfgfile=${ofile}T
43478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43479 $RM "$cfgfile"
43480
43481 cat <<_LT_EOF >> "$cfgfile"
43482#! $SHELL
43483# Generated automatically by $as_me ($PACKAGE) $VERSION
43484# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43485
43486# Provide generalized library-building support services.
43487# Written by Gordon Matzigkeit, 1996
43488
43489# Copyright (C) 2014 Free Software Foundation, Inc.
43490# This is free software; see the source for copying conditions. There is NO
43491# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43492
43493# GNU Libtool is free software; you can redistribute it and/or modify
43494# it under the terms of the GNU General Public License as published by
43495# the Free Software Foundation; either version 2 of of the License, or
43496# (at your option) any later version.
43497#
43498# As a special exception to the GNU General Public License, if you
43499# distribute this file as part of a program or library that is built
43500# using GNU Libtool, you may include this file under the same
43501# distribution terms that you use for the rest of that program.
43502#
43503# GNU Libtool is distributed in the hope that it will be useful, but
43504# WITHOUT ANY WARRANTY; without even the implied warranty of
43505# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43506# GNU General Public License for more details.
43507#
43508# You should have received a copy of the GNU General Public License
43509# along with this program. If not, see <http://www.gnu.org/licenses/>.
43510
43511
43512# The names of the tagged configurations supported by this script.
43513available_tags=''
43514
43515# Configured defaults for sys_lib_dlsearch_path munging.
43516: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43517
43518# ### BEGIN LIBTOOL CONFIG
43519
43520# Which release of libtool.m4 was used?
43521macro_version=$macro_version
43522macro_revision=$macro_revision
43523
43524# Assembler program.
43525AS=$lt_AS
43526
43527# DLL creation program.
43528DLLTOOL=$lt_DLLTOOL
43529
43530# Object dumper program.
43531OBJDUMP=$lt_OBJDUMP
43532
43533# Whether or not to build shared libraries.
43534build_libtool_libs=$enable_shared
43535
43536# Whether or not to build static libraries.
43537build_old_libs=$enable_static
43538
43539# What type of objects to build.
43540pic_mode=$pic_mode
43541
43542# Whether or not to optimize for fast installation.
43543fast_install=$enable_fast_install
43544
43545# Shared archive member basename,for filename based shared library versioning on AIX.
43546shared_archive_member_spec=$shared_archive_member_spec
43547
43548# Shell to use when invoking shell scripts.
43549SHELL=$lt_SHELL
43550
43551# An echo program that protects backslashes.
43552ECHO=$lt_ECHO
43553
43554# The PATH separator for the build system.
43555PATH_SEPARATOR=$lt_PATH_SEPARATOR
43556
43557# The host system.
43558host_alias=$host_alias
43559host=$host
43560host_os=$host_os
43561
43562# The build system.
43563build_alias=$build_alias
43564build=$build
43565build_os=$build_os
43566
43567# A sed program that does not truncate output.
43568SED=$lt_SED
43569
43570# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43571Xsed="\$SED -e 1s/^X//"
43572
43573# A grep program that handles long lines.
43574GREP=$lt_GREP
43575
43576# An ERE matcher.
43577EGREP=$lt_EGREP
43578
43579# A literal string matcher.
43580FGREP=$lt_FGREP
43581
43582# A BSD- or MS-compatible name lister.
43583NM=$lt_NM
43584
43585# Whether we need soft or hard links.
43586LN_S=$lt_LN_S
43587
43588# What is the maximum length of a command?
43589max_cmd_len=$max_cmd_len
43590
43591# Object file suffix (normally "o").
43592objext=$ac_objext
43593
43594# Executable file suffix (normally "").
43595exeext=$exeext
43596
43597# whether the shell understands "unset".
43598lt_unset=$lt_unset
43599
43600# turn spaces into newlines.
43601SP2NL=$lt_lt_SP2NL
43602
43603# turn newlines into spaces.
43604NL2SP=$lt_lt_NL2SP
43605
43606# convert \$build file names to \$host format.
43607to_host_file_cmd=$lt_cv_to_host_file_cmd
43608
43609# convert \$build files to toolchain format.
43610to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43611
43612# Method to check whether dependent libraries are shared objects.
43613deplibs_check_method=$lt_deplibs_check_method
43614
43615# Command to use when deplibs_check_method = "file_magic".
43616file_magic_cmd=$lt_file_magic_cmd
43617
43618# How to find potential files when deplibs_check_method = "file_magic".
43619file_magic_glob=$lt_file_magic_glob
43620
43621# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43622want_nocaseglob=$lt_want_nocaseglob
43623
43624# Command to associate shared and link libraries.
43625sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43626
43627# The archiver.
43628AR=$lt_AR
43629
43630# Flags to create an archive.
43631AR_FLAGS=$lt_AR_FLAGS
43632
43633# How to feed a file listing to the archiver.
43634archiver_list_spec=$lt_archiver_list_spec
43635
43636# A symbol stripping program.
43637STRIP=$lt_STRIP
43638
43639# Commands used to install an old-style archive.
43640RANLIB=$lt_RANLIB
43641old_postinstall_cmds=$lt_old_postinstall_cmds
43642old_postuninstall_cmds=$lt_old_postuninstall_cmds
43643
43644# Whether to use a lock for old archive extraction.
43645lock_old_archive_extraction=$lock_old_archive_extraction
43646
43647# A C compiler.
43648LTCC=$lt_CC
43649
43650# LTCC compiler flags.
43651LTCFLAGS=$lt_CFLAGS
43652
43653# Take the output of nm and produce a listing of raw symbols and C names.
43654global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43655
43656# Transform the output of nm in a proper C declaration.
43657global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43658
43659# Transform the output of nm into a list of symbols to manually relocate.
43660global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43661
43662# Transform the output of nm in a C name address pair.
43663global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43664
43665# Transform the output of nm in a C name address pair when lib prefix is needed.
43666global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43667
43668# The name lister interface.
43669nm_interface=$lt_lt_cv_nm_interface
43670
43671# Specify filename containing input files for \$NM.
43672nm_file_list_spec=$lt_nm_file_list_spec
43673
43674# The root where to search for dependent libraries,and where our libraries should be installed.
43675lt_sysroot=$lt_sysroot
43676
43677# Command to truncate a binary pipe.
43678lt_truncate_bin=$lt_lt_cv_truncate_bin
43679
43680# The name of the directory that contains temporary libtool files.
43681objdir=$objdir
43682
43683# Used to examine libraries when file_magic_cmd begins with "file".
43684MAGIC_CMD=$MAGIC_CMD
43685
43686# Must we lock files when doing compilation?
43687need_locks=$lt_need_locks
43688
43689# Manifest tool.
43690MANIFEST_TOOL=$lt_MANIFEST_TOOL
43691
43692# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43693DSYMUTIL=$lt_DSYMUTIL
43694
43695# Tool to change global to local symbols on Mac OS X.
43696NMEDIT=$lt_NMEDIT
43697
43698# Tool to manipulate fat objects and archives on Mac OS X.
43699LIPO=$lt_LIPO
43700
43701# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43702OTOOL=$lt_OTOOL
43703
43704# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43705OTOOL64=$lt_OTOOL64
43706
43707# Old archive suffix (normally "a").
43708libext=$libext
43709
43710# Shared library suffix (normally ".so").
43711shrext_cmds=$lt_shrext_cmds
43712
43713# The commands to extract the exported symbol list from a shared archive.
43714extract_expsyms_cmds=$lt_extract_expsyms_cmds
43715
43716# Variables whose values should be saved in libtool wrapper scripts and
43717# restored at link time.
43718variables_saved_for_relink=$lt_variables_saved_for_relink
43719
43720# Do we need the "lib" prefix for modules?
43721need_lib_prefix=$need_lib_prefix
43722
43723# Do we need a version for libraries?
43724need_version=$need_version
43725
43726# Library versioning type.
43727version_type=$version_type
43728
43729# Shared library runtime path variable.
43730runpath_var=$runpath_var
43731
43732# Shared library path variable.
43733shlibpath_var=$shlibpath_var
43734
43735# Is shlibpath searched before the hard-coded library search path?
43736shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43737
43738# Format of library name prefix.
43739libname_spec=$lt_libname_spec
43740
43741# List of archive names. First name is the real one, the rest are links.
43742# The last name is the one that the linker finds with -lNAME
43743library_names_spec=$lt_library_names_spec
43744
43745# The coded name of the library, if different from the real name.
43746soname_spec=$lt_soname_spec
43747
43748# Permission mode override for installation of shared libraries.
43749install_override_mode=$lt_install_override_mode
43750
43751# Command to use after installation of a shared archive.
43752postinstall_cmds=$lt_postinstall_cmds
43753
43754# Command to use after uninstallation of a shared archive.
43755postuninstall_cmds=$lt_postuninstall_cmds
43756
43757# Commands used to finish a libtool library installation in a directory.
43758finish_cmds=$lt_finish_cmds
43759
43760# As "finish_cmds", except a single script fragment to be evaled but
43761# not shown.
43762finish_eval=$lt_finish_eval
43763
43764# Whether we should hardcode library paths into libraries.
43765hardcode_into_libs=$hardcode_into_libs
43766
43767# Compile-time system search path for libraries.
43768sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43769
43770# Detected run-time system search path for libraries.
43771sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43772
43773# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43774configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43775
43776# Whether dlopen is supported.
43777dlopen_support=$enable_dlopen
43778
43779# Whether dlopen of programs is supported.
43780dlopen_self=$enable_dlopen_self
43781
43782# Whether dlopen of statically linked programs is supported.
43783dlopen_self_static=$enable_dlopen_self_static
43784
43785# Commands to strip libraries.
43786old_striplib=$lt_old_striplib
43787striplib=$lt_striplib
43788
43789
43790# The linker used to build libraries.
43791LD=$lt_LD
43792
43793# How to create reloadable object files.
43794reload_flag=$lt_reload_flag
43795reload_cmds=$lt_reload_cmds
43796
43797# Commands used to build an old-style archive.
43798old_archive_cmds=$lt_old_archive_cmds
43799
43800# A language specific compiler.
43801CC=$lt_compiler
43802
43803# Is the compiler the GNU compiler?
43804with_gcc=$GCC
43805
43806# Compiler flag to turn off builtin functions.
43807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43808
43809# Additional compiler flags for building library objects.
43810pic_flag=$lt_lt_prog_compiler_pic
43811
43812# How to pass a linker flag through the compiler.
43813wl=$lt_lt_prog_compiler_wl
43814
43815# Compiler flag to prevent dynamic linking.
43816link_static_flag=$lt_lt_prog_compiler_static
43817
43818# Does compiler simultaneously support -c and -o options?
43819compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43820
43821# Whether or not to add -lc for building shared libraries.
43822build_libtool_need_lc=$archive_cmds_need_lc
43823
43824# Whether or not to disallow shared libs when runtime libs are static.
43825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43826
43827# Compiler flag to allow reflexive dlopens.
43828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43829
43830# Compiler flag to generate shared objects directly from archives.
43831whole_archive_flag_spec=$lt_whole_archive_flag_spec
43832
43833# Whether the compiler copes with passing no objects directly.
43834compiler_needs_object=$lt_compiler_needs_object
43835
43836# Create an old-style archive from a shared archive.
43837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43838
43839# Create a temporary old-style archive to link instead of a shared archive.
43840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43841
43842# Commands used to build a shared archive.
43843archive_cmds=$lt_archive_cmds
43844archive_expsym_cmds=$lt_archive_expsym_cmds
43845
43846# Commands used to build a loadable module if different from building
43847# a shared archive.
43848module_cmds=$lt_module_cmds
43849module_expsym_cmds=$lt_module_expsym_cmds
43850
43851# Whether we are building with GNU ld or not.
43852with_gnu_ld=$lt_with_gnu_ld
43853
43854# Flag that allows shared libraries with undefined symbols to be built.
43855allow_undefined_flag=$lt_allow_undefined_flag
43856
43857# Flag that enforces no undefined symbols.
43858no_undefined_flag=$lt_no_undefined_flag
43859
43860# Flag to hardcode \$libdir into a binary during linking.
43861# This must work even if \$libdir does not exist
43862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43863
43864# Whether we need a single "-rpath" flag with a separated argument.
43865hardcode_libdir_separator=$lt_hardcode_libdir_separator
43866
43867# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43868# DIR into the resulting binary.
43869hardcode_direct=$hardcode_direct
43870
43871# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43872# DIR into the resulting binary and the resulting library dependency is
43873# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43874# library is relocated.
43875hardcode_direct_absolute=$hardcode_direct_absolute
43876
43877# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43878# into the resulting binary.
43879hardcode_minus_L=$hardcode_minus_L
43880
43881# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43882# into the resulting binary.
43883hardcode_shlibpath_var=$hardcode_shlibpath_var
43884
43885# Set to "yes" if building a shared library automatically hardcodes DIR
43886# into the library and all subsequent libraries and executables linked
43887# against it.
43888hardcode_automatic=$hardcode_automatic
43889
43890# Set to yes if linker adds runtime paths of dependent libraries
43891# to runtime path list.
43892inherit_rpath=$inherit_rpath
43893
43894# Whether libtool must link a program against all its dependency libraries.
43895link_all_deplibs=$link_all_deplibs
43896
43897# Set to "yes" if exported symbols are required.
43898always_export_symbols=$always_export_symbols
43899
43900# The commands to list exported symbols.
43901export_symbols_cmds=$lt_export_symbols_cmds
43902
43903# Symbols that should not be listed in the preloaded symbols.
43904exclude_expsyms=$lt_exclude_expsyms
43905
43906# Symbols that must always be exported.
43907include_expsyms=$lt_include_expsyms
43908
43909# Commands necessary for linking programs (against libraries) with templates.
43910prelink_cmds=$lt_prelink_cmds
43911
43912# Commands necessary for finishing linking programs.
43913postlink_cmds=$lt_postlink_cmds
43914
43915# Specify filename containing input files.
43916file_list_spec=$lt_file_list_spec
43917
43918# How to hardcode a shared library path into an executable.
43919hardcode_action=$hardcode_action
43920
43921# ### END LIBTOOL CONFIG
43922
43923_LT_EOF
43924
43925 cat <<'_LT_EOF' >> "$cfgfile"
43926
43927# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43928
43929# func_munge_path_list VARIABLE PATH
43930# -----------------------------------
43931# VARIABLE is name of variable containing _space_ separated list of
43932# directories to be munged by the contents of PATH, which is string
43933# having a format:
43934# "DIR[:DIR]:"
43935# string "DIR[ DIR]" will be prepended to VARIABLE
43936# ":DIR[:DIR]"
43937# string "DIR[ DIR]" will be appended to VARIABLE
43938# "DIRP[:DIRP]::[DIRA:]DIRA"
43939# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43940# "DIRA[ DIRA]" will be appended to VARIABLE
43941# "DIR[:DIR]"
43942# VARIABLE will be replaced by "DIR[ DIR]"
43943func_munge_path_list ()
43944{
43945 case x$2 in
43946 x)
43947 ;;
43948 *:)
43949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43950 ;;
43951 x:*)
43952 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43953 ;;
43954 *::*)
43955 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43956 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43957 ;;
43958 *)
43959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43960 ;;
43961 esac
43962}
43963
43964
43965# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43966func_cc_basename ()
43967{
43968 for cc_temp in $*""; do
43969 case $cc_temp in
43970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43972 \-*) ;;
43973 *) break;;
43974 esac
43975 done
43976 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43977}
43978
43979
43980# ### END FUNCTIONS SHARED WITH CONFIGURE
43981
43982_LT_EOF
43983
43984 case $host_os in
43985 aix3*)
43986 cat <<\_LT_EOF >> "$cfgfile"
43987# AIX sometimes has problems with the GCC collect2 program. For some
43988# reason, if we set the COLLECT_NAMES environment variable, the problems
43989# vanish in a puff of smoke.
43990if test set != "${COLLECT_NAMES+set}"; then
43991 COLLECT_NAMES=
43992 export COLLECT_NAMES
43993fi
43994_LT_EOF
43995 ;;
43996 esac
43997
43998
43999ltmain=$ac_aux_dir/ltmain.sh
44000
44001
44002 # We use sed instead of cat because bash on DJGPP gets confused if
44003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44004 # text mode, it properly converts lines to CR/LF. This bash problem
44005 # is reportedly fixed, but why not run on old versions too?
44006 sed '$q' "$ltmain" >> "$cfgfile" \
44007 || (rm -f "$cfgfile"; exit 1)
44008
44009 mv -f "$cfgfile" "$ofile" ||
44010 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44011 chmod +x "$ofile"
44012
44013 ;;
44014
44015 esac
44016done # for ac_tag
44017
44018
44019as_fn_exit 0
44020_ACEOF
44021ac_clean_files=$ac_clean_files_save
44022
44023test $ac_write_fail = 0 ||
44024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44025
44026
44027# configure is writing to config.log, and then calls config.status.
44028# config.status does its own redirection, appending to config.log.
44029# Unfortunately, on DOS this fails, as config.log is still kept open
44030# by configure, so config.status won't be able to write to it; its
44031# output is simply discarded. So we exec the FD to /dev/null,
44032# effectively closing config.log, so it can be properly (re)opened and
44033# appended to by config.status. When coming back to configure, we
44034# need to make the FD available again.
44035if test "$no_create" != yes; then
44036 ac_cs_success=:
44037 ac_config_status_args=
44038 test "$silent" = yes &&
44039 ac_config_status_args="$ac_config_status_args --quiet"
44040 exec 5>/dev/null
44041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44042 exec 5>>config.log
44043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44044 # would make configure fail if this is the last instruction.
44045 $ac_cs_success || as_fn_exit 1
44046fi
44047
44048#
44049# CONFIG_SUBDIRS section.
44050#
44051if test "$no_recursion" != yes; then
44052
44053 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44054 # so they do not pile up.
44055 ac_sub_configure_args=
44056 ac_prev=
44057 eval "set x $ac_configure_args"
44058 shift
44059 for ac_arg
44060 do
44061 if test -n "$ac_prev"; then
44062 ac_prev=
44063 continue
44064 fi
44065 case $ac_arg in
44066 -cache-file | --cache-file | --cache-fil | --cache-fi \
44067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44068 ac_prev=cache_file ;;
44069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44071 | --c=*)
44072 ;;
44073 --config-cache | -C)
44074 ;;
44075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44076 ac_prev=srcdir ;;
44077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44078 ;;
44079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44080 ac_prev=prefix ;;
44081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44082 ;;
44083 --disable-option-checking)
44084 ;;
44085 *)
44086 case $ac_arg in
44087 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44088 esac
44089 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44090 esac
44091 done
44092
44093 # Always prepend --prefix to ensure using the same prefix
44094 # in subdir configurations.
44095 ac_arg="--prefix=$prefix"
44096 case $ac_arg in
44097 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44098 esac
44099 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44100
44101 # Pass --silent
44102 if test "$silent" = yes; then
44103 ac_sub_configure_args="--silent $ac_sub_configure_args"
44104 fi
44105
44106 # Always prepend --disable-option-checking to silence warnings, since
44107 # different subdirs can have different --enable and --with options.
44108 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44109
44110 ac_popdir=`pwd`
44111 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44112
44113 # Do not complain, so a configure script can configure whichever
44114 # parts of a large source tree are present.
44115 test -d "$srcdir/$ac_dir" || continue
44116
44117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44118 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44119 $as_echo "$ac_msg" >&6
44120 as_dir="$ac_dir"; as_fn_mkdir_p
44121 ac_builddir=.
44122
44123case "$ac_dir" in
44124.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44125*)
44126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44127 # A ".." for each directory in $ac_dir_suffix.
44128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44129 case $ac_top_builddir_sub in
44130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44132 esac ;;
44133esac
44134ac_abs_top_builddir=$ac_pwd
44135ac_abs_builddir=$ac_pwd$ac_dir_suffix
44136# for backward compatibility:
44137ac_top_builddir=$ac_top_build_prefix
44138
44139case $srcdir in
44140 .) # We are building in place.
44141 ac_srcdir=.
44142 ac_top_srcdir=$ac_top_builddir_sub
44143 ac_abs_top_srcdir=$ac_pwd ;;
44144 [\\/]* | ?:[\\/]* ) # Absolute name.
44145 ac_srcdir=$srcdir$ac_dir_suffix;
44146 ac_top_srcdir=$srcdir
44147 ac_abs_top_srcdir=$srcdir ;;
44148 *) # Relative name.
44149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44150 ac_top_srcdir=$ac_top_build_prefix$srcdir
44151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44152esac
44153ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44154
44155
44156 cd "$ac_dir"
44157
44158 # Check for guested configure; otherwise get Cygnus style configure.
44159 if test -f "$ac_srcdir/configure.gnu"; then
44160 ac_sub_configure=$ac_srcdir/configure.gnu
44161 elif test -f "$ac_srcdir/configure"; then
44162 ac_sub_configure=$ac_srcdir/configure
44163 elif test -f "$ac_srcdir/configure.in"; then
44164 # This should be Cygnus configure.
44165 ac_sub_configure=$ac_aux_dir/configure
44166 else
44167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44168$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44169 ac_sub_configure=
44170 fi
44171
44172 # The recursion is here.
44173 if test -n "$ac_sub_configure"; then
44174 # Make the cache file name correct relative to the subdirectory.
44175 case $cache_file in
44176 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44177 *) # Relative name.
44178 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44179 esac
44180
44181 { $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
44182$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44183 # The eval makes quoting arguments work.
44184 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44185 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44186 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44187 fi
44188
44189 cd "$ac_popdir"
44190 done
44191fi
44192if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44194$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44195fi
44196
44197
44198
44199 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44200 if test -z "$tmp_cpp"; then
44201 tmp_cpp='cpp'
44202 fi
44203 cat >./tests/configurehelp.pm <<_EOF
44204# This is a generated file. Do not edit.
44205
44206package configurehelp;
44207
44208use strict;
44209use warnings;
44210use Exporter;
44211
44212use vars qw(
44213 @ISA
44214 @EXPORT_OK
44215 \$Cpreprocessor
44216 );
44217
44218@ISA = qw(Exporter);
44219
44220@EXPORT_OK = qw(
44221 \$Cpreprocessor
44222 );
44223
44224\$Cpreprocessor = '$tmp_cpp';
44225
442261;
44227_EOF
44228
44229
44230
44231## ---------------------------------- ##
44232## Start of distclean amending code ##
44233## ---------------------------------- ##
44234
44235for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44236do
44237
44238if test ! -f "$xc_subdir/Makefile"; then
44239 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44240 exit 1
44241fi
44242
44243# Fetch dependency tracking file list from Makefile include lines.
44244
44245xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44246xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44247
44248# --disable-dependency-tracking might have been used, consequently
44249# there is nothing to amend without a dependency tracking file list.
44250
44251if test $xc_cnt_words -gt 0; then
44252
44253{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44254$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44255
44256# Build Makefile specific patch hunk.
44257
44258xc_p="$xc_subdir/xc_patch.tmp"
44259
44260xc_rm_depfiles=`echo "$xc_inc_lines" \
44261 | $SED 's%include% -rm -f%' 2>/dev/null`
44262
44263xc_dep_subdirs=`echo "$xc_inc_lines" \
44264 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44265 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44266 | sort | uniq`
44267
44268echo "$xc_rm_depfiles" >$xc_p
44269
44270for xc_dep_dir in $xc_dep_subdirs; do
44271 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44272 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44273 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44274 echo "${xc_tab}fi" >>$xc_p
44275done
44276
44277# Build Makefile patching sed scripts.
44278
44279xc_s1="$xc_subdir/xc_script_1.tmp"
44280xc_s2="$xc_subdir/xc_script_2.tmp"
44281xc_s3="$xc_subdir/xc_script_3.tmp"
44282
44283cat >$xc_s1 <<\_EOT
44284/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44285 s/^.*(DEPDIR)/___xc_depdir_line___/
44286}
44287/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44288 s/^.*(DEPDIR)/___xc_depdir_line___/
44289}
44290_EOT
44291
44292cat >$xc_s2 <<\_EOT
44293/___xc_depdir_line___$/{
44294 N
44295 /___xc_depdir_line___$/D
44296}
44297_EOT
44298
44299cat >$xc_s3 <<_EOT
44300/^___xc_depdir_line___/{
44301 r $xc_p
44302 d
44303}
44304_EOT
44305
44306# Apply patch to Makefile and cleanup.
44307
44308$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44309$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44310$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44311
44312if test -f "$xc_subdir/Makefile.tmp3"; then
44313 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44314fi
44315
44316test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44317test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44318test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44319
44320test -f "$xc_p" && rm -f "$xc_p"
44321test -f "$xc_s1" && rm -f "$xc_s1"
44322test -f "$xc_s2" && rm -f "$xc_s2"
44323test -f "$xc_s3" && rm -f "$xc_s3"
44324
44325fi
44326
44327done
44328
44329## -------------------------------- ##
44330## End of distclean amending code ##
44331## -------------------------------- ##
44332
44333
44334
44335{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44336
44337 curl version: ${CURLVERSION}
44338 Host setup: ${host}
44339 Install prefix: ${prefix}
44340 Compiler: ${CC}
44341 SSL support: ${curl_ssl_msg}
44342 SSH support: ${curl_ssh_msg}
44343 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044344 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044345 GSS-API support: ${curl_gss_msg}
44346 TLS-SRP support: ${curl_tls_srp_msg}
44347 resolver: ${curl_res_msg}
44348 IPv6 support: ${curl_ipv6_msg}
44349 Unix sockets support: ${curl_unix_sockets_msg}
44350 IDN support: ${curl_idn_msg}
44351 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44352 Built-in manual: ${curl_manual_msg}
44353 --libcurl option: ${curl_libcurl_msg}
44354 Verbose errors: ${curl_verbose_msg}
44355 SSPI support: ${curl_sspi_msg}
44356 ca cert bundle: ${ca}${ca_warning}
44357 ca cert path: ${capath}${capath_warning}
44358 ca fallback: ${with_ca_fallback}
44359 LDAP support: ${curl_ldap_msg}
44360 LDAPS support: ${curl_ldaps_msg}
44361 RTSP support: ${curl_rtsp_msg}
44362 RTMP support: ${curl_rtmp_msg}
44363 metalink support: ${curl_mtlnk_msg}
44364 PSL support: ${curl_psl_msg}
44365 HTTP2 support: ${curl_h2_msg}
44366 Protocols: ${SUPPORT_PROTOCOLS}
44367" >&5
44368$as_echo "$as_me: Configured to build curl/libcurl:
44369
44370 curl version: ${CURLVERSION}
44371 Host setup: ${host}
44372 Install prefix: ${prefix}
44373 Compiler: ${CC}
44374 SSL support: ${curl_ssl_msg}
44375 SSH support: ${curl_ssh_msg}
44376 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044377 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044378 GSS-API support: ${curl_gss_msg}
44379 TLS-SRP support: ${curl_tls_srp_msg}
44380 resolver: ${curl_res_msg}
44381 IPv6 support: ${curl_ipv6_msg}
44382 Unix sockets support: ${curl_unix_sockets_msg}
44383 IDN support: ${curl_idn_msg}
44384 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44385 Built-in manual: ${curl_manual_msg}
44386 --libcurl option: ${curl_libcurl_msg}
44387 Verbose errors: ${curl_verbose_msg}
44388 SSPI support: ${curl_sspi_msg}
44389 ca cert bundle: ${ca}${ca_warning}
44390 ca cert path: ${capath}${capath_warning}
44391 ca fallback: ${with_ca_fallback}
44392 LDAP support: ${curl_ldap_msg}
44393 LDAPS support: ${curl_ldaps_msg}
44394 RTSP support: ${curl_rtsp_msg}
44395 RTMP support: ${curl_rtmp_msg}
44396 metalink support: ${curl_mtlnk_msg}
44397 PSL support: ${curl_psl_msg}
44398 HTTP2 support: ${curl_h2_msg}
44399 Protocols: ${SUPPORT_PROTOCOLS}
44400" >&6;}