• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14#
15# Copyright (C) Daniel Stenberg, <daniel@haxx.se>
16# This configure script may be copied, distributed and modified under the
17# terms of the curl license; see COPYING for more details
18
19## -------------------------------- ##
20##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
21## -------------------------------- ##
22
23xc_configure_preamble_ver_major='1'
24xc_configure_preamble_ver_minor='0'
25
26#
27# Set IFS to space, tab and newline.
28#
29
30xc_space=' '
31xc_tab='	'
32xc_newline='
33'
34IFS="$xc_space$xc_tab$xc_newline"
35
36#
37# Set internationalization behavior variables.
38#
39
40LANG='C'
41LC_ALL='C'
42LANGUAGE='C'
43export LANG
44export LC_ALL
45export LANGUAGE
46
47#
48# Some useful variables.
49#
50
51xc_msg_warn='configure: WARNING:'
52xc_msg_abrt='Can not continue.'
53xc_msg_err='configure: error:'
54
55#
56# Verify that 'echo' command is available, otherwise abort.
57#
58
59xc_tst_str='unknown'
60(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61case "x$xc_tst_str" in # ((
62  xsuccess)
63    :
64    ;;
65  *)
66    # Try built-in echo, and fail.
67    echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68    exit 1
69    ;;
70esac
71
72#
73# Verify that 'test' command is available, otherwise abort.
74#
75
76xc_tst_str='unknown'
77(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78case "x$xc_tst_str" in # ((
79  xsuccess)
80    :
81    ;;
82  *)
83    echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84    exit 1
85    ;;
86esac
87
88#
89# Verify that 'PATH' variable is set, otherwise abort.
90#
91
92xc_tst_str='unknown'
93(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94case "x$xc_tst_str" in # ((
95  xsuccess)
96    :
97    ;;
98  *)
99    echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100    exit 1
101    ;;
102esac
103
104#
105# Verify that 'expr' command is available, otherwise abort.
106#
107
108xc_tst_str='unknown'
109xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110case "x$xc_tst_str" in # ((
111  x7)
112    :
113    ;;
114  *)
115    echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116    exit 1
117    ;;
118esac
119
120#
121# Verify that 'sed' utility is found within 'PATH', otherwise abort.
122#
123
124xc_tst_str='unknown'
125xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126  | sed -e 's:unknown:success:' 2>/dev/null`
127case "x$xc_tst_str" in # ((
128  xsuccess)
129    :
130    ;;
131  *)
132    echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133    exit 1
134    ;;
135esac
136
137#
138# Verify that 'grep' utility is found within 'PATH', otherwise abort.
139#
140
141xc_tst_str='unknown'
142(`echo "$xc_tst_str" 2>/dev/null \
143  | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144case "x$xc_tst_str" in # ((
145  xsuccess)
146    :
147    ;;
148  *)
149    echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150    exit 1
151    ;;
152esac
153
154#
155# Verify that 'tr' utility is found within 'PATH', otherwise abort.
156#
157
158xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160  | tr -d "0123456789$xc_tab" 2>/dev/null`
161case "x$xc_tst_str" in # ((
162  xsuccess)
163    :
164    ;;
165  *)
166    echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167    exit 1
168    ;;
169esac
170
171#
172# Verify that 'wc' utility is found within 'PATH', otherwise abort.
173#
174
175xc_tst_str='unknown unknown unknown unknown'
176xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177  | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178case "x$xc_tst_str" in # ((
179  x4)
180    :
181    ;;
182  *)
183    echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184    exit 1
185    ;;
186esac
187
188#
189# Verify that 'cat' utility is found within 'PATH', otherwise abort.
190#
191
192xc_tst_str='unknown'
193xc_tst_str=`cat <<_EOT 2>/dev/null \
194  | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195unknown
196unknown
197unknown
198_EOT`
199case "x$xc_tst_str" in # ((
200  x3)
201    :
202    ;;
203  *)
204    echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205    exit 1
206    ;;
207esac
208
209#
210# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
211#
212
213# Directory count in 'PATH' when using a colon separator.
214xc_tst_dirs_col='x'
215xc_tst_prev_IFS=$IFS; IFS=':'
216for xc_tst_dir in $PATH; do
217  IFS=$xc_tst_prev_IFS
218  xc_tst_dirs_col="x$xc_tst_dirs_col"
219done
220IFS=$xc_tst_prev_IFS
221xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222
223# Directory count in 'PATH' when using a semicolon separator.
224xc_tst_dirs_sem='x'
225xc_tst_prev_IFS=$IFS; IFS=';'
226for xc_tst_dir in $PATH; do
227  IFS=$xc_tst_prev_IFS
228  xc_tst_dirs_sem="x$xc_tst_dirs_sem"
229done
230IFS=$xc_tst_prev_IFS
231xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232
233if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234  # When both counting methods give the same result we do not want to
235  # chose one over the other, and consider auto-detection not possible.
236  if test -z "$PATH_SEPARATOR"; then
237    # User should provide the correct 'PATH_SEPARATOR' definition.
238    # Until then, guess that it is colon!
239    echo "$xc_msg_warn path separator not determined, guessing colon" >&2
240    PATH_SEPARATOR=':'
241  fi
242else
243  # Separator with the greater directory count is the auto-detected one.
244  if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245    xc_tst_auto_separator=';'
246  else
247    xc_tst_auto_separator=':'
248  fi
249  if test -z "$PATH_SEPARATOR"; then
250    # Simply use the auto-detected one when not already set.
251    PATH_SEPARATOR=$xc_tst_auto_separator
252  elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253    echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254  fi
255fi
256xc_PATH_SEPARATOR=$PATH_SEPARATOR
257
258xc_configure_preamble_result='yes'
259
260
261## -------------------- ##
262## M4sh Initialization. ##
263## -------------------- ##
264
265# Be more Bourne compatible
266DUALCASE=1; export DUALCASE # for MKS sh
267as_nop=:
268if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
269then :
270  emulate sh
271  NULLCMD=:
272  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273  # is contrary to our usage.  Disable this feature.
274  alias -g '${1+"$@"}'='"$@"'
275  setopt NO_GLOB_SUBST
276else $as_nop
277  case `(set -o) 2>/dev/null` in #(
278  *posix*) :
279    set -o posix ;; #(
280  *) :
281     ;;
282esac
283fi
284
285
286
287# Reset variables that may have inherited troublesome values from
288# the environment.
289
290# IFS needs to be set, to space, tab, and newline, in precisely that order.
291# (If _AS_PATH_WALK were called with IFS unset, it would have the
292# side effect of setting IFS to empty, thus disabling word splitting.)
293# Quoting is to prevent editors from complaining about space-tab.
294as_nl='
295'
296export as_nl
297IFS=" ""	$as_nl"
298
299PS1='$ '
300PS2='> '
301PS4='+ '
302
303# Ensure predictable behavior from utilities with locale-dependent output.
304LC_ALL=C
305export LC_ALL
306LANGUAGE=C
307export LANGUAGE
308
309# We cannot yet rely on "unset" to work, but we need these variables
310# to be unset--not just set to an empty or harmless value--now, to
311# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
312# also avoids known problems related to "unset" and subshell syntax
313# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315do eval test \${$as_var+y} \
316  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
317done
318
319# Ensure that fds 0, 1, and 2 are open.
320if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
323
324
325
326# Find who we are.  Look in the path if we contain no directory separator.
327as_myself=
328case $0 in #((
329  *[\\/]* ) as_myself=$0 ;;
330  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331for as_dir in $PATH
332do
333  IFS=$as_save_IFS
334  case $as_dir in #(((
335    '') as_dir=./ ;;
336    */) ;;
337    *) as_dir=$as_dir/ ;;
338  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352  exit 1
353fi
354
355
356# Use a proper internal environment variable to ensure we don't fall
357  # into an infinite loop, continuously re-executing ourselves.
358  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359    _as_can_reexec=no; export _as_can_reexec;
360    # We cannot yet assume a decent shell, so we have to provide a
361# neutralization value for shells without unset; and this also
362# works around shells that cannot unset nonexistent variables.
363# Preserve -v and -x to the replacement shell.
364BASH_ENV=/dev/null
365ENV=/dev/null
366(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367case $- in # ((((
368  *v*x* | *x*v* ) as_opts=-vx ;;
369  *v* ) as_opts=-v ;;
370  *x* ) as_opts=-x ;;
371  * ) as_opts= ;;
372esac
373exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374# Admittedly, this is quite paranoid, since all the known shells bail
375# out after a failed `exec'.
376printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
377exit 255
378  fi
379  # We don't want this to propagate to other subprocesses.
380          { _as_can_reexec=; unset _as_can_reexec;}
381if test "x$CONFIG_SHELL" = x; then
382  as_bourne_compatible="as_nop=:
383if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
384then :
385  emulate sh
386  NULLCMD=:
387  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388  # is contrary to our usage.  Disable this feature.
389  alias -g '\${1+\"\$@\"}'='\"\$@\"'
390  setopt NO_GLOB_SUBST
391else \$as_nop
392  case \`(set -o) 2>/dev/null\` in #(
393  *posix*) :
394    set -o posix ;; #(
395  *) :
396     ;;
397esac
398fi
399"
400  as_required="as_fn_return () { (exit \$1); }
401as_fn_success () { as_fn_return 0; }
402as_fn_failure () { as_fn_return 1; }
403as_fn_ret_success () { return 0; }
404as_fn_ret_failure () { return 1; }
405
406exitcode=0
407as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411if ( set x; as_fn_ret_success y && test x = \"\$1\" )
412then :
413
414else \$as_nop
415  exitcode=1; echo positional parameters were not saved.
416fi
417test x\$exitcode = x0 || exit 1
418blah=\$(echo \$(echo blah))
419test x\"\$blah\" = xblah || exit 1
420test -x / || exit 1"
421  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425test \$(( 1 + 1 )) = 2 || exit 1
426
427  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431    PATH=/empty FPATH=/empty; export PATH FPATH
432    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434  if (eval "$as_required") 2>/dev/null
435then :
436  as_have_required=yes
437else $as_nop
438  as_have_required=no
439fi
440  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
441then :
442
443else $as_nop
444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
445as_found=false
446for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447do
448  IFS=$as_save_IFS
449  case $as_dir in #(((
450    '') as_dir=./ ;;
451    */) ;;
452    *) as_dir=$as_dir/ ;;
453  esac
454  as_found=:
455  case $as_dir in #(
456	 /*)
457	   for as_base in sh bash ksh sh5; do
458	     # Try only shells that exist, to save several forks.
459	     as_shell=$as_dir$as_base
460	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
462then :
463  CONFIG_SHELL=$as_shell as_have_required=yes
464		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
465then :
466  break 2
467fi
468fi
469	   done;;
470       esac
471  as_found=false
472done
473IFS=$as_save_IFS
474if $as_found
475then :
476
477else $as_nop
478  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
480then :
481  CONFIG_SHELL=$SHELL as_have_required=yes
482fi
483fi
484
485
486      if test "x$CONFIG_SHELL" != x
487then :
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'.
505printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509    if test x$as_have_required = xno
510then :
511  printf "%s\n" "$0: This script requires a shell more modern than all"
512  printf "%s\n" "$0: the shells that I found on your system."
513  if test ${ZSH_VERSION+y} ; then
514    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
516  else
517    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518$0: mailing list: https://curl.se/mail/ about your system,
519$0: including any error possibly output before this
520$0: message. Then install a modern shell, or manually run
521$0: the script under such a shell if you do have one."
522  fi
523  exit 1
524fi
525fi
526fi
527SHELL=${CONFIG_SHELL-/bin/sh}
528export SHELL
529# Unset more variables known to interfere with behavior of common tools.
530CLICOLOR_FORCE= GREP_OPTIONS=
531unset CLICOLOR_FORCE GREP_OPTIONS
532
533## --------------------- ##
534## M4sh Shell Functions. ##
535## --------------------- ##
536# as_fn_unset VAR
537# ---------------
538# Portably unset VAR.
539as_fn_unset ()
540{
541  { eval $1=; unset $1;}
542}
543as_unset=as_fn_unset
544
545
546# as_fn_set_status STATUS
547# -----------------------
548# Set $? to STATUS, without forking.
549as_fn_set_status ()
550{
551  return $1
552} # as_fn_set_status
553
554# as_fn_exit STATUS
555# -----------------
556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
557as_fn_exit ()
558{
559  set +e
560  as_fn_set_status $1
561  exit $1
562} # as_fn_exit
563# as_fn_nop
564# ---------
565# Do nothing but, unlike ":", preserve the value of $?.
566as_fn_nop ()
567{
568  return $?
569}
570as_nop=as_fn_nop
571
572# as_fn_mkdir_p
573# -------------
574# Create "$as_dir" as a directory, including parents if necessary.
575as_fn_mkdir_p ()
576{
577
578  case $as_dir in #(
579  -*) as_dir=./$as_dir;;
580  esac
581  test -d "$as_dir" || eval $as_mkdir_p || {
582    as_dirs=
583    while :; do
584      case $as_dir in #(
585      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
586      *) as_qdir=$as_dir;;
587      esac
588      as_dirs="'$as_qdir' $as_dirs"
589      as_dir=`$as_dirname -- "$as_dir" ||
590$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591	 X"$as_dir" : 'X\(//\)[^/]' \| \
592	 X"$as_dir" : 'X\(//\)$' \| \
593	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594printf "%s\n" X"$as_dir" |
595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
596	    s//\1/
597	    q
598	  }
599	  /^X\(\/\/\)[^/].*/{
600	    s//\1/
601	    q
602	  }
603	  /^X\(\/\/\)$/{
604	    s//\1/
605	    q
606	  }
607	  /^X\(\/\).*/{
608	    s//\1/
609	    q
610	  }
611	  s/.*/./; q'`
612      test -d "$as_dir" && break
613    done
614    test -z "$as_dirs" || eval "mkdir $as_dirs"
615  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
616
617
618} # as_fn_mkdir_p
619
620# as_fn_executable_p FILE
621# -----------------------
622# Test if FILE is an executable regular file.
623as_fn_executable_p ()
624{
625  test -f "$1" && test -x "$1"
626} # as_fn_executable_p
627# as_fn_append VAR VALUE
628# ----------------------
629# Append the text in VALUE to the end of the definition contained in VAR. Take
630# advantage of any shell optimizations that allow amortized linear growth over
631# repeated appends, instead of the typical quadratic growth present in naive
632# implementations.
633if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
634then :
635  eval 'as_fn_append ()
636  {
637    eval $1+=\$2
638  }'
639else $as_nop
640  as_fn_append ()
641  {
642    eval $1=\$$1\$2
643  }
644fi # as_fn_append
645
646# as_fn_arith ARG...
647# ------------------
648# Perform arithmetic evaluation on the ARGs, and store the result in the
649# global $as_val. Take advantage of shells that can avoid forks. The arguments
650# must be portable across $(()) and expr.
651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
652then :
653  eval 'as_fn_arith ()
654  {
655    as_val=$(( $* ))
656  }'
657else $as_nop
658  as_fn_arith ()
659  {
660    as_val=`expr "$@" || test $? -eq 1`
661  }
662fi # as_fn_arith
663
664# as_fn_nop
665# ---------
666# Do nothing but, unlike ":", preserve the value of $?.
667as_fn_nop ()
668{
669  return $?
670}
671as_nop=as_fn_nop
672
673# as_fn_error STATUS ERROR [LINENO LOG_FD]
674# ----------------------------------------
675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677# script with STATUS, using 1 if that was 0.
678as_fn_error ()
679{
680  as_status=$1; test $as_status -eq 0 && as_status=1
681  if test "$4"; then
682    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
684  fi
685  printf "%s\n" "$as_me: error: $2" >&2
686  as_fn_exit $as_status
687} # as_fn_error
688
689if expr a : '\(a\)' >/dev/null 2>&1 &&
690   test "X`expr 00001 : '.*\(...\)'`" = X001; then
691  as_expr=expr
692else
693  as_expr=false
694fi
695
696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697  as_basename=basename
698else
699  as_basename=false
700fi
701
702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703  as_dirname=dirname
704else
705  as_dirname=false
706fi
707
708as_me=`$as_basename -- "$0" ||
709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710	 X"$0" : 'X\(//\)$' \| \
711	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712printf "%s\n" X/"$0" |
713    sed '/^.*\/\([^/][^/]*\)\/*$/{
714	    s//\1/
715	    q
716	  }
717	  /^X\/\(\/\/\)$/{
718	    s//\1/
719	    q
720	  }
721	  /^X\/\(\/\).*/{
722	    s//\1/
723	    q
724	  }
725	  s/.*/./; q'`
726
727# Avoid depending upon Character Ranges.
728as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731as_cr_digits='0123456789'
732as_cr_alnum=$as_cr_Letters$as_cr_digits
733
734
735  as_lineno_1=$LINENO as_lineno_1a=$LINENO
736  as_lineno_2=$LINENO as_lineno_2a=$LINENO
737  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
740  sed -n '
741    p
742    /[$]LINENO/=
743  ' <$as_myself |
744    sed '
745      s/[$]LINENO.*/&-/
746      t lineno
747      b
748      :lineno
749      N
750      :loop
751      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
752      t loop
753      s/-\n.*//
754    ' >$as_me.lineno &&
755  chmod +x "$as_me.lineno" ||
756    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
757
758  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759  # already done that, so ensure we don't try to do so again and fall
760  # in an infinite loop.  This has already happened in practice.
761  _as_can_reexec=no; export _as_can_reexec
762  # Don't try to exec as it changes $[0], causing all sort of problems
763  # (the dirname of $[0] is not the place where we might find the
764  # original and so on.  Autoconf is especially sensitive to this).
765  . "./$as_me.lineno"
766  # Exit status is that of the last command.
767  exit
768}
769
770
771# Determine whether it's possible to make 'echo' print without a newline.
772# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773# for compatibility with existing Makefiles.
774ECHO_C= ECHO_N= ECHO_T=
775case `echo -n x` in #(((((
776-n*)
777  case `echo 'xy\c'` in
778  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
779  xy)  ECHO_C='\c';;
780  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
781       ECHO_T='	';;
782  esac;;
783*)
784  ECHO_N='-n';;
785esac
786
787# For backward compatibility with old third-party macros, we provide
788# the shell variables $as_echo and $as_echo_n.  New code should use
789# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790as_echo='printf %s\n'
791as_echo_n='printf %s'
792
793
794rm -f conf$$ conf$$.exe conf$$.file
795if test -d conf$$.dir; then
796  rm -f conf$$.dir/conf$$.file
797else
798  rm -f conf$$.dir
799  mkdir conf$$.dir 2>/dev/null
800fi
801if (echo >conf$$.file) 2>/dev/null; then
802  if ln -s conf$$.file conf$$ 2>/dev/null; then
803    as_ln_s='ln -s'
804    # ... but there are two gotchas:
805    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807    # In both cases, we have to default to `cp -pR'.
808    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
809      as_ln_s='cp -pR'
810  elif ln conf$$.file conf$$ 2>/dev/null; then
811    as_ln_s=ln
812  else
813    as_ln_s='cp -pR'
814  fi
815else
816  as_ln_s='cp -pR'
817fi
818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819rmdir conf$$.dir 2>/dev/null
820
821if mkdir -p . 2>/dev/null; then
822  as_mkdir_p='mkdir -p "$as_dir"'
823else
824  test -d ./-p && rmdir ./-p
825  as_mkdir_p=false
826fi
827
828as_test_x='test -x'
829as_executable_p=as_fn_executable_p
830
831# Sed expression to map a string onto a valid CPP name.
832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
833
834# Sed expression to map a string onto a valid variable name.
835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
836
837SHELL=${CONFIG_SHELL-/bin/sh}
838
839
840test -n "$DJDIR" || exec 7<&0 </dev/null
841exec 6>&1
842
843# Name of the host.
844# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845# so uname gets run too.
846ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
847
848#
849# Initializations.
850#
851ac_default_prefix=/usr/local
852ac_clean_files=
853ac_config_libobj_dir=.
854LIBOBJS=
855cross_compiling=no
856subdirs=
857MFLAGS=
858MAKEFLAGS=
859
860# Identity of this package.
861PACKAGE_NAME='curl'
862PACKAGE_TARNAME='curl'
863PACKAGE_VERSION='-'
864PACKAGE_STRING='curl -'
865PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
866PACKAGE_URL=''
867
868ac_unique_file="lib/urldata.h"
869# Factoring default headers for most tests.
870ac_includes_default="\
871#include <stddef.h>
872#ifdef HAVE_STDIO_H
873# include <stdio.h>
874#endif
875#ifdef HAVE_STDLIB_H
876# include <stdlib.h>
877#endif
878#ifdef HAVE_STRING_H
879# include <string.h>
880#endif
881#ifdef HAVE_INTTYPES_H
882# include <inttypes.h>
883#endif
884#ifdef HAVE_STDINT_H
885# include <stdint.h>
886#endif
887#ifdef HAVE_STRINGS_H
888# include <strings.h>
889#endif
890#ifdef HAVE_SYS_TYPES_H
891# include <sys/types.h>
892#endif
893#ifdef HAVE_SYS_STAT_H
894# include <sys/stat.h>
895#endif
896#ifdef HAVE_UNISTD_H
897# include <unistd.h>
898#endif"
899
900ac_header_c_list=
901ac_subst_vars='am__EXEEXT_FALSE
902am__EXEEXT_TRUE
903LTLIBOBJS
904LIBOBJS
905SSL_BACKENDS
906SUPPORT_PROTOCOLS
907SUPPORT_FEATURES
908LIBCURL_NO_SHARED
909ENABLE_STATIC
910ENABLE_SHARED
911CROSSCOMPILING_FALSE
912CROSSCOMPILING_TRUE
913BLANK_AT_MAKETIME
914CURL_NETWORK_AND_TIME_LIBS
915CURL_NETWORK_LIBS
916LIBCURL_LIBS
917CFLAG_CURL_SYMBOL_HIDING
918DOING_CURL_SYMBOL_HIDING_FALSE
919DOING_CURL_SYMBOL_HIDING_TRUE
920USE_UNIX_SOCKETS
921BUILD_LIBHOSTNAME_FALSE
922BUILD_LIBHOSTNAME_TRUE
923USE_ARES
924USE_MANUAL_FALSE
925USE_MANUAL_TRUE
926MANOPT
927NROFF
928PERL
929FISH_FUNCTIONS_DIR
930ZSH_FUNCTIONS_DIR
931USE_MSH3
932USE_QUICHE
933USE_NGHTTP3
934USE_NGTCP2_CRYPTO_WOLFSSL
935USE_NGTCP2_CRYPTO_GNUTLS
936USE_NGTCP2_CRYPTO_QUICTLS
937USE_NGTCP2
938USE_NGHTTP2
939IDN_ENABLED
940CURL_PLIST_VERSION
941CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
942CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
943CURL_LT_SHLIB_VERSIONED_FLAVOUR
944USE_LIBRTMP
945USE_WOLFSSH
946USE_LIBSSH
947USE_LIBSSH2
948USE_GSASL_FALSE
949USE_GSASL_TRUE
950USE_LIBPSL_FALSE
951USE_LIBPSL_TRUE
952CURL_CA_BUNDLE
953CURL_WITH_MULTI_SSL
954SSL_ENABLED
955USE_RUSTLS
956USE_BEARSSL
957USE_WOLFSSL
958USE_MBEDTLS
959HAVE_GNUTLS_SRP
960USE_GNUTLS
961HAVE_OPENSSL_SRP
962RANDOM_FILE
963SSL_LIBS
964USE_SECTRANSP
965USE_WINDOWS_SSPI
966USE_SCHANNEL
967DEFAULT_SSL_BACKEND
968BUILD_STUB_GSS_FALSE
969BUILD_STUB_GSS_TRUE
970IPV6_ENABLED
971USE_OPENLDAP
972HAVE_ZSTD
973HAVE_BROTLI
974ZLIB_LIBS
975HAVE_LIBZ_FALSE
976HAVE_LIBZ_TRUE
977HAVE_LIBZ
978HAVE_PROTO_BSDSOCKET_H
979CURL_DISABLE_MQTT
980CURL_DISABLE_GOPHER
981CURL_DISABLE_SMTP
982CURL_DISABLE_SMB
983CURL_DISABLE_IMAP
984CURL_DISABLE_POP3
985CURL_DISABLE_TFTP
986CURL_DISABLE_TELNET
987CURL_DISABLE_DICT
988CURL_DISABLE_PROXY
989USE_HYPER
990PKGCONFIG
991HAVE_LDAP_SSL
992CURL_DISABLE_LDAPS
993CURL_DISABLE_LDAP
994CURL_DISABLE_FILE
995CURL_DISABLE_FTP
996CURL_DISABLE_RTSP
997CURL_DISABLE_HTTP
998HAVE_WINDRES_FALSE
999HAVE_WINDRES_TRUE
1000USE_WIN32_CRYPTO
1001USE_WIN32_SMALL_FILES
1002USE_WIN32_LARGE_FILES
1003DOING_NATIVE_WINDOWS_FALSE
1004DOING_NATIVE_WINDOWS_TRUE
1005BUILD_UNITTESTS_FALSE
1006BUILD_UNITTESTS_TRUE
1007CURLDEBUG_FALSE
1008CURLDEBUG_TRUE
1009CURL_CFLAG_EXTRAS
1010USE_EXPLICIT_LIB_DEPS_FALSE
1011USE_EXPLICIT_LIB_DEPS_TRUE
1012REQUIRE_LIB_DEPS
1013CPPFLAG_CURL_STATICLIB
1014USE_CPPFLAG_CURL_STATICLIB_FALSE
1015USE_CPPFLAG_CURL_STATICLIB_TRUE
1016CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1017CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1018CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1019CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1020CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1021CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1022RC
1023LT_SYS_LIBRARY_PATH
1024OTOOL64
1025OTOOL
1026LIPO
1027NMEDIT
1028DSYMUTIL
1029MANIFEST_TOOL
1030RANLIB
1031ac_ct_AR
1032FILECMD
1033LN_S
1034NM
1035ac_ct_DUMPBIN
1036DUMPBIN
1037LD
1038FGREP
1039LIBTOOL
1040OBJDUMP
1041DLLTOOL
1042AS
1043AR_FLAGS
1044host_os
1045host_vendor
1046host_cpu
1047host
1048build_os
1049build_vendor
1050build_cpu
1051build
1052HTTPD_NGHTTPX
1053APACHECTL
1054HTTPD
1055APXS
1056CADDY
1057TEST_NGHTTPX
1058PKGADD_VENDOR
1059PKGADD_NAME
1060PKGADD_PKG
1061VERSIONNUM
1062CURLVERSION
1063CSCOPE
1064ETAGS
1065CTAGS
1066am__fastdepCC_FALSE
1067am__fastdepCC_TRUE
1068CCDEPMODE
1069am__nodep
1070AMDEPBACKSLASH
1071AMDEP_FALSE
1072AMDEP_TRUE
1073am__include
1074DEPDIR
1075am__untar
1076am__tar
1077AMTAR
1078am__leading_dot
1079SET_MAKE
1080AWK
1081mkdir_p
1082MKDIR_P
1083INSTALL_STRIP_PROGRAM
1084STRIP
1085install_sh
1086MAKEINFO
1087AUTOHEADER
1088AUTOMAKE
1089AUTOCONF
1090ACLOCAL
1091VERSION
1092PACKAGE
1093CYGPATH_W
1094am__isrc
1095LCOV
1096GCOV
1097CPP
1098OBJEXT
1099EXEEXT
1100ac_ct_CC
1101CPPFLAGS
1102LDFLAGS
1103CFLAGS
1104CC
1105INSTALL_DATA
1106INSTALL_SCRIPT
1107INSTALL_PROGRAM
1108libext
1109AR
1110EGREP
1111GREP
1112SED
1113CONFIGURE_OPTIONS
1114AM_BACKSLASH
1115AM_DEFAULT_VERBOSITY
1116AM_DEFAULT_V
1117AM_V
1118MAINT
1119MAINTAINER_MODE_FALSE
1120MAINTAINER_MODE_TRUE
1121target_alias
1122host_alias
1123build_alias
1124LIBS
1125ECHO_T
1126ECHO_N
1127ECHO_C
1128DEFS
1129mandir
1130localedir
1131libdir
1132psdir
1133pdfdir
1134dvidir
1135htmldir
1136infodir
1137docdir
1138oldincludedir
1139includedir
1140runstatedir
1141localstatedir
1142sharedstatedir
1143sysconfdir
1144datadir
1145datarootdir
1146libexecdir
1147sbindir
1148bindir
1149program_transform_name
1150prefix
1151exec_prefix
1152PACKAGE_URL
1153PACKAGE_BUGREPORT
1154PACKAGE_STRING
1155PACKAGE_VERSION
1156PACKAGE_TARNAME
1157PACKAGE_NAME
1158SHELL
1159PATH_SEPARATOR
1160am__quote'
1161ac_subst_files=''
1162ac_user_opts='
1163enable_option_checking
1164enable_maintainer_mode
1165enable_silent_rules
1166enable_debug
1167enable_optimize
1168enable_warnings
1169enable_werror
1170enable_curldebug
1171enable_symbol_hiding
1172enable_ares
1173enable_rt
1174enable_ech
1175enable_code_coverage
1176enable_dependency_tracking
1177with_schannel
1178with_secure_transport
1179with_amissl
1180with_ssl
1181with_openssl
1182with_gnutls
1183with_mbedtls
1184with_wolfssl
1185with_bearssl
1186with_rustls
1187with_test_nghttpx
1188with_test_caddy
1189with_test_httpd
1190with_darwinssl
1191enable_largefile
1192enable_shared
1193enable_static
1194with_pic
1195enable_fast_install
1196with_aix_soname
1197with_gnu_ld
1198with_sysroot
1199enable_libtool_lock
1200enable_http
1201enable_ftp
1202enable_file
1203enable_ldap
1204enable_ldaps
1205with_hyper
1206enable_rtsp
1207enable_proxy
1208enable_dict
1209enable_telnet
1210enable_tftp
1211enable_pop3
1212enable_imap
1213enable_smb
1214enable_smtp
1215enable_gopher
1216enable_mqtt
1217enable_manual
1218enable_libcurl_option
1219enable_libgcc
1220with_zlib
1221with_brotli
1222with_zstd
1223with_ldap_lib
1224with_lber_lib
1225enable_ipv6
1226with_gssapi_includes
1227with_gssapi_libs
1228with_gssapi
1229with_default_ssl_backend
1230with_random
1231enable_openssl_auto_load_config
1232with_ca_bundle
1233with_ca_path
1234with_ca_fallback
1235with_libpsl
1236with_libgsasl
1237with_libmetalink
1238with_libssh2
1239with_libssh
1240with_wolfssh
1241with_librtmp
1242enable_versioned_symbols
1243with_winidn
1244with_libidn2
1245with_nghttp2
1246with_ngtcp2
1247with_nghttp3
1248with_quiche
1249with_msh3
1250with_zsh_functions_dir
1251with_fish_functions_dir
1252enable_threaded_resolver
1253enable_pthreads
1254enable_verbose
1255enable_sspi
1256enable_basic_auth
1257enable_bearer_auth
1258enable_digest_auth
1259enable_kerberos_auth
1260enable_negotiate_auth
1261enable_aws
1262enable_ntlm
1263enable_ntlm_wb
1264enable_tls_srp
1265enable_unix_sockets
1266enable_cookies
1267enable_socketpair
1268enable_http_auth
1269enable_doh
1270enable_mime
1271enable_bindlocal
1272enable_form_api
1273enable_dateparse
1274enable_netrc
1275enable_progress_meter
1276enable_dnsshuffle
1277enable_get_easy_options
1278enable_alt_svc
1279enable_headers_api
1280enable_hsts
1281enable_websockets
1282'
1283      ac_precious_vars='build_alias
1284host_alias
1285target_alias
1286CC
1287CFLAGS
1288LDFLAGS
1289LIBS
1290CPPFLAGS
1291CPP
1292LT_SYS_LIBRARY_PATH'
1293
1294
1295# Initialize some variables set by options.
1296ac_init_help=
1297ac_init_version=false
1298ac_unrecognized_opts=
1299ac_unrecognized_sep=
1300# The variables have the same names as the options, with
1301# dashes changed to underlines.
1302cache_file=/dev/null
1303exec_prefix=NONE
1304no_create=
1305no_recursion=
1306prefix=NONE
1307program_prefix=NONE
1308program_suffix=NONE
1309program_transform_name=s,x,x,
1310silent=
1311site=
1312srcdir=
1313verbose=
1314x_includes=NONE
1315x_libraries=NONE
1316
1317# Installation directory options.
1318# These are left unexpanded so users can "make install exec_prefix=/foo"
1319# and all the variables that are supposed to be based on exec_prefix
1320# by default will actually change.
1321# Use braces instead of parens because sh, perl, etc. also accept them.
1322# (The list follows the same order as the GNU Coding Standards.)
1323bindir='${exec_prefix}/bin'
1324sbindir='${exec_prefix}/sbin'
1325libexecdir='${exec_prefix}/libexec'
1326datarootdir='${prefix}/share'
1327datadir='${datarootdir}'
1328sysconfdir='${prefix}/etc'
1329sharedstatedir='${prefix}/com'
1330localstatedir='${prefix}/var'
1331runstatedir='${localstatedir}/run'
1332includedir='${prefix}/include'
1333oldincludedir='/usr/include'
1334docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1335infodir='${datarootdir}/info'
1336htmldir='${docdir}'
1337dvidir='${docdir}'
1338pdfdir='${docdir}'
1339psdir='${docdir}'
1340libdir='${exec_prefix}/lib'
1341localedir='${datarootdir}/locale'
1342mandir='${datarootdir}/man'
1343
1344ac_prev=
1345ac_dashdash=
1346for ac_option
1347do
1348  # If the previous option needs an argument, assign it.
1349  if test -n "$ac_prev"; then
1350    eval $ac_prev=\$ac_option
1351    ac_prev=
1352    continue
1353  fi
1354
1355  case $ac_option in
1356  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1357  *=)   ac_optarg= ;;
1358  *)    ac_optarg=yes ;;
1359  esac
1360
1361  case $ac_dashdash$ac_option in
1362  --)
1363    ac_dashdash=yes ;;
1364
1365  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1366    ac_prev=bindir ;;
1367  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368    bindir=$ac_optarg ;;
1369
1370  -build | --build | --buil | --bui | --bu)
1371    ac_prev=build_alias ;;
1372  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373    build_alias=$ac_optarg ;;
1374
1375  -cache-file | --cache-file | --cache-fil | --cache-fi \
1376  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377    ac_prev=cache_file ;;
1378  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380    cache_file=$ac_optarg ;;
1381
1382  --config-cache | -C)
1383    cache_file=config.cache ;;
1384
1385  -datadir | --datadir | --datadi | --datad)
1386    ac_prev=datadir ;;
1387  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388    datadir=$ac_optarg ;;
1389
1390  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391  | --dataroo | --dataro | --datar)
1392    ac_prev=datarootdir ;;
1393  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395    datarootdir=$ac_optarg ;;
1396
1397  -disable-* | --disable-*)
1398    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399    # Reject names that are not valid shell variable names.
1400    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1402    ac_useropt_orig=$ac_useropt
1403    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1404    case $ac_user_opts in
1405      *"
1406"enable_$ac_useropt"
1407"*) ;;
1408      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409	 ac_unrecognized_sep=', ';;
1410    esac
1411    eval enable_$ac_useropt=no ;;
1412
1413  -docdir | --docdir | --docdi | --doc | --do)
1414    ac_prev=docdir ;;
1415  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416    docdir=$ac_optarg ;;
1417
1418  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1419    ac_prev=dvidir ;;
1420  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421    dvidir=$ac_optarg ;;
1422
1423  -enable-* | --enable-*)
1424    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425    # Reject names that are not valid shell variable names.
1426    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1428    ac_useropt_orig=$ac_useropt
1429    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1430    case $ac_user_opts in
1431      *"
1432"enable_$ac_useropt"
1433"*) ;;
1434      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435	 ac_unrecognized_sep=', ';;
1436    esac
1437    eval enable_$ac_useropt=\$ac_optarg ;;
1438
1439  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441  | --exec | --exe | --ex)
1442    ac_prev=exec_prefix ;;
1443  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445  | --exec=* | --exe=* | --ex=*)
1446    exec_prefix=$ac_optarg ;;
1447
1448  -gas | --gas | --ga | --g)
1449    # Obsolete; use --with-gas.
1450    with_gas=yes ;;
1451
1452  -help | --help | --hel | --he | -h)
1453    ac_init_help=long ;;
1454  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455    ac_init_help=recursive ;;
1456  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457    ac_init_help=short ;;
1458
1459  -host | --host | --hos | --ho)
1460    ac_prev=host_alias ;;
1461  -host=* | --host=* | --hos=* | --ho=*)
1462    host_alias=$ac_optarg ;;
1463
1464  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465    ac_prev=htmldir ;;
1466  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467  | --ht=*)
1468    htmldir=$ac_optarg ;;
1469
1470  -includedir | --includedir | --includedi | --included | --include \
1471  | --includ | --inclu | --incl | --inc)
1472    ac_prev=includedir ;;
1473  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474  | --includ=* | --inclu=* | --incl=* | --inc=*)
1475    includedir=$ac_optarg ;;
1476
1477  -infodir | --infodir | --infodi | --infod | --info | --inf)
1478    ac_prev=infodir ;;
1479  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480    infodir=$ac_optarg ;;
1481
1482  -libdir | --libdir | --libdi | --libd)
1483    ac_prev=libdir ;;
1484  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485    libdir=$ac_optarg ;;
1486
1487  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488  | --libexe | --libex | --libe)
1489    ac_prev=libexecdir ;;
1490  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491  | --libexe=* | --libex=* | --libe=*)
1492    libexecdir=$ac_optarg ;;
1493
1494  -localedir | --localedir | --localedi | --localed | --locale)
1495    ac_prev=localedir ;;
1496  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497    localedir=$ac_optarg ;;
1498
1499  -localstatedir | --localstatedir | --localstatedi | --localstated \
1500  | --localstate | --localstat | --localsta | --localst | --locals)
1501    ac_prev=localstatedir ;;
1502  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504    localstatedir=$ac_optarg ;;
1505
1506  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507    ac_prev=mandir ;;
1508  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509    mandir=$ac_optarg ;;
1510
1511  -nfp | --nfp | --nf)
1512    # Obsolete; use --without-fp.
1513    with_fp=no ;;
1514
1515  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516  | --no-cr | --no-c | -n)
1517    no_create=yes ;;
1518
1519  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521    no_recursion=yes ;;
1522
1523  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525  | --oldin | --oldi | --old | --ol | --o)
1526    ac_prev=oldincludedir ;;
1527  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530    oldincludedir=$ac_optarg ;;
1531
1532  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533    ac_prev=prefix ;;
1534  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535    prefix=$ac_optarg ;;
1536
1537  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538  | --program-pre | --program-pr | --program-p)
1539    ac_prev=program_prefix ;;
1540  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542    program_prefix=$ac_optarg ;;
1543
1544  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545  | --program-suf | --program-su | --program-s)
1546    ac_prev=program_suffix ;;
1547  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549    program_suffix=$ac_optarg ;;
1550
1551  -program-transform-name | --program-transform-name \
1552  | --program-transform-nam | --program-transform-na \
1553  | --program-transform-n | --program-transform- \
1554  | --program-transform | --program-transfor \
1555  | --program-transfo | --program-transf \
1556  | --program-trans | --program-tran \
1557  | --progr-tra | --program-tr | --program-t)
1558    ac_prev=program_transform_name ;;
1559  -program-transform-name=* | --program-transform-name=* \
1560  | --program-transform-nam=* | --program-transform-na=* \
1561  | --program-transform-n=* | --program-transform-=* \
1562  | --program-transform=* | --program-transfor=* \
1563  | --program-transfo=* | --program-transf=* \
1564  | --program-trans=* | --program-tran=* \
1565  | --progr-tra=* | --program-tr=* | --program-t=*)
1566    program_transform_name=$ac_optarg ;;
1567
1568  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569    ac_prev=pdfdir ;;
1570  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571    pdfdir=$ac_optarg ;;
1572
1573  -psdir | --psdir | --psdi | --psd | --ps)
1574    ac_prev=psdir ;;
1575  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576    psdir=$ac_optarg ;;
1577
1578  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579  | -silent | --silent | --silen | --sile | --sil)
1580    silent=yes ;;
1581
1582  -runstatedir | --runstatedir | --runstatedi | --runstated \
1583  | --runstate | --runstat | --runsta | --runst | --runs \
1584  | --run | --ru | --r)
1585    ac_prev=runstatedir ;;
1586  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1587  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1588  | --run=* | --ru=* | --r=*)
1589    runstatedir=$ac_optarg ;;
1590
1591  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1592    ac_prev=sbindir ;;
1593  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1594  | --sbi=* | --sb=*)
1595    sbindir=$ac_optarg ;;
1596
1597  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1598  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1599  | --sharedst | --shareds | --shared | --share | --shar \
1600  | --sha | --sh)
1601    ac_prev=sharedstatedir ;;
1602  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1603  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1604  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1605  | --sha=* | --sh=*)
1606    sharedstatedir=$ac_optarg ;;
1607
1608  -site | --site | --sit)
1609    ac_prev=site ;;
1610  -site=* | --site=* | --sit=*)
1611    site=$ac_optarg ;;
1612
1613  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1614    ac_prev=srcdir ;;
1615  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1616    srcdir=$ac_optarg ;;
1617
1618  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1619  | --syscon | --sysco | --sysc | --sys | --sy)
1620    ac_prev=sysconfdir ;;
1621  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1622  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1623    sysconfdir=$ac_optarg ;;
1624
1625  -target | --target | --targe | --targ | --tar | --ta | --t)
1626    ac_prev=target_alias ;;
1627  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1628    target_alias=$ac_optarg ;;
1629
1630  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1631    verbose=yes ;;
1632
1633  -version | --version | --versio | --versi | --vers | -V)
1634    ac_init_version=: ;;
1635
1636  -with-* | --with-*)
1637    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1638    # Reject names that are not valid shell variable names.
1639    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1640      as_fn_error $? "invalid package name: \`$ac_useropt'"
1641    ac_useropt_orig=$ac_useropt
1642    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1643    case $ac_user_opts in
1644      *"
1645"with_$ac_useropt"
1646"*) ;;
1647      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1648	 ac_unrecognized_sep=', ';;
1649    esac
1650    eval with_$ac_useropt=\$ac_optarg ;;
1651
1652  -without-* | --without-*)
1653    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1654    # Reject names that are not valid shell variable names.
1655    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656      as_fn_error $? "invalid package name: \`$ac_useropt'"
1657    ac_useropt_orig=$ac_useropt
1658    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1659    case $ac_user_opts in
1660      *"
1661"with_$ac_useropt"
1662"*) ;;
1663      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1664	 ac_unrecognized_sep=', ';;
1665    esac
1666    eval with_$ac_useropt=no ;;
1667
1668  --x)
1669    # Obsolete; use --with-x.
1670    with_x=yes ;;
1671
1672  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1673  | --x-incl | --x-inc | --x-in | --x-i)
1674    ac_prev=x_includes ;;
1675  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1676  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1677    x_includes=$ac_optarg ;;
1678
1679  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1680  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1681    ac_prev=x_libraries ;;
1682  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1683  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1684    x_libraries=$ac_optarg ;;
1685
1686  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1687Try \`$0 --help' for more information"
1688    ;;
1689
1690  *=*)
1691    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1692    # Reject names that are not valid shell variable names.
1693    case $ac_envvar in #(
1694      '' | [0-9]* | *[!_$as_cr_alnum]* )
1695      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1696    esac
1697    eval $ac_envvar=\$ac_optarg
1698    export $ac_envvar ;;
1699
1700  *)
1701    # FIXME: should be removed in autoconf 3.0.
1702    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1703    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1704      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1705    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1706    ;;
1707
1708  esac
1709done
1710
1711if test -n "$ac_prev"; then
1712  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1713  as_fn_error $? "missing argument to $ac_option"
1714fi
1715
1716if test -n "$ac_unrecognized_opts"; then
1717  case $enable_option_checking in
1718    no) ;;
1719    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1720    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1721  esac
1722fi
1723
1724# Check all directory arguments for consistency.
1725for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1726		datadir sysconfdir sharedstatedir localstatedir includedir \
1727		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1728		libdir localedir mandir runstatedir
1729do
1730  eval ac_val=\$$ac_var
1731  # Remove trailing slashes.
1732  case $ac_val in
1733    */ )
1734      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1735      eval $ac_var=\$ac_val;;
1736  esac
1737  # Be sure to have absolute directory names.
1738  case $ac_val in
1739    [\\/$]* | ?:[\\/]* )  continue;;
1740    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1741  esac
1742  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1743done
1744
1745# There might be people who depend on the old broken behavior: `$host'
1746# used to hold the argument of --host etc.
1747# FIXME: To remove some day.
1748build=$build_alias
1749host=$host_alias
1750target=$target_alias
1751
1752# FIXME: To remove some day.
1753if test "x$host_alias" != x; then
1754  if test "x$build_alias" = x; then
1755    cross_compiling=maybe
1756  elif test "x$build_alias" != "x$host_alias"; then
1757    cross_compiling=yes
1758  fi
1759fi
1760
1761ac_tool_prefix=
1762test -n "$host_alias" && ac_tool_prefix=$host_alias-
1763
1764test "$silent" = yes && exec 6>/dev/null
1765
1766
1767ac_pwd=`pwd` && test -n "$ac_pwd" &&
1768ac_ls_di=`ls -di .` &&
1769ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1770  as_fn_error $? "working directory cannot be determined"
1771test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1772  as_fn_error $? "pwd does not report name of working directory"
1773
1774
1775# Find the source files, if location was not specified.
1776if test -z "$srcdir"; then
1777  ac_srcdir_defaulted=yes
1778  # Try the directory containing this script, then the parent directory.
1779  ac_confdir=`$as_dirname -- "$as_myself" ||
1780$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781	 X"$as_myself" : 'X\(//\)[^/]' \| \
1782	 X"$as_myself" : 'X\(//\)$' \| \
1783	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784printf "%s\n" X"$as_myself" |
1785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1786	    s//\1/
1787	    q
1788	  }
1789	  /^X\(\/\/\)[^/].*/{
1790	    s//\1/
1791	    q
1792	  }
1793	  /^X\(\/\/\)$/{
1794	    s//\1/
1795	    q
1796	  }
1797	  /^X\(\/\).*/{
1798	    s//\1/
1799	    q
1800	  }
1801	  s/.*/./; q'`
1802  srcdir=$ac_confdir
1803  if test ! -r "$srcdir/$ac_unique_file"; then
1804    srcdir=..
1805  fi
1806else
1807  ac_srcdir_defaulted=no
1808fi
1809if test ! -r "$srcdir/$ac_unique_file"; then
1810  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1812fi
1813ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1814ac_abs_confdir=`(
1815	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1816	pwd)`
1817# When building in place, set srcdir=.
1818if test "$ac_abs_confdir" = "$ac_pwd"; then
1819  srcdir=.
1820fi
1821# Remove unnecessary trailing slashes from srcdir.
1822# Double slashes in file names in object file debugging info
1823# mess up M-x gdb in Emacs.
1824case $srcdir in
1825*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1826esac
1827for ac_var in $ac_precious_vars; do
1828  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1829  eval ac_env_${ac_var}_value=\$${ac_var}
1830  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1831  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1832done
1833
1834#
1835# Report the --help message.
1836#
1837if test "$ac_init_help" = "long"; then
1838  # Omit some internal or obsolete options to make the list less imposing.
1839  # This message is too long to be a string in the A/UX 3.1 sh.
1840  cat <<_ACEOF
1841\`configure' configures curl - to adapt to many kinds of systems.
1842
1843Usage: $0 [OPTION]... [VAR=VALUE]...
1844
1845To assign environment variables (e.g., CC, CFLAGS...), specify them as
1846VAR=VALUE.  See below for descriptions of some of the useful variables.
1847
1848Defaults for the options are specified in brackets.
1849
1850Configuration:
1851  -h, --help              display this help and exit
1852      --help=short        display options specific to this package
1853      --help=recursive    display the short help of all the included packages
1854  -V, --version           display version information and exit
1855  -q, --quiet, --silent   do not print \`checking ...' messages
1856      --cache-file=FILE   cache test results in FILE [disabled]
1857  -C, --config-cache      alias for \`--cache-file=config.cache'
1858  -n, --no-create         do not create output files
1859      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1860
1861Installation directories:
1862  --prefix=PREFIX         install architecture-independent files in PREFIX
1863                          [$ac_default_prefix]
1864  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1865                          [PREFIX]
1866
1867By default, \`make install' will install all the files in
1868\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1869an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1870for instance \`--prefix=\$HOME'.
1871
1872For better control, use the options below.
1873
1874Fine tuning of the installation directories:
1875  --bindir=DIR            user executables [EPREFIX/bin]
1876  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1877  --libexecdir=DIR        program executables [EPREFIX/libexec]
1878  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1879  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1880  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1881  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1882  --libdir=DIR            object code libraries [EPREFIX/lib]
1883  --includedir=DIR        C header files [PREFIX/include]
1884  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1885  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1886  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1887  --infodir=DIR           info documentation [DATAROOTDIR/info]
1888  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1889  --mandir=DIR            man documentation [DATAROOTDIR/man]
1890  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1891  --htmldir=DIR           html documentation [DOCDIR]
1892  --dvidir=DIR            dvi documentation [DOCDIR]
1893  --pdfdir=DIR            pdf documentation [DOCDIR]
1894  --psdir=DIR             ps documentation [DOCDIR]
1895_ACEOF
1896
1897  cat <<\_ACEOF
1898
1899Program names:
1900  --program-prefix=PREFIX            prepend PREFIX to installed program names
1901  --program-suffix=SUFFIX            append SUFFIX to installed program names
1902  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1903
1904System types:
1905  --build=BUILD     configure for building on BUILD [guessed]
1906  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1907_ACEOF
1908fi
1909
1910if test -n "$ac_init_help"; then
1911  case $ac_init_help in
1912     short | recursive ) echo "Configuration of curl -:";;
1913   esac
1914  cat <<\_ACEOF
1915
1916Optional Features:
1917  --disable-option-checking  ignore unrecognized --enable/--with options
1918  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1919  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1920  --enable-maintainer-mode
1921                          enable make rules and dependencies not useful (and
1922                          sometimes confusing) to the casual installer
1923  --enable-silent-rules   less verbose build output (undo: "make V=1")
1924  --disable-silent-rules  verbose build output (undo: "make V=0")
1925  --enable-debug          Enable debug build options
1926  --disable-debug         Disable debug build options
1927  --enable-optimize       Enable compiler optimizations
1928  --disable-optimize      Disable compiler optimizations
1929  --enable-warnings       Enable strict compiler warnings
1930  --disable-warnings      Disable strict compiler warnings
1931  --enable-werror         Enable compiler warnings as errors
1932  --disable-werror        Disable compiler warnings as errors
1933  --enable-curldebug      Enable curl debug memory tracking
1934  --disable-curldebug     Disable curl debug memory tracking
1935  --enable-symbol-hiding  Enable hiding of library internal symbols
1936  --disable-symbol-hiding Disable hiding of library internal symbols
1937  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1938  --disable-ares          Disable c-ares for DNS lookups
1939  --disable-rt            disable dependency on -lrt
1940  --enable-ech            Enable ECH support
1941  --disable-ech           Disable ECH support
1942  --enable-code-coverage  Provide code coverage
1943  --enable-dependency-tracking
1944                          do not reject slow dependency extractors
1945  --disable-dependency-tracking
1946                          speeds up one-time build
1947  --disable-largefile     omit support for large files
1948  --enable-shared[=PKGS]  build shared libraries [default=yes]
1949  --enable-static[=PKGS]  build static libraries [default=yes]
1950  --enable-fast-install[=PKGS]
1951                          optimize for fast installation [default=yes]
1952  --disable-libtool-lock  avoid locking (might break parallel builds)
1953  --enable-http           Enable HTTP support
1954  --disable-http          Disable HTTP support
1955  --enable-ftp            Enable FTP support
1956  --disable-ftp           Disable FTP support
1957  --enable-file           Enable FILE support
1958  --disable-file          Disable FILE support
1959  --enable-ldap           Enable LDAP support
1960  --disable-ldap          Disable LDAP support
1961  --enable-ldaps          Enable LDAPS support
1962  --disable-ldaps         Disable LDAPS support
1963  --enable-rtsp           Enable RTSP support
1964  --disable-rtsp          Disable RTSP support
1965  --enable-proxy          Enable proxy support
1966  --disable-proxy         Disable proxy support
1967  --enable-dict           Enable DICT support
1968  --disable-dict          Disable DICT support
1969  --enable-telnet         Enable TELNET support
1970  --disable-telnet        Disable TELNET support
1971  --enable-tftp           Enable TFTP support
1972  --disable-tftp          Disable TFTP support
1973  --enable-pop3           Enable POP3 support
1974  --disable-pop3          Disable POP3 support
1975  --enable-imap           Enable IMAP support
1976  --disable-imap          Disable IMAP support
1977  --enable-smb            Enable SMB/CIFS support
1978  --disable-smb           Disable SMB/CIFS support
1979  --enable-smtp           Enable SMTP support
1980  --disable-smtp          Disable SMTP support
1981  --enable-gopher         Enable Gopher support
1982  --disable-gopher        Disable Gopher support
1983  --enable-mqtt           Enable MQTT support
1984  --disable-mqtt          Disable MQTT support
1985  --enable-manual         Enable built-in manual
1986  --disable-manual        Disable built-in manual
1987  --enable-libcurl-option Enable --libcurl C code generation support
1988  --disable-libcurl-option
1989                          Disable --libcurl C code generation support
1990  --enable-libgcc         use libgcc when linking
1991  --enable-ipv6           Enable IPv6 (with IPv4) support
1992  --disable-ipv6          Disable IPv6 support
1993  --enable-openssl-auto-load-config
1994                          Enable automatic loading of OpenSSL configuration
1995  --disable-openssl-auto-load-config
1996                          Disable automatic loading of OpenSSL configuration
1997  --enable-versioned-symbols
1998                          Enable versioned symbols in shared library
1999  --disable-versioned-symbols
2000                          Disable versioned symbols in shared library
2001  --enable-threaded-resolver
2002                          Enable threaded resolver
2003  --disable-threaded-resolver
2004                          Disable threaded resolver
2005  --enable-pthreads       Enable POSIX threads (default for threaded resolver)
2006  --disable-pthreads      Disable POSIX threads
2007  --enable-verbose        Enable verbose strings
2008  --disable-verbose       Disable verbose strings
2009  --enable-sspi           Enable SSPI
2010  --disable-sspi          Disable SSPI
2011  --enable-basic-auth     Enable basic authentication (default)
2012  --disable-basic-auth    Disable basic authentication
2013  --enable-bearer-auth    Enable bearer authentication (default)
2014  --disable-bearer-auth   Disable bearer authentication
2015  --enable-digest-auth    Enable digest authentication (default)
2016  --disable-digest-auth   Disable digest authentication
2017  --enable-kerberos-auth  Enable kerberos authentication (default)
2018  --disable-kerberos-auth Disable kerberos authentication
2019  --enable-negotiate-auth Enable negotiate authentication (default)
2020  --disable-negotiate-auth
2021                          Disable negotiate authentication
2022  --enable-aws            Enable AWS sig support (default)
2023  --disable-aws           Disable AWS sig support
2024  --enable-ntlm           Enable NTLM support
2025  --disable-ntlm          Disable NTLM support
2026  --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2027                          helper, where FILE is ntlm_auth's absolute filename
2028                          (default: /usr/bin/ntlm_auth)
2029  --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2030                          helper
2031  --enable-tls-srp        Enable TLS-SRP authentication
2032  --disable-tls-srp       Disable TLS-SRP authentication
2033  --enable-unix-sockets   Enable Unix domain sockets
2034  --disable-unix-sockets  Disable Unix domain sockets
2035  --enable-cookies        Enable cookies support
2036  --disable-cookies       Disable cookies support
2037  --enable-socketpair     Enable socketpair support
2038  --disable-socketpair    Disable socketpair support
2039  --enable-http-auth      Enable HTTP authentication support
2040  --disable-http-auth     Disable HTTP authentication support
2041  --enable-doh            Enable DoH support
2042  --disable-doh           Disable DoH support
2043  --enable-mime           Enable mime API support
2044  --disable-mime          Disable mime API support
2045  --enable-bindlocal      Enable local binding support
2046  --disable-bindlocal     Disable local binding support
2047  --enable-form-api       Enable form API support
2048  --disable-form-api      Disable form API support
2049  --enable-dateparse      Enable date parsing
2050  --disable-dateparse     Disable date parsing
2051  --enable-netrc          Enable netrc parsing
2052  --disable-netrc         Disable netrc parsing
2053  --enable-progress-meter Enable progress-meter
2054  --disable-progress-meter
2055                          Disable progress-meter
2056  --enable-dnsshuffle     Enable DNS shuffling
2057  --disable-dnsshuffle    Disable DNS shuffling
2058  --enable-get-easy-options
2059                          Enable curl_easy_options
2060  --disable-get-easy-options
2061                          Disable curl_easy_options
2062  --enable-alt-svc        Enable alt-svc support
2063  --disable-alt-svc       Disable alt-svc support
2064  --enable-headers-api    Enable headers-api support
2065  --disable-headers-api   Disable headers-api support
2066  --enable-hsts           Enable HSTS support
2067  --disable-hsts          Disable HSTS support
2068  --enable-websockets     Enable WebSockets support
2069  --disable-websockets    Disable WebSockets support
2070
2071Optional Packages:
2072  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2073  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2074  --with-schannel         enable Windows native SSL/TLS
2075  --with-secure-transport enable Apple OS native SSL/TLS
2076  --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2077  --with-ssl=PATH         old version of --with-openssl
2078  --without-ssl           build without any TLS library
2079  --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2080                          installation (default: /usr/local/ssl); when
2081                          possible, set the PKG_CONFIG_PATH environment
2082                          variable instead of using this option
2083  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2084                          installation root
2085  --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2086                          installation root
2087  --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2088                          installation root (default: system lib default)
2089  --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2090                          installation root
2091  --with-rustls=PATH      where to look for rustls, PATH points to the
2092                          installation root
2093  --with-test-nghttpx=PATH
2094                          where to find nghttpx for testing
2095  --with-test-caddy=PATH  where to find caddy for testing
2096  --with-test-httpd=PATH  where to find httpd/apache2 for testing
2097
2098  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2099                          both]
2100  --with-aix-soname=aix|svr4|both
2101                          shared library versioning (aka "SONAME") variant to
2102                          provide on AIX, [default=aix].
2103  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2104  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2105                          compiler's sysroot if not specified).
2106  --with-hyper=PATH       Enable hyper usage
2107  --without-hyper         Disable hyper usage
2108  --with-zlib=PATH        search for zlib in PATH
2109  --without-zlib          disable use of zlib
2110  --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2111                          installation; when possible, set the PKG_CONFIG_PATH
2112                          environment variable instead of using this option
2113  --without-brotli        disable BROTLI
2114  --with-zstd=PATH        Where to look for libzstd, PATH points to the
2115                          libzstd installation; when possible, set the
2116                          PKG_CONFIG_PATH environment variable instead of
2117                          using this option
2118  --without-zstd          disable libzstd
2119  --with-ldap-lib=libname Specify name of ldap lib file
2120  --with-lber-lib=libname Specify name of lber lib file
2121  --with-gssapi-includes=DIR
2122                          Specify location of GSS-API headers
2123  --with-gssapi-libs=DIR  Specify location of GSS-API libs
2124  --with-gssapi=DIR       Where to look for GSS-API
2125  --with-default-ssl-backend=NAME
2126                          Use NAME as default SSL backend
2127  --without-default-ssl-backend
2128                          Use implicit default SSL backend
2129  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2130  --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2131                          /etc/ca-bundle.crt)
2132  --without-ca-bundle     Don't use a default CA bundle
2133  --with-ca-path=DIRECTORY
2134                          Path to a directory containing CA certificates
2135                          stored individually, with their filenames in a hash
2136                          format. This option can be used with the OpenSSL,
2137                          GnuTLS, mbedTLS and wolfSSL backends. Refer to
2138                          OpenSSL c_rehash for details. (example:
2139                          /etc/certificates)
2140  --without-ca-path       Don't use a default CA path
2141  --with-ca-fallback      Use the built in CA store of the SSL library
2142  --without-ca-fallback   Don't use the built in CA store of the SSL library
2143  --without-libpsl        disable support for libpsl cookie checking
2144  --without-libgsasl      disable libgsasl support for SCRAM
2145  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2146                          libssh2 installation; when possible, set the
2147                          PKG_CONFIG_PATH environment variable instead of
2148                          using this option
2149  --with-libssh2          enable libssh2
2150  --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2151                          installation; when possible, set the PKG_CONFIG_PATH
2152                          environment variable instead of using this option
2153  --with-libssh           enable libssh
2154  --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2155                          wolfSSH installation; when possible, set the
2156                          PKG_CONFIG_PATH environment variable instead of
2157                          using this option
2158  --with-wolfssh          enable wolfssh
2159  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2160                          LIBRTMP installation; when possible, set the
2161                          PKG_CONFIG_PATH environment variable instead of
2162                          using this option
2163  --without-librtmp       disable LIBRTMP
2164  --with-winidn=PATH      enable Windows native IDN
2165  --without-winidn        disable Windows native IDN
2166  --with-libidn2=PATH     Enable libidn2 usage
2167  --without-libidn2       Disable libidn2 usage
2168  --with-nghttp2=PATH     Enable nghttp2 usage
2169  --without-nghttp2       Disable nghttp2 usage
2170  --with-ngtcp2=PATH      Enable ngtcp2 usage
2171  --without-ngtcp2        Disable ngtcp2 usage
2172  --with-nghttp3=PATH     Enable nghttp3 usage
2173  --without-nghttp3       Disable nghttp3 usage
2174  --with-quiche=PATH      Enable quiche usage
2175  --without-quiche        Disable quiche usage
2176  --with-msh3=PATH        Enable msh3 usage
2177  --without-msh3          Disable msh3 usage
2178  --with-zsh-functions-dir=PATH
2179                          Install zsh completions to PATH
2180  --without-zsh-functions-dir
2181                          Do not install zsh completions
2182  --with-fish-functions-dir=PATH
2183                          Install fish completions to PATH
2184  --without-fish-functions-dir
2185                          Do not install fish completions
2186
2187Some influential environment variables:
2188  CC          C compiler command
2189  CFLAGS      C compiler flags
2190  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2191              nonstandard directory <lib dir>
2192  LIBS        libraries to pass to the linker, e.g. -l<library>
2193  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2194              you have headers in a nonstandard directory <include dir>
2195  CPP         C preprocessor
2196  LT_SYS_LIBRARY_PATH
2197              User-defined run-time library search path.
2198
2199Use these variables to override the choices made by `configure' or to help
2200it to find libraries and programs with nonstandard names/locations.
2201
2202Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2203_ACEOF
2204ac_status=$?
2205fi
2206
2207if test "$ac_init_help" = "recursive"; then
2208  # If there are subdirs, report their specific --help.
2209  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2210    test -d "$ac_dir" ||
2211      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2212      continue
2213    ac_builddir=.
2214
2215case "$ac_dir" in
2216.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2217*)
2218  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2219  # A ".." for each directory in $ac_dir_suffix.
2220  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2221  case $ac_top_builddir_sub in
2222  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2223  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2224  esac ;;
2225esac
2226ac_abs_top_builddir=$ac_pwd
2227ac_abs_builddir=$ac_pwd$ac_dir_suffix
2228# for backward compatibility:
2229ac_top_builddir=$ac_top_build_prefix
2230
2231case $srcdir in
2232  .)  # We are building in place.
2233    ac_srcdir=.
2234    ac_top_srcdir=$ac_top_builddir_sub
2235    ac_abs_top_srcdir=$ac_pwd ;;
2236  [\\/]* | ?:[\\/]* )  # Absolute name.
2237    ac_srcdir=$srcdir$ac_dir_suffix;
2238    ac_top_srcdir=$srcdir
2239    ac_abs_top_srcdir=$srcdir ;;
2240  *) # Relative name.
2241    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2242    ac_top_srcdir=$ac_top_build_prefix$srcdir
2243    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2244esac
2245ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2246
2247    cd "$ac_dir" || { ac_status=$?; continue; }
2248    # Check for configure.gnu first; this name is used for a wrapper for
2249    # Metaconfig's "Configure" on case-insensitive file systems.
2250    if test -f "$ac_srcdir/configure.gnu"; then
2251      echo &&
2252      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2253    elif test -f "$ac_srcdir/configure"; then
2254      echo &&
2255      $SHELL "$ac_srcdir/configure" --help=recursive
2256    else
2257      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2258    fi || ac_status=$?
2259    cd "$ac_pwd" || { ac_status=$?; break; }
2260  done
2261fi
2262
2263test -n "$ac_init_help" && exit $ac_status
2264if $ac_init_version; then
2265  cat <<\_ACEOF
2266curl configure -
2267generated by GNU Autoconf 2.71
2268
2269Copyright (C) 2021 Free Software Foundation, Inc.
2270This configure script is free software; the Free Software Foundation
2271gives unlimited permission to copy, distribute and modify it.
2272
2273Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2274This configure script may be copied, distributed and modified under the
2275terms of the curl license; see COPYING for more details
2276_ACEOF
2277  exit
2278fi
2279
2280## ------------------------ ##
2281## Autoconf initialization. ##
2282## ------------------------ ##
2283
2284# ac_fn_c_try_compile LINENO
2285# --------------------------
2286# Try to compile conftest.$ac_ext, and return whether this succeeded.
2287ac_fn_c_try_compile ()
2288{
2289  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290  rm -f conftest.$ac_objext conftest.beam
2291  if { { ac_try="$ac_compile"
2292case "(($ac_try" in
2293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294  *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297printf "%s\n" "$ac_try_echo"; } >&5
2298  (eval "$ac_compile") 2>conftest.err
2299  ac_status=$?
2300  if test -s conftest.err; then
2301    grep -v '^ *+' conftest.err >conftest.er1
2302    cat conftest.er1 >&5
2303    mv -f conftest.er1 conftest.err
2304  fi
2305  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306  test $ac_status = 0; } && {
2307	 test -z "$ac_c_werror_flag" ||
2308	 test ! -s conftest.err
2309       } && test -s conftest.$ac_objext
2310then :
2311  ac_retval=0
2312else $as_nop
2313  printf "%s\n" "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316	ac_retval=1
2317fi
2318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319  as_fn_set_status $ac_retval
2320
2321} # ac_fn_c_try_compile
2322
2323# ac_fn_c_try_cpp LINENO
2324# ----------------------
2325# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2326ac_fn_c_try_cpp ()
2327{
2328  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329  if { { ac_try="$ac_cpp conftest.$ac_ext"
2330case "(($ac_try" in
2331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332  *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335printf "%s\n" "$ac_try_echo"; } >&5
2336  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2337  ac_status=$?
2338  if test -s conftest.err; then
2339    grep -v '^ *+' conftest.err >conftest.er1
2340    cat conftest.er1 >&5
2341    mv -f conftest.er1 conftest.err
2342  fi
2343  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344  test $ac_status = 0; } > conftest.i && {
2345	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2346	 test ! -s conftest.err
2347       }
2348then :
2349  ac_retval=0
2350else $as_nop
2351  printf "%s\n" "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354    ac_retval=1
2355fi
2356  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357  as_fn_set_status $ac_retval
2358
2359} # ac_fn_c_try_cpp
2360
2361# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2362# -------------------------------------------------------
2363# Tests whether HEADER exists and can be compiled using the include files in
2364# INCLUDES, setting the cache variable VAR accordingly.
2365ac_fn_c_check_header_compile ()
2366{
2367  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369printf %s "checking for $2... " >&6; }
2370if eval test \${$3+y}
2371then :
2372  printf %s "(cached) " >&6
2373else $as_nop
2374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375/* end confdefs.h.  */
2376$4
2377#include <$2>
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"
2380then :
2381  eval "$3=yes"
2382else $as_nop
2383  eval "$3=no"
2384fi
2385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2386fi
2387eval ac_res=\$$3
2388	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389printf "%s\n" "$ac_res" >&6; }
2390  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392} # ac_fn_c_check_header_compile
2393
2394# ac_fn_c_try_link LINENO
2395# -----------------------
2396# Try to link conftest.$ac_ext, and return whether this succeeded.
2397ac_fn_c_try_link ()
2398{
2399  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2401  if { { ac_try="$ac_link"
2402case "(($ac_try" in
2403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404  *) ac_try_echo=$ac_try;;
2405esac
2406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407printf "%s\n" "$ac_try_echo"; } >&5
2408  (eval "$ac_link") 2>conftest.err
2409  ac_status=$?
2410  if test -s conftest.err; then
2411    grep -v '^ *+' conftest.err >conftest.er1
2412    cat conftest.er1 >&5
2413    mv -f conftest.er1 conftest.err
2414  fi
2415  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416  test $ac_status = 0; } && {
2417	 test -z "$ac_c_werror_flag" ||
2418	 test ! -s conftest.err
2419       } && test -s conftest$ac_exeext && {
2420	 test "$cross_compiling" = yes ||
2421	 test -x conftest$ac_exeext
2422       }
2423then :
2424  ac_retval=0
2425else $as_nop
2426  printf "%s\n" "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
2428
2429	ac_retval=1
2430fi
2431  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2432  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2433  # interfere with the next link command; also delete a directory that is
2434  # left behind by Apple's compiler.  We do this before executing the actions.
2435  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2436  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437  as_fn_set_status $ac_retval
2438
2439} # ac_fn_c_try_link
2440
2441# ac_fn_c_check_func LINENO FUNC VAR
2442# ----------------------------------
2443# Tests whether FUNC exists, setting the cache variable VAR accordingly
2444ac_fn_c_check_func ()
2445{
2446  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448printf %s "checking for $2... " >&6; }
2449if eval test \${$3+y}
2450then :
2451  printf %s "(cached) " >&6
2452else $as_nop
2453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h.  */
2455
2456#define $2 innocuous_$2
2457#ifdef __STDC__
2458# include <limits.h>
2459#else
2460# include <assert.h>
2461#endif
2462#undef $2
2463#ifdef __cplusplus
2464extern "C"
2465#endif
2466char $2 ();
2467#if defined __stub_$2 || defined __stub___$2
2468choke me
2469#endif
2470
2471int main (void)
2472{
2473return $2 ();
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_link "$LINENO"
2479then :
2480  eval "$3=yes"
2481else $as_nop
2482  eval "$3=no"
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.beam \
2485    conftest$ac_exeext conftest.$ac_ext
2486fi
2487eval ac_res=\$$3
2488	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489printf "%s\n" "$ac_res" >&6; }
2490  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_c_check_func
2493
2494# ac_fn_c_try_run LINENO
2495# ----------------------
2496# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2497# executables *can* be run.
2498ac_fn_c_try_run ()
2499{
2500  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501  if { { ac_try="$ac_link"
2502case "(($ac_try" in
2503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504  *) ac_try_echo=$ac_try;;
2505esac
2506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507printf "%s\n" "$ac_try_echo"; } >&5
2508  (eval "$ac_link") 2>&5
2509  ac_status=$?
2510  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512  { { case "(($ac_try" in
2513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514  *) ac_try_echo=$ac_try;;
2515esac
2516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517printf "%s\n" "$ac_try_echo"; } >&5
2518  (eval "$ac_try") 2>&5
2519  ac_status=$?
2520  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521  test $ac_status = 0; }; }
2522then :
2523  ac_retval=0
2524else $as_nop
2525  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2526       printf "%s\n" "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529       ac_retval=$ac_status
2530fi
2531  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533  as_fn_set_status $ac_retval
2534
2535} # ac_fn_c_try_run
2536
2537# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2538# -------------------------------------------------------
2539# Tests whether TYPE exists after having included INCLUDES, setting cache
2540# variable VAR accordingly.
2541ac_fn_c_check_type ()
2542{
2543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545printf %s "checking for $2... " >&6; }
2546if eval test \${$3+y}
2547then :
2548  printf %s "(cached) " >&6
2549else $as_nop
2550  eval "$3=no"
2551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h.  */
2553$4
2554int main (void)
2555{
2556if (sizeof ($2))
2557	 return 0;
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"
2563then :
2564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h.  */
2566$4
2567int main (void)
2568{
2569if (sizeof (($2)))
2570	    return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"
2576then :
2577
2578else $as_nop
2579  eval "$3=yes"
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2582fi
2583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2584fi
2585eval ac_res=\$$3
2586	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587printf "%s\n" "$ac_res" >&6; }
2588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590} # ac_fn_c_check_type
2591
2592# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2593# ------------------------------------------------------------------
2594# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2595# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2596ac_fn_check_decl ()
2597{
2598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599  as_decl_name=`echo $2|sed 's/ *(.*//'`
2600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2601printf %s "checking whether $as_decl_name is declared... " >&6; }
2602if eval test \${$3+y}
2603then :
2604  printf %s "(cached) " >&6
2605else $as_nop
2606  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2607  eval ac_save_FLAGS=\$$6
2608  as_fn_append $6 " $5"
2609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h.  */
2611$4
2612int main (void)
2613{
2614#ifndef $as_decl_name
2615#ifdef __cplusplus
2616  (void) $as_decl_use;
2617#else
2618  (void) $as_decl_name;
2619#endif
2620#endif
2621
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626if ac_fn_c_try_compile "$LINENO"
2627then :
2628  eval "$3=yes"
2629else $as_nop
2630  eval "$3=no"
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2633  eval $6=\$ac_save_FLAGS
2634
2635fi
2636eval ac_res=\$$3
2637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638printf "%s\n" "$ac_res" >&6; }
2639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640
2641} # ac_fn_check_decl
2642
2643# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2644# ----------------------------------------------------
2645# Tries to find if the field MEMBER exists in type AGGR, after including
2646# INCLUDES, setting cache variable VAR accordingly.
2647ac_fn_c_check_member ()
2648{
2649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2651printf %s "checking for $2.$3... " >&6; }
2652if eval test \${$4+y}
2653then :
2654  printf %s "(cached) " >&6
2655else $as_nop
2656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657/* end confdefs.h.  */
2658$5
2659int main (void)
2660{
2661static $2 ac_aggr;
2662if (ac_aggr.$3)
2663return 0;
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668if ac_fn_c_try_compile "$LINENO"
2669then :
2670  eval "$4=yes"
2671else $as_nop
2672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673/* end confdefs.h.  */
2674$5
2675int main (void)
2676{
2677static $2 ac_aggr;
2678if (sizeof ac_aggr.$3)
2679return 0;
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684if ac_fn_c_try_compile "$LINENO"
2685then :
2686  eval "$4=yes"
2687else $as_nop
2688  eval "$4=no"
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2691fi
2692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2693fi
2694eval ac_res=\$$4
2695	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696printf "%s\n" "$ac_res" >&6; }
2697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698
2699} # ac_fn_c_check_member
2700ac_configure_args_raw=
2701for ac_arg
2702do
2703  case $ac_arg in
2704  *\'*)
2705    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2706  esac
2707  as_fn_append ac_configure_args_raw " '$ac_arg'"
2708done
2709
2710case $ac_configure_args_raw in
2711  *$as_nl*)
2712    ac_safe_unquote= ;;
2713  *)
2714    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2715    ac_unsafe_a="$ac_unsafe_z#~"
2716    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2717    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2718esac
2719
2720cat >config.log <<_ACEOF
2721This file contains any messages produced by compilers while
2722running configure, to aid debugging if configure makes a mistake.
2723
2724It was created by curl $as_me -, which was
2725generated by GNU Autoconf 2.71.  Invocation command line was
2726
2727  $ $0$ac_configure_args_raw
2728
2729_ACEOF
2730exec 5>>config.log
2731{
2732cat <<_ASUNAME
2733## --------- ##
2734## Platform. ##
2735## --------- ##
2736
2737hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2738uname -m = `(uname -m) 2>/dev/null || echo unknown`
2739uname -r = `(uname -r) 2>/dev/null || echo unknown`
2740uname -s = `(uname -s) 2>/dev/null || echo unknown`
2741uname -v = `(uname -v) 2>/dev/null || echo unknown`
2742
2743/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2744/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2745
2746/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2747/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2748/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2749/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2750/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2751/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2752/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2753
2754_ASUNAME
2755
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  case $as_dir in #(((
2761    '') as_dir=./ ;;
2762    */) ;;
2763    *) as_dir=$as_dir/ ;;
2764  esac
2765    printf "%s\n" "PATH: $as_dir"
2766  done
2767IFS=$as_save_IFS
2768
2769} >&5
2770
2771cat >&5 <<_ACEOF
2772
2773
2774## ----------- ##
2775## Core tests. ##
2776## ----------- ##
2777
2778_ACEOF
2779
2780
2781# Keep a trace of the command line.
2782# Strip out --no-create and --no-recursion so they do not pile up.
2783# Strip out --silent because we don't want to record it for future runs.
2784# Also quote any args containing shell meta-characters.
2785# Make two passes to allow for proper duplicate-argument suppression.
2786ac_configure_args=
2787ac_configure_args0=
2788ac_configure_args1=
2789ac_must_keep_next=false
2790for ac_pass in 1 2
2791do
2792  for ac_arg
2793  do
2794    case $ac_arg in
2795    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2796    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2797    | -silent | --silent | --silen | --sile | --sil)
2798      continue ;;
2799    *\'*)
2800      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2801    esac
2802    case $ac_pass in
2803    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2804    2)
2805      as_fn_append ac_configure_args1 " '$ac_arg'"
2806      if test $ac_must_keep_next = true; then
2807	ac_must_keep_next=false # Got value, back to normal.
2808      else
2809	case $ac_arg in
2810	  *=* | --config-cache | -C | -disable-* | --disable-* \
2811	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2812	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2813	  | -with-* | --with-* | -without-* | --without-* | --x)
2814	    case "$ac_configure_args0 " in
2815	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2816	    esac
2817	    ;;
2818	  -* ) ac_must_keep_next=true ;;
2819	esac
2820      fi
2821      as_fn_append ac_configure_args " '$ac_arg'"
2822      ;;
2823    esac
2824  done
2825done
2826{ ac_configure_args0=; unset ac_configure_args0;}
2827{ ac_configure_args1=; unset ac_configure_args1;}
2828
2829# When interrupted or exit'd, cleanup temporary files, and complete
2830# config.log.  We remove comments because anyway the quotes in there
2831# would cause problems or look ugly.
2832# WARNING: Use '\'' to represent an apostrophe within the trap.
2833# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2834trap 'exit_status=$?
2835  # Sanitize IFS.
2836  IFS=" ""	$as_nl"
2837  # Save into config.log some information that might help in debugging.
2838  {
2839    echo
2840
2841    printf "%s\n" "## ---------------- ##
2842## Cache variables. ##
2843## ---------------- ##"
2844    echo
2845    # The following way of writing the cache mishandles newlines in values,
2846(
2847  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2848    eval ac_val=\$$ac_var
2849    case $ac_val in #(
2850    *${as_nl}*)
2851      case $ac_var in #(
2852      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2853printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2854      esac
2855      case $ac_var in #(
2856      _ | IFS | as_nl) ;; #(
2857      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2858      *) { eval $ac_var=; unset $ac_var;} ;;
2859      esac ;;
2860    esac
2861  done
2862  (set) 2>&1 |
2863    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2864    *${as_nl}ac_space=\ *)
2865      sed -n \
2866	"s/'\''/'\''\\\\'\'''\''/g;
2867	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2868      ;; #(
2869    *)
2870      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2871      ;;
2872    esac |
2873    sort
2874)
2875    echo
2876
2877    printf "%s\n" "## ----------------- ##
2878## Output variables. ##
2879## ----------------- ##"
2880    echo
2881    for ac_var in $ac_subst_vars
2882    do
2883      eval ac_val=\$$ac_var
2884      case $ac_val in
2885      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886      esac
2887      printf "%s\n" "$ac_var='\''$ac_val'\''"
2888    done | sort
2889    echo
2890
2891    if test -n "$ac_subst_files"; then
2892      printf "%s\n" "## ------------------- ##
2893## File substitutions. ##
2894## ------------------- ##"
2895      echo
2896      for ac_var in $ac_subst_files
2897      do
2898	eval ac_val=\$$ac_var
2899	case $ac_val in
2900	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2901	esac
2902	printf "%s\n" "$ac_var='\''$ac_val'\''"
2903      done | sort
2904      echo
2905    fi
2906
2907    if test -s confdefs.h; then
2908      printf "%s\n" "## ----------- ##
2909## confdefs.h. ##
2910## ----------- ##"
2911      echo
2912      cat confdefs.h
2913      echo
2914    fi
2915    test "$ac_signal" != 0 &&
2916      printf "%s\n" "$as_me: caught signal $ac_signal"
2917    printf "%s\n" "$as_me: exit $exit_status"
2918  } >&5
2919  rm -f core *.core core.conftest.* &&
2920    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2921    exit $exit_status
2922' 0
2923for ac_signal in 1 2 13 15; do
2924  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2925done
2926ac_signal=0
2927
2928# confdefs.h avoids OS command line length limits that DEFS can exceed.
2929rm -f -r conftest* confdefs.h
2930
2931printf "%s\n" "/* confdefs.h */" > confdefs.h
2932
2933# Predefined preprocessor variables.
2934
2935printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2936
2937printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2938
2939printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2940
2941printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2942
2943printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2944
2945printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2946
2947
2948# Let the site file select an alternate cache file if it wants to.
2949# Prefer an explicitly selected file to automatically selected ones.
2950if test -n "$CONFIG_SITE"; then
2951  ac_site_files="$CONFIG_SITE"
2952elif test "x$prefix" != xNONE; then
2953  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2954else
2955  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2956fi
2957
2958for ac_site_file in $ac_site_files
2959do
2960  case $ac_site_file in #(
2961  */*) :
2962     ;; #(
2963  *) :
2964    ac_site_file=./$ac_site_file ;;
2965esac
2966  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2968printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2969    sed 's/^/| /' "$ac_site_file" >&5
2970    . "$ac_site_file" \
2971      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2973as_fn_error $? "failed to load site script $ac_site_file
2974See \`config.log' for more details" "$LINENO" 5; }
2975  fi
2976done
2977
2978if test -r "$cache_file"; then
2979  # Some versions of bash will fail to source /dev/null (special files
2980  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2981  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2982    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2983printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2984    case $cache_file in
2985      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2986      *)                      . "./$cache_file";;
2987    esac
2988  fi
2989else
2990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2991printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2992  >$cache_file
2993fi
2994
2995# Test code for whether the C compiler supports C89 (global declarations)
2996ac_c_conftest_c89_globals='
2997/* Does the compiler advertise C89 conformance?
2998   Do not test the value of __STDC__, because some compilers set it to 0
2999   while being otherwise adequately conformant. */
3000#if !defined __STDC__
3001# error "Compiler does not advertise C89 conformance"
3002#endif
3003
3004#include <stddef.h>
3005#include <stdarg.h>
3006struct stat;
3007/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3008struct buf { int x; };
3009struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3010static char *e (p, i)
3011     char **p;
3012     int i;
3013{
3014  return p[i];
3015}
3016static char *f (char * (*g) (char **, int), char **p, ...)
3017{
3018  char *s;
3019  va_list v;
3020  va_start (v,p);
3021  s = g (p, va_arg (v,int));
3022  va_end (v);
3023  return s;
3024}
3025
3026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3027   function prototypes and stuff, but not \xHH hex character constants.
3028   These do not provoke an error unfortunately, instead are silently treated
3029   as an "x".  The following induces an error, until -std is added to get
3030   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3031   array size at least.  It is necessary to write \x00 == 0 to get something
3032   that is true only with -std.  */
3033int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3034
3035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036   inside strings and character constants.  */
3037#define FOO(x) '\''x'\''
3038int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3039
3040int test (int i, double x);
3041struct s1 {int (*f) (int a);};
3042struct s2 {int (*f) (double a);};
3043int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3044               int, int);'
3045
3046# Test code for whether the C compiler supports C89 (body of main).
3047ac_c_conftest_c89_main='
3048ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3049'
3050
3051# Test code for whether the C compiler supports C99 (global declarations)
3052ac_c_conftest_c99_globals='
3053// Does the compiler advertise C99 conformance?
3054#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3055# error "Compiler does not advertise C99 conformance"
3056#endif
3057
3058#include <stdbool.h>
3059extern int puts (const char *);
3060extern int printf (const char *, ...);
3061extern int dprintf (int, const char *, ...);
3062extern void *malloc (size_t);
3063
3064// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3065// dprintf is used instead of fprintf to avoid needing to declare
3066// FILE and stderr.
3067#define debug(...) dprintf (2, __VA_ARGS__)
3068#define showlist(...) puts (#__VA_ARGS__)
3069#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3070static void
3071test_varargs_macros (void)
3072{
3073  int x = 1234;
3074  int y = 5678;
3075  debug ("Flag");
3076  debug ("X = %d\n", x);
3077  showlist (The first, second, and third items.);
3078  report (x>y, "x is %d but y is %d", x, y);
3079}
3080
3081// Check long long types.
3082#define BIG64 18446744073709551615ull
3083#define BIG32 4294967295ul
3084#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3085#if !BIG_OK
3086  #error "your preprocessor is broken"
3087#endif
3088#if BIG_OK
3089#else
3090  #error "your preprocessor is broken"
3091#endif
3092static long long int bignum = -9223372036854775807LL;
3093static unsigned long long int ubignum = BIG64;
3094
3095struct incomplete_array
3096{
3097  int datasize;
3098  double data[];
3099};
3100
3101struct named_init {
3102  int number;
3103  const wchar_t *name;
3104  double average;
3105};
3106
3107typedef const char *ccp;
3108
3109static inline int
3110test_restrict (ccp restrict text)
3111{
3112  // See if C++-style comments work.
3113  // Iterate through items via the restricted pointer.
3114  // Also check for declarations in for loops.
3115  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3116    continue;
3117  return 0;
3118}
3119
3120// Check varargs and va_copy.
3121static bool
3122test_varargs (const char *format, ...)
3123{
3124  va_list args;
3125  va_start (args, format);
3126  va_list args_copy;
3127  va_copy (args_copy, args);
3128
3129  const char *str = "";
3130  int number = 0;
3131  float fnumber = 0;
3132
3133  while (*format)
3134    {
3135      switch (*format++)
3136	{
3137	case '\''s'\'': // string
3138	  str = va_arg (args_copy, const char *);
3139	  break;
3140	case '\''d'\'': // int
3141	  number = va_arg (args_copy, int);
3142	  break;
3143	case '\''f'\'': // float
3144	  fnumber = va_arg (args_copy, double);
3145	  break;
3146	default:
3147	  break;
3148	}
3149    }
3150  va_end (args_copy);
3151  va_end (args);
3152
3153  return *str && number && fnumber;
3154}
3155'
3156
3157# Test code for whether the C compiler supports C99 (body of main).
3158ac_c_conftest_c99_main='
3159  // Check bool.
3160  _Bool success = false;
3161  success |= (argc != 0);
3162
3163  // Check restrict.
3164  if (test_restrict ("String literal") == 0)
3165    success = true;
3166  char *restrict newvar = "Another string";
3167
3168  // Check varargs.
3169  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3170  test_varargs_macros ();
3171
3172  // Check flexible array members.
3173  struct incomplete_array *ia =
3174    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3175  ia->datasize = 10;
3176  for (int i = 0; i < ia->datasize; ++i)
3177    ia->data[i] = i * 1.234;
3178
3179  // Check named initializers.
3180  struct named_init ni = {
3181    .number = 34,
3182    .name = L"Test wide string",
3183    .average = 543.34343,
3184  };
3185
3186  ni.number = 58;
3187
3188  int dynamic_array[ni.number];
3189  dynamic_array[0] = argv[0][0];
3190  dynamic_array[ni.number - 1] = 543;
3191
3192  // work around unused variable warnings
3193  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3194	 || dynamic_array[ni.number - 1] != 543);
3195'
3196
3197# Test code for whether the C compiler supports C11 (global declarations)
3198ac_c_conftest_c11_globals='
3199// Does the compiler advertise C11 conformance?
3200#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3201# error "Compiler does not advertise C11 conformance"
3202#endif
3203
3204// Check _Alignas.
3205char _Alignas (double) aligned_as_double;
3206char _Alignas (0) no_special_alignment;
3207extern char aligned_as_int;
3208char _Alignas (0) _Alignas (int) aligned_as_int;
3209
3210// Check _Alignof.
3211enum
3212{
3213  int_alignment = _Alignof (int),
3214  int_array_alignment = _Alignof (int[100]),
3215  char_alignment = _Alignof (char)
3216};
3217_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3218
3219// Check _Noreturn.
3220int _Noreturn does_not_return (void) { for (;;) continue; }
3221
3222// Check _Static_assert.
3223struct test_static_assert
3224{
3225  int x;
3226  _Static_assert (sizeof (int) <= sizeof (long int),
3227                  "_Static_assert does not work in struct");
3228  long int y;
3229};
3230
3231// Check UTF-8 literals.
3232#define u8 syntax error!
3233char const utf8_literal[] = u8"happens to be ASCII" "another string";
3234
3235// Check duplicate typedefs.
3236typedef long *long_ptr;
3237typedef long int *long_ptr;
3238typedef long_ptr long_ptr;
3239
3240// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3241struct anonymous
3242{
3243  union {
3244    struct { int i; int j; };
3245    struct { int k; long int l; } w;
3246  };
3247  int m;
3248} v1;
3249'
3250
3251# Test code for whether the C compiler supports C11 (body of main).
3252ac_c_conftest_c11_main='
3253  _Static_assert ((offsetof (struct anonymous, i)
3254		   == offsetof (struct anonymous, w.k)),
3255		  "Anonymous union alignment botch");
3256  v1.i = 2;
3257  v1.w.k = 5;
3258  ok |= v1.i != 5;
3259'
3260
3261# Test code for whether the C compiler supports C11 (complete).
3262ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3263${ac_c_conftest_c99_globals}
3264${ac_c_conftest_c11_globals}
3265
3266int
3267main (int argc, char **argv)
3268{
3269  int ok = 0;
3270  ${ac_c_conftest_c89_main}
3271  ${ac_c_conftest_c99_main}
3272  ${ac_c_conftest_c11_main}
3273  return ok;
3274}
3275"
3276
3277# Test code for whether the C compiler supports C99 (complete).
3278ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3279${ac_c_conftest_c99_globals}
3280
3281int
3282main (int argc, char **argv)
3283{
3284  int ok = 0;
3285  ${ac_c_conftest_c89_main}
3286  ${ac_c_conftest_c99_main}
3287  return ok;
3288}
3289"
3290
3291# Test code for whether the C compiler supports C89 (complete).
3292ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3293
3294int
3295main (int argc, char **argv)
3296{
3297  int ok = 0;
3298  ${ac_c_conftest_c89_main}
3299  return ok;
3300}
3301"
3302
3303as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3304as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3305as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3306as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3307as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3308as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3309as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3310as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3311as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3312
3313# Auxiliary files required by this configure script.
3314ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3315
3316# Locations in which to look for auxiliary files.
3317ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3318
3319# Search for a directory containing all of the required auxiliary files,
3320# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3321# If we don't find one directory that contains all the files we need,
3322# we report the set of missing files from the *first* directory in
3323# $ac_aux_dir_candidates and give up.
3324ac_missing_aux_files=""
3325ac_first_candidate=:
3326printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328as_found=false
3329for as_dir in $ac_aux_dir_candidates
3330do
3331  IFS=$as_save_IFS
3332  case $as_dir in #(((
3333    '') as_dir=./ ;;
3334    */) ;;
3335    *) as_dir=$as_dir/ ;;
3336  esac
3337  as_found=:
3338
3339  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3340  ac_aux_dir_found=yes
3341  ac_install_sh=
3342  for ac_aux in $ac_aux_files
3343  do
3344    # As a special case, if "install-sh" is required, that requirement
3345    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3346    # and $ac_install_sh is set appropriately for whichever one is found.
3347    if test x"$ac_aux" = x"install-sh"
3348    then
3349      if test -f "${as_dir}install-sh"; then
3350        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3351        ac_install_sh="${as_dir}install-sh -c"
3352      elif test -f "${as_dir}install.sh"; then
3353        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3354        ac_install_sh="${as_dir}install.sh -c"
3355      elif test -f "${as_dir}shtool"; then
3356        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3357        ac_install_sh="${as_dir}shtool install -c"
3358      else
3359        ac_aux_dir_found=no
3360        if $ac_first_candidate; then
3361          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3362        else
3363          break
3364        fi
3365      fi
3366    else
3367      if test -f "${as_dir}${ac_aux}"; then
3368        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3369      else
3370        ac_aux_dir_found=no
3371        if $ac_first_candidate; then
3372          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3373        else
3374          break
3375        fi
3376      fi
3377    fi
3378  done
3379  if test "$ac_aux_dir_found" = yes; then
3380    ac_aux_dir="$as_dir"
3381    break
3382  fi
3383  ac_first_candidate=false
3384
3385  as_found=false
3386done
3387IFS=$as_save_IFS
3388if $as_found
3389then :
3390
3391else $as_nop
3392  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3393fi
3394
3395
3396# These three variables are undocumented and unsupported,
3397# and are intended to be withdrawn in a future Autoconf release.
3398# They can cause serious problems if a builder's source tree is in a directory
3399# whose full name contains unusual characters.
3400if test -f "${ac_aux_dir}config.guess"; then
3401  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3402fi
3403if test -f "${ac_aux_dir}config.sub"; then
3404  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3405fi
3406if test -f "$ac_aux_dir/configure"; then
3407  ac_configure="$SHELL ${ac_aux_dir}configure"
3408fi
3409
3410# Check that the precious variables saved in the cache have kept the same
3411# value.
3412ac_cache_corrupted=false
3413for ac_var in $ac_precious_vars; do
3414  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415  eval ac_new_set=\$ac_env_${ac_var}_set
3416  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417  eval ac_new_val=\$ac_env_${ac_var}_value
3418  case $ac_old_set,$ac_new_set in
3419    set,)
3420      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3421printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422      ac_cache_corrupted=: ;;
3423    ,set)
3424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3425printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426      ac_cache_corrupted=: ;;
3427    ,);;
3428    *)
3429      if test "x$ac_old_val" != "x$ac_new_val"; then
3430	# differences in whitespace do not lead to failure.
3431	ac_old_val_w=`echo x $ac_old_val`
3432	ac_new_val_w=`echo x $ac_new_val`
3433	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3434	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3435printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436	  ac_cache_corrupted=:
3437	else
3438	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3439printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440	  eval $ac_var=\$ac_old_val
3441	fi
3442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3443printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3445printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3446      fi;;
3447  esac
3448  # Pass precious variables to config.status.
3449  if test "$ac_new_set" = set; then
3450    case $ac_new_val in
3451    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452    *) ac_arg=$ac_var=$ac_new_val ;;
3453    esac
3454    case " $ac_configure_args " in
3455      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3456      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3457    esac
3458  fi
3459done
3460if $ac_cache_corrupted; then
3461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3464printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3465  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3466	    and start over" "$LINENO" 5
3467fi
3468## -------------------- ##
3469## Main body of script. ##
3470## -------------------- ##
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479
3480
3481
3482
3483
3484# using curl-override.m4
3485
3486
3487
3488
3489
3490ac_config_headers="$ac_config_headers lib/curl_config.h"
3491
3492
3493
3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3495printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3496    # Check whether --enable-maintainer-mode was given.
3497if test ${enable_maintainer_mode+y}
3498then :
3499  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3500else $as_nop
3501  USE_MAINTAINER_MODE=no
3502fi
3503
3504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3505printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3506   if test $USE_MAINTAINER_MODE = yes; then
3507  MAINTAINER_MODE_TRUE=
3508  MAINTAINER_MODE_FALSE='#'
3509else
3510  MAINTAINER_MODE_TRUE='#'
3511  MAINTAINER_MODE_FALSE=
3512fi
3513
3514  MAINT=$MAINTAINER_MODE_TRUE
3515
3516
3517# Check whether --enable-silent-rules was given.
3518if test ${enable_silent_rules+y}
3519then :
3520  enableval=$enable_silent_rules;
3521fi
3522
3523case $enable_silent_rules in # (((
3524  yes) AM_DEFAULT_VERBOSITY=0;;
3525   no) AM_DEFAULT_VERBOSITY=1;;
3526    *) AM_DEFAULT_VERBOSITY=0;;
3527esac
3528am_make=${MAKE-make}
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3530printf %s "checking whether $am_make supports nested variables... " >&6; }
3531if test ${am_cv_make_support_nested_variables+y}
3532then :
3533  printf %s "(cached) " >&6
3534else $as_nop
3535  if printf "%s\n" 'TRUE=$(BAR$(V))
3536BAR0=false
3537BAR1=true
3538V=1
3539am__doit:
3540	@$(TRUE)
3541.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3542  am_cv_make_support_nested_variables=yes
3543else
3544  am_cv_make_support_nested_variables=no
3545fi
3546fi
3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3548printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3549if test $am_cv_make_support_nested_variables = yes; then
3550    AM_V='$(V)'
3551  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3552else
3553  AM_V=$AM_DEFAULT_VERBOSITY
3554  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3555fi
3556AM_BACKSLASH='\'
3557
3558
3559
3560        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3561printf %s "checking whether to enable debug build options... " >&6; }
3562  OPT_DEBUG_BUILD="default"
3563  # Check whether --enable-debug was given.
3564if test ${enable_debug+y}
3565then :
3566  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3567fi
3568
3569  case "$OPT_DEBUG_BUILD" in
3570    no)
3571            want_debug="no"
3572      ;;
3573    default)
3574            want_debug="no"
3575      ;;
3576    *)
3577            want_debug="yes"
3578
3579printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3580
3581      ;;
3582  esac
3583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3584printf "%s\n" "$want_debug" >&6; }
3585
3586
3587      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3588printf %s "checking whether to enable compiler optimizer... " >&6; }
3589  OPT_COMPILER_OPTIMIZE="default"
3590  # Check whether --enable-optimize was given.
3591if test ${enable_optimize+y}
3592then :
3593  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3594fi
3595
3596  case "$OPT_COMPILER_OPTIMIZE" in
3597    no)
3598                              want_optimize="no"
3599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601      ;;
3602    default)
3603                                                                        if test "$want_debug" = "yes"; then
3604        want_optimize="assume_no"
3605        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3606printf "%s\n" "(assumed) no" >&6; }
3607      else
3608        want_optimize="assume_yes"
3609        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3610printf "%s\n" "(assumed) yes" >&6; }
3611      fi
3612      ;;
3613    *)
3614                              want_optimize="yes"
3615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616printf "%s\n" "yes" >&6; }
3617      ;;
3618  esac
3619
3620
3621        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3622printf %s "checking whether to enable strict compiler warnings... " >&6; }
3623  OPT_COMPILER_WARNINGS="default"
3624  # Check whether --enable-warnings was given.
3625if test ${enable_warnings+y}
3626then :
3627  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3628fi
3629
3630  case "$OPT_COMPILER_WARNINGS" in
3631    no)
3632            want_warnings="no"
3633      ;;
3634    default)
3635                  want_warnings="$want_debug"
3636      ;;
3637    *)
3638            want_warnings="yes"
3639      ;;
3640  esac
3641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3642printf "%s\n" "$want_warnings" >&6; }
3643
3644
3645    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3646printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3647  OPT_COMPILER_WERROR="default"
3648  # Check whether --enable-werror was given.
3649if test ${enable_werror+y}
3650then :
3651  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3652fi
3653
3654  case "$OPT_COMPILER_WERROR" in
3655    no)
3656            want_werror="no"
3657      ;;
3658    default)
3659            want_werror="no"
3660      ;;
3661    *)
3662            want_werror="yes"
3663      ;;
3664  esac
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3666printf "%s\n" "$want_werror" >&6; }
3667
3668
3669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3670printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3671  OPT_CURLDEBUG_BUILD="default"
3672  # Check whether --enable-curldebug was given.
3673if test ${enable_curldebug+y}
3674then :
3675  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3676fi
3677
3678  case "$OPT_CURLDEBUG_BUILD" in
3679    no)
3680            want_curldebug="no"
3681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683      ;;
3684    default)
3685                                          if test "$want_debug" = "yes"; then
3686        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3687printf "%s\n" "(assumed) yes" >&6; }
3688
3689printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3690
3691      else
3692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693printf "%s\n" "no" >&6; }
3694      fi
3695      want_curldebug_assumed="yes"
3696      want_curldebug="$want_debug"
3697      ;;
3698    *)
3699                                                      want_curldebug="yes"
3700
3701printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3702
3703      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704printf "%s\n" "yes" >&6; }
3705      ;;
3706  esac
3707
3708
3709    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3710printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3711  OPT_SYMBOL_HIDING="default"
3712  # Check whether --enable-symbol-hiding was given.
3713if test ${enable_symbol_hiding+y}
3714then :
3715  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3716fi
3717
3718  case "$OPT_SYMBOL_HIDING" in
3719    no)
3720                              want_symbol_hiding="no"
3721      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722printf "%s\n" "no" >&6; }
3723      ;;
3724    default)
3725                  want_symbol_hiding="yes"
3726      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727printf "%s\n" "yes" >&6; }
3728      ;;
3729    *)
3730                        want_symbol_hiding="yes"
3731      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732printf "%s\n" "yes" >&6; }
3733      ;;
3734  esac
3735
3736
3737    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3738printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3739  OPT_ARES="default"
3740  # Check whether --enable-ares was given.
3741if test ${enable_ares+y}
3742then :
3743  enableval=$enable_ares; OPT_ARES=$enableval
3744fi
3745
3746  case "$OPT_ARES" in
3747    no)
3748            want_ares="no"
3749      ;;
3750    default)
3751            want_ares="no"
3752      ;;
3753    *)
3754            want_ares="yes"
3755      if test -n "$enableval" && test "$enableval" != "yes"; then
3756        want_ares_path="$enableval"
3757      fi
3758      ;;
3759  esac
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3761printf "%s\n" "$want_ares" >&6; }
3762
3763
3764    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3765printf %s "checking whether to disable dependency on -lrt... " >&6; }
3766  OPT_RT="default"
3767  # Check whether --enable-rt was given.
3768if test ${enable_rt+y}
3769then :
3770  enableval=$enable_rt; OPT_RT=$enableval
3771fi
3772
3773  case "$OPT_RT" in
3774    no)
3775            dontwant_rt="yes"
3776      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777printf "%s\n" "yes" >&6; }
3778      ;;
3779    default)
3780            dontwant_rt="no"
3781      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3782printf "%s\n" "(assumed no)" >&6; }
3783      ;;
3784    *)
3785            dontwant_rt="no"
3786      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787printf "%s\n" "no" >&6; }
3788      ;;
3789  esac
3790
3791
3792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3793printf %s "checking whether to enable ECH support... " >&6; }
3794  OPT_ECH="default"
3795  # Check whether --enable-ech was given.
3796if test ${enable_ech+y}
3797then :
3798  enableval=$enable_ech; OPT_ECH=$enableval
3799fi
3800
3801  case "$OPT_ECH" in
3802    no)
3803            want_ech="no"
3804      curl_ech_msg="no      (--enable-ech)"
3805      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806printf "%s\n" "no" >&6; }
3807      ;;
3808    default)
3809            want_ech="no"
3810      curl_ech_msg="no      (--enable-ech)"
3811      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812printf "%s\n" "no" >&6; }
3813      ;;
3814    *)
3815            want_ech="yes"
3816      curl_ech_msg="enabled (--disable-ech)"
3817      experimental="ech"
3818      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819printf "%s\n" "yes" >&6; }
3820      ;;
3821  esac
3822
3823
3824#
3825# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3826#
3827
3828if test -z "$xc_configure_preamble_result"; then
3829  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3830fi
3831
3832#
3833# Check that 'PATH_SEPARATOR' has already been set.
3834#
3835
3836if test -z "$xc_PATH_SEPARATOR"; then
3837  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3838fi
3839if test -z "$PATH_SEPARATOR"; then
3840  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3841fi
3842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3843printf %s "checking for path separator... " >&6; }
3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3845printf "%s\n" "$PATH_SEPARATOR" >&6; }
3846if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3848printf %s "checking for initial path separator... " >&6; }
3849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3850printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3851  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3852fi
3853
3854
3855#
3856# save the configure arguments
3857#
3858CONFIGURE_OPTIONS="\"$ac_configure_args\""
3859
3860
3861if test -z "$SED"; then
3862    # Extract the first word of "sed", so it can be a program name with args.
3863set dummy sed; ac_word=$2
3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865printf %s "checking for $ac_word... " >&6; }
3866if test ${ac_cv_path_SED+y}
3867then :
3868  printf %s "(cached) " >&6
3869else $as_nop
3870  case $SED in
3871  [\\/]* | ?:[\\/]*)
3872  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3873  ;;
3874  *)
3875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876as_dummy="$PATH:/usr/bin:/usr/local/bin"
3877for as_dir in $as_dummy
3878do
3879  IFS=$as_save_IFS
3880  case $as_dir in #(((
3881    '') as_dir=./ ;;
3882    */) ;;
3883    *) as_dir=$as_dir/ ;;
3884  esac
3885    for ac_exec_ext in '' $ac_executable_extensions; do
3886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3887    ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892  done
3893IFS=$as_save_IFS
3894
3895  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3896  ;;
3897esac
3898fi
3899SED=$ac_cv_path_SED
3900if test -n "$SED"; then
3901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3902printf "%s\n" "$SED" >&6; }
3903else
3904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905printf "%s\n" "no" >&6; }
3906fi
3907
3908
3909  if test -z "$SED" || test "$SED" = "not_found"; then
3910    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3911  fi
3912fi
3913
3914
3915if test -z "$GREP"; then
3916    # Extract the first word of "grep", so it can be a program name with args.
3917set dummy grep; ac_word=$2
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919printf %s "checking for $ac_word... " >&6; }
3920if test ${ac_cv_path_GREP+y}
3921then :
3922  printf %s "(cached) " >&6
3923else $as_nop
3924  case $GREP in
3925  [\\/]* | ?:[\\/]*)
3926  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3927  ;;
3928  *)
3929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930as_dummy="$PATH:/usr/bin:/usr/local/bin"
3931for as_dir in $as_dummy
3932do
3933  IFS=$as_save_IFS
3934  case $as_dir in #(((
3935    '') as_dir=./ ;;
3936    */) ;;
3937    *) as_dir=$as_dir/ ;;
3938  esac
3939    for ac_exec_ext in '' $ac_executable_extensions; do
3940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3941    ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3943    break 2
3944  fi
3945done
3946  done
3947IFS=$as_save_IFS
3948
3949  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3950  ;;
3951esac
3952fi
3953GREP=$ac_cv_path_GREP
3954if test -n "$GREP"; then
3955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3956printf "%s\n" "$GREP" >&6; }
3957else
3958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959printf "%s\n" "no" >&6; }
3960fi
3961
3962
3963  if test -z "$GREP" || test "$GREP" = "not_found"; then
3964    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3965  fi
3966fi
3967
3968
3969if test -z "$EGREP"; then
3970    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3971printf %s "checking that grep -E works... " >&6; }
3972  if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3973    EGREP="$GREP -E"
3974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975printf "%s\n" "yes" >&6; }
3976  else
3977    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978printf "%s\n" "no" >&6; }
3979    # Extract the first word of "egrep", so it can be a program name with args.
3980set dummy egrep; ac_word=$2
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982printf %s "checking for $ac_word... " >&6; }
3983if test ${ac_cv_path_EGREP+y}
3984then :
3985  printf %s "(cached) " >&6
3986else $as_nop
3987  case $EGREP in
3988  [\\/]* | ?:[\\/]*)
3989  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3990  ;;
3991  *)
3992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993as_dummy="$PATH:/usr/bin:/usr/local/bin"
3994for as_dir in $as_dummy
3995do
3996  IFS=$as_save_IFS
3997  case $as_dir in #(((
3998    '') as_dir=./ ;;
3999    */) ;;
4000    *) as_dir=$as_dir/ ;;
4001  esac
4002    for ac_exec_ext in '' $ac_executable_extensions; do
4003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004    ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
4005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006    break 2
4007  fi
4008done
4009  done
4010IFS=$as_save_IFS
4011
4012  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4013  ;;
4014esac
4015fi
4016EGREP=$ac_cv_path_EGREP
4017if test -n "$EGREP"; then
4018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4019printf "%s\n" "$EGREP" >&6; }
4020else
4021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022printf "%s\n" "no" >&6; }
4023fi
4024
4025
4026  fi
4027fi
4028if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4029  as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4030fi
4031
4032
4033if test -z "$AR"; then
4034    if test -n "$ac_tool_prefix"; then
4035  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4036set dummy ${ac_tool_prefix}ar; ac_word=$2
4037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038printf %s "checking for $ac_word... " >&6; }
4039if test ${ac_cv_path_AR+y}
4040then :
4041  printf %s "(cached) " >&6
4042else $as_nop
4043  case $AR in
4044  [\\/]* | ?:[\\/]*)
4045  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4046  ;;
4047  *)
4048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049as_dummy="$PATH:/usr/bin:/usr/local/bin"
4050for as_dir in $as_dummy
4051do
4052  IFS=$as_save_IFS
4053  case $as_dir in #(((
4054    '') as_dir=./ ;;
4055    */) ;;
4056    *) as_dir=$as_dir/ ;;
4057  esac
4058    for ac_exec_ext in '' $ac_executable_extensions; do
4059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065  done
4066IFS=$as_save_IFS
4067
4068  ;;
4069esac
4070fi
4071AR=$ac_cv_path_AR
4072if test -n "$AR"; then
4073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4074printf "%s\n" "$AR" >&6; }
4075else
4076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077printf "%s\n" "no" >&6; }
4078fi
4079
4080
4081fi
4082if test -z "$ac_cv_path_AR"; then
4083  ac_pt_AR=$AR
4084  # Extract the first word of "ar", so it can be a program name with args.
4085set dummy ar; ac_word=$2
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087printf %s "checking for $ac_word... " >&6; }
4088if test ${ac_cv_path_ac_pt_AR+y}
4089then :
4090  printf %s "(cached) " >&6
4091else $as_nop
4092  case $ac_pt_AR in
4093  [\\/]* | ?:[\\/]*)
4094  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4095  ;;
4096  *)
4097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098as_dummy="$PATH:/usr/bin:/usr/local/bin"
4099for as_dir in $as_dummy
4100do
4101  IFS=$as_save_IFS
4102  case $as_dir in #(((
4103    '') as_dir=./ ;;
4104    */) ;;
4105    *) as_dir=$as_dir/ ;;
4106  esac
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109    ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4111    break 2
4112  fi
4113done
4114  done
4115IFS=$as_save_IFS
4116
4117  ;;
4118esac
4119fi
4120ac_pt_AR=$ac_cv_path_ac_pt_AR
4121if test -n "$ac_pt_AR"; then
4122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4123printf "%s\n" "$ac_pt_AR" >&6; }
4124else
4125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126printf "%s\n" "no" >&6; }
4127fi
4128
4129  if test "x$ac_pt_AR" = x; then
4130    AR="not_found"
4131  else
4132    case $cross_compiling:$ac_tool_warned in
4133yes:)
4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136ac_tool_warned=yes ;;
4137esac
4138    AR=$ac_pt_AR
4139  fi
4140else
4141  AR="$ac_cv_path_AR"
4142fi
4143
4144  if test -z "$AR" || test "$AR" = "not_found"; then
4145    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4146  fi
4147fi
4148
4149
4150
4151
4152CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4153
4154  xc_prog_cc_prev_IFS=$IFS
4155  xc_prog_cc_prev_LIBS=$LIBS
4156  xc_prog_cc_prev_CFLAGS=$CFLAGS
4157  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4158  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4159
4160
4161
4162  xc_bad_var_libs=no
4163  for xc_word in $LIBS; do
4164    case "$xc_word" in
4165      -l* | --library=*)
4166        :
4167        ;;
4168      *)
4169        xc_bad_var_libs=yes
4170        ;;
4171    esac
4172  done
4173  if test $xc_bad_var_libs = yes; then
4174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4175printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4176    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4177printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4178  fi
4179
4180
4181  xc_bad_var_ldflags=no
4182  for xc_word in $LDFLAGS; do
4183    case "$xc_word" in
4184      -D*)
4185        xc_bad_var_ldflags=yes
4186        ;;
4187      -U*)
4188        xc_bad_var_ldflags=yes
4189        ;;
4190      -I*)
4191        xc_bad_var_ldflags=yes
4192        ;;
4193      -l* | --library=*)
4194        xc_bad_var_ldflags=yes
4195        ;;
4196    esac
4197  done
4198  if test $xc_bad_var_ldflags = yes; then
4199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4200printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4201    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4202    for xc_word in $LDFLAGS; do
4203      case "$xc_word" in
4204        -D*)
4205          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4206printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4207          ;;
4208        -U*)
4209          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4210printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4211          ;;
4212        -I*)
4213          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4214printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4215          ;;
4216        -l* | --library=*)
4217          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4218printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4219          ;;
4220      esac
4221    done
4222  fi
4223
4224
4225  xc_bad_var_cppflags=no
4226  for xc_word in $CPPFLAGS; do
4227    case "$xc_word" in
4228      -rpath*)
4229        xc_bad_var_cppflags=yes
4230        ;;
4231      -L* | --library-path=*)
4232        xc_bad_var_cppflags=yes
4233        ;;
4234      -l* | --library=*)
4235        xc_bad_var_cppflags=yes
4236        ;;
4237    esac
4238  done
4239  if test $xc_bad_var_cppflags = yes; then
4240    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4241printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4242    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4243    for xc_word in $CPPFLAGS; do
4244      case "$xc_word" in
4245        -rpath*)
4246          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4247printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4248          ;;
4249        -L* | --library-path=*)
4250          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4251printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4252          ;;
4253        -l* | --library=*)
4254          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4255printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4256          ;;
4257      esac
4258    done
4259  fi
4260
4261
4262  xc_bad_var_cflags=no
4263  for xc_word in $CFLAGS; do
4264    case "$xc_word" in
4265      -D*)
4266        xc_bad_var_cflags=yes
4267        ;;
4268      -U*)
4269        xc_bad_var_cflags=yes
4270        ;;
4271      -I*)
4272        xc_bad_var_cflags=yes
4273        ;;
4274      -rpath*)
4275        xc_bad_var_cflags=yes
4276        ;;
4277      -L* | --library-path=*)
4278        xc_bad_var_cflags=yes
4279        ;;
4280      -l* | --library=*)
4281        xc_bad_var_cflags=yes
4282        ;;
4283    esac
4284  done
4285  if test $xc_bad_var_cflags = yes; then
4286    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4287printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4288    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4289    for xc_word in $CFLAGS; do
4290      case "$xc_word" in
4291        -D*)
4292          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4293printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4294          ;;
4295        -U*)
4296          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4297printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4298          ;;
4299        -I*)
4300          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4301printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4302          ;;
4303        -rpath*)
4304          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4305printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4306          ;;
4307        -L* | --library-path=*)
4308          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4309printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4310          ;;
4311        -l* | --library=*)
4312          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4313printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4314          ;;
4315      esac
4316    done
4317  fi
4318
4319  if test $xc_bad_var_libs = yes ||
4320     test $xc_bad_var_cflags = yes ||
4321     test $xc_bad_var_ldflags = yes ||
4322     test $xc_bad_var_cppflags = yes; then
4323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4324printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4325  fi
4326
4327
4328
4329  # Find a good install program.  We prefer a C program (faster),
4330# so one script is as good as another.  But avoid the broken or
4331# incompatible versions:
4332# SysV /etc/install, /usr/sbin/install
4333# SunOS /usr/etc/install
4334# IRIX /sbin/install
4335# AIX /bin/install
4336# AmigaOS /C/install, which installs bootblocks on floppy discs
4337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4340# OS/2's system install, which has a completely different semantic
4341# ./install, which can be erroneously created by make from ./install.sh.
4342# Reject install programs that cannot install multiple files.
4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4344printf %s "checking for a BSD-compatible install... " >&6; }
4345if test -z "$INSTALL"; then
4346if test ${ac_cv_path_install+y}
4347then :
4348  printf %s "(cached) " >&6
4349else $as_nop
4350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  case $as_dir in #(((
4355    '') as_dir=./ ;;
4356    */) ;;
4357    *) as_dir=$as_dir/ ;;
4358  esac
4359    # Account for fact that we put trailing slashes in our PATH walk.
4360case $as_dir in #((
4361  ./ | /[cC]/* | \
4362  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4363  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4364  /usr/ucb/* ) ;;
4365  *)
4366    # OSF1 and SCO ODT 3.0 have their own names for install.
4367    # Don't use installbsd from OSF since it installs stuff as root
4368    # by default.
4369    for ac_prog in ginstall scoinst install; do
4370      for ac_exec_ext in '' $ac_executable_extensions; do
4371	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4372	  if test $ac_prog = install &&
4373	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374	    # AIX install.  It has an incompatible calling convention.
4375	    :
4376	  elif test $ac_prog = install &&
4377	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4378	    # program-specific install script used by HP pwplus--don't use.
4379	    :
4380	  else
4381	    rm -rf conftest.one conftest.two conftest.dir
4382	    echo one > conftest.one
4383	    echo two > conftest.two
4384	    mkdir conftest.dir
4385	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4386	      test -s conftest.one && test -s conftest.two &&
4387	      test -s conftest.dir/conftest.one &&
4388	      test -s conftest.dir/conftest.two
4389	    then
4390	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4391	      break 3
4392	    fi
4393	  fi
4394	fi
4395      done
4396    done
4397    ;;
4398esac
4399
4400  done
4401IFS=$as_save_IFS
4402
4403rm -rf conftest.one conftest.two conftest.dir
4404
4405fi
4406  if test ${ac_cv_path_install+y}; then
4407    INSTALL=$ac_cv_path_install
4408  else
4409    # As a last resort, use the slow shell script.  Don't cache a
4410    # value for INSTALL within a source directory, because that will
4411    # break other packages using the cache if that directory is
4412    # removed, or if the value is a relative name.
4413    INSTALL=$ac_install_sh
4414  fi
4415fi
4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4417printf "%s\n" "$INSTALL" >&6; }
4418
4419# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4420# It thinks the first close brace ends the variable substitution.
4421test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4422
4423test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4424
4425test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437# Expand $ac_aux_dir to an absolute path.
4438am_aux_dir=`cd "$ac_aux_dir" && pwd`
4439
4440ac_ext=c
4441ac_cpp='$CPP $CPPFLAGS'
4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445if test -n "$ac_tool_prefix"; then
4446  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4447set dummy ${ac_tool_prefix}gcc; ac_word=$2
4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449printf %s "checking for $ac_word... " >&6; }
4450if test ${ac_cv_prog_CC+y}
4451then :
4452  printf %s "(cached) " >&6
4453else $as_nop
4454  if test -n "$CC"; then
4455  ac_cv_prog_CC="$CC" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  case $as_dir in #(((
4462    '') as_dir=./ ;;
4463    */) ;;
4464    *) as_dir=$as_dir/ ;;
4465  esac
4466    for ac_exec_ext in '' $ac_executable_extensions; do
4467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4468    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473  done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
4480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481printf "%s\n" "$CC" >&6; }
4482else
4483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484printf "%s\n" "no" >&6; }
4485fi
4486
4487
4488fi
4489if test -z "$ac_cv_prog_CC"; then
4490  ac_ct_CC=$CC
4491  # Extract the first word of "gcc", so it can be a program name with args.
4492set dummy gcc; ac_word=$2
4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494printf %s "checking for $ac_word... " >&6; }
4495if test ${ac_cv_prog_ac_ct_CC+y}
4496then :
4497  printf %s "(cached) " >&6
4498else $as_nop
4499  if test -n "$ac_ct_CC"; then
4500  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  case $as_dir in #(((
4507    '') as_dir=./ ;;
4508    */) ;;
4509    *) as_dir=$as_dir/ ;;
4510  esac
4511    for ac_exec_ext in '' $ac_executable_extensions; do
4512  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4513    ac_cv_prog_ac_ct_CC="gcc"
4514    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518  done
4519IFS=$as_save_IFS
4520
4521fi
4522fi
4523ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524if test -n "$ac_ct_CC"; then
4525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526printf "%s\n" "$ac_ct_CC" >&6; }
4527else
4528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529printf "%s\n" "no" >&6; }
4530fi
4531
4532  if test "x$ac_ct_CC" = x; then
4533    CC=""
4534  else
4535    case $cross_compiling:$ac_tool_warned in
4536yes:)
4537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539ac_tool_warned=yes ;;
4540esac
4541    CC=$ac_ct_CC
4542  fi
4543else
4544  CC="$ac_cv_prog_CC"
4545fi
4546
4547if test -z "$CC"; then
4548          if test -n "$ac_tool_prefix"; then
4549    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550set dummy ${ac_tool_prefix}cc; ac_word=$2
4551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552printf %s "checking for $ac_word... " >&6; }
4553if test ${ac_cv_prog_CC+y}
4554then :
4555  printf %s "(cached) " >&6
4556else $as_nop
4557  if test -n "$CC"; then
4558  ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  case $as_dir in #(((
4565    '') as_dir=./ ;;
4566    */) ;;
4567    *) as_dir=$as_dir/ ;;
4568  esac
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4571    ac_cv_prog_CC="${ac_tool_prefix}cc"
4572    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4573    break 2
4574  fi
4575done
4576  done
4577IFS=$as_save_IFS
4578
4579fi
4580fi
4581CC=$ac_cv_prog_CC
4582if test -n "$CC"; then
4583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584printf "%s\n" "$CC" >&6; }
4585else
4586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587printf "%s\n" "no" >&6; }
4588fi
4589
4590
4591  fi
4592fi
4593if test -z "$CC"; then
4594  # Extract the first word of "cc", so it can be a program name with args.
4595set dummy cc; ac_word=$2
4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597printf %s "checking for $ac_word... " >&6; }
4598if test ${ac_cv_prog_CC+y}
4599then :
4600  printf %s "(cached) " >&6
4601else $as_nop
4602  if test -n "$CC"; then
4603  ac_cv_prog_CC="$CC" # Let the user override the test.
4604else
4605  ac_prog_rejected=no
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609  IFS=$as_save_IFS
4610  case $as_dir in #(((
4611    '') as_dir=./ ;;
4612    */) ;;
4613    *) as_dir=$as_dir/ ;;
4614  esac
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4617    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618       ac_prog_rejected=yes
4619       continue
4620     fi
4621    ac_cv_prog_CC="cc"
4622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629if test $ac_prog_rejected = yes; then
4630  # We found a bogon in the path, so make sure we never use it.
4631  set dummy $ac_cv_prog_CC
4632  shift
4633  if test $# != 0; then
4634    # We chose a different compiler from the bogus one.
4635    # However, it has the same basename, so the bogon will be chosen
4636    # first if we set CC to just the basename; use the full file name.
4637    shift
4638    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4639  fi
4640fi
4641fi
4642fi
4643CC=$ac_cv_prog_CC
4644if test -n "$CC"; then
4645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646printf "%s\n" "$CC" >&6; }
4647else
4648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649printf "%s\n" "no" >&6; }
4650fi
4651
4652
4653fi
4654if test -z "$CC"; then
4655  if test -n "$ac_tool_prefix"; then
4656  for ac_prog in cl.exe
4657  do
4658    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661printf %s "checking for $ac_word... " >&6; }
4662if test ${ac_cv_prog_CC+y}
4663then :
4664  printf %s "(cached) " >&6
4665else $as_nop
4666  if test -n "$CC"; then
4667  ac_cv_prog_CC="$CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672  IFS=$as_save_IFS
4673  case $as_dir in #(((
4674    '') as_dir=./ ;;
4675    */) ;;
4676    *) as_dir=$as_dir/ ;;
4677  esac
4678    for ac_exec_ext in '' $ac_executable_extensions; do
4679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4680    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685  done
4686IFS=$as_save_IFS
4687
4688fi
4689fi
4690CC=$ac_cv_prog_CC
4691if test -n "$CC"; then
4692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4693printf "%s\n" "$CC" >&6; }
4694else
4695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696printf "%s\n" "no" >&6; }
4697fi
4698
4699
4700    test -n "$CC" && break
4701  done
4702fi
4703if test -z "$CC"; then
4704  ac_ct_CC=$CC
4705  for ac_prog in cl.exe
4706do
4707  # Extract the first word of "$ac_prog", so it can be a program name with args.
4708set dummy $ac_prog; ac_word=$2
4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710printf %s "checking for $ac_word... " >&6; }
4711if test ${ac_cv_prog_ac_ct_CC+y}
4712then :
4713  printf %s "(cached) " >&6
4714else $as_nop
4715  if test -n "$ac_ct_CC"; then
4716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  case $as_dir in #(((
4723    '') as_dir=./ ;;
4724    */) ;;
4725    *) as_dir=$as_dir/ ;;
4726  esac
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4729    ac_cv_prog_ac_ct_CC="$ac_prog"
4730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4731    break 2
4732  fi
4733done
4734  done
4735IFS=$as_save_IFS
4736
4737fi
4738fi
4739ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740if test -n "$ac_ct_CC"; then
4741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742printf "%s\n" "$ac_ct_CC" >&6; }
4743else
4744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745printf "%s\n" "no" >&6; }
4746fi
4747
4748
4749  test -n "$ac_ct_CC" && break
4750done
4751
4752  if test "x$ac_ct_CC" = x; then
4753    CC=""
4754  else
4755    case $cross_compiling:$ac_tool_warned in
4756yes:)
4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759ac_tool_warned=yes ;;
4760esac
4761    CC=$ac_ct_CC
4762  fi
4763fi
4764
4765fi
4766if test -z "$CC"; then
4767  if test -n "$ac_tool_prefix"; then
4768  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4769set dummy ${ac_tool_prefix}clang; ac_word=$2
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771printf %s "checking for $ac_word... " >&6; }
4772if test ${ac_cv_prog_CC+y}
4773then :
4774  printf %s "(cached) " >&6
4775else $as_nop
4776  if test -n "$CC"; then
4777  ac_cv_prog_CC="$CC" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  case $as_dir in #(((
4784    '') as_dir=./ ;;
4785    */) ;;
4786    *) as_dir=$as_dir/ ;;
4787  esac
4788    for ac_exec_ext in '' $ac_executable_extensions; do
4789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4790    ac_cv_prog_CC="${ac_tool_prefix}clang"
4791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795  done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800CC=$ac_cv_prog_CC
4801if test -n "$CC"; then
4802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803printf "%s\n" "$CC" >&6; }
4804else
4805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806printf "%s\n" "no" >&6; }
4807fi
4808
4809
4810fi
4811if test -z "$ac_cv_prog_CC"; then
4812  ac_ct_CC=$CC
4813  # Extract the first word of "clang", so it can be a program name with args.
4814set dummy clang; ac_word=$2
4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816printf %s "checking for $ac_word... " >&6; }
4817if test ${ac_cv_prog_ac_ct_CC+y}
4818then :
4819  printf %s "(cached) " >&6
4820else $as_nop
4821  if test -n "$ac_ct_CC"; then
4822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  case $as_dir in #(((
4829    '') as_dir=./ ;;
4830    */) ;;
4831    *) as_dir=$as_dir/ ;;
4832  esac
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835    ac_cv_prog_ac_ct_CC="clang"
4836    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4837    break 2
4838  fi
4839done
4840  done
4841IFS=$as_save_IFS
4842
4843fi
4844fi
4845ac_ct_CC=$ac_cv_prog_ac_ct_CC
4846if test -n "$ac_ct_CC"; then
4847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4848printf "%s\n" "$ac_ct_CC" >&6; }
4849else
4850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851printf "%s\n" "no" >&6; }
4852fi
4853
4854  if test "x$ac_ct_CC" = x; then
4855    CC=""
4856  else
4857    case $cross_compiling:$ac_tool_warned in
4858yes:)
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861ac_tool_warned=yes ;;
4862esac
4863    CC=$ac_ct_CC
4864  fi
4865else
4866  CC="$ac_cv_prog_CC"
4867fi
4868
4869fi
4870
4871
4872test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4874as_fn_error $? "no acceptable C compiler found in \$PATH
4875See \`config.log' for more details" "$LINENO" 5; }
4876
4877# Provide some information about the compiler.
4878printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4879set X $ac_compile
4880ac_compiler=$2
4881for ac_option in --version -v -V -qversion -version; do
4882  { { ac_try="$ac_compiler $ac_option >&5"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888printf "%s\n" "$ac_try_echo"; } >&5
4889  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4890  ac_status=$?
4891  if test -s conftest.err; then
4892    sed '10a\
4893... rest of stderr output deleted ...
4894         10q' conftest.err >conftest.er1
4895    cat conftest.er1 >&5
4896  fi
4897  rm -f conftest.er1 conftest.err
4898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899  test $ac_status = 0; }
4900done
4901
4902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904
4905int main (void)
4906{
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912ac_clean_files_save=$ac_clean_files
4913ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4914# Try to create an executable without -o first, disregard a.out.
4915# It will help us diagnose broken compilers, and finding out an intuition
4916# of exeext.
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4918printf %s "checking whether the C compiler works... " >&6; }
4919ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4920
4921# The possible output files:
4922ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4923
4924ac_rmfiles=
4925for ac_file in $ac_files
4926do
4927  case $ac_file in
4928    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4929    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4930  esac
4931done
4932rm -f $ac_rmfiles
4933
4934if { { ac_try="$ac_link_default"
4935case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940printf "%s\n" "$ac_try_echo"; } >&5
4941  (eval "$ac_link_default") 2>&5
4942  ac_status=$?
4943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944  test $ac_status = 0; }
4945then :
4946  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4947# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4948# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4949# so that the user can short-circuit this test for compilers unknown to
4950# Autoconf.
4951for ac_file in $ac_files ''
4952do
4953  test -f "$ac_file" || continue
4954  case $ac_file in
4955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4956	;;
4957    [ab].out )
4958	# We found the default executable, but exeext='' is most
4959	# certainly right.
4960	break;;
4961    *.* )
4962	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4963	then :; else
4964	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4965	fi
4966	# We set ac_cv_exeext here because the later test for it is not
4967	# safe: cross compilers may not add the suffix if given an `-o'
4968	# argument, so we may need to know it at that point already.
4969	# Even if this section looks crufty: it has the advantage of
4970	# actually working.
4971	break;;
4972    * )
4973	break;;
4974  esac
4975done
4976test "$ac_cv_exeext" = no && ac_cv_exeext=
4977
4978else $as_nop
4979  ac_file=''
4980fi
4981if test -z "$ac_file"
4982then :
4983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984printf "%s\n" "no" >&6; }
4985printf "%s\n" "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4989printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4990as_fn_error 77 "C compiler cannot create executables
4991See \`config.log' for more details" "$LINENO" 5; }
4992else $as_nop
4993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994printf "%s\n" "yes" >&6; }
4995fi
4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4997printf %s "checking for C compiler default output file name... " >&6; }
4998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4999printf "%s\n" "$ac_file" >&6; }
5000ac_exeext=$ac_cv_exeext
5001
5002rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5003ac_clean_files=$ac_clean_files_save
5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5005printf %s "checking for suffix of executables... " >&6; }
5006if { { ac_try="$ac_link"
5007case "(($ac_try" in
5008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009  *) ac_try_echo=$ac_try;;
5010esac
5011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5012printf "%s\n" "$ac_try_echo"; } >&5
5013  (eval "$ac_link") 2>&5
5014  ac_status=$?
5015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016  test $ac_status = 0; }
5017then :
5018  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5019# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5020# work properly (i.e., refer to `conftest.exe'), while it won't with
5021# `rm'.
5022for ac_file in conftest.exe conftest conftest.*; do
5023  test -f "$ac_file" || continue
5024  case $ac_file in
5025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5026    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5027	  break;;
5028    * ) break;;
5029  esac
5030done
5031else $as_nop
5032  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5034as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5035See \`config.log' for more details" "$LINENO" 5; }
5036fi
5037rm -f conftest conftest$ac_cv_exeext
5038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5039printf "%s\n" "$ac_cv_exeext" >&6; }
5040
5041rm -f conftest.$ac_ext
5042EXEEXT=$ac_cv_exeext
5043ac_exeext=$EXEEXT
5044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046#include <stdio.h>
5047int main (void)
5048{
5049FILE *f = fopen ("conftest.out", "w");
5050 return ferror (f) || fclose (f) != 0;
5051
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056ac_clean_files="$ac_clean_files conftest.out"
5057# Check that the compiler produces executables we can run.  If not, either
5058# the compiler is broken, or we cross compile.
5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5060printf %s "checking whether we are cross compiling... " >&6; }
5061if test "$cross_compiling" != yes; then
5062  { { ac_try="$ac_link"
5063case "(($ac_try" in
5064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065  *) ac_try_echo=$ac_try;;
5066esac
5067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5068printf "%s\n" "$ac_try_echo"; } >&5
5069  (eval "$ac_link") 2>&5
5070  ac_status=$?
5071  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072  test $ac_status = 0; }
5073  if { ac_try='./conftest$ac_cv_exeext'
5074  { { case "(($ac_try" in
5075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076  *) ac_try_echo=$ac_try;;
5077esac
5078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5079printf "%s\n" "$ac_try_echo"; } >&5
5080  (eval "$ac_try") 2>&5
5081  ac_status=$?
5082  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083  test $ac_status = 0; }; }; then
5084    cross_compiling=no
5085  else
5086    if test "$cross_compiling" = maybe; then
5087	cross_compiling=yes
5088    else
5089	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5091as_fn_error 77 "cannot run C compiled programs.
5092If you meant to cross compile, use \`--host'.
5093See \`config.log' for more details" "$LINENO" 5; }
5094    fi
5095  fi
5096fi
5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5098printf "%s\n" "$cross_compiling" >&6; }
5099
5100rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5101ac_clean_files=$ac_clean_files_save
5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5103printf %s "checking for suffix of object files... " >&6; }
5104if test ${ac_cv_objext+y}
5105then :
5106  printf %s "(cached) " >&6
5107else $as_nop
5108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110
5111int main (void)
5112{
5113
5114 ;
5115 return 0;
5116}
5117_ACEOF
5118rm -f conftest.o conftest.obj
5119if { { ac_try="$ac_compile"
5120case "(($ac_try" in
5121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122  *) ac_try_echo=$ac_try;;
5123esac
5124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125printf "%s\n" "$ac_try_echo"; } >&5
5126  (eval "$ac_compile") 2>&5
5127  ac_status=$?
5128  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129  test $ac_status = 0; }
5130then :
5131  for ac_file in conftest.o conftest.obj conftest.*; do
5132  test -f "$ac_file" || continue;
5133  case $ac_file in
5134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5135    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5136       break;;
5137  esac
5138done
5139else $as_nop
5140  printf "%s\n" "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5145as_fn_error $? "cannot compute suffix of object files: cannot compile
5146See \`config.log' for more details" "$LINENO" 5; }
5147fi
5148rm -f conftest.$ac_cv_objext conftest.$ac_ext
5149fi
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5151printf "%s\n" "$ac_cv_objext" >&6; }
5152OBJEXT=$ac_cv_objext
5153ac_objext=$OBJEXT
5154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5155printf %s "checking whether the compiler supports GNU C... " >&6; }
5156if test ${ac_cv_c_compiler_gnu+y}
5157then :
5158  printf %s "(cached) " >&6
5159else $as_nop
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162
5163int main (void)
5164{
5165#ifndef __GNUC__
5166       choke me
5167#endif
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173if ac_fn_c_try_compile "$LINENO"
5174then :
5175  ac_compiler_gnu=yes
5176else $as_nop
5177  ac_compiler_gnu=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5180ac_cv_c_compiler_gnu=$ac_compiler_gnu
5181
5182fi
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5184printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5185ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187if test $ac_compiler_gnu = yes; then
5188  GCC=yes
5189else
5190  GCC=
5191fi
5192ac_test_CFLAGS=${CFLAGS+y}
5193ac_save_CFLAGS=$CFLAGS
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5195printf %s "checking whether $CC accepts -g... " >&6; }
5196if test ${ac_cv_prog_cc_g+y}
5197then :
5198  printf %s "(cached) " >&6
5199else $as_nop
5200  ac_save_c_werror_flag=$ac_c_werror_flag
5201   ac_c_werror_flag=yes
5202   ac_cv_prog_cc_g=no
5203   CFLAGS="-g"
5204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206
5207int main (void)
5208{
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"
5215then :
5216  ac_cv_prog_cc_g=yes
5217else $as_nop
5218  CFLAGS=""
5219      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221
5222int main (void)
5223{
5224
5225 ;
5226 return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"
5230then :
5231
5232else $as_nop
5233  ac_c_werror_flag=$ac_save_c_werror_flag
5234	 CFLAGS="-g"
5235	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237
5238int main (void)
5239{
5240
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_compile "$LINENO"
5246then :
5247  ac_cv_prog_cc_g=yes
5248fi
5249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5250fi
5251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5252fi
5253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5254   ac_c_werror_flag=$ac_save_c_werror_flag
5255fi
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5257printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5258if test $ac_test_CFLAGS; then
5259  CFLAGS=$ac_save_CFLAGS
5260elif test $ac_cv_prog_cc_g = yes; then
5261  if test "$GCC" = yes; then
5262    CFLAGS="-g -O2"
5263  else
5264    CFLAGS="-g"
5265  fi
5266else
5267  if test "$GCC" = yes; then
5268    CFLAGS="-O2"
5269  else
5270    CFLAGS=
5271  fi
5272fi
5273ac_prog_cc_stdc=no
5274if test x$ac_prog_cc_stdc = xno
5275then :
5276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5277printf %s "checking for $CC option to enable C11 features... " >&6; }
5278if test ${ac_cv_prog_cc_c11+y}
5279then :
5280  printf %s "(cached) " >&6
5281else $as_nop
5282  ac_cv_prog_cc_c11=no
5283ac_save_CC=$CC
5284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286$ac_c_conftest_c11_program
5287_ACEOF
5288for ac_arg in '' -std=gnu11
5289do
5290  CC="$ac_save_CC $ac_arg"
5291  if ac_fn_c_try_compile "$LINENO"
5292then :
5293  ac_cv_prog_cc_c11=$ac_arg
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.beam
5296  test "x$ac_cv_prog_cc_c11" != "xno" && break
5297done
5298rm -f conftest.$ac_ext
5299CC=$ac_save_CC
5300fi
5301
5302if test "x$ac_cv_prog_cc_c11" = xno
5303then :
5304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5305printf "%s\n" "unsupported" >&6; }
5306else $as_nop
5307  if test "x$ac_cv_prog_cc_c11" = x
5308then :
5309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5310printf "%s\n" "none needed" >&6; }
5311else $as_nop
5312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5313printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5314     CC="$CC $ac_cv_prog_cc_c11"
5315fi
5316  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5317  ac_prog_cc_stdc=c11
5318fi
5319fi
5320if test x$ac_prog_cc_stdc = xno
5321then :
5322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5323printf %s "checking for $CC option to enable C99 features... " >&6; }
5324if test ${ac_cv_prog_cc_c99+y}
5325then :
5326  printf %s "(cached) " >&6
5327else $as_nop
5328  ac_cv_prog_cc_c99=no
5329ac_save_CC=$CC
5330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332$ac_c_conftest_c99_program
5333_ACEOF
5334for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5335do
5336  CC="$ac_save_CC $ac_arg"
5337  if ac_fn_c_try_compile "$LINENO"
5338then :
5339  ac_cv_prog_cc_c99=$ac_arg
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.beam
5342  test "x$ac_cv_prog_cc_c99" != "xno" && break
5343done
5344rm -f conftest.$ac_ext
5345CC=$ac_save_CC
5346fi
5347
5348if test "x$ac_cv_prog_cc_c99" = xno
5349then :
5350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5351printf "%s\n" "unsupported" >&6; }
5352else $as_nop
5353  if test "x$ac_cv_prog_cc_c99" = x
5354then :
5355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356printf "%s\n" "none needed" >&6; }
5357else $as_nop
5358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5359printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5360     CC="$CC $ac_cv_prog_cc_c99"
5361fi
5362  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5363  ac_prog_cc_stdc=c99
5364fi
5365fi
5366if test x$ac_prog_cc_stdc = xno
5367then :
5368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5369printf %s "checking for $CC option to enable C89 features... " >&6; }
5370if test ${ac_cv_prog_cc_c89+y}
5371then :
5372  printf %s "(cached) " >&6
5373else $as_nop
5374  ac_cv_prog_cc_c89=no
5375ac_save_CC=$CC
5376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378$ac_c_conftest_c89_program
5379_ACEOF
5380for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5381do
5382  CC="$ac_save_CC $ac_arg"
5383  if ac_fn_c_try_compile "$LINENO"
5384then :
5385  ac_cv_prog_cc_c89=$ac_arg
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.beam
5388  test "x$ac_cv_prog_cc_c89" != "xno" && break
5389done
5390rm -f conftest.$ac_ext
5391CC=$ac_save_CC
5392fi
5393
5394if test "x$ac_cv_prog_cc_c89" = xno
5395then :
5396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397printf "%s\n" "unsupported" >&6; }
5398else $as_nop
5399  if test "x$ac_cv_prog_cc_c89" = x
5400then :
5401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402printf "%s\n" "none needed" >&6; }
5403else $as_nop
5404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5405printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5406     CC="$CC $ac_cv_prog_cc_c89"
5407fi
5408  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5409  ac_prog_cc_stdc=c89
5410fi
5411fi
5412
5413ac_ext=c
5414ac_cpp='$CPP $CPPFLAGS'
5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420  ac_ext=c
5421ac_cpp='$CPP $CPPFLAGS'
5422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5426printf %s "checking whether $CC understands -c and -o together... " >&6; }
5427if test ${am_cv_prog_cc_c_o+y}
5428then :
5429  printf %s "(cached) " >&6
5430else $as_nop
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433
5434int main (void)
5435{
5436
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441  # Make sure it works both with $CC and with simple cc.
5442  # Following AC_PROG_CC_C_O, we do the test twice because some
5443  # compilers refuse to overwrite an existing .o file with -o,
5444  # though they will create one.
5445  am_cv_prog_cc_c_o=yes
5446  for am_i in 1 2; do
5447    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5448   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); } \
5452         && test -f conftest2.$ac_objext; then
5453      : OK
5454    else
5455      am_cv_prog_cc_c_o=no
5456      break
5457    fi
5458  done
5459  rm -f core conftest*
5460  unset am_i
5461fi
5462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5463printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5464if test "$am_cv_prog_cc_c_o" != yes; then
5465   # Losing compiler, so override with the script.
5466   # FIXME: It is wrong to rewrite CC.
5467   # But if we don't then we get into trouble of one sort or another.
5468   # A longer-term fix would be to have automake use am__CC in this case,
5469   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5470   CC="$am_aux_dir/compile $CC"
5471fi
5472ac_ext=c
5473ac_cpp='$CPP $CPPFLAGS'
5474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478
5479
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5486printf %s "checking how to run the C preprocessor... " >&6; }
5487# On Suns, sometimes $CPP names a directory.
5488if test -n "$CPP" && test -d "$CPP"; then
5489  CPP=
5490fi
5491if test -z "$CPP"; then
5492  if test ${ac_cv_prog_CPP+y}
5493then :
5494  printf %s "(cached) " >&6
5495else $as_nop
5496      # Double quotes because $CC needs to be expanded
5497    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5498    do
5499      ac_preproc_ok=false
5500for ac_c_preproc_warn_flag in '' yes
5501do
5502  # Use a header file that comes with gcc, so configuring glibc
5503  # with a fresh cross-compiler works.
5504  # On the NeXT, cc -E runs the code through the compiler's parser,
5505  # not just through cpp. "Syntax error" is here to catch this case.
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508#include <limits.h>
5509		     Syntax error
5510_ACEOF
5511if ac_fn_c_try_cpp "$LINENO"
5512then :
5513
5514else $as_nop
5515  # Broken: fails on valid input.
5516continue
5517fi
5518rm -f conftest.err conftest.i conftest.$ac_ext
5519
5520  # OK, works on sane cases.  Now check whether nonexistent headers
5521  # can be detected and how.
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524#include <ac_nonexistent.h>
5525_ACEOF
5526if ac_fn_c_try_cpp "$LINENO"
5527then :
5528  # Broken: success on invalid input.
5529continue
5530else $as_nop
5531  # Passes both tests.
5532ac_preproc_ok=:
5533break
5534fi
5535rm -f conftest.err conftest.i conftest.$ac_ext
5536
5537done
5538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539rm -f conftest.i conftest.err conftest.$ac_ext
5540if $ac_preproc_ok
5541then :
5542  break
5543fi
5544
5545    done
5546    ac_cv_prog_CPP=$CPP
5547
5548fi
5549  CPP=$ac_cv_prog_CPP
5550else
5551  ac_cv_prog_CPP=$CPP
5552fi
5553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5554printf "%s\n" "$CPP" >&6; }
5555ac_preproc_ok=false
5556for ac_c_preproc_warn_flag in '' yes
5557do
5558  # Use a header file that comes with gcc, so configuring glibc
5559  # with a fresh cross-compiler works.
5560  # On the NeXT, cc -E runs the code through the compiler's parser,
5561  # not just through cpp. "Syntax error" is here to catch this case.
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564#include <limits.h>
5565		     Syntax error
5566_ACEOF
5567if ac_fn_c_try_cpp "$LINENO"
5568then :
5569
5570else $as_nop
5571  # Broken: fails on valid input.
5572continue
5573fi
5574rm -f conftest.err conftest.i conftest.$ac_ext
5575
5576  # OK, works on sane cases.  Now check whether nonexistent headers
5577  # can be detected and how.
5578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580#include <ac_nonexistent.h>
5581_ACEOF
5582if ac_fn_c_try_cpp "$LINENO"
5583then :
5584  # Broken: success on invalid input.
5585continue
5586else $as_nop
5587  # Passes both tests.
5588ac_preproc_ok=:
5589break
5590fi
5591rm -f conftest.err conftest.i conftest.$ac_ext
5592
5593done
5594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5595rm -f conftest.i conftest.err conftest.$ac_ext
5596if $ac_preproc_ok
5597then :
5598
5599else $as_nop
5600  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5602as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5603See \`config.log' for more details" "$LINENO" 5; }
5604fi
5605
5606ac_ext=c
5607ac_cpp='$CPP $CPPFLAGS'
5608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611
5612
5613  IFS=$xc_prog_cc_prev_IFS
5614  LIBS=$xc_prog_cc_prev_LIBS
5615  CFLAGS=$xc_prog_cc_prev_CFLAGS
5616  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5617  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5618
5619
5620
5621
5622
5623
5624ac_header= ac_cache=
5625for ac_item in $ac_header_c_list
5626do
5627  if test $ac_cache; then
5628    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5629    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5630      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5631    fi
5632    ac_header= ac_cache=
5633  elif test $ac_header; then
5634    ac_cache=$ac_item
5635  else
5636    ac_header=$ac_item
5637  fi
5638done
5639
5640
5641
5642
5643
5644
5645
5646
5647if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5648then :
5649
5650printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5651
5652fi
5653
5654         for ac_header in stdatomic.h
5655do :
5656  ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5657if test "x$ac_cv_header_stdatomic_h" = xyes
5658then :
5659  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5660
5661    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5662printf %s "checking if _Atomic is available... " >&6; }
5663    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665
5666
5667        $curl_includes_unistd
5668
5669int main (void)
5670{
5671
5672        _Atomic int i = 0;
5673        i = 4;  // Force an atomic-write operation.
5674
5675 ;
5676 return 0;
5677}
5678
5679_ACEOF
5680if ac_fn_c_try_link "$LINENO"
5681then :
5682
5683      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684printf "%s\n" "yes" >&6; }
5685
5686printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5687
5688      tst_atomic="yes"
5689
5690else $as_nop
5691
5692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693printf "%s\n" "no" >&6; }
5694      tst_atomic="no"
5695
5696fi
5697rm -f core conftest.err conftest.$ac_objext conftest.beam \
5698    conftest$ac_exeext conftest.$ac_ext
5699
5700fi
5701
5702done
5703
5704
5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5706printf %s "checking for a sed that does not truncate output... " >&6; }
5707if test ${ac_cv_path_SED+y}
5708then :
5709  printf %s "(cached) " >&6
5710else $as_nop
5711            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5712     for ac_i in 1 2 3 4 5 6 7; do
5713       ac_script="$ac_script$as_nl$ac_script"
5714     done
5715     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5716     { ac_script=; unset ac_script;}
5717     if test -z "$SED"; then
5718  ac_path_SED_found=false
5719  # Loop through the user's path and test for each of PROGNAME-LIST
5720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723  IFS=$as_save_IFS
5724  case $as_dir in #(((
5725    '') as_dir=./ ;;
5726    */) ;;
5727    *) as_dir=$as_dir/ ;;
5728  esac
5729    for ac_prog in sed gsed
5730   do
5731    for ac_exec_ext in '' $ac_executable_extensions; do
5732      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5733      as_fn_executable_p "$ac_path_SED" || continue
5734# Check for GNU ac_path_SED and select it if it is found.
5735  # Check for GNU $ac_path_SED
5736case `"$ac_path_SED" --version 2>&1` in
5737*GNU*)
5738  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5739*)
5740  ac_count=0
5741  printf %s 0123456789 >"conftest.in"
5742  while :
5743  do
5744    cat "conftest.in" "conftest.in" >"conftest.tmp"
5745    mv "conftest.tmp" "conftest.in"
5746    cp "conftest.in" "conftest.nl"
5747    printf "%s\n" '' >> "conftest.nl"
5748    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750    as_fn_arith $ac_count + 1 && ac_count=$as_val
5751    if test $ac_count -gt ${ac_path_SED_max-0}; then
5752      # Best one so far, save it but keep looking for a better one
5753      ac_cv_path_SED="$ac_path_SED"
5754      ac_path_SED_max=$ac_count
5755    fi
5756    # 10*(2^10) chars as input seems more than enough
5757    test $ac_count -gt 10 && break
5758  done
5759  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760esac
5761
5762      $ac_path_SED_found && break 3
5763    done
5764  done
5765  done
5766IFS=$as_save_IFS
5767  if test -z "$ac_cv_path_SED"; then
5768    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5769  fi
5770else
5771  ac_cv_path_SED=$SED
5772fi
5773
5774fi
5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5776printf "%s\n" "$ac_cv_path_SED" >&6; }
5777 SED="$ac_cv_path_SED"
5778  rm -f conftest.sed
5779
5780
5781
5782
5783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5784printf %s "checking for code coverage support... " >&6; }
5785  coverage="no"
5786  curl_coverage_msg="disabled"
5787
5788    # Check whether --enable-code-coverage was given.
5789if test ${enable_code_coverage+y}
5790then :
5791  enableval=$enable_code_coverage; coverage="$enableval"
5792fi
5793
5794
5795    if  test "$GCC" != "yes"
5796then :
5797  coverage="no"
5798fi
5799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5800printf "%s\n" "$coverage" >&6; }
5801
5802  if test "x$coverage" = "xyes"; then
5803    curl_coverage_msg="enabled"
5804
5805    if test -n "$ac_tool_prefix"; then
5806  # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}gcov; ac_word=$2
5808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809printf %s "checking for $ac_word... " >&6; }
5810if test ${ac_cv_prog_GCOV+y}
5811then :
5812  printf %s "(cached) " >&6
5813else $as_nop
5814  if test -n "$GCOV"; then
5815  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820  IFS=$as_save_IFS
5821  case $as_dir in #(((
5822    '') as_dir=./ ;;
5823    */) ;;
5824    *) as_dir=$as_dir/ ;;
5825  esac
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5828    ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5829    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838GCOV=$ac_cv_prog_GCOV
5839if test -n "$GCOV"; then
5840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5841printf "%s\n" "$GCOV" >&6; }
5842else
5843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844printf "%s\n" "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_GCOV"; then
5850  ac_ct_GCOV=$GCOV
5851  # Extract the first word of "gcov", so it can be a program name with args.
5852set dummy gcov; ac_word=$2
5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854printf %s "checking for $ac_word... " >&6; }
5855if test ${ac_cv_prog_ac_ct_GCOV+y}
5856then :
5857  printf %s "(cached) " >&6
5858else $as_nop
5859  if test -n "$ac_ct_GCOV"; then
5860  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  case $as_dir in #(((
5867    '') as_dir=./ ;;
5868    */) ;;
5869    *) as_dir=$as_dir/ ;;
5870  esac
5871    for ac_exec_ext in '' $ac_executable_extensions; do
5872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5873    ac_cv_prog_ac_ct_GCOV="gcov"
5874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878  done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5884if test -n "$ac_ct_GCOV"; then
5885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5886printf "%s\n" "$ac_ct_GCOV" >&6; }
5887else
5888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889printf "%s\n" "no" >&6; }
5890fi
5891
5892  if test "x$ac_ct_GCOV" = x; then
5893    GCOV="gcov"
5894  else
5895    case $cross_compiling:$ac_tool_warned in
5896yes:)
5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899ac_tool_warned=yes ;;
5900esac
5901    GCOV=$ac_ct_GCOV
5902  fi
5903else
5904  GCOV="$ac_cv_prog_GCOV"
5905fi
5906
5907    if test -z "$GCOV"; then
5908      as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5909    fi
5910    # Extract the first word of "lcov", so it can be a program name with args.
5911set dummy lcov; ac_word=$2
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913printf %s "checking for $ac_word... " >&6; }
5914if test ${ac_cv_prog_LCOV+y}
5915then :
5916  printf %s "(cached) " >&6
5917else $as_nop
5918  if test -n "$LCOV"; then
5919  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  case $as_dir in #(((
5926    '') as_dir=./ ;;
5927    */) ;;
5928    *) as_dir=$as_dir/ ;;
5929  esac
5930    for ac_exec_ext in '' $ac_executable_extensions; do
5931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5932    ac_cv_prog_LCOV="lcov"
5933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5934    break 2
5935  fi
5936done
5937  done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942LCOV=$ac_cv_prog_LCOV
5943if test -n "$LCOV"; then
5944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5945printf "%s\n" "$LCOV" >&6; }
5946else
5947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948printf "%s\n" "no" >&6; }
5949fi
5950
5951
5952    if test -z "$LCOV"; then
5953      as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5954    fi
5955
5956    CPPFLAGS="$CPPFLAGS -DNDEBUG"
5957    CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5958    LIBS="$LIBS -lgcov"
5959  fi
5960
5961
5962am__api_version='1.16'
5963
5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5965printf %s "checking whether build environment is sane... " >&6; }
5966# Reject unsafe characters in $srcdir or the absolute working directory
5967# name.  Accept space and tab only in the latter.
5968am_lf='
5969'
5970case `pwd` in
5971  *[\\\"\#\$\&\'\`$am_lf]*)
5972    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5973esac
5974case $srcdir in
5975  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5976    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5977esac
5978
5979# Do 'set' in a subshell so we don't clobber the current shell's
5980# arguments.  Must try -L first in case configure is actually a
5981# symlink; some systems play weird games with the mod time of symlinks
5982# (eg FreeBSD returns the mod time of the symlink's containing
5983# directory).
5984if (
5985   am_has_slept=no
5986   for am_try in 1 2; do
5987     echo "timestamp, slept: $am_has_slept" > conftest.file
5988     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5989     if test "$*" = "X"; then
5990	# -L didn't work.
5991	set X `ls -t "$srcdir/configure" conftest.file`
5992     fi
5993     if test "$*" != "X $srcdir/configure conftest.file" \
5994	&& test "$*" != "X conftest.file $srcdir/configure"; then
5995
5996	# If neither matched, then we have a broken ls.  This can happen
5997	# if, for instance, CONFIG_SHELL is bash and it inherits a
5998	# broken ls alias from the environment.  This has actually
5999	# happened.  Such a system could not be considered "sane".
6000	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6001  alias in your environment" "$LINENO" 5
6002     fi
6003     if test "$2" = conftest.file || test $am_try -eq 2; then
6004       break
6005     fi
6006     # Just in case.
6007     sleep 1
6008     am_has_slept=yes
6009   done
6010   test "$2" = conftest.file
6011   )
6012then
6013   # Ok.
6014   :
6015else
6016   as_fn_error $? "newly created file is older than distributed files!
6017Check your system clock" "$LINENO" 5
6018fi
6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020printf "%s\n" "yes" >&6; }
6021# If we didn't sleep, we still need to ensure time stamps of config.status and
6022# generated files are strictly newer.
6023am_sleep_pid=
6024if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6025  ( sleep 1 ) &
6026  am_sleep_pid=$!
6027fi
6028
6029rm -f conftest.file
6030
6031test "$program_prefix" != NONE &&
6032  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6033# Use a double $ so make ignores it.
6034test "$program_suffix" != NONE &&
6035  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6036# Double any \ or $.
6037# By default was `s,x,x', remove it if useless.
6038ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6039program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6040
6041
6042  if test x"${MISSING+set}" != xset; then
6043  MISSING="\${SHELL} '$am_aux_dir/missing'"
6044fi
6045# Use eval to expand $SHELL
6046if eval "$MISSING --is-lightweight"; then
6047  am_missing_run="$MISSING "
6048else
6049  am_missing_run=
6050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6051printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6052fi
6053
6054if test x"${install_sh+set}" != xset; then
6055  case $am_aux_dir in
6056  *\ * | *\	*)
6057    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6058  *)
6059    install_sh="\${SHELL} $am_aux_dir/install-sh"
6060  esac
6061fi
6062
6063# Installed binaries are usually stripped using 'strip' when the user
6064# run "make install-strip".  However 'strip' might not be the right
6065# tool to use in cross-compilation environments, therefore Automake
6066# will honor the 'STRIP' environment variable to overrule this program.
6067if test "$cross_compiling" != no; then
6068  if test -n "$ac_tool_prefix"; then
6069  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070set dummy ${ac_tool_prefix}strip; ac_word=$2
6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072printf %s "checking for $ac_word... " >&6; }
6073if test ${ac_cv_prog_STRIP+y}
6074then :
6075  printf %s "(cached) " >&6
6076else $as_nop
6077  if test -n "$STRIP"; then
6078  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  case $as_dir in #(((
6085    '') as_dir=./ ;;
6086    */) ;;
6087    *) as_dir=$as_dir/ ;;
6088  esac
6089    for ac_exec_ext in '' $ac_executable_extensions; do
6090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6091    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6093    break 2
6094  fi
6095done
6096  done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101STRIP=$ac_cv_prog_STRIP
6102if test -n "$STRIP"; then
6103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104printf "%s\n" "$STRIP" >&6; }
6105else
6106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107printf "%s\n" "no" >&6; }
6108fi
6109
6110
6111fi
6112if test -z "$ac_cv_prog_STRIP"; then
6113  ac_ct_STRIP=$STRIP
6114  # Extract the first word of "strip", so it can be a program name with args.
6115set dummy strip; ac_word=$2
6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117printf %s "checking for $ac_word... " >&6; }
6118if test ${ac_cv_prog_ac_ct_STRIP+y}
6119then :
6120  printf %s "(cached) " >&6
6121else $as_nop
6122  if test -n "$ac_ct_STRIP"; then
6123  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128  IFS=$as_save_IFS
6129  case $as_dir in #(((
6130    '') as_dir=./ ;;
6131    */) ;;
6132    *) as_dir=$as_dir/ ;;
6133  esac
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136    ac_cv_prog_ac_ct_STRIP="strip"
6137    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141  done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6147if test -n "$ac_ct_STRIP"; then
6148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6149printf "%s\n" "$ac_ct_STRIP" >&6; }
6150else
6151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152printf "%s\n" "no" >&6; }
6153fi
6154
6155  if test "x$ac_ct_STRIP" = x; then
6156    STRIP=":"
6157  else
6158    case $cross_compiling:$ac_tool_warned in
6159yes:)
6160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162ac_tool_warned=yes ;;
6163esac
6164    STRIP=$ac_ct_STRIP
6165  fi
6166else
6167  STRIP="$ac_cv_prog_STRIP"
6168fi
6169
6170fi
6171INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6172
6173
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6175printf %s "checking for a race-free mkdir -p... " >&6; }
6176if test -z "$MKDIR_P"; then
6177  if test ${ac_cv_path_mkdir+y}
6178then :
6179  printf %s "(cached) " >&6
6180else $as_nop
6181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6183do
6184  IFS=$as_save_IFS
6185  case $as_dir in #(((
6186    '') as_dir=./ ;;
6187    */) ;;
6188    *) as_dir=$as_dir/ ;;
6189  esac
6190    for ac_prog in mkdir gmkdir; do
6191	 for ac_exec_ext in '' $ac_executable_extensions; do
6192	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6193	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6194	     'mkdir ('*'coreutils) '* | \
6195	     'BusyBox '* | \
6196	     'mkdir (fileutils) '4.1*)
6197	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6198	       break 3;;
6199	   esac
6200	 done
6201       done
6202  done
6203IFS=$as_save_IFS
6204
6205fi
6206
6207  test -d ./--version && rmdir ./--version
6208  if test ${ac_cv_path_mkdir+y}; then
6209    MKDIR_P="$ac_cv_path_mkdir -p"
6210  else
6211    # As a last resort, use the slow shell script.  Don't cache a
6212    # value for MKDIR_P within a source directory, because that will
6213    # break other packages using the cache if that directory is
6214    # removed, or if the value is a relative name.
6215    MKDIR_P="$ac_install_sh -d"
6216  fi
6217fi
6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6219printf "%s\n" "$MKDIR_P" >&6; }
6220
6221for ac_prog in gawk mawk nawk awk
6222do
6223  # Extract the first word of "$ac_prog", so it can be a program name with args.
6224set dummy $ac_prog; ac_word=$2
6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226printf %s "checking for $ac_word... " >&6; }
6227if test ${ac_cv_prog_AWK+y}
6228then :
6229  printf %s "(cached) " >&6
6230else $as_nop
6231  if test -n "$AWK"; then
6232  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  case $as_dir in #(((
6239    '') as_dir=./ ;;
6240    */) ;;
6241    *) as_dir=$as_dir/ ;;
6242  esac
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_AWK="$ac_prog"
6246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255AWK=$ac_cv_prog_AWK
6256if test -n "$AWK"; then
6257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6258printf "%s\n" "$AWK" >&6; }
6259else
6260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261printf "%s\n" "no" >&6; }
6262fi
6263
6264
6265  test -n "$AWK" && break
6266done
6267
6268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6269printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6270set x ${MAKE-make}
6271ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6272if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6273then :
6274  printf %s "(cached) " >&6
6275else $as_nop
6276  cat >conftest.make <<\_ACEOF
6277SHELL = /bin/sh
6278all:
6279	@echo '@@@%%%=$(MAKE)=@@@%%%'
6280_ACEOF
6281# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6282case `${MAKE-make} -f conftest.make 2>/dev/null` in
6283  *@@@%%%=?*=@@@%%%*)
6284    eval ac_cv_prog_make_${ac_make}_set=yes;;
6285  *)
6286    eval ac_cv_prog_make_${ac_make}_set=no;;
6287esac
6288rm -f conftest.make
6289fi
6290if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6292printf "%s\n" "yes" >&6; }
6293  SET_MAKE=
6294else
6295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296printf "%s\n" "no" >&6; }
6297  SET_MAKE="MAKE=${MAKE-make}"
6298fi
6299
6300rm -rf .tst 2>/dev/null
6301mkdir .tst 2>/dev/null
6302if test -d .tst; then
6303  am__leading_dot=.
6304else
6305  am__leading_dot=_
6306fi
6307rmdir .tst 2>/dev/null
6308
6309DEPDIR="${am__leading_dot}deps"
6310
6311ac_config_commands="$ac_config_commands depfiles"
6312
6313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6314printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6315cat > confinc.mk << 'END'
6316am__doit:
6317	@echo this is the am__doit target >confinc.out
6318.PHONY: am__doit
6319END
6320am__include="#"
6321am__quote=
6322# BSD make does it like this.
6323echo '.include "confinc.mk" # ignored' > confmf.BSD
6324# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6325echo 'include confinc.mk # ignored' > confmf.GNU
6326_am_result=no
6327for s in GNU BSD; do
6328  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6329   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }
6333  case $?:`cat confinc.out 2>/dev/null` in #(
6334  '0:this is the am__doit target') :
6335    case $s in #(
6336  BSD) :
6337    am__include='.include' am__quote='"' ;; #(
6338  *) :
6339    am__include='include' am__quote='' ;;
6340esac ;; #(
6341  *) :
6342     ;;
6343esac
6344  if test "$am__include" != "#"; then
6345    _am_result="yes ($s style)"
6346    break
6347  fi
6348done
6349rm -f confinc.* confmf.*
6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6351printf "%s\n" "${_am_result}" >&6; }
6352
6353# Check whether --enable-dependency-tracking was given.
6354if test ${enable_dependency_tracking+y}
6355then :
6356  enableval=$enable_dependency_tracking;
6357fi
6358
6359if test "x$enable_dependency_tracking" != xno; then
6360  am_depcomp="$ac_aux_dir/depcomp"
6361  AMDEPBACKSLASH='\'
6362  am__nodep='_no'
6363fi
6364 if test "x$enable_dependency_tracking" != xno; then
6365  AMDEP_TRUE=
6366  AMDEP_FALSE='#'
6367else
6368  AMDEP_TRUE='#'
6369  AMDEP_FALSE=
6370fi
6371
6372
6373## --------------------------------------- ##
6374##  Start of automake initialization code  ##
6375## --------------------------------------- ##
6376
6377if test "`cd $srcdir && pwd`" != "`pwd`"; then
6378  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6379  # is not polluted with repeated "-I."
6380  am__isrc=' -I$(srcdir)'
6381  # test to see if srcdir already configured
6382  if test -f $srcdir/config.status; then
6383    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6384  fi
6385fi
6386
6387# test whether we have cygpath
6388if test -z "$CYGPATH_W"; then
6389  if (cygpath --version) >/dev/null 2>/dev/null; then
6390    CYGPATH_W='cygpath -w'
6391  else
6392    CYGPATH_W=echo
6393  fi
6394fi
6395
6396
6397# Define the identity of the package.
6398 PACKAGE='curl'
6399 VERSION='-'
6400
6401
6402printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6403
6404
6405printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6406
6407# Some tools Automake needs.
6408
6409ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6410
6411
6412AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6413
6414
6415AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6416
6417
6418AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6419
6420
6421MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6422
6423# For better backward compatibility.  To be removed once Automake 1.9.x
6424# dies out for good.  For more background, see:
6425# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6426# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6427mkdir_p='$(MKDIR_P)'
6428
6429# We need awk for the "check" target (and possibly the TAP driver).  The
6430# system "awk" is bad on some platforms.
6431# Always define AMTAR for backward compatibility.  Yes, it's still used
6432# in the wild :-(  We should find a proper way to deprecate it ...
6433AMTAR='$${TAR-tar}'
6434
6435
6436# We'll loop over all known methods to create a tar archive until one works.
6437_am_tools='gnutar  pax cpio none'
6438
6439am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6440
6441
6442
6443
6444
6445depcc="$CC"   am_compiler_list=
6446
6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6448printf %s "checking dependency style of $depcc... " >&6; }
6449if test ${am_cv_CC_dependencies_compiler_type+y}
6450then :
6451  printf %s "(cached) " >&6
6452else $as_nop
6453  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6454  # We make a subdir and do the tests there.  Otherwise we can end up
6455  # making bogus files that we don't know about and never remove.  For
6456  # instance it was reported that on HP-UX the gcc test will end up
6457  # making a dummy file named 'D' -- because '-MD' means "put the output
6458  # in D".
6459  rm -rf conftest.dir
6460  mkdir conftest.dir
6461  # Copy depcomp to subdir because otherwise we won't find it if we're
6462  # using a relative directory.
6463  cp "$am_depcomp" conftest.dir
6464  cd conftest.dir
6465  # We will build objects and dependencies in a subdirectory because
6466  # it helps to detect inapplicable dependency modes.  For instance
6467  # both Tru64's cc and ICC support -MD to output dependencies as a
6468  # side effect of compilation, but ICC will put the dependencies in
6469  # the current directory while Tru64 will put them in the object
6470  # directory.
6471  mkdir sub
6472
6473  am_cv_CC_dependencies_compiler_type=none
6474  if test "$am_compiler_list" = ""; then
6475     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6476  fi
6477  am__universal=false
6478  case " $depcc " in #(
6479     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6480     esac
6481
6482  for depmode in $am_compiler_list; do
6483    # Setup a source with many dependencies, because some compilers
6484    # like to wrap large dependency lists on column 80 (with \), and
6485    # we should not choose a depcomp mode which is confused by this.
6486    #
6487    # We need to recreate these files for each test, as the compiler may
6488    # overwrite some of them when testing with obscure command lines.
6489    # This happens at least with the AIX C compiler.
6490    : > sub/conftest.c
6491    for i in 1 2 3 4 5 6; do
6492      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6493      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6494      # Solaris 10 /bin/sh.
6495      echo '/* dummy */' > sub/conftst$i.h
6496    done
6497    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6498
6499    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6500    # mode.  It turns out that the SunPro C++ compiler does not properly
6501    # handle '-M -o', and we need to detect this.  Also, some Intel
6502    # versions had trouble with output in subdirs.
6503    am__obj=sub/conftest.${OBJEXT-o}
6504    am__minus_obj="-o $am__obj"
6505    case $depmode in
6506    gcc)
6507      # This depmode causes a compiler race in universal mode.
6508      test "$am__universal" = false || continue
6509      ;;
6510    nosideeffect)
6511      # After this tag, mechanisms are not by side-effect, so they'll
6512      # only be used when explicitly requested.
6513      if test "x$enable_dependency_tracking" = xyes; then
6514	continue
6515      else
6516	break
6517      fi
6518      ;;
6519    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6520      # This compiler won't grok '-c -o', but also, the minuso test has
6521      # not run yet.  These depmodes are late enough in the game, and
6522      # so weak that their functioning should not be impacted.
6523      am__obj=conftest.${OBJEXT-o}
6524      am__minus_obj=
6525      ;;
6526    none) break ;;
6527    esac
6528    if depmode=$depmode \
6529       source=sub/conftest.c object=$am__obj \
6530       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6531       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6532         >/dev/null 2>conftest.err &&
6533       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6534       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6535       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6536       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6537      # icc doesn't choke on unknown options, it will just issue warnings
6538      # or remarks (even with -Werror).  So we grep stderr for any message
6539      # that says an option was ignored or not supported.
6540      # When given -MP, icc 7.0 and 7.1 complain thusly:
6541      #   icc: Command line warning: ignoring option '-M'; no argument required
6542      # The diagnosis changed in icc 8.0:
6543      #   icc: Command line remark: option '-MP' not supported
6544      if (grep 'ignoring option' conftest.err ||
6545          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6546        am_cv_CC_dependencies_compiler_type=$depmode
6547        break
6548      fi
6549    fi
6550  done
6551
6552  cd ..
6553  rm -rf conftest.dir
6554else
6555  am_cv_CC_dependencies_compiler_type=none
6556fi
6557
6558fi
6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6560printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6561CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6562
6563 if
6564  test "x$enable_dependency_tracking" != xno \
6565  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6566  am__fastdepCC_TRUE=
6567  am__fastdepCC_FALSE='#'
6568else
6569  am__fastdepCC_TRUE='#'
6570  am__fastdepCC_FALSE=
6571fi
6572
6573
6574# Variables for tags utilities; see am/tags.am
6575if test -z "$CTAGS"; then
6576  CTAGS=ctags
6577fi
6578
6579if test -z "$ETAGS"; then
6580  ETAGS=etags
6581fi
6582
6583if test -z "$CSCOPE"; then
6584  CSCOPE=cscope
6585fi
6586
6587
6588
6589# POSIX will say in a future version that running "rm -f" with no argument
6590# is OK; and we want to be able to make that assumption in our Makefile
6591# recipes.  So use an aggressive probe to check that the usage we want is
6592# actually supported "in the wild" to an acceptable degree.
6593# See automake bug#10828.
6594# To make any issue more visible, cause the running configure to be aborted
6595# by default if the 'rm' program in use doesn't match our expectations; the
6596# user can still override this though.
6597if rm -f && rm -fr && rm -rf; then : OK; else
6598  cat >&2 <<'END'
6599Oops!
6600
6601Your 'rm' program seems unable to run without file operands specified
6602on the command line, even when the '-f' option is present.  This is contrary
6603to the behaviour of most rm programs out there, and not conforming with
6604the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6605
6606Please tell bug-automake@gnu.org about your system, including the value
6607of your $PATH and any error possibly output before this message.  This
6608can help us improve future automake versions.
6609
6610END
6611  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6612    echo 'Configuration will proceed anyway, since you have set the' >&2
6613    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6614    echo >&2
6615  else
6616    cat >&2 <<'END'
6617Aborting the configuration process, to ensure you take notice of the issue.
6618
6619You can download and install GNU coreutils to get an 'rm' implementation
6620that behaves properly: <https://www.gnu.org/software/coreutils/>.
6621
6622If you want to complete the configuration process using your problematic
6623'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6624to "yes", and re-run configure.
6625
6626END
6627    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6628  fi
6629fi
6630
6631## ------------------------------------- ##
6632##  End of automake initialization code  ##
6633## ------------------------------------- ##
6634
6635
6636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6637printf %s "checking curl version... " >&6; }
6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6639printf "%s\n" "$CURLVERSION" >&6; }
6640
6641
6642
6643VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6644
6645
6646PKGADD_PKG="HAXXcurl"
6647PKGADD_NAME="curl - a client that groks URLs"
6648PKGADD_VENDOR="curl.se"
6649
6650
6651
6652
6653    curl_ssl_msg="no      (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6654    curl_ssh_msg="no      (--with-{libssh,libssh2})"
6655   curl_zlib_msg="no      (--with-zlib)"
6656 curl_brotli_msg="no      (--with-brotli)"
6657   curl_zstd_msg="no      (--with-zstd)"
6658    curl_gss_msg="no      (--with-gssapi)"
6659  curl_gsasl_msg="no      (--with-gsasl)"
6660curl_tls_srp_msg="no      (--enable-tls-srp)"
6661    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6662   curl_ipv6_msg="no      (--enable-ipv6)"
6663curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6664    curl_idn_msg="no      (--with-{libidn2,winidn})"
6665 curl_manual_msg="no      (--enable-manual)"
6666curl_libcurl_msg="enabled (--disable-libcurl-option)"
6667curl_verbose_msg="enabled (--disable-verbose)"
6668   curl_sspi_msg="no      (--enable-sspi)"
6669   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6670  curl_ldaps_msg="no      (--enable-ldaps)"
6671   curl_rtsp_msg="no      (--enable-rtsp)"
6672   curl_rtmp_msg="no      (--with-librtmp)"
6673    curl_psl_msg="no      (--with-libpsl)"
6674 curl_altsvc_msg="enabled (--disable-alt-svc)"
6675curl_headers_msg="enabled (--disable-headers-api)"
6676   curl_hsts_msg="enabled (--disable-hsts)"
6677     curl_ws_msg="no      (--enable-websockets)"
6678    ssl_backends=
6679     curl_h1_msg="enabled (internal)"
6680     curl_h2_msg="no      (--with-nghttp2, --with-hyper)"
6681     curl_h3_msg="no      (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-msh3)"
6682
6683enable_altsvc="yes"
6684hsts="yes"
6685
6686INITIAL_LDFLAGS=$LDFLAGS
6687INITIAL_LIBS=$LIBS
6688
6689compilersh="run-compiler"
6690CURL_SAVED_CC="$CC"
6691export CURL_SAVED_CC
6692CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
6693export CURL_SAVED_LD_LIBRARY_PATH
6694cat <<\EOF > "$compilersh"
6695CC="$CURL_SAVED_CC"
6696export CC
6697LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH"
6698export LD_LIBRARY_PATH
6699exec $CC "$@"
6700EOF
6701
6702OPT_SCHANNEL=no
6703
6704# Check whether --with-schannel was given.
6705if test ${with_schannel+y}
6706then :
6707  withval=$with_schannel; OPT_SCHANNEL=$withval
6708  TLSCHOICE="schannel"
6709fi
6710
6711
6712OPT_SECURETRANSPORT=no
6713
6714# Check whether --with-secure-transport was given.
6715if test ${with_secure_transport+y}
6716then :
6717  withval=$with_secure_transport;
6718  OPT_SECURETRANSPORT=$withval
6719  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6720
6721fi
6722
6723
6724OPT_AMISSL=no
6725
6726# Check whether --with-amissl was given.
6727if test ${with_amissl+y}
6728then :
6729  withval=$with_amissl;
6730  OPT_AMISSL=$withval
6731  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6732
6733fi
6734
6735
6736OPT_OPENSSL=no
6737ca="no"
6738
6739# Check whether --with-ssl was given.
6740if test ${with_ssl+y}
6741then :
6742  withval=$with_ssl;
6743  OPT_SSL=$withval
6744  OPT_OPENSSL=$withval
6745  if test X"$withval" != Xno; then
6746    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6747  else
6748    SSL_DISABLED="D"
6749  fi
6750
6751fi
6752
6753
6754
6755# Check whether --with-openssl was given.
6756if test ${with_openssl+y}
6757then :
6758  withval=$with_openssl;
6759  OPT_OPENSSL=$withval
6760  if test X"$withval" != Xno; then
6761    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6762  fi
6763
6764fi
6765
6766
6767OPT_GNUTLS=no
6768
6769# Check whether --with-gnutls was given.
6770if test ${with_gnutls+y}
6771then :
6772  withval=$with_gnutls;
6773  OPT_GNUTLS=$withval
6774  if test X"$withval" != Xno; then
6775    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6776  fi
6777
6778fi
6779
6780
6781OPT_MBEDTLS=no
6782
6783# Check whether --with-mbedtls was given.
6784if test ${with_mbedtls+y}
6785then :
6786  withval=$with_mbedtls;
6787  OPT_MBEDTLS=$withval
6788  if test X"$withval" != Xno; then
6789    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6790  fi
6791
6792fi
6793
6794
6795OPT_WOLFSSL=no
6796
6797# Check whether --with-wolfssl was given.
6798if test ${with_wolfssl+y}
6799then :
6800  withval=$with_wolfssl;
6801  OPT_WOLFSSL=$withval
6802  if test X"$withval" != Xno; then
6803    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6804  fi
6805
6806fi
6807
6808
6809OPT_BEARSSL=no
6810
6811# Check whether --with-bearssl was given.
6812if test ${with_bearssl+y}
6813then :
6814  withval=$with_bearssl;
6815  OPT_BEARSSL=$withval
6816  if test X"$withval" != Xno; then
6817    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6818  fi
6819
6820fi
6821
6822
6823OPT_RUSTLS=no
6824
6825# Check whether --with-rustls was given.
6826if test ${with_rustls+y}
6827then :
6828  withval=$with_rustls;
6829  OPT_RUSTLS=$withval
6830  if test X"$withval" != Xno; then
6831    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6832    experimental="$experimental rustls"
6833  fi
6834
6835fi
6836
6837
6838TEST_NGHTTPX=nghttpx
6839
6840# Check whether --with-test-nghttpx was given.
6841if test ${with_test_nghttpx+y}
6842then :
6843  withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6844  if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6845      TEST_NGHTTPX=""
6846  fi
6847
6848fi
6849
6850
6851
6852CADDY=caddy
6853
6854# Check whether --with-test-caddy was given.
6855if test ${with_test_caddy+y}
6856then :
6857  withval=$with_test_caddy; CADDY=$withval
6858  if test X"$OPT_CADDY" = "Xno" ; then
6859      CADDY=""
6860  fi
6861
6862fi
6863
6864
6865
6866HTTPD_ENABLED="maybe"
6867
6868# Check whether --with-test-httpd was given.
6869if test ${with_test_httpd+y}
6870then :
6871  withval=$with_test_httpd; request_httpd=$withval
6872else $as_nop
6873  request_httpd=check
6874fi
6875
6876if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
6877  if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6878    # common location on distros (debian/ubuntu)
6879    HTTPD="/usr/sbin/apache2"
6880    APACHECTL="/usr/sbin/apache2ctl"
6881    # Extract the first word of "apxs", so it can be a program name with args.
6882set dummy apxs; ac_word=$2
6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884printf %s "checking for $ac_word... " >&6; }
6885if test ${ac_cv_path_APXS+y}
6886then :
6887  printf %s "(cached) " >&6
6888else $as_nop
6889  case $APXS in
6890  [\\/]* | ?:[\\/]*)
6891  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6892  ;;
6893  *)
6894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897  IFS=$as_save_IFS
6898  case $as_dir in #(((
6899    '') as_dir=./ ;;
6900    */) ;;
6901    *) as_dir=$as_dir/ ;;
6902  esac
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913  ;;
6914esac
6915fi
6916APXS=$ac_cv_path_APXS
6917if test -n "$APXS"; then
6918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6919printf "%s\n" "$APXS" >&6; }
6920else
6921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922printf "%s\n" "no" >&6; }
6923fi
6924
6925
6926    if test "x$APXS" = "x"; then
6927      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6928printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6929      HTTPD_ENABLED="no"
6930    fi
6931  else
6932    # Extract the first word of "httpd", so it can be a program name with args.
6933set dummy httpd; ac_word=$2
6934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935printf %s "checking for $ac_word... " >&6; }
6936if test ${ac_cv_path_HTTPD+y}
6937then :
6938  printf %s "(cached) " >&6
6939else $as_nop
6940  case $HTTPD in
6941  [\\/]* | ?:[\\/]*)
6942  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6943  ;;
6944  *)
6945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  case $as_dir in #(((
6950    '') as_dir=./ ;;
6951    */) ;;
6952    *) as_dir=$as_dir/ ;;
6953  esac
6954    for ac_exec_ext in '' $ac_executable_extensions; do
6955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6956    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
6957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6958    break 2
6959  fi
6960done
6961  done
6962IFS=$as_save_IFS
6963
6964  ;;
6965esac
6966fi
6967HTTPD=$ac_cv_path_HTTPD
6968if test -n "$HTTPD"; then
6969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
6970printf "%s\n" "$HTTPD" >&6; }
6971else
6972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973printf "%s\n" "no" >&6; }
6974fi
6975
6976
6977    if test "x$HTTPD" = "x"; then
6978      # Extract the first word of "apache2", so it can be a program name with args.
6979set dummy apache2; ac_word=$2
6980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981printf %s "checking for $ac_word... " >&6; }
6982if test ${ac_cv_path_HTTPD+y}
6983then :
6984  printf %s "(cached) " >&6
6985else $as_nop
6986  case $HTTPD in
6987  [\\/]* | ?:[\\/]*)
6988  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6989  ;;
6990  *)
6991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  case $as_dir in #(((
6996    '') as_dir=./ ;;
6997    */) ;;
6998    *) as_dir=$as_dir/ ;;
6999  esac
7000    for ac_exec_ext in '' $ac_executable_extensions; do
7001  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7002    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7003    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7004    break 2
7005  fi
7006done
7007  done
7008IFS=$as_save_IFS
7009
7010  ;;
7011esac
7012fi
7013HTTPD=$ac_cv_path_HTTPD
7014if test -n "$HTTPD"; then
7015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7016printf "%s\n" "$HTTPD" >&6; }
7017else
7018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019printf "%s\n" "no" >&6; }
7020fi
7021
7022
7023    fi
7024    # Extract the first word of "apachectl", so it can be a program name with args.
7025set dummy apachectl; ac_word=$2
7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027printf %s "checking for $ac_word... " >&6; }
7028if test ${ac_cv_path_APACHECTL+y}
7029then :
7030  printf %s "(cached) " >&6
7031else $as_nop
7032  case $APACHECTL in
7033  [\\/]* | ?:[\\/]*)
7034  ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7035  ;;
7036  *)
7037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  case $as_dir in #(((
7042    '') as_dir=./ ;;
7043    */) ;;
7044    *) as_dir=$as_dir/ ;;
7045  esac
7046    for ac_exec_ext in '' $ac_executable_extensions; do
7047  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7048    ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7049    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7050    break 2
7051  fi
7052done
7053  done
7054IFS=$as_save_IFS
7055
7056  ;;
7057esac
7058fi
7059APACHECTL=$ac_cv_path_APACHECTL
7060if test -n "$APACHECTL"; then
7061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7062printf "%s\n" "$APACHECTL" >&6; }
7063else
7064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065printf "%s\n" "no" >&6; }
7066fi
7067
7068
7069    # Extract the first word of "apxs", so it can be a program name with args.
7070set dummy apxs; ac_word=$2
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072printf %s "checking for $ac_word... " >&6; }
7073if test ${ac_cv_path_APXS+y}
7074then :
7075  printf %s "(cached) " >&6
7076else $as_nop
7077  case $APXS in
7078  [\\/]* | ?:[\\/]*)
7079  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7080  ;;
7081  *)
7082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  case $as_dir in #(((
7087    '') as_dir=./ ;;
7088    */) ;;
7089    *) as_dir=$as_dir/ ;;
7090  esac
7091    for ac_exec_ext in '' $ac_executable_extensions; do
7092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7093    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7095    break 2
7096  fi
7097done
7098  done
7099IFS=$as_save_IFS
7100
7101  ;;
7102esac
7103fi
7104APXS=$ac_cv_path_APXS
7105if test -n "$APXS"; then
7106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7107printf "%s\n" "$APXS" >&6; }
7108else
7109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110printf "%s\n" "no" >&6; }
7111fi
7112
7113
7114    if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7115      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5
7116printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;}
7117      HTTPD_ENABLED="no"
7118    fi
7119    if test "x$APXS" = "x"; then
7120      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5
7121printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;}
7122      HTTPD_ENABLED="no"
7123    fi
7124  fi
7125elif test x"$request_httpd" != "xno"; then
7126  HTTPD="${request_httpd}/bin/httpd"
7127  APACHECTL="${request_httpd}/bin/apachectl"
7128  APXS="${request_httpd}/bin/apxs"
7129  if test ! -x "${HTTPD}"; then
7130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5
7131printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;}
7132    HTTPD_ENABLED="no"
7133  elif test ! -x "${APACHECTL}"; then
7134    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5
7135printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;}
7136    HTTPD_ENABLED="no"
7137  elif test ! -x "${APXS}"; then
7138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5
7139printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;}
7140    HTTPD_ENABLED="no"
7141  else
7142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7143printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7144  fi
7145fi
7146if test x"$HTTPD_ENABLED" = "xno"; then
7147  HTTPD=""
7148  APACHECTL=""
7149  APXS=""
7150fi
7151
7152
7153
7154
7155if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7156  HTTPD_NGHTTPX="$TEST_NGHTTPX"
7157else
7158  # Extract the first word of "nghttpx", so it can be a program name with args.
7159set dummy nghttpx; ac_word=$2
7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161printf %s "checking for $ac_word... " >&6; }
7162if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7163then :
7164  printf %s "(cached) " >&6
7165else $as_nop
7166  case $HTTPD_NGHTTPX in
7167  [\\/]* | ?:[\\/]*)
7168  ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7169  ;;
7170  *)
7171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172as_dummy="$PATH:/usr/bin:/usr/local/bin"
7173for as_dir in $as_dummy
7174do
7175  IFS=$as_save_IFS
7176  case $as_dir in #(((
7177    '') as_dir=./ ;;
7178    */) ;;
7179    *) as_dir=$as_dir/ ;;
7180  esac
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7183    ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191  ;;
7192esac
7193fi
7194HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7195if test -n "$HTTPD_NGHTTPX"; then
7196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7197printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7198else
7199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200printf "%s\n" "no" >&6; }
7201fi
7202
7203
7204fi
7205
7206
7207if test "x$TEST_CADDY" != "x"; then
7208  CADDY="$TEST_CADDY"
7209else
7210  # Extract the first word of "caddy", so it can be a program name with args.
7211set dummy caddy; ac_word=$2
7212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213printf %s "checking for $ac_word... " >&6; }
7214if test ${ac_cv_path_CADDY+y}
7215then :
7216  printf %s "(cached) " >&6
7217else $as_nop
7218  case $CADDY in
7219  [\\/]* | ?:[\\/]*)
7220  ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7221  ;;
7222  *)
7223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  case $as_dir in #(((
7228    '') as_dir=./ ;;
7229    */) ;;
7230    *) as_dir=$as_dir/ ;;
7231  esac
7232    for ac_exec_ext in '' $ac_executable_extensions; do
7233  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7234    ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7235    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7236    break 2
7237  fi
7238done
7239  done
7240IFS=$as_save_IFS
7241
7242  ;;
7243esac
7244fi
7245CADDY=$ac_cv_path_CADDY
7246if test -n "$CADDY"; then
7247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7248printf "%s\n" "$CADDY" >&6; }
7249else
7250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251printf "%s\n" "no" >&6; }
7252fi
7253
7254
7255fi
7256
7257
7258if test -z "$TLSCHOICE"; then
7259  if test "x$OPT_SSL" != "xno"; then
7260    as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7261
7262Select from these:
7263
7264  --with-amissl
7265  --with-bearssl
7266  --with-gnutls
7267  --with-mbedtls
7268  --with-openssl (also works for BoringSSL and libressl)
7269  --with-rustls
7270  --with-schannel
7271  --with-secure-transport
7272  --with-wolfssl
7273" "$LINENO" 5
7274  fi
7275fi
7276
7277
7278# Check whether --with-darwinssl was given.
7279if test ${with_darwinssl+y}
7280then :
7281  withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5
7282fi
7283
7284
7285
7286
7287
7288  # Make sure we can run config.sub.
7289$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7290  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7291
7292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7293printf %s "checking build system type... " >&6; }
7294if test ${ac_cv_build+y}
7295then :
7296  printf %s "(cached) " >&6
7297else $as_nop
7298  ac_build_alias=$build_alias
7299test "x$ac_build_alias" = x &&
7300  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7301test "x$ac_build_alias" = x &&
7302  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7303ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7304  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7305
7306fi
7307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7308printf "%s\n" "$ac_cv_build" >&6; }
7309case $ac_cv_build in
7310*-*-*) ;;
7311*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7312esac
7313build=$ac_cv_build
7314ac_save_IFS=$IFS; IFS='-'
7315set x $ac_cv_build
7316shift
7317build_cpu=$1
7318build_vendor=$2
7319shift; shift
7320# Remember, the first character of IFS is used to create $*,
7321# except with old shells:
7322build_os=$*
7323IFS=$ac_save_IFS
7324case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7325
7326
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7328printf %s "checking host system type... " >&6; }
7329if test ${ac_cv_host+y}
7330then :
7331  printf %s "(cached) " >&6
7332else $as_nop
7333  if test "x$host_alias" = x; then
7334  ac_cv_host=$ac_cv_build
7335else
7336  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7337    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7338fi
7339
7340fi
7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7342printf "%s\n" "$ac_cv_host" >&6; }
7343case $ac_cv_host in
7344*-*-*) ;;
7345*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7346esac
7347host=$ac_cv_host
7348ac_save_IFS=$IFS; IFS='-'
7349set x $ac_cv_host
7350shift
7351host_cpu=$1
7352host_vendor=$2
7353shift; shift
7354# Remember, the first character of IFS is used to create $*,
7355# except with old shells:
7356host_os=$*
7357IFS=$ac_save_IFS
7358case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7359
7360
7361
7362printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7363
7364
7365# Silence warning: ar: 'u' modifier ignored since 'D' is the default
7366AR_FLAGS=cr
7367
7368
7369
7370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7371printf %s "checking for grep that handles long lines and -e... " >&6; }
7372if test ${ac_cv_path_GREP+y}
7373then :
7374  printf %s "(cached) " >&6
7375else $as_nop
7376  if test -z "$GREP"; then
7377  ac_path_GREP_found=false
7378  # Loop through the user's path and test for each of PROGNAME-LIST
7379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381do
7382  IFS=$as_save_IFS
7383  case $as_dir in #(((
7384    '') as_dir=./ ;;
7385    */) ;;
7386    *) as_dir=$as_dir/ ;;
7387  esac
7388    for ac_prog in grep ggrep
7389   do
7390    for ac_exec_ext in '' $ac_executable_extensions; do
7391      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7392      as_fn_executable_p "$ac_path_GREP" || continue
7393# Check for GNU ac_path_GREP and select it if it is found.
7394  # Check for GNU $ac_path_GREP
7395case `"$ac_path_GREP" --version 2>&1` in
7396*GNU*)
7397  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7398*)
7399  ac_count=0
7400  printf %s 0123456789 >"conftest.in"
7401  while :
7402  do
7403    cat "conftest.in" "conftest.in" >"conftest.tmp"
7404    mv "conftest.tmp" "conftest.in"
7405    cp "conftest.in" "conftest.nl"
7406    printf "%s\n" 'GREP' >> "conftest.nl"
7407    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7408    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7409    as_fn_arith $ac_count + 1 && ac_count=$as_val
7410    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7411      # Best one so far, save it but keep looking for a better one
7412      ac_cv_path_GREP="$ac_path_GREP"
7413      ac_path_GREP_max=$ac_count
7414    fi
7415    # 10*(2^10) chars as input seems more than enough
7416    test $ac_count -gt 10 && break
7417  done
7418  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7419esac
7420
7421      $ac_path_GREP_found && break 3
7422    done
7423  done
7424  done
7425IFS=$as_save_IFS
7426  if test -z "$ac_cv_path_GREP"; then
7427    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7428  fi
7429else
7430  ac_cv_path_GREP=$GREP
7431fi
7432
7433fi
7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7435printf "%s\n" "$ac_cv_path_GREP" >&6; }
7436 GREP="$ac_cv_path_GREP"
7437
7438
7439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7440printf %s "checking for egrep... " >&6; }
7441if test ${ac_cv_path_EGREP+y}
7442then :
7443  printf %s "(cached) " >&6
7444else $as_nop
7445  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7446   then ac_cv_path_EGREP="$GREP -E"
7447   else
7448     if test -z "$EGREP"; then
7449  ac_path_EGREP_found=false
7450  # Loop through the user's path and test for each of PROGNAME-LIST
7451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7453do
7454  IFS=$as_save_IFS
7455  case $as_dir in #(((
7456    '') as_dir=./ ;;
7457    */) ;;
7458    *) as_dir=$as_dir/ ;;
7459  esac
7460    for ac_prog in egrep
7461   do
7462    for ac_exec_ext in '' $ac_executable_extensions; do
7463      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7464      as_fn_executable_p "$ac_path_EGREP" || continue
7465# Check for GNU ac_path_EGREP and select it if it is found.
7466  # Check for GNU $ac_path_EGREP
7467case `"$ac_path_EGREP" --version 2>&1` in
7468*GNU*)
7469  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7470*)
7471  ac_count=0
7472  printf %s 0123456789 >"conftest.in"
7473  while :
7474  do
7475    cat "conftest.in" "conftest.in" >"conftest.tmp"
7476    mv "conftest.tmp" "conftest.in"
7477    cp "conftest.in" "conftest.nl"
7478    printf "%s\n" 'EGREP' >> "conftest.nl"
7479    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7480    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7481    as_fn_arith $ac_count + 1 && ac_count=$as_val
7482    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7483      # Best one so far, save it but keep looking for a better one
7484      ac_cv_path_EGREP="$ac_path_EGREP"
7485      ac_path_EGREP_max=$ac_count
7486    fi
7487    # 10*(2^10) chars as input seems more than enough
7488    test $ac_count -gt 10 && break
7489  done
7490  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7491esac
7492
7493      $ac_path_EGREP_found && break 3
7494    done
7495  done
7496  done
7497IFS=$as_save_IFS
7498  if test -z "$ac_cv_path_EGREP"; then
7499    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7500  fi
7501else
7502  ac_cv_path_EGREP=$EGREP
7503fi
7504
7505   fi
7506fi
7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7508printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7509 EGREP="$ac_cv_path_EGREP"
7510
7511
7512
7513
7514        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7515printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518
7519#ifdef _AIX
7520   yes_this_is_aix
7521#endif
7522
7523_ACEOF
7524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525  $EGREP "yes_this_is_aix" >/dev/null 2>&1
7526then :
7527
7528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529printf "%s\n" "yes" >&6; }
7530    printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7531
7532
7533else $as_nop
7534
7535    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536printf "%s\n" "no" >&6; }
7537
7538fi
7539rm -rf conftest*
7540
7541
7542
7543
7544    #
7545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7546printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549
7550
7551
7552int main (void)
7553{
7554
7555#ifdef _THREAD_SAFE
7556      int dummy=1;
7557#else
7558      force compilation error
7559#endif
7560
7561 ;
7562 return 0;
7563}
7564
7565_ACEOF
7566if ac_fn_c_try_compile "$LINENO"
7567then :
7568
7569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570printf "%s\n" "yes" >&6; }
7571    tmp_thread_safe_initially_defined="yes"
7572
7573else $as_nop
7574
7575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576printf "%s\n" "no" >&6; }
7577    tmp_thread_safe_initially_defined="no"
7578
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7581  #
7582  if test "$tmp_thread_safe_initially_defined" = "no"; then
7583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7584printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7585
7586  case $host_os in
7587    aix[123].* | aix4.[012].*)
7588            tmp_need_thread_safe="no"
7589      ;;
7590    aix*)
7591            tmp_need_thread_safe="yes"
7592      ;;
7593    *)
7594      tmp_need_thread_safe="no"
7595      ;;
7596  esac
7597
7598    if test "$tmp_need_thread_safe" = "yes"; then
7599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600printf "%s\n" "yes" >&6; }
7601    else
7602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603printf "%s\n" "no" >&6; }
7604    fi
7605  fi
7606  #
7607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7608printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7609  if test "$tmp_thread_safe_initially_defined" = "yes" ||
7610    test "$tmp_need_thread_safe" = "yes"; then
7611
7612
7613printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7614
7615cat >>confdefs.h <<_EOF
7616#ifndef _THREAD_SAFE
7617#  define _THREAD_SAFE
7618#endif
7619_EOF
7620
7621    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622printf "%s\n" "yes" >&6; }
7623  else
7624    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625printf "%s\n" "no" >&6; }
7626  fi
7627  #
7628
7629
7630    #
7631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7632printf %s "checking if _REENTRANT is already defined... " >&6; }
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635
7636
7637
7638int main (void)
7639{
7640
7641#ifdef _REENTRANT
7642      int dummy=1;
7643#else
7644      force compilation error
7645#endif
7646
7647 ;
7648 return 0;
7649}
7650
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"
7653then :
7654
7655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7656printf "%s\n" "yes" >&6; }
7657    tmp_reentrant_initially_defined="yes"
7658
7659else $as_nop
7660
7661    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662printf "%s\n" "no" >&6; }
7663    tmp_reentrant_initially_defined="no"
7664
7665fi
7666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7667  #
7668  if test "$tmp_reentrant_initially_defined" = "no"; then
7669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7670printf %s "checking if _REENTRANT is actually needed... " >&6; }
7671
7672  case $host_os in
7673    solaris*)
7674      tmp_need_reentrant="yes"
7675      ;;
7676    *)
7677      tmp_need_reentrant="no"
7678      ;;
7679  esac
7680
7681    if test "$tmp_need_reentrant" = "no"; then
7682
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685
7686
7687#include <errno.h>
7688
7689int main (void)
7690{
7691
7692      if(0 != errno)
7693        return 1;
7694
7695 ;
7696 return 0;
7697}
7698
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"
7701then :
7702
7703    tmp_errno="yes"
7704
7705else $as_nop
7706
7707    tmp_errno="no"
7708
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7711  if test "$tmp_errno" = "yes"; then
7712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714
7715
7716#include <errno.h>
7717
7718int main (void)
7719{
7720
7721#ifdef errno
7722        int dummy=1;
7723#else
7724        force compilation error
7725#endif
7726
7727 ;
7728 return 0;
7729}
7730
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"
7733then :
7734
7735      tmp_errno="errno_macro_defined"
7736
7737else $as_nop
7738
7739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740/* end confdefs.h.  */
7741
7742
7743#define _REENTRANT
7744#include <errno.h>
7745
7746int main (void)
7747{
7748
7749#ifdef errno
7750          int dummy=1;
7751#else
7752          force compilation error
7753#endif
7754
7755 ;
7756 return 0;
7757}
7758
7759_ACEOF
7760if ac_fn_c_try_compile "$LINENO"
7761then :
7762
7763        tmp_errno="errno_macro_needs_reentrant"
7764        tmp_need_reentrant="yes"
7765
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7768
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7771  fi
7772
7773    fi
7774    if test "$tmp_need_reentrant" = "no"; then
7775
7776  if test "$tmp_need_reentrant" = "no"; then
7777
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780
7781
7782#define gmtime_r innocuous_gmtime_r
7783#ifdef __STDC__
7784# include <limits.h>
7785#else
7786# include <assert.h>
7787#endif
7788#undef gmtime_r
7789#ifdef __cplusplus
7790extern "C"
7791#endif
7792char gmtime_r ();
7793#if defined __stub_gmtime_r || defined __stub___gmtime_r
7794choke me
7795#endif
7796
7797int main (void)
7798{
7799return gmtime_r ();
7800 ;
7801 return 0;
7802}
7803
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"
7806then :
7807
7808    tmp_gmtime_r="yes"
7809
7810else $as_nop
7811
7812    tmp_gmtime_r="no"
7813
7814fi
7815rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816    conftest$ac_exeext conftest.$ac_ext
7817  if test "$tmp_gmtime_r" = "yes"; then
7818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819/* end confdefs.h.  */
7820
7821#include <sys/types.h>
7822#include <time.h>
7823
7824_ACEOF
7825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826  $EGREP "gmtime_r" >/dev/null 2>&1
7827then :
7828
7829      tmp_gmtime_r="proto_declared"
7830
7831else $as_nop
7832
7833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835
7836#define _REENTRANT
7837#include <sys/types.h>
7838#include <time.h>
7839
7840_ACEOF
7841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842  $EGREP "gmtime_r" >/dev/null 2>&1
7843then :
7844
7845        tmp_gmtime_r="proto_needs_reentrant"
7846        tmp_need_reentrant="yes"
7847
7848fi
7849rm -rf conftest*
7850
7851
7852fi
7853rm -rf conftest*
7854
7855  fi
7856
7857  fi
7858  if test "$tmp_need_reentrant" = "no"; then
7859
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862
7863
7864#define localtime_r innocuous_localtime_r
7865#ifdef __STDC__
7866# include <limits.h>
7867#else
7868# include <assert.h>
7869#endif
7870#undef localtime_r
7871#ifdef __cplusplus
7872extern "C"
7873#endif
7874char localtime_r ();
7875#if defined __stub_localtime_r || defined __stub___localtime_r
7876choke me
7877#endif
7878
7879int main (void)
7880{
7881return localtime_r ();
7882 ;
7883 return 0;
7884}
7885
7886_ACEOF
7887if ac_fn_c_try_link "$LINENO"
7888then :
7889
7890    tmp_localtime_r="yes"
7891
7892else $as_nop
7893
7894    tmp_localtime_r="no"
7895
7896fi
7897rm -f core conftest.err conftest.$ac_objext conftest.beam \
7898    conftest$ac_exeext conftest.$ac_ext
7899  if test "$tmp_localtime_r" = "yes"; then
7900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902
7903#include <sys/types.h>
7904#include <time.h>
7905
7906_ACEOF
7907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908  $EGREP "localtime_r" >/dev/null 2>&1
7909then :
7910
7911      tmp_localtime_r="proto_declared"
7912
7913else $as_nop
7914
7915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h.  */
7917
7918#define _REENTRANT
7919#include <sys/types.h>
7920#include <time.h>
7921
7922_ACEOF
7923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924  $EGREP "localtime_r" >/dev/null 2>&1
7925then :
7926
7927        tmp_localtime_r="proto_needs_reentrant"
7928        tmp_need_reentrant="yes"
7929
7930fi
7931rm -rf conftest*
7932
7933
7934fi
7935rm -rf conftest*
7936
7937  fi
7938
7939  fi
7940  if test "$tmp_need_reentrant" = "no"; then
7941
7942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944
7945
7946#define strerror_r innocuous_strerror_r
7947#ifdef __STDC__
7948# include <limits.h>
7949#else
7950# include <assert.h>
7951#endif
7952#undef strerror_r
7953#ifdef __cplusplus
7954extern "C"
7955#endif
7956char strerror_r ();
7957#if defined __stub_strerror_r || defined __stub___strerror_r
7958choke me
7959#endif
7960
7961int main (void)
7962{
7963return strerror_r ();
7964 ;
7965 return 0;
7966}
7967
7968_ACEOF
7969if ac_fn_c_try_link "$LINENO"
7970then :
7971
7972    tmp_strerror_r="yes"
7973
7974else $as_nop
7975
7976    tmp_strerror_r="no"
7977
7978fi
7979rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980    conftest$ac_exeext conftest.$ac_ext
7981  if test "$tmp_strerror_r" = "yes"; then
7982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984
7985#include <sys/types.h>
7986#include <string.h>
7987
7988_ACEOF
7989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990  $EGREP "strerror_r" >/dev/null 2>&1
7991then :
7992
7993      tmp_strerror_r="proto_declared"
7994
7995else $as_nop
7996
7997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999
8000#define _REENTRANT
8001#include <sys/types.h>
8002#include <string.h>
8003
8004_ACEOF
8005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006  $EGREP "strerror_r" >/dev/null 2>&1
8007then :
8008
8009        tmp_strerror_r="proto_needs_reentrant"
8010        tmp_need_reentrant="yes"
8011
8012fi
8013rm -rf conftest*
8014
8015
8016fi
8017rm -rf conftest*
8018
8019  fi
8020
8021  fi
8022  if test "$tmp_need_reentrant" = "no"; then
8023
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026
8027
8028#define strtok_r innocuous_strtok_r
8029#ifdef __STDC__
8030# include <limits.h>
8031#else
8032# include <assert.h>
8033#endif
8034#undef strtok_r
8035#ifdef __cplusplus
8036extern "C"
8037#endif
8038char strtok_r ();
8039#if defined __stub_strtok_r || defined __stub___strtok_r
8040choke me
8041#endif
8042
8043int main (void)
8044{
8045return strtok_r ();
8046 ;
8047 return 0;
8048}
8049
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"
8052then :
8053
8054    tmp_strtok_r="yes"
8055
8056else $as_nop
8057
8058    tmp_strtok_r="no"
8059
8060fi
8061rm -f core conftest.err conftest.$ac_objext conftest.beam \
8062    conftest$ac_exeext conftest.$ac_ext
8063  if test "$tmp_strtok_r" = "yes"; then
8064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066
8067#include <sys/types.h>
8068#include <string.h>
8069
8070_ACEOF
8071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072  $EGREP "strtok_r" >/dev/null 2>&1
8073then :
8074
8075      tmp_strtok_r="proto_declared"
8076
8077else $as_nop
8078
8079      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081
8082#define _REENTRANT
8083#include <sys/types.h>
8084#include <string.h>
8085
8086_ACEOF
8087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088  $EGREP "strtok_r" >/dev/null 2>&1
8089then :
8090
8091        tmp_strtok_r="proto_needs_reentrant"
8092        tmp_need_reentrant="yes"
8093
8094fi
8095rm -rf conftest*
8096
8097
8098fi
8099rm -rf conftest*
8100
8101  fi
8102
8103  fi
8104  if test "$tmp_need_reentrant" = "no"; then
8105
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108
8109
8110#define gethostbyname_r innocuous_gethostbyname_r
8111#ifdef __STDC__
8112# include <limits.h>
8113#else
8114# include <assert.h>
8115#endif
8116#undef gethostbyname_r
8117#ifdef __cplusplus
8118extern "C"
8119#endif
8120char gethostbyname_r ();
8121#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8122choke me
8123#endif
8124
8125int main (void)
8126{
8127return gethostbyname_r ();
8128 ;
8129 return 0;
8130}
8131
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"
8134then :
8135
8136    tmp_gethostbyname_r="yes"
8137
8138else $as_nop
8139
8140    tmp_gethostbyname_r="no"
8141
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.beam \
8144    conftest$ac_exeext conftest.$ac_ext
8145  if test "$tmp_gethostbyname_r" = "yes"; then
8146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148
8149#include <sys/types.h>
8150#include <netdb.h>
8151
8152_ACEOF
8153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154  $EGREP "gethostbyname_r" >/dev/null 2>&1
8155then :
8156
8157      tmp_gethostbyname_r="proto_declared"
8158
8159else $as_nop
8160
8161      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163
8164#define _REENTRANT
8165#include <sys/types.h>
8166#include <netdb.h>
8167
8168_ACEOF
8169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8170  $EGREP "gethostbyname_r" >/dev/null 2>&1
8171then :
8172
8173        tmp_gethostbyname_r="proto_needs_reentrant"
8174        tmp_need_reentrant="yes"
8175
8176fi
8177rm -rf conftest*
8178
8179
8180fi
8181rm -rf conftest*
8182
8183  fi
8184
8185  fi
8186  if test "$tmp_need_reentrant" = "no"; then
8187
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190
8191
8192#define getprotobyname_r innocuous_getprotobyname_r
8193#ifdef __STDC__
8194# include <limits.h>
8195#else
8196# include <assert.h>
8197#endif
8198#undef getprotobyname_r
8199#ifdef __cplusplus
8200extern "C"
8201#endif
8202char getprotobyname_r ();
8203#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8204choke me
8205#endif
8206
8207int main (void)
8208{
8209return getprotobyname_r ();
8210 ;
8211 return 0;
8212}
8213
8214_ACEOF
8215if ac_fn_c_try_link "$LINENO"
8216then :
8217
8218    tmp_getprotobyname_r="yes"
8219
8220else $as_nop
8221
8222    tmp_getprotobyname_r="no"
8223
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.beam \
8226    conftest$ac_exeext conftest.$ac_ext
8227  if test "$tmp_getprotobyname_r" = "yes"; then
8228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230
8231#include <sys/types.h>
8232#include <netdb.h>
8233
8234_ACEOF
8235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236  $EGREP "getprotobyname_r" >/dev/null 2>&1
8237then :
8238
8239      tmp_getprotobyname_r="proto_declared"
8240
8241else $as_nop
8242
8243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245
8246#define _REENTRANT
8247#include <sys/types.h>
8248#include <netdb.h>
8249
8250_ACEOF
8251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252  $EGREP "getprotobyname_r" >/dev/null 2>&1
8253then :
8254
8255        tmp_getprotobyname_r="proto_needs_reentrant"
8256        tmp_need_reentrant="yes"
8257
8258fi
8259rm -rf conftest*
8260
8261
8262fi
8263rm -rf conftest*
8264
8265  fi
8266
8267  fi
8268
8269    fi
8270    if test "$tmp_need_reentrant" = "yes"; then
8271      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272printf "%s\n" "yes" >&6; }
8273    else
8274      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275printf "%s\n" "no" >&6; }
8276    fi
8277  fi
8278  #
8279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8280printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8281  if test "$tmp_reentrant_initially_defined" = "yes" ||
8282    test "$tmp_need_reentrant" = "yes"; then
8283
8284
8285printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8286
8287cat >>confdefs.h <<_EOF
8288#ifndef _REENTRANT
8289#  define _REENTRANT
8290#endif
8291_EOF
8292
8293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8294printf "%s\n" "yes" >&6; }
8295  else
8296    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297printf "%s\n" "no" >&6; }
8298  fi
8299  #
8300
8301
8302# Check whether --enable-largefile was given.
8303if test ${enable_largefile+y}
8304then :
8305  enableval=$enable_largefile;
8306fi
8307
8308if test "$enable_largefile" != no; then
8309
8310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8311printf %s "checking for special C compiler options needed for large files... " >&6; }
8312if test ${ac_cv_sys_largefile_CC+y}
8313then :
8314  printf %s "(cached) " >&6
8315else $as_nop
8316  ac_cv_sys_largefile_CC=no
8317     if test "$GCC" != yes; then
8318       ac_save_CC=$CC
8319       while :; do
8320	 # IRIX 6.2 and later do not support large files by default,
8321	 # so use the C compiler's -n32 option if that helps.
8322	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324#include <sys/types.h>
8325 /* Check that off_t can represent 2**63 - 1 correctly.
8326    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8327    since some C++ compilers masquerading as C compilers
8328    incorrectly reject 9223372036854775807.  */
8329#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8330  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8331		       && LARGE_OFF_T % 2147483647 == 1)
8332		      ? 1 : -1];
8333int main (void)
8334{
8335
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340	 if ac_fn_c_try_compile "$LINENO"
8341then :
8342  break
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.beam
8345	 CC="$CC -n32"
8346	 if ac_fn_c_try_compile "$LINENO"
8347then :
8348  ac_cv_sys_largefile_CC=' -n32'; break
8349fi
8350rm -f core conftest.err conftest.$ac_objext conftest.beam
8351	 break
8352       done
8353       CC=$ac_save_CC
8354       rm -f conftest.$ac_ext
8355    fi
8356fi
8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8358printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8359  if test "$ac_cv_sys_largefile_CC" != no; then
8360    CC=$CC$ac_cv_sys_largefile_CC
8361  fi
8362
8363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8364printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8365if test ${ac_cv_sys_file_offset_bits+y}
8366then :
8367  printf %s "(cached) " >&6
8368else $as_nop
8369  while :; do
8370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372#include <sys/types.h>
8373 /* Check that off_t can represent 2**63 - 1 correctly.
8374    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8375    since some C++ compilers masquerading as C compilers
8376    incorrectly reject 9223372036854775807.  */
8377#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8378  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8379		       && LARGE_OFF_T % 2147483647 == 1)
8380		      ? 1 : -1];
8381int main (void)
8382{
8383
8384 ;
8385 return 0;
8386}
8387_ACEOF
8388if ac_fn_c_try_compile "$LINENO"
8389then :
8390  ac_cv_sys_file_offset_bits=no; break
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395#define _FILE_OFFSET_BITS 64
8396#include <sys/types.h>
8397 /* Check that off_t can represent 2**63 - 1 correctly.
8398    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8399    since some C++ compilers masquerading as C compilers
8400    incorrectly reject 9223372036854775807.  */
8401#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8402  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8403		       && LARGE_OFF_T % 2147483647 == 1)
8404		      ? 1 : -1];
8405int main (void)
8406{
8407
8408 ;
8409 return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"
8413then :
8414  ac_cv_sys_file_offset_bits=64; break
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417  ac_cv_sys_file_offset_bits=unknown
8418  break
8419done
8420fi
8421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8422printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8423case $ac_cv_sys_file_offset_bits in #(
8424  no | unknown) ;;
8425  *)
8426printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8427;;
8428esac
8429rm -rf conftest*
8430  if test $ac_cv_sys_file_offset_bits = unknown; then
8431    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8432printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8433if test ${ac_cv_sys_large_files+y}
8434then :
8435  printf %s "(cached) " >&6
8436else $as_nop
8437  while :; do
8438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h.  */
8440#include <sys/types.h>
8441 /* Check that off_t can represent 2**63 - 1 correctly.
8442    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8443    since some C++ compilers masquerading as C compilers
8444    incorrectly reject 9223372036854775807.  */
8445#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8446  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8447		       && LARGE_OFF_T % 2147483647 == 1)
8448		      ? 1 : -1];
8449int main (void)
8450{
8451
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"
8457then :
8458  ac_cv_sys_large_files=no; break
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463#define _LARGE_FILES 1
8464#include <sys/types.h>
8465 /* Check that off_t can represent 2**63 - 1 correctly.
8466    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8467    since some C++ compilers masquerading as C compilers
8468    incorrectly reject 9223372036854775807.  */
8469#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8470  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8471		       && LARGE_OFF_T % 2147483647 == 1)
8472		      ? 1 : -1];
8473int main (void)
8474{
8475
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480if ac_fn_c_try_compile "$LINENO"
8481then :
8482  ac_cv_sys_large_files=1; break
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8485  ac_cv_sys_large_files=unknown
8486  break
8487done
8488fi
8489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8490printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8491case $ac_cv_sys_large_files in #(
8492  no | unknown) ;;
8493  *)
8494printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8495;;
8496esac
8497rm -rf conftest*
8498  fi
8499fi
8500
8501
8502case `pwd` in
8503  *\ * | *\	*)
8504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8505printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8506esac
8507
8508
8509
8510macro_version='2.4.7'
8511macro_revision='2.4.7'
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526ltmain=$ac_aux_dir/ltmain.sh
8527
8528# Backslashify metacharacters that are still active within
8529# double-quoted strings.
8530sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8531
8532# Same as above, but do not quote variable references.
8533double_quote_subst='s/\(["`\\]\)/\\\1/g'
8534
8535# Sed substitution to delay expansion of an escaped shell variable in a
8536# double_quote_subst'ed string.
8537delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8538
8539# Sed substitution to delay expansion of an escaped single quote.
8540delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8541
8542# Sed substitution to avoid accidental globbing in evaled expressions
8543no_glob_subst='s/\*/\\\*/g'
8544
8545ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8546ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8547ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8548
8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8550printf %s "checking how to print strings... " >&6; }
8551# Test print first, because it will be a builtin if present.
8552if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8553   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8554  ECHO='print -r --'
8555elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8556  ECHO='printf %s\n'
8557else
8558  # Use this function as a fallback that always works.
8559  func_fallback_echo ()
8560  {
8561    eval 'cat <<_LTECHO_EOF
8562$1
8563_LTECHO_EOF'
8564  }
8565  ECHO='func_fallback_echo'
8566fi
8567
8568# func_echo_all arg...
8569# Invoke $ECHO with all args, space-separated.
8570func_echo_all ()
8571{
8572    $ECHO ""
8573}
8574
8575case $ECHO in
8576  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8577printf "%s\n" "printf" >&6; } ;;
8578  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8579printf "%s\n" "print -r" >&6; } ;;
8580  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8581printf "%s\n" "cat" >&6; } ;;
8582esac
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8598printf %s "checking for a sed that does not truncate output... " >&6; }
8599if test ${ac_cv_path_SED+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8604     for ac_i in 1 2 3 4 5 6 7; do
8605       ac_script="$ac_script$as_nl$ac_script"
8606     done
8607     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8608     { ac_script=; unset ac_script;}
8609     if test -z "$SED"; then
8610  ac_path_SED_found=false
8611  # Loop through the user's path and test for each of PROGNAME-LIST
8612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615  IFS=$as_save_IFS
8616  case $as_dir in #(((
8617    '') as_dir=./ ;;
8618    */) ;;
8619    *) as_dir=$as_dir/ ;;
8620  esac
8621    for ac_prog in sed gsed
8622   do
8623    for ac_exec_ext in '' $ac_executable_extensions; do
8624      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8625      as_fn_executable_p "$ac_path_SED" || continue
8626# Check for GNU ac_path_SED and select it if it is found.
8627  # Check for GNU $ac_path_SED
8628case `"$ac_path_SED" --version 2>&1` in
8629*GNU*)
8630  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8631*)
8632  ac_count=0
8633  printf %s 0123456789 >"conftest.in"
8634  while :
8635  do
8636    cat "conftest.in" "conftest.in" >"conftest.tmp"
8637    mv "conftest.tmp" "conftest.in"
8638    cp "conftest.in" "conftest.nl"
8639    printf "%s\n" '' >> "conftest.nl"
8640    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8641    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8642    as_fn_arith $ac_count + 1 && ac_count=$as_val
8643    if test $ac_count -gt ${ac_path_SED_max-0}; then
8644      # Best one so far, save it but keep looking for a better one
8645      ac_cv_path_SED="$ac_path_SED"
8646      ac_path_SED_max=$ac_count
8647    fi
8648    # 10*(2^10) chars as input seems more than enough
8649    test $ac_count -gt 10 && break
8650  done
8651  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8652esac
8653
8654      $ac_path_SED_found && break 3
8655    done
8656  done
8657  done
8658IFS=$as_save_IFS
8659  if test -z "$ac_cv_path_SED"; then
8660    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8661  fi
8662else
8663  ac_cv_path_SED=$SED
8664fi
8665
8666fi
8667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8668printf "%s\n" "$ac_cv_path_SED" >&6; }
8669 SED="$ac_cv_path_SED"
8670  rm -f conftest.sed
8671
8672test -z "$SED" && SED=sed
8673Xsed="$SED -e 1s/^X//"
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8686printf %s "checking for fgrep... " >&6; }
8687if test ${ac_cv_path_FGREP+y}
8688then :
8689  printf %s "(cached) " >&6
8690else $as_nop
8691  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8692   then ac_cv_path_FGREP="$GREP -F"
8693   else
8694     if test -z "$FGREP"; then
8695  ac_path_FGREP_found=false
8696  # Loop through the user's path and test for each of PROGNAME-LIST
8697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8699do
8700  IFS=$as_save_IFS
8701  case $as_dir in #(((
8702    '') as_dir=./ ;;
8703    */) ;;
8704    *) as_dir=$as_dir/ ;;
8705  esac
8706    for ac_prog in fgrep
8707   do
8708    for ac_exec_ext in '' $ac_executable_extensions; do
8709      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8710      as_fn_executable_p "$ac_path_FGREP" || continue
8711# Check for GNU ac_path_FGREP and select it if it is found.
8712  # Check for GNU $ac_path_FGREP
8713case `"$ac_path_FGREP" --version 2>&1` in
8714*GNU*)
8715  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8716*)
8717  ac_count=0
8718  printf %s 0123456789 >"conftest.in"
8719  while :
8720  do
8721    cat "conftest.in" "conftest.in" >"conftest.tmp"
8722    mv "conftest.tmp" "conftest.in"
8723    cp "conftest.in" "conftest.nl"
8724    printf "%s\n" 'FGREP' >> "conftest.nl"
8725    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8726    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8727    as_fn_arith $ac_count + 1 && ac_count=$as_val
8728    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8729      # Best one so far, save it but keep looking for a better one
8730      ac_cv_path_FGREP="$ac_path_FGREP"
8731      ac_path_FGREP_max=$ac_count
8732    fi
8733    # 10*(2^10) chars as input seems more than enough
8734    test $ac_count -gt 10 && break
8735  done
8736  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8737esac
8738
8739      $ac_path_FGREP_found && break 3
8740    done
8741  done
8742  done
8743IFS=$as_save_IFS
8744  if test -z "$ac_cv_path_FGREP"; then
8745    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8746  fi
8747else
8748  ac_cv_path_FGREP=$FGREP
8749fi
8750
8751   fi
8752fi
8753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8754printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8755 FGREP="$ac_cv_path_FGREP"
8756
8757
8758test -z "$GREP" && GREP=grep
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778# Check whether --with-gnu-ld was given.
8779if test ${with_gnu_ld+y}
8780then :
8781  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8782else $as_nop
8783  with_gnu_ld=no
8784fi
8785
8786ac_prog=ld
8787if test yes = "$GCC"; then
8788  # Check if gcc -print-prog-name=ld gives a path.
8789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8790printf %s "checking for ld used by $CC... " >&6; }
8791  case $host in
8792  *-*-mingw*)
8793    # gcc leaves a trailing carriage return, which upsets mingw
8794    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8795  *)
8796    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8797  esac
8798  case $ac_prog in
8799    # Accept absolute paths.
8800    [\\/]* | ?:[\\/]*)
8801      re_direlt='/[^/][^/]*/\.\./'
8802      # Canonicalize the pathname of ld
8803      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8804      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8805	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8806      done
8807      test -z "$LD" && LD=$ac_prog
8808      ;;
8809  "")
8810    # If it fails, then pretend we aren't using GCC.
8811    ac_prog=ld
8812    ;;
8813  *)
8814    # If it is relative, then search for the first ld in PATH.
8815    with_gnu_ld=unknown
8816    ;;
8817  esac
8818elif test yes = "$with_gnu_ld"; then
8819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8820printf %s "checking for GNU ld... " >&6; }
8821else
8822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8823printf %s "checking for non-GNU ld... " >&6; }
8824fi
8825if test ${lt_cv_path_LD+y}
8826then :
8827  printf %s "(cached) " >&6
8828else $as_nop
8829  if test -z "$LD"; then
8830  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8831  for ac_dir in $PATH; do
8832    IFS=$lt_save_ifs
8833    test -z "$ac_dir" && ac_dir=.
8834    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8835      lt_cv_path_LD=$ac_dir/$ac_prog
8836      # Check to see if the program is GNU ld.  I'd rather use --version,
8837      # but apparently some variants of GNU ld only accept -v.
8838      # Break only if it was the GNU/non-GNU ld that we prefer.
8839      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8840      *GNU* | *'with BFD'*)
8841	test no != "$with_gnu_ld" && break
8842	;;
8843      *)
8844	test yes != "$with_gnu_ld" && break
8845	;;
8846      esac
8847    fi
8848  done
8849  IFS=$lt_save_ifs
8850else
8851  lt_cv_path_LD=$LD # Let the user override the test with a path.
8852fi
8853fi
8854
8855LD=$lt_cv_path_LD
8856if test -n "$LD"; then
8857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8858printf "%s\n" "$LD" >&6; }
8859else
8860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861printf "%s\n" "no" >&6; }
8862fi
8863test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8865printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8866if test ${lt_cv_prog_gnu_ld+y}
8867then :
8868  printf %s "(cached) " >&6
8869else $as_nop
8870  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8871case `$LD -v 2>&1 </dev/null` in
8872*GNU* | *'with BFD'*)
8873  lt_cv_prog_gnu_ld=yes
8874  ;;
8875*)
8876  lt_cv_prog_gnu_ld=no
8877  ;;
8878esac
8879fi
8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8881printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8882with_gnu_ld=$lt_cv_prog_gnu_ld
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8893printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8894if test ${lt_cv_path_NM+y}
8895then :
8896  printf %s "(cached) " >&6
8897else $as_nop
8898  if test -n "$NM"; then
8899  # Let the user override the test.
8900  lt_cv_path_NM=$NM
8901else
8902  lt_nm_to_check=${ac_tool_prefix}nm
8903  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8904    lt_nm_to_check="$lt_nm_to_check nm"
8905  fi
8906  for lt_tmp_nm in $lt_nm_to_check; do
8907    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8908    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8909      IFS=$lt_save_ifs
8910      test -z "$ac_dir" && ac_dir=.
8911      tmp_nm=$ac_dir/$lt_tmp_nm
8912      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8913	# Check to see if the nm accepts a BSD-compat flag.
8914	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8915	#   nm: unknown option "B" ignored
8916	# Tru64's nm complains that /dev/null is an invalid object file
8917	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8918	case $build_os in
8919	mingw*) lt_bad_file=conftest.nm/nofile ;;
8920	*) lt_bad_file=/dev/null ;;
8921	esac
8922	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8923	*$lt_bad_file* | *'Invalid file or object type'*)
8924	  lt_cv_path_NM="$tmp_nm -B"
8925	  break 2
8926	  ;;
8927	*)
8928	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8929	  */dev/null*)
8930	    lt_cv_path_NM="$tmp_nm -p"
8931	    break 2
8932	    ;;
8933	  *)
8934	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8935	    continue # so that we can try to find one that supports BSD flags
8936	    ;;
8937	  esac
8938	  ;;
8939	esac
8940      fi
8941    done
8942    IFS=$lt_save_ifs
8943  done
8944  : ${lt_cv_path_NM=no}
8945fi
8946fi
8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8948printf "%s\n" "$lt_cv_path_NM" >&6; }
8949if test no != "$lt_cv_path_NM"; then
8950  NM=$lt_cv_path_NM
8951else
8952  # Didn't find any BSD compatible name lister, look for dumpbin.
8953  if test -n "$DUMPBIN"; then :
8954    # Let the user override the test.
8955  else
8956    if test -n "$ac_tool_prefix"; then
8957  for ac_prog in dumpbin "link -dump"
8958  do
8959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962printf %s "checking for $ac_word... " >&6; }
8963if test ${ac_cv_prog_DUMPBIN+y}
8964then :
8965  printf %s "(cached) " >&6
8966else $as_nop
8967  if test -n "$DUMPBIN"; then
8968  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8969else
8970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971for as_dir in $PATH
8972do
8973  IFS=$as_save_IFS
8974  case $as_dir in #(((
8975    '') as_dir=./ ;;
8976    */) ;;
8977    *) as_dir=$as_dir/ ;;
8978  esac
8979    for ac_exec_ext in '' $ac_executable_extensions; do
8980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8981    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8983    break 2
8984  fi
8985done
8986  done
8987IFS=$as_save_IFS
8988
8989fi
8990fi
8991DUMPBIN=$ac_cv_prog_DUMPBIN
8992if test -n "$DUMPBIN"; then
8993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8994printf "%s\n" "$DUMPBIN" >&6; }
8995else
8996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997printf "%s\n" "no" >&6; }
8998fi
8999
9000
9001    test -n "$DUMPBIN" && break
9002  done
9003fi
9004if test -z "$DUMPBIN"; then
9005  ac_ct_DUMPBIN=$DUMPBIN
9006  for ac_prog in dumpbin "link -dump"
9007do
9008  # Extract the first word of "$ac_prog", so it can be a program name with args.
9009set dummy $ac_prog; ac_word=$2
9010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011printf %s "checking for $ac_word... " >&6; }
9012if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9013then :
9014  printf %s "(cached) " >&6
9015else $as_nop
9016  if test -n "$ac_ct_DUMPBIN"; then
9017  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022  IFS=$as_save_IFS
9023  case $as_dir in #(((
9024    '') as_dir=./ ;;
9025    */) ;;
9026    *) as_dir=$as_dir/ ;;
9027  esac
9028    for ac_exec_ext in '' $ac_executable_extensions; do
9029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9030    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9032    break 2
9033  fi
9034done
9035  done
9036IFS=$as_save_IFS
9037
9038fi
9039fi
9040ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9041if test -n "$ac_ct_DUMPBIN"; then
9042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9043printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9044else
9045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046printf "%s\n" "no" >&6; }
9047fi
9048
9049
9050  test -n "$ac_ct_DUMPBIN" && break
9051done
9052
9053  if test "x$ac_ct_DUMPBIN" = x; then
9054    DUMPBIN=":"
9055  else
9056    case $cross_compiling:$ac_tool_warned in
9057yes:)
9058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060ac_tool_warned=yes ;;
9061esac
9062    DUMPBIN=$ac_ct_DUMPBIN
9063  fi
9064fi
9065
9066    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9067    *COFF*)
9068      DUMPBIN="$DUMPBIN -symbols -headers"
9069      ;;
9070    *)
9071      DUMPBIN=:
9072      ;;
9073    esac
9074  fi
9075
9076  if test : != "$DUMPBIN"; then
9077    NM=$DUMPBIN
9078  fi
9079fi
9080test -z "$NM" && NM=nm
9081
9082
9083
9084
9085
9086
9087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9088printf %s "checking the name lister ($NM) interface... " >&6; }
9089if test ${lt_cv_nm_interface+y}
9090then :
9091  printf %s "(cached) " >&6
9092else $as_nop
9093  lt_cv_nm_interface="BSD nm"
9094  echo "int some_variable = 0;" > conftest.$ac_ext
9095  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9096  (eval "$ac_compile" 2>conftest.err)
9097  cat conftest.err >&5
9098  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9099  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9100  cat conftest.err >&5
9101  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9102  cat conftest.out >&5
9103  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9104    lt_cv_nm_interface="MS dumpbin"
9105  fi
9106  rm -f conftest*
9107fi
9108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9109printf "%s\n" "$lt_cv_nm_interface" >&6; }
9110
9111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9112printf %s "checking whether ln -s works... " >&6; }
9113LN_S=$as_ln_s
9114if test "$LN_S" = "ln -s"; then
9115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9116printf "%s\n" "yes" >&6; }
9117else
9118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9119printf "%s\n" "no, using $LN_S" >&6; }
9120fi
9121
9122# find the maximum length of command line arguments
9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9124printf %s "checking the maximum length of command line arguments... " >&6; }
9125if test ${lt_cv_sys_max_cmd_len+y}
9126then :
9127  printf %s "(cached) " >&6
9128else $as_nop
9129    i=0
9130  teststring=ABCD
9131
9132  case $build_os in
9133  msdosdjgpp*)
9134    # On DJGPP, this test can blow up pretty badly due to problems in libc
9135    # (any single argument exceeding 2000 bytes causes a buffer overrun
9136    # during glob expansion).  Even if it were fixed, the result of this
9137    # check would be larger than it should be.
9138    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9139    ;;
9140
9141  gnu*)
9142    # Under GNU Hurd, this test is not required because there is
9143    # no limit to the length of command line arguments.
9144    # Libtool will interpret -1 as no limit whatsoever
9145    lt_cv_sys_max_cmd_len=-1;
9146    ;;
9147
9148  cygwin* | mingw* | cegcc*)
9149    # On Win9x/ME, this test blows up -- it succeeds, but takes
9150    # about 5 minutes as the teststring grows exponentially.
9151    # Worse, since 9x/ME are not pre-emptively multitasking,
9152    # you end up with a "frozen" computer, even though with patience
9153    # the test eventually succeeds (with a max line length of 256k).
9154    # Instead, let's just punt: use the minimum linelength reported by
9155    # all of the supported platforms: 8192 (on NT/2K/XP).
9156    lt_cv_sys_max_cmd_len=8192;
9157    ;;
9158
9159  mint*)
9160    # On MiNT this can take a long time and run out of memory.
9161    lt_cv_sys_max_cmd_len=8192;
9162    ;;
9163
9164  amigaos*)
9165    # On AmigaOS with pdksh, this test takes hours, literally.
9166    # So we just punt and use a minimum line length of 8192.
9167    lt_cv_sys_max_cmd_len=8192;
9168    ;;
9169
9170  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9171    # This has been around since 386BSD, at least.  Likely further.
9172    if test -x /sbin/sysctl; then
9173      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9174    elif test -x /usr/sbin/sysctl; then
9175      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9176    else
9177      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9178    fi
9179    # And add a safety zone
9180    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9181    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9182    ;;
9183
9184  interix*)
9185    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9186    lt_cv_sys_max_cmd_len=196608
9187    ;;
9188
9189  os2*)
9190    # The test takes a long time on OS/2.
9191    lt_cv_sys_max_cmd_len=8192
9192    ;;
9193
9194  osf*)
9195    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9196    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9197    # nice to cause kernel panics so lets avoid the loop below.
9198    # First set a reasonable default.
9199    lt_cv_sys_max_cmd_len=16384
9200    #
9201    if test -x /sbin/sysconfig; then
9202      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9203        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9204      esac
9205    fi
9206    ;;
9207  sco3.2v5*)
9208    lt_cv_sys_max_cmd_len=102400
9209    ;;
9210  sysv5* | sco5v6* | sysv4.2uw2*)
9211    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9212    if test -n "$kargmax"; then
9213      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
9214    else
9215      lt_cv_sys_max_cmd_len=32768
9216    fi
9217    ;;
9218  *)
9219    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9220    if test -n "$lt_cv_sys_max_cmd_len" && \
9221       test undefined != "$lt_cv_sys_max_cmd_len"; then
9222      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9223      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9224    else
9225      # Make teststring a little bigger before we do anything with it.
9226      # a 1K string should be a reasonable start.
9227      for i in 1 2 3 4 5 6 7 8; do
9228        teststring=$teststring$teststring
9229      done
9230      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9231      # If test is not a shell built-in, we'll probably end up computing a
9232      # maximum length that is only half of the actual maximum length, but
9233      # we can't tell.
9234      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9235	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9236	      test 17 != "$i" # 1/2 MB should be enough
9237      do
9238        i=`expr $i + 1`
9239        teststring=$teststring$teststring
9240      done
9241      # Only check the string length outside the loop.
9242      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9243      teststring=
9244      # Add a significant safety factor because C++ compilers can tack on
9245      # massive amounts of additional arguments before passing them to the
9246      # linker.  It appears as though 1/2 is a usable value.
9247      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9248    fi
9249    ;;
9250  esac
9251
9252fi
9253
9254if test -n "$lt_cv_sys_max_cmd_len"; then
9255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9256printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9257else
9258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9259printf "%s\n" "none" >&6; }
9260fi
9261max_cmd_len=$lt_cv_sys_max_cmd_len
9262
9263
9264
9265
9266
9267
9268: ${CP="cp -f"}
9269: ${MV="mv -f"}
9270: ${RM="rm -f"}
9271
9272if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9273  lt_unset=unset
9274else
9275  lt_unset=false
9276fi
9277
9278
9279
9280
9281
9282# test EBCDIC or ASCII
9283case `echo X|tr X '\101'` in
9284 A) # ASCII based system
9285    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9286  lt_SP2NL='tr \040 \012'
9287  lt_NL2SP='tr \015\012 \040\040'
9288  ;;
9289 *) # EBCDIC based system
9290  lt_SP2NL='tr \100 \n'
9291  lt_NL2SP='tr \r\n \100\100'
9292  ;;
9293esac
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9304printf %s "checking how to convert $build file names to $host format... " >&6; }
9305if test ${lt_cv_to_host_file_cmd+y}
9306then :
9307  printf %s "(cached) " >&6
9308else $as_nop
9309  case $host in
9310  *-*-mingw* )
9311    case $build in
9312      *-*-mingw* ) # actually msys
9313        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9314        ;;
9315      *-*-cygwin* )
9316        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9317        ;;
9318      * ) # otherwise, assume *nix
9319        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9320        ;;
9321    esac
9322    ;;
9323  *-*-cygwin* )
9324    case $build in
9325      *-*-mingw* ) # actually msys
9326        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9327        ;;
9328      *-*-cygwin* )
9329        lt_cv_to_host_file_cmd=func_convert_file_noop
9330        ;;
9331      * ) # otherwise, assume *nix
9332        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9333        ;;
9334    esac
9335    ;;
9336  * ) # unhandled hosts (and "normal" native builds)
9337    lt_cv_to_host_file_cmd=func_convert_file_noop
9338    ;;
9339esac
9340
9341fi
9342
9343to_host_file_cmd=$lt_cv_to_host_file_cmd
9344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9345printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9346
9347
9348
9349
9350
9351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9352printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9353if test ${lt_cv_to_tool_file_cmd+y}
9354then :
9355  printf %s "(cached) " >&6
9356else $as_nop
9357  #assume ordinary cross tools, or native build.
9358lt_cv_to_tool_file_cmd=func_convert_file_noop
9359case $host in
9360  *-*-mingw* )
9361    case $build in
9362      *-*-mingw* ) # actually msys
9363        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9364        ;;
9365    esac
9366    ;;
9367esac
9368
9369fi
9370
9371to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9373printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9374
9375
9376
9377
9378
9379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9380printf %s "checking for $LD option to reload object files... " >&6; }
9381if test ${lt_cv_ld_reload_flag+y}
9382then :
9383  printf %s "(cached) " >&6
9384else $as_nop
9385  lt_cv_ld_reload_flag='-r'
9386fi
9387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9388printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9389reload_flag=$lt_cv_ld_reload_flag
9390case $reload_flag in
9391"" | " "*) ;;
9392*) reload_flag=" $reload_flag" ;;
9393esac
9394reload_cmds='$LD$reload_flag -o $output$reload_objs'
9395case $host_os in
9396  cygwin* | mingw* | pw32* | cegcc*)
9397    if test yes != "$GCC"; then
9398      reload_cmds=false
9399    fi
9400    ;;
9401  darwin*)
9402    if test yes = "$GCC"; then
9403      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9404    else
9405      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9406    fi
9407    ;;
9408esac
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418if test -n "$ac_tool_prefix"; then
9419  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9420set dummy ${ac_tool_prefix}file; ac_word=$2
9421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422printf %s "checking for $ac_word... " >&6; }
9423if test ${ac_cv_prog_FILECMD+y}
9424then :
9425  printf %s "(cached) " >&6
9426else $as_nop
9427  if test -n "$FILECMD"; then
9428  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433  IFS=$as_save_IFS
9434  case $as_dir in #(((
9435    '') as_dir=./ ;;
9436    */) ;;
9437    *) as_dir=$as_dir/ ;;
9438  esac
9439    for ac_exec_ext in '' $ac_executable_extensions; do
9440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9441    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9443    break 2
9444  fi
9445done
9446  done
9447IFS=$as_save_IFS
9448
9449fi
9450fi
9451FILECMD=$ac_cv_prog_FILECMD
9452if test -n "$FILECMD"; then
9453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9454printf "%s\n" "$FILECMD" >&6; }
9455else
9456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457printf "%s\n" "no" >&6; }
9458fi
9459
9460
9461fi
9462if test -z "$ac_cv_prog_FILECMD"; then
9463  ac_ct_FILECMD=$FILECMD
9464  # Extract the first word of "file", so it can be a program name with args.
9465set dummy file; ac_word=$2
9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467printf %s "checking for $ac_word... " >&6; }
9468if test ${ac_cv_prog_ac_ct_FILECMD+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  if test -n "$ac_ct_FILECMD"; then
9473  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478  IFS=$as_save_IFS
9479  case $as_dir in #(((
9480    '') as_dir=./ ;;
9481    */) ;;
9482    *) as_dir=$as_dir/ ;;
9483  esac
9484    for ac_exec_ext in '' $ac_executable_extensions; do
9485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9486    ac_cv_prog_ac_ct_FILECMD="file"
9487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9488    break 2
9489  fi
9490done
9491  done
9492IFS=$as_save_IFS
9493
9494fi
9495fi
9496ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9497if test -n "$ac_ct_FILECMD"; then
9498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9499printf "%s\n" "$ac_ct_FILECMD" >&6; }
9500else
9501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502printf "%s\n" "no" >&6; }
9503fi
9504
9505  if test "x$ac_ct_FILECMD" = x; then
9506    FILECMD=":"
9507  else
9508    case $cross_compiling:$ac_tool_warned in
9509yes:)
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9512ac_tool_warned=yes ;;
9513esac
9514    FILECMD=$ac_ct_FILECMD
9515  fi
9516else
9517  FILECMD="$ac_cv_prog_FILECMD"
9518fi
9519
9520
9521
9522
9523
9524
9525
9526if test -n "$ac_tool_prefix"; then
9527  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9528set dummy ${ac_tool_prefix}objdump; ac_word=$2
9529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530printf %s "checking for $ac_word... " >&6; }
9531if test ${ac_cv_prog_OBJDUMP+y}
9532then :
9533  printf %s "(cached) " >&6
9534else $as_nop
9535  if test -n "$OBJDUMP"; then
9536  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9537else
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541  IFS=$as_save_IFS
9542  case $as_dir in #(((
9543    '') as_dir=./ ;;
9544    */) ;;
9545    *) as_dir=$as_dir/ ;;
9546  esac
9547    for ac_exec_ext in '' $ac_executable_extensions; do
9548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9549    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9551    break 2
9552  fi
9553done
9554  done
9555IFS=$as_save_IFS
9556
9557fi
9558fi
9559OBJDUMP=$ac_cv_prog_OBJDUMP
9560if test -n "$OBJDUMP"; then
9561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562printf "%s\n" "$OBJDUMP" >&6; }
9563else
9564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565printf "%s\n" "no" >&6; }
9566fi
9567
9568
9569fi
9570if test -z "$ac_cv_prog_OBJDUMP"; then
9571  ac_ct_OBJDUMP=$OBJDUMP
9572  # Extract the first word of "objdump", so it can be a program name with args.
9573set dummy objdump; ac_word=$2
9574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575printf %s "checking for $ac_word... " >&6; }
9576if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9577then :
9578  printf %s "(cached) " >&6
9579else $as_nop
9580  if test -n "$ac_ct_OBJDUMP"; then
9581  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9582else
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586  IFS=$as_save_IFS
9587  case $as_dir in #(((
9588    '') as_dir=./ ;;
9589    */) ;;
9590    *) as_dir=$as_dir/ ;;
9591  esac
9592    for ac_exec_ext in '' $ac_executable_extensions; do
9593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9594    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9596    break 2
9597  fi
9598done
9599  done
9600IFS=$as_save_IFS
9601
9602fi
9603fi
9604ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9605if test -n "$ac_ct_OBJDUMP"; then
9606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9607printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9608else
9609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610printf "%s\n" "no" >&6; }
9611fi
9612
9613  if test "x$ac_ct_OBJDUMP" = x; then
9614    OBJDUMP="false"
9615  else
9616    case $cross_compiling:$ac_tool_warned in
9617yes:)
9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9620ac_tool_warned=yes ;;
9621esac
9622    OBJDUMP=$ac_ct_OBJDUMP
9623  fi
9624else
9625  OBJDUMP="$ac_cv_prog_OBJDUMP"
9626fi
9627
9628test -z "$OBJDUMP" && OBJDUMP=objdump
9629
9630
9631
9632
9633
9634
9635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9636printf %s "checking how to recognize dependent libraries... " >&6; }
9637if test ${lt_cv_deplibs_check_method+y}
9638then :
9639  printf %s "(cached) " >&6
9640else $as_nop
9641  lt_cv_file_magic_cmd='$MAGIC_CMD'
9642lt_cv_file_magic_test_file=
9643lt_cv_deplibs_check_method='unknown'
9644# Need to set the preceding variable on all platforms that support
9645# interlibrary dependencies.
9646# 'none' -- dependencies not supported.
9647# 'unknown' -- same as none, but documents that we really don't know.
9648# 'pass_all' -- all dependencies passed with no checks.
9649# 'test_compile' -- check by making test program.
9650# 'file_magic [[regex]]' -- check by looking for files in library path
9651# that responds to the $file_magic_cmd with a given extended regex.
9652# If you have 'file' or equivalent on your system and you're not sure
9653# whether 'pass_all' will *always* work, you probably want this one.
9654
9655case $host_os in
9656aix[4-9]*)
9657  lt_cv_deplibs_check_method=pass_all
9658  ;;
9659
9660beos*)
9661  lt_cv_deplibs_check_method=pass_all
9662  ;;
9663
9664bsdi[45]*)
9665  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9666  lt_cv_file_magic_cmd='$FILECMD -L'
9667  lt_cv_file_magic_test_file=/shlib/libc.so
9668  ;;
9669
9670cygwin*)
9671  # func_win32_libid is a shell function defined in ltmain.sh
9672  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9673  lt_cv_file_magic_cmd='func_win32_libid'
9674  ;;
9675
9676mingw* | pw32*)
9677  # Base MSYS/MinGW do not provide the 'file' command needed by
9678  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9679  # unless we find 'file', for example because we are cross-compiling.
9680  if ( file / ) >/dev/null 2>&1; then
9681    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9682    lt_cv_file_magic_cmd='func_win32_libid'
9683  else
9684    # Keep this pattern in sync with the one in func_win32_libid.
9685    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9686    lt_cv_file_magic_cmd='$OBJDUMP -f'
9687  fi
9688  ;;
9689
9690cegcc*)
9691  # use the weaker test based on 'objdump'. See mingw*.
9692  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9693  lt_cv_file_magic_cmd='$OBJDUMP -f'
9694  ;;
9695
9696darwin* | rhapsody*)
9697  lt_cv_deplibs_check_method=pass_all
9698  ;;
9699
9700freebsd* | dragonfly* | midnightbsd*)
9701  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9702    case $host_cpu in
9703    i*86 )
9704      # Not sure whether the presence of OpenBSD here was a mistake.
9705      # Let's accept both of them until this is cleared up.
9706      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9707      lt_cv_file_magic_cmd=$FILECMD
9708      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9709      ;;
9710    esac
9711  else
9712    lt_cv_deplibs_check_method=pass_all
9713  fi
9714  ;;
9715
9716haiku*)
9717  lt_cv_deplibs_check_method=pass_all
9718  ;;
9719
9720hpux10.20* | hpux11*)
9721  lt_cv_file_magic_cmd=$FILECMD
9722  case $host_cpu in
9723  ia64*)
9724    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9725    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9726    ;;
9727  hppa*64*)
9728    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]'
9729    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9730    ;;
9731  *)
9732    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9733    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9734    ;;
9735  esac
9736  ;;
9737
9738interix[3-9]*)
9739  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9740  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9741  ;;
9742
9743irix5* | irix6* | nonstopux*)
9744  case $LD in
9745  *-32|*"-32 ") libmagic=32-bit;;
9746  *-n32|*"-n32 ") libmagic=N32;;
9747  *-64|*"-64 ") libmagic=64-bit;;
9748  *) libmagic=never-match;;
9749  esac
9750  lt_cv_deplibs_check_method=pass_all
9751  ;;
9752
9753# This must be glibc/ELF.
9754linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9755  lt_cv_deplibs_check_method=pass_all
9756  ;;
9757
9758netbsd* | netbsdelf*-gnu)
9759  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9760    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9761  else
9762    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9763  fi
9764  ;;
9765
9766newos6*)
9767  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9768  lt_cv_file_magic_cmd=$FILECMD
9769  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9770  ;;
9771
9772*nto* | *qnx*)
9773  lt_cv_deplibs_check_method=pass_all
9774  ;;
9775
9776openbsd* | bitrig*)
9777  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9778    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9779  else
9780    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9781  fi
9782  ;;
9783
9784osf3* | osf4* | osf5*)
9785  lt_cv_deplibs_check_method=pass_all
9786  ;;
9787
9788rdos*)
9789  lt_cv_deplibs_check_method=pass_all
9790  ;;
9791
9792solaris*)
9793  lt_cv_deplibs_check_method=pass_all
9794  ;;
9795
9796sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9797  lt_cv_deplibs_check_method=pass_all
9798  ;;
9799
9800sysv4 | sysv4.3*)
9801  case $host_vendor in
9802  motorola)
9803    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]'
9804    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9805    ;;
9806  ncr)
9807    lt_cv_deplibs_check_method=pass_all
9808    ;;
9809  sequent)
9810    lt_cv_file_magic_cmd='/bin/file'
9811    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9812    ;;
9813  sni)
9814    lt_cv_file_magic_cmd='/bin/file'
9815    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9816    lt_cv_file_magic_test_file=/lib/libc.so
9817    ;;
9818  siemens)
9819    lt_cv_deplibs_check_method=pass_all
9820    ;;
9821  pc)
9822    lt_cv_deplibs_check_method=pass_all
9823    ;;
9824  esac
9825  ;;
9826
9827tpf*)
9828  lt_cv_deplibs_check_method=pass_all
9829  ;;
9830os2*)
9831  lt_cv_deplibs_check_method=pass_all
9832  ;;
9833esac
9834
9835fi
9836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9837printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9838
9839file_magic_glob=
9840want_nocaseglob=no
9841if test "$build" = "$host"; then
9842  case $host_os in
9843  mingw* | pw32*)
9844    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9845      want_nocaseglob=yes
9846    else
9847      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9848    fi
9849    ;;
9850  esac
9851fi
9852
9853file_magic_cmd=$lt_cv_file_magic_cmd
9854deplibs_check_method=$lt_cv_deplibs_check_method
9855test -z "$deplibs_check_method" && deplibs_check_method=unknown
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878if test -n "$ac_tool_prefix"; then
9879  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9880set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882printf %s "checking for $ac_word... " >&6; }
9883if test ${ac_cv_prog_DLLTOOL+y}
9884then :
9885  printf %s "(cached) " >&6
9886else $as_nop
9887  if test -n "$DLLTOOL"; then
9888  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9889else
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
9892do
9893  IFS=$as_save_IFS
9894  case $as_dir in #(((
9895    '') as_dir=./ ;;
9896    */) ;;
9897    *) as_dir=$as_dir/ ;;
9898  esac
9899    for ac_exec_ext in '' $ac_executable_extensions; do
9900  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9901    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9902    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9903    break 2
9904  fi
9905done
9906  done
9907IFS=$as_save_IFS
9908
9909fi
9910fi
9911DLLTOOL=$ac_cv_prog_DLLTOOL
9912if test -n "$DLLTOOL"; then
9913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9914printf "%s\n" "$DLLTOOL" >&6; }
9915else
9916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917printf "%s\n" "no" >&6; }
9918fi
9919
9920
9921fi
9922if test -z "$ac_cv_prog_DLLTOOL"; then
9923  ac_ct_DLLTOOL=$DLLTOOL
9924  # Extract the first word of "dlltool", so it can be a program name with args.
9925set dummy dlltool; ac_word=$2
9926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927printf %s "checking for $ac_word... " >&6; }
9928if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9929then :
9930  printf %s "(cached) " >&6
9931else $as_nop
9932  if test -n "$ac_ct_DLLTOOL"; then
9933  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938  IFS=$as_save_IFS
9939  case $as_dir in #(((
9940    '') as_dir=./ ;;
9941    */) ;;
9942    *) as_dir=$as_dir/ ;;
9943  esac
9944    for ac_exec_ext in '' $ac_executable_extensions; do
9945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9946    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9948    break 2
9949  fi
9950done
9951  done
9952IFS=$as_save_IFS
9953
9954fi
9955fi
9956ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9957if test -n "$ac_ct_DLLTOOL"; then
9958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9959printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9960else
9961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962printf "%s\n" "no" >&6; }
9963fi
9964
9965  if test "x$ac_ct_DLLTOOL" = x; then
9966    DLLTOOL="false"
9967  else
9968    case $cross_compiling:$ac_tool_warned in
9969yes:)
9970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9972ac_tool_warned=yes ;;
9973esac
9974    DLLTOOL=$ac_ct_DLLTOOL
9975  fi
9976else
9977  DLLTOOL="$ac_cv_prog_DLLTOOL"
9978fi
9979
9980test -z "$DLLTOOL" && DLLTOOL=dlltool
9981
9982
9983
9984
9985
9986
9987
9988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9989printf %s "checking how to associate runtime and link libraries... " >&6; }
9990if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9991then :
9992  printf %s "(cached) " >&6
9993else $as_nop
9994  lt_cv_sharedlib_from_linklib_cmd='unknown'
9995
9996case $host_os in
9997cygwin* | mingw* | pw32* | cegcc*)
9998  # two different shell functions defined in ltmain.sh;
9999  # decide which one to use based on capabilities of $DLLTOOL
10000  case `$DLLTOOL --help 2>&1` in
10001  *--identify-strict*)
10002    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10003    ;;
10004  *)
10005    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10006    ;;
10007  esac
10008  ;;
10009*)
10010  # fallback: assume linklib IS sharedlib
10011  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10012  ;;
10013esac
10014
10015fi
10016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10017printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10018sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10019test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10020
10021
10022
10023
10024
10025
10026
10027if test -n "$ac_tool_prefix"; then
10028  for ac_prog in ar
10029  do
10030    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033printf %s "checking for $ac_word... " >&6; }
10034if test ${ac_cv_prog_AR+y}
10035then :
10036  printf %s "(cached) " >&6
10037else $as_nop
10038  if test -n "$AR"; then
10039  ac_cv_prog_AR="$AR" # Let the user override the test.
10040else
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044  IFS=$as_save_IFS
10045  case $as_dir in #(((
10046    '') as_dir=./ ;;
10047    */) ;;
10048    *) as_dir=$as_dir/ ;;
10049  esac
10050    for ac_exec_ext in '' $ac_executable_extensions; do
10051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10052    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10054    break 2
10055  fi
10056done
10057  done
10058IFS=$as_save_IFS
10059
10060fi
10061fi
10062AR=$ac_cv_prog_AR
10063if test -n "$AR"; then
10064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10065printf "%s\n" "$AR" >&6; }
10066else
10067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068printf "%s\n" "no" >&6; }
10069fi
10070
10071
10072    test -n "$AR" && break
10073  done
10074fi
10075if test -z "$AR"; then
10076  ac_ct_AR=$AR
10077  for ac_prog in ar
10078do
10079  # Extract the first word of "$ac_prog", so it can be a program name with args.
10080set dummy $ac_prog; ac_word=$2
10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082printf %s "checking for $ac_word... " >&6; }
10083if test ${ac_cv_prog_ac_ct_AR+y}
10084then :
10085  printf %s "(cached) " >&6
10086else $as_nop
10087  if test -n "$ac_ct_AR"; then
10088  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093  IFS=$as_save_IFS
10094  case $as_dir in #(((
10095    '') as_dir=./ ;;
10096    */) ;;
10097    *) as_dir=$as_dir/ ;;
10098  esac
10099    for ac_exec_ext in '' $ac_executable_extensions; do
10100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101    ac_cv_prog_ac_ct_AR="$ac_prog"
10102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10103    break 2
10104  fi
10105done
10106  done
10107IFS=$as_save_IFS
10108
10109fi
10110fi
10111ac_ct_AR=$ac_cv_prog_ac_ct_AR
10112if test -n "$ac_ct_AR"; then
10113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10114printf "%s\n" "$ac_ct_AR" >&6; }
10115else
10116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117printf "%s\n" "no" >&6; }
10118fi
10119
10120
10121  test -n "$ac_ct_AR" && break
10122done
10123
10124  if test "x$ac_ct_AR" = x; then
10125    AR="false"
10126  else
10127    case $cross_compiling:$ac_tool_warned in
10128yes:)
10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131ac_tool_warned=yes ;;
10132esac
10133    AR=$ac_ct_AR
10134  fi
10135fi
10136
10137: ${AR=ar}
10138
10139
10140
10141
10142
10143
10144# Use ARFLAGS variable as AR's operation code to sync the variable naming with
10145# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10146# higher priority because thats what people were doing historically (setting
10147# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10148# variable obsoleted/removed.
10149
10150test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10151lt_ar_flags=$AR_FLAGS
10152
10153
10154
10155
10156
10157
10158# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10159# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10160
10161
10162
10163
10164
10165
10166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10167printf %s "checking for archiver @FILE support... " >&6; }
10168if test ${lt_cv_ar_at_file+y}
10169then :
10170  printf %s "(cached) " >&6
10171else $as_nop
10172  lt_cv_ar_at_file=no
10173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175
10176int main (void)
10177{
10178
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_compile "$LINENO"
10184then :
10185  echo conftest.$ac_objext > conftest.lst
10186      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10187      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10188  (eval $lt_ar_try) 2>&5
10189  ac_status=$?
10190  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191  test $ac_status = 0; }
10192      if test 0 -eq "$ac_status"; then
10193	# Ensure the archiver fails upon bogus file names.
10194	rm -f conftest.$ac_objext libconftest.a
10195	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10196  (eval $lt_ar_try) 2>&5
10197  ac_status=$?
10198  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199  test $ac_status = 0; }
10200	if test 0 -ne "$ac_status"; then
10201          lt_cv_ar_at_file=@
10202        fi
10203      fi
10204      rm -f conftest.* libconftest.a
10205
10206fi
10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208
10209fi
10210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10211printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10212
10213if test no = "$lt_cv_ar_at_file"; then
10214  archiver_list_spec=
10215else
10216  archiver_list_spec=$lt_cv_ar_at_file
10217fi
10218
10219
10220
10221
10222
10223
10224
10225if test -n "$ac_tool_prefix"; then
10226  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10227set dummy ${ac_tool_prefix}strip; ac_word=$2
10228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229printf %s "checking for $ac_word... " >&6; }
10230if test ${ac_cv_prog_STRIP+y}
10231then :
10232  printf %s "(cached) " >&6
10233else $as_nop
10234  if test -n "$STRIP"; then
10235  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10236else
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240  IFS=$as_save_IFS
10241  case $as_dir in #(((
10242    '') as_dir=./ ;;
10243    */) ;;
10244    *) as_dir=$as_dir/ ;;
10245  esac
10246    for ac_exec_ext in '' $ac_executable_extensions; do
10247  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10248    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10249    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10250    break 2
10251  fi
10252done
10253  done
10254IFS=$as_save_IFS
10255
10256fi
10257fi
10258STRIP=$ac_cv_prog_STRIP
10259if test -n "$STRIP"; then
10260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10261printf "%s\n" "$STRIP" >&6; }
10262else
10263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264printf "%s\n" "no" >&6; }
10265fi
10266
10267
10268fi
10269if test -z "$ac_cv_prog_STRIP"; then
10270  ac_ct_STRIP=$STRIP
10271  # Extract the first word of "strip", so it can be a program name with args.
10272set dummy strip; ac_word=$2
10273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274printf %s "checking for $ac_word... " >&6; }
10275if test ${ac_cv_prog_ac_ct_STRIP+y}
10276then :
10277  printf %s "(cached) " >&6
10278else $as_nop
10279  if test -n "$ac_ct_STRIP"; then
10280  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10281else
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285  IFS=$as_save_IFS
10286  case $as_dir in #(((
10287    '') as_dir=./ ;;
10288    */) ;;
10289    *) as_dir=$as_dir/ ;;
10290  esac
10291    for ac_exec_ext in '' $ac_executable_extensions; do
10292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10293    ac_cv_prog_ac_ct_STRIP="strip"
10294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10295    break 2
10296  fi
10297done
10298  done
10299IFS=$as_save_IFS
10300
10301fi
10302fi
10303ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10304if test -n "$ac_ct_STRIP"; then
10305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10306printf "%s\n" "$ac_ct_STRIP" >&6; }
10307else
10308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309printf "%s\n" "no" >&6; }
10310fi
10311
10312  if test "x$ac_ct_STRIP" = x; then
10313    STRIP=":"
10314  else
10315    case $cross_compiling:$ac_tool_warned in
10316yes:)
10317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319ac_tool_warned=yes ;;
10320esac
10321    STRIP=$ac_ct_STRIP
10322  fi
10323else
10324  STRIP="$ac_cv_prog_STRIP"
10325fi
10326
10327test -z "$STRIP" && STRIP=:
10328
10329
10330
10331
10332
10333
10334if test -n "$ac_tool_prefix"; then
10335  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10336set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338printf %s "checking for $ac_word... " >&6; }
10339if test ${ac_cv_prog_RANLIB+y}
10340then :
10341  printf %s "(cached) " >&6
10342else $as_nop
10343  if test -n "$RANLIB"; then
10344  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10345else
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349  IFS=$as_save_IFS
10350  case $as_dir in #(((
10351    '') as_dir=./ ;;
10352    */) ;;
10353    *) as_dir=$as_dir/ ;;
10354  esac
10355    for ac_exec_ext in '' $ac_executable_extensions; do
10356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10357    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10359    break 2
10360  fi
10361done
10362  done
10363IFS=$as_save_IFS
10364
10365fi
10366fi
10367RANLIB=$ac_cv_prog_RANLIB
10368if test -n "$RANLIB"; then
10369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10370printf "%s\n" "$RANLIB" >&6; }
10371else
10372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373printf "%s\n" "no" >&6; }
10374fi
10375
10376
10377fi
10378if test -z "$ac_cv_prog_RANLIB"; then
10379  ac_ct_RANLIB=$RANLIB
10380  # Extract the first word of "ranlib", so it can be a program name with args.
10381set dummy ranlib; ac_word=$2
10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383printf %s "checking for $ac_word... " >&6; }
10384if test ${ac_cv_prog_ac_ct_RANLIB+y}
10385then :
10386  printf %s "(cached) " >&6
10387else $as_nop
10388  if test -n "$ac_ct_RANLIB"; then
10389  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394  IFS=$as_save_IFS
10395  case $as_dir in #(((
10396    '') as_dir=./ ;;
10397    */) ;;
10398    *) as_dir=$as_dir/ ;;
10399  esac
10400    for ac_exec_ext in '' $ac_executable_extensions; do
10401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10402    ac_cv_prog_ac_ct_RANLIB="ranlib"
10403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10404    break 2
10405  fi
10406done
10407  done
10408IFS=$as_save_IFS
10409
10410fi
10411fi
10412ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10413if test -n "$ac_ct_RANLIB"; then
10414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10415printf "%s\n" "$ac_ct_RANLIB" >&6; }
10416else
10417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418printf "%s\n" "no" >&6; }
10419fi
10420
10421  if test "x$ac_ct_RANLIB" = x; then
10422    RANLIB=":"
10423  else
10424    case $cross_compiling:$ac_tool_warned in
10425yes:)
10426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428ac_tool_warned=yes ;;
10429esac
10430    RANLIB=$ac_ct_RANLIB
10431  fi
10432else
10433  RANLIB="$ac_cv_prog_RANLIB"
10434fi
10435
10436test -z "$RANLIB" && RANLIB=:
10437
10438
10439
10440
10441
10442
10443# Determine commands to create old-style static archives.
10444old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10445old_postinstall_cmds='chmod 644 $oldlib'
10446old_postuninstall_cmds=
10447
10448if test -n "$RANLIB"; then
10449  case $host_os in
10450  bitrig* | openbsd*)
10451    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10452    ;;
10453  *)
10454    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10455    ;;
10456  esac
10457  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10458fi
10459
10460case $host_os in
10461  darwin*)
10462    lock_old_archive_extraction=yes ;;
10463  *)
10464    lock_old_archive_extraction=no ;;
10465esac
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505# If no C compiler was specified, use CC.
10506LTCC=${LTCC-"$CC"}
10507
10508# If no C compiler flags were specified, use CFLAGS.
10509LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10510
10511# Allow CC to be a program name with arguments.
10512compiler=$CC
10513
10514
10515# Check for command to grab the raw symbol name followed by C symbol from nm.
10516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10517printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10518if test ${lt_cv_sys_global_symbol_pipe+y}
10519then :
10520  printf %s "(cached) " >&6
10521else $as_nop
10522
10523# These are sane defaults that work on at least a few old systems.
10524# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10525
10526# Character class describing NM global symbol codes.
10527symcode='[BCDEGRST]'
10528
10529# Regexp to match symbols that can be accessed directly from C.
10530sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10531
10532# Define system-specific variables.
10533case $host_os in
10534aix*)
10535  symcode='[BCDT]'
10536  ;;
10537cygwin* | mingw* | pw32* | cegcc*)
10538  symcode='[ABCDGISTW]'
10539  ;;
10540hpux*)
10541  if test ia64 = "$host_cpu"; then
10542    symcode='[ABCDEGRST]'
10543  fi
10544  ;;
10545irix* | nonstopux*)
10546  symcode='[BCDEGRST]'
10547  ;;
10548osf*)
10549  symcode='[BCDEGQRST]'
10550  ;;
10551solaris*)
10552  symcode='[BDRT]'
10553  ;;
10554sco3.2v5*)
10555  symcode='[DT]'
10556  ;;
10557sysv4.2uw2*)
10558  symcode='[DT]'
10559  ;;
10560sysv5* | sco5v6* | unixware* | OpenUNIX*)
10561  symcode='[ABDT]'
10562  ;;
10563sysv4)
10564  symcode='[DFNSTU]'
10565  ;;
10566esac
10567
10568# If we're using GNU nm, then use its standard symbol codes.
10569case `$NM -V 2>&1` in
10570*GNU* | *'with BFD'*)
10571  symcode='[ABCDGIRSTW]' ;;
10572esac
10573
10574if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10575  # Gets list of data symbols to import.
10576  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10577  # Adjust the below global symbol transforms to fixup imported variables.
10578  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10579  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10580  lt_c_name_lib_hook="\
10581  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10582  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10583else
10584  # Disable hooks by default.
10585  lt_cv_sys_global_symbol_to_import=
10586  lt_cdecl_hook=
10587  lt_c_name_hook=
10588  lt_c_name_lib_hook=
10589fi
10590
10591# Transform an extracted symbol line into a proper C declaration.
10592# Some systems (esp. on ia64) link data and code symbols differently,
10593# so use this general approach.
10594lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10595$lt_cdecl_hook\
10596" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10597" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10598
10599# Transform an extracted symbol line into symbol name and symbol address
10600lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10601$lt_c_name_hook\
10602" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10603" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10604
10605# Transform an extracted symbol line into symbol name with lib prefix and
10606# symbol address.
10607lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10608$lt_c_name_lib_hook\
10609" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10610" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10611" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10612
10613# Handle CRLF in mingw tool chain
10614opt_cr=
10615case $build_os in
10616mingw*)
10617  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10618  ;;
10619esac
10620
10621# Try without a prefix underscore, then with it.
10622for ac_symprfx in "" "_"; do
10623
10624  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10625  symxfrm="\\1 $ac_symprfx\\2 \\2"
10626
10627  # Write the raw and C identifiers.
10628  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10629    # Fake it for dumpbin and say T for any non-static function,
10630    # D for any global variable and I for any imported variable.
10631    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10632    # which start with @ or ?.
10633    lt_cv_sys_global_symbol_pipe="$AWK '"\
10634"     {last_section=section; section=\$ 3};"\
10635"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10636"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10637"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10638"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10639"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10640"     \$ 0!~/External *\|/{next};"\
10641"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10642"     {if(hide[section]) next};"\
10643"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10644"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10645"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10646"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10647"     ' prfx=^$ac_symprfx"
10648  else
10649    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10650  fi
10651  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10652
10653  # Check to see that the pipe works correctly.
10654  pipe_works=no
10655
10656  rm -f conftest*
10657  cat > conftest.$ac_ext <<_LT_EOF
10658#ifdef __cplusplus
10659extern "C" {
10660#endif
10661char nm_test_var;
10662void nm_test_func(void);
10663void nm_test_func(void){}
10664#ifdef __cplusplus
10665}
10666#endif
10667int main(){nm_test_var='a';nm_test_func();return(0);}
10668_LT_EOF
10669
10670  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10671  (eval $ac_compile) 2>&5
10672  ac_status=$?
10673  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674  test $ac_status = 0; }; then
10675    # Now try to grab the symbols.
10676    nlist=conftest.nm
10677    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10678    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10679      # Try sorting and uniquifying the output.
10680      if sort "$nlist" | uniq > "$nlist"T; then
10681	mv -f "$nlist"T "$nlist"
10682      else
10683	rm -f "$nlist"T
10684      fi
10685
10686      # Make sure that we snagged all the symbols we need.
10687      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10688	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10689	  cat <<_LT_EOF > conftest.$ac_ext
10690/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10691#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10692/* DATA imports from DLLs on WIN32 can't be const, because runtime
10693   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10694# define LT_DLSYM_CONST
10695#elif defined __osf__
10696/* This system does not cope well with relocations in const data.  */
10697# define LT_DLSYM_CONST
10698#else
10699# define LT_DLSYM_CONST const
10700#endif
10701
10702#ifdef __cplusplus
10703extern "C" {
10704#endif
10705
10706_LT_EOF
10707	  # Now generate the symbol file.
10708	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10709
10710	  cat <<_LT_EOF >> conftest.$ac_ext
10711
10712/* The mapping between symbol names and symbols.  */
10713LT_DLSYM_CONST struct {
10714  const char *name;
10715  void       *address;
10716}
10717lt__PROGRAM__LTX_preloaded_symbols[] =
10718{
10719  { "@PROGRAM@", (void *) 0 },
10720_LT_EOF
10721	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10722	  cat <<\_LT_EOF >> conftest.$ac_ext
10723  {0, (void *) 0}
10724};
10725
10726/* This works around a problem in FreeBSD linker */
10727#ifdef FREEBSD_WORKAROUND
10728static const void *lt_preloaded_setup() {
10729  return lt__PROGRAM__LTX_preloaded_symbols;
10730}
10731#endif
10732
10733#ifdef __cplusplus
10734}
10735#endif
10736_LT_EOF
10737	  # Now try linking the two files.
10738	  mv conftest.$ac_objext conftstm.$ac_objext
10739	  lt_globsym_save_LIBS=$LIBS
10740	  lt_globsym_save_CFLAGS=$CFLAGS
10741	  LIBS=conftstm.$ac_objext
10742	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10743	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10744  (eval $ac_link) 2>&5
10745  ac_status=$?
10746  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10748	    pipe_works=yes
10749	  fi
10750	  LIBS=$lt_globsym_save_LIBS
10751	  CFLAGS=$lt_globsym_save_CFLAGS
10752	else
10753	  echo "cannot find nm_test_func in $nlist" >&5
10754	fi
10755      else
10756	echo "cannot find nm_test_var in $nlist" >&5
10757      fi
10758    else
10759      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10760    fi
10761  else
10762    echo "$progname: failed program was:" >&5
10763    cat conftest.$ac_ext >&5
10764  fi
10765  rm -rf conftest* conftst*
10766
10767  # Do not use the global_symbol_pipe unless it works.
10768  if test yes = "$pipe_works"; then
10769    break
10770  else
10771    lt_cv_sys_global_symbol_pipe=
10772  fi
10773done
10774
10775fi
10776
10777if test -z "$lt_cv_sys_global_symbol_pipe"; then
10778  lt_cv_sys_global_symbol_to_cdecl=
10779fi
10780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10782printf "%s\n" "failed" >&6; }
10783else
10784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10785printf "%s\n" "ok" >&6; }
10786fi
10787
10788# Response file support.
10789if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10790  nm_file_list_spec='@'
10791elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10792  nm_file_list_spec='@'
10793fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10832printf %s "checking for sysroot... " >&6; }
10833
10834# Check whether --with-sysroot was given.
10835if test ${with_sysroot+y}
10836then :
10837  withval=$with_sysroot;
10838else $as_nop
10839  with_sysroot=no
10840fi
10841
10842
10843lt_sysroot=
10844case $with_sysroot in #(
10845 yes)
10846   if test yes = "$GCC"; then
10847     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10848   fi
10849   ;; #(
10850 /*)
10851   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10852   ;; #(
10853 no|'')
10854   ;; #(
10855 *)
10856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10857printf "%s\n" "$with_sysroot" >&6; }
10858   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10859   ;;
10860esac
10861
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10863printf "%s\n" "${lt_sysroot:-no}" >&6; }
10864
10865
10866
10867
10868
10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10870printf %s "checking for a working dd... " >&6; }
10871if test ${ac_cv_path_lt_DD+y}
10872then :
10873  printf %s "(cached) " >&6
10874else $as_nop
10875  printf 0123456789abcdef0123456789abcdef >conftest.i
10876cat conftest.i conftest.i >conftest2.i
10877: ${lt_DD:=$DD}
10878if test -z "$lt_DD"; then
10879  ac_path_lt_DD_found=false
10880  # Loop through the user's path and test for each of PROGNAME-LIST
10881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884  IFS=$as_save_IFS
10885  case $as_dir in #(((
10886    '') as_dir=./ ;;
10887    */) ;;
10888    *) as_dir=$as_dir/ ;;
10889  esac
10890    for ac_prog in dd
10891   do
10892    for ac_exec_ext in '' $ac_executable_extensions; do
10893      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10894      as_fn_executable_p "$ac_path_lt_DD" || continue
10895if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10896  cmp -s conftest.i conftest.out \
10897  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10898fi
10899      $ac_path_lt_DD_found && break 3
10900    done
10901  done
10902  done
10903IFS=$as_save_IFS
10904  if test -z "$ac_cv_path_lt_DD"; then
10905    :
10906  fi
10907else
10908  ac_cv_path_lt_DD=$lt_DD
10909fi
10910
10911rm -f conftest.i conftest2.i conftest.out
10912fi
10913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10914printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10915
10916
10917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10918printf %s "checking how to truncate binary pipes... " >&6; }
10919if test ${lt_cv_truncate_bin+y}
10920then :
10921  printf %s "(cached) " >&6
10922else $as_nop
10923  printf 0123456789abcdef0123456789abcdef >conftest.i
10924cat conftest.i conftest.i >conftest2.i
10925lt_cv_truncate_bin=
10926if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10927  cmp -s conftest.i conftest.out \
10928  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10929fi
10930rm -f conftest.i conftest2.i conftest.out
10931test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10932fi
10933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10934printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10935
10936
10937
10938
10939
10940
10941
10942# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10943func_cc_basename ()
10944{
10945    for cc_temp in $*""; do
10946      case $cc_temp in
10947        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10949        \-*) ;;
10950        *) break;;
10951      esac
10952    done
10953    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10954}
10955
10956# Check whether --enable-libtool-lock was given.
10957if test ${enable_libtool_lock+y}
10958then :
10959  enableval=$enable_libtool_lock;
10960fi
10961
10962test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10963
10964# Some flags need to be propagated to the compiler or linker for good
10965# libtool support.
10966case $host in
10967ia64-*-hpux*)
10968  # Find out what ABI is being produced by ac_compile, and set mode
10969  # options accordingly.
10970  echo 'int i;' > conftest.$ac_ext
10971  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10972  (eval $ac_compile) 2>&5
10973  ac_status=$?
10974  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975  test $ac_status = 0; }; then
10976    case `$FILECMD conftest.$ac_objext` in
10977      *ELF-32*)
10978	HPUX_IA64_MODE=32
10979	;;
10980      *ELF-64*)
10981	HPUX_IA64_MODE=64
10982	;;
10983    esac
10984  fi
10985  rm -rf conftest*
10986  ;;
10987*-*-irix6*)
10988  # Find out what ABI is being produced by ac_compile, and set linker
10989  # options accordingly.
10990  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10991  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10992  (eval $ac_compile) 2>&5
10993  ac_status=$?
10994  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995  test $ac_status = 0; }; then
10996    if test yes = "$lt_cv_prog_gnu_ld"; then
10997      case `$FILECMD conftest.$ac_objext` in
10998	*32-bit*)
10999	  LD="${LD-ld} -melf32bsmip"
11000	  ;;
11001	*N32*)
11002	  LD="${LD-ld} -melf32bmipn32"
11003	  ;;
11004	*64-bit*)
11005	  LD="${LD-ld} -melf64bmip"
11006	;;
11007      esac
11008    else
11009      case `$FILECMD conftest.$ac_objext` in
11010	*32-bit*)
11011	  LD="${LD-ld} -32"
11012	  ;;
11013	*N32*)
11014	  LD="${LD-ld} -n32"
11015	  ;;
11016	*64-bit*)
11017	  LD="${LD-ld} -64"
11018	  ;;
11019      esac
11020    fi
11021  fi
11022  rm -rf conftest*
11023  ;;
11024
11025mips64*-*linux*)
11026  # Find out what ABI is being produced by ac_compile, and set linker
11027  # options accordingly.
11028  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11029  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11030  (eval $ac_compile) 2>&5
11031  ac_status=$?
11032  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033  test $ac_status = 0; }; then
11034    emul=elf
11035    case `$FILECMD conftest.$ac_objext` in
11036      *32-bit*)
11037	emul="${emul}32"
11038	;;
11039      *64-bit*)
11040	emul="${emul}64"
11041	;;
11042    esac
11043    case `$FILECMD conftest.$ac_objext` in
11044      *MSB*)
11045	emul="${emul}btsmip"
11046	;;
11047      *LSB*)
11048	emul="${emul}ltsmip"
11049	;;
11050    esac
11051    case `$FILECMD conftest.$ac_objext` in
11052      *N32*)
11053	emul="${emul}n32"
11054	;;
11055    esac
11056    LD="${LD-ld} -m $emul"
11057  fi
11058  rm -rf conftest*
11059  ;;
11060
11061x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11062s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11063  # Find out what ABI is being produced by ac_compile, and set linker
11064  # options accordingly.  Note that the listed cases only cover the
11065  # situations where additional linker options are needed (such as when
11066  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11067  # vice versa); the common cases where no linker options are needed do
11068  # not appear in the list.
11069  echo 'int i;' > conftest.$ac_ext
11070  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11071  (eval $ac_compile) 2>&5
11072  ac_status=$?
11073  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074  test $ac_status = 0; }; then
11075    case `$FILECMD conftest.o` in
11076      *32-bit*)
11077	case $host in
11078	  x86_64-*kfreebsd*-gnu)
11079	    LD="${LD-ld} -m elf_i386_fbsd"
11080	    ;;
11081	  x86_64-*linux*)
11082	    case `$FILECMD conftest.o` in
11083	      *x86-64*)
11084		LD="${LD-ld} -m elf32_x86_64"
11085		;;
11086	      *)
11087		LD="${LD-ld} -m elf_i386"
11088		;;
11089	    esac
11090	    ;;
11091	  powerpc64le-*linux*)
11092	    LD="${LD-ld} -m elf32lppclinux"
11093	    ;;
11094	  powerpc64-*linux*)
11095	    LD="${LD-ld} -m elf32ppclinux"
11096	    ;;
11097	  s390x-*linux*)
11098	    LD="${LD-ld} -m elf_s390"
11099	    ;;
11100	  sparc64-*linux*)
11101	    LD="${LD-ld} -m elf32_sparc"
11102	    ;;
11103	esac
11104	;;
11105      *64-bit*)
11106	case $host in
11107	  x86_64-*kfreebsd*-gnu)
11108	    LD="${LD-ld} -m elf_x86_64_fbsd"
11109	    ;;
11110	  x86_64-*linux*)
11111	    LD="${LD-ld} -m elf_x86_64"
11112	    ;;
11113	  powerpcle-*linux*)
11114	    LD="${LD-ld} -m elf64lppc"
11115	    ;;
11116	  powerpc-*linux*)
11117	    LD="${LD-ld} -m elf64ppc"
11118	    ;;
11119	  s390*-*linux*|s390*-*tpf*)
11120	    LD="${LD-ld} -m elf64_s390"
11121	    ;;
11122	  sparc*-*linux*)
11123	    LD="${LD-ld} -m elf64_sparc"
11124	    ;;
11125	esac
11126	;;
11127    esac
11128  fi
11129  rm -rf conftest*
11130  ;;
11131
11132*-*-sco3.2v5*)
11133  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11134  SAVE_CFLAGS=$CFLAGS
11135  CFLAGS="$CFLAGS -belf"
11136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11137printf %s "checking whether the C compiler needs -belf... " >&6; }
11138if test ${lt_cv_cc_needs_belf+y}
11139then :
11140  printf %s "(cached) " >&6
11141else $as_nop
11142  ac_ext=c
11143ac_cpp='$CPP $CPPFLAGS'
11144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147
11148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151int main (void)
11152{
11153
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158if ac_fn_c_try_link "$LINENO"
11159then :
11160  lt_cv_cc_needs_belf=yes
11161else $as_nop
11162  lt_cv_cc_needs_belf=no
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165    conftest$ac_exeext conftest.$ac_ext
11166     ac_ext=c
11167ac_cpp='$CPP $CPPFLAGS'
11168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
11172fi
11173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11174printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11175  if test yes != "$lt_cv_cc_needs_belf"; then
11176    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11177    CFLAGS=$SAVE_CFLAGS
11178  fi
11179  ;;
11180*-*solaris*)
11181  # Find out what ABI is being produced by ac_compile, and set linker
11182  # options accordingly.
11183  echo 'int i;' > conftest.$ac_ext
11184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11185  (eval $ac_compile) 2>&5
11186  ac_status=$?
11187  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188  test $ac_status = 0; }; then
11189    case `$FILECMD conftest.o` in
11190    *64-bit*)
11191      case $lt_cv_prog_gnu_ld in
11192      yes*)
11193        case $host in
11194        i?86-*-solaris*|x86_64-*-solaris*)
11195          LD="${LD-ld} -m elf_x86_64"
11196          ;;
11197        sparc*-*-solaris*)
11198          LD="${LD-ld} -m elf64_sparc"
11199          ;;
11200        esac
11201        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11202        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11203          LD=${LD-ld}_sol2
11204        fi
11205        ;;
11206      *)
11207	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11208	  LD="${LD-ld} -64"
11209	fi
11210	;;
11211      esac
11212      ;;
11213    esac
11214  fi
11215  rm -rf conftest*
11216  ;;
11217esac
11218
11219need_locks=$enable_libtool_lock
11220
11221if test -n "$ac_tool_prefix"; then
11222  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11223set dummy ${ac_tool_prefix}mt; ac_word=$2
11224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225printf %s "checking for $ac_word... " >&6; }
11226if test ${ac_cv_prog_MANIFEST_TOOL+y}
11227then :
11228  printf %s "(cached) " >&6
11229else $as_nop
11230  if test -n "$MANIFEST_TOOL"; then
11231  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11232else
11233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236  IFS=$as_save_IFS
11237  case $as_dir in #(((
11238    '') as_dir=./ ;;
11239    */) ;;
11240    *) as_dir=$as_dir/ ;;
11241  esac
11242    for ac_exec_ext in '' $ac_executable_extensions; do
11243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11244    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11246    break 2
11247  fi
11248done
11249  done
11250IFS=$as_save_IFS
11251
11252fi
11253fi
11254MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11255if test -n "$MANIFEST_TOOL"; then
11256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11257printf "%s\n" "$MANIFEST_TOOL" >&6; }
11258else
11259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260printf "%s\n" "no" >&6; }
11261fi
11262
11263
11264fi
11265if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11266  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11267  # Extract the first word of "mt", so it can be a program name with args.
11268set dummy mt; ac_word=$2
11269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270printf %s "checking for $ac_word... " >&6; }
11271if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11272then :
11273  printf %s "(cached) " >&6
11274else $as_nop
11275  if test -n "$ac_ct_MANIFEST_TOOL"; then
11276  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11277else
11278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279for as_dir in $PATH
11280do
11281  IFS=$as_save_IFS
11282  case $as_dir in #(((
11283    '') as_dir=./ ;;
11284    */) ;;
11285    *) as_dir=$as_dir/ ;;
11286  esac
11287    for ac_exec_ext in '' $ac_executable_extensions; do
11288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11289    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11291    break 2
11292  fi
11293done
11294  done
11295IFS=$as_save_IFS
11296
11297fi
11298fi
11299ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11300if test -n "$ac_ct_MANIFEST_TOOL"; then
11301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11302printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11303else
11304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305printf "%s\n" "no" >&6; }
11306fi
11307
11308  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11309    MANIFEST_TOOL=":"
11310  else
11311    case $cross_compiling:$ac_tool_warned in
11312yes:)
11313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11315ac_tool_warned=yes ;;
11316esac
11317    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11318  fi
11319else
11320  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11321fi
11322
11323test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11325printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11326if test ${lt_cv_path_mainfest_tool+y}
11327then :
11328  printf %s "(cached) " >&6
11329else $as_nop
11330  lt_cv_path_mainfest_tool=no
11331  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11332  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11333  cat conftest.err >&5
11334  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11335    lt_cv_path_mainfest_tool=yes
11336  fi
11337  rm -f conftest*
11338fi
11339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11340printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11341if test yes != "$lt_cv_path_mainfest_tool"; then
11342  MANIFEST_TOOL=:
11343fi
11344
11345
11346
11347
11348
11349
11350  case $host_os in
11351    rhapsody* | darwin*)
11352    if test -n "$ac_tool_prefix"; then
11353  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11354set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356printf %s "checking for $ac_word... " >&6; }
11357if test ${ac_cv_prog_DSYMUTIL+y}
11358then :
11359  printf %s "(cached) " >&6
11360else $as_nop
11361  if test -n "$DSYMUTIL"; then
11362  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11363else
11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367  IFS=$as_save_IFS
11368  case $as_dir in #(((
11369    '') as_dir=./ ;;
11370    */) ;;
11371    *) as_dir=$as_dir/ ;;
11372  esac
11373    for ac_exec_ext in '' $ac_executable_extensions; do
11374  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11375    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11376    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11377    break 2
11378  fi
11379done
11380  done
11381IFS=$as_save_IFS
11382
11383fi
11384fi
11385DSYMUTIL=$ac_cv_prog_DSYMUTIL
11386if test -n "$DSYMUTIL"; then
11387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11388printf "%s\n" "$DSYMUTIL" >&6; }
11389else
11390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391printf "%s\n" "no" >&6; }
11392fi
11393
11394
11395fi
11396if test -z "$ac_cv_prog_DSYMUTIL"; then
11397  ac_ct_DSYMUTIL=$DSYMUTIL
11398  # Extract the first word of "dsymutil", so it can be a program name with args.
11399set dummy dsymutil; ac_word=$2
11400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401printf %s "checking for $ac_word... " >&6; }
11402if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11403then :
11404  printf %s "(cached) " >&6
11405else $as_nop
11406  if test -n "$ac_ct_DSYMUTIL"; then
11407  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412  IFS=$as_save_IFS
11413  case $as_dir in #(((
11414    '') as_dir=./ ;;
11415    */) ;;
11416    *) as_dir=$as_dir/ ;;
11417  esac
11418    for ac_exec_ext in '' $ac_executable_extensions; do
11419  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11420    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11421    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11422    break 2
11423  fi
11424done
11425  done
11426IFS=$as_save_IFS
11427
11428fi
11429fi
11430ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11431if test -n "$ac_ct_DSYMUTIL"; then
11432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11433printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11434else
11435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436printf "%s\n" "no" >&6; }
11437fi
11438
11439  if test "x$ac_ct_DSYMUTIL" = x; then
11440    DSYMUTIL=":"
11441  else
11442    case $cross_compiling:$ac_tool_warned in
11443yes:)
11444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11445printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11446ac_tool_warned=yes ;;
11447esac
11448    DSYMUTIL=$ac_ct_DSYMUTIL
11449  fi
11450else
11451  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11452fi
11453
11454    if test -n "$ac_tool_prefix"; then
11455  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11456set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458printf %s "checking for $ac_word... " >&6; }
11459if test ${ac_cv_prog_NMEDIT+y}
11460then :
11461  printf %s "(cached) " >&6
11462else $as_nop
11463  if test -n "$NMEDIT"; then
11464  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469  IFS=$as_save_IFS
11470  case $as_dir in #(((
11471    '') as_dir=./ ;;
11472    */) ;;
11473    *) as_dir=$as_dir/ ;;
11474  esac
11475    for ac_exec_ext in '' $ac_executable_extensions; do
11476  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11477    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11479    break 2
11480  fi
11481done
11482  done
11483IFS=$as_save_IFS
11484
11485fi
11486fi
11487NMEDIT=$ac_cv_prog_NMEDIT
11488if test -n "$NMEDIT"; then
11489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11490printf "%s\n" "$NMEDIT" >&6; }
11491else
11492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493printf "%s\n" "no" >&6; }
11494fi
11495
11496
11497fi
11498if test -z "$ac_cv_prog_NMEDIT"; then
11499  ac_ct_NMEDIT=$NMEDIT
11500  # Extract the first word of "nmedit", so it can be a program name with args.
11501set dummy nmedit; ac_word=$2
11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503printf %s "checking for $ac_word... " >&6; }
11504if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11505then :
11506  printf %s "(cached) " >&6
11507else $as_nop
11508  if test -n "$ac_ct_NMEDIT"; then
11509  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514  IFS=$as_save_IFS
11515  case $as_dir in #(((
11516    '') as_dir=./ ;;
11517    */) ;;
11518    *) as_dir=$as_dir/ ;;
11519  esac
11520    for ac_exec_ext in '' $ac_executable_extensions; do
11521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11522    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11524    break 2
11525  fi
11526done
11527  done
11528IFS=$as_save_IFS
11529
11530fi
11531fi
11532ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11533if test -n "$ac_ct_NMEDIT"; then
11534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11535printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11536else
11537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538printf "%s\n" "no" >&6; }
11539fi
11540
11541  if test "x$ac_ct_NMEDIT" = x; then
11542    NMEDIT=":"
11543  else
11544    case $cross_compiling:$ac_tool_warned in
11545yes:)
11546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548ac_tool_warned=yes ;;
11549esac
11550    NMEDIT=$ac_ct_NMEDIT
11551  fi
11552else
11553  NMEDIT="$ac_cv_prog_NMEDIT"
11554fi
11555
11556    if test -n "$ac_tool_prefix"; then
11557  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11558set dummy ${ac_tool_prefix}lipo; ac_word=$2
11559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560printf %s "checking for $ac_word... " >&6; }
11561if test ${ac_cv_prog_LIPO+y}
11562then :
11563  printf %s "(cached) " >&6
11564else $as_nop
11565  if test -n "$LIPO"; then
11566  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571  IFS=$as_save_IFS
11572  case $as_dir in #(((
11573    '') as_dir=./ ;;
11574    */) ;;
11575    *) as_dir=$as_dir/ ;;
11576  esac
11577    for ac_exec_ext in '' $ac_executable_extensions; do
11578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11579    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11581    break 2
11582  fi
11583done
11584  done
11585IFS=$as_save_IFS
11586
11587fi
11588fi
11589LIPO=$ac_cv_prog_LIPO
11590if test -n "$LIPO"; then
11591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11592printf "%s\n" "$LIPO" >&6; }
11593else
11594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595printf "%s\n" "no" >&6; }
11596fi
11597
11598
11599fi
11600if test -z "$ac_cv_prog_LIPO"; then
11601  ac_ct_LIPO=$LIPO
11602  # Extract the first word of "lipo", so it can be a program name with args.
11603set dummy lipo; ac_word=$2
11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605printf %s "checking for $ac_word... " >&6; }
11606if test ${ac_cv_prog_ac_ct_LIPO+y}
11607then :
11608  printf %s "(cached) " >&6
11609else $as_nop
11610  if test -n "$ac_ct_LIPO"; then
11611  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11612else
11613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $PATH
11615do
11616  IFS=$as_save_IFS
11617  case $as_dir in #(((
11618    '') as_dir=./ ;;
11619    */) ;;
11620    *) as_dir=$as_dir/ ;;
11621  esac
11622    for ac_exec_ext in '' $ac_executable_extensions; do
11623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11624    ac_cv_prog_ac_ct_LIPO="lipo"
11625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11626    break 2
11627  fi
11628done
11629  done
11630IFS=$as_save_IFS
11631
11632fi
11633fi
11634ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11635if test -n "$ac_ct_LIPO"; then
11636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11637printf "%s\n" "$ac_ct_LIPO" >&6; }
11638else
11639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640printf "%s\n" "no" >&6; }
11641fi
11642
11643  if test "x$ac_ct_LIPO" = x; then
11644    LIPO=":"
11645  else
11646    case $cross_compiling:$ac_tool_warned in
11647yes:)
11648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11649printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11650ac_tool_warned=yes ;;
11651esac
11652    LIPO=$ac_ct_LIPO
11653  fi
11654else
11655  LIPO="$ac_cv_prog_LIPO"
11656fi
11657
11658    if test -n "$ac_tool_prefix"; then
11659  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11660set dummy ${ac_tool_prefix}otool; ac_word=$2
11661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662printf %s "checking for $ac_word... " >&6; }
11663if test ${ac_cv_prog_OTOOL+y}
11664then :
11665  printf %s "(cached) " >&6
11666else $as_nop
11667  if test -n "$OTOOL"; then
11668  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11669else
11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673  IFS=$as_save_IFS
11674  case $as_dir in #(((
11675    '') as_dir=./ ;;
11676    */) ;;
11677    *) as_dir=$as_dir/ ;;
11678  esac
11679    for ac_exec_ext in '' $ac_executable_extensions; do
11680  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11681    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11682    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11683    break 2
11684  fi
11685done
11686  done
11687IFS=$as_save_IFS
11688
11689fi
11690fi
11691OTOOL=$ac_cv_prog_OTOOL
11692if test -n "$OTOOL"; then
11693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11694printf "%s\n" "$OTOOL" >&6; }
11695else
11696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697printf "%s\n" "no" >&6; }
11698fi
11699
11700
11701fi
11702if test -z "$ac_cv_prog_OTOOL"; then
11703  ac_ct_OTOOL=$OTOOL
11704  # Extract the first word of "otool", so it can be a program name with args.
11705set dummy otool; ac_word=$2
11706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707printf %s "checking for $ac_word... " >&6; }
11708if test ${ac_cv_prog_ac_ct_OTOOL+y}
11709then :
11710  printf %s "(cached) " >&6
11711else $as_nop
11712  if test -n "$ac_ct_OTOOL"; then
11713  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718  IFS=$as_save_IFS
11719  case $as_dir in #(((
11720    '') as_dir=./ ;;
11721    */) ;;
11722    *) as_dir=$as_dir/ ;;
11723  esac
11724    for ac_exec_ext in '' $ac_executable_extensions; do
11725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11726    ac_cv_prog_ac_ct_OTOOL="otool"
11727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11728    break 2
11729  fi
11730done
11731  done
11732IFS=$as_save_IFS
11733
11734fi
11735fi
11736ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11737if test -n "$ac_ct_OTOOL"; then
11738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11739printf "%s\n" "$ac_ct_OTOOL" >&6; }
11740else
11741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742printf "%s\n" "no" >&6; }
11743fi
11744
11745  if test "x$ac_ct_OTOOL" = x; then
11746    OTOOL=":"
11747  else
11748    case $cross_compiling:$ac_tool_warned in
11749yes:)
11750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11751printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11752ac_tool_warned=yes ;;
11753esac
11754    OTOOL=$ac_ct_OTOOL
11755  fi
11756else
11757  OTOOL="$ac_cv_prog_OTOOL"
11758fi
11759
11760    if test -n "$ac_tool_prefix"; then
11761  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11762set dummy ${ac_tool_prefix}otool64; ac_word=$2
11763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764printf %s "checking for $ac_word... " >&6; }
11765if test ${ac_cv_prog_OTOOL64+y}
11766then :
11767  printf %s "(cached) " >&6
11768else $as_nop
11769  if test -n "$OTOOL64"; then
11770  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11771else
11772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773for as_dir in $PATH
11774do
11775  IFS=$as_save_IFS
11776  case $as_dir in #(((
11777    '') as_dir=./ ;;
11778    */) ;;
11779    *) as_dir=$as_dir/ ;;
11780  esac
11781    for ac_exec_ext in '' $ac_executable_extensions; do
11782  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11783    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11784    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11785    break 2
11786  fi
11787done
11788  done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793OTOOL64=$ac_cv_prog_OTOOL64
11794if test -n "$OTOOL64"; then
11795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11796printf "%s\n" "$OTOOL64" >&6; }
11797else
11798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799printf "%s\n" "no" >&6; }
11800fi
11801
11802
11803fi
11804if test -z "$ac_cv_prog_OTOOL64"; then
11805  ac_ct_OTOOL64=$OTOOL64
11806  # Extract the first word of "otool64", so it can be a program name with args.
11807set dummy otool64; ac_word=$2
11808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809printf %s "checking for $ac_word... " >&6; }
11810if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11811then :
11812  printf %s "(cached) " >&6
11813else $as_nop
11814  if test -n "$ac_ct_OTOOL64"; then
11815  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820  IFS=$as_save_IFS
11821  case $as_dir in #(((
11822    '') as_dir=./ ;;
11823    */) ;;
11824    *) as_dir=$as_dir/ ;;
11825  esac
11826    for ac_exec_ext in '' $ac_executable_extensions; do
11827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11828    ac_cv_prog_ac_ct_OTOOL64="otool64"
11829    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11830    break 2
11831  fi
11832done
11833  done
11834IFS=$as_save_IFS
11835
11836fi
11837fi
11838ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11839if test -n "$ac_ct_OTOOL64"; then
11840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11841printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11842else
11843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844printf "%s\n" "no" >&6; }
11845fi
11846
11847  if test "x$ac_ct_OTOOL64" = x; then
11848    OTOOL64=":"
11849  else
11850    case $cross_compiling:$ac_tool_warned in
11851yes:)
11852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11853printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11854ac_tool_warned=yes ;;
11855esac
11856    OTOOL64=$ac_ct_OTOOL64
11857  fi
11858else
11859  OTOOL64="$ac_cv_prog_OTOOL64"
11860fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11889printf %s "checking for -single_module linker flag... " >&6; }
11890if test ${lt_cv_apple_cc_single_mod+y}
11891then :
11892  printf %s "(cached) " >&6
11893else $as_nop
11894  lt_cv_apple_cc_single_mod=no
11895      if test -z "$LT_MULTI_MODULE"; then
11896	# By default we will add the -single_module flag. You can override
11897	# by either setting the environment variable LT_MULTI_MODULE
11898	# non-empty at configure time, or by adding -multi_module to the
11899	# link flags.
11900	rm -rf libconftest.dylib*
11901	echo "int foo(void){return 1;}" > conftest.c
11902	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11903-dynamiclib -Wl,-single_module conftest.c" >&5
11904	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11905	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11906        _lt_result=$?
11907	# If there is a non-empty error log, and "single_module"
11908	# appears in it, assume the flag caused a linker warning
11909        if test -s conftest.err && $GREP single_module conftest.err; then
11910	  cat conftest.err >&5
11911	# Otherwise, if the output was created with a 0 exit code from
11912	# the compiler, it worked.
11913	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11914	  lt_cv_apple_cc_single_mod=yes
11915	else
11916	  cat conftest.err >&5
11917	fi
11918	rm -rf libconftest.dylib*
11919	rm -f conftest.*
11920      fi
11921fi
11922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11923printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11924
11925    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11926printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11927if test ${lt_cv_ld_exported_symbols_list+y}
11928then :
11929  printf %s "(cached) " >&6
11930else $as_nop
11931  lt_cv_ld_exported_symbols_list=no
11932      save_LDFLAGS=$LDFLAGS
11933      echo "_main" > conftest.sym
11934      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11935      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h.  */
11937
11938int main (void)
11939{
11940
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945if ac_fn_c_try_link "$LINENO"
11946then :
11947  lt_cv_ld_exported_symbols_list=yes
11948else $as_nop
11949  lt_cv_ld_exported_symbols_list=no
11950fi
11951rm -f core conftest.err conftest.$ac_objext conftest.beam \
11952    conftest$ac_exeext conftest.$ac_ext
11953	LDFLAGS=$save_LDFLAGS
11954
11955fi
11956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11957printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11958
11959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11960printf %s "checking for -force_load linker flag... " >&6; }
11961if test ${lt_cv_ld_force_load+y}
11962then :
11963  printf %s "(cached) " >&6
11964else $as_nop
11965  lt_cv_ld_force_load=no
11966      cat > conftest.c << _LT_EOF
11967int forced_loaded() { return 2;}
11968_LT_EOF
11969      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11970      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11971      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11972      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11973      echo "$RANLIB libconftest.a" >&5
11974      $RANLIB libconftest.a 2>&5
11975      cat > conftest.c << _LT_EOF
11976int main() { return 0;}
11977_LT_EOF
11978      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11979      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11980      _lt_result=$?
11981      if test -s conftest.err && $GREP force_load conftest.err; then
11982	cat conftest.err >&5
11983      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11984	lt_cv_ld_force_load=yes
11985      else
11986	cat conftest.err >&5
11987      fi
11988        rm -f conftest.err libconftest.a conftest conftest.c
11989        rm -rf conftest.dSYM
11990
11991fi
11992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11993printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11994    case $host_os in
11995    rhapsody* | darwin1.[012])
11996      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11997    darwin1.*)
11998      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11999    darwin*)
12000      case $MACOSX_DEPLOYMENT_TARGET,$host in
12001        10.[012],*|,*powerpc*-darwin[5-8]*)
12002          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12003        *)
12004          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12005      esac
12006    ;;
12007  esac
12008    if test yes = "$lt_cv_apple_cc_single_mod"; then
12009      _lt_dar_single_mod='$single_module'
12010    fi
12011    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12012      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12013    else
12014      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12015    fi
12016    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12017      _lt_dsymutil='~$DSYMUTIL $lib || :'
12018    else
12019      _lt_dsymutil=
12020    fi
12021    ;;
12022  esac
12023
12024# func_munge_path_list VARIABLE PATH
12025# -----------------------------------
12026# VARIABLE is name of variable containing _space_ separated list of
12027# directories to be munged by the contents of PATH, which is string
12028# having a format:
12029# "DIR[:DIR]:"
12030#       string "DIR[ DIR]" will be prepended to VARIABLE
12031# ":DIR[:DIR]"
12032#       string "DIR[ DIR]" will be appended to VARIABLE
12033# "DIRP[:DIRP]::[DIRA:]DIRA"
12034#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12035#       "DIRA[ DIRA]" will be appended to VARIABLE
12036# "DIR[:DIR]"
12037#       VARIABLE will be replaced by "DIR[ DIR]"
12038func_munge_path_list ()
12039{
12040    case x$2 in
12041    x)
12042        ;;
12043    *:)
12044        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12045        ;;
12046    x:*)
12047        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12048        ;;
12049    *::*)
12050        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12051        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12052        ;;
12053    *)
12054        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12055        ;;
12056    esac
12057}
12058
12059ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12060"
12061if test "x$ac_cv_header_dlfcn_h" = xyes
12062then :
12063  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12064
12065fi
12066
12067# ------------------------------------ #
12068#  Determine libtool default behavior  #
12069# ------------------------------------ #
12070
12071#
12072# Default behavior is to enable shared and static libraries on systems
12073# where libtool knows how to build both library versions, and does not
12074# require separate configuration and build runs for each flavor.
12075#
12076
12077xc_lt_want_enable_shared='yes'
12078xc_lt_want_enable_static='yes'
12079
12080#
12081# User may have disabled shared or static libraries.
12082#
12083case "x$enable_shared" in # (
12084  xno)
12085    xc_lt_want_enable_shared='no'
12086    ;;
12087esac
12088case "x$enable_static" in # (
12089  xno)
12090    xc_lt_want_enable_static='no'
12091    ;;
12092esac
12093if test "x$xc_lt_want_enable_shared" = 'xno' &&
12094  test "x$xc_lt_want_enable_static" = 'xno'; then
12095  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12096fi
12097
12098#
12099# Default behavior on systems that require independent configuration
12100# and build runs for shared and static is to enable shared libraries
12101# and disable static ones. On these systems option '--disable-shared'
12102# must be used in order to build a proper static library.
12103#
12104
12105if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12106  test "x$xc_lt_want_enable_static" = 'xyes'; then
12107  case $host_os in # (
12108    pw32* | cegcc* | os2* | aix*)
12109      xc_lt_want_enable_static='no'
12110      ;;
12111  esac
12112fi
12113
12114#
12115# Make libtool aware of current shared and static library preferences
12116# taking in account that, depending on host characteristics, libtool
12117# may modify these option preferences later in this configure script.
12118#
12119
12120enable_shared=$xc_lt_want_enable_shared
12121enable_static=$xc_lt_want_enable_static
12122
12123#
12124# Default behavior is to build PIC objects for shared libraries and
12125# non-PIC objects for static libraries.
12126#
12127
12128xc_lt_want_with_pic='default'
12129
12130#
12131# User may have specified PIC preference.
12132#
12133
12134case "x$with_pic" in # ((
12135  xno)
12136    xc_lt_want_with_pic='no'
12137    ;;
12138  xyes)
12139    xc_lt_want_with_pic='yes'
12140    ;;
12141esac
12142
12143#
12144# Default behavior on some systems where building a shared library out
12145# of non-PIC compiled objects will fail with following linker error
12146# "relocation R_X86_64_32 can not be used when making a shared object"
12147# is to build PIC objects even for static libraries. This behavior may
12148# be overridden using 'configure --disable-shared --without-pic'.
12149#
12150
12151if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12152  case $host_cpu in # (
12153    x86_64 | amd64 | ia64)
12154      case $host_os in # (
12155        linux* | freebsd* | midnightbsd*)
12156          xc_lt_want_with_pic='yes'
12157          ;;
12158      esac
12159      ;;
12160  esac
12161fi
12162
12163#
12164# Make libtool aware of current PIC preference taking in account that,
12165# depending on host characteristics, libtool may modify PIC default
12166# behavior to fit host system idiosyncrasies later in this script.
12167#
12168
12169with_pic=$xc_lt_want_with_pic
12170
12171## ----------------------- ##
12172##  Start of libtool code  ##
12173## ----------------------- ##
12174
12175
12176
12177
12178# Set options
12179enable_win32_dll=yes
12180
12181case $host in
12182*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12183  if test -n "$ac_tool_prefix"; then
12184  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12185set dummy ${ac_tool_prefix}as; ac_word=$2
12186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187printf %s "checking for $ac_word... " >&6; }
12188if test ${ac_cv_prog_AS+y}
12189then :
12190  printf %s "(cached) " >&6
12191else $as_nop
12192  if test -n "$AS"; then
12193  ac_cv_prog_AS="$AS" # Let the user override the test.
12194else
12195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198  IFS=$as_save_IFS
12199  case $as_dir in #(((
12200    '') as_dir=./ ;;
12201    */) ;;
12202    *) as_dir=$as_dir/ ;;
12203  esac
12204    for ac_exec_ext in '' $ac_executable_extensions; do
12205  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12206    ac_cv_prog_AS="${ac_tool_prefix}as"
12207    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12208    break 2
12209  fi
12210done
12211  done
12212IFS=$as_save_IFS
12213
12214fi
12215fi
12216AS=$ac_cv_prog_AS
12217if test -n "$AS"; then
12218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12219printf "%s\n" "$AS" >&6; }
12220else
12221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222printf "%s\n" "no" >&6; }
12223fi
12224
12225
12226fi
12227if test -z "$ac_cv_prog_AS"; then
12228  ac_ct_AS=$AS
12229  # Extract the first word of "as", so it can be a program name with args.
12230set dummy as; ac_word=$2
12231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232printf %s "checking for $ac_word... " >&6; }
12233if test ${ac_cv_prog_ac_ct_AS+y}
12234then :
12235  printf %s "(cached) " >&6
12236else $as_nop
12237  if test -n "$ac_ct_AS"; then
12238  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12239else
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243  IFS=$as_save_IFS
12244  case $as_dir in #(((
12245    '') as_dir=./ ;;
12246    */) ;;
12247    *) as_dir=$as_dir/ ;;
12248  esac
12249    for ac_exec_ext in '' $ac_executable_extensions; do
12250  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12251    ac_cv_prog_ac_ct_AS="as"
12252    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12253    break 2
12254  fi
12255done
12256  done
12257IFS=$as_save_IFS
12258
12259fi
12260fi
12261ac_ct_AS=$ac_cv_prog_ac_ct_AS
12262if test -n "$ac_ct_AS"; then
12263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12264printf "%s\n" "$ac_ct_AS" >&6; }
12265else
12266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267printf "%s\n" "no" >&6; }
12268fi
12269
12270  if test "x$ac_ct_AS" = x; then
12271    AS="false"
12272  else
12273    case $cross_compiling:$ac_tool_warned in
12274yes:)
12275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277ac_tool_warned=yes ;;
12278esac
12279    AS=$ac_ct_AS
12280  fi
12281else
12282  AS="$ac_cv_prog_AS"
12283fi
12284
12285  if test -n "$ac_tool_prefix"; then
12286  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12287set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289printf %s "checking for $ac_word... " >&6; }
12290if test ${ac_cv_prog_DLLTOOL+y}
12291then :
12292  printf %s "(cached) " >&6
12293else $as_nop
12294  if test -n "$DLLTOOL"; then
12295  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12296else
12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $PATH
12299do
12300  IFS=$as_save_IFS
12301  case $as_dir in #(((
12302    '') as_dir=./ ;;
12303    */) ;;
12304    *) as_dir=$as_dir/ ;;
12305  esac
12306    for ac_exec_ext in '' $ac_executable_extensions; do
12307  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12308    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12309    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12310    break 2
12311  fi
12312done
12313  done
12314IFS=$as_save_IFS
12315
12316fi
12317fi
12318DLLTOOL=$ac_cv_prog_DLLTOOL
12319if test -n "$DLLTOOL"; then
12320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12321printf "%s\n" "$DLLTOOL" >&6; }
12322else
12323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324printf "%s\n" "no" >&6; }
12325fi
12326
12327
12328fi
12329if test -z "$ac_cv_prog_DLLTOOL"; then
12330  ac_ct_DLLTOOL=$DLLTOOL
12331  # Extract the first word of "dlltool", so it can be a program name with args.
12332set dummy dlltool; ac_word=$2
12333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334printf %s "checking for $ac_word... " >&6; }
12335if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12336then :
12337  printf %s "(cached) " >&6
12338else $as_nop
12339  if test -n "$ac_ct_DLLTOOL"; then
12340  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12341else
12342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343for as_dir in $PATH
12344do
12345  IFS=$as_save_IFS
12346  case $as_dir in #(((
12347    '') as_dir=./ ;;
12348    */) ;;
12349    *) as_dir=$as_dir/ ;;
12350  esac
12351    for ac_exec_ext in '' $ac_executable_extensions; do
12352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12353    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12355    break 2
12356  fi
12357done
12358  done
12359IFS=$as_save_IFS
12360
12361fi
12362fi
12363ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12364if test -n "$ac_ct_DLLTOOL"; then
12365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12366printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12367else
12368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369printf "%s\n" "no" >&6; }
12370fi
12371
12372  if test "x$ac_ct_DLLTOOL" = x; then
12373    DLLTOOL="false"
12374  else
12375    case $cross_compiling:$ac_tool_warned in
12376yes:)
12377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12379ac_tool_warned=yes ;;
12380esac
12381    DLLTOOL=$ac_ct_DLLTOOL
12382  fi
12383else
12384  DLLTOOL="$ac_cv_prog_DLLTOOL"
12385fi
12386
12387  if test -n "$ac_tool_prefix"; then
12388  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12389set dummy ${ac_tool_prefix}objdump; ac_word=$2
12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391printf %s "checking for $ac_word... " >&6; }
12392if test ${ac_cv_prog_OBJDUMP+y}
12393then :
12394  printf %s "(cached) " >&6
12395else $as_nop
12396  if test -n "$OBJDUMP"; then
12397  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12398else
12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402  IFS=$as_save_IFS
12403  case $as_dir in #(((
12404    '') as_dir=./ ;;
12405    */) ;;
12406    *) as_dir=$as_dir/ ;;
12407  esac
12408    for ac_exec_ext in '' $ac_executable_extensions; do
12409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12410    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12412    break 2
12413  fi
12414done
12415  done
12416IFS=$as_save_IFS
12417
12418fi
12419fi
12420OBJDUMP=$ac_cv_prog_OBJDUMP
12421if test -n "$OBJDUMP"; then
12422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12423printf "%s\n" "$OBJDUMP" >&6; }
12424else
12425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426printf "%s\n" "no" >&6; }
12427fi
12428
12429
12430fi
12431if test -z "$ac_cv_prog_OBJDUMP"; then
12432  ac_ct_OBJDUMP=$OBJDUMP
12433  # Extract the first word of "objdump", so it can be a program name with args.
12434set dummy objdump; ac_word=$2
12435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436printf %s "checking for $ac_word... " >&6; }
12437if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12438then :
12439  printf %s "(cached) " >&6
12440else $as_nop
12441  if test -n "$ac_ct_OBJDUMP"; then
12442  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12443else
12444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445for as_dir in $PATH
12446do
12447  IFS=$as_save_IFS
12448  case $as_dir in #(((
12449    '') as_dir=./ ;;
12450    */) ;;
12451    *) as_dir=$as_dir/ ;;
12452  esac
12453    for ac_exec_ext in '' $ac_executable_extensions; do
12454  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12455    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12456    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12457    break 2
12458  fi
12459done
12460  done
12461IFS=$as_save_IFS
12462
12463fi
12464fi
12465ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12466if test -n "$ac_ct_OBJDUMP"; then
12467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12468printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12469else
12470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471printf "%s\n" "no" >&6; }
12472fi
12473
12474  if test "x$ac_ct_OBJDUMP" = x; then
12475    OBJDUMP="false"
12476  else
12477    case $cross_compiling:$ac_tool_warned in
12478yes:)
12479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481ac_tool_warned=yes ;;
12482esac
12483    OBJDUMP=$ac_ct_OBJDUMP
12484  fi
12485else
12486  OBJDUMP="$ac_cv_prog_OBJDUMP"
12487fi
12488
12489  ;;
12490esac
12491
12492test -z "$AS" && AS=as
12493
12494
12495
12496
12497
12498test -z "$DLLTOOL" && DLLTOOL=dlltool
12499
12500
12501
12502
12503
12504test -z "$OBJDUMP" && OBJDUMP=objdump
12505
12506
12507
12508
12509
12510
12511
12512        enable_dlopen=no
12513
12514
12515
12516            # Check whether --enable-shared was given.
12517if test ${enable_shared+y}
12518then :
12519  enableval=$enable_shared; p=${PACKAGE-default}
12520    case $enableval in
12521    yes) enable_shared=yes ;;
12522    no) enable_shared=no ;;
12523    *)
12524      enable_shared=no
12525      # Look at the argument we got.  We use all the common list separators.
12526      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12527      for pkg in $enableval; do
12528	IFS=$lt_save_ifs
12529	if test "X$pkg" = "X$p"; then
12530	  enable_shared=yes
12531	fi
12532      done
12533      IFS=$lt_save_ifs
12534      ;;
12535    esac
12536else $as_nop
12537  enable_shared=yes
12538fi
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548  # Check whether --enable-static was given.
12549if test ${enable_static+y}
12550then :
12551  enableval=$enable_static; p=${PACKAGE-default}
12552    case $enableval in
12553    yes) enable_static=yes ;;
12554    no) enable_static=no ;;
12555    *)
12556     enable_static=no
12557      # Look at the argument we got.  We use all the common list separators.
12558      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12559      for pkg in $enableval; do
12560	IFS=$lt_save_ifs
12561	if test "X$pkg" = "X$p"; then
12562	  enable_static=yes
12563	fi
12564      done
12565      IFS=$lt_save_ifs
12566      ;;
12567    esac
12568else $as_nop
12569  enable_static=yes
12570fi
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581# Check whether --with-pic was given.
12582if test ${with_pic+y}
12583then :
12584  withval=$with_pic; lt_p=${PACKAGE-default}
12585    case $withval in
12586    yes|no) pic_mode=$withval ;;
12587    *)
12588      pic_mode=default
12589      # Look at the argument we got.  We use all the common list separators.
12590      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12591      for lt_pkg in $withval; do
12592	IFS=$lt_save_ifs
12593	if test "X$lt_pkg" = "X$lt_p"; then
12594	  pic_mode=yes
12595	fi
12596      done
12597      IFS=$lt_save_ifs
12598      ;;
12599    esac
12600else $as_nop
12601  pic_mode=default
12602fi
12603
12604
12605
12606
12607
12608
12609
12610
12611  # Check whether --enable-fast-install was given.
12612if test ${enable_fast_install+y}
12613then :
12614  enableval=$enable_fast_install; p=${PACKAGE-default}
12615    case $enableval in
12616    yes) enable_fast_install=yes ;;
12617    no) enable_fast_install=no ;;
12618    *)
12619      enable_fast_install=no
12620      # Look at the argument we got.  We use all the common list separators.
12621      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12622      for pkg in $enableval; do
12623	IFS=$lt_save_ifs
12624	if test "X$pkg" = "X$p"; then
12625	  enable_fast_install=yes
12626	fi
12627      done
12628      IFS=$lt_save_ifs
12629      ;;
12630    esac
12631else $as_nop
12632  enable_fast_install=yes
12633fi
12634
12635
12636
12637
12638
12639
12640
12641
12642  shared_archive_member_spec=
12643case $host,$enable_shared in
12644power*-*-aix[5-9]*,yes)
12645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12646printf %s "checking which variant of shared library versioning to provide... " >&6; }
12647
12648# Check whether --with-aix-soname was given.
12649if test ${with_aix_soname+y}
12650then :
12651  withval=$with_aix_soname; case $withval in
12652    aix|svr4|both)
12653      ;;
12654    *)
12655      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12656      ;;
12657    esac
12658    lt_cv_with_aix_soname=$with_aix_soname
12659else $as_nop
12660  if test ${lt_cv_with_aix_soname+y}
12661then :
12662  printf %s "(cached) " >&6
12663else $as_nop
12664  lt_cv_with_aix_soname=aix
12665fi
12666
12667    with_aix_soname=$lt_cv_with_aix_soname
12668fi
12669
12670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12671printf "%s\n" "$with_aix_soname" >&6; }
12672  if test aix != "$with_aix_soname"; then
12673    # For the AIX way of multilib, we name the shared archive member
12674    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12675    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12676    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12677    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12678    if test 64 = "${OBJECT_MODE-32}"; then
12679      shared_archive_member_spec=shr_64
12680    else
12681      shared_archive_member_spec=shr
12682    fi
12683  fi
12684  ;;
12685*)
12686  with_aix_soname=aix
12687  ;;
12688esac
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699# This can be used to rebuild libtool when needed
12700LIBTOOL_DEPS=$ltmain
12701
12702# Always use our own libtool.
12703LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734test -z "$LN_S" && LN_S="ln -s"
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749if test -n "${ZSH_VERSION+set}"; then
12750   setopt NO_GLOB_SUBST
12751fi
12752
12753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12754printf %s "checking for objdir... " >&6; }
12755if test ${lt_cv_objdir+y}
12756then :
12757  printf %s "(cached) " >&6
12758else $as_nop
12759  rm -f .libs 2>/dev/null
12760mkdir .libs 2>/dev/null
12761if test -d .libs; then
12762  lt_cv_objdir=.libs
12763else
12764  # MS-DOS does not allow filenames that begin with a dot.
12765  lt_cv_objdir=_libs
12766fi
12767rmdir .libs 2>/dev/null
12768fi
12769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12770printf "%s\n" "$lt_cv_objdir" >&6; }
12771objdir=$lt_cv_objdir
12772
12773
12774
12775
12776
12777printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12778
12779
12780
12781
12782case $host_os in
12783aix3*)
12784  # AIX sometimes has problems with the GCC collect2 program.  For some
12785  # reason, if we set the COLLECT_NAMES environment variable, the problems
12786  # vanish in a puff of smoke.
12787  if test set != "${COLLECT_NAMES+set}"; then
12788    COLLECT_NAMES=
12789    export COLLECT_NAMES
12790  fi
12791  ;;
12792esac
12793
12794# Global variables:
12795ofile=libtool
12796can_build_shared=yes
12797
12798# All known linkers require a '.a' archive for static linking (except MSVC and
12799# ICC, which need '.lib').
12800libext=a
12801
12802with_gnu_ld=$lt_cv_prog_gnu_ld
12803
12804old_CC=$CC
12805old_CFLAGS=$CFLAGS
12806
12807# Set sane defaults for various variables
12808test -z "$CC" && CC=cc
12809test -z "$LTCC" && LTCC=$CC
12810test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12811test -z "$LD" && LD=ld
12812test -z "$ac_objext" && ac_objext=o
12813
12814func_cc_basename $compiler
12815cc_basename=$func_cc_basename_result
12816
12817
12818# Only perform the check for file, if the check method requires it
12819test -z "$MAGIC_CMD" && MAGIC_CMD=file
12820case $deplibs_check_method in
12821file_magic*)
12822  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12823    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12824printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12825if test ${lt_cv_path_MAGIC_CMD+y}
12826then :
12827  printf %s "(cached) " >&6
12828else $as_nop
12829  case $MAGIC_CMD in
12830[\\/*] |  ?:[\\/]*)
12831  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12832  ;;
12833*)
12834  lt_save_MAGIC_CMD=$MAGIC_CMD
12835  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12836  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12837  for ac_dir in $ac_dummy; do
12838    IFS=$lt_save_ifs
12839    test -z "$ac_dir" && ac_dir=.
12840    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12841      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12842      if test -n "$file_magic_test_file"; then
12843	case $deplibs_check_method in
12844	"file_magic "*)
12845	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12846	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12847	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12848	    $EGREP "$file_magic_regex" > /dev/null; then
12849	    :
12850	  else
12851	    cat <<_LT_EOF 1>&2
12852
12853*** Warning: the command libtool uses to detect shared libraries,
12854*** $file_magic_cmd, produces output that libtool cannot recognize.
12855*** The result is that libtool may fail to recognize shared libraries
12856*** as such.  This will affect the creation of libtool libraries that
12857*** depend on shared libraries, but programs linked with such libtool
12858*** libraries will work regardless of this problem.  Nevertheless, you
12859*** may want to report the problem to your system manager and/or to
12860*** bug-libtool@gnu.org
12861
12862_LT_EOF
12863	  fi ;;
12864	esac
12865      fi
12866      break
12867    fi
12868  done
12869  IFS=$lt_save_ifs
12870  MAGIC_CMD=$lt_save_MAGIC_CMD
12871  ;;
12872esac
12873fi
12874
12875MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12876if test -n "$MAGIC_CMD"; then
12877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12878printf "%s\n" "$MAGIC_CMD" >&6; }
12879else
12880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881printf "%s\n" "no" >&6; }
12882fi
12883
12884
12885
12886
12887
12888if test -z "$lt_cv_path_MAGIC_CMD"; then
12889  if test -n "$ac_tool_prefix"; then
12890    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12891printf %s "checking for file... " >&6; }
12892if test ${lt_cv_path_MAGIC_CMD+y}
12893then :
12894  printf %s "(cached) " >&6
12895else $as_nop
12896  case $MAGIC_CMD in
12897[\\/*] |  ?:[\\/]*)
12898  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12899  ;;
12900*)
12901  lt_save_MAGIC_CMD=$MAGIC_CMD
12902  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12903  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12904  for ac_dir in $ac_dummy; do
12905    IFS=$lt_save_ifs
12906    test -z "$ac_dir" && ac_dir=.
12907    if test -f "$ac_dir/file"; then
12908      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12909      if test -n "$file_magic_test_file"; then
12910	case $deplibs_check_method in
12911	"file_magic "*)
12912	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12913	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12914	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12915	    $EGREP "$file_magic_regex" > /dev/null; then
12916	    :
12917	  else
12918	    cat <<_LT_EOF 1>&2
12919
12920*** Warning: the command libtool uses to detect shared libraries,
12921*** $file_magic_cmd, produces output that libtool cannot recognize.
12922*** The result is that libtool may fail to recognize shared libraries
12923*** as such.  This will affect the creation of libtool libraries that
12924*** depend on shared libraries, but programs linked with such libtool
12925*** libraries will work regardless of this problem.  Nevertheless, you
12926*** may want to report the problem to your system manager and/or to
12927*** bug-libtool@gnu.org
12928
12929_LT_EOF
12930	  fi ;;
12931	esac
12932      fi
12933      break
12934    fi
12935  done
12936  IFS=$lt_save_ifs
12937  MAGIC_CMD=$lt_save_MAGIC_CMD
12938  ;;
12939esac
12940fi
12941
12942MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12943if test -n "$MAGIC_CMD"; then
12944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12945printf "%s\n" "$MAGIC_CMD" >&6; }
12946else
12947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948printf "%s\n" "no" >&6; }
12949fi
12950
12951
12952  else
12953    MAGIC_CMD=:
12954  fi
12955fi
12956
12957  fi
12958  ;;
12959esac
12960
12961# Use C for the default configuration in the libtool script
12962
12963lt_save_CC=$CC
12964ac_ext=c
12965ac_cpp='$CPP $CPPFLAGS'
12966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969
12970
12971# Source file extension for C test sources.
12972ac_ext=c
12973
12974# Object file extension for compiled C test sources.
12975objext=o
12976objext=$objext
12977
12978# Code to be used in simple compile tests
12979lt_simple_compile_test_code="int some_variable = 0;"
12980
12981# Code to be used in simple link tests
12982lt_simple_link_test_code='int main(){return(0);}'
12983
12984
12985
12986
12987
12988
12989
12990# If no C compiler was specified, use CC.
12991LTCC=${LTCC-"$CC"}
12992
12993# If no C compiler flags were specified, use CFLAGS.
12994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995
12996# Allow CC to be a program name with arguments.
12997compiler=$CC
12998
12999# Save the default compiler, since it gets overwritten when the other
13000# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13001compiler_DEFAULT=$CC
13002
13003# save warnings/boilerplate of simple test code
13004ac_outfile=conftest.$ac_objext
13005echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007_lt_compiler_boilerplate=`cat conftest.err`
13008$RM conftest*
13009
13010ac_outfile=conftest.$ac_objext
13011echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013_lt_linker_boilerplate=`cat conftest.err`
13014$RM -r conftest*
13015
13016
13017## CAVEAT EMPTOR:
13018## There is no encapsulation within the following macros, do not change
13019## the running order or otherwise move them around unless you know exactly
13020## what you are doing...
13021if test -n "$compiler"; then
13022
13023lt_prog_compiler_no_builtin_flag=
13024
13025if test yes = "$GCC"; then
13026  case $cc_basename in
13027  nvcc*)
13028    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13029  *)
13030    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13031  esac
13032
13033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13034printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13035if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13036then :
13037  printf %s "(cached) " >&6
13038else $as_nop
13039  lt_cv_prog_compiler_rtti_exceptions=no
13040   ac_outfile=conftest.$ac_objext
13041   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13042   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13043   # Insert the option either (1) after the last *FLAGS variable, or
13044   # (2) before a word containing "conftest.", or (3) at the end.
13045   # Note that $ac_compile itself does not contain backslashes and begins
13046   # with a dollar sign (not a hyphen), so the echo should work correctly.
13047   # The option is referenced via a variable to avoid confusing sed.
13048   lt_compile=`echo "$ac_compile" | $SED \
13049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051   -e 's:$: $lt_compiler_flag:'`
13052   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13053   (eval "$lt_compile" 2>conftest.err)
13054   ac_status=$?
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   if (exit $ac_status) && test -s "$ac_outfile"; then
13058     # The compiler can only warn and ignore the option if not recognized
13059     # So say no if there are warnings other than the usual output.
13060     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13061     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13062     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13063       lt_cv_prog_compiler_rtti_exceptions=yes
13064     fi
13065   fi
13066   $RM conftest*
13067
13068fi
13069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13070printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13071
13072if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13073    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13074else
13075    :
13076fi
13077
13078fi
13079
13080
13081
13082
13083
13084
13085  lt_prog_compiler_wl=
13086lt_prog_compiler_pic=
13087lt_prog_compiler_static=
13088
13089
13090  if test yes = "$GCC"; then
13091    lt_prog_compiler_wl='-Wl,'
13092    lt_prog_compiler_static='-static'
13093
13094    case $host_os in
13095      aix*)
13096      # All AIX code is PIC.
13097      if test ia64 = "$host_cpu"; then
13098	# AIX 5 now supports IA64 processor
13099	lt_prog_compiler_static='-Bstatic'
13100      fi
13101      lt_prog_compiler_pic='-fPIC'
13102      ;;
13103
13104    amigaos*)
13105      case $host_cpu in
13106      powerpc)
13107            # see comment about AmigaOS4 .so support
13108            lt_prog_compiler_pic='-fPIC'
13109        ;;
13110      m68k)
13111            # FIXME: we need at least 68020 code to build shared libraries, but
13112            # adding the '-m68020' flag to GCC prevents building anything better,
13113            # like '-m68040'.
13114            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13115        ;;
13116      esac
13117      ;;
13118
13119    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13120      # PIC is the default for these OSes.
13121      ;;
13122
13123    mingw* | cygwin* | pw32* | os2* | cegcc*)
13124      # This hack is so that the source file can tell whether it is being
13125      # built for inclusion in a dll (and should export symbols for example).
13126      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13127      # (--disable-auto-import) libraries
13128      lt_prog_compiler_pic='-DDLL_EXPORT'
13129      case $host_os in
13130      os2*)
13131	lt_prog_compiler_static='$wl-static'
13132	;;
13133      esac
13134      ;;
13135
13136    darwin* | rhapsody*)
13137      # PIC is the default on this platform
13138      # Common symbols not allowed in MH_DYLIB files
13139      lt_prog_compiler_pic='-fno-common'
13140      ;;
13141
13142    haiku*)
13143      # PIC is the default for Haiku.
13144      # The "-static" flag exists, but is broken.
13145      lt_prog_compiler_static=
13146      ;;
13147
13148    hpux*)
13149      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13150      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13151      # sets the default TLS model and affects inlining.
13152      case $host_cpu in
13153      hppa*64*)
13154	# +Z the default
13155	;;
13156      *)
13157	lt_prog_compiler_pic='-fPIC'
13158	;;
13159      esac
13160      ;;
13161
13162    interix[3-9]*)
13163      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13164      # Instead, we relocate shared libraries at runtime.
13165      ;;
13166
13167    msdosdjgpp*)
13168      # Just because we use GCC doesn't mean we suddenly get shared libraries
13169      # on systems that don't support them.
13170      lt_prog_compiler_can_build_shared=no
13171      enable_shared=no
13172      ;;
13173
13174    *nto* | *qnx*)
13175      # QNX uses GNU C++, but need to define -shared option too, otherwise
13176      # it will coredump.
13177      lt_prog_compiler_pic='-fPIC -shared'
13178      ;;
13179
13180    sysv4*MP*)
13181      if test -d /usr/nec; then
13182	lt_prog_compiler_pic=-Kconform_pic
13183      fi
13184      ;;
13185
13186    *)
13187      lt_prog_compiler_pic='-fPIC'
13188      ;;
13189    esac
13190
13191    case $cc_basename in
13192    nvcc*) # Cuda Compiler Driver 2.2
13193      lt_prog_compiler_wl='-Xlinker '
13194      if test -n "$lt_prog_compiler_pic"; then
13195        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13196      fi
13197      ;;
13198    esac
13199  else
13200    # PORTME Check for flag to pass linker flags through the system compiler.
13201    case $host_os in
13202    aix*)
13203      lt_prog_compiler_wl='-Wl,'
13204      if test ia64 = "$host_cpu"; then
13205	# AIX 5 now supports IA64 processor
13206	lt_prog_compiler_static='-Bstatic'
13207      else
13208	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13209      fi
13210      ;;
13211
13212    darwin* | rhapsody*)
13213      # PIC is the default on this platform
13214      # Common symbols not allowed in MH_DYLIB files
13215      lt_prog_compiler_pic='-fno-common'
13216      case $cc_basename in
13217      nagfor*)
13218        # NAG Fortran compiler
13219        lt_prog_compiler_wl='-Wl,-Wl,,'
13220        lt_prog_compiler_pic='-PIC'
13221        lt_prog_compiler_static='-Bstatic'
13222        ;;
13223      esac
13224      ;;
13225
13226    mingw* | cygwin* | pw32* | os2* | cegcc*)
13227      # This hack is so that the source file can tell whether it is being
13228      # built for inclusion in a dll (and should export symbols for example).
13229      lt_prog_compiler_pic='-DDLL_EXPORT'
13230      case $host_os in
13231      os2*)
13232	lt_prog_compiler_static='$wl-static'
13233	;;
13234      esac
13235      ;;
13236
13237    hpux9* | hpux10* | hpux11*)
13238      lt_prog_compiler_wl='-Wl,'
13239      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240      # not for PA HP-UX.
13241      case $host_cpu in
13242      hppa*64*|ia64*)
13243	# +Z the default
13244	;;
13245      *)
13246	lt_prog_compiler_pic='+Z'
13247	;;
13248      esac
13249      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13250      lt_prog_compiler_static='$wl-a ${wl}archive'
13251      ;;
13252
13253    irix5* | irix6* | nonstopux*)
13254      lt_prog_compiler_wl='-Wl,'
13255      # PIC (with -KPIC) is the default.
13256      lt_prog_compiler_static='-non_shared'
13257      ;;
13258
13259    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13260      case $cc_basename in
13261      # old Intel for x86_64, which still supported -KPIC.
13262      ecc*)
13263	lt_prog_compiler_wl='-Wl,'
13264	lt_prog_compiler_pic='-KPIC'
13265	lt_prog_compiler_static='-static'
13266        ;;
13267      # flang / f18. f95 an alias for gfortran or flang on Debian
13268      flang* | f18* | f95*)
13269	lt_prog_compiler_wl='-Wl,'
13270	lt_prog_compiler_pic='-fPIC'
13271	lt_prog_compiler_static='-static'
13272        ;;
13273      # icc used to be incompatible with GCC.
13274      # ICC 10 doesn't accept -KPIC any more.
13275      icc* | ifort*)
13276	lt_prog_compiler_wl='-Wl,'
13277	lt_prog_compiler_pic='-fPIC'
13278	lt_prog_compiler_static='-static'
13279        ;;
13280      # Lahey Fortran 8.1.
13281      lf95*)
13282	lt_prog_compiler_wl='-Wl,'
13283	lt_prog_compiler_pic='--shared'
13284	lt_prog_compiler_static='--static'
13285	;;
13286      nagfor*)
13287	# NAG Fortran compiler
13288	lt_prog_compiler_wl='-Wl,-Wl,,'
13289	lt_prog_compiler_pic='-PIC'
13290	lt_prog_compiler_static='-Bstatic'
13291	;;
13292      tcc*)
13293	# Fabrice Bellard et al's Tiny C Compiler
13294	lt_prog_compiler_wl='-Wl,'
13295	lt_prog_compiler_pic='-fPIC'
13296	lt_prog_compiler_static='-static'
13297	;;
13298      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13299        # Portland Group compilers (*not* the Pentium gcc compiler,
13300	# which looks to be a dead project)
13301	lt_prog_compiler_wl='-Wl,'
13302	lt_prog_compiler_pic='-fpic'
13303	lt_prog_compiler_static='-Bstatic'
13304        ;;
13305      ccc*)
13306        lt_prog_compiler_wl='-Wl,'
13307        # All Alpha code is PIC.
13308        lt_prog_compiler_static='-non_shared'
13309        ;;
13310      xl* | bgxl* | bgf* | mpixl*)
13311	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13312	lt_prog_compiler_wl='-Wl,'
13313	lt_prog_compiler_pic='-qpic'
13314	lt_prog_compiler_static='-qstaticlink'
13315	;;
13316      *)
13317	case `$CC -V 2>&1 | $SED 5q` in
13318	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13319	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13320	  lt_prog_compiler_pic='-KPIC'
13321	  lt_prog_compiler_static='-Bstatic'
13322	  lt_prog_compiler_wl=''
13323	  ;;
13324	*Sun\ F* | *Sun*Fortran*)
13325	  lt_prog_compiler_pic='-KPIC'
13326	  lt_prog_compiler_static='-Bstatic'
13327	  lt_prog_compiler_wl='-Qoption ld '
13328	  ;;
13329	*Sun\ C*)
13330	  # Sun C 5.9
13331	  lt_prog_compiler_pic='-KPIC'
13332	  lt_prog_compiler_static='-Bstatic'
13333	  lt_prog_compiler_wl='-Wl,'
13334	  ;;
13335        *Intel*\ [CF]*Compiler*)
13336	  lt_prog_compiler_wl='-Wl,'
13337	  lt_prog_compiler_pic='-fPIC'
13338	  lt_prog_compiler_static='-static'
13339	  ;;
13340	*Portland\ Group*)
13341	  lt_prog_compiler_wl='-Wl,'
13342	  lt_prog_compiler_pic='-fpic'
13343	  lt_prog_compiler_static='-Bstatic'
13344	  ;;
13345	esac
13346	;;
13347      esac
13348      ;;
13349
13350    newsos6)
13351      lt_prog_compiler_pic='-KPIC'
13352      lt_prog_compiler_static='-Bstatic'
13353      ;;
13354
13355    *nto* | *qnx*)
13356      # QNX uses GNU C++, but need to define -shared option too, otherwise
13357      # it will coredump.
13358      lt_prog_compiler_pic='-fPIC -shared'
13359      ;;
13360
13361    osf3* | osf4* | osf5*)
13362      lt_prog_compiler_wl='-Wl,'
13363      # All OSF/1 code is PIC.
13364      lt_prog_compiler_static='-non_shared'
13365      ;;
13366
13367    rdos*)
13368      lt_prog_compiler_static='-non_shared'
13369      ;;
13370
13371    solaris*)
13372      lt_prog_compiler_pic='-KPIC'
13373      lt_prog_compiler_static='-Bstatic'
13374      case $cc_basename in
13375      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13376	lt_prog_compiler_wl='-Qoption ld ';;
13377      *)
13378	lt_prog_compiler_wl='-Wl,';;
13379      esac
13380      ;;
13381
13382    sunos4*)
13383      lt_prog_compiler_wl='-Qoption ld '
13384      lt_prog_compiler_pic='-PIC'
13385      lt_prog_compiler_static='-Bstatic'
13386      ;;
13387
13388    sysv4 | sysv4.2uw2* | sysv4.3*)
13389      lt_prog_compiler_wl='-Wl,'
13390      lt_prog_compiler_pic='-KPIC'
13391      lt_prog_compiler_static='-Bstatic'
13392      ;;
13393
13394    sysv4*MP*)
13395      if test -d /usr/nec; then
13396	lt_prog_compiler_pic='-Kconform_pic'
13397	lt_prog_compiler_static='-Bstatic'
13398      fi
13399      ;;
13400
13401    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13402      lt_prog_compiler_wl='-Wl,'
13403      lt_prog_compiler_pic='-KPIC'
13404      lt_prog_compiler_static='-Bstatic'
13405      ;;
13406
13407    unicos*)
13408      lt_prog_compiler_wl='-Wl,'
13409      lt_prog_compiler_can_build_shared=no
13410      ;;
13411
13412    uts4*)
13413      lt_prog_compiler_pic='-pic'
13414      lt_prog_compiler_static='-Bstatic'
13415      ;;
13416
13417    *)
13418      lt_prog_compiler_can_build_shared=no
13419      ;;
13420    esac
13421  fi
13422
13423case $host_os in
13424  # For platforms that do not support PIC, -DPIC is meaningless:
13425  *djgpp*)
13426    lt_prog_compiler_pic=
13427    ;;
13428  *)
13429    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13430    ;;
13431esac
13432
13433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13434printf %s "checking for $compiler option to produce PIC... " >&6; }
13435if test ${lt_cv_prog_compiler_pic+y}
13436then :
13437  printf %s "(cached) " >&6
13438else $as_nop
13439  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13440fi
13441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13442printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13443lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13444
13445#
13446# Check to make sure the PIC flag actually works.
13447#
13448if test -n "$lt_prog_compiler_pic"; then
13449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13450printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13451if test ${lt_cv_prog_compiler_pic_works+y}
13452then :
13453  printf %s "(cached) " >&6
13454else $as_nop
13455  lt_cv_prog_compiler_pic_works=no
13456   ac_outfile=conftest.$ac_objext
13457   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13459   # Insert the option either (1) after the last *FLAGS variable, or
13460   # (2) before a word containing "conftest.", or (3) at the end.
13461   # Note that $ac_compile itself does not contain backslashes and begins
13462   # with a dollar sign (not a hyphen), so the echo should work correctly.
13463   # The option is referenced via a variable to avoid confusing sed.
13464   lt_compile=`echo "$ac_compile" | $SED \
13465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13467   -e 's:$: $lt_compiler_flag:'`
13468   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13469   (eval "$lt_compile" 2>conftest.err)
13470   ac_status=$?
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   if (exit $ac_status) && test -s "$ac_outfile"; then
13474     # The compiler can only warn and ignore the option if not recognized
13475     # So say no if there are warnings other than the usual output.
13476     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13477     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13478     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13479       lt_cv_prog_compiler_pic_works=yes
13480     fi
13481   fi
13482   $RM conftest*
13483
13484fi
13485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13486printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13487
13488if test yes = "$lt_cv_prog_compiler_pic_works"; then
13489    case $lt_prog_compiler_pic in
13490     "" | " "*) ;;
13491     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13492     esac
13493else
13494    lt_prog_compiler_pic=
13495     lt_prog_compiler_can_build_shared=no
13496fi
13497
13498fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510#
13511# Check to make sure the static flag actually works.
13512#
13513wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13515printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13516if test ${lt_cv_prog_compiler_static_works+y}
13517then :
13518  printf %s "(cached) " >&6
13519else $as_nop
13520  lt_cv_prog_compiler_static_works=no
13521   save_LDFLAGS=$LDFLAGS
13522   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13523   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13524   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13525     # The linker can only warn and ignore the option if not recognized
13526     # So say no if there are warnings
13527     if test -s conftest.err; then
13528       # Append any errors to the config.log.
13529       cat conftest.err 1>&5
13530       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13531       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13532       if diff conftest.exp conftest.er2 >/dev/null; then
13533         lt_cv_prog_compiler_static_works=yes
13534       fi
13535     else
13536       lt_cv_prog_compiler_static_works=yes
13537     fi
13538   fi
13539   $RM -r conftest*
13540   LDFLAGS=$save_LDFLAGS
13541
13542fi
13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13544printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13545
13546if test yes = "$lt_cv_prog_compiler_static_works"; then
13547    :
13548else
13549    lt_prog_compiler_static=
13550fi
13551
13552
13553
13554
13555
13556
13557
13558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13559printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13560if test ${lt_cv_prog_compiler_c_o+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  lt_cv_prog_compiler_c_o=no
13565   $RM -r conftest 2>/dev/null
13566   mkdir conftest
13567   cd conftest
13568   mkdir out
13569   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570
13571   lt_compiler_flag="-o out/conftest2.$ac_objext"
13572   # Insert the option either (1) after the last *FLAGS variable, or
13573   # (2) before a word containing "conftest.", or (3) at the end.
13574   # Note that $ac_compile itself does not contain backslashes and begins
13575   # with a dollar sign (not a hyphen), so the echo should work correctly.
13576   lt_compile=`echo "$ac_compile" | $SED \
13577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13579   -e 's:$: $lt_compiler_flag:'`
13580   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13581   (eval "$lt_compile" 2>out/conftest.err)
13582   ac_status=$?
13583   cat out/conftest.err >&5
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13586   then
13587     # The compiler can only warn and ignore the option if not recognized
13588     # So say no if there are warnings
13589     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13590     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13591     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13592       lt_cv_prog_compiler_c_o=yes
13593     fi
13594   fi
13595   chmod u+w . 2>&5
13596   $RM conftest*
13597   # SGI C++ compiler will create directory out/ii_files/ for
13598   # template instantiation
13599   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13600   $RM out/* && rmdir out
13601   cd ..
13602   $RM -r conftest
13603   $RM conftest*
13604
13605fi
13606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13607printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13608
13609
13610
13611
13612
13613
13614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13615printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13616if test ${lt_cv_prog_compiler_c_o+y}
13617then :
13618  printf %s "(cached) " >&6
13619else $as_nop
13620  lt_cv_prog_compiler_c_o=no
13621   $RM -r conftest 2>/dev/null
13622   mkdir conftest
13623   cd conftest
13624   mkdir out
13625   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627   lt_compiler_flag="-o out/conftest2.$ac_objext"
13628   # Insert the option either (1) after the last *FLAGS variable, or
13629   # (2) before a word containing "conftest.", or (3) at the end.
13630   # Note that $ac_compile itself does not contain backslashes and begins
13631   # with a dollar sign (not a hyphen), so the echo should work correctly.
13632   lt_compile=`echo "$ac_compile" | $SED \
13633   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635   -e 's:$: $lt_compiler_flag:'`
13636   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13637   (eval "$lt_compile" 2>out/conftest.err)
13638   ac_status=$?
13639   cat out/conftest.err >&5
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642   then
13643     # The compiler can only warn and ignore the option if not recognized
13644     # So say no if there are warnings
13645     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13646     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648       lt_cv_prog_compiler_c_o=yes
13649     fi
13650   fi
13651   chmod u+w . 2>&5
13652   $RM conftest*
13653   # SGI C++ compiler will create directory out/ii_files/ for
13654   # template instantiation
13655   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13656   $RM out/* && rmdir out
13657   cd ..
13658   $RM -r conftest
13659   $RM conftest*
13660
13661fi
13662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13663printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13664
13665
13666
13667
13668hard_links=nottested
13669if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13670  # do not overwrite the value of need_locks provided by the user
13671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13672printf %s "checking if we can lock with hard links... " >&6; }
13673  hard_links=yes
13674  $RM conftest*
13675  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676  touch conftest.a
13677  ln conftest.a conftest.b 2>&5 || hard_links=no
13678  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13680printf "%s\n" "$hard_links" >&6; }
13681  if test no = "$hard_links"; then
13682    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13683printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13684    need_locks=warn
13685  fi
13686else
13687  need_locks=no
13688fi
13689
13690
13691
13692
13693
13694
13695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13696printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13697
13698  runpath_var=
13699  allow_undefined_flag=
13700  always_export_symbols=no
13701  archive_cmds=
13702  archive_expsym_cmds=
13703  compiler_needs_object=no
13704  enable_shared_with_static_runtimes=no
13705  export_dynamic_flag_spec=
13706  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13707  hardcode_automatic=no
13708  hardcode_direct=no
13709  hardcode_direct_absolute=no
13710  hardcode_libdir_flag_spec=
13711  hardcode_libdir_separator=
13712  hardcode_minus_L=no
13713  hardcode_shlibpath_var=unsupported
13714  inherit_rpath=no
13715  link_all_deplibs=unknown
13716  module_cmds=
13717  module_expsym_cmds=
13718  old_archive_from_new_cmds=
13719  old_archive_from_expsyms_cmds=
13720  thread_safe_flag_spec=
13721  whole_archive_flag_spec=
13722  # include_expsyms should be a list of space-separated symbols to be *always*
13723  # included in the symbol list
13724  include_expsyms=
13725  # exclude_expsyms can be an extended regexp of symbols to exclude
13726  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13727  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13728  # as well as any symbol that contains 'd'.
13729  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13730  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13731  # platforms (ab)use it in PIC code, but their linkers get confused if
13732  # the symbol is explicitly referenced.  Since portable code cannot
13733  # rely on this symbol name, it's probably fine to never include it in
13734  # preloaded symbol tables.
13735  # Exclude shared library initialization/finalization symbols.
13736  extract_expsyms_cmds=
13737
13738  case $host_os in
13739  cygwin* | mingw* | pw32* | cegcc*)
13740    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13741    # When not using gcc, we currently assume that we are using
13742    # Microsoft Visual C++ or Intel C++ Compiler.
13743    if test yes != "$GCC"; then
13744      with_gnu_ld=no
13745    fi
13746    ;;
13747  interix*)
13748    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13749    with_gnu_ld=yes
13750    ;;
13751  openbsd* | bitrig*)
13752    with_gnu_ld=no
13753    ;;
13754  linux* | k*bsd*-gnu | gnu*)
13755    link_all_deplibs=no
13756    ;;
13757  esac
13758
13759  ld_shlibs=yes
13760
13761  # On some targets, GNU ld is compatible enough with the native linker
13762  # that we're better off using the native interface for both.
13763  lt_use_gnu_ld_interface=no
13764  if test yes = "$with_gnu_ld"; then
13765    case $host_os in
13766      aix*)
13767	# The AIX port of GNU ld has always aspired to compatibility
13768	# with the native linker.  However, as the warning in the GNU ld
13769	# block says, versions before 2.19.5* couldn't really create working
13770	# shared libraries, regardless of the interface used.
13771	case `$LD -v 2>&1` in
13772	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13773	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13774	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13775	  *)
13776	    lt_use_gnu_ld_interface=yes
13777	    ;;
13778	esac
13779	;;
13780      *)
13781	lt_use_gnu_ld_interface=yes
13782	;;
13783    esac
13784  fi
13785
13786  if test yes = "$lt_use_gnu_ld_interface"; then
13787    # If archive_cmds runs LD, not CC, wlarc should be empty
13788    wlarc='$wl'
13789
13790    # Set some defaults for GNU ld with shared library support. These
13791    # are reset later if shared libraries are not supported. Putting them
13792    # here allows them to be overridden if necessary.
13793    runpath_var=LD_RUN_PATH
13794    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13795    export_dynamic_flag_spec='$wl--export-dynamic'
13796    # ancient GNU ld didn't support --whole-archive et. al.
13797    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13798      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13799    else
13800      whole_archive_flag_spec=
13801    fi
13802    supports_anon_versioning=no
13803    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13804      *GNU\ gold*) supports_anon_versioning=yes ;;
13805      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13806      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13807      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13808      *\ 2.11.*) ;; # other 2.11 versions
13809      *) supports_anon_versioning=yes ;;
13810    esac
13811
13812    # See if GNU ld supports shared libraries.
13813    case $host_os in
13814    aix[3-9]*)
13815      # On AIX/PPC, the GNU linker is very broken
13816      if test ia64 != "$host_cpu"; then
13817	ld_shlibs=no
13818	cat <<_LT_EOF 1>&2
13819
13820*** Warning: the GNU linker, at least up to release 2.19, is reported
13821*** to be unable to reliably create shared libraries on AIX.
13822*** Therefore, libtool is disabling shared libraries support.  If you
13823*** really care for shared libraries, you may want to install binutils
13824*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13825*** You will then need to restart the configuration process.
13826
13827_LT_EOF
13828      fi
13829      ;;
13830
13831    amigaos*)
13832      case $host_cpu in
13833      powerpc)
13834            # see comment about AmigaOS4 .so support
13835            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13836            archive_expsym_cmds=''
13837        ;;
13838      m68k)
13839            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)'
13840            hardcode_libdir_flag_spec='-L$libdir'
13841            hardcode_minus_L=yes
13842        ;;
13843      esac
13844      ;;
13845
13846    beos*)
13847      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13848	allow_undefined_flag=unsupported
13849	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13850	# support --undefined.  This deserves some investigation.  FIXME
13851	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13852      else
13853	ld_shlibs=no
13854      fi
13855      ;;
13856
13857    cygwin* | mingw* | pw32* | cegcc*)
13858      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13859      # as there is no search path for DLLs.
13860      hardcode_libdir_flag_spec='-L$libdir'
13861      export_dynamic_flag_spec='$wl--export-all-symbols'
13862      allow_undefined_flag=unsupported
13863      always_export_symbols=no
13864      enable_shared_with_static_runtimes=yes
13865      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'
13866      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13867
13868      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13869        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13870	# If the export-symbols file already is a .def file, use it as
13871	# is; otherwise, prepend EXPORTS...
13872	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13873          cp $export_symbols $output_objdir/$soname.def;
13874        else
13875          echo EXPORTS > $output_objdir/$soname.def;
13876          cat $export_symbols >> $output_objdir/$soname.def;
13877        fi~
13878        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13879      else
13880	ld_shlibs=no
13881      fi
13882      ;;
13883
13884    haiku*)
13885      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13886      link_all_deplibs=yes
13887      ;;
13888
13889    os2*)
13890      hardcode_libdir_flag_spec='-L$libdir'
13891      hardcode_minus_L=yes
13892      allow_undefined_flag=unsupported
13893      shrext_cmds=.dll
13894      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13895	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13896	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13897	$ECHO EXPORTS >> $output_objdir/$libname.def~
13898	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13899	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13900	emximp -o $lib $output_objdir/$libname.def'
13901      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13902	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13903	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13904	$ECHO EXPORTS >> $output_objdir/$libname.def~
13905	prefix_cmds="$SED"~
13906	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13907	  prefix_cmds="$prefix_cmds -e 1d";
13908	fi~
13909	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13910	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13911	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13912	emximp -o $lib $output_objdir/$libname.def'
13913      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13914      enable_shared_with_static_runtimes=yes
13915      file_list_spec='@'
13916      ;;
13917
13918    interix[3-9]*)
13919      hardcode_direct=no
13920      hardcode_shlibpath_var=no
13921      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13922      export_dynamic_flag_spec='$wl-E'
13923      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13924      # Instead, shared libraries are loaded at an image base (0x10000000 by
13925      # default) and relocated if they conflict, which is a slow very memory
13926      # consuming and fragmenting process.  To avoid this, we pick a random,
13927      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13928      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13929      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13930      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'
13931      ;;
13932
13933    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13934      tmp_diet=no
13935      if test linux-dietlibc = "$host_os"; then
13936	case $cc_basename in
13937	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13938	esac
13939      fi
13940      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13941	 && test no = "$tmp_diet"
13942      then
13943	tmp_addflag=' $pic_flag'
13944	tmp_sharedflag='-shared'
13945	case $cc_basename,$host_cpu in
13946        pgcc*)				# Portland Group C compiler
13947	  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'
13948	  tmp_addflag=' $pic_flag'
13949	  ;;
13950	pgf77* | pgf90* | pgf95* | pgfortran*)
13951					# Portland Group f77 and f90 compilers
13952	  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'
13953	  tmp_addflag=' $pic_flag -Mnomain' ;;
13954	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13955	  tmp_addflag=' -i_dynamic' ;;
13956	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13957	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13958	ifc* | ifort*)			# Intel Fortran compiler
13959	  tmp_addflag=' -nofor_main' ;;
13960	lf95*)				# Lahey Fortran 8.1
13961	  whole_archive_flag_spec=
13962	  tmp_sharedflag='--shared' ;;
13963        nagfor*)                        # NAGFOR 5.3
13964          tmp_sharedflag='-Wl,-shared' ;;
13965	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13966	  tmp_sharedflag='-qmkshrobj'
13967	  tmp_addflag= ;;
13968	nvcc*)	# Cuda Compiler Driver 2.2
13969	  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'
13970	  compiler_needs_object=yes
13971	  ;;
13972	esac
13973	case `$CC -V 2>&1 | $SED 5q` in
13974	*Sun\ C*)			# Sun C 5.9
13975	  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'
13976	  compiler_needs_object=yes
13977	  tmp_sharedflag='-G' ;;
13978	*Sun\ F*)			# Sun Fortran 8.3
13979	  tmp_sharedflag='-G' ;;
13980	esac
13981	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13982
13983        if test yes = "$supports_anon_versioning"; then
13984          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13985            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13986            echo "local: *; };" >> $output_objdir/$libname.ver~
13987            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13988        fi
13989
13990	case $cc_basename in
13991	tcc*)
13992	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13993	  export_dynamic_flag_spec='-rdynamic'
13994	  ;;
13995	xlf* | bgf* | bgxlf* | mpixlf*)
13996	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13997	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13998	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13999	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14000	  if test yes = "$supports_anon_versioning"; then
14001	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14002              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14003              echo "local: *; };" >> $output_objdir/$libname.ver~
14004              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14005	  fi
14006	  ;;
14007	esac
14008      else
14009        ld_shlibs=no
14010      fi
14011      ;;
14012
14013    netbsd* | netbsdelf*-gnu)
14014      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14015	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14016	wlarc=
14017      else
14018	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14019	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14020      fi
14021      ;;
14022
14023    solaris*)
14024      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14025	ld_shlibs=no
14026	cat <<_LT_EOF 1>&2
14027
14028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14029*** create shared libraries on Solaris systems.  Therefore, libtool
14030*** is disabling shared libraries support.  We urge you to upgrade GNU
14031*** binutils to release 2.9.1 or newer.  Another option is to modify
14032*** your PATH or compiler configuration so that the native linker is
14033*** used, and then restart.
14034
14035_LT_EOF
14036      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14037	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14038	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14039      else
14040	ld_shlibs=no
14041      fi
14042      ;;
14043
14044    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14045      case `$LD -v 2>&1` in
14046        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14047	ld_shlibs=no
14048	cat <<_LT_EOF 1>&2
14049
14050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14051*** reliably create shared libraries on SCO systems.  Therefore, libtool
14052*** is disabling shared libraries support.  We urge you to upgrade GNU
14053*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14054*** your PATH or compiler configuration so that the native linker is
14055*** used, and then restart.
14056
14057_LT_EOF
14058	;;
14059	*)
14060	  # For security reasons, it is highly recommended that you always
14061	  # use absolute paths for naming shared libraries, and exclude the
14062	  # DT_RUNPATH tag from executables and libraries.  But doing so
14063	  # requires that you compile everything twice, which is a pain.
14064	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14066	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14067	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14068	  else
14069	    ld_shlibs=no
14070	  fi
14071	;;
14072      esac
14073      ;;
14074
14075    sunos4*)
14076      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14077      wlarc=
14078      hardcode_direct=yes
14079      hardcode_shlibpath_var=no
14080      ;;
14081
14082    *)
14083      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14084	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14085	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14086      else
14087	ld_shlibs=no
14088      fi
14089      ;;
14090    esac
14091
14092    if test no = "$ld_shlibs"; then
14093      runpath_var=
14094      hardcode_libdir_flag_spec=
14095      export_dynamic_flag_spec=
14096      whole_archive_flag_spec=
14097    fi
14098  else
14099    # PORTME fill in a description of your system's linker (not GNU ld)
14100    case $host_os in
14101    aix3*)
14102      allow_undefined_flag=unsupported
14103      always_export_symbols=yes
14104      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'
14105      # Note: this linker hardcodes the directories in LIBPATH if there
14106      # are no directories specified by -L.
14107      hardcode_minus_L=yes
14108      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14109	# Neither direct hardcoding nor static linking is supported with a
14110	# broken collect2.
14111	hardcode_direct=unsupported
14112      fi
14113      ;;
14114
14115    aix[4-9]*)
14116      if test ia64 = "$host_cpu"; then
14117	# On IA64, the linker does run time linking by default, so we don't
14118	# have to do anything special.
14119	aix_use_runtimelinking=no
14120	exp_sym_flag='-Bexport'
14121	no_entry_flag=
14122      else
14123	# If we're using GNU nm, then we don't want the "-C" option.
14124	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14125	# Without the "-l" option, or with the "-B" option, AIX nm treats
14126	# weak defined symbols like other global defined symbols, whereas
14127	# GNU nm marks them as "W".
14128	# While the 'weak' keyword is ignored in the Export File, we need
14129	# it in the Import File for the 'aix-soname' feature, so we have
14130	# to replace the "-B" option with "-P" for AIX nm.
14131	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14132	  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'
14133	else
14134	  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 == "L") || (\$ 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'
14135	fi
14136	aix_use_runtimelinking=no
14137
14138	# Test if we are trying to use run time linking or normal
14139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140	# have runtime linking enabled, and use it for executables.
14141	# For shared libraries, we enable/disable runtime linking
14142	# depending on the kind of the shared library created -
14143	# when "with_aix_soname,aix_use_runtimelinking" is:
14144	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14145	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14146	#            lib.a           static archive
14147	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14148	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14149	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14150	#            lib.a(lib.so.V) shared, rtl:no
14151	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14152	#            lib.a           static archive
14153	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154	  for ld_flag in $LDFLAGS; do
14155	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14156	    aix_use_runtimelinking=yes
14157	    break
14158	  fi
14159	  done
14160	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14161	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14162	    # so we don't have lib.a shared libs to link our executables.
14163	    # We have to force runtime linking in this case.
14164	    aix_use_runtimelinking=yes
14165	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14166	  fi
14167	  ;;
14168	esac
14169
14170	exp_sym_flag='-bexport'
14171	no_entry_flag='-bnoentry'
14172      fi
14173
14174      # When large executables or shared objects are built, AIX ld can
14175      # have problems creating the table of contents.  If linking a library
14176      # or program results in "error TOC overflow" add -mminimal-toc to
14177      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14178      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14179
14180      archive_cmds=''
14181      hardcode_direct=yes
14182      hardcode_direct_absolute=yes
14183      hardcode_libdir_separator=':'
14184      link_all_deplibs=yes
14185      file_list_spec='$wl-f,'
14186      case $with_aix_soname,$aix_use_runtimelinking in
14187      aix,*) ;; # traditional, no import file
14188      svr4,* | *,yes) # use import file
14189	# The Import File defines what to hardcode.
14190	hardcode_direct=no
14191	hardcode_direct_absolute=no
14192	;;
14193      esac
14194
14195      if test yes = "$GCC"; then
14196	case $host_os in aix4.[012]|aix4.[012].*)
14197	# We only want to do this on AIX 4.2 and lower, the check
14198	# below for broken collect2 doesn't work under 4.3+
14199	  collect2name=`$CC -print-prog-name=collect2`
14200	  if test -f "$collect2name" &&
14201	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14202	  then
14203	  # We have reworked collect2
14204	  :
14205	  else
14206	  # We have old collect2
14207	  hardcode_direct=unsupported
14208	  # It fails to find uninstalled libraries when the uninstalled
14209	  # path is not listed in the libpath.  Setting hardcode_minus_L
14210	  # to unsupported forces relinking
14211	  hardcode_minus_L=yes
14212	  hardcode_libdir_flag_spec='-L$libdir'
14213	  hardcode_libdir_separator=
14214	  fi
14215	  ;;
14216	esac
14217	shared_flag='-shared'
14218	if test yes = "$aix_use_runtimelinking"; then
14219	  shared_flag="$shared_flag "'$wl-G'
14220	fi
14221	# Need to ensure runtime linking is disabled for the traditional
14222	# shared library, or the linker may eventually find shared libraries
14223	# /with/ Import File - we do not want to mix them.
14224	shared_flag_aix='-shared'
14225	shared_flag_svr4='-shared $wl-G'
14226      else
14227	# not using gcc
14228	if test ia64 = "$host_cpu"; then
14229	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14230	# chokes on -Wl,-G. The following line is correct:
14231	  shared_flag='-G'
14232	else
14233	  if test yes = "$aix_use_runtimelinking"; then
14234	    shared_flag='$wl-G'
14235	  else
14236	    shared_flag='$wl-bM:SRE'
14237	  fi
14238	  shared_flag_aix='$wl-bM:SRE'
14239	  shared_flag_svr4='$wl-G'
14240	fi
14241      fi
14242
14243      export_dynamic_flag_spec='$wl-bexpall'
14244      # It seems that -bexpall does not export symbols beginning with
14245      # underscore (_), so it is better to generate a list of symbols to export.
14246      always_export_symbols=yes
14247      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14248	# Warning - without using the other runtime loading flags (-brtl),
14249	# -berok will link without error, but may produce a broken library.
14250	allow_undefined_flag='-berok'
14251        # Determine the default libpath from the value encoded in an
14252        # empty executable.
14253        if test set = "${lt_cv_aix_libpath+set}"; then
14254  aix_libpath=$lt_cv_aix_libpath
14255else
14256  if test ${lt_cv_aix_libpath_+y}
14257then :
14258  printf %s "(cached) " >&6
14259else $as_nop
14260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h.  */
14262
14263int main (void)
14264{
14265
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270if ac_fn_c_try_link "$LINENO"
14271then :
14272
14273  lt_aix_libpath_sed='
14274      /Import File Strings/,/^$/ {
14275	  /^0/ {
14276	      s/^0  *\([^ ]*\) *$/\1/
14277	      p
14278	  }
14279      }'
14280  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281  # Check for a 64-bit object if we didn't find anything.
14282  if test -z "$lt_cv_aix_libpath_"; then
14283    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14284  fi
14285fi
14286rm -f core conftest.err conftest.$ac_objext conftest.beam \
14287    conftest$ac_exeext conftest.$ac_ext
14288  if test -z "$lt_cv_aix_libpath_"; then
14289    lt_cv_aix_libpath_=/usr/lib:/lib
14290  fi
14291
14292fi
14293
14294  aix_libpath=$lt_cv_aix_libpath_
14295fi
14296
14297        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14298        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
14299      else
14300	if test ia64 = "$host_cpu"; then
14301	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14302	  allow_undefined_flag="-z nodefs"
14303	  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"
14304	else
14305	 # Determine the default libpath from the value encoded in an
14306	 # empty executable.
14307	 if test set = "${lt_cv_aix_libpath+set}"; then
14308  aix_libpath=$lt_cv_aix_libpath
14309else
14310  if test ${lt_cv_aix_libpath_+y}
14311then :
14312  printf %s "(cached) " >&6
14313else $as_nop
14314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h.  */
14316
14317int main (void)
14318{
14319
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324if ac_fn_c_try_link "$LINENO"
14325then :
14326
14327  lt_aix_libpath_sed='
14328      /Import File Strings/,/^$/ {
14329	  /^0/ {
14330	      s/^0  *\([^ ]*\) *$/\1/
14331	      p
14332	  }
14333      }'
14334  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14335  # Check for a 64-bit object if we didn't find anything.
14336  if test -z "$lt_cv_aix_libpath_"; then
14337    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14338  fi
14339fi
14340rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341    conftest$ac_exeext conftest.$ac_ext
14342  if test -z "$lt_cv_aix_libpath_"; then
14343    lt_cv_aix_libpath_=/usr/lib:/lib
14344  fi
14345
14346fi
14347
14348  aix_libpath=$lt_cv_aix_libpath_
14349fi
14350
14351	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14352	  # Warning - without using the other run time loading flags,
14353	  # -berok will link without error, but may produce a broken library.
14354	  no_undefined_flag=' $wl-bernotok'
14355	  allow_undefined_flag=' $wl-berok'
14356	  if test yes = "$with_gnu_ld"; then
14357	    # We only use this code for GNU lds that support --whole-archive.
14358	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14359	  else
14360	    # Exported symbols can be pulled into shared objects from archives
14361	    whole_archive_flag_spec='$convenience'
14362	  fi
14363	  archive_cmds_need_lc=yes
14364	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14365	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14366	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14367	  if test svr4 != "$with_aix_soname"; then
14368	    # This is similar to how AIX traditionally builds its shared libraries.
14369	    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'
14370	  fi
14371	  if test aix != "$with_aix_soname"; then
14372	    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'
14373	  else
14374	    # used by -dlpreopen to get the symbols
14375	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14376	  fi
14377	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14378	fi
14379      fi
14380      ;;
14381
14382    amigaos*)
14383      case $host_cpu in
14384      powerpc)
14385            # see comment about AmigaOS4 .so support
14386            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14387            archive_expsym_cmds=''
14388        ;;
14389      m68k)
14390            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)'
14391            hardcode_libdir_flag_spec='-L$libdir'
14392            hardcode_minus_L=yes
14393        ;;
14394      esac
14395      ;;
14396
14397    bsdi[45]*)
14398      export_dynamic_flag_spec=-rdynamic
14399      ;;
14400
14401    cygwin* | mingw* | pw32* | cegcc*)
14402      # When not using gcc, we currently assume that we are using
14403      # Microsoft Visual C++ or Intel C++ Compiler.
14404      # hardcode_libdir_flag_spec is actually meaningless, as there is
14405      # no search path for DLLs.
14406      case $cc_basename in
14407      cl* | icl*)
14408	# Native MSVC or ICC
14409	hardcode_libdir_flag_spec=' '
14410	allow_undefined_flag=unsupported
14411	always_export_symbols=yes
14412	file_list_spec='@'
14413	# Tell ltmain to make .lib files, not .a files.
14414	libext=lib
14415	# Tell ltmain to make .dll files, not .so files.
14416	shrext_cmds=.dll
14417	# FIXME: Setting linknames here is a bad hack.
14418	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14419	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14420            cp "$export_symbols" "$output_objdir/$soname.def";
14421            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14422          else
14423            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14424          fi~
14425          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14426          linknames='
14427	# The linker will not automatically build a static lib if we build a DLL.
14428	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14429	enable_shared_with_static_runtimes=yes
14430	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14431	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14432	# Don't use ranlib
14433	old_postinstall_cmds='chmod 644 $oldlib'
14434	postlink_cmds='lt_outputfile="@OUTPUT@"~
14435          lt_tool_outputfile="@TOOL_OUTPUT@"~
14436          case $lt_outputfile in
14437            *.exe|*.EXE) ;;
14438            *)
14439              lt_outputfile=$lt_outputfile.exe
14440              lt_tool_outputfile=$lt_tool_outputfile.exe
14441              ;;
14442          esac~
14443          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14444            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14445            $RM "$lt_outputfile.manifest";
14446          fi'
14447	;;
14448      *)
14449	# Assume MSVC and ICC wrapper
14450	hardcode_libdir_flag_spec=' '
14451	allow_undefined_flag=unsupported
14452	# Tell ltmain to make .lib files, not .a files.
14453	libext=lib
14454	# Tell ltmain to make .dll files, not .so files.
14455	shrext_cmds=.dll
14456	# FIXME: Setting linknames here is a bad hack.
14457	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14458	# The linker will automatically build a .lib file if we build a DLL.
14459	old_archive_from_new_cmds='true'
14460	# FIXME: Should let the user specify the lib program.
14461	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14462	enable_shared_with_static_runtimes=yes
14463	;;
14464      esac
14465      ;;
14466
14467    darwin* | rhapsody*)
14468
14469
14470  archive_cmds_need_lc=no
14471  hardcode_direct=no
14472  hardcode_automatic=yes
14473  hardcode_shlibpath_var=unsupported
14474  if test yes = "$lt_cv_ld_force_load"; then
14475    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\"`'
14476
14477  else
14478    whole_archive_flag_spec=''
14479  fi
14480  link_all_deplibs=yes
14481  allow_undefined_flag=$_lt_dar_allow_undefined
14482  case $cc_basename in
14483     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14484     *) _lt_dar_can_shared=$GCC ;;
14485  esac
14486  if test yes = "$_lt_dar_can_shared"; then
14487    output_verbose_link_cmd=func_echo_all
14488    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14489    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14490    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"
14491    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"
14492
14493  else
14494  ld_shlibs=no
14495  fi
14496
14497      ;;
14498
14499    dgux*)
14500      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501      hardcode_libdir_flag_spec='-L$libdir'
14502      hardcode_shlibpath_var=no
14503      ;;
14504
14505    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14506    # support.  Future versions do this automatically, but an explicit c++rt0.o
14507    # does not break anything, and helps significantly (at the cost of a little
14508    # extra space).
14509    freebsd2.2*)
14510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14511      hardcode_libdir_flag_spec='-R$libdir'
14512      hardcode_direct=yes
14513      hardcode_shlibpath_var=no
14514      ;;
14515
14516    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14517    freebsd2.*)
14518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14519      hardcode_direct=yes
14520      hardcode_minus_L=yes
14521      hardcode_shlibpath_var=no
14522      ;;
14523
14524    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14525    freebsd* | dragonfly* | midnightbsd*)
14526      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14527      hardcode_libdir_flag_spec='-R$libdir'
14528      hardcode_direct=yes
14529      hardcode_shlibpath_var=no
14530      ;;
14531
14532    hpux9*)
14533      if test yes = "$GCC"; then
14534	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 $output_objdir/$soname $lib'
14535      else
14536	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 $output_objdir/$soname $lib'
14537      fi
14538      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14539      hardcode_libdir_separator=:
14540      hardcode_direct=yes
14541
14542      # hardcode_minus_L: Not really in the search PATH,
14543      # but as the default location of the library.
14544      hardcode_minus_L=yes
14545      export_dynamic_flag_spec='$wl-E'
14546      ;;
14547
14548    hpux10*)
14549      if test yes,no = "$GCC,$with_gnu_ld"; then
14550	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14551      else
14552	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14553      fi
14554      if test no = "$with_gnu_ld"; then
14555	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14556	hardcode_libdir_separator=:
14557	hardcode_direct=yes
14558	hardcode_direct_absolute=yes
14559	export_dynamic_flag_spec='$wl-E'
14560	# hardcode_minus_L: Not really in the search PATH,
14561	# but as the default location of the library.
14562	hardcode_minus_L=yes
14563      fi
14564      ;;
14565
14566    hpux11*)
14567      if test yes,no = "$GCC,$with_gnu_ld"; then
14568	case $host_cpu in
14569	hppa*64*)
14570	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14571	  ;;
14572	ia64*)
14573	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14574	  ;;
14575	*)
14576	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577	  ;;
14578	esac
14579      else
14580	case $host_cpu in
14581	hppa*64*)
14582	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14583	  ;;
14584	ia64*)
14585	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14586	  ;;
14587	*)
14588
14589	  # Older versions of the 11.00 compiler do not understand -b yet
14590	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14591	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14592printf %s "checking if $CC understands -b... " >&6; }
14593if test ${lt_cv_prog_compiler__b+y}
14594then :
14595  printf %s "(cached) " >&6
14596else $as_nop
14597  lt_cv_prog_compiler__b=no
14598   save_LDFLAGS=$LDFLAGS
14599   LDFLAGS="$LDFLAGS -b"
14600   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14601   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14602     # The linker can only warn and ignore the option if not recognized
14603     # So say no if there are warnings
14604     if test -s conftest.err; then
14605       # Append any errors to the config.log.
14606       cat conftest.err 1>&5
14607       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14608       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14609       if diff conftest.exp conftest.er2 >/dev/null; then
14610         lt_cv_prog_compiler__b=yes
14611       fi
14612     else
14613       lt_cv_prog_compiler__b=yes
14614     fi
14615   fi
14616   $RM -r conftest*
14617   LDFLAGS=$save_LDFLAGS
14618
14619fi
14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14621printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14622
14623if test yes = "$lt_cv_prog_compiler__b"; then
14624    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14625else
14626    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14627fi
14628
14629	  ;;
14630	esac
14631      fi
14632      if test no = "$with_gnu_ld"; then
14633	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14634	hardcode_libdir_separator=:
14635
14636	case $host_cpu in
14637	hppa*64*|ia64*)
14638	  hardcode_direct=no
14639	  hardcode_shlibpath_var=no
14640	  ;;
14641	*)
14642	  hardcode_direct=yes
14643	  hardcode_direct_absolute=yes
14644	  export_dynamic_flag_spec='$wl-E'
14645
14646	  # hardcode_minus_L: Not really in the search PATH,
14647	  # but as the default location of the library.
14648	  hardcode_minus_L=yes
14649	  ;;
14650	esac
14651      fi
14652      ;;
14653
14654    irix5* | irix6* | nonstopux*)
14655      if test yes = "$GCC"; then
14656	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'
14657	# Try to use the -exported_symbol ld option, if it does not
14658	# work, assume that -exports_file does not work either and
14659	# implicitly export all symbols.
14660	# This should be the same for all languages, so no per-tag cache variable.
14661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14662printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14663if test ${lt_cv_irix_exported_symbol+y}
14664then :
14665  printf %s "(cached) " >&6
14666else $as_nop
14667  save_LDFLAGS=$LDFLAGS
14668	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14669	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671int foo (void) { return 0; }
14672_ACEOF
14673if ac_fn_c_try_link "$LINENO"
14674then :
14675  lt_cv_irix_exported_symbol=yes
14676else $as_nop
14677  lt_cv_irix_exported_symbol=no
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680    conftest$ac_exeext conftest.$ac_ext
14681           LDFLAGS=$save_LDFLAGS
14682fi
14683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14684printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14685	if test yes = "$lt_cv_irix_exported_symbol"; then
14686          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'
14687	fi
14688	link_all_deplibs=no
14689      else
14690	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'
14691	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'
14692      fi
14693      archive_cmds_need_lc='no'
14694      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14695      hardcode_libdir_separator=:
14696      inherit_rpath=yes
14697      link_all_deplibs=yes
14698      ;;
14699
14700    linux*)
14701      case $cc_basename in
14702      tcc*)
14703	# Fabrice Bellard et al's Tiny C Compiler
14704	ld_shlibs=yes
14705	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14706	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14707	;;
14708      esac
14709      ;;
14710
14711    netbsd* | netbsdelf*-gnu)
14712      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14713	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14714      else
14715	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14716      fi
14717      hardcode_libdir_flag_spec='-R$libdir'
14718      hardcode_direct=yes
14719      hardcode_shlibpath_var=no
14720      ;;
14721
14722    newsos6)
14723      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724      hardcode_direct=yes
14725      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14726      hardcode_libdir_separator=:
14727      hardcode_shlibpath_var=no
14728      ;;
14729
14730    *nto* | *qnx*)
14731      ;;
14732
14733    openbsd* | bitrig*)
14734      if test -f /usr/libexec/ld.so; then
14735	hardcode_direct=yes
14736	hardcode_shlibpath_var=no
14737	hardcode_direct_absolute=yes
14738	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14739	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14741	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14742	  export_dynamic_flag_spec='$wl-E'
14743	else
14744	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14745	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14746	fi
14747      else
14748	ld_shlibs=no
14749      fi
14750      ;;
14751
14752    os2*)
14753      hardcode_libdir_flag_spec='-L$libdir'
14754      hardcode_minus_L=yes
14755      allow_undefined_flag=unsupported
14756      shrext_cmds=.dll
14757      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14758	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14759	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14760	$ECHO EXPORTS >> $output_objdir/$libname.def~
14761	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14762	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14763	emximp -o $lib $output_objdir/$libname.def'
14764      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14765	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14766	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14767	$ECHO EXPORTS >> $output_objdir/$libname.def~
14768	prefix_cmds="$SED"~
14769	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14770	  prefix_cmds="$prefix_cmds -e 1d";
14771	fi~
14772	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14773	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14774	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14775	emximp -o $lib $output_objdir/$libname.def'
14776      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14777      enable_shared_with_static_runtimes=yes
14778      file_list_spec='@'
14779      ;;
14780
14781    osf3*)
14782      if test yes = "$GCC"; then
14783	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14784	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'
14785      else
14786	allow_undefined_flag=' -expect_unresolved \*'
14787	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'
14788      fi
14789      archive_cmds_need_lc='no'
14790      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14791      hardcode_libdir_separator=:
14792      ;;
14793
14794    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14795      if test yes = "$GCC"; then
14796	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14797	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'
14798	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14799      else
14800	allow_undefined_flag=' -expect_unresolved \*'
14801	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'
14802	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~
14803          $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'
14804
14805	# Both c and cxx compiler support -rpath directly
14806	hardcode_libdir_flag_spec='-rpath $libdir'
14807      fi
14808      archive_cmds_need_lc='no'
14809      hardcode_libdir_separator=:
14810      ;;
14811
14812    solaris*)
14813      no_undefined_flag=' -z defs'
14814      if test yes = "$GCC"; then
14815	wlarc='$wl'
14816	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14817	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14818          $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'
14819      else
14820	case `$CC -V 2>&1` in
14821	*"Compilers 5.0"*)
14822	  wlarc=''
14823	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14825            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14826	  ;;
14827	*)
14828	  wlarc='$wl'
14829	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14830	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14831            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14832	  ;;
14833	esac
14834      fi
14835      hardcode_libdir_flag_spec='-R$libdir'
14836      hardcode_shlibpath_var=no
14837      case $host_os in
14838      solaris2.[0-5] | solaris2.[0-5].*) ;;
14839      *)
14840	# The compiler driver will combine and reorder linker options,
14841	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14842	# but is careful enough not to reorder.
14843	# Supported since Solaris 2.6 (maybe 2.5.1?)
14844	if test yes = "$GCC"; then
14845	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14846	else
14847	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14848	fi
14849	;;
14850      esac
14851      link_all_deplibs=yes
14852      ;;
14853
14854    sunos4*)
14855      if test sequent = "$host_vendor"; then
14856	# Use $CC to link under sequent, because it throws in some extra .o
14857	# files that make .init and .fini sections work.
14858	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14859      else
14860	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14861      fi
14862      hardcode_libdir_flag_spec='-L$libdir'
14863      hardcode_direct=yes
14864      hardcode_minus_L=yes
14865      hardcode_shlibpath_var=no
14866      ;;
14867
14868    sysv4)
14869      case $host_vendor in
14870	sni)
14871	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872	  hardcode_direct=yes # is this really true???
14873	;;
14874	siemens)
14875	  ## LD is ld it makes a PLAMLIB
14876	  ## CC just makes a GrossModule.
14877	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14878	  reload_cmds='$CC -r -o $output$reload_objs'
14879	  hardcode_direct=no
14880        ;;
14881	motorola)
14882	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14884	;;
14885      esac
14886      runpath_var='LD_RUN_PATH'
14887      hardcode_shlibpath_var=no
14888      ;;
14889
14890    sysv4.3*)
14891      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892      hardcode_shlibpath_var=no
14893      export_dynamic_flag_spec='-Bexport'
14894      ;;
14895
14896    sysv4*MP*)
14897      if test -d /usr/nec; then
14898	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899	hardcode_shlibpath_var=no
14900	runpath_var=LD_RUN_PATH
14901	hardcode_runpath_var=yes
14902	ld_shlibs=yes
14903      fi
14904      ;;
14905
14906    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14907      no_undefined_flag='$wl-z,text'
14908      archive_cmds_need_lc=no
14909      hardcode_shlibpath_var=no
14910      runpath_var='LD_RUN_PATH'
14911
14912      if test yes = "$GCC"; then
14913	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915      else
14916	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14918      fi
14919      ;;
14920
14921    sysv5* | sco3.2v5* | sco5v6*)
14922      # Note: We CANNOT use -z defs as we might desire, because we do not
14923      # link with -lc, and that would cause any symbols used from libc to
14924      # always be unresolved, which means just about no library would
14925      # ever link correctly.  If we're not using GNU ld we use -z text
14926      # though, which does catch some bad symbols but isn't as heavy-handed
14927      # as -z defs.
14928      no_undefined_flag='$wl-z,text'
14929      allow_undefined_flag='$wl-z,nodefs'
14930      archive_cmds_need_lc=no
14931      hardcode_shlibpath_var=no
14932      hardcode_libdir_flag_spec='$wl-R,$libdir'
14933      hardcode_libdir_separator=':'
14934      link_all_deplibs=yes
14935      export_dynamic_flag_spec='$wl-Bexport'
14936      runpath_var='LD_RUN_PATH'
14937
14938      if test yes = "$GCC"; then
14939	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14940	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941      else
14942	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14944      fi
14945      ;;
14946
14947    uts4*)
14948      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949      hardcode_libdir_flag_spec='-L$libdir'
14950      hardcode_shlibpath_var=no
14951      ;;
14952
14953    *)
14954      ld_shlibs=no
14955      ;;
14956    esac
14957
14958    if test sni = "$host_vendor"; then
14959      case $host in
14960      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14961	export_dynamic_flag_spec='$wl-Blargedynsym'
14962	;;
14963      esac
14964    fi
14965  fi
14966
14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14968printf "%s\n" "$ld_shlibs" >&6; }
14969test no = "$ld_shlibs" && can_build_shared=no
14970
14971with_gnu_ld=$with_gnu_ld
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987#
14988# Do we need to explicitly link libc?
14989#
14990case "x$archive_cmds_need_lc" in
14991x|xyes)
14992  # Assume -lc should be added
14993  archive_cmds_need_lc=yes
14994
14995  if test yes,yes = "$GCC,$enable_shared"; then
14996    case $archive_cmds in
14997    *'~'*)
14998      # FIXME: we may have to deal with multi-command sequences.
14999      ;;
15000    '$CC '*)
15001      # Test whether the compiler implicitly links with -lc since on some
15002      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003      # to ld, don't add -lc before -lgcc.
15004      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15005printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15006if test ${lt_cv_archive_cmds_need_lc+y}
15007then :
15008  printf %s "(cached) " >&6
15009else $as_nop
15010  $RM conftest*
15011	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15012
15013	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15014  (eval $ac_compile) 2>&5
15015  ac_status=$?
15016  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017  test $ac_status = 0; } 2>conftest.err; then
15018	  soname=conftest
15019	  lib=conftest
15020	  libobjs=conftest.$ac_objext
15021	  deplibs=
15022	  wl=$lt_prog_compiler_wl
15023	  pic_flag=$lt_prog_compiler_pic
15024	  compiler_flags=-v
15025	  linker_flags=-v
15026	  verstring=
15027	  output_objdir=.
15028	  libname=conftest
15029	  lt_save_allow_undefined_flag=$allow_undefined_flag
15030	  allow_undefined_flag=
15031	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15032  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15033  ac_status=$?
15034  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035  test $ac_status = 0; }
15036	  then
15037	    lt_cv_archive_cmds_need_lc=no
15038	  else
15039	    lt_cv_archive_cmds_need_lc=yes
15040	  fi
15041	  allow_undefined_flag=$lt_save_allow_undefined_flag
15042	else
15043	  cat conftest.err 1>&5
15044	fi
15045	$RM conftest*
15046
15047fi
15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15049printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15050      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15051      ;;
15052    esac
15053  fi
15054  ;;
15055esac
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15209printf %s "checking dynamic linker characteristics... " >&6; }
15210
15211if test yes = "$GCC"; then
15212  case $host_os in
15213    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15214    *) lt_awk_arg='/^libraries:/' ;;
15215  esac
15216  case $host_os in
15217    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15218    *) lt_sed_strip_eq='s|=/|/|g' ;;
15219  esac
15220  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15221  case $lt_search_path_spec in
15222  *\;*)
15223    # if the path contains ";" then we assume it to be the separator
15224    # otherwise default to the standard path separator (i.e. ":") - it is
15225    # assumed that no part of a normal pathname contains ";" but that should
15226    # okay in the real world where ";" in dirpaths is itself problematic.
15227    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15228    ;;
15229  *)
15230    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15231    ;;
15232  esac
15233  # Ok, now we have the path, separated by spaces, we can step through it
15234  # and add multilib dir if necessary...
15235  lt_tmp_lt_search_path_spec=
15236  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15237  # ...but if some path component already ends with the multilib dir we assume
15238  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15239  case "$lt_multi_os_dir; $lt_search_path_spec " in
15240  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15241    lt_multi_os_dir=
15242    ;;
15243  esac
15244  for lt_sys_path in $lt_search_path_spec; do
15245    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15246      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15247    elif test -n "$lt_multi_os_dir"; then
15248      test -d "$lt_sys_path" && \
15249	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15250    fi
15251  done
15252  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15253BEGIN {RS = " "; FS = "/|\n";} {
15254  lt_foo = "";
15255  lt_count = 0;
15256  for (lt_i = NF; lt_i > 0; lt_i--) {
15257    if ($lt_i != "" && $lt_i != ".") {
15258      if ($lt_i == "..") {
15259        lt_count++;
15260      } else {
15261        if (lt_count == 0) {
15262          lt_foo = "/" $lt_i lt_foo;
15263        } else {
15264          lt_count--;
15265        }
15266      }
15267    }
15268  }
15269  if (lt_foo != "") { lt_freq[lt_foo]++; }
15270  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15271}'`
15272  # AWK program above erroneously prepends '/' to C:/dos/paths
15273  # for these hosts.
15274  case $host_os in
15275    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15276      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15277  esac
15278  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15279else
15280  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15281fi
15282library_names_spec=
15283libname_spec='lib$name'
15284soname_spec=
15285shrext_cmds=.so
15286postinstall_cmds=
15287postuninstall_cmds=
15288finish_cmds=
15289finish_eval=
15290shlibpath_var=
15291shlibpath_overrides_runpath=unknown
15292version_type=none
15293dynamic_linker="$host_os ld.so"
15294sys_lib_dlsearch_path_spec="/lib /usr/lib"
15295need_lib_prefix=unknown
15296hardcode_into_libs=no
15297
15298# when you set need_version to no, make sure it does not cause -set_version
15299# flags to be left without arguments
15300need_version=unknown
15301
15302
15303
15304case $host_os in
15305aix3*)
15306  version_type=linux # correct to gnu/linux during the next big refactor
15307  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15308  shlibpath_var=LIBPATH
15309
15310  # AIX 3 has no versioning support, so we append a major version to the name.
15311  soname_spec='$libname$release$shared_ext$major'
15312  ;;
15313
15314aix[4-9]*)
15315  version_type=linux # correct to gnu/linux during the next big refactor
15316  need_lib_prefix=no
15317  need_version=no
15318  hardcode_into_libs=yes
15319  if test ia64 = "$host_cpu"; then
15320    # AIX 5 supports IA64
15321    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15322    shlibpath_var=LD_LIBRARY_PATH
15323  else
15324    # With GCC up to 2.95.x, collect2 would create an import file
15325    # for dependence libraries.  The import file would start with
15326    # the line '#! .'.  This would cause the generated library to
15327    # depend on '.', always an invalid library.  This was fixed in
15328    # development snapshots of GCC prior to 3.0.
15329    case $host_os in
15330      aix4 | aix4.[01] | aix4.[01].*)
15331      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15332	   echo ' yes '
15333	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15334	:
15335      else
15336	can_build_shared=no
15337      fi
15338      ;;
15339    esac
15340    # Using Import Files as archive members, it is possible to support
15341    # filename-based versioning of shared library archives on AIX. While
15342    # this would work for both with and without runtime linking, it will
15343    # prevent static linking of such archives. So we do filename-based
15344    # shared library versioning with .so extension only, which is used
15345    # when both runtime linking and shared linking is enabled.
15346    # Unfortunately, runtime linking may impact performance, so we do
15347    # not want this to be the default eventually. Also, we use the
15348    # versioned .so libs for executables only if there is the -brtl
15349    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15350    # To allow for filename-based versioning support, we need to create
15351    # libNAME.so.V as an archive file, containing:
15352    # *) an Import File, referring to the versioned filename of the
15353    #    archive as well as the shared archive member, telling the
15354    #    bitwidth (32 or 64) of that shared object, and providing the
15355    #    list of exported symbols of that shared object, eventually
15356    #    decorated with the 'weak' keyword
15357    # *) the shared object with the F_LOADONLY flag set, to really avoid
15358    #    it being seen by the linker.
15359    # At run time we better use the real file rather than another symlink,
15360    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15361
15362    case $with_aix_soname,$aix_use_runtimelinking in
15363    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15364    # soname into executable. Probably we can add versioning support to
15365    # collect2, so additional links can be useful in future.
15366    aix,yes) # traditional libtool
15367      dynamic_linker='AIX unversionable lib.so'
15368      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15369      # instead of lib<name>.a to let people know that these are not
15370      # typical AIX shared libraries.
15371      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15372      ;;
15373    aix,no) # traditional AIX only
15374      dynamic_linker='AIX lib.a(lib.so.V)'
15375      # We preserve .a as extension for shared libraries through AIX4.2
15376      # and later when we are not doing run time linking.
15377      library_names_spec='$libname$release.a $libname.a'
15378      soname_spec='$libname$release$shared_ext$major'
15379      ;;
15380    svr4,*) # full svr4 only
15381      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15382      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15383      # We do not specify a path in Import Files, so LIBPATH fires.
15384      shlibpath_overrides_runpath=yes
15385      ;;
15386    *,yes) # both, prefer svr4
15387      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15388      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15389      # unpreferred sharedlib libNAME.a needs extra handling
15390      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"'
15391      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"'
15392      # We do not specify a path in Import Files, so LIBPATH fires.
15393      shlibpath_overrides_runpath=yes
15394      ;;
15395    *,no) # both, prefer aix
15396      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15397      library_names_spec='$libname$release.a $libname.a'
15398      soname_spec='$libname$release$shared_ext$major'
15399      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15400      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)'
15401      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"'
15402      ;;
15403    esac
15404    shlibpath_var=LIBPATH
15405  fi
15406  ;;
15407
15408amigaos*)
15409  case $host_cpu in
15410  powerpc)
15411    # Since July 2007 AmigaOS4 officially supports .so libraries.
15412    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15413    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15414    ;;
15415  m68k)
15416    library_names_spec='$libname.ixlibrary $libname.a'
15417    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15418    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'
15419    ;;
15420  esac
15421  ;;
15422
15423beos*)
15424  library_names_spec='$libname$shared_ext'
15425  dynamic_linker="$host_os ld.so"
15426  shlibpath_var=LIBRARY_PATH
15427  ;;
15428
15429bsdi[45]*)
15430  version_type=linux # correct to gnu/linux during the next big refactor
15431  need_version=no
15432  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15433  soname_spec='$libname$release$shared_ext$major'
15434  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435  shlibpath_var=LD_LIBRARY_PATH
15436  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438  # the default ld.so.conf also contains /usr/contrib/lib and
15439  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440  # libtool to hard-code these into programs
15441  ;;
15442
15443cygwin* | mingw* | pw32* | cegcc*)
15444  version_type=windows
15445  shrext_cmds=.dll
15446  need_version=no
15447  need_lib_prefix=no
15448
15449  case $GCC,$cc_basename in
15450  yes,*)
15451    # gcc
15452    library_names_spec='$libname.dll.a'
15453    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15454    postinstall_cmds='base_file=`basename \$file`~
15455      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15456      dldir=$destdir/`dirname \$dlpath`~
15457      test -d \$dldir || mkdir -p \$dldir~
15458      $install_prog $dir/$dlname \$dldir/$dlname~
15459      chmod a+x \$dldir/$dlname~
15460      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15461        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15462      fi'
15463    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464      dlpath=$dir/\$dldll~
15465       $RM \$dlpath'
15466    shlibpath_overrides_runpath=yes
15467
15468    case $host_os in
15469    cygwin*)
15470      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15471      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15472
15473      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15474      ;;
15475    mingw* | cegcc*)
15476      # MinGW DLLs use traditional 'lib' prefix
15477      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15478      ;;
15479    pw32*)
15480      # pw32 DLLs use 'pw' prefix rather than 'lib'
15481      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15482      ;;
15483    esac
15484    dynamic_linker='Win32 ld.exe'
15485    ;;
15486
15487  *,cl* | *,icl*)
15488    # Native MSVC or ICC
15489    libname_spec='$name'
15490    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15491    library_names_spec='$libname.dll.lib'
15492
15493    case $build_os in
15494    mingw*)
15495      sys_lib_search_path_spec=
15496      lt_save_ifs=$IFS
15497      IFS=';'
15498      for lt_path in $LIB
15499      do
15500        IFS=$lt_save_ifs
15501        # Let DOS variable expansion print the short 8.3 style file name.
15502        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15503        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15504      done
15505      IFS=$lt_save_ifs
15506      # Convert to MSYS style.
15507      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15508      ;;
15509    cygwin*)
15510      # Convert to unix form, then to dos form, then back to unix form
15511      # but this time dos style (no spaces!) so that the unix form looks
15512      # like /cygdrive/c/PROGRA~1:/cygdr...
15513      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15514      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15515      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15516      ;;
15517    *)
15518      sys_lib_search_path_spec=$LIB
15519      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15520        # It is most probably a Windows format PATH.
15521        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15522      else
15523        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15524      fi
15525      # FIXME: find the short name or the path components, as spaces are
15526      # common. (e.g. "Program Files" -> "PROGRA~1")
15527      ;;
15528    esac
15529
15530    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15531    postinstall_cmds='base_file=`basename \$file`~
15532      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15533      dldir=$destdir/`dirname \$dlpath`~
15534      test -d \$dldir || mkdir -p \$dldir~
15535      $install_prog $dir/$dlname \$dldir/$dlname'
15536    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15537      dlpath=$dir/\$dldll~
15538       $RM \$dlpath'
15539    shlibpath_overrides_runpath=yes
15540    dynamic_linker='Win32 link.exe'
15541    ;;
15542
15543  *)
15544    # Assume MSVC and ICC wrapper
15545    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15546    dynamic_linker='Win32 ld.exe'
15547    ;;
15548  esac
15549  # FIXME: first we should search . and the directory the executable is in
15550  shlibpath_var=PATH
15551  ;;
15552
15553darwin* | rhapsody*)
15554  dynamic_linker="$host_os dyld"
15555  version_type=darwin
15556  need_lib_prefix=no
15557  need_version=no
15558  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15559  soname_spec='$libname$release$major$shared_ext'
15560  shlibpath_overrides_runpath=yes
15561  shlibpath_var=DYLD_LIBRARY_PATH
15562  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15563
15564  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15565  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15566  ;;
15567
15568dgux*)
15569  version_type=linux # correct to gnu/linux during the next big refactor
15570  need_lib_prefix=no
15571  need_version=no
15572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15573  soname_spec='$libname$release$shared_ext$major'
15574  shlibpath_var=LD_LIBRARY_PATH
15575  ;;
15576
15577freebsd* | dragonfly* | midnightbsd*)
15578  # DragonFly does not have aout.  When/if they implement a new
15579  # versioning mechanism, adjust this.
15580  if test -x /usr/bin/objformat; then
15581    objformat=`/usr/bin/objformat`
15582  else
15583    case $host_os in
15584    freebsd[23].*) objformat=aout ;;
15585    *) objformat=elf ;;
15586    esac
15587  fi
15588  version_type=freebsd-$objformat
15589  case $version_type in
15590    freebsd-elf*)
15591      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15592      soname_spec='$libname$release$shared_ext$major'
15593      need_version=no
15594      need_lib_prefix=no
15595      ;;
15596    freebsd-*)
15597      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15598      need_version=yes
15599      ;;
15600  esac
15601  shlibpath_var=LD_LIBRARY_PATH
15602  case $host_os in
15603  freebsd2.*)
15604    shlibpath_overrides_runpath=yes
15605    ;;
15606  freebsd3.[01]* | freebsdelf3.[01]*)
15607    shlibpath_overrides_runpath=yes
15608    hardcode_into_libs=yes
15609    ;;
15610  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612    shlibpath_overrides_runpath=no
15613    hardcode_into_libs=yes
15614    ;;
15615  *) # from 4.6 on, and DragonFly
15616    shlibpath_overrides_runpath=yes
15617    hardcode_into_libs=yes
15618    ;;
15619  esac
15620  ;;
15621
15622haiku*)
15623  version_type=linux # correct to gnu/linux during the next big refactor
15624  need_lib_prefix=no
15625  need_version=no
15626  dynamic_linker="$host_os runtime_loader"
15627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15628  soname_spec='$libname$release$shared_ext$major'
15629  shlibpath_var=LIBRARY_PATH
15630  shlibpath_overrides_runpath=no
15631  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15632  hardcode_into_libs=yes
15633  ;;
15634
15635hpux9* | hpux10* | hpux11*)
15636  # Give a soname corresponding to the major version so that dld.sl refuses to
15637  # link against other versions.
15638  version_type=sunos
15639  need_lib_prefix=no
15640  need_version=no
15641  case $host_cpu in
15642  ia64*)
15643    shrext_cmds='.so'
15644    hardcode_into_libs=yes
15645    dynamic_linker="$host_os dld.so"
15646    shlibpath_var=LD_LIBRARY_PATH
15647    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15648    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15649    soname_spec='$libname$release$shared_ext$major'
15650    if test 32 = "$HPUX_IA64_MODE"; then
15651      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15652      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15653    else
15654      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15655      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15656    fi
15657    ;;
15658  hppa*64*)
15659    shrext_cmds='.sl'
15660    hardcode_into_libs=yes
15661    dynamic_linker="$host_os dld.sl"
15662    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15663    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15664    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665    soname_spec='$libname$release$shared_ext$major'
15666    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15667    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15668    ;;
15669  *)
15670    shrext_cmds='.sl'
15671    dynamic_linker="$host_os dld.sl"
15672    shlibpath_var=SHLIB_PATH
15673    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15674    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15675    soname_spec='$libname$release$shared_ext$major'
15676    ;;
15677  esac
15678  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15679  postinstall_cmds='chmod 555 $lib'
15680  # or fails outright, so override atomically:
15681  install_override_mode=555
15682  ;;
15683
15684interix[3-9]*)
15685  version_type=linux # correct to gnu/linux during the next big refactor
15686  need_lib_prefix=no
15687  need_version=no
15688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15689  soname_spec='$libname$release$shared_ext$major'
15690  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15691  shlibpath_var=LD_LIBRARY_PATH
15692  shlibpath_overrides_runpath=no
15693  hardcode_into_libs=yes
15694  ;;
15695
15696irix5* | irix6* | nonstopux*)
15697  case $host_os in
15698    nonstopux*) version_type=nonstopux ;;
15699    *)
15700	if test yes = "$lt_cv_prog_gnu_ld"; then
15701		version_type=linux # correct to gnu/linux during the next big refactor
15702	else
15703		version_type=irix
15704	fi ;;
15705  esac
15706  need_lib_prefix=no
15707  need_version=no
15708  soname_spec='$libname$release$shared_ext$major'
15709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15710  case $host_os in
15711  irix5* | nonstopux*)
15712    libsuff= shlibsuff=
15713    ;;
15714  *)
15715    case $LD in # libtool.m4 will add one of these switches to LD
15716    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15717      libsuff= shlibsuff= libmagic=32-bit;;
15718    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15719      libsuff=32 shlibsuff=N32 libmagic=N32;;
15720    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15721      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15722    *) libsuff= shlibsuff= libmagic=never-match;;
15723    esac
15724    ;;
15725  esac
15726  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15727  shlibpath_overrides_runpath=no
15728  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15729  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15730  hardcode_into_libs=yes
15731  ;;
15732
15733# No shared lib support for Linux oldld, aout, or coff.
15734linux*oldld* | linux*aout* | linux*coff*)
15735  dynamic_linker=no
15736  ;;
15737
15738linux*android*)
15739  version_type=none # Android doesn't support versioned libraries.
15740  need_lib_prefix=no
15741  need_version=no
15742  library_names_spec='$libname$release$shared_ext'
15743  soname_spec='$libname$release$shared_ext'
15744  finish_cmds=
15745  shlibpath_var=LD_LIBRARY_PATH
15746  shlibpath_overrides_runpath=yes
15747
15748  # This implies no fast_install, which is unacceptable.
15749  # Some rework will be needed to allow for fast_install
15750  # before this can be enabled.
15751  hardcode_into_libs=yes
15752
15753  dynamic_linker='Android linker'
15754  # Don't embed -rpath directories since the linker doesn't support them.
15755  hardcode_libdir_flag_spec='-L$libdir'
15756  ;;
15757
15758# This must be glibc/ELF.
15759linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15760  version_type=linux # correct to gnu/linux during the next big refactor
15761  need_lib_prefix=no
15762  need_version=no
15763  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15764  soname_spec='$libname$release$shared_ext$major'
15765  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15766  shlibpath_var=LD_LIBRARY_PATH
15767  shlibpath_overrides_runpath=no
15768
15769  # Some binutils ld are patched to set DT_RUNPATH
15770  if test ${lt_cv_shlibpath_overrides_runpath+y}
15771then :
15772  printf %s "(cached) " >&6
15773else $as_nop
15774  lt_cv_shlibpath_overrides_runpath=no
15775    save_LDFLAGS=$LDFLAGS
15776    save_libdir=$libdir
15777    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15778	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780/* end confdefs.h.  */
15781
15782int main (void)
15783{
15784
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789if ac_fn_c_try_link "$LINENO"
15790then :
15791  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15792then :
15793  lt_cv_shlibpath_overrides_runpath=yes
15794fi
15795fi
15796rm -f core conftest.err conftest.$ac_objext conftest.beam \
15797    conftest$ac_exeext conftest.$ac_ext
15798    LDFLAGS=$save_LDFLAGS
15799    libdir=$save_libdir
15800
15801fi
15802
15803  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15804
15805  # This implies no fast_install, which is unacceptable.
15806  # Some rework will be needed to allow for fast_install
15807  # before this can be enabled.
15808  hardcode_into_libs=yes
15809
15810  # Ideally, we could use ldconfig to report *all* directores which are
15811  # searched for libraries, however this is still not possible.  Aside from not
15812  # being certain /sbin/ldconfig is available, command
15813  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15814  # even though it is searched at run-time.  Try to do the best guess by
15815  # appending ld.so.conf contents (and includes) to the search path.
15816  if test -f /etc/ld.so.conf; then
15817    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' ' '`
15818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15819  fi
15820
15821  # We used to test for /lib/ld.so.1 and disable shared libraries on
15822  # powerpc, because MkLinux only supported shared libraries with the
15823  # GNU dynamic linker.  Since this was broken with cross compilers,
15824  # most powerpc-linux boxes support dynamic linking these days and
15825  # people can always --disable-shared, the test was removed, and we
15826  # assume the GNU/Linux dynamic linker is in use.
15827  dynamic_linker='GNU/Linux ld.so'
15828  ;;
15829
15830netbsdelf*-gnu)
15831  version_type=linux
15832  need_lib_prefix=no
15833  need_version=no
15834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835  soname_spec='${libname}${release}${shared_ext}$major'
15836  shlibpath_var=LD_LIBRARY_PATH
15837  shlibpath_overrides_runpath=no
15838  hardcode_into_libs=yes
15839  dynamic_linker='NetBSD ld.elf_so'
15840  ;;
15841
15842netbsd*)
15843  version_type=sunos
15844  need_lib_prefix=no
15845  need_version=no
15846  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15847    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15848    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15849    dynamic_linker='NetBSD (a.out) ld.so'
15850  else
15851    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15852    soname_spec='$libname$release$shared_ext$major'
15853    dynamic_linker='NetBSD ld.elf_so'
15854  fi
15855  shlibpath_var=LD_LIBRARY_PATH
15856  shlibpath_overrides_runpath=yes
15857  hardcode_into_libs=yes
15858  ;;
15859
15860newsos6)
15861  version_type=linux # correct to gnu/linux during the next big refactor
15862  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15863  shlibpath_var=LD_LIBRARY_PATH
15864  shlibpath_overrides_runpath=yes
15865  ;;
15866
15867*nto* | *qnx*)
15868  version_type=qnx
15869  need_lib_prefix=no
15870  need_version=no
15871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872  soname_spec='$libname$release$shared_ext$major'
15873  shlibpath_var=LD_LIBRARY_PATH
15874  shlibpath_overrides_runpath=no
15875  hardcode_into_libs=yes
15876  dynamic_linker='ldqnx.so'
15877  ;;
15878
15879openbsd* | bitrig*)
15880  version_type=sunos
15881  sys_lib_dlsearch_path_spec=/usr/lib
15882  need_lib_prefix=no
15883  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15884    need_version=no
15885  else
15886    need_version=yes
15887  fi
15888  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15890  shlibpath_var=LD_LIBRARY_PATH
15891  shlibpath_overrides_runpath=yes
15892  ;;
15893
15894os2*)
15895  libname_spec='$name'
15896  version_type=windows
15897  shrext_cmds=.dll
15898  need_version=no
15899  need_lib_prefix=no
15900  # OS/2 can only load a DLL with a base name of 8 characters or less.
15901  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15902    v=$($ECHO $release$versuffix | tr -d .-);
15903    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15904    $ECHO $n$v`$shared_ext'
15905  library_names_spec='${libname}_dll.$libext'
15906  dynamic_linker='OS/2 ld.exe'
15907  shlibpath_var=BEGINLIBPATH
15908  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15909  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15910  postinstall_cmds='base_file=`basename \$file`~
15911    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15912    dldir=$destdir/`dirname \$dlpath`~
15913    test -d \$dldir || mkdir -p \$dldir~
15914    $install_prog $dir/$dlname \$dldir/$dlname~
15915    chmod a+x \$dldir/$dlname~
15916    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15917      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15918    fi'
15919  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15920    dlpath=$dir/\$dldll~
15921    $RM \$dlpath'
15922  ;;
15923
15924osf3* | osf4* | osf5*)
15925  version_type=osf
15926  need_lib_prefix=no
15927  need_version=no
15928  soname_spec='$libname$release$shared_ext$major'
15929  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15930  shlibpath_var=LD_LIBRARY_PATH
15931  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15932  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933  ;;
15934
15935rdos*)
15936  dynamic_linker=no
15937  ;;
15938
15939solaris*)
15940  version_type=linux # correct to gnu/linux during the next big refactor
15941  need_lib_prefix=no
15942  need_version=no
15943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15944  soname_spec='$libname$release$shared_ext$major'
15945  shlibpath_var=LD_LIBRARY_PATH
15946  shlibpath_overrides_runpath=yes
15947  hardcode_into_libs=yes
15948  # ldd complains unless libraries are executable
15949  postinstall_cmds='chmod +x $lib'
15950  ;;
15951
15952sunos4*)
15953  version_type=sunos
15954  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15955  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15956  shlibpath_var=LD_LIBRARY_PATH
15957  shlibpath_overrides_runpath=yes
15958  if test yes = "$with_gnu_ld"; then
15959    need_lib_prefix=no
15960  fi
15961  need_version=yes
15962  ;;
15963
15964sysv4 | sysv4.3*)
15965  version_type=linux # correct to gnu/linux during the next big refactor
15966  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15967  soname_spec='$libname$release$shared_ext$major'
15968  shlibpath_var=LD_LIBRARY_PATH
15969  case $host_vendor in
15970    sni)
15971      shlibpath_overrides_runpath=no
15972      need_lib_prefix=no
15973      runpath_var=LD_RUN_PATH
15974      ;;
15975    siemens)
15976      need_lib_prefix=no
15977      ;;
15978    motorola)
15979      need_lib_prefix=no
15980      need_version=no
15981      shlibpath_overrides_runpath=no
15982      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15983      ;;
15984  esac
15985  ;;
15986
15987sysv4*MP*)
15988  if test -d /usr/nec; then
15989    version_type=linux # correct to gnu/linux during the next big refactor
15990    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15991    soname_spec='$libname$shared_ext.$major'
15992    shlibpath_var=LD_LIBRARY_PATH
15993  fi
15994  ;;
15995
15996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15997  version_type=sco
15998  need_lib_prefix=no
15999  need_version=no
16000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16001  soname_spec='$libname$release$shared_ext$major'
16002  shlibpath_var=LD_LIBRARY_PATH
16003  shlibpath_overrides_runpath=yes
16004  hardcode_into_libs=yes
16005  if test yes = "$with_gnu_ld"; then
16006    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16007  else
16008    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16009    case $host_os in
16010      sco3.2v5*)
16011        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16012	;;
16013    esac
16014  fi
16015  sys_lib_dlsearch_path_spec='/usr/lib'
16016  ;;
16017
16018tpf*)
16019  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16020  version_type=linux # correct to gnu/linux during the next big refactor
16021  need_lib_prefix=no
16022  need_version=no
16023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16024  shlibpath_var=LD_LIBRARY_PATH
16025  shlibpath_overrides_runpath=no
16026  hardcode_into_libs=yes
16027  ;;
16028
16029uts4*)
16030  version_type=linux # correct to gnu/linux during the next big refactor
16031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032  soname_spec='$libname$release$shared_ext$major'
16033  shlibpath_var=LD_LIBRARY_PATH
16034  ;;
16035
16036*)
16037  dynamic_linker=no
16038  ;;
16039esac
16040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16041printf "%s\n" "$dynamic_linker" >&6; }
16042test no = "$dynamic_linker" && can_build_shared=no
16043
16044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16045if test yes = "$GCC"; then
16046  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16047fi
16048
16049if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16050  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16051fi
16052
16053if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16054  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16055fi
16056
16057# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16058configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16059
16060# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16061func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16062
16063# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16064configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16163printf %s "checking how to hardcode library paths into programs... " >&6; }
16164hardcode_action=
16165if test -n "$hardcode_libdir_flag_spec" ||
16166   test -n "$runpath_var" ||
16167   test yes = "$hardcode_automatic"; then
16168
16169  # We can hardcode non-existent directories.
16170  if test no != "$hardcode_direct" &&
16171     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16172     # have to relink, otherwise we might link with an installed library
16173     # when we should be linking with a yet-to-be-installed one
16174     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16175     test no != "$hardcode_minus_L"; then
16176    # Linking always hardcodes the temporary library directory.
16177    hardcode_action=relink
16178  else
16179    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16180    hardcode_action=immediate
16181  fi
16182else
16183  # We cannot hardcode anything, or else we can only hardcode existing
16184  # directories.
16185  hardcode_action=unsupported
16186fi
16187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16188printf "%s\n" "$hardcode_action" >&6; }
16189
16190if test relink = "$hardcode_action" ||
16191   test yes = "$inherit_rpath"; then
16192  # Fast installation is not supported
16193  enable_fast_install=no
16194elif test yes = "$shlibpath_overrides_runpath" ||
16195     test no = "$enable_shared"; then
16196  # Fast installation is not necessary
16197  enable_fast_install=needless
16198fi
16199
16200
16201
16202
16203
16204
16205  if test yes != "$enable_dlopen"; then
16206  enable_dlopen=unknown
16207  enable_dlopen_self=unknown
16208  enable_dlopen_self_static=unknown
16209else
16210  lt_cv_dlopen=no
16211  lt_cv_dlopen_libs=
16212
16213  case $host_os in
16214  beos*)
16215    lt_cv_dlopen=load_add_on
16216    lt_cv_dlopen_libs=
16217    lt_cv_dlopen_self=yes
16218    ;;
16219
16220  mingw* | pw32* | cegcc*)
16221    lt_cv_dlopen=LoadLibrary
16222    lt_cv_dlopen_libs=
16223    ;;
16224
16225  cygwin*)
16226    lt_cv_dlopen=dlopen
16227    lt_cv_dlopen_libs=
16228    ;;
16229
16230  darwin*)
16231    # if libdl is installed we need to link against it
16232    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16233printf %s "checking for dlopen in -ldl... " >&6; }
16234if test ${ac_cv_lib_dl_dlopen+y}
16235then :
16236  printf %s "(cached) " >&6
16237else $as_nop
16238  ac_check_lib_save_LIBS=$LIBS
16239LIBS="-ldl  $LIBS"
16240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241/* end confdefs.h.  */
16242
16243
16244#ifdef __cplusplus
16245extern "C"
16246#endif
16247char dlopen ();
16248int main (void)
16249{
16250return dlopen ();
16251 ;
16252 return 0;
16253}
16254_ACEOF
16255if ac_fn_c_try_link "$LINENO"
16256then :
16257  ac_cv_lib_dl_dlopen=yes
16258else $as_nop
16259  ac_cv_lib_dl_dlopen=no
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.beam \
16262    conftest$ac_exeext conftest.$ac_ext
16263LIBS=$ac_check_lib_save_LIBS
16264fi
16265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16266printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16267if test "x$ac_cv_lib_dl_dlopen" = xyes
16268then :
16269  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16270else $as_nop
16271
16272    lt_cv_dlopen=dyld
16273    lt_cv_dlopen_libs=
16274    lt_cv_dlopen_self=yes
16275
16276fi
16277
16278    ;;
16279
16280  tpf*)
16281    # Don't try to run any link tests for TPF.  We know it's impossible
16282    # because TPF is a cross-compiler, and we know how we open DSOs.
16283    lt_cv_dlopen=dlopen
16284    lt_cv_dlopen_libs=
16285    lt_cv_dlopen_self=no
16286    ;;
16287
16288  *)
16289    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16290if test "x$ac_cv_func_shl_load" = xyes
16291then :
16292  lt_cv_dlopen=shl_load
16293else $as_nop
16294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16295printf %s "checking for shl_load in -ldld... " >&6; }
16296if test ${ac_cv_lib_dld_shl_load+y}
16297then :
16298  printf %s "(cached) " >&6
16299else $as_nop
16300  ac_check_lib_save_LIBS=$LIBS
16301LIBS="-ldld  $LIBS"
16302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303/* end confdefs.h.  */
16304
16305
16306#ifdef __cplusplus
16307extern "C"
16308#endif
16309char shl_load ();
16310int main (void)
16311{
16312return shl_load ();
16313 ;
16314 return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_link "$LINENO"
16318then :
16319  ac_cv_lib_dld_shl_load=yes
16320else $as_nop
16321  ac_cv_lib_dld_shl_load=no
16322fi
16323rm -f core conftest.err conftest.$ac_objext conftest.beam \
16324    conftest$ac_exeext conftest.$ac_ext
16325LIBS=$ac_check_lib_save_LIBS
16326fi
16327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16328printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16329if test "x$ac_cv_lib_dld_shl_load" = xyes
16330then :
16331  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16332else $as_nop
16333  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16334if test "x$ac_cv_func_dlopen" = xyes
16335then :
16336  lt_cv_dlopen=dlopen
16337else $as_nop
16338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16339printf %s "checking for dlopen in -ldl... " >&6; }
16340if test ${ac_cv_lib_dl_dlopen+y}
16341then :
16342  printf %s "(cached) " >&6
16343else $as_nop
16344  ac_check_lib_save_LIBS=$LIBS
16345LIBS="-ldl  $LIBS"
16346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347/* end confdefs.h.  */
16348
16349
16350#ifdef __cplusplus
16351extern "C"
16352#endif
16353char dlopen ();
16354int main (void)
16355{
16356return dlopen ();
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361if ac_fn_c_try_link "$LINENO"
16362then :
16363  ac_cv_lib_dl_dlopen=yes
16364else $as_nop
16365  ac_cv_lib_dl_dlopen=no
16366fi
16367rm -f core conftest.err conftest.$ac_objext conftest.beam \
16368    conftest$ac_exeext conftest.$ac_ext
16369LIBS=$ac_check_lib_save_LIBS
16370fi
16371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16372printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16373if test "x$ac_cv_lib_dl_dlopen" = xyes
16374then :
16375  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16376else $as_nop
16377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16378printf %s "checking for dlopen in -lsvld... " >&6; }
16379if test ${ac_cv_lib_svld_dlopen+y}
16380then :
16381  printf %s "(cached) " >&6
16382else $as_nop
16383  ac_check_lib_save_LIBS=$LIBS
16384LIBS="-lsvld  $LIBS"
16385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h.  */
16387
16388
16389#ifdef __cplusplus
16390extern "C"
16391#endif
16392char dlopen ();
16393int main (void)
16394{
16395return dlopen ();
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400if ac_fn_c_try_link "$LINENO"
16401then :
16402  ac_cv_lib_svld_dlopen=yes
16403else $as_nop
16404  ac_cv_lib_svld_dlopen=no
16405fi
16406rm -f core conftest.err conftest.$ac_objext conftest.beam \
16407    conftest$ac_exeext conftest.$ac_ext
16408LIBS=$ac_check_lib_save_LIBS
16409fi
16410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16411printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16412if test "x$ac_cv_lib_svld_dlopen" = xyes
16413then :
16414  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16415else $as_nop
16416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16417printf %s "checking for dld_link in -ldld... " >&6; }
16418if test ${ac_cv_lib_dld_dld_link+y}
16419then :
16420  printf %s "(cached) " >&6
16421else $as_nop
16422  ac_check_lib_save_LIBS=$LIBS
16423LIBS="-ldld  $LIBS"
16424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426
16427
16428#ifdef __cplusplus
16429extern "C"
16430#endif
16431char dld_link ();
16432int main (void)
16433{
16434return dld_link ();
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"
16440then :
16441  ac_cv_lib_dld_dld_link=yes
16442else $as_nop
16443  ac_cv_lib_dld_dld_link=no
16444fi
16445rm -f core conftest.err conftest.$ac_objext conftest.beam \
16446    conftest$ac_exeext conftest.$ac_ext
16447LIBS=$ac_check_lib_save_LIBS
16448fi
16449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16450printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16451if test "x$ac_cv_lib_dld_dld_link" = xyes
16452then :
16453  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16454fi
16455
16456
16457fi
16458
16459
16460fi
16461
16462
16463fi
16464
16465
16466fi
16467
16468
16469fi
16470
16471    ;;
16472  esac
16473
16474  if test no = "$lt_cv_dlopen"; then
16475    enable_dlopen=no
16476  else
16477    enable_dlopen=yes
16478  fi
16479
16480  case $lt_cv_dlopen in
16481  dlopen)
16482    save_CPPFLAGS=$CPPFLAGS
16483    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16484
16485    save_LDFLAGS=$LDFLAGS
16486    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16487
16488    save_LIBS=$LIBS
16489    LIBS="$lt_cv_dlopen_libs $LIBS"
16490
16491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16492printf %s "checking whether a program can dlopen itself... " >&6; }
16493if test ${lt_cv_dlopen_self+y}
16494then :
16495  printf %s "(cached) " >&6
16496else $as_nop
16497  	  if test yes = "$cross_compiling"; then :
16498  lt_cv_dlopen_self=cross
16499else
16500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16501  lt_status=$lt_dlunknown
16502  cat > conftest.$ac_ext <<_LT_EOF
16503#line $LINENO "configure"
16504#include "confdefs.h"
16505
16506#if HAVE_DLFCN_H
16507#include <dlfcn.h>
16508#endif
16509
16510#include <stdio.h>
16511
16512#ifdef RTLD_GLOBAL
16513#  define LT_DLGLOBAL		RTLD_GLOBAL
16514#else
16515#  ifdef DL_GLOBAL
16516#    define LT_DLGLOBAL		DL_GLOBAL
16517#  else
16518#    define LT_DLGLOBAL		0
16519#  endif
16520#endif
16521
16522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16523   find out it does not work in some platform. */
16524#ifndef LT_DLLAZY_OR_NOW
16525#  ifdef RTLD_LAZY
16526#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16527#  else
16528#    ifdef DL_LAZY
16529#      define LT_DLLAZY_OR_NOW		DL_LAZY
16530#    else
16531#      ifdef RTLD_NOW
16532#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16533#      else
16534#        ifdef DL_NOW
16535#          define LT_DLLAZY_OR_NOW	DL_NOW
16536#        else
16537#          define LT_DLLAZY_OR_NOW	0
16538#        endif
16539#      endif
16540#    endif
16541#  endif
16542#endif
16543
16544/* When -fvisibility=hidden is used, assume the code has been annotated
16545   correspondingly for the symbols needed.  */
16546#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16547int fnord () __attribute__((visibility("default")));
16548#endif
16549
16550int fnord () { return 42; }
16551int main ()
16552{
16553  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16554  int status = $lt_dlunknown;
16555
16556  if (self)
16557    {
16558      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16559      else
16560        {
16561	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16562          else puts (dlerror ());
16563	}
16564      /* dlclose (self); */
16565    }
16566  else
16567    puts (dlerror ());
16568
16569  return status;
16570}
16571_LT_EOF
16572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16573  (eval $ac_link) 2>&5
16574  ac_status=$?
16575  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16577    (./conftest; exit; ) >&5 2>/dev/null
16578    lt_status=$?
16579    case x$lt_status in
16580      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16581      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16582      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16583    esac
16584  else :
16585    # compilation failed
16586    lt_cv_dlopen_self=no
16587  fi
16588fi
16589rm -fr conftest*
16590
16591
16592fi
16593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16594printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16595
16596    if test yes = "$lt_cv_dlopen_self"; then
16597      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16598      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16599printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16600if test ${lt_cv_dlopen_self_static+y}
16601then :
16602  printf %s "(cached) " >&6
16603else $as_nop
16604  	  if test yes = "$cross_compiling"; then :
16605  lt_cv_dlopen_self_static=cross
16606else
16607  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16608  lt_status=$lt_dlunknown
16609  cat > conftest.$ac_ext <<_LT_EOF
16610#line $LINENO "configure"
16611#include "confdefs.h"
16612
16613#if HAVE_DLFCN_H
16614#include <dlfcn.h>
16615#endif
16616
16617#include <stdio.h>
16618
16619#ifdef RTLD_GLOBAL
16620#  define LT_DLGLOBAL		RTLD_GLOBAL
16621#else
16622#  ifdef DL_GLOBAL
16623#    define LT_DLGLOBAL		DL_GLOBAL
16624#  else
16625#    define LT_DLGLOBAL		0
16626#  endif
16627#endif
16628
16629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16630   find out it does not work in some platform. */
16631#ifndef LT_DLLAZY_OR_NOW
16632#  ifdef RTLD_LAZY
16633#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16634#  else
16635#    ifdef DL_LAZY
16636#      define LT_DLLAZY_OR_NOW		DL_LAZY
16637#    else
16638#      ifdef RTLD_NOW
16639#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16640#      else
16641#        ifdef DL_NOW
16642#          define LT_DLLAZY_OR_NOW	DL_NOW
16643#        else
16644#          define LT_DLLAZY_OR_NOW	0
16645#        endif
16646#      endif
16647#    endif
16648#  endif
16649#endif
16650
16651/* When -fvisibility=hidden is used, assume the code has been annotated
16652   correspondingly for the symbols needed.  */
16653#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16654int fnord () __attribute__((visibility("default")));
16655#endif
16656
16657int fnord () { return 42; }
16658int main ()
16659{
16660  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16661  int status = $lt_dlunknown;
16662
16663  if (self)
16664    {
16665      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16666      else
16667        {
16668	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16669          else puts (dlerror ());
16670	}
16671      /* dlclose (self); */
16672    }
16673  else
16674    puts (dlerror ());
16675
16676  return status;
16677}
16678_LT_EOF
16679  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16680  (eval $ac_link) 2>&5
16681  ac_status=$?
16682  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16684    (./conftest; exit; ) >&5 2>/dev/null
16685    lt_status=$?
16686    case x$lt_status in
16687      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16688      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16689      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16690    esac
16691  else :
16692    # compilation failed
16693    lt_cv_dlopen_self_static=no
16694  fi
16695fi
16696rm -fr conftest*
16697
16698
16699fi
16700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16701printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16702    fi
16703
16704    CPPFLAGS=$save_CPPFLAGS
16705    LDFLAGS=$save_LDFLAGS
16706    LIBS=$save_LIBS
16707    ;;
16708  esac
16709
16710  case $lt_cv_dlopen_self in
16711  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16712  *) enable_dlopen_self=unknown ;;
16713  esac
16714
16715  case $lt_cv_dlopen_self_static in
16716  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16717  *) enable_dlopen_self_static=unknown ;;
16718  esac
16719fi
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737striplib=
16738old_striplib=
16739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16740printf %s "checking whether stripping libraries is possible... " >&6; }
16741if test -z "$STRIP"; then
16742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743printf "%s\n" "no" >&6; }
16744else
16745  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16746    old_striplib="$STRIP --strip-debug"
16747    striplib="$STRIP --strip-unneeded"
16748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16749printf "%s\n" "yes" >&6; }
16750  else
16751    case $host_os in
16752    darwin*)
16753      # FIXME - insert some real tests, host_os isn't really good enough
16754      striplib="$STRIP -x"
16755      old_striplib="$STRIP -S"
16756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757printf "%s\n" "yes" >&6; }
16758      ;;
16759    freebsd*)
16760      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16761        old_striplib="$STRIP --strip-debug"
16762        striplib="$STRIP --strip-unneeded"
16763        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16764printf "%s\n" "yes" >&6; }
16765      else
16766        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767printf "%s\n" "no" >&6; }
16768      fi
16769      ;;
16770    *)
16771      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772printf "%s\n" "no" >&6; }
16773      ;;
16774    esac
16775  fi
16776fi
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789  # Report what library types will actually be built
16790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16791printf %s "checking if libtool supports shared libraries... " >&6; }
16792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16793printf "%s\n" "$can_build_shared" >&6; }
16794
16795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16796printf %s "checking whether to build shared libraries... " >&6; }
16797  test no = "$can_build_shared" && enable_shared=no
16798
16799  # On AIX, shared libraries and static libraries use the same namespace, and
16800  # are all built from PIC.
16801  case $host_os in
16802  aix3*)
16803    test yes = "$enable_shared" && enable_static=no
16804    if test -n "$RANLIB"; then
16805      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16806      postinstall_cmds='$RANLIB $lib'
16807    fi
16808    ;;
16809
16810  aix[4-9]*)
16811    if test ia64 != "$host_cpu"; then
16812      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16813      yes,aix,yes) ;;			# shared object as lib.so file only
16814      yes,svr4,*) ;;			# shared object as lib.so archive member only
16815      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16816      esac
16817    fi
16818    ;;
16819  esac
16820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16821printf "%s\n" "$enable_shared" >&6; }
16822
16823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16824printf %s "checking whether to build static libraries... " >&6; }
16825  # Make sure either enable_shared or enable_static is yes.
16826  test yes = "$enable_shared" || enable_static=yes
16827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16828printf "%s\n" "$enable_static" >&6; }
16829
16830
16831
16832
16833fi
16834ac_ext=c
16835ac_cpp='$CPP $CPPFLAGS'
16836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838ac_compiler_gnu=$ac_cv_c_compiler_gnu
16839
16840CC=$lt_save_CC
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856        ac_config_commands="$ac_config_commands libtool"
16857
16858
16859
16860
16861# Only expand once:
16862
16863
16864## --------------------- ##
16865##  End of libtool code  ##
16866## --------------------- ##
16867
16868#
16869# Verify if finally libtool shared libraries will be built
16870#
16871
16872case "x$enable_shared" in # ((
16873  xyes | xno)
16874    xc_lt_build_shared=$enable_shared
16875    ;;
16876  *)
16877    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16878    ;;
16879esac
16880
16881#
16882# Verify if finally libtool static libraries will be built
16883#
16884
16885case "x$enable_static" in # ((
16886  xyes | xno)
16887    xc_lt_build_static=$enable_static
16888    ;;
16889  *)
16890    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16891    ;;
16892esac
16893
16894#
16895# Verify if libtool shared libraries should be linked using flag -version-info
16896#
16897
16898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16899printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16900xc_lt_shlib_use_version_info='yes'
16901if test "x$version_type" = 'xnone'; then
16902  xc_lt_shlib_use_version_info='no'
16903fi
16904case $host_os in # (
16905  amigaos*)
16906    xc_lt_shlib_use_version_info='yes'
16907    ;;
16908esac
16909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16910printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16911
16912#
16913# Verify if libtool shared libraries should be linked using flag -no-undefined
16914#
16915
16916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16917printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16918xc_lt_shlib_use_no_undefined='no'
16919if test "x$allow_undefined" = 'xno'; then
16920  xc_lt_shlib_use_no_undefined='yes'
16921elif test "x$allow_undefined_flag" = 'xunsupported'; then
16922  xc_lt_shlib_use_no_undefined='yes'
16923fi
16924case $host_os in # (
16925  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16926    xc_lt_shlib_use_no_undefined='yes'
16927    ;;
16928esac
16929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16930printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16931
16932#
16933# Verify if libtool shared libraries should be linked using flag -mimpure-text
16934#
16935
16936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16937printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16938xc_lt_shlib_use_mimpure_text='no'
16939case $host_os in # (
16940  solaris2*)
16941    if test "x$GCC" = 'xyes'; then
16942      xc_lt_shlib_use_mimpure_text='yes'
16943    fi
16944    ;;
16945esac
16946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16947printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16948
16949#
16950# Find out whether libtool libraries would be built with PIC
16951#
16952
16953case "x$pic_mode" in # ((((
16954  xdefault)
16955    xc_lt_build_shared_with_pic='yes'
16956    xc_lt_build_static_with_pic='no'
16957    ;;
16958  xyes)
16959    xc_lt_build_shared_with_pic='yes'
16960    xc_lt_build_static_with_pic='yes'
16961    ;;
16962  xno)
16963    xc_lt_build_shared_with_pic='no'
16964    xc_lt_build_static_with_pic='no'
16965    ;;
16966  *)
16967    xc_lt_build_shared_with_pic='unknown'
16968    xc_lt_build_static_with_pic='unknown'
16969    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16970printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16971    ;;
16972esac
16973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16974printf %s "checking whether to build shared libraries with PIC... " >&6; }
16975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16976printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16978printf %s "checking whether to build static libraries with PIC... " >&6; }
16979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16980printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16981
16982#
16983# Verify if libtool shared libraries will be built while static not built
16984#
16985
16986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16987printf %s "checking whether to build shared libraries only... " >&6; }
16988if test "$xc_lt_build_shared" = 'yes' &&
16989  test "$xc_lt_build_static" = 'no'; then
16990  xc_lt_build_shared_only='yes'
16991else
16992  xc_lt_build_shared_only='no'
16993fi
16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16995printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16996
16997#
16998# Verify if libtool static libraries will be built while shared not built
16999#
17000
17001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
17002printf %s "checking whether to build static libraries only... " >&6; }
17003if test "$xc_lt_build_static" = 'yes' &&
17004  test "$xc_lt_build_shared" = 'no'; then
17005  xc_lt_build_static_only='yes'
17006else
17007  xc_lt_build_static_only='no'
17008fi
17009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17010printf "%s\n" "$xc_lt_build_static_only" >&6; }
17011
17012
17013
17014
17015if test -n "$ac_tool_prefix"; then
17016  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17017set dummy ${ac_tool_prefix}windres; ac_word=$2
17018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019printf %s "checking for $ac_word... " >&6; }
17020if test ${ac_cv_prog_RC+y}
17021then :
17022  printf %s "(cached) " >&6
17023else $as_nop
17024  if test -n "$RC"; then
17025  ac_cv_prog_RC="$RC" # Let the user override the test.
17026else
17027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028for as_dir in $PATH
17029do
17030  IFS=$as_save_IFS
17031  case $as_dir in #(((
17032    '') as_dir=./ ;;
17033    */) ;;
17034    *) as_dir=$as_dir/ ;;
17035  esac
17036    for ac_exec_ext in '' $ac_executable_extensions; do
17037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17038    ac_cv_prog_RC="${ac_tool_prefix}windres"
17039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17040    break 2
17041  fi
17042done
17043  done
17044IFS=$as_save_IFS
17045
17046fi
17047fi
17048RC=$ac_cv_prog_RC
17049if test -n "$RC"; then
17050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17051printf "%s\n" "$RC" >&6; }
17052else
17053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054printf "%s\n" "no" >&6; }
17055fi
17056
17057
17058fi
17059if test -z "$ac_cv_prog_RC"; then
17060  ac_ct_RC=$RC
17061  # Extract the first word of "windres", so it can be a program name with args.
17062set dummy windres; ac_word=$2
17063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17064printf %s "checking for $ac_word... " >&6; }
17065if test ${ac_cv_prog_ac_ct_RC+y}
17066then :
17067  printf %s "(cached) " >&6
17068else $as_nop
17069  if test -n "$ac_ct_RC"; then
17070  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17071else
17072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073for as_dir in $PATH
17074do
17075  IFS=$as_save_IFS
17076  case $as_dir in #(((
17077    '') as_dir=./ ;;
17078    */) ;;
17079    *) as_dir=$as_dir/ ;;
17080  esac
17081    for ac_exec_ext in '' $ac_executable_extensions; do
17082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17083    ac_cv_prog_ac_ct_RC="windres"
17084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17085    break 2
17086  fi
17087done
17088  done
17089IFS=$as_save_IFS
17090
17091fi
17092fi
17093ac_ct_RC=$ac_cv_prog_ac_ct_RC
17094if test -n "$ac_ct_RC"; then
17095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17096printf "%s\n" "$ac_ct_RC" >&6; }
17097else
17098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099printf "%s\n" "no" >&6; }
17100fi
17101
17102  if test "x$ac_ct_RC" = x; then
17103    RC=""
17104  else
17105    case $cross_compiling:$ac_tool_warned in
17106yes:)
17107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17108printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17109ac_tool_warned=yes ;;
17110esac
17111    RC=$ac_ct_RC
17112  fi
17113else
17114  RC="$ac_cv_prog_RC"
17115fi
17116
17117
17118
17119
17120# Source file extension for RC test sources.
17121ac_ext=rc
17122
17123# Object file extension for compiled RC test sources.
17124objext=o
17125objext_RC=$objext
17126
17127# Code to be used in simple compile tests
17128lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17129
17130# Code to be used in simple link tests
17131lt_simple_link_test_code=$lt_simple_compile_test_code
17132
17133# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17134
17135
17136
17137
17138
17139
17140# If no C compiler was specified, use CC.
17141LTCC=${LTCC-"$CC"}
17142
17143# If no C compiler flags were specified, use CFLAGS.
17144LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17145
17146# Allow CC to be a program name with arguments.
17147compiler=$CC
17148
17149
17150# save warnings/boilerplate of simple test code
17151ac_outfile=conftest.$ac_objext
17152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17154_lt_compiler_boilerplate=`cat conftest.err`
17155$RM conftest*
17156
17157ac_outfile=conftest.$ac_objext
17158echo "$lt_simple_link_test_code" >conftest.$ac_ext
17159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17160_lt_linker_boilerplate=`cat conftest.err`
17161$RM -r conftest*
17162
17163
17164# Allow CC to be a program name with arguments.
17165lt_save_CC=$CC
17166lt_save_CFLAGS=$CFLAGS
17167lt_save_GCC=$GCC
17168GCC=
17169CC=${RC-"windres"}
17170CFLAGS=
17171compiler=$CC
17172compiler_RC=$CC
17173func_cc_basename $compiler
17174cc_basename=$func_cc_basename_result
17175
17176lt_cv_prog_compiler_c_o_RC=yes
17177
17178if test -n "$compiler"; then
17179  :
17180
17181
17182
17183fi
17184
17185GCC=$lt_save_GCC
17186ac_ext=c
17187ac_cpp='$CPP $CPPFLAGS'
17188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190ac_compiler_gnu=$ac_cv_c_compiler_gnu
17191
17192CC=$lt_save_CC
17193CFLAGS=$lt_save_CFLAGS
17194
17195
17196#
17197# Automake conditionals based on libtool related checks
17198#
17199
17200 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17201  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17202  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17203else
17204  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17205  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17206fi
17207
17208 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17209  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17210  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17211else
17212  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17213  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17214fi
17215
17216 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17217  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17218  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17219else
17220  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17221  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17222fi
17223
17224
17225#
17226# Due to libtool and automake machinery limitations of not allowing
17227# specifying separate CPPFLAGS or CFLAGS when compiling objects for
17228# inclusion of these in shared or static libraries, we are forced to
17229# build using separate configure runs for shared and static libraries
17230# on systems where different CPPFLAGS or CFLAGS are mandatory in order
17231# to compile objects for each kind of library. Notice that relying on
17232# the '-DPIC' CFLAG that libtool provides is not valid given that the
17233# user might for example choose to build static libraries with PIC.
17234#
17235
17236#
17237# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17238# targeting a static library and not building its shared counterpart.
17239#
17240
17241 if test "x$xc_lt_build_static_only" = 'xyes'; then
17242  USE_CPPFLAG_CURL_STATICLIB_TRUE=
17243  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17244else
17245  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17246  USE_CPPFLAG_CURL_STATICLIB_FALSE=
17247fi
17248
17249
17250#
17251# Make staticlib CPPFLAG variable and its definition visible in output
17252# files unconditionally, providing an empty definition unless strictly
17253# targeting a static library and not building its shared counterpart.
17254#
17255
17256CPPFLAG_CURL_STATICLIB=
17257if test "x$xc_lt_build_static_only" = 'xyes'; then
17258  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17259fi
17260
17261
17262
17263# Determine whether all dependent libraries must be specified when linking
17264if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17265then
17266    REQUIRE_LIB_DEPS=no
17267else
17268    REQUIRE_LIB_DEPS=yes
17269fi
17270
17271 if test x$REQUIRE_LIB_DEPS = xyes; then
17272  USE_EXPLICIT_LIB_DEPS_TRUE=
17273  USE_EXPLICIT_LIB_DEPS_FALSE='#'
17274else
17275  USE_EXPLICIT_LIB_DEPS_TRUE='#'
17276  USE_EXPLICIT_LIB_DEPS_FALSE=
17277fi
17278
17279
17280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17281printf %s "checking for inline... " >&6; }
17282if test ${ac_cv_c_inline+y}
17283then :
17284  printf %s "(cached) " >&6
17285else $as_nop
17286  ac_cv_c_inline=no
17287for ac_kw in inline __inline__ __inline; do
17288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289/* end confdefs.h.  */
17290#ifndef __cplusplus
17291typedef int foo_t;
17292static $ac_kw foo_t static_foo (void) {return 0; }
17293$ac_kw foo_t foo (void) {return 0; }
17294#endif
17295
17296_ACEOF
17297if ac_fn_c_try_compile "$LINENO"
17298then :
17299  ac_cv_c_inline=$ac_kw
17300fi
17301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17302  test "$ac_cv_c_inline" != no && break
17303done
17304
17305fi
17306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17307printf "%s\n" "$ac_cv_c_inline" >&6; }
17308
17309case $ac_cv_c_inline in
17310  inline | yes) ;;
17311  *)
17312    case $ac_cv_c_inline in
17313      no) ac_val=;;
17314      *) ac_val=$ac_cv_c_inline;;
17315    esac
17316    cat >>confdefs.h <<_ACEOF
17317#ifndef __cplusplus
17318#define inline $ac_val
17319#endif
17320_ACEOF
17321    ;;
17322esac
17323
17324
17325
17326
17327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17328printf %s "checking if cpp -P is needed... " >&6; }
17329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330/* end confdefs.h.  */
17331
17332 #include <errno.h>
17333TEST EINVAL TEST
17334
17335_ACEOF
17336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337  $EGREP "TEST.*TEST" >/dev/null 2>&1
17338then :
17339  cpp=no
17340else $as_nop
17341  cpp=yes
17342fi
17343rm -rf conftest*
17344
17345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17346printf "%s\n" "$cpp" >&6; }
17347
17348    if test "x$cpp" = "xyes"; then
17349    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17350printf %s "checking if cpp -P works... " >&6; }
17351    OLDCPPFLAGS=$CPPFLAGS
17352    CPPFLAGS="$CPPFLAGS -P"
17353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354/* end confdefs.h.  */
17355
17356 #include <errno.h>
17357TEST EINVAL TEST
17358
17359_ACEOF
17360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17361  $EGREP "TEST.*TEST" >/dev/null 2>&1
17362then :
17363  cpp_p=yes
17364else $as_nop
17365  cpp_p=no
17366fi
17367rm -rf conftest*
17368
17369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17370printf "%s\n" "$cpp_p" >&6; }
17371
17372    if test "x$cpp_p" = "xno"; then
17373      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17374printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17375      # without -P
17376      CPPPFLAG=""
17377    else
17378      # with -P
17379      CPPPFLAG="-P"
17380    fi
17381        CPPFLAGS=$OLDCPPFLAGS
17382  else
17383    # without -P
17384    CPPPFLAG=""
17385  fi
17386
17387
17388  #
17389  compiler_id="unknown"
17390  compiler_num="0"
17391  #
17392  flags_dbg_yes="unknown"
17393  flags_opt_all="unknown"
17394  flags_opt_yes="unknown"
17395  flags_opt_off="unknown"
17396  #
17397  flags_prefer_cppflags="no"
17398  #
17399
17400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17401printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17402
17403    OLDCPPFLAGS=$CPPFLAGS
17404  # CPPPFLAG comes from CURL_CPP_P
17405  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17406      if test -z "$SED"; then
17407    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17408  fi
17409  if test -z "$GREP"; then
17410    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17411  fi
17412
17413  tmp_exp=""
17414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415/* end confdefs.h.  */
17416
17417
17418#ifdef __DECC
17419CURL_DEF_TOKEN __DECC
17420#endif
17421
17422
17423_ACEOF
17424if ac_fn_c_try_cpp "$LINENO"
17425then :
17426
17427    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17428      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17429      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17430      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17431    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17432      tmp_exp=""
17433    fi
17434
17435fi
17436rm -f conftest.err conftest.i conftest.$ac_ext
17437  if test -z "$tmp_exp"; then
17438    curl_cv_have_def___DECC=no
17439
17440  else
17441    curl_cv_have_def___DECC=yes
17442    curl_cv_def___DECC=$tmp_exp
17443
17444  fi
17445      CPPFLAGS=$OLDCPPFLAGS
17446
17447
17448    OLDCPPFLAGS=$CPPFLAGS
17449  # CPPPFLAG comes from CURL_CPP_P
17450  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17451      if test -z "$SED"; then
17452    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17453  fi
17454  if test -z "$GREP"; then
17455    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17456  fi
17457
17458  tmp_exp=""
17459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460/* end confdefs.h.  */
17461
17462
17463#ifdef __DECC_VER
17464CURL_DEF_TOKEN __DECC_VER
17465#endif
17466
17467
17468_ACEOF
17469if ac_fn_c_try_cpp "$LINENO"
17470then :
17471
17472    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17473      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17474      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17475      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17476    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17477      tmp_exp=""
17478    fi
17479
17480fi
17481rm -f conftest.err conftest.i conftest.$ac_ext
17482  if test -z "$tmp_exp"; then
17483    curl_cv_have_def___DECC_VER=no
17484
17485  else
17486    curl_cv_have_def___DECC_VER=yes
17487    curl_cv_def___DECC_VER=$tmp_exp
17488
17489  fi
17490      CPPFLAGS=$OLDCPPFLAGS
17491
17492  if test "$curl_cv_have_def___DECC" = "yes" &&
17493    test "$curl_cv_have_def___DECC_VER" = "yes"; then
17494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17495printf "%s\n" "yes" >&6; }
17496    compiler_id="DEC_C"
17497    flags_dbg_yes="-g2"
17498    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17499    flags_opt_yes="-O1"
17500    flags_opt_off="-O0"
17501  else
17502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503printf "%s\n" "no" >&6; }
17504  fi
17505
17506
17507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17508printf %s "checking if compiler is HP-UX C... " >&6; }
17509
17510    OLDCPPFLAGS=$CPPFLAGS
17511  # CPPPFLAG comes from CURL_CPP_P
17512  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17513      if test -z "$SED"; then
17514    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17515  fi
17516  if test -z "$GREP"; then
17517    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17518  fi
17519
17520  tmp_exp=""
17521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522/* end confdefs.h.  */
17523
17524
17525#ifdef __HP_cc
17526CURL_DEF_TOKEN __HP_cc
17527#endif
17528
17529
17530_ACEOF
17531if ac_fn_c_try_cpp "$LINENO"
17532then :
17533
17534    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17535      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17536      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17537      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17538    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17539      tmp_exp=""
17540    fi
17541
17542fi
17543rm -f conftest.err conftest.i conftest.$ac_ext
17544  if test -z "$tmp_exp"; then
17545    curl_cv_have_def___HP_cc=no
17546
17547  else
17548    curl_cv_have_def___HP_cc=yes
17549    curl_cv_def___HP_cc=$tmp_exp
17550
17551  fi
17552      CPPFLAGS=$OLDCPPFLAGS
17553
17554  if test "$curl_cv_have_def___HP_cc" = "yes"; then
17555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17556printf "%s\n" "yes" >&6; }
17557    compiler_id="HP_UX_C"
17558    flags_dbg_yes="-g"
17559    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17560    flags_opt_yes="+O2"
17561    flags_opt_off="+O0"
17562  else
17563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564printf "%s\n" "no" >&6; }
17565  fi
17566
17567
17568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17569printf %s "checking if compiler is IBM C... " >&6; }
17570
17571    OLDCPPFLAGS=$CPPFLAGS
17572  # CPPPFLAG comes from CURL_CPP_P
17573  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17574      if test -z "$SED"; then
17575    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17576  fi
17577  if test -z "$GREP"; then
17578    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17579  fi
17580
17581  tmp_exp=""
17582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h.  */
17584
17585
17586#ifdef __IBMC__
17587CURL_DEF_TOKEN __IBMC__
17588#endif
17589
17590
17591_ACEOF
17592if ac_fn_c_try_cpp "$LINENO"
17593then :
17594
17595    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17596      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17597      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17598      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17599    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17600      tmp_exp=""
17601    fi
17602
17603fi
17604rm -f conftest.err conftest.i conftest.$ac_ext
17605  if test -z "$tmp_exp"; then
17606    curl_cv_have_def___IBMC__=no
17607
17608  else
17609    curl_cv_have_def___IBMC__=yes
17610    curl_cv_def___IBMC__=$tmp_exp
17611
17612  fi
17613      CPPFLAGS=$OLDCPPFLAGS
17614
17615  if test "$curl_cv_have_def___IBMC__" = "yes"; then
17616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17617printf "%s\n" "yes" >&6; }
17618    compiler_id="IBM_C"
17619    flags_dbg_yes="-g"
17620    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17621    flags_opt_all="$flags_opt_all -qnooptimize"
17622    flags_opt_all="$flags_opt_all -qoptimize=0"
17623    flags_opt_all="$flags_opt_all -qoptimize=1"
17624    flags_opt_all="$flags_opt_all -qoptimize=2"
17625    flags_opt_all="$flags_opt_all -qoptimize=3"
17626    flags_opt_all="$flags_opt_all -qoptimize=4"
17627    flags_opt_all="$flags_opt_all -qoptimize=5"
17628    flags_opt_yes="-O2"
17629    flags_opt_off="-qnooptimize"
17630    flags_prefer_cppflags="yes"
17631  else
17632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633printf "%s\n" "no" >&6; }
17634  fi
17635
17636
17637    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17638printf %s "checking if compiler is Intel C... " >&6; }
17639
17640    OLDCPPFLAGS=$CPPFLAGS
17641  # CPPPFLAG comes from CURL_CPP_P
17642  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17643      if test -z "$SED"; then
17644    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17645  fi
17646  if test -z "$GREP"; then
17647    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17648  fi
17649
17650  tmp_exp=""
17651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652/* end confdefs.h.  */
17653
17654
17655#ifdef __INTEL_COMPILER
17656CURL_DEF_TOKEN __INTEL_COMPILER
17657#endif
17658
17659
17660_ACEOF
17661if ac_fn_c_try_cpp "$LINENO"
17662then :
17663
17664    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17665      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17666      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17667      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17668    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17669      tmp_exp=""
17670    fi
17671
17672fi
17673rm -f conftest.err conftest.i conftest.$ac_ext
17674  if test -z "$tmp_exp"; then
17675    curl_cv_have_def___INTEL_COMPILER=no
17676
17677  else
17678    curl_cv_have_def___INTEL_COMPILER=yes
17679    curl_cv_def___INTEL_COMPILER=$tmp_exp
17680
17681  fi
17682      CPPFLAGS=$OLDCPPFLAGS
17683
17684  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17685    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686printf "%s\n" "yes" >&6; }
17687    compiler_num="$curl_cv_def___INTEL_COMPILER"
17688
17689    OLDCPPFLAGS=$CPPFLAGS
17690  # CPPPFLAG comes from CURL_CPP_P
17691  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17692      if test -z "$SED"; then
17693    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17694  fi
17695  if test -z "$GREP"; then
17696    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17697  fi
17698
17699  tmp_exp=""
17700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701/* end confdefs.h.  */
17702
17703
17704#ifdef __unix__
17705CURL_DEF_TOKEN __unix__
17706#endif
17707
17708
17709_ACEOF
17710if ac_fn_c_try_cpp "$LINENO"
17711then :
17712
17713    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17714      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17715      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17716      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17717    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17718      tmp_exp=""
17719    fi
17720
17721fi
17722rm -f conftest.err conftest.i conftest.$ac_ext
17723  if test -z "$tmp_exp"; then
17724    curl_cv_have_def___unix__=no
17725
17726  else
17727    curl_cv_have_def___unix__=yes
17728    curl_cv_def___unix__=$tmp_exp
17729
17730  fi
17731      CPPFLAGS=$OLDCPPFLAGS
17732
17733    if test "$curl_cv_have_def___unix__" = "yes"; then
17734      compiler_id="INTEL_UNIX_C"
17735      flags_dbg_yes="-g"
17736      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17737      flags_opt_yes="-O2"
17738      flags_opt_off="-O0"
17739    else
17740      compiler_id="INTEL_WINDOWS_C"
17741      flags_dbg_yes="/Zi /Oy-"
17742      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17743      flags_opt_yes="/O2"
17744      flags_opt_off="/Od"
17745    fi
17746  else
17747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17748printf "%s\n" "no" >&6; }
17749  fi
17750
17751
17752    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17753printf %s "checking if compiler is clang... " >&6; }
17754
17755    OLDCPPFLAGS=$CPPFLAGS
17756  # CPPPFLAG comes from CURL_CPP_P
17757  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17758      if test -z "$SED"; then
17759    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17760  fi
17761  if test -z "$GREP"; then
17762    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17763  fi
17764
17765  tmp_exp=""
17766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767/* end confdefs.h.  */
17768
17769
17770#ifdef __clang__
17771CURL_DEF_TOKEN __clang__
17772#endif
17773
17774
17775_ACEOF
17776if ac_fn_c_try_cpp "$LINENO"
17777then :
17778
17779    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17780      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17781      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17782      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17783    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17784      tmp_exp=""
17785    fi
17786
17787fi
17788rm -f conftest.err conftest.i conftest.$ac_ext
17789  if test -z "$tmp_exp"; then
17790    curl_cv_have_def___clang__=no
17791
17792  else
17793    curl_cv_have_def___clang__=yes
17794    curl_cv_def___clang__=$tmp_exp
17795
17796  fi
17797      CPPFLAGS=$OLDCPPFLAGS
17798
17799  if test "$curl_cv_have_def___clang__" = "yes"; then
17800    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17801printf "%s\n" "yes" >&6; }
17802    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17803printf %s "checking if compiler is xlclang... " >&6; }
17804
17805    OLDCPPFLAGS=$CPPFLAGS
17806  # CPPPFLAG comes from CURL_CPP_P
17807  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17808      if test -z "$SED"; then
17809    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17810  fi
17811  if test -z "$GREP"; then
17812    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17813  fi
17814
17815  tmp_exp=""
17816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817/* end confdefs.h.  */
17818
17819
17820#ifdef __ibmxl__
17821CURL_DEF_TOKEN __ibmxl__
17822#endif
17823
17824
17825_ACEOF
17826if ac_fn_c_try_cpp "$LINENO"
17827then :
17828
17829    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17830      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17831      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17832      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17833    if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17834      tmp_exp=""
17835    fi
17836
17837fi
17838rm -f conftest.err conftest.i conftest.$ac_ext
17839  if test -z "$tmp_exp"; then
17840    curl_cv_have_def___ibmxl__=no
17841
17842  else
17843    curl_cv_have_def___ibmxl__=yes
17844    curl_cv_def___ibmxl__=$tmp_exp
17845
17846  fi
17847      CPPFLAGS=$OLDCPPFLAGS
17848
17849    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17850            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17851printf "%s\n" "yes" >&6; }
17852      compiler_id="XLCLANG"
17853    else
17854      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855printf "%s\n" "no" >&6; }
17856      compiler_id="CLANG"
17857    fi
17858    fullclangver=`$CC -v 2>&1 | grep version`
17859    clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17860    if test -z "$clangver"; then
17861      if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17862                clangver="3.7"
17863      else
17864        clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17865      fi
17866    fi
17867    clangvhi=`echo $clangver | cut -d . -f1`
17868    clangvlo=`echo $clangver | cut -d . -f2`
17869    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17870    flags_dbg_yes="-g"
17871    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17872    flags_opt_yes="-O2"
17873    flags_opt_off="-O0"
17874  else
17875    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876printf "%s\n" "no" >&6; }
17877  fi
17878
17879
17880      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17881printf %s "checking if compiler is GNU C... " >&6; }
17882
17883    OLDCPPFLAGS=$CPPFLAGS
17884  # CPPPFLAG comes from CURL_CPP_P
17885  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17886      if test -z "$SED"; then
17887    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17888  fi
17889  if test -z "$GREP"; then
17890    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17891  fi
17892
17893  tmp_exp=""
17894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* end confdefs.h.  */
17896
17897
17898#ifdef __GNUC__
17899CURL_DEF_TOKEN __GNUC__
17900#endif
17901
17902
17903_ACEOF
17904if ac_fn_c_try_cpp "$LINENO"
17905then :
17906
17907    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17908      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17909      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17910      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17911    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17912      tmp_exp=""
17913    fi
17914
17915fi
17916rm -f conftest.err conftest.i conftest.$ac_ext
17917  if test -z "$tmp_exp"; then
17918    curl_cv_have_def___GNUC__=no
17919
17920  else
17921    curl_cv_have_def___GNUC__=yes
17922    curl_cv_def___GNUC__=$tmp_exp
17923
17924  fi
17925      CPPFLAGS=$OLDCPPFLAGS
17926
17927  if test "$curl_cv_have_def___GNUC__" = "yes" &&
17928    test "$compiler_id" = "unknown"; then
17929    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930printf "%s\n" "yes" >&6; }
17931    compiler_id="GNU_C"
17932    gccver=`$CC -dumpversion`
17933    gccvhi=`echo $gccver | cut -d . -f1`
17934    gccvlo=`echo $gccver | cut -d . -f2`
17935    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17936    flags_dbg_yes="-g"
17937    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17938    flags_opt_yes="-O2"
17939    flags_opt_off="-O0"
17940
17941    OLDCPPFLAGS=$CPPFLAGS
17942  # CPPPFLAG comes from CURL_CPP_P
17943  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17944      if test -z "$SED"; then
17945    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17946  fi
17947  if test -z "$GREP"; then
17948    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17949  fi
17950
17951  tmp_exp=""
17952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953/* end confdefs.h.  */
17954
17955
17956#ifdef _WIN32
17957CURL_DEF_TOKEN _WIN32
17958#endif
17959
17960
17961_ACEOF
17962if ac_fn_c_try_cpp "$LINENO"
17963then :
17964
17965    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17966      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17967      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17968      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17969    if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17970      tmp_exp=""
17971    fi
17972
17973fi
17974rm -f conftest.err conftest.i conftest.$ac_ext
17975  if test -z "$tmp_exp"; then
17976    curl_cv_have_def__WIN32=no
17977
17978  else
17979    curl_cv_have_def__WIN32=yes
17980    curl_cv_def__WIN32=$tmp_exp
17981
17982  fi
17983      CPPFLAGS=$OLDCPPFLAGS
17984
17985  else
17986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987printf "%s\n" "no" >&6; }
17988  fi
17989
17990
17991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17992printf %s "checking if compiler is LCC... " >&6; }
17993
17994    OLDCPPFLAGS=$CPPFLAGS
17995  # CPPPFLAG comes from CURL_CPP_P
17996  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17997      if test -z "$SED"; then
17998    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17999  fi
18000  if test -z "$GREP"; then
18001    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18002  fi
18003
18004  tmp_exp=""
18005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007
18008
18009#ifdef __LCC__
18010CURL_DEF_TOKEN __LCC__
18011#endif
18012
18013
18014_ACEOF
18015if ac_fn_c_try_cpp "$LINENO"
18016then :
18017
18018    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18019      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18020      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18021      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18022    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
18023      tmp_exp=""
18024    fi
18025
18026fi
18027rm -f conftest.err conftest.i conftest.$ac_ext
18028  if test -z "$tmp_exp"; then
18029    curl_cv_have_def___LCC__=no
18030
18031  else
18032    curl_cv_have_def___LCC__=yes
18033    curl_cv_def___LCC__=$tmp_exp
18034
18035  fi
18036      CPPFLAGS=$OLDCPPFLAGS
18037
18038  if test "$curl_cv_have_def___LCC__" = "yes"; then
18039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18040printf "%s\n" "yes" >&6; }
18041    compiler_id="LCC"
18042    flags_dbg_yes="-g"
18043    flags_opt_all=""
18044    flags_opt_yes=""
18045    flags_opt_off=""
18046  else
18047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048printf "%s\n" "no" >&6; }
18049  fi
18050
18051
18052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
18053printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
18054
18055    OLDCPPFLAGS=$CPPFLAGS
18056  # CPPPFLAG comes from CURL_CPP_P
18057  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18058      if test -z "$SED"; then
18059    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18060  fi
18061  if test -z "$GREP"; then
18062    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18063  fi
18064
18065  tmp_exp=""
18066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067/* end confdefs.h.  */
18068
18069
18070#ifdef __GNUC__
18071CURL_DEF_TOKEN __GNUC__
18072#endif
18073
18074
18075_ACEOF
18076if ac_fn_c_try_cpp "$LINENO"
18077then :
18078
18079    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18080      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18081      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18082      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18083    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18084      tmp_exp=""
18085    fi
18086
18087fi
18088rm -f conftest.err conftest.i conftest.$ac_ext
18089  if test -z "$tmp_exp"; then
18090    curl_cv_have_def___GNUC__=no
18091
18092  else
18093    curl_cv_have_def___GNUC__=yes
18094    curl_cv_def___GNUC__=$tmp_exp
18095
18096  fi
18097      CPPFLAGS=$OLDCPPFLAGS
18098
18099
18100    OLDCPPFLAGS=$CPPFLAGS
18101  # CPPPFLAG comes from CURL_CPP_P
18102  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18103      if test -z "$SED"; then
18104    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18105  fi
18106  if test -z "$GREP"; then
18107    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18108  fi
18109
18110  tmp_exp=""
18111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112/* end confdefs.h.  */
18113
18114
18115#ifdef _COMPILER_VERSION
18116CURL_DEF_TOKEN _COMPILER_VERSION
18117#endif
18118
18119
18120_ACEOF
18121if ac_fn_c_try_cpp "$LINENO"
18122then :
18123
18124    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18125      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18126      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18127      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18128    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18129      tmp_exp=""
18130    fi
18131
18132fi
18133rm -f conftest.err conftest.i conftest.$ac_ext
18134  if test -z "$tmp_exp"; then
18135    curl_cv_have_def__COMPILER_VERSION=no
18136
18137  else
18138    curl_cv_have_def__COMPILER_VERSION=yes
18139    curl_cv_def__COMPILER_VERSION=$tmp_exp
18140
18141  fi
18142      CPPFLAGS=$OLDCPPFLAGS
18143
18144
18145    OLDCPPFLAGS=$CPPFLAGS
18146  # CPPPFLAG comes from CURL_CPP_P
18147  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18148      if test -z "$SED"; then
18149    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18150  fi
18151  if test -z "$GREP"; then
18152    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18153  fi
18154
18155  tmp_exp=""
18156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157/* end confdefs.h.  */
18158
18159
18160#ifdef _SGI_COMPILER_VERSION
18161CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18162#endif
18163
18164
18165_ACEOF
18166if ac_fn_c_try_cpp "$LINENO"
18167then :
18168
18169    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18170      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18171      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18172      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18173    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18174      tmp_exp=""
18175    fi
18176
18177fi
18178rm -f conftest.err conftest.i conftest.$ac_ext
18179  if test -z "$tmp_exp"; then
18180    curl_cv_have_def__SGI_COMPILER_VERSION=no
18181
18182  else
18183    curl_cv_have_def__SGI_COMPILER_VERSION=yes
18184    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18185
18186  fi
18187      CPPFLAGS=$OLDCPPFLAGS
18188
18189  if test "$curl_cv_have_def___GNUC__" = "no" &&
18190    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18191     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193printf "%s\n" "yes" >&6; }
18194    compiler_id="SGI_MIPSPRO_C"
18195    flags_dbg_yes="-g"
18196    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18197    flags_opt_yes="-O2"
18198    flags_opt_off="-O0"
18199  else
18200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18201printf "%s\n" "no" >&6; }
18202  fi
18203
18204
18205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18206printf %s "checking if compiler is SGI MIPS C... " >&6; }
18207
18208    OLDCPPFLAGS=$CPPFLAGS
18209  # CPPPFLAG comes from CURL_CPP_P
18210  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18211      if test -z "$SED"; then
18212    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18213  fi
18214  if test -z "$GREP"; then
18215    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18216  fi
18217
18218  tmp_exp=""
18219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220/* end confdefs.h.  */
18221
18222
18223#ifdef __GNUC__
18224CURL_DEF_TOKEN __GNUC__
18225#endif
18226
18227
18228_ACEOF
18229if ac_fn_c_try_cpp "$LINENO"
18230then :
18231
18232    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18233      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18234      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18235      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18236    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18237      tmp_exp=""
18238    fi
18239
18240fi
18241rm -f conftest.err conftest.i conftest.$ac_ext
18242  if test -z "$tmp_exp"; then
18243    curl_cv_have_def___GNUC__=no
18244
18245  else
18246    curl_cv_have_def___GNUC__=yes
18247    curl_cv_def___GNUC__=$tmp_exp
18248
18249  fi
18250      CPPFLAGS=$OLDCPPFLAGS
18251
18252
18253    OLDCPPFLAGS=$CPPFLAGS
18254  # CPPPFLAG comes from CURL_CPP_P
18255  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18256      if test -z "$SED"; then
18257    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18258  fi
18259  if test -z "$GREP"; then
18260    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18261  fi
18262
18263  tmp_exp=""
18264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265/* end confdefs.h.  */
18266
18267
18268#ifdef __sgi
18269CURL_DEF_TOKEN __sgi
18270#endif
18271
18272
18273_ACEOF
18274if ac_fn_c_try_cpp "$LINENO"
18275then :
18276
18277    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18278      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18279      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18280      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18281    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18282      tmp_exp=""
18283    fi
18284
18285fi
18286rm -f conftest.err conftest.i conftest.$ac_ext
18287  if test -z "$tmp_exp"; then
18288    curl_cv_have_def___sgi=no
18289
18290  else
18291    curl_cv_have_def___sgi=yes
18292    curl_cv_def___sgi=$tmp_exp
18293
18294  fi
18295      CPPFLAGS=$OLDCPPFLAGS
18296
18297  if test "$curl_cv_have_def___GNUC__" = "no" &&
18298    test "$curl_cv_have_def___sgi" = "yes" &&
18299    test "$compiler_id" = "unknown"; then
18300    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18301printf "%s\n" "yes" >&6; }
18302    compiler_id="SGI_MIPS_C"
18303    flags_dbg_yes="-g"
18304    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18305    flags_opt_yes="-O2"
18306    flags_opt_off="-O0"
18307  else
18308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309printf "%s\n" "no" >&6; }
18310  fi
18311
18312
18313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18314printf %s "checking if compiler is SunPro C... " >&6; }
18315
18316    OLDCPPFLAGS=$CPPFLAGS
18317  # CPPPFLAG comes from CURL_CPP_P
18318  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18319      if test -z "$SED"; then
18320    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18321  fi
18322  if test -z "$GREP"; then
18323    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18324  fi
18325
18326  tmp_exp=""
18327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328/* end confdefs.h.  */
18329
18330
18331#ifdef __SUNPRO_C
18332CURL_DEF_TOKEN __SUNPRO_C
18333#endif
18334
18335
18336_ACEOF
18337if ac_fn_c_try_cpp "$LINENO"
18338then :
18339
18340    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18341      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18342      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18343      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18344    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18345      tmp_exp=""
18346    fi
18347
18348fi
18349rm -f conftest.err conftest.i conftest.$ac_ext
18350  if test -z "$tmp_exp"; then
18351    curl_cv_have_def___SUNPRO_C=no
18352
18353  else
18354    curl_cv_have_def___SUNPRO_C=yes
18355    curl_cv_def___SUNPRO_C=$tmp_exp
18356
18357  fi
18358      CPPFLAGS=$OLDCPPFLAGS
18359
18360  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18361    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18362printf "%s\n" "yes" >&6; }
18363    compiler_id="SUNPRO_C"
18364    flags_dbg_yes="-g"
18365    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18366    flags_opt_yes="-xO2"
18367    flags_opt_off=""
18368  else
18369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370printf "%s\n" "no" >&6; }
18371  fi
18372
18373
18374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18375printf %s "checking if compiler is Tiny C... " >&6; }
18376
18377    OLDCPPFLAGS=$CPPFLAGS
18378  # CPPPFLAG comes from CURL_CPP_P
18379  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18380      if test -z "$SED"; then
18381    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18382  fi
18383  if test -z "$GREP"; then
18384    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18385  fi
18386
18387  tmp_exp=""
18388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389/* end confdefs.h.  */
18390
18391
18392#ifdef __TINYC__
18393CURL_DEF_TOKEN __TINYC__
18394#endif
18395
18396
18397_ACEOF
18398if ac_fn_c_try_cpp "$LINENO"
18399then :
18400
18401    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18402      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18403      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18404      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18405    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18406      tmp_exp=""
18407    fi
18408
18409fi
18410rm -f conftest.err conftest.i conftest.$ac_ext
18411  if test -z "$tmp_exp"; then
18412    curl_cv_have_def___TINYC__=no
18413
18414  else
18415    curl_cv_have_def___TINYC__=yes
18416    curl_cv_def___TINYC__=$tmp_exp
18417
18418  fi
18419      CPPFLAGS=$OLDCPPFLAGS
18420
18421  if test "$curl_cv_have_def___TINYC__" = "yes"; then
18422    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423printf "%s\n" "yes" >&6; }
18424    compiler_id="TINY_C"
18425    flags_dbg_yes="-g"
18426    flags_opt_all=""
18427    flags_opt_yes=""
18428    flags_opt_off=""
18429  else
18430    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18431printf "%s\n" "no" >&6; }
18432  fi
18433
18434  #
18435  if test "$compiler_id" = "unknown"; then
18436  cat <<_EOF 1>&2
18437***
18438*** Warning: This configure script does not have information about the
18439*** compiler you are using, relative to the flags required to enable or
18440*** disable generation of debug info, optimization options or warnings.
18441***
18442*** Whatever settings are present in CFLAGS will be used for this run.
18443***
18444*** If you wish to help the curl project to better support your compiler
18445*** you can report this and the required info on the libcurl development
18446*** mailing list: https://lists.haxx.selistinfo/curl-library/
18447***
18448_EOF
18449  fi
18450
18451
18452squeeze() {
18453  _sqz_result=""
18454  eval _sqz_input=\$$1
18455  for _sqz_token in $_sqz_input; do
18456    if test -z "$_sqz_result"; then
18457      _sqz_result="$_sqz_token"
18458    else
18459      _sqz_result="$_sqz_result $_sqz_token"
18460    fi
18461  done
18462  eval $1=\$_sqz_result
18463  return 0
18464}
18465
18466
18467      #
18468  if test "$compiler_id" != "unknown"; then
18469    #
18470    tmp_save_CPPFLAGS="$CPPFLAGS"
18471    tmp_save_CFLAGS="$CFLAGS"
18472    tmp_CPPFLAGS=""
18473    tmp_CFLAGS=""
18474    #
18475    case "$compiler_id" in
18476        #
18477      CLANG)
18478        #
18479                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18480        ;;
18481        #
18482      DEC_C)
18483        #
18484                tmp_CFLAGS="$tmp_CFLAGS -std1"
18485                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18486                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18487                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18488        ;;
18489        #
18490      GNU_C)
18491        #
18492                        if test "$compiler_num" -ge "295"; then
18493          tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18494        fi
18495        ;;
18496        #
18497      HP_UX_C)
18498        #
18499                tmp_CFLAGS="$tmp_CFLAGS -z"
18500                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18501        ;;
18502        #
18503      IBM_C)
18504        #
18505                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18506                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18507                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18508        ;;
18509        #
18510      INTEL_UNIX_C)
18511        #
18512                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18513                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18514                                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18515        ;;
18516        #
18517      INTEL_WINDOWS_C)
18518        #
18519                tmp_CFLAGS="$tmp_CFLAGS"
18520        ;;
18521        #
18522      LCC)
18523        #
18524                tmp_CFLAGS="$tmp_CFLAGS -n"
18525        ;;
18526        #
18527      SGI_MIPS_C)
18528        #
18529                tmp_CFLAGS="$tmp_CFLAGS"
18530        ;;
18531        #
18532      SGI_MIPSPRO_C)
18533        #
18534                tmp_CFLAGS="$tmp_CFLAGS"
18535        ;;
18536        #
18537      SUNPRO_C)
18538        #
18539                tmp_CFLAGS="$tmp_CFLAGS"
18540        ;;
18541        #
18542      TINY_C)
18543        #
18544                tmp_CFLAGS="$tmp_CFLAGS"
18545        ;;
18546        #
18547    esac
18548    #
18549    squeeze tmp_CPPFLAGS
18550    squeeze tmp_CFLAGS
18551    #
18552    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18553      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18554printf %s "checking if compiler accepts some basic options... " >&6; }
18555      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18556      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18557      squeeze CPPFLAGS
18558      squeeze CFLAGS
18559
18560    tmp_compiler_works="unknown"
18561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563
18564
18565
18566int main (void)
18567{
18568
18569      int i = 1;
18570      return i;
18571
18572 ;
18573 return 0;
18574}
18575
18576_ACEOF
18577if ac_fn_c_try_compile "$LINENO"
18578then :
18579
18580    tmp_compiler_works="yes"
18581
18582else $as_nop
18583
18584    tmp_compiler_works="no"
18585    echo " " >&6
18586    sed 's/^/cc-fail: /' conftest.err >&6
18587    echo " " >&6
18588
18589fi
18590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18591    if test "$tmp_compiler_works" = "yes"; then
18592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594
18595
18596
18597int main (void)
18598{
18599
18600        int i = 1;
18601        return i;
18602
18603 ;
18604 return 0;
18605}
18606
18607_ACEOF
18608if ac_fn_c_try_link "$LINENO"
18609then :
18610
18611      tmp_compiler_works="yes"
18612
18613else $as_nop
18614
18615      tmp_compiler_works="no"
18616      echo " " >&6
18617      sed 's/^/link-fail: /' conftest.err >&6
18618      echo " " >&6
18619
18620fi
18621rm -f core conftest.err conftest.$ac_objext conftest.beam \
18622    conftest$ac_exeext conftest.$ac_ext
18623  fi
18624    if test "x$cross_compiling" != "xyes" &&
18625    test "$tmp_compiler_works" = "yes"; then
18626
18627   case $host_os in
18628     darwin*)
18629      if test "$cross_compiling" = yes
18630then :
18631  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18632printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18633as_fn_error $? "cannot run test program while cross compiling
18634See \`config.log' for more details" "$LINENO" 5; }
18635else $as_nop
18636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637/* end confdefs.h.  */
18638
18639
18640#       ifdef __STDC__
18641#         include <stdlib.h>
18642#       endif
18643
18644int main (void)
18645{
18646
18647        int i = 0;
18648        exit(i);
18649
18650 ;
18651 return 0;
18652}
18653
18654_ACEOF
18655if ac_fn_c_try_run "$LINENO"
18656then :
18657  tmp_compiler_works="yes"
18658
18659else $as_nop
18660  tmp_compiler_works="no"
18661      echo " " >&6
18662      echo "run-fail: test program exited with status $ac_status" >&6
18663      echo " " >&6
18664
18665fi
18666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18667  conftest.$ac_objext conftest.beam conftest.$ac_ext
18668fi
18669
18670     ;;
18671     *)
18672      oldcc=$CC
18673      old=$LD_LIBRARY_PATH
18674      CC="sh ./run-compiler"
18675      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18676      export LD_LIBRARY_PATH
18677      if test "$cross_compiling" = yes
18678then :
18679  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18680printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18681as_fn_error $? "cannot run test program while cross compiling
18682See \`config.log' for more details" "$LINENO" 5; }
18683else $as_nop
18684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686
18687
18688#       ifdef __STDC__
18689#         include <stdlib.h>
18690#       endif
18691
18692int main (void)
18693{
18694
18695        int i = 0;
18696        exit(i);
18697
18698 ;
18699 return 0;
18700}
18701
18702_ACEOF
18703if ac_fn_c_try_run "$LINENO"
18704then :
18705  tmp_compiler_works="yes"
18706
18707else $as_nop
18708  tmp_compiler_works="no"
18709      echo " " >&6
18710      echo "run-fail: test program exited with status $ac_status" >&6
18711      echo " " >&6
18712
18713fi
18714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18715  conftest.$ac_objext conftest.beam conftest.$ac_ext
18716fi
18717
18718      LD_LIBRARY_PATH=$old # restore
18719      CC=$oldcc
18720     ;;
18721   esac
18722
18723  fi
18724    if test "$tmp_compiler_works" = "yes"; then
18725
18726        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18727printf "%s\n" "yes" >&6; }
18728        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18729printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18730
18731  else
18732
18733        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734printf "%s\n" "no" >&6; }
18735        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18736printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18737                CPPFLAGS="$tmp_save_CPPFLAGS"
18738        CFLAGS="$tmp_save_CFLAGS"
18739
18740  fi
18741
18742    fi
18743    #
18744  fi
18745
18746
18747        #
18748  if test "$compiler_id" != "unknown"; then
18749    #
18750    tmp_save_CFLAGS="$CFLAGS"
18751    tmp_save_CPPFLAGS="$CPPFLAGS"
18752    #
18753    tmp_options=""
18754    tmp_CFLAGS="$CFLAGS"
18755    tmp_CPPFLAGS="$CPPFLAGS"
18756    #
18757    if test "$want_debug" = "yes"; then
18758      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18759printf %s "checking if compiler accepts debug enabling options... " >&6; }
18760      tmp_options="$flags_dbg_yes"
18761    fi
18762    #
18763    if test "$flags_prefer_cppflags" = "yes"; then
18764      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18765      CFLAGS="$tmp_CFLAGS"
18766    else
18767      CPPFLAGS="$tmp_CPPFLAGS"
18768      CFLAGS="$tmp_CFLAGS $tmp_options"
18769    fi
18770    squeeze CPPFLAGS
18771    squeeze CFLAGS
18772  fi
18773
18774
18775        #
18776  if test "$compiler_id" != "unknown"; then
18777    #
18778    tmp_save_CFLAGS="$CFLAGS"
18779    tmp_save_CPPFLAGS="$CPPFLAGS"
18780    #
18781    tmp_options=""
18782    tmp_CFLAGS="$CFLAGS"
18783    tmp_CPPFLAGS="$CPPFLAGS"
18784    honor_optimize_option="yes"
18785    #
18786                        #
18787    if test "$want_optimize" = "assume_no" ||
18788       test "$want_optimize" = "assume_yes"; then
18789      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18790printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18791
18792
18793  ac_var_match_word="no"
18794  for word1 in $tmp_CFLAGS; do
18795    for word2 in $flags_opt_all; do
18796      if test "$word1" = "$word2"; then
18797        ac_var_match_word="yes"
18798      fi
18799    done
18800  done
18801
18802  if test "$ac_var_match_word" = "yes"; then
18803
18804        honor_optimize_option="no"
18805
18806
18807  fi
18808
18809
18810
18811  ac_var_match_word="no"
18812  for word1 in $tmp_CPPFLAGS; do
18813    for word2 in $flags_opt_all; do
18814      if test "$word1" = "$word2"; then
18815        ac_var_match_word="yes"
18816      fi
18817    done
18818  done
18819
18820  if test "$ac_var_match_word" = "yes"; then
18821
18822        honor_optimize_option="no"
18823
18824
18825  fi
18826
18827      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18828printf "%s\n" "$honor_optimize_option" >&6; }
18829      if test "$honor_optimize_option" = "yes"; then
18830        if test "$want_optimize" = "assume_yes"; then
18831          want_optimize="yes"
18832        fi
18833        if test "$want_optimize" = "assume_no"; then
18834          want_optimize="no"
18835        fi
18836      fi
18837    fi
18838    #
18839    if test "$honor_optimize_option" = "yes"; then
18840
18841    ac_var_stripped=""
18842  for word1 in $tmp_CFLAGS; do
18843    ac_var_strip_word="no"
18844    for word2 in $flags_opt_all; do
18845      if test "$word1" = "$word2"; then
18846        ac_var_strip_word="yes"
18847      fi
18848    done
18849    if test "$ac_var_strip_word" = "no"; then
18850      ac_var_stripped="$ac_var_stripped $word1"
18851    fi
18852  done
18853    tmp_CFLAGS="$ac_var_stripped"
18854  squeeze tmp_CFLAGS
18855
18856
18857    ac_var_stripped=""
18858  for word1 in $tmp_CPPFLAGS; do
18859    ac_var_strip_word="no"
18860    for word2 in $flags_opt_all; do
18861      if test "$word1" = "$word2"; then
18862        ac_var_strip_word="yes"
18863      fi
18864    done
18865    if test "$ac_var_strip_word" = "no"; then
18866      ac_var_stripped="$ac_var_stripped $word1"
18867    fi
18868  done
18869    tmp_CPPFLAGS="$ac_var_stripped"
18870  squeeze tmp_CPPFLAGS
18871
18872      if test "$want_optimize" = "yes"; then
18873        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18874printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18875        tmp_options="$flags_opt_yes"
18876      fi
18877      if test "$want_optimize" = "no"; then
18878        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18879printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18880        tmp_options="$flags_opt_off"
18881      fi
18882      if test "$flags_prefer_cppflags" = "yes"; then
18883        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18884        CFLAGS="$tmp_CFLAGS"
18885      else
18886        CPPFLAGS="$tmp_CPPFLAGS"
18887        CFLAGS="$tmp_CFLAGS $tmp_options"
18888      fi
18889      squeeze CPPFLAGS
18890      squeeze CFLAGS
18891
18892    tmp_compiler_works="unknown"
18893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894/* end confdefs.h.  */
18895
18896
18897
18898int main (void)
18899{
18900
18901      int i = 1;
18902      return i;
18903
18904 ;
18905 return 0;
18906}
18907
18908_ACEOF
18909if ac_fn_c_try_compile "$LINENO"
18910then :
18911
18912    tmp_compiler_works="yes"
18913
18914else $as_nop
18915
18916    tmp_compiler_works="no"
18917    echo " " >&6
18918    sed 's/^/cc-fail: /' conftest.err >&6
18919    echo " " >&6
18920
18921fi
18922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18923    if test "$tmp_compiler_works" = "yes"; then
18924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925/* end confdefs.h.  */
18926
18927
18928
18929int main (void)
18930{
18931
18932        int i = 1;
18933        return i;
18934
18935 ;
18936 return 0;
18937}
18938
18939_ACEOF
18940if ac_fn_c_try_link "$LINENO"
18941then :
18942
18943      tmp_compiler_works="yes"
18944
18945else $as_nop
18946
18947      tmp_compiler_works="no"
18948      echo " " >&6
18949      sed 's/^/link-fail: /' conftest.err >&6
18950      echo " " >&6
18951
18952fi
18953rm -f core conftest.err conftest.$ac_objext conftest.beam \
18954    conftest$ac_exeext conftest.$ac_ext
18955  fi
18956    if test "x$cross_compiling" != "xyes" &&
18957    test "$tmp_compiler_works" = "yes"; then
18958
18959   case $host_os in
18960     darwin*)
18961      if test "$cross_compiling" = yes
18962then :
18963  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18965as_fn_error $? "cannot run test program while cross compiling
18966See \`config.log' for more details" "$LINENO" 5; }
18967else $as_nop
18968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969/* end confdefs.h.  */
18970
18971
18972#       ifdef __STDC__
18973#         include <stdlib.h>
18974#       endif
18975
18976int main (void)
18977{
18978
18979        int i = 0;
18980        exit(i);
18981
18982 ;
18983 return 0;
18984}
18985
18986_ACEOF
18987if ac_fn_c_try_run "$LINENO"
18988then :
18989  tmp_compiler_works="yes"
18990
18991else $as_nop
18992  tmp_compiler_works="no"
18993      echo " " >&6
18994      echo "run-fail: test program exited with status $ac_status" >&6
18995      echo " " >&6
18996
18997fi
18998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18999  conftest.$ac_objext conftest.beam conftest.$ac_ext
19000fi
19001
19002     ;;
19003     *)
19004      oldcc=$CC
19005      old=$LD_LIBRARY_PATH
19006      CC="sh ./run-compiler"
19007      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
19008      export LD_LIBRARY_PATH
19009      if test "$cross_compiling" = yes
19010then :
19011  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19012printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19013as_fn_error $? "cannot run test program while cross compiling
19014See \`config.log' for more details" "$LINENO" 5; }
19015else $as_nop
19016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017/* end confdefs.h.  */
19018
19019
19020#       ifdef __STDC__
19021#         include <stdlib.h>
19022#       endif
19023
19024int main (void)
19025{
19026
19027        int i = 0;
19028        exit(i);
19029
19030 ;
19031 return 0;
19032}
19033
19034_ACEOF
19035if ac_fn_c_try_run "$LINENO"
19036then :
19037  tmp_compiler_works="yes"
19038
19039else $as_nop
19040  tmp_compiler_works="no"
19041      echo " " >&6
19042      echo "run-fail: test program exited with status $ac_status" >&6
19043      echo " " >&6
19044
19045fi
19046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19047  conftest.$ac_objext conftest.beam conftest.$ac_ext
19048fi
19049
19050      LD_LIBRARY_PATH=$old # restore
19051      CC=$oldcc
19052     ;;
19053   esac
19054
19055  fi
19056    if test "$tmp_compiler_works" = "yes"; then
19057
19058        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19059printf "%s\n" "yes" >&6; }
19060        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19061printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19062
19063  else
19064
19065        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066printf "%s\n" "no" >&6; }
19067        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19068printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19069                CPPFLAGS="$tmp_save_CPPFLAGS"
19070        CFLAGS="$tmp_save_CFLAGS"
19071
19072  fi
19073
19074    fi
19075    #
19076  fi
19077
19078
19079        #
19080  if test "$compiler_id" != "unknown"; then
19081    #
19082    tmp_save_CPPFLAGS="$CPPFLAGS"
19083    tmp_save_CFLAGS="$CFLAGS"
19084    tmp_CPPFLAGS=""
19085    tmp_CFLAGS=""
19086    #
19087    case "$compiler_id" in
19088        #
19089      CLANG)
19090        #
19091        if test "$want_warnings" = "yes"; then
19092          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19093
19094    ac_var_added_warnings=""
19095  for warning in all extra; do
19096
19097  ac_var_match_word="no"
19098  for word1 in $CFLAGS; do
19099    for word2 in -Wno-$warning -W$warning; do
19100      if test "$word1" = "$word2"; then
19101        ac_var_match_word="yes"
19102      fi
19103    done
19104  done
19105
19106    if test "$ac_var_match_word" = "no"; then
19107      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19108    fi
19109  done
19110    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19111  squeeze tmp_CFLAGS
19112
19113
19114    ac_var_added_warnings=""
19115  for warning in pointer-arith write-strings; do
19116
19117  ac_var_match_word="no"
19118  for word1 in $CFLAGS; do
19119    for word2 in -Wno-$warning -W$warning; do
19120      if test "$word1" = "$word2"; then
19121        ac_var_match_word="yes"
19122      fi
19123    done
19124  done
19125
19126    if test "$ac_var_match_word" = "no"; then
19127      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19128    fi
19129  done
19130    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19131  squeeze tmp_CFLAGS
19132
19133
19134    ac_var_added_warnings=""
19135  for warning in shadow; do
19136
19137  ac_var_match_word="no"
19138  for word1 in $CFLAGS; do
19139    for word2 in -Wno-$warning -W$warning; do
19140      if test "$word1" = "$word2"; then
19141        ac_var_match_word="yes"
19142      fi
19143    done
19144  done
19145
19146    if test "$ac_var_match_word" = "no"; then
19147      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19148    fi
19149  done
19150    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19151  squeeze tmp_CFLAGS
19152
19153
19154    ac_var_added_warnings=""
19155  for warning in inline nested-externs; do
19156
19157  ac_var_match_word="no"
19158  for word1 in $CFLAGS; do
19159    for word2 in -Wno-$warning -W$warning; do
19160      if test "$word1" = "$word2"; then
19161        ac_var_match_word="yes"
19162      fi
19163    done
19164  done
19165
19166    if test "$ac_var_match_word" = "no"; then
19167      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19168    fi
19169  done
19170    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19171  squeeze tmp_CFLAGS
19172
19173
19174    ac_var_added_warnings=""
19175  for warning in missing-declarations; do
19176
19177  ac_var_match_word="no"
19178  for word1 in $CFLAGS; do
19179    for word2 in -Wno-$warning -W$warning; do
19180      if test "$word1" = "$word2"; then
19181        ac_var_match_word="yes"
19182      fi
19183    done
19184  done
19185
19186    if test "$ac_var_match_word" = "no"; then
19187      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19188    fi
19189  done
19190    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19191  squeeze tmp_CFLAGS
19192
19193
19194    ac_var_added_warnings=""
19195  for warning in missing-prototypes; do
19196
19197  ac_var_match_word="no"
19198  for word1 in $CFLAGS; do
19199    for word2 in -Wno-$warning -W$warning; do
19200      if test "$word1" = "$word2"; then
19201        ac_var_match_word="yes"
19202      fi
19203    done
19204  done
19205
19206    if test "$ac_var_match_word" = "no"; then
19207      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19208    fi
19209  done
19210    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19211  squeeze tmp_CFLAGS
19212
19213          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19214
19215    ac_var_added_warnings=""
19216  for warning in float-equal; do
19217
19218  ac_var_match_word="no"
19219  for word1 in $CFLAGS; do
19220    for word2 in -Wno-$warning -W$warning; do
19221      if test "$word1" = "$word2"; then
19222        ac_var_match_word="yes"
19223      fi
19224    done
19225  done
19226
19227    if test "$ac_var_match_word" = "no"; then
19228      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19229    fi
19230  done
19231    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19232  squeeze tmp_CFLAGS
19233
19234
19235    ac_var_added_warnings=""
19236  for warning in no-multichar sign-compare; do
19237
19238  ac_var_match_word="no"
19239  for word1 in $CFLAGS; do
19240    for word2 in -Wno-$warning -W$warning; do
19241      if test "$word1" = "$word2"; then
19242        ac_var_match_word="yes"
19243      fi
19244    done
19245  done
19246
19247    if test "$ac_var_match_word" = "no"; then
19248      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19249    fi
19250  done
19251    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19252  squeeze tmp_CFLAGS
19253
19254
19255    ac_var_added_warnings=""
19256  for warning in undef; do
19257
19258  ac_var_match_word="no"
19259  for word1 in $CFLAGS; do
19260    for word2 in -Wno-$warning -W$warning; do
19261      if test "$word1" = "$word2"; then
19262        ac_var_match_word="yes"
19263      fi
19264    done
19265  done
19266
19267    if test "$ac_var_match_word" = "no"; then
19268      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19269    fi
19270  done
19271    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19272  squeeze tmp_CFLAGS
19273
19274          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19275
19276    ac_var_added_warnings=""
19277  for warning in endif-labels strict-prototypes; do
19278
19279  ac_var_match_word="no"
19280  for word1 in $CFLAGS; do
19281    for word2 in -Wno-$warning -W$warning; do
19282      if test "$word1" = "$word2"; then
19283        ac_var_match_word="yes"
19284      fi
19285    done
19286  done
19287
19288    if test "$ac_var_match_word" = "no"; then
19289      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19290    fi
19291  done
19292    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19293  squeeze tmp_CFLAGS
19294
19295
19296    ac_var_added_warnings=""
19297  for warning in declaration-after-statement; do
19298
19299  ac_var_match_word="no"
19300  for word1 in $CFLAGS; do
19301    for word2 in -Wno-$warning -W$warning; do
19302      if test "$word1" = "$word2"; then
19303        ac_var_match_word="yes"
19304      fi
19305    done
19306  done
19307
19308    if test "$ac_var_match_word" = "no"; then
19309      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19310    fi
19311  done
19312    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19313  squeeze tmp_CFLAGS
19314
19315
19316    ac_var_added_warnings=""
19317  for warning in cast-align; do
19318
19319  ac_var_match_word="no"
19320  for word1 in $CFLAGS; do
19321    for word2 in -Wno-$warning -W$warning; do
19322      if test "$word1" = "$word2"; then
19323        ac_var_match_word="yes"
19324      fi
19325    done
19326  done
19327
19328    if test "$ac_var_match_word" = "no"; then
19329      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19330    fi
19331  done
19332    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19333  squeeze tmp_CFLAGS
19334
19335          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19336
19337    ac_var_added_warnings=""
19338  for warning in shorten-64-to-32; do
19339
19340  ac_var_match_word="no"
19341  for word1 in $CFLAGS; do
19342    for word2 in -Wno-$warning -W$warning; do
19343      if test "$word1" = "$word2"; then
19344        ac_var_match_word="yes"
19345      fi
19346    done
19347  done
19348
19349    if test "$ac_var_match_word" = "no"; then
19350      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19351    fi
19352  done
19353    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19354  squeeze tmp_CFLAGS
19355
19356          #
19357                    if test "$compiler_num" -ge "101"; then
19358
19359    ac_var_added_warnings=""
19360  for warning in unused; do
19361
19362  ac_var_match_word="no"
19363  for word1 in $CFLAGS; do
19364    for word2 in -Wno-$warning -W$warning; do
19365      if test "$word1" = "$word2"; then
19366        ac_var_match_word="yes"
19367      fi
19368    done
19369  done
19370
19371    if test "$ac_var_match_word" = "no"; then
19372      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19373    fi
19374  done
19375    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19376  squeeze tmp_CFLAGS
19377
19378          fi
19379          #
19380                    if test "$compiler_num" -ge "208"; then
19381
19382    ac_var_added_warnings=""
19383  for warning in vla; do
19384
19385  ac_var_match_word="no"
19386  for word1 in $CFLAGS; do
19387    for word2 in -Wno-$warning -W$warning; do
19388      if test "$word1" = "$word2"; then
19389        ac_var_match_word="yes"
19390      fi
19391    done
19392  done
19393
19394    if test "$ac_var_match_word" = "no"; then
19395      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19396    fi
19397  done
19398    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19399  squeeze tmp_CFLAGS
19400
19401          fi
19402          #
19403                    if test "$compiler_num" -ge "209"; then
19404
19405    ac_var_added_warnings=""
19406  for warning in shift-sign-overflow; do
19407
19408  ac_var_match_word="no"
19409  for word1 in $CFLAGS; do
19410    for word2 in -Wno-$warning -W$warning; do
19411      if test "$word1" = "$word2"; then
19412        ac_var_match_word="yes"
19413      fi
19414    done
19415  done
19416
19417    if test "$ac_var_match_word" = "no"; then
19418      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19419    fi
19420  done
19421    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19422  squeeze tmp_CFLAGS
19423
19424          fi
19425          #
19426                    if test "$compiler_num" -ge "300"; then
19427
19428    ac_var_added_warnings=""
19429  for warning in bad-function-cast; do
19430
19431  ac_var_match_word="no"
19432  for word1 in $CFLAGS; do
19433    for word2 in -Wno-$warning -W$warning; do
19434      if test "$word1" = "$word2"; then
19435        ac_var_match_word="yes"
19436      fi
19437    done
19438  done
19439
19440    if test "$ac_var_match_word" = "no"; then
19441      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19442    fi
19443  done
19444    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19445  squeeze tmp_CFLAGS
19446
19447
19448    ac_var_added_warnings=""
19449  for warning in conversion; do
19450
19451  ac_var_match_word="no"
19452  for word1 in $CFLAGS; do
19453    for word2 in -Wno-$warning -W$warning; do
19454      if test "$word1" = "$word2"; then
19455        ac_var_match_word="yes"
19456      fi
19457    done
19458  done
19459
19460    if test "$ac_var_match_word" = "no"; then
19461      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19462    fi
19463  done
19464    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19465  squeeze tmp_CFLAGS
19466
19467
19468    ac_var_added_warnings=""
19469  for warning in empty-body; do
19470
19471  ac_var_match_word="no"
19472  for word1 in $CFLAGS; do
19473    for word2 in -Wno-$warning -W$warning; do
19474      if test "$word1" = "$word2"; then
19475        ac_var_match_word="yes"
19476      fi
19477    done
19478  done
19479
19480    if test "$ac_var_match_word" = "no"; then
19481      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19482    fi
19483  done
19484    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19485  squeeze tmp_CFLAGS
19486
19487
19488    ac_var_added_warnings=""
19489  for warning in ignored-qualifiers; do
19490
19491  ac_var_match_word="no"
19492  for word1 in $CFLAGS; do
19493    for word2 in -Wno-$warning -W$warning; do
19494      if test "$word1" = "$word2"; then
19495        ac_var_match_word="yes"
19496      fi
19497    done
19498  done
19499
19500    if test "$ac_var_match_word" = "no"; then
19501      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19502    fi
19503  done
19504    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19505  squeeze tmp_CFLAGS
19506
19507
19508    ac_var_added_warnings=""
19509  for warning in type-limits; do
19510
19511  ac_var_match_word="no"
19512  for word1 in $CFLAGS; do
19513    for word2 in -Wno-$warning -W$warning; do
19514      if test "$word1" = "$word2"; then
19515        ac_var_match_word="yes"
19516      fi
19517    done
19518  done
19519
19520    if test "$ac_var_match_word" = "no"; then
19521      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19522    fi
19523  done
19524    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19525  squeeze tmp_CFLAGS
19526
19527
19528    ac_var_added_warnings=""
19529  for warning in no-sign-conversion; do
19530
19531  ac_var_match_word="no"
19532  for word1 in $CFLAGS; do
19533    for word2 in -Wno-$warning -W$warning; do
19534      if test "$word1" = "$word2"; then
19535        ac_var_match_word="yes"
19536      fi
19537    done
19538  done
19539
19540    if test "$ac_var_match_word" = "no"; then
19541      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19542    fi
19543  done
19544    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19545  squeeze tmp_CFLAGS
19546
19547          fi
19548          #
19549                    if test "$compiler_num" -ge "302"; then
19550
19551    ac_var_added_warnings=""
19552  for warning in enum-conversion; do
19553
19554  ac_var_match_word="no"
19555  for word1 in $CFLAGS; do
19556    for word2 in -Wno-$warning -W$warning; do
19557      if test "$word1" = "$word2"; then
19558        ac_var_match_word="yes"
19559      fi
19560    done
19561  done
19562
19563    if test "$ac_var_match_word" = "no"; then
19564      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19565    fi
19566  done
19567    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19568  squeeze tmp_CFLAGS
19569
19570            case $host_os in
19571            cygwin* | mingw*)
19572                                          ;;
19573            *)
19574
19575    ac_var_added_warnings=""
19576  for warning in missing-variable-declarations; do
19577
19578  ac_var_match_word="no"
19579  for word1 in $CFLAGS; do
19580    for word2 in -Wno-$warning -W$warning; do
19581      if test "$word1" = "$word2"; then
19582        ac_var_match_word="yes"
19583      fi
19584    done
19585  done
19586
19587    if test "$ac_var_match_word" = "no"; then
19588      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19589    fi
19590  done
19591    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19592  squeeze tmp_CFLAGS
19593
19594              ;;
19595            esac
19596          fi
19597          #
19598                    if test "$compiler_num" -ge "304"; then
19599
19600    ac_var_added_warnings=""
19601  for warning in unused-const-variable; do
19602
19603  ac_var_match_word="no"
19604  for word1 in $CFLAGS; do
19605    for word2 in -Wno-$warning -W$warning; do
19606      if test "$word1" = "$word2"; then
19607        ac_var_match_word="yes"
19608      fi
19609    done
19610  done
19611
19612    if test "$ac_var_match_word" = "no"; then
19613      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19614    fi
19615  done
19616    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19617  squeeze tmp_CFLAGS
19618
19619          fi
19620          #
19621                    if test "$compiler_num" -ge "306"; then
19622
19623    ac_var_added_warnings=""
19624  for warning in double-promotion; do
19625
19626  ac_var_match_word="no"
19627  for word1 in $CFLAGS; do
19628    for word2 in -Wno-$warning -W$warning; do
19629      if test "$word1" = "$word2"; then
19630        ac_var_match_word="yes"
19631      fi
19632    done
19633  done
19634
19635    if test "$ac_var_match_word" = "no"; then
19636      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19637    fi
19638  done
19639    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19640  squeeze tmp_CFLAGS
19641
19642          fi
19643          #
19644                    if test "$compiler_num" -ge "309"; then
19645
19646    ac_var_added_warnings=""
19647  for warning in comma; do
19648
19649  ac_var_match_word="no"
19650  for word1 in $CFLAGS; do
19651    for word2 in -Wno-$warning -W$warning; do
19652      if test "$word1" = "$word2"; then
19653        ac_var_match_word="yes"
19654      fi
19655    done
19656  done
19657
19658    if test "$ac_var_match_word" = "no"; then
19659      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19660    fi
19661  done
19662    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19663  squeeze tmp_CFLAGS
19664
19665            # avoid the varargs warning, fixed in 4.0
19666            # https://bugs.llvm.org/show_bug.cgi?id=29140
19667            if test "$compiler_num" -lt "400"; then
19668              tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19669            fi
19670          fi
19671                    if test "$compiler_num" -ge "700"; then
19672
19673    ac_var_added_warnings=""
19674  for warning in assign-enum; do
19675
19676  ac_var_match_word="no"
19677  for word1 in $CFLAGS; do
19678    for word2 in -Wno-$warning -W$warning; do
19679      if test "$word1" = "$word2"; then
19680        ac_var_match_word="yes"
19681      fi
19682    done
19683  done
19684
19685    if test "$ac_var_match_word" = "no"; then
19686      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19687    fi
19688  done
19689    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19690  squeeze tmp_CFLAGS
19691
19692
19693    ac_var_added_warnings=""
19694  for warning in extra-semi-stmt; do
19695
19696  ac_var_match_word="no"
19697  for word1 in $CFLAGS; do
19698    for word2 in -Wno-$warning -W$warning; do
19699      if test "$word1" = "$word2"; then
19700        ac_var_match_word="yes"
19701      fi
19702    done
19703  done
19704
19705    if test "$ac_var_match_word" = "no"; then
19706      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19707    fi
19708  done
19709    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19710  squeeze tmp_CFLAGS
19711
19712          fi
19713        fi
19714                                tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
19715        ;;
19716        #
19717      DEC_C)
19718        #
19719        if test "$want_warnings" = "yes"; then
19720                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19721        fi
19722        ;;
19723        #
19724      GNU_C)
19725        #
19726        if test "$want_warnings" = "yes"; then
19727          tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
19728          #
19729                              if test "x$cross_compiling" != "xyes" ||
19730            test "$compiler_num" -ge "300"; then
19731            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19732          fi
19733          #
19734
19735    ac_var_added_warnings=""
19736  for warning in all; do
19737
19738  ac_var_match_word="no"
19739  for word1 in $CFLAGS; do
19740    for word2 in -Wno-$warning -W$warning; do
19741      if test "$word1" = "$word2"; then
19742        ac_var_match_word="yes"
19743      fi
19744    done
19745  done
19746
19747    if test "$ac_var_match_word" = "no"; then
19748      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19749    fi
19750  done
19751    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19752  squeeze tmp_CFLAGS
19753
19754          tmp_CFLAGS="$tmp_CFLAGS -W"
19755          #
19756                    if test "$compiler_num" -ge "104"; then
19757
19758    ac_var_added_warnings=""
19759  for warning in pointer-arith write-strings; do
19760
19761  ac_var_match_word="no"
19762  for word1 in $CFLAGS; do
19763    for word2 in -Wno-$warning -W$warning; do
19764      if test "$word1" = "$word2"; then
19765        ac_var_match_word="yes"
19766      fi
19767    done
19768  done
19769
19770    if test "$ac_var_match_word" = "no"; then
19771      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19772    fi
19773  done
19774    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19775  squeeze tmp_CFLAGS
19776
19777                        if test "x$cross_compiling" != "xyes" ||
19778              test "$compiler_num" -ge "300"; then
19779
19780    ac_var_added_warnings=""
19781  for warning in unused shadow; do
19782
19783  ac_var_match_word="no"
19784  for word1 in $CFLAGS; do
19785    for word2 in -Wno-$warning -W$warning; do
19786      if test "$word1" = "$word2"; then
19787        ac_var_match_word="yes"
19788      fi
19789    done
19790  done
19791
19792    if test "$ac_var_match_word" = "no"; then
19793      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19794    fi
19795  done
19796    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19797  squeeze tmp_CFLAGS
19798
19799            fi
19800          fi
19801          #
19802                    if test "$compiler_num" -ge "207"; then
19803
19804    ac_var_added_warnings=""
19805  for warning in inline nested-externs; do
19806
19807  ac_var_match_word="no"
19808  for word1 in $CFLAGS; do
19809    for word2 in -Wno-$warning -W$warning; do
19810      if test "$word1" = "$word2"; then
19811        ac_var_match_word="yes"
19812      fi
19813    done
19814  done
19815
19816    if test "$ac_var_match_word" = "no"; then
19817      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19818    fi
19819  done
19820    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19821  squeeze tmp_CFLAGS
19822
19823                        if test "x$cross_compiling" != "xyes" ||
19824              test "$compiler_num" -ge "300"; then
19825
19826    ac_var_added_warnings=""
19827  for warning in missing-declarations; do
19828
19829  ac_var_match_word="no"
19830  for word1 in $CFLAGS; do
19831    for word2 in -Wno-$warning -W$warning; do
19832      if test "$word1" = "$word2"; then
19833        ac_var_match_word="yes"
19834      fi
19835    done
19836  done
19837
19838    if test "$ac_var_match_word" = "no"; then
19839      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19840    fi
19841  done
19842    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19843  squeeze tmp_CFLAGS
19844
19845
19846    ac_var_added_warnings=""
19847  for warning in missing-prototypes; do
19848
19849  ac_var_match_word="no"
19850  for word1 in $CFLAGS; do
19851    for word2 in -Wno-$warning -W$warning; do
19852      if test "$word1" = "$word2"; then
19853        ac_var_match_word="yes"
19854      fi
19855    done
19856  done
19857
19858    if test "$ac_var_match_word" = "no"; then
19859      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19860    fi
19861  done
19862    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19863  squeeze tmp_CFLAGS
19864
19865            fi
19866          fi
19867          #
19868                    if test "$compiler_num" -ge "295"; then
19869            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19870
19871    ac_var_added_warnings=""
19872  for warning in bad-function-cast; do
19873
19874  ac_var_match_word="no"
19875  for word1 in $CFLAGS; do
19876    for word2 in -Wno-$warning -W$warning; do
19877      if test "$word1" = "$word2"; then
19878        ac_var_match_word="yes"
19879      fi
19880    done
19881  done
19882
19883    if test "$ac_var_match_word" = "no"; then
19884      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19885    fi
19886  done
19887    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19888  squeeze tmp_CFLAGS
19889
19890          fi
19891          #
19892                    if test "$compiler_num" -ge "296"; then
19893
19894    ac_var_added_warnings=""
19895  for warning in float-equal; do
19896
19897  ac_var_match_word="no"
19898  for word1 in $CFLAGS; do
19899    for word2 in -Wno-$warning -W$warning; do
19900      if test "$word1" = "$word2"; then
19901        ac_var_match_word="yes"
19902      fi
19903    done
19904  done
19905
19906    if test "$ac_var_match_word" = "no"; then
19907      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19908    fi
19909  done
19910    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19911  squeeze tmp_CFLAGS
19912
19913            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19914
19915    ac_var_added_warnings=""
19916  for warning in sign-compare; do
19917
19918  ac_var_match_word="no"
19919  for word1 in $CFLAGS; do
19920    for word2 in -Wno-$warning -W$warning; do
19921      if test "$word1" = "$word2"; then
19922        ac_var_match_word="yes"
19923      fi
19924    done
19925  done
19926
19927    if test "$ac_var_match_word" = "no"; then
19928      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19929    fi
19930  done
19931    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19932  squeeze tmp_CFLAGS
19933
19934
19935    ac_var_added_warnings=""
19936  for warning in undef; do
19937
19938  ac_var_match_word="no"
19939  for word1 in $CFLAGS; do
19940    for word2 in -Wno-$warning -W$warning; do
19941      if test "$word1" = "$word2"; then
19942        ac_var_match_word="yes"
19943      fi
19944    done
19945  done
19946
19947    if test "$ac_var_match_word" = "no"; then
19948      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19949    fi
19950  done
19951    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19952  squeeze tmp_CFLAGS
19953
19954          fi
19955          #
19956                    if test "$compiler_num" -ge "297"; then
19957            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19958          fi
19959          #
19960                    if test "$compiler_num" -ge "300"; then
19961                                                            tmp_CFLAGS="$tmp_CFLAGS"
19962          fi
19963          #
19964                    if test "$compiler_num" -ge "303"; then
19965
19966    ac_var_added_warnings=""
19967  for warning in endif-labels strict-prototypes; do
19968
19969  ac_var_match_word="no"
19970  for word1 in $CFLAGS; do
19971    for word2 in -Wno-$warning -W$warning; do
19972      if test "$word1" = "$word2"; then
19973        ac_var_match_word="yes"
19974      fi
19975    done
19976  done
19977
19978    if test "$ac_var_match_word" = "no"; then
19979      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19980    fi
19981  done
19982    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19983  squeeze tmp_CFLAGS
19984
19985          fi
19986          #
19987                    if test "$compiler_num" -ge "304"; then
19988
19989    ac_var_added_warnings=""
19990  for warning in declaration-after-statement; do
19991
19992  ac_var_match_word="no"
19993  for word1 in $CFLAGS; do
19994    for word2 in -Wno-$warning -W$warning; do
19995      if test "$word1" = "$word2"; then
19996        ac_var_match_word="yes"
19997      fi
19998    done
19999  done
20000
20001    if test "$ac_var_match_word" = "no"; then
20002      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20003    fi
20004  done
20005    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20006  squeeze tmp_CFLAGS
20007
20008
20009    ac_var_added_warnings=""
20010  for warning in old-style-definition; do
20011
20012  ac_var_match_word="no"
20013  for word1 in $CFLAGS; do
20014    for word2 in -Wno-$warning -W$warning; do
20015      if test "$word1" = "$word2"; then
20016        ac_var_match_word="yes"
20017      fi
20018    done
20019  done
20020
20021    if test "$ac_var_match_word" = "no"; then
20022      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20023    fi
20024  done
20025    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20026  squeeze tmp_CFLAGS
20027
20028          fi
20029          #
20030                    if test "$compiler_num" -ge "400"; then
20031            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
20032          fi
20033          #
20034                    if test "$compiler_num" -ge "402"; then
20035
20036    ac_var_added_warnings=""
20037  for warning in cast-align; do
20038
20039  ac_var_match_word="no"
20040  for word1 in $CFLAGS; do
20041    for word2 in -Wno-$warning -W$warning; do
20042      if test "$word1" = "$word2"; then
20043        ac_var_match_word="yes"
20044      fi
20045    done
20046  done
20047
20048    if test "$ac_var_match_word" = "no"; then
20049      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20050    fi
20051  done
20052    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20053  squeeze tmp_CFLAGS
20054
20055          fi
20056          #
20057                    if test "$compiler_num" -ge "403"; then
20058
20059    ac_var_added_warnings=""
20060  for warning in type-limits old-style-declaration; do
20061
20062  ac_var_match_word="no"
20063  for word1 in $CFLAGS; do
20064    for word2 in -Wno-$warning -W$warning; do
20065      if test "$word1" = "$word2"; then
20066        ac_var_match_word="yes"
20067      fi
20068    done
20069  done
20070
20071    if test "$ac_var_match_word" = "no"; then
20072      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20073    fi
20074  done
20075    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20076  squeeze tmp_CFLAGS
20077
20078
20079    ac_var_added_warnings=""
20080  for warning in missing-parameter-type empty-body; do
20081
20082  ac_var_match_word="no"
20083  for word1 in $CFLAGS; do
20084    for word2 in -Wno-$warning -W$warning; do
20085      if test "$word1" = "$word2"; then
20086        ac_var_match_word="yes"
20087      fi
20088    done
20089  done
20090
20091    if test "$ac_var_match_word" = "no"; then
20092      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20093    fi
20094  done
20095    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20096  squeeze tmp_CFLAGS
20097
20098
20099    ac_var_added_warnings=""
20100  for warning in clobbered ignored-qualifiers; do
20101
20102  ac_var_match_word="no"
20103  for word1 in $CFLAGS; do
20104    for word2 in -Wno-$warning -W$warning; do
20105      if test "$word1" = "$word2"; then
20106        ac_var_match_word="yes"
20107      fi
20108    done
20109  done
20110
20111    if test "$ac_var_match_word" = "no"; then
20112      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20113    fi
20114  done
20115    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20116  squeeze tmp_CFLAGS
20117
20118
20119    ac_var_added_warnings=""
20120  for warning in conversion; do
20121
20122  ac_var_match_word="no"
20123  for word1 in $CFLAGS; do
20124    for word2 in -Wno-$warning -W$warning; do
20125      if test "$word1" = "$word2"; then
20126        ac_var_match_word="yes"
20127      fi
20128    done
20129  done
20130
20131    if test "$ac_var_match_word" = "no"; then
20132      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20133    fi
20134  done
20135    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20136  squeeze tmp_CFLAGS
20137
20138            tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
20139
20140    ac_var_added_warnings=""
20141  for warning in vla; do
20142
20143  ac_var_match_word="no"
20144  for word1 in $CFLAGS; do
20145    for word2 in -Wno-$warning -W$warning; do
20146      if test "$word1" = "$word2"; then
20147        ac_var_match_word="yes"
20148      fi
20149    done
20150  done
20151
20152    if test "$ac_var_match_word" = "no"; then
20153      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20154    fi
20155  done
20156    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20157  squeeze tmp_CFLAGS
20158
20159                        tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
20160          fi
20161          #
20162                    if test "$compiler_num" -ge "405"; then
20163                        if test "$curl_cv_have_def__WIN32" = "yes"; then
20164              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
20165            fi
20166          fi
20167          #
20168                    if test "$compiler_num" -ge "406"; then
20169
20170    ac_var_added_warnings=""
20171  for warning in double-promotion; do
20172
20173  ac_var_match_word="no"
20174  for word1 in $CFLAGS; do
20175    for word2 in -Wno-$warning -W$warning; do
20176      if test "$word1" = "$word2"; then
20177        ac_var_match_word="yes"
20178      fi
20179    done
20180  done
20181
20182    if test "$ac_var_match_word" = "no"; then
20183      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20184    fi
20185  done
20186    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20187  squeeze tmp_CFLAGS
20188
20189          fi
20190          #
20191                    if test "$compiler_num" -ge "408"; then
20192            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20193          fi
20194          #
20195                    if test "$compiler_num" -ge "500"; then
20196            tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20197          fi
20198          #
20199                    if test "$compiler_num" -ge "600"; then
20200
20201    ac_var_added_warnings=""
20202  for warning in shift-negative-value; do
20203
20204  ac_var_match_word="no"
20205  for word1 in $CFLAGS; do
20206    for word2 in -Wno-$warning -W$warning; do
20207      if test "$word1" = "$word2"; then
20208        ac_var_match_word="yes"
20209      fi
20210    done
20211  done
20212
20213    if test "$ac_var_match_word" = "no"; then
20214      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20215    fi
20216  done
20217    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20218  squeeze tmp_CFLAGS
20219
20220            tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20221
20222    ac_var_added_warnings=""
20223  for warning in null-dereference; do
20224
20225  ac_var_match_word="no"
20226  for word1 in $CFLAGS; do
20227    for word2 in -Wno-$warning -W$warning; do
20228      if test "$word1" = "$word2"; then
20229        ac_var_match_word="yes"
20230      fi
20231    done
20232  done
20233
20234    if test "$ac_var_match_word" = "no"; then
20235      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20236    fi
20237  done
20238    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20239  squeeze tmp_CFLAGS
20240
20241            tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20242
20243    ac_var_added_warnings=""
20244  for warning in duplicated-cond; do
20245
20246  ac_var_match_word="no"
20247  for word1 in $CFLAGS; do
20248    for word2 in -Wno-$warning -W$warning; do
20249      if test "$word1" = "$word2"; then
20250        ac_var_match_word="yes"
20251      fi
20252    done
20253  done
20254
20255    if test "$ac_var_match_word" = "no"; then
20256      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20257    fi
20258  done
20259    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20260  squeeze tmp_CFLAGS
20261
20262
20263    ac_var_added_warnings=""
20264  for warning in unused-const-variable; do
20265
20266  ac_var_match_word="no"
20267  for word1 in $CFLAGS; do
20268    for word2 in -Wno-$warning -W$warning; do
20269      if test "$word1" = "$word2"; then
20270        ac_var_match_word="yes"
20271      fi
20272    done
20273  done
20274
20275    if test "$ac_var_match_word" = "no"; then
20276      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20277    fi
20278  done
20279    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20280  squeeze tmp_CFLAGS
20281
20282          fi
20283          #
20284                    if test "$compiler_num" -ge "700"; then
20285
20286    ac_var_added_warnings=""
20287  for warning in duplicated-branches; do
20288
20289  ac_var_match_word="no"
20290  for word1 in $CFLAGS; do
20291    for word2 in -Wno-$warning -W$warning; do
20292      if test "$word1" = "$word2"; then
20293        ac_var_match_word="yes"
20294      fi
20295    done
20296  done
20297
20298    if test "$ac_var_match_word" = "no"; then
20299      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20300    fi
20301  done
20302    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20303  squeeze tmp_CFLAGS
20304
20305
20306    ac_var_added_warnings=""
20307  for warning in restrict; do
20308
20309  ac_var_match_word="no"
20310  for word1 in $CFLAGS; do
20311    for word2 in -Wno-$warning -W$warning; do
20312      if test "$word1" = "$word2"; then
20313        ac_var_match_word="yes"
20314      fi
20315    done
20316  done
20317
20318    if test "$ac_var_match_word" = "no"; then
20319      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20320    fi
20321  done
20322    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20323  squeeze tmp_CFLAGS
20324
20325
20326    ac_var_added_warnings=""
20327  for warning in alloc-zero; do
20328
20329  ac_var_match_word="no"
20330  for word1 in $CFLAGS; do
20331    for word2 in -Wno-$warning -W$warning; do
20332      if test "$word1" = "$word2"; then
20333        ac_var_match_word="yes"
20334      fi
20335    done
20336  done
20337
20338    if test "$ac_var_match_word" = "no"; then
20339      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20340    fi
20341  done
20342    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20343  squeeze tmp_CFLAGS
20344
20345            tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20346            tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20347            if test "$compiler_num" -lt "1200"; then
20348                            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
20349            fi
20350          fi
20351          #
20352                    if test "$compiler_num" -ge "1000"; then
20353
20354    ac_var_added_warnings=""
20355  for warning in arith-conversion; do
20356
20357  ac_var_match_word="no"
20358  for word1 in $CFLAGS; do
20359    for word2 in -Wno-$warning -W$warning; do
20360      if test "$word1" = "$word2"; then
20361        ac_var_match_word="yes"
20362      fi
20363    done
20364  done
20365
20366    if test "$ac_var_match_word" = "no"; then
20367      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20368    fi
20369  done
20370    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20371  squeeze tmp_CFLAGS
20372
20373
20374    ac_var_added_warnings=""
20375  for warning in enum-conversion; do
20376
20377  ac_var_match_word="no"
20378  for word1 in $CFLAGS; do
20379    for word2 in -Wno-$warning -W$warning; do
20380      if test "$word1" = "$word2"; then
20381        ac_var_match_word="yes"
20382      fi
20383    done
20384  done
20385
20386    if test "$ac_var_match_word" = "no"; then
20387      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20388    fi
20389  done
20390    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20391  squeeze tmp_CFLAGS
20392
20393          fi
20394          #
20395        fi
20396        #
20397                if test "$compiler_num" -ge "300"; then
20398          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20399        else
20400                              if test "x$cross_compiling" = "xyes"; then
20401            if test "$compiler_num" -ge "104"; then
20402                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20403            fi
20404            if test "$compiler_num" -ge "207"; then
20405                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20406              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20407            fi
20408          fi
20409        fi
20410        ;;
20411        #
20412      HP_UX_C)
20413        #
20414        if test "$want_warnings" = "yes"; then
20415                    tmp_CFLAGS="$tmp_CFLAGS +w1"
20416        fi
20417        ;;
20418        #
20419      IBM_C)
20420        #
20421                tmp_CFLAGS="$tmp_CFLAGS"
20422        ;;
20423        #
20424      INTEL_UNIX_C)
20425        #
20426        if test "$want_warnings" = "yes"; then
20427          if test "$compiler_num" -gt "600"; then
20428                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20429                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20430                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20431                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20432                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20433                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20434                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20435                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20436                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20437                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20438                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20439          fi
20440        fi
20441                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20442                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20443                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20444        ;;
20445        #
20446      INTEL_WINDOWS_C)
20447        #
20448                tmp_CFLAGS="$tmp_CFLAGS"
20449        ;;
20450        #
20451      LCC)
20452        #
20453        if test "$want_warnings" = "yes"; then
20454                                                  tmp_CFLAGS="$tmp_CFLAGS"
20455        fi
20456        ;;
20457        #
20458      SGI_MIPS_C)
20459        #
20460        if test "$want_warnings" = "yes"; then
20461                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20462        fi
20463        ;;
20464        #
20465      SGI_MIPSPRO_C)
20466        #
20467        if test "$want_warnings" = "yes"; then
20468                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20469                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20470        fi
20471        ;;
20472        #
20473      SUNPRO_C)
20474        #
20475        if test "$want_warnings" = "yes"; then
20476                    tmp_CFLAGS="$tmp_CFLAGS -v"
20477        fi
20478        ;;
20479        #
20480      TINY_C)
20481        #
20482        if test "$want_warnings" = "yes"; then
20483
20484    ac_var_added_warnings=""
20485  for warning in all; do
20486
20487  ac_var_match_word="no"
20488  for word1 in $CFLAGS; do
20489    for word2 in -Wno-$warning -W$warning; do
20490      if test "$word1" = "$word2"; then
20491        ac_var_match_word="yes"
20492      fi
20493    done
20494  done
20495
20496    if test "$ac_var_match_word" = "no"; then
20497      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20498    fi
20499  done
20500    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20501  squeeze tmp_CFLAGS
20502
20503
20504    ac_var_added_warnings=""
20505  for warning in write-strings; do
20506
20507  ac_var_match_word="no"
20508  for word1 in $CFLAGS; do
20509    for word2 in -Wno-$warning -W$warning; do
20510      if test "$word1" = "$word2"; then
20511        ac_var_match_word="yes"
20512      fi
20513    done
20514  done
20515
20516    if test "$ac_var_match_word" = "no"; then
20517      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20518    fi
20519  done
20520    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20521  squeeze tmp_CFLAGS
20522
20523
20524    ac_var_added_warnings=""
20525  for warning in unsupported; do
20526
20527  ac_var_match_word="no"
20528  for word1 in $CFLAGS; do
20529    for word2 in -Wno-$warning -W$warning; do
20530      if test "$word1" = "$word2"; then
20531        ac_var_match_word="yes"
20532      fi
20533    done
20534  done
20535
20536    if test "$ac_var_match_word" = "no"; then
20537      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20538    fi
20539  done
20540    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20541  squeeze tmp_CFLAGS
20542
20543        fi
20544        ;;
20545        #
20546    esac
20547    #
20548    squeeze tmp_CPPFLAGS
20549    squeeze tmp_CFLAGS
20550    #
20551    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20552      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
20553printf %s "checking if compiler accepts strict warning options... " >&6; }
20554      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20555      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20556      squeeze CPPFLAGS
20557      squeeze CFLAGS
20558
20559    tmp_compiler_works="unknown"
20560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561/* end confdefs.h.  */
20562
20563
20564
20565int main (void)
20566{
20567
20568      int i = 1;
20569      return i;
20570
20571 ;
20572 return 0;
20573}
20574
20575_ACEOF
20576if ac_fn_c_try_compile "$LINENO"
20577then :
20578
20579    tmp_compiler_works="yes"
20580
20581else $as_nop
20582
20583    tmp_compiler_works="no"
20584    echo " " >&6
20585    sed 's/^/cc-fail: /' conftest.err >&6
20586    echo " " >&6
20587
20588fi
20589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20590    if test "$tmp_compiler_works" = "yes"; then
20591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592/* end confdefs.h.  */
20593
20594
20595
20596int main (void)
20597{
20598
20599        int i = 1;
20600        return i;
20601
20602 ;
20603 return 0;
20604}
20605
20606_ACEOF
20607if ac_fn_c_try_link "$LINENO"
20608then :
20609
20610      tmp_compiler_works="yes"
20611
20612else $as_nop
20613
20614      tmp_compiler_works="no"
20615      echo " " >&6
20616      sed 's/^/link-fail: /' conftest.err >&6
20617      echo " " >&6
20618
20619fi
20620rm -f core conftest.err conftest.$ac_objext conftest.beam \
20621    conftest$ac_exeext conftest.$ac_ext
20622  fi
20623    if test "x$cross_compiling" != "xyes" &&
20624    test "$tmp_compiler_works" = "yes"; then
20625
20626   case $host_os in
20627     darwin*)
20628      if test "$cross_compiling" = yes
20629then :
20630  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20632as_fn_error $? "cannot run test program while cross compiling
20633See \`config.log' for more details" "$LINENO" 5; }
20634else $as_nop
20635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636/* end confdefs.h.  */
20637
20638
20639#       ifdef __STDC__
20640#         include <stdlib.h>
20641#       endif
20642
20643int main (void)
20644{
20645
20646        int i = 0;
20647        exit(i);
20648
20649 ;
20650 return 0;
20651}
20652
20653_ACEOF
20654if ac_fn_c_try_run "$LINENO"
20655then :
20656  tmp_compiler_works="yes"
20657
20658else $as_nop
20659  tmp_compiler_works="no"
20660      echo " " >&6
20661      echo "run-fail: test program exited with status $ac_status" >&6
20662      echo " " >&6
20663
20664fi
20665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20666  conftest.$ac_objext conftest.beam conftest.$ac_ext
20667fi
20668
20669     ;;
20670     *)
20671      oldcc=$CC
20672      old=$LD_LIBRARY_PATH
20673      CC="sh ./run-compiler"
20674      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20675      export LD_LIBRARY_PATH
20676      if test "$cross_compiling" = yes
20677then :
20678  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20679printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20680as_fn_error $? "cannot run test program while cross compiling
20681See \`config.log' for more details" "$LINENO" 5; }
20682else $as_nop
20683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684/* end confdefs.h.  */
20685
20686
20687#       ifdef __STDC__
20688#         include <stdlib.h>
20689#       endif
20690
20691int main (void)
20692{
20693
20694        int i = 0;
20695        exit(i);
20696
20697 ;
20698 return 0;
20699}
20700
20701_ACEOF
20702if ac_fn_c_try_run "$LINENO"
20703then :
20704  tmp_compiler_works="yes"
20705
20706else $as_nop
20707  tmp_compiler_works="no"
20708      echo " " >&6
20709      echo "run-fail: test program exited with status $ac_status" >&6
20710      echo " " >&6
20711
20712fi
20713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20714  conftest.$ac_objext conftest.beam conftest.$ac_ext
20715fi
20716
20717      LD_LIBRARY_PATH=$old # restore
20718      CC=$oldcc
20719     ;;
20720   esac
20721
20722  fi
20723    if test "$tmp_compiler_works" = "yes"; then
20724
20725        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20726printf "%s\n" "yes" >&6; }
20727        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20728printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20729
20730  else
20731
20732        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20733printf "%s\n" "no" >&6; }
20734        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20735printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20736                CPPFLAGS="$tmp_save_CPPFLAGS"
20737        CFLAGS="$tmp_save_CFLAGS"
20738
20739  fi
20740
20741    fi
20742    #
20743  fi
20744
20745
20746if test "$compiler_id" = "INTEL_UNIX_C"; then
20747  #
20748  if test "$compiler_num" -ge "1000"; then
20749        CFLAGS="$CFLAGS -shared-intel"
20750  elif test "$compiler_num" -ge "900"; then
20751        CFLAGS="$CFLAGS -i-dynamic"
20752  fi
20753  #
20754fi
20755
20756CURL_CFLAG_EXTRAS=""
20757if test X"$want_werror" = Xyes; then
20758  CURL_CFLAG_EXTRAS="-Werror"
20759  if test "$compiler_id" = "GNU_C"; then
20760            if test "$compiler_num" -ge "500"; then
20761      CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
20762    fi
20763  fi
20764fi
20765
20766
20767
20768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
20769printf %s "checking if compiler halts on compilation errors... " >&6; }
20770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771/* end confdefs.h.  */
20772
20773
20774
20775int main (void)
20776{
20777
20778      force compilation error
20779
20780 ;
20781 return 0;
20782}
20783
20784_ACEOF
20785if ac_fn_c_try_compile "$LINENO"
20786then :
20787
20788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20789printf "%s\n" "no" >&6; }
20790    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
20791
20792else $as_nop
20793
20794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20795printf "%s\n" "yes" >&6; }
20796
20797fi
20798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20799
20800
20801    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
20802printf %s "checking if compiler halts on negative sized arrays... " >&6; }
20803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804/* end confdefs.h.  */
20805
20806
20807      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
20808
20809int main (void)
20810{
20811
20812      bad_t dummy;
20813
20814 ;
20815 return 0;
20816}
20817
20818_ACEOF
20819if ac_fn_c_try_compile "$LINENO"
20820then :
20821
20822    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20823printf "%s\n" "no" >&6; }
20824    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
20825
20826else $as_nop
20827
20828    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20829printf "%s\n" "yes" >&6; }
20830
20831fi
20832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20833
20834
20835    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
20836printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
20837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838/* end confdefs.h.  */
20839
20840
20841#     include <stdlib.h>
20842      int rand(int n);
20843      int rand(int n)
20844      {
20845        if(n)
20846          return ++n;
20847        else
20848          return n;
20849      }
20850
20851int main (void)
20852{
20853
20854      int i[2]={0,0};
20855      int j = rand(i[0]);
20856      if(j)
20857        return j;
20858
20859 ;
20860 return 0;
20861}
20862
20863_ACEOF
20864if ac_fn_c_try_compile "$LINENO"
20865then :
20866
20867    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20868printf "%s\n" "no" >&6; }
20869    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
20870
20871else $as_nop
20872
20873    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20874printf "%s\n" "yes" >&6; }
20875
20876fi
20877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20878
20879
20880      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
20881printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
20882  supports_symbol_hiding="no"
20883  symbol_hiding_CFLAGS=""
20884  symbol_hiding_EXTERN=""
20885  tmp_CFLAGS=""
20886  tmp_EXTERN=""
20887  case "$compiler_id" in
20888    CLANG)
20889            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20890      tmp_CFLAGS="-fvisibility=hidden"
20891      supports_symbol_hiding="yes"
20892      ;;
20893    GNU_C)
20894            if test "$compiler_num" -ge "304"; then
20895        if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
20896          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20897          tmp_CFLAGS="-fvisibility=hidden"
20898          supports_symbol_hiding="yes"
20899        fi
20900      fi
20901      ;;
20902    INTEL_UNIX_C)
20903            if test "$compiler_num" -ge "900"; then
20904        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
20905          tmp_save_CFLAGS="$CFLAGS"
20906          CFLAGS="$CFLAGS -fvisibility=hidden"
20907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908/* end confdefs.h.  */
20909
20910
20911#             include <stdio.h>
20912
20913int main (void)
20914{
20915
20916              printf("icc fvisibility bug test");
20917
20918 ;
20919 return 0;
20920}
20921
20922_ACEOF
20923if ac_fn_c_try_link "$LINENO"
20924then :
20925
20926            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20927            tmp_CFLAGS="-fvisibility=hidden"
20928            supports_symbol_hiding="yes"
20929
20930fi
20931rm -f core conftest.err conftest.$ac_objext conftest.beam \
20932    conftest$ac_exeext conftest.$ac_ext
20933          CFLAGS="$tmp_save_CFLAGS"
20934        fi
20935      fi
20936      ;;
20937    SUNPRO_C)
20938      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
20939        tmp_EXTERN="__global"
20940        tmp_CFLAGS="-xldscope=hidden"
20941        supports_symbol_hiding="yes"
20942      fi
20943      ;;
20944  esac
20945  if test "$supports_symbol_hiding" = "yes"; then
20946    tmp_save_CFLAGS="$CFLAGS"
20947    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20948    squeeze CFLAGS
20949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950/* end confdefs.h.  */
20951
20952
20953        $tmp_EXTERN char *dummy(char *buff);
20954        char *dummy(char *buff)
20955        {
20956         if(buff)
20957           return ++buff;
20958         else
20959           return buff;
20960        }
20961
20962int main (void)
20963{
20964
20965        char b[16];
20966        char *r = dummy(&b[0]);
20967        if(r)
20968          return (int)*r;
20969
20970 ;
20971 return 0;
20972}
20973
20974_ACEOF
20975if ac_fn_c_try_compile "$LINENO"
20976then :
20977
20978      supports_symbol_hiding="yes"
20979      if test -f conftest.err; then
20980        grep 'visibility' conftest.err >/dev/null
20981        if test "$?" -eq "0"; then
20982          supports_symbol_hiding="no"
20983        fi
20984      fi
20985
20986else $as_nop
20987
20988      supports_symbol_hiding="no"
20989      echo " " >&6
20990      sed 's/^/cc-src: /' conftest.$ac_ext >&6
20991      sed 's/^/cc-err: /' conftest.err >&6
20992      echo " " >&6
20993
20994fi
20995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20996    CFLAGS="$tmp_save_CFLAGS"
20997  fi
20998  if test "$supports_symbol_hiding" = "yes"; then
20999    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21000printf "%s\n" "yes" >&6; }
21001    symbol_hiding_CFLAGS="$tmp_CFLAGS"
21002    symbol_hiding_EXTERN="$tmp_EXTERN"
21003  else
21004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005printf "%s\n" "no" >&6; }
21006  fi
21007
21008
21009
21010      supports_curldebug="unknown"
21011  if test "$want_curldebug" = "yes"; then
21012    if test "x$enable_shared" != "xno" &&
21013      test "x$enable_shared" != "xyes"; then
21014      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21015printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
21016      supports_curldebug="no"
21017    fi
21018    if test "x$enable_static" != "xno" &&
21019      test "x$enable_static" != "xyes"; then
21020      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21021printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
21022      supports_curldebug="no"
21023    fi
21024    if test "$supports_curldebug" != "no"; then
21025      if test "$enable_shared" = "yes" &&
21026        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21027        supports_curldebug="no"
21028        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21029printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21030      fi
21031    fi
21032  fi
21033  #
21034  if test "$want_curldebug" = "yes"; then
21035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21036printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
21037    test "$supports_curldebug" = "no" || supports_curldebug="yes"
21038    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21039printf "%s\n" "$supports_curldebug" >&6; }
21040    if test "$supports_curldebug" = "no"; then
21041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21042printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21043      want_curldebug="no"
21044    fi
21045  fi
21046
21047 if test x$want_curldebug = xyes; then
21048  CURLDEBUG_TRUE=
21049  CURLDEBUG_FALSE='#'
21050else
21051  CURLDEBUG_TRUE='#'
21052  CURLDEBUG_FALSE=
21053fi
21054
21055
21056supports_unittests=yes
21057# cross-compilation of unit tests static library/programs fails when
21058# libcurl shared library is built. This might be due to a libtool or
21059# automake issue. In this case we disable unit tests.
21060if test "x$cross_compiling" != "xno" &&
21061   test "x$enable_shared" != "xno"; then
21062  supports_unittests=no
21063fi
21064
21065# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
21066# a problem related with OpenSSL headers and library versions not matching.
21067# Disable unit tests while time to further investigate this is found.
21068case $host in
21069  mips-sgi-irix6.5)
21070    if test "$compiler_id" = "GNU_C"; then
21071      supports_unittests=no
21072    fi
21073    ;;
21074esac
21075
21076# All AIX autobuilds fails unit tests linking against unittests library
21077# due to unittests library being built with no symbols or members. Libtool ?
21078# Disable unit tests while time to further investigate this is found.
21079case $host_os in
21080  aix*)
21081    supports_unittests=no
21082    ;;
21083esac
21084
21085if test "x$want_debug" = "xyes" &&
21086   test "x$supports_unittests" = "xyes"; then
21087  want_unittests=yes
21088else
21089  want_unittests=no
21090fi
21091 if test x$want_unittests = xyes; then
21092  BUILD_UNITTESTS_TRUE=
21093  BUILD_UNITTESTS_FALSE='#'
21094else
21095  BUILD_UNITTESTS_TRUE='#'
21096  BUILD_UNITTESTS_FALSE=
21097fi
21098
21099
21100
21101
21102
21103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21104printf %s "checking for windows.h... " >&6; }
21105if test ${curl_cv_header_windows_h+y}
21106then :
21107  printf %s "(cached) " >&6
21108else $as_nop
21109
21110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111/* end confdefs.h.  */
21112
21113
21114#undef inline
21115#ifndef WIN32_LEAN_AND_MEAN
21116#define WIN32_LEAN_AND_MEAN
21117#endif
21118#include <windows.h>
21119
21120int main (void)
21121{
21122
21123#if defined(__CYGWIN__) || defined(__CEGCC__)
21124        HAVE_WINDOWS_H shall not be defined.
21125#else
21126        int dummy=2*WINVER;
21127#endif
21128
21129 ;
21130 return 0;
21131}
21132
21133_ACEOF
21134if ac_fn_c_try_compile "$LINENO"
21135then :
21136
21137      curl_cv_header_windows_h="yes"
21138
21139else $as_nop
21140
21141      curl_cv_header_windows_h="no"
21142
21143fi
21144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21145
21146fi
21147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21148printf "%s\n" "$curl_cv_header_windows_h" >&6; }
21149  case "$curl_cv_header_windows_h" in
21150    yes)
21151
21152printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21153
21154      ;;
21155  esac
21156
21157
21158    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21159printf %s "checking whether build target is a native Windows one... " >&6; }
21160if test ${curl_cv_native_windows+y}
21161then :
21162  printf %s "(cached) " >&6
21163else $as_nop
21164
21165    if test "$curl_cv_header_windows_h" = "no"; then
21166      curl_cv_native_windows="no"
21167    else
21168      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169/* end confdefs.h.  */
21170
21171
21172
21173int main (void)
21174{
21175
21176#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21177   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21178          int dummy=1;
21179#else
21180          Not a native Windows build target.
21181#endif
21182
21183 ;
21184 return 0;
21185}
21186
21187_ACEOF
21188if ac_fn_c_try_compile "$LINENO"
21189then :
21190
21191        curl_cv_native_windows="yes"
21192
21193else $as_nop
21194
21195        curl_cv_native_windows="no"
21196
21197fi
21198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21199    fi
21200
21201fi
21202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
21203printf "%s\n" "$curl_cv_native_windows" >&6; }
21204   if test "x$curl_cv_native_windows" = xyes; then
21205  DOING_NATIVE_WINDOWS_TRUE=
21206  DOING_NATIVE_WINDOWS_FALSE='#'
21207else
21208  DOING_NATIVE_WINDOWS_TRUE='#'
21209  DOING_NATIVE_WINDOWS_FALSE=
21210fi
21211
21212
21213case X-"$curl_cv_native_windows" in
21214  X-yes)
21215
21216    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21217printf %s "checking for winsock2.h... " >&6; }
21218if test ${curl_cv_header_winsock2_h+y}
21219then :
21220  printf %s "(cached) " >&6
21221else $as_nop
21222
21223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224/* end confdefs.h.  */
21225
21226
21227#undef inline
21228#ifndef WIN32_LEAN_AND_MEAN
21229#define WIN32_LEAN_AND_MEAN
21230#endif
21231#include <windows.h>
21232#include <winsock2.h>
21233
21234int main (void)
21235{
21236
21237#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21238        HAVE_WINSOCK2_H shall not be defined.
21239#else
21240        int dummy=2*IPPROTO_ESP;
21241#endif
21242
21243 ;
21244 return 0;
21245}
21246
21247_ACEOF
21248if ac_fn_c_try_compile "$LINENO"
21249then :
21250
21251      curl_cv_header_winsock2_h="yes"
21252
21253else $as_nop
21254
21255      curl_cv_header_winsock2_h="no"
21256
21257fi
21258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21259
21260fi
21261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21262printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
21263  case "$curl_cv_header_winsock2_h" in
21264    yes)
21265
21266printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21267
21268      ;;
21269  esac
21270
21271
21272    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21273printf %s "checking for ws2tcpip.h... " >&6; }
21274if test ${curl_cv_header_ws2tcpip_h+y}
21275then :
21276  printf %s "(cached) " >&6
21277else $as_nop
21278
21279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280/* end confdefs.h.  */
21281
21282
21283#undef inline
21284#ifndef WIN32_LEAN_AND_MEAN
21285#define WIN32_LEAN_AND_MEAN
21286#endif
21287#include <windows.h>
21288#include <winsock2.h>
21289#include <ws2tcpip.h>
21290
21291int main (void)
21292{
21293
21294#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21295        HAVE_WS2TCPIP_H shall not be defined.
21296#else
21297        int dummy=2*IP_PKTINFO;
21298#endif
21299
21300 ;
21301 return 0;
21302}
21303
21304_ACEOF
21305if ac_fn_c_try_compile "$LINENO"
21306then :
21307
21308      curl_cv_header_ws2tcpip_h="yes"
21309
21310else $as_nop
21311
21312      curl_cv_header_ws2tcpip_h="no"
21313
21314fi
21315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21316
21317fi
21318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
21319printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
21320  case "$curl_cv_header_ws2tcpip_h" in
21321    yes)
21322
21323printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
21324
21325      ;;
21326  esac
21327
21328    ;;
21329  *)
21330    curl_cv_header_winsock2_h="no"
21331    curl_cv_header_ws2tcpip_h="no"
21332    ;;
21333esac
21334
21335    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21336printf %s "checking whether build target supports WIN32 file API... " >&6; }
21337  curl_win32_file_api="no"
21338  if test "$curl_cv_header_windows_h" = "yes"; then
21339    if test x"$enable_largefile" != "xno"; then
21340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341/* end confdefs.h.  */
21342
21343
21344
21345int main (void)
21346{
21347
21348#if !defined(_WIN32_WCE) && \
21349    (defined(__MINGW32__) || \
21350    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
21351          int dummy=1;
21352#else
21353          WIN32 large file API not supported.
21354#endif
21355
21356 ;
21357 return 0;
21358}
21359
21360_ACEOF
21361if ac_fn_c_try_compile "$LINENO"
21362then :
21363
21364        curl_win32_file_api="win32_large_files"
21365
21366fi
21367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21368    fi
21369    if test "$curl_win32_file_api" = "no"; then
21370      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21371/* end confdefs.h.  */
21372
21373
21374
21375int main (void)
21376{
21377
21378#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21379          int dummy=1;
21380#else
21381          WIN32 small file API not supported.
21382#endif
21383
21384 ;
21385 return 0;
21386}
21387
21388_ACEOF
21389if ac_fn_c_try_compile "$LINENO"
21390then :
21391
21392        curl_win32_file_api="win32_small_files"
21393
21394fi
21395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21396    fi
21397  fi
21398  case "$curl_win32_file_api" in
21399    win32_large_files)
21400      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21401printf "%s\n" "yes (large file enabled)" >&6; }
21402
21403printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21404
21405      USE_WIN32_LARGE_FILES=1
21406
21407      ;;
21408    win32_small_files)
21409      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21410printf "%s\n" "yes (large file disabled)" >&6; }
21411
21412printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21413
21414      USE_WIN32_SMALL_FILES=1
21415
21416      ;;
21417    *)
21418      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21419printf "%s\n" "no" >&6; }
21420      ;;
21421  esac
21422
21423
21424    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21425printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21426  curl_win32_crypto_api="no"
21427  if test "$curl_cv_header_windows_h" = "yes"; then
21428    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21429/* end confdefs.h.  */
21430
21431
21432#undef inline
21433#ifndef WIN32_LEAN_AND_MEAN
21434#define WIN32_LEAN_AND_MEAN
21435#endif
21436#include <windows.h>
21437#include <wincrypt.h>
21438
21439int main (void)
21440{
21441
21442        HCRYPTPROV hCryptProv;
21443        if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21444                               CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21445          CryptReleaseContext(hCryptProv, 0);
21446        }
21447
21448 ;
21449 return 0;
21450}
21451
21452_ACEOF
21453if ac_fn_c_try_compile "$LINENO"
21454then :
21455
21456      curl_win32_crypto_api="yes"
21457
21458fi
21459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21460  fi
21461  case "$curl_win32_crypto_api" in
21462    yes)
21463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464printf "%s\n" "yes" >&6; }
21465
21466printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21467
21468      USE_WIN32_CRYPTO=1
21469
21470      ;;
21471    *)
21472      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21473printf "%s\n" "no" >&6; }
21474      ;;
21475  esac
21476
21477
21478
21479
21480  tst_cflags="no"
21481  case $host_os in
21482    darwin*)
21483      tst_cflags="yes"
21484      ;;
21485  esac
21486
21487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21488printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21490printf "%s\n" "$tst_cflags" >&6; };
21491
21492  if test "$tst_cflags" = "yes"; then
21493    old_CFLAGS=$CFLAGS
21494    CFLAGS="$CFLAGS -Werror=partial-availability"
21495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21496printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21497    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498/* end confdefs.h.  */
21499
21500int main (void)
21501{
21502
21503 ;
21504 return 0;
21505}
21506_ACEOF
21507if ac_fn_c_try_compile "$LINENO"
21508then :
21509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21510printf "%s\n" "yes" >&6; }
21511else $as_nop
21512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513printf "%s\n" "no" >&6; }
21514      CFLAGS=$old_CFLAGS
21515fi
21516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21517  fi
21518
21519
21520
21521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5
21522printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; }
21523case $host_os in
21524  darwin*)
21525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526/* end confdefs.h.  */
21527
21528
21529#include <TargetConditionals.h>
21530
21531int main (void)
21532{
21533
21534#if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
21535      return 0;
21536#else
21537#error Not macOS
21538#endif
21539
21540 ;
21541 return 0;
21542}
21543
21544_ACEOF
21545if ac_fn_c_try_compile "$LINENO"
21546then :
21547
21548      build_for_macos="yes"
21549
21550else $as_nop
21551
21552      build_for_macos="no"
21553
21554fi
21555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21556    if test "x$build_for_macos" != xno; then
21557      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21558printf "%s\n" "yes" >&6; }
21559      LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
21560    else
21561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562printf "%s\n" "no" >&6; }
21563    fi
21564    ;;
21565  *)
21566    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21567printf "%s\n" "no" >&6; }
21568esac
21569
21570
21571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21572printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574/* end confdefs.h.  */
21575
21576
21577#include <stdlib.h>
21578
21579int main (void)
21580{
21581
21582      if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21583
21584 ;
21585 return 0;
21586}
21587
21588_ACEOF
21589if ac_fn_c_try_compile "$LINENO"
21590then :
21591
21592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21593printf "%s\n" "yes" >&6; }
21594
21595printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21596
21597
21598else $as_nop
21599
21600    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21601printf "%s\n" "no" >&6; }
21602
21603fi
21604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21605
21606
21607 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21608  HAVE_WINDRES_TRUE=
21609  HAVE_WINDRES_FALSE='#'
21610else
21611  HAVE_WINDRES_TRUE='#'
21612  HAVE_WINDRES_FALSE=
21613fi
21614
21615
21616if test "$curl_cv_native_windows" = "yes"; then
21617  if test -z "$HAVE_WINDRES_TRUE"; then :
21618  else
21619  as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
21620fi
21621fi
21622
21623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21624printf %s "checking whether to support http... " >&6; }
21625# Check whether --enable-http was given.
21626if test ${enable_http+y}
21627then :
21628  enableval=$enable_http;  case "$enableval" in
21629  no)
21630       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21631printf "%s\n" "no" >&6; }
21632
21633printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21634
21635       disable_http="yes"
21636       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21637printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21638       CURL_DISABLE_HTTP=1
21639
21640
21641printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21642
21643       CURL_DISABLE_RTSP=1
21644
21645
21646printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21647
21648
21649printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21650
21651       curl_h1_msg="no      (--enable-http, --with-hyper)"
21652       curl_altsvc_msg="no";
21653       curl_hsts_msg="no      (--enable-hsts)";
21654       enable_altsvc="no"
21655       hsts="no"
21656       ;;
21657  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21658printf "%s\n" "yes" >&6; }
21659       ;;
21660  esac
21661else $as_nop
21662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21663printf "%s\n" "yes" >&6; }
21664
21665fi
21666
21667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21668printf %s "checking whether to support ftp... " >&6; }
21669# Check whether --enable-ftp was given.
21670if test ${enable_ftp+y}
21671then :
21672  enableval=$enable_ftp;  case "$enableval" in
21673  no)
21674       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21675printf "%s\n" "no" >&6; }
21676
21677printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21678
21679       CURL_DISABLE_FTP=1
21680
21681       ;;
21682  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21683printf "%s\n" "yes" >&6; }
21684       ;;
21685  esac
21686else $as_nop
21687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688printf "%s\n" "yes" >&6; }
21689
21690fi
21691
21692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21693printf %s "checking whether to support file... " >&6; }
21694# Check whether --enable-file was given.
21695if test ${enable_file+y}
21696then :
21697  enableval=$enable_file;  case "$enableval" in
21698  no)
21699       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700printf "%s\n" "no" >&6; }
21701
21702printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21703
21704       CURL_DISABLE_FILE=1
21705
21706       ;;
21707  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21708printf "%s\n" "yes" >&6; }
21709       ;;
21710  esac
21711else $as_nop
21712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21713printf "%s\n" "yes" >&6; }
21714
21715fi
21716
21717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21718printf %s "checking whether to support ldap... " >&6; }
21719# Check whether --enable-ldap was given.
21720if test ${enable_ldap+y}
21721then :
21722  enableval=$enable_ldap;  case "$enableval" in
21723  no)
21724       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725printf "%s\n" "no" >&6; }
21726
21727printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21728
21729       CURL_DISABLE_LDAP=1
21730
21731       ;;
21732  yes)
21733       ldap_askedfor="yes"
21734       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735printf "%s\n" "yes" >&6; }
21736       ;;
21737  *)
21738       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21739printf "%s\n" "yes" >&6; }
21740       ;;
21741  esac
21742else $as_nop
21743
21744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745printf "%s\n" "yes" >&6; }
21746
21747fi
21748
21749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21750printf %s "checking whether to support ldaps... " >&6; }
21751# Check whether --enable-ldaps was given.
21752if test ${enable_ldaps+y}
21753then :
21754  enableval=$enable_ldaps;  case "$enableval" in
21755  no)
21756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757printf "%s\n" "no" >&6; }
21758
21759printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21760
21761       CURL_DISABLE_LDAPS=1
21762
21763       ;;
21764  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21765         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21766printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21767
21768printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21769
21770         CURL_DISABLE_LDAPS=1
21771
21772       else
21773         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21774printf "%s\n" "yes" >&6; }
21775
21776printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21777
21778         HAVE_LDAP_SSL=1
21779
21780       fi
21781       ;;
21782  esac
21783else $as_nop
21784
21785       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21786         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21787printf "%s\n" "no" >&6; }
21788
21789printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21790
21791         CURL_DISABLE_LDAPS=1
21792
21793       else
21794         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21795printf "%s\n" "yes" >&6; }
21796
21797printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21798
21799         HAVE_LDAP_SSL=1
21800
21801       fi
21802
21803fi
21804
21805
21806
21807OPT_HYPER="no"
21808
21809
21810# Check whether --with-hyper was given.
21811if test ${with_hyper+y}
21812then :
21813  withval=$with_hyper; OPT_HYPER=$withval
21814fi
21815
21816case "$OPT_HYPER" in
21817  no)
21818        want_hyper="no"
21819    ;;
21820  yes)
21821        want_hyper="default"
21822    want_hyper_path=""
21823    ;;
21824  *)
21825        want_hyper="yes"
21826    want_hyper_path="$withval"
21827    ;;
21828esac
21829
21830if test X"$want_hyper" != Xno; then
21831  if test "x$disable_http" = "xyes"; then
21832    as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21833  fi
21834
21835    CLEANLDFLAGS="$LDFLAGS"
21836  CLEANCPPFLAGS="$CPPFLAGS"
21837  CLEANLIBS="$LIBS"
21838
21839
21840    if test -n "$PKG_CONFIG"; then
21841      PKGCONFIG="$PKG_CONFIG"
21842    else
21843      if test -n "$ac_tool_prefix"; then
21844  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21845set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21847printf %s "checking for $ac_word... " >&6; }
21848if test ${ac_cv_path_PKGCONFIG+y}
21849then :
21850  printf %s "(cached) " >&6
21851else $as_nop
21852  case $PKGCONFIG in
21853  [\\/]* | ?:[\\/]*)
21854  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21855  ;;
21856  *)
21857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858as_dummy="$PATH:/usr/bin:/usr/local/bin"
21859for as_dir in $as_dummy
21860do
21861  IFS=$as_save_IFS
21862  case $as_dir in #(((
21863    '') as_dir=./ ;;
21864    */) ;;
21865    *) as_dir=$as_dir/ ;;
21866  esac
21867    for ac_exec_ext in '' $ac_executable_extensions; do
21868  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21869    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21870    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21871    break 2
21872  fi
21873done
21874  done
21875IFS=$as_save_IFS
21876
21877  ;;
21878esac
21879fi
21880PKGCONFIG=$ac_cv_path_PKGCONFIG
21881if test -n "$PKGCONFIG"; then
21882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21883printf "%s\n" "$PKGCONFIG" >&6; }
21884else
21885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886printf "%s\n" "no" >&6; }
21887fi
21888
21889
21890fi
21891if test -z "$ac_cv_path_PKGCONFIG"; then
21892  ac_pt_PKGCONFIG=$PKGCONFIG
21893  # Extract the first word of "pkg-config", so it can be a program name with args.
21894set dummy pkg-config; ac_word=$2
21895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21896printf %s "checking for $ac_word... " >&6; }
21897if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21898then :
21899  printf %s "(cached) " >&6
21900else $as_nop
21901  case $ac_pt_PKGCONFIG in
21902  [\\/]* | ?:[\\/]*)
21903  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21904  ;;
21905  *)
21906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21907as_dummy="$PATH:/usr/bin:/usr/local/bin"
21908for as_dir in $as_dummy
21909do
21910  IFS=$as_save_IFS
21911  case $as_dir in #(((
21912    '') as_dir=./ ;;
21913    */) ;;
21914    *) as_dir=$as_dir/ ;;
21915  esac
21916    for ac_exec_ext in '' $ac_executable_extensions; do
21917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21918    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21920    break 2
21921  fi
21922done
21923  done
21924IFS=$as_save_IFS
21925
21926  ;;
21927esac
21928fi
21929ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21930if test -n "$ac_pt_PKGCONFIG"; then
21931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21932printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21933else
21934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935printf "%s\n" "no" >&6; }
21936fi
21937
21938  if test "x$ac_pt_PKGCONFIG" = x; then
21939    PKGCONFIG="no"
21940  else
21941    case $cross_compiling:$ac_tool_warned in
21942yes:)
21943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21945ac_tool_warned=yes ;;
21946esac
21947    PKGCONFIG=$ac_pt_PKGCONFIG
21948  fi
21949else
21950  PKGCONFIG="$ac_cv_path_PKGCONFIG"
21951fi
21952
21953    fi
21954
21955    if test "x$PKGCONFIG" != "xno"; then
21956      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21957printf %s "checking for hyper options with pkg-config... " >&6; }
21958            itexists=`
21959    if test -n "$want_hyper_path"; then
21960      PKG_CONFIG_LIBDIR="$want_hyper_path"
21961      export PKG_CONFIG_LIBDIR
21962    fi
21963         $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21964
21965      if test -z "$itexists"; then
21966                        PKGCONFIG="no"
21967        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21968printf "%s\n" "no" >&6; }
21969      else
21970        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21971printf "%s\n" "found" >&6; }
21972      fi
21973    fi
21974
21975
21976  if test "$PKGCONFIG" != "no" ; then
21977    LIB_HYPER=`
21978    if test -n "$want_hyper_path"; then
21979      PKG_CONFIG_LIBDIR="$want_hyper_path"
21980      export PKG_CONFIG_LIBDIR
21981    fi
21982
21983      $PKGCONFIG --libs-only-l hyper`
21984    CPP_HYPER=`
21985    if test -n "$want_hyper_path"; then
21986      PKG_CONFIG_LIBDIR="$want_hyper_path"
21987      export PKG_CONFIG_LIBDIR
21988    fi
21989       $PKGCONFIG --cflags-only-I hyper`
21990    LD_HYPER=`
21991    if test -n "$want_hyper_path"; then
21992      PKG_CONFIG_LIBDIR="$want_hyper_path"
21993      export PKG_CONFIG_LIBDIR
21994    fi
21995
21996      $PKGCONFIG --libs-only-L hyper`
21997  else
21998        LIB_HYPER="-lhyper -ldl -lpthread -lm"
21999    if test X"$want_hyper" != Xdefault; then
22000      CPP_HYPER=-I"$want_hyper_path/capi/include"
22001      LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22002    fi
22003  fi
22004  if test -n "$LIB_HYPER"; then
22005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22006printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22008printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22009    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22010printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22011
22012    LDFLAGS="$LDFLAGS $LD_HYPER"
22013    CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22014    LIBS="$LIB_HYPER $LIBS"
22015
22016    if test "x$cross_compiling" != "xyes"; then
22017            DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22018    fi
22019
22020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22021printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22022if test ${ac_cv_lib_hyper_hyper_io_new+y}
22023then :
22024  printf %s "(cached) " >&6
22025else $as_nop
22026  ac_check_lib_save_LIBS=$LIBS
22027LIBS="-lhyper  $LIBS"
22028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029/* end confdefs.h.  */
22030
22031
22032#ifdef __cplusplus
22033extern "C"
22034#endif
22035char hyper_io_new ();
22036int main (void)
22037{
22038return hyper_io_new ();
22039 ;
22040 return 0;
22041}
22042_ACEOF
22043if ac_fn_c_try_link "$LINENO"
22044then :
22045  ac_cv_lib_hyper_hyper_io_new=yes
22046else $as_nop
22047  ac_cv_lib_hyper_hyper_io_new=no
22048fi
22049rm -f core conftest.err conftest.$ac_objext conftest.beam \
22050    conftest$ac_exeext conftest.$ac_ext
22051LIBS=$ac_check_lib_save_LIBS
22052fi
22053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22054printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22055if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22056then :
22057
22058              for ac_header in hyper.h
22059do :
22060  ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22061if test "x$ac_cv_header_hyper_h" = xyes
22062then :
22063  printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22064 experimental="$experimental Hyper"
22065          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22066printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22067          curl_h1_msg="enabled (Hyper)"
22068          curl_h2_msg=$curl_h1_msg
22069          HYPER_ENABLED=1
22070
22071printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22072
22073          USE_HYPER=1
22074
22075          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22076          export CURL_LIBRARY_PATH
22077          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22078printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22079fi
22080
22081done
22082
22083else $as_nop
22084  for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22085        if test -f "$d/libhyper.a"; then
22086          as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22087        fi
22088      done
22089      as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22090
22091fi
22092
22093  fi
22094fi
22095
22096if test X"$want_hyper" != Xno; then
22097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22098printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22099
22100printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22101
22102  CURL_DISABLE_RTSP=1
22103
22104else
22105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22106printf %s "checking whether to support rtsp... " >&6; }
22107  # Check whether --enable-rtsp was given.
22108if test ${enable_rtsp+y}
22109then :
22110  enableval=$enable_rtsp;  case "$enableval" in
22111    no)
22112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113printf "%s\n" "no" >&6; }
22114
22115printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22116
22117       CURL_DISABLE_RTSP=1
22118
22119       ;;
22120    *)
22121       if test x$CURL_DISABLE_HTTP = x1 ; then
22122         as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22123       else
22124         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22125printf "%s\n" "yes" >&6; }
22126         curl_rtsp_msg="enabled"
22127       fi
22128       ;;
22129    esac
22130else $as_nop
22131  if test "x$CURL_DISABLE_HTTP" != "x1"; then
22132          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22133printf "%s\n" "yes" >&6; }
22134          curl_rtsp_msg="enabled"
22135       else
22136          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22137printf "%s\n" "no" >&6; }
22138       fi
22139
22140fi
22141
22142fi
22143
22144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22145printf %s "checking whether to support proxies... " >&6; }
22146# Check whether --enable-proxy was given.
22147if test ${enable_proxy+y}
22148then :
22149  enableval=$enable_proxy;  case "$enableval" in
22150  no)
22151       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22152printf "%s\n" "no" >&6; }
22153
22154printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22155
22156       CURL_DISABLE_PROXY=1
22157
22158       https_proxy="no"
22159       ;;
22160  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22161printf "%s\n" "yes" >&6; }
22162       ;;
22163  esac
22164else $as_nop
22165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22166printf "%s\n" "yes" >&6; }
22167
22168fi
22169
22170
22171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22172printf %s "checking whether to support dict... " >&6; }
22173# Check whether --enable-dict was given.
22174if test ${enable_dict+y}
22175then :
22176  enableval=$enable_dict;  case "$enableval" in
22177  no)
22178       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22179printf "%s\n" "no" >&6; }
22180
22181printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22182
22183       CURL_DISABLE_DICT=1
22184
22185       ;;
22186  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22187printf "%s\n" "yes" >&6; }
22188       ;;
22189  esac
22190else $as_nop
22191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22192printf "%s\n" "yes" >&6; }
22193
22194fi
22195
22196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22197printf %s "checking whether to support telnet... " >&6; }
22198# Check whether --enable-telnet was given.
22199if test ${enable_telnet+y}
22200then :
22201  enableval=$enable_telnet;  case "$enableval" in
22202  no)
22203       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22204printf "%s\n" "no" >&6; }
22205
22206printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22207
22208       CURL_DISABLE_TELNET=1
22209
22210       ;;
22211  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22212printf "%s\n" "yes" >&6; }
22213       ;;
22214  esac
22215else $as_nop
22216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22217printf "%s\n" "yes" >&6; }
22218
22219fi
22220
22221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22222printf %s "checking whether to support tftp... " >&6; }
22223# Check whether --enable-tftp was given.
22224if test ${enable_tftp+y}
22225then :
22226  enableval=$enable_tftp;  case "$enableval" in
22227  no)
22228       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22229printf "%s\n" "no" >&6; }
22230
22231printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22232
22233       CURL_DISABLE_TFTP=1
22234
22235       ;;
22236  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22237printf "%s\n" "yes" >&6; }
22238       ;;
22239  esac
22240else $as_nop
22241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22242printf "%s\n" "yes" >&6; }
22243
22244fi
22245
22246
22247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22248printf %s "checking whether to support pop3... " >&6; }
22249# Check whether --enable-pop3 was given.
22250if test ${enable_pop3+y}
22251then :
22252  enableval=$enable_pop3;  case "$enableval" in
22253  no)
22254       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22255printf "%s\n" "no" >&6; }
22256
22257printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22258
22259       CURL_DISABLE_POP3=1
22260
22261       ;;
22262  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22263printf "%s\n" "yes" >&6; }
22264       ;;
22265  esac
22266else $as_nop
22267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22268printf "%s\n" "yes" >&6; }
22269
22270fi
22271
22272
22273
22274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22275printf %s "checking whether to support imap... " >&6; }
22276# Check whether --enable-imap was given.
22277if test ${enable_imap+y}
22278then :
22279  enableval=$enable_imap;  case "$enableval" in
22280  no)
22281       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22282printf "%s\n" "no" >&6; }
22283
22284printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22285
22286       CURL_DISABLE_IMAP=1
22287
22288       ;;
22289  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290printf "%s\n" "yes" >&6; }
22291       ;;
22292  esac
22293else $as_nop
22294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22295printf "%s\n" "yes" >&6; }
22296
22297fi
22298
22299
22300
22301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22302printf %s "checking whether to support smb... " >&6; }
22303# Check whether --enable-smb was given.
22304if test ${enable_smb+y}
22305then :
22306  enableval=$enable_smb;  case "$enableval" in
22307  no)
22308       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309printf "%s\n" "no" >&6; }
22310
22311printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22312
22313       CURL_DISABLE_SMB=1
22314
22315       ;;
22316  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22317printf "%s\n" "yes" >&6; }
22318       ;;
22319  esac
22320else $as_nop
22321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22322printf "%s\n" "yes" >&6; }
22323
22324fi
22325
22326
22327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22328printf %s "checking whether to support smtp... " >&6; }
22329# Check whether --enable-smtp was given.
22330if test ${enable_smtp+y}
22331then :
22332  enableval=$enable_smtp;  case "$enableval" in
22333  no)
22334       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335printf "%s\n" "no" >&6; }
22336
22337printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22338
22339       CURL_DISABLE_SMTP=1
22340
22341       ;;
22342  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22343printf "%s\n" "yes" >&6; }
22344       ;;
22345  esac
22346else $as_nop
22347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22348printf "%s\n" "yes" >&6; }
22349
22350fi
22351
22352
22353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22354printf %s "checking whether to support gopher... " >&6; }
22355# Check whether --enable-gopher was given.
22356if test ${enable_gopher+y}
22357then :
22358  enableval=$enable_gopher;  case "$enableval" in
22359  no)
22360       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22361printf "%s\n" "no" >&6; }
22362
22363printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22364
22365       CURL_DISABLE_GOPHER=1
22366
22367       ;;
22368  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22369printf "%s\n" "yes" >&6; }
22370       ;;
22371  esac
22372else $as_nop
22373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22374printf "%s\n" "yes" >&6; }
22375
22376fi
22377
22378
22379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22380printf %s "checking whether to support mqtt... " >&6; }
22381# Check whether --enable-mqtt was given.
22382if test ${enable_mqtt+y}
22383then :
22384  enableval=$enable_mqtt;  case "$enableval" in
22385  no)
22386       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22387printf "%s\n" "no" >&6; }
22388
22389printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22390
22391       CURL_DISABLE_MQTT=1
22392
22393       ;;
22394  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22395printf "%s\n" "yes" >&6; }
22396       ;;
22397  esac
22398else $as_nop
22399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22400printf "%s\n" "no" >&6; }
22401
22402fi
22403
22404
22405
22406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22407printf %s "checking whether to provide built-in manual... " >&6; }
22408# Check whether --enable-manual was given.
22409if test ${enable_manual+y}
22410then :
22411  enableval=$enable_manual;  case "$enableval" in
22412  no)
22413       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22414printf "%s\n" "no" >&6; }
22415       ;;
22416  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22417printf "%s\n" "yes" >&6; }
22418       USE_MANUAL="1"
22419       ;;
22420  esac
22421else $as_nop
22422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22423printf "%s\n" "yes" >&6; }
22424       USE_MANUAL="1"
22425
22426fi
22427
22428
22429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22430printf %s "checking whether to enable generation of C code... " >&6; }
22431# Check whether --enable-libcurl_option was given.
22432if test ${enable_libcurl_option+y}
22433then :
22434  enableval=$enable_libcurl_option;  case "$enableval" in
22435  no)
22436       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22437printf "%s\n" "no" >&6; }
22438
22439printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22440
22441       curl_libcurl_msg="no"
22442       ;;
22443  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444printf "%s\n" "yes" >&6; }
22445       ;;
22446  esac
22447else $as_nop
22448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22449printf "%s\n" "yes" >&6; }
22450
22451fi
22452
22453
22454
22455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22456printf %s "checking whether to use libgcc... " >&6; }
22457# Check whether --enable-libgcc was given.
22458if test ${enable_libgcc+y}
22459then :
22460  enableval=$enable_libgcc;  case "$enableval" in
22461  yes)
22462       LIBS="-lgcc $LIBS"
22463       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22464printf "%s\n" "yes" >&6; }
22465       ;;
22466  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22467printf "%s\n" "no" >&6; }
22468       ;;
22469  esac
22470else $as_nop
22471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22472printf "%s\n" "no" >&6; }
22473
22474fi
22475
22476
22477
22478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22479printf %s "checking if X/Open network library is required... " >&6; }
22480  tst_lib_xnet_required="no"
22481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482/* end confdefs.h.  */
22483
22484
22485int main (void)
22486{
22487#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22488  return 0;
22489#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22490  return 0;
22491#else
22492  force compilation error
22493#endif
22494}
22495
22496
22497_ACEOF
22498if ac_fn_c_try_compile "$LINENO"
22499then :
22500
22501    tst_lib_xnet_required="yes"
22502    LIBS="-lxnet $LIBS"
22503
22504fi
22505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22507printf "%s\n" "$tst_lib_xnet_required" >&6; }
22508
22509
22510ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22511if test "x$ac_cv_func_gethostbyname" = xyes
22512then :
22513  HAVE_GETHOSTBYNAME="1"
22514
22515else $as_nop
22516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22517printf %s "checking for gethostbyname in -lnsl... " >&6; }
22518if test ${ac_cv_lib_nsl_gethostbyname+y}
22519then :
22520  printf %s "(cached) " >&6
22521else $as_nop
22522  ac_check_lib_save_LIBS=$LIBS
22523LIBS="-lnsl  $LIBS"
22524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525/* end confdefs.h.  */
22526
22527
22528#ifdef __cplusplus
22529extern "C"
22530#endif
22531char gethostbyname ();
22532int main (void)
22533{
22534return gethostbyname ();
22535 ;
22536 return 0;
22537}
22538_ACEOF
22539if ac_fn_c_try_link "$LINENO"
22540then :
22541  ac_cv_lib_nsl_gethostbyname=yes
22542else $as_nop
22543  ac_cv_lib_nsl_gethostbyname=no
22544fi
22545rm -f core conftest.err conftest.$ac_objext conftest.beam \
22546    conftest$ac_exeext conftest.$ac_ext
22547LIBS=$ac_check_lib_save_LIBS
22548fi
22549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22550printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22551if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22552then :
22553  HAVE_GETHOSTBYNAME="1"
22554                             LIBS="-lnsl $LIBS"
22555
22556fi
22557
22558
22559fi
22560
22561
22562if test "$HAVE_GETHOSTBYNAME" != "1"
22563then
22564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22565printf %s "checking for gethostbyname in -lsocket... " >&6; }
22566if test ${ac_cv_lib_socket_gethostbyname+y}
22567then :
22568  printf %s "(cached) " >&6
22569else $as_nop
22570  ac_check_lib_save_LIBS=$LIBS
22571LIBS="-lsocket  $LIBS"
22572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573/* end confdefs.h.  */
22574
22575
22576#ifdef __cplusplus
22577extern "C"
22578#endif
22579char gethostbyname ();
22580int main (void)
22581{
22582return gethostbyname ();
22583 ;
22584 return 0;
22585}
22586_ACEOF
22587if ac_fn_c_try_link "$LINENO"
22588then :
22589  ac_cv_lib_socket_gethostbyname=yes
22590else $as_nop
22591  ac_cv_lib_socket_gethostbyname=no
22592fi
22593rm -f core conftest.err conftest.$ac_objext conftest.beam \
22594    conftest$ac_exeext conftest.$ac_ext
22595LIBS=$ac_check_lib_save_LIBS
22596fi
22597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22598printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22599if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22600then :
22601  HAVE_GETHOSTBYNAME="1"
22602               LIBS="-lsocket $LIBS"
22603
22604fi
22605
22606fi
22607
22608if test "$HAVE_GETHOSTBYNAME" != "1"
22609then
22610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22611printf %s "checking for gethostbyname in -lwatt... " >&6; }
22612if test ${ac_cv_lib_watt_gethostbyname+y}
22613then :
22614  printf %s "(cached) " >&6
22615else $as_nop
22616  ac_check_lib_save_LIBS=$LIBS
22617LIBS="-lwatt  $LIBS"
22618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619/* end confdefs.h.  */
22620
22621
22622#ifdef __cplusplus
22623extern "C"
22624#endif
22625char gethostbyname ();
22626int main (void)
22627{
22628return gethostbyname ();
22629 ;
22630 return 0;
22631}
22632_ACEOF
22633if ac_fn_c_try_link "$LINENO"
22634then :
22635  ac_cv_lib_watt_gethostbyname=yes
22636else $as_nop
22637  ac_cv_lib_watt_gethostbyname=no
22638fi
22639rm -f core conftest.err conftest.$ac_objext conftest.beam \
22640    conftest$ac_exeext conftest.$ac_ext
22641LIBS=$ac_check_lib_save_LIBS
22642fi
22643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22644printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22645if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22646then :
22647  HAVE_GETHOSTBYNAME="1"
22648               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22649               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22650               LIBS="-lwatt $LIBS"
22651
22652fi
22653
22654fi
22655
22656if test "$HAVE_GETHOSTBYNAME" != "1"
22657then
22658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22659printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22660  my_ac_save_LIBS=$LIBS
22661  LIBS="-lnsl -lsocket $LIBS"
22662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663/* end confdefs.h.  */
22664
22665
22666
22667int main (void)
22668{
22669
22670      gethostbyname();
22671
22672 ;
22673 return 0;
22674}
22675
22676_ACEOF
22677if ac_fn_c_try_link "$LINENO"
22678then :
22679
22680    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681printf "%s\n" "yes" >&6; }
22682    HAVE_GETHOSTBYNAME="1"
22683
22684else $as_nop
22685
22686    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22687printf "%s\n" "no" >&6; }
22688    LIBS=$my_ac_save_LIBS
22689
22690fi
22691rm -f core conftest.err conftest.$ac_objext conftest.beam \
22692    conftest$ac_exeext conftest.$ac_ext
22693fi
22694
22695if test "$HAVE_GETHOSTBYNAME" != "1"
22696then
22697    if test "$curl_cv_header_windows_h" = "yes"; then
22698    if test "$curl_cv_header_winsock2_h" = "yes"; then
22699      winsock_LIB="-lws2_32"
22700    fi
22701    if test ! -z "$winsock_LIB"; then
22702      my_ac_save_LIBS=$LIBS
22703      LIBS="$winsock_LIB $LIBS"
22704      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22705printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h.  */
22708
22709
22710#ifdef HAVE_WINDOWS_H
22711#ifndef WIN32_LEAN_AND_MEAN
22712#define WIN32_LEAN_AND_MEAN
22713#endif
22714#include <windows.h>
22715#ifdef HAVE_WINSOCK2_H
22716#include <winsock2.h>
22717#endif
22718#endif
22719
22720int main (void)
22721{
22722
22723          gethostbyname("localhost");
22724
22725 ;
22726 return 0;
22727}
22728
22729_ACEOF
22730if ac_fn_c_try_link "$LINENO"
22731then :
22732
22733        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22734printf "%s\n" "yes" >&6; }
22735        HAVE_GETHOSTBYNAME="1"
22736
22737else $as_nop
22738
22739        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22740printf "%s\n" "no" >&6; }
22741        winsock_LIB=""
22742        LIBS=$my_ac_save_LIBS
22743
22744fi
22745rm -f core conftest.err conftest.$ac_objext conftest.beam \
22746    conftest$ac_exeext conftest.$ac_ext
22747    fi
22748  fi
22749fi
22750
22751if test "$HAVE_GETHOSTBYNAME" != "1"
22752then
22753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22754printf %s "checking for gethostbyname for Minix 3... " >&6; }
22755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756/* end confdefs.h.  */
22757
22758
22759/* Older Minix versions may need <net/gen/netdb.h> here instead */
22760#include <netdb.h>
22761
22762int main (void)
22763{
22764
22765      gethostbyname("localhost");
22766
22767 ;
22768 return 0;
22769}
22770
22771_ACEOF
22772if ac_fn_c_try_link "$LINENO"
22773then :
22774
22775    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22776printf "%s\n" "yes" >&6; }
22777    HAVE_GETHOSTBYNAME="1"
22778
22779else $as_nop
22780
22781    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782printf "%s\n" "no" >&6; }
22783
22784fi
22785rm -f core conftest.err conftest.$ac_objext conftest.beam \
22786    conftest$ac_exeext conftest.$ac_ext
22787fi
22788
22789if test "$HAVE_GETHOSTBYNAME" != "1"
22790then
22791    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22792printf %s "checking for gethostbyname for eCos... " >&6; }
22793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794/* end confdefs.h.  */
22795
22796
22797#include <stdio.h>
22798#include <netdb.h>
22799
22800int main (void)
22801{
22802
22803      gethostbyname("localhost");
22804
22805 ;
22806 return 0;
22807}
22808
22809_ACEOF
22810if ac_fn_c_try_link "$LINENO"
22811then :
22812
22813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814printf "%s\n" "yes" >&6; }
22815    HAVE_GETHOSTBYNAME="1"
22816
22817else $as_nop
22818
22819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22820printf "%s\n" "no" >&6; }
22821
22822fi
22823rm -f core conftest.err conftest.$ac_objext conftest.beam \
22824    conftest$ac_exeext conftest.$ac_ext
22825fi
22826
22827if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22828then
22829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22830printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832/* end confdefs.h.  */
22833
22834
22835  #define __USE_INLINE__
22836  #include <proto/bsdsocket.h>
22837  #ifdef __amigaos4__
22838  struct SocketIFace *ISocket = NULL;
22839  #else
22840  struct Library *SocketBase = NULL;
22841  #endif
22842
22843int main (void)
22844{
22845
22846      gethostbyname("localhost");
22847
22848 ;
22849 return 0;
22850}
22851
22852_ACEOF
22853if ac_fn_c_try_link "$LINENO"
22854then :
22855
22856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22857printf "%s\n" "yes" >&6; }
22858    HAVE_GETHOSTBYNAME="1"
22859    HAVE_PROTO_BSDSOCKET_H="1"
22860
22861printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22862
22863    HAVE_PROTO_BSDSOCKET_H=1
22864
22865
22866else $as_nop
22867
22868    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869printf "%s\n" "no" >&6; }
22870
22871fi
22872rm -f core conftest.err conftest.$ac_objext conftest.beam \
22873    conftest$ac_exeext conftest.$ac_ext
22874fi
22875
22876if test "$HAVE_GETHOSTBYNAME" != "1"
22877then
22878    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22879printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22880if test ${ac_cv_lib_network_gethostbyname+y}
22881then :
22882  printf %s "(cached) " >&6
22883else $as_nop
22884  ac_check_lib_save_LIBS=$LIBS
22885LIBS="-lnetwork  $LIBS"
22886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887/* end confdefs.h.  */
22888
22889
22890#ifdef __cplusplus
22891extern "C"
22892#endif
22893char gethostbyname ();
22894int main (void)
22895{
22896return gethostbyname ();
22897 ;
22898 return 0;
22899}
22900_ACEOF
22901if ac_fn_c_try_link "$LINENO"
22902then :
22903  ac_cv_lib_network_gethostbyname=yes
22904else $as_nop
22905  ac_cv_lib_network_gethostbyname=no
22906fi
22907rm -f core conftest.err conftest.$ac_objext conftest.beam \
22908    conftest$ac_exeext conftest.$ac_ext
22909LIBS=$ac_check_lib_save_LIBS
22910fi
22911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22912printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22913if test "x$ac_cv_lib_network_gethostbyname" = xyes
22914then :
22915  HAVE_GETHOSTBYNAME="1"
22916               LIBS="-lnetwork $LIBS"
22917
22918fi
22919
22920fi
22921
22922if test "$HAVE_GETHOSTBYNAME" != "1"; then
22923  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22924fi
22925
22926
22927curl_includes_winsock2="\
22928/* includes start */
22929#ifdef HAVE_WINDOWS_H
22930#  ifndef WIN32_LEAN_AND_MEAN
22931#    define WIN32_LEAN_AND_MEAN
22932#  endif
22933#  include <windows.h>
22934#  ifdef HAVE_WINSOCK2_H
22935#    include <winsock2.h>
22936#  endif
22937#endif
22938/* includes end */"
22939
22940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22941printf %s "checking for windows.h... " >&6; }
22942if test ${curl_cv_header_windows_h+y}
22943then :
22944  printf %s "(cached) " >&6
22945else $as_nop
22946
22947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948/* end confdefs.h.  */
22949
22950
22951#undef inline
22952#ifndef WIN32_LEAN_AND_MEAN
22953#define WIN32_LEAN_AND_MEAN
22954#endif
22955#include <windows.h>
22956
22957int main (void)
22958{
22959
22960#if defined(__CYGWIN__) || defined(__CEGCC__)
22961        HAVE_WINDOWS_H shall not be defined.
22962#else
22963        int dummy=2*WINVER;
22964#endif
22965
22966 ;
22967 return 0;
22968}
22969
22970_ACEOF
22971if ac_fn_c_try_compile "$LINENO"
22972then :
22973
22974      curl_cv_header_windows_h="yes"
22975
22976else $as_nop
22977
22978      curl_cv_header_windows_h="no"
22979
22980fi
22981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22982
22983fi
22984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22985printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22986  case "$curl_cv_header_windows_h" in
22987    yes)
22988
22989printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22990
22991      ;;
22992  esac
22993
22994
22995    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22996printf %s "checking for winsock2.h... " >&6; }
22997if test ${curl_cv_header_winsock2_h+y}
22998then :
22999  printf %s "(cached) " >&6
23000else $as_nop
23001
23002    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23003/* end confdefs.h.  */
23004
23005
23006#undef inline
23007#ifndef WIN32_LEAN_AND_MEAN
23008#define WIN32_LEAN_AND_MEAN
23009#endif
23010#include <windows.h>
23011#include <winsock2.h>
23012
23013int main (void)
23014{
23015
23016#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23017        HAVE_WINSOCK2_H shall not be defined.
23018#else
23019        int dummy=2*IPPROTO_ESP;
23020#endif
23021
23022 ;
23023 return 0;
23024}
23025
23026_ACEOF
23027if ac_fn_c_try_compile "$LINENO"
23028then :
23029
23030      curl_cv_header_winsock2_h="yes"
23031
23032else $as_nop
23033
23034      curl_cv_header_winsock2_h="no"
23035
23036fi
23037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23038
23039fi
23040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
23041printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
23042  case "$curl_cv_header_winsock2_h" in
23043    yes)
23044
23045printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23046
23047      ;;
23048  esac
23049
23050
23051
23052curl_includes_bsdsocket="\
23053/* includes start */
23054#if defined(HAVE_PROTO_BSDSOCKET_H)
23055#  define __NO_NET_API
23056#  define __USE_INLINE__
23057#  include <proto/bsdsocket.h>
23058#  ifdef HAVE_SYS_IOCTL_H
23059#    include <sys/ioctl.h>
23060#  endif
23061#  ifdef __amigaos4__
23062struct SocketIFace *ISocket = NULL;
23063#  else
23064struct Library *SocketBase = NULL;
23065#  endif
23066#  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23067#endif
23068/* includes end */"
23069  ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23070"
23071if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23072then :
23073  printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23074
23075fi
23076
23077
23078
23079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23080printf %s "checking for connect in libraries... " >&6; }
23081  tst_connect_save_LIBS="$LIBS"
23082  tst_connect_need_LIBS="unknown"
23083  for tst_lib in '' '-lsocket' ; do
23084    if test "$tst_connect_need_LIBS" = "unknown"; then
23085      LIBS="$tst_lib $tst_connect_save_LIBS"
23086      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087/* end confdefs.h.  */
23088
23089
23090          $curl_includes_winsock2
23091          $curl_includes_bsdsocket
23092          #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
23093            int connect(int, void*, int);
23094          #endif
23095
23096int main (void)
23097{
23098
23099          if(0 != connect(0, 0, 0))
23100            return 1;
23101
23102 ;
23103 return 0;
23104}
23105
23106_ACEOF
23107if ac_fn_c_try_link "$LINENO"
23108then :
23109
23110        tst_connect_need_LIBS="$tst_lib"
23111
23112fi
23113rm -f core conftest.err conftest.$ac_objext conftest.beam \
23114    conftest$ac_exeext conftest.$ac_ext
23115    fi
23116  done
23117  LIBS="$tst_connect_save_LIBS"
23118  #
23119  case X-"$tst_connect_need_LIBS" in
23120    X-unknown)
23121      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23122printf "%s\n" "cannot find connect" >&6; }
23123      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23124      ;;
23125    X-)
23126      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23127printf "%s\n" "yes" >&6; }
23128      ;;
23129    *)
23130      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23131printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23132      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23133      ;;
23134  esac
23135
23136
23137CURL_NETWORK_LIBS=$LIBS
23138
23139
23140  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23141if test "x$ac_cv_header_sys_types_h" = xyes
23142then :
23143  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23144
23145fi
23146ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23147if test "x$ac_cv_header_sys_time_h" = xyes
23148then :
23149  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23150
23151fi
23152
23153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23154printf %s "checking for monotonic clock_gettime... " >&6; }
23155  #
23156  if test "x$dontwant_rt" = "xno" ; then
23157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158/* end confdefs.h.  */
23159
23160
23161#ifdef HAVE_SYS_TYPES_H
23162#include <sys/types.h>
23163#endif
23164#ifdef HAVE_SYS_TIME_H
23165#include <sys/time.h>
23166#endif
23167#include <time.h>
23168
23169int main (void)
23170{
23171
23172        struct timespec ts;
23173        (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23174
23175 ;
23176 return 0;
23177}
23178
23179_ACEOF
23180if ac_fn_c_try_compile "$LINENO"
23181then :
23182
23183      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23184printf "%s\n" "yes" >&6; }
23185      curl_func_clock_gettime="yes"
23186
23187else $as_nop
23188
23189      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23190printf "%s\n" "no" >&6; }
23191      curl_func_clock_gettime="no"
23192
23193fi
23194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23195  fi
23196
23197
23198    #
23199  if test "$curl_func_clock_gettime" = "yes"; then
23200    #
23201    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23202printf %s "checking for clock_gettime in libraries... " >&6; }
23203    #
23204    curl_cv_save_LIBS="$LIBS"
23205    curl_cv_gclk_LIBS="unknown"
23206    #
23207    for x_xlibs in '' '-lrt' '-lposix4' ; do
23208      if test "$curl_cv_gclk_LIBS" = "unknown"; then
23209        if test -z "$x_xlibs"; then
23210          LIBS="$curl_cv_save_LIBS"
23211        else
23212          LIBS="$x_xlibs $curl_cv_save_LIBS"
23213        fi
23214        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215/* end confdefs.h.  */
23216
23217
23218#ifdef HAVE_SYS_TYPES_H
23219#include <sys/types.h>
23220#endif
23221#ifdef HAVE_SYS_TIME_H
23222#include <sys/time.h>
23223#endif
23224#include <time.h>
23225
23226int main (void)
23227{
23228
23229            struct timespec ts;
23230            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23231
23232 ;
23233 return 0;
23234}
23235
23236_ACEOF
23237if ac_fn_c_try_link "$LINENO"
23238then :
23239
23240          curl_cv_gclk_LIBS="$x_xlibs"
23241
23242fi
23243rm -f core conftest.err conftest.$ac_objext conftest.beam \
23244    conftest$ac_exeext conftest.$ac_ext
23245      fi
23246    done
23247    #
23248    LIBS="$curl_cv_save_LIBS"
23249    #
23250    case X-"$curl_cv_gclk_LIBS" in
23251      X-unknown)
23252        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23253printf "%s\n" "cannot find clock_gettime" >&6; }
23254        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23255printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23256        curl_func_clock_gettime="no"
23257        ;;
23258      X-)
23259        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23260printf "%s\n" "no additional lib required" >&6; }
23261        curl_func_clock_gettime="yes"
23262        ;;
23263      *)
23264        if test -z "$curl_cv_save_LIBS"; then
23265          LIBS="$curl_cv_gclk_LIBS"
23266        else
23267          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23268        fi
23269        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23270printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23271        curl_func_clock_gettime="yes"
23272        ;;
23273    esac
23274    #
23275        if test "x$cross_compiling" != "xyes" &&
23276      test "$curl_func_clock_gettime" = "yes"; then
23277      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23278printf %s "checking if monotonic clock_gettime works... " >&6; }
23279
23280   case $host_os in
23281     darwin*)
23282      if test "$cross_compiling" = yes
23283then :
23284  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23286as_fn_error $? "cannot run test program while cross compiling
23287See \`config.log' for more details" "$LINENO" 5; }
23288else $as_nop
23289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290/* end confdefs.h.  */
23291
23292
23293#include <stdlib.h>
23294#ifdef HAVE_SYS_TYPES_H
23295#include <sys/types.h>
23296#endif
23297#ifdef HAVE_SYS_TIME_H
23298#include <sys/time.h>
23299#endif
23300#include <time.h>
23301
23302int main (void)
23303{
23304
23305          struct timespec ts;
23306          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23307            exit(0);
23308          else
23309            exit(1);
23310
23311 ;
23312 return 0;
23313}
23314
23315_ACEOF
23316if ac_fn_c_try_run "$LINENO"
23317then :
23318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23319printf "%s\n" "yes" >&6; }
23320
23321else $as_nop
23322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23323printf "%s\n" "no" >&6; }
23324        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23325printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23326        curl_func_clock_gettime="no"
23327        LIBS="$curl_cv_save_LIBS"
23328
23329fi
23330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23331  conftest.$ac_objext conftest.beam conftest.$ac_ext
23332fi
23333
23334     ;;
23335     *)
23336      oldcc=$CC
23337      old=$LD_LIBRARY_PATH
23338      CC="sh ./run-compiler"
23339      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23340      export LD_LIBRARY_PATH
23341      if test "$cross_compiling" = yes
23342then :
23343  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23344printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23345as_fn_error $? "cannot run test program while cross compiling
23346See \`config.log' for more details" "$LINENO" 5; }
23347else $as_nop
23348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349/* end confdefs.h.  */
23350
23351
23352#include <stdlib.h>
23353#ifdef HAVE_SYS_TYPES_H
23354#include <sys/types.h>
23355#endif
23356#ifdef HAVE_SYS_TIME_H
23357#include <sys/time.h>
23358#endif
23359#include <time.h>
23360
23361int main (void)
23362{
23363
23364          struct timespec ts;
23365          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23366            exit(0);
23367          else
23368            exit(1);
23369
23370 ;
23371 return 0;
23372}
23373
23374_ACEOF
23375if ac_fn_c_try_run "$LINENO"
23376then :
23377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23378printf "%s\n" "yes" >&6; }
23379
23380else $as_nop
23381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23382printf "%s\n" "no" >&6; }
23383        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23384printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23385        curl_func_clock_gettime="no"
23386        LIBS="$curl_cv_save_LIBS"
23387
23388fi
23389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23390  conftest.$ac_objext conftest.beam conftest.$ac_ext
23391fi
23392
23393      LD_LIBRARY_PATH=$old # restore
23394      CC=$oldcc
23395     ;;
23396   esac
23397
23398    fi
23399    #
23400    case "$curl_func_clock_gettime" in
23401      yes)
23402
23403printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23404
23405        ;;
23406    esac
23407    #
23408  fi
23409  #
23410
23411
23412
23413  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23414if test "x$ac_cv_header_sys_types_h" = xyes
23415then :
23416  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23417
23418fi
23419ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23420if test "x$ac_cv_header_sys_time_h" = xyes
23421then :
23422  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23423
23424fi
23425
23426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5
23427printf %s "checking for raw monotonic clock_gettime... " >&6; }
23428  #
23429  if test "x$dontwant_rt" = "xno" ; then
23430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431/* end confdefs.h.  */
23432
23433
23434#ifdef HAVE_SYS_TYPES_H
23435#include <sys/types.h>
23436#endif
23437#ifdef HAVE_SYS_TIME_H
23438#include <sys/time.h>
23439#endif
23440#include <time.h>
23441
23442int main (void)
23443{
23444
23445        struct timespec ts;
23446        (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
23447
23448 ;
23449 return 0;
23450}
23451
23452_ACEOF
23453if ac_fn_c_try_compile "$LINENO"
23454then :
23455
23456      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23457printf "%s\n" "yes" >&6; }
23458
23459printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h
23460
23461
23462else $as_nop
23463
23464      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465printf "%s\n" "no" >&6; }
23466
23467fi
23468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23469  fi
23470
23471
23472CURL_NETWORK_AND_TIME_LIBS=$LIBS
23473
23474
23475
23476clean_CPPFLAGS=$CPPFLAGS
23477clean_LDFLAGS=$LDFLAGS
23478clean_LIBS=$LIBS
23479ZLIB_LIBS=""
23480
23481# Check whether --with-zlib was given.
23482if test ${with_zlib+y}
23483then :
23484  withval=$with_zlib; OPT_ZLIB="$withval"
23485fi
23486
23487
23488if test "$OPT_ZLIB" = "no" ; then
23489    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23490printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23491else
23492  if test "$OPT_ZLIB" = "yes" ; then
23493    OPT_ZLIB=""
23494  fi
23495
23496  if test -z "$OPT_ZLIB" ; then
23497
23498    if test -n "$PKG_CONFIG"; then
23499      PKGCONFIG="$PKG_CONFIG"
23500    else
23501      if test -n "$ac_tool_prefix"; then
23502  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23503set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23505printf %s "checking for $ac_word... " >&6; }
23506if test ${ac_cv_path_PKGCONFIG+y}
23507then :
23508  printf %s "(cached) " >&6
23509else $as_nop
23510  case $PKGCONFIG in
23511  [\\/]* | ?:[\\/]*)
23512  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23513  ;;
23514  *)
23515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23516as_dummy="$PATH:/usr/bin:/usr/local/bin"
23517for as_dir in $as_dummy
23518do
23519  IFS=$as_save_IFS
23520  case $as_dir in #(((
23521    '') as_dir=./ ;;
23522    */) ;;
23523    *) as_dir=$as_dir/ ;;
23524  esac
23525    for ac_exec_ext in '' $ac_executable_extensions; do
23526  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23527    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23528    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23529    break 2
23530  fi
23531done
23532  done
23533IFS=$as_save_IFS
23534
23535  ;;
23536esac
23537fi
23538PKGCONFIG=$ac_cv_path_PKGCONFIG
23539if test -n "$PKGCONFIG"; then
23540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23541printf "%s\n" "$PKGCONFIG" >&6; }
23542else
23543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23544printf "%s\n" "no" >&6; }
23545fi
23546
23547
23548fi
23549if test -z "$ac_cv_path_PKGCONFIG"; then
23550  ac_pt_PKGCONFIG=$PKGCONFIG
23551  # Extract the first word of "pkg-config", so it can be a program name with args.
23552set dummy pkg-config; ac_word=$2
23553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23554printf %s "checking for $ac_word... " >&6; }
23555if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23556then :
23557  printf %s "(cached) " >&6
23558else $as_nop
23559  case $ac_pt_PKGCONFIG in
23560  [\\/]* | ?:[\\/]*)
23561  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23562  ;;
23563  *)
23564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23565as_dummy="$PATH:/usr/bin:/usr/local/bin"
23566for as_dir in $as_dummy
23567do
23568  IFS=$as_save_IFS
23569  case $as_dir in #(((
23570    '') as_dir=./ ;;
23571    */) ;;
23572    *) as_dir=$as_dir/ ;;
23573  esac
23574    for ac_exec_ext in '' $ac_executable_extensions; do
23575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23576    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23578    break 2
23579  fi
23580done
23581  done
23582IFS=$as_save_IFS
23583
23584  ;;
23585esac
23586fi
23587ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23588if test -n "$ac_pt_PKGCONFIG"; then
23589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23590printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23591else
23592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23593printf "%s\n" "no" >&6; }
23594fi
23595
23596  if test "x$ac_pt_PKGCONFIG" = x; then
23597    PKGCONFIG="no"
23598  else
23599    case $cross_compiling:$ac_tool_warned in
23600yes:)
23601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23602printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23603ac_tool_warned=yes ;;
23604esac
23605    PKGCONFIG=$ac_pt_PKGCONFIG
23606  fi
23607else
23608  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23609fi
23610
23611    fi
23612
23613    if test "x$PKGCONFIG" != "xno"; then
23614      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23615printf %s "checking for zlib options with pkg-config... " >&6; }
23616            itexists=`
23617    if test -n ""; then
23618      PKG_CONFIG_LIBDIR=""
23619      export PKG_CONFIG_LIBDIR
23620    fi
23621         $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23622
23623      if test -z "$itexists"; then
23624                        PKGCONFIG="no"
23625        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23626printf "%s\n" "no" >&6; }
23627      else
23628        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23629printf "%s\n" "found" >&6; }
23630      fi
23631    fi
23632
23633
23634    if test "$PKGCONFIG" != "no" ; then
23635      ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
23636      if test -n "$ZLIB_LIBS"; then
23637        LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23638      else
23639        ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
23640      fi
23641      LIBS="$ZLIB_LIBS $LIBS"
23642      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
23643      OPT_ZLIB=""
23644      HAVE_LIBZ="1"
23645    fi
23646
23647    if test -z "$HAVE_LIBZ"; then
23648
23649
23650      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23651printf %s "checking for inflateEnd in -lz... " >&6; }
23652if test ${ac_cv_lib_z_inflateEnd+y}
23653then :
23654  printf %s "(cached) " >&6
23655else $as_nop
23656  ac_check_lib_save_LIBS=$LIBS
23657LIBS="-lz  $LIBS"
23658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23659/* end confdefs.h.  */
23660
23661
23662#ifdef __cplusplus
23663extern "C"
23664#endif
23665char inflateEnd ();
23666int main (void)
23667{
23668return inflateEnd ();
23669 ;
23670 return 0;
23671}
23672_ACEOF
23673if ac_fn_c_try_link "$LINENO"
23674then :
23675  ac_cv_lib_z_inflateEnd=yes
23676else $as_nop
23677  ac_cv_lib_z_inflateEnd=no
23678fi
23679rm -f core conftest.err conftest.$ac_objext conftest.beam \
23680    conftest$ac_exeext conftest.$ac_ext
23681LIBS=$ac_check_lib_save_LIBS
23682fi
23683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23684printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23685if test "x$ac_cv_lib_z_inflateEnd" = xyes
23686then :
23687                     HAVE_LIBZ="1"
23688                    ZLIB_LIBS="-lz"
23689                    LIBS="$ZLIB_LIBS $LIBS"
23690else $as_nop
23691                     OPT_ZLIB="/usr/local"
23692fi
23693
23694    fi
23695  fi
23696
23697    if test -n "$OPT_ZLIB"; then
23698     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23699     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23700  fi
23701
23702  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23703if test "x$ac_cv_header_zlib_h" = xyes
23704then :
23705
23706        HAVE_ZLIB_H="1"
23707        if test "$HAVE_LIBZ" != "1"; then
23708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23709printf %s "checking for gzread in -lz... " >&6; }
23710if test ${ac_cv_lib_z_gzread+y}
23711then :
23712  printf %s "(cached) " >&6
23713else $as_nop
23714  ac_check_lib_save_LIBS=$LIBS
23715LIBS="-lz  $LIBS"
23716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717/* end confdefs.h.  */
23718
23719
23720#ifdef __cplusplus
23721extern "C"
23722#endif
23723char gzread ();
23724int main (void)
23725{
23726return gzread ();
23727 ;
23728 return 0;
23729}
23730_ACEOF
23731if ac_fn_c_try_link "$LINENO"
23732then :
23733  ac_cv_lib_z_gzread=yes
23734else $as_nop
23735  ac_cv_lib_z_gzread=no
23736fi
23737rm -f core conftest.err conftest.$ac_objext conftest.beam \
23738    conftest$ac_exeext conftest.$ac_ext
23739LIBS=$ac_check_lib_save_LIBS
23740fi
23741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23742printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23743if test "x$ac_cv_lib_z_gzread" = xyes
23744then :
23745
23746                                      HAVE_LIBZ="1"
23747                   ZLIB_LIBS="-lz"
23748                   LIBS="$ZLIB_LIBS $LIBS"
23749
23750else $as_nop
23751   CPPFLAGS=$clean_CPPFLAGS
23752                   LDFLAGS=$clean_LDFLAGS
23753fi
23754
23755    fi
23756
23757else $as_nop
23758
23759            CPPFLAGS=$clean_CPPFLAGS
23760      LDFLAGS=$clean_LDFLAGS
23761
23762fi
23763
23764
23765  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23766  then
23767    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23768printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23769    HAVE_LIBZ=""
23770    CPPFLAGS=$clean_CPPFLAGS
23771    LDFLAGS=$clean_LDFLAGS
23772    LIBS=$clean_LIBS
23773    ZLIB_LIBS=""
23774  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23775  then
23776    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23777printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23778    CPPFLAGS=$clean_CPPFLAGS
23779    LDFLAGS=$clean_LDFLAGS
23780    LIBS=$clean_LIBS
23781    ZLIB_LIBS=""
23782  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23783  then
23784
23785
23786printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23787
23788    LIBS="$ZLIB_LIBS $clean_LIBS"
23789
23790        AMFIXLIB="1"
23791    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23792printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23793    curl_zlib_msg="enabled"
23794  fi
23795fi
23796
23797 if test x"$AMFIXLIB" = x1; then
23798  HAVE_LIBZ_TRUE=
23799  HAVE_LIBZ_FALSE='#'
23800else
23801  HAVE_LIBZ_TRUE='#'
23802  HAVE_LIBZ_FALSE=
23803fi
23804
23805
23806
23807
23808
23809OPT_BROTLI=off
23810
23811# Check whether --with-brotli was given.
23812if test ${with_brotli+y}
23813then :
23814  withval=$with_brotli; OPT_BROTLI=$withval
23815fi
23816
23817
23818if test X"$OPT_BROTLI" != Xno; then
23819    CLEANLDFLAGS="$LDFLAGS"
23820  CLEANCPPFLAGS="$CPPFLAGS"
23821  CLEANLIBS="$LIBS"
23822
23823  case "$OPT_BROTLI" in
23824  yes)
23825
23826    if test -n "$PKG_CONFIG"; then
23827      PKGCONFIG="$PKG_CONFIG"
23828    else
23829      if test -n "$ac_tool_prefix"; then
23830  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23831set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23833printf %s "checking for $ac_word... " >&6; }
23834if test ${ac_cv_path_PKGCONFIG+y}
23835then :
23836  printf %s "(cached) " >&6
23837else $as_nop
23838  case $PKGCONFIG in
23839  [\\/]* | ?:[\\/]*)
23840  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23841  ;;
23842  *)
23843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23844as_dummy="$PATH:/usr/bin:/usr/local/bin"
23845for as_dir in $as_dummy
23846do
23847  IFS=$as_save_IFS
23848  case $as_dir in #(((
23849    '') as_dir=./ ;;
23850    */) ;;
23851    *) as_dir=$as_dir/ ;;
23852  esac
23853    for ac_exec_ext in '' $ac_executable_extensions; do
23854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23855    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23857    break 2
23858  fi
23859done
23860  done
23861IFS=$as_save_IFS
23862
23863  ;;
23864esac
23865fi
23866PKGCONFIG=$ac_cv_path_PKGCONFIG
23867if test -n "$PKGCONFIG"; then
23868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23869printf "%s\n" "$PKGCONFIG" >&6; }
23870else
23871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23872printf "%s\n" "no" >&6; }
23873fi
23874
23875
23876fi
23877if test -z "$ac_cv_path_PKGCONFIG"; then
23878  ac_pt_PKGCONFIG=$PKGCONFIG
23879  # Extract the first word of "pkg-config", so it can be a program name with args.
23880set dummy pkg-config; ac_word=$2
23881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23882printf %s "checking for $ac_word... " >&6; }
23883if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23884then :
23885  printf %s "(cached) " >&6
23886else $as_nop
23887  case $ac_pt_PKGCONFIG in
23888  [\\/]* | ?:[\\/]*)
23889  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23890  ;;
23891  *)
23892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893as_dummy="$PATH:/usr/bin:/usr/local/bin"
23894for as_dir in $as_dummy
23895do
23896  IFS=$as_save_IFS
23897  case $as_dir in #(((
23898    '') as_dir=./ ;;
23899    */) ;;
23900    *) as_dir=$as_dir/ ;;
23901  esac
23902    for ac_exec_ext in '' $ac_executable_extensions; do
23903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23904    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23906    break 2
23907  fi
23908done
23909  done
23910IFS=$as_save_IFS
23911
23912  ;;
23913esac
23914fi
23915ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23916if test -n "$ac_pt_PKGCONFIG"; then
23917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23918printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23919else
23920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23921printf "%s\n" "no" >&6; }
23922fi
23923
23924  if test "x$ac_pt_PKGCONFIG" = x; then
23925    PKGCONFIG="no"
23926  else
23927    case $cross_compiling:$ac_tool_warned in
23928yes:)
23929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23931ac_tool_warned=yes ;;
23932esac
23933    PKGCONFIG=$ac_pt_PKGCONFIG
23934  fi
23935else
23936  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23937fi
23938
23939    fi
23940
23941    if test "x$PKGCONFIG" != "xno"; then
23942      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23943printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23944            itexists=`
23945    if test -n ""; then
23946      PKG_CONFIG_LIBDIR=""
23947      export PKG_CONFIG_LIBDIR
23948    fi
23949         $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23950
23951      if test -z "$itexists"; then
23952                        PKGCONFIG="no"
23953        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23954printf "%s\n" "no" >&6; }
23955      else
23956        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23957printf "%s\n" "found" >&6; }
23958      fi
23959    fi
23960
23961
23962    if test "$PKGCONFIG" != "no" ; then
23963      LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23964      LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23965      CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23966      version=`$PKGCONFIG --modversion libbrotlidec`
23967      DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23968    fi
23969
23970    ;;
23971  off)
23972        ;;
23973  *)
23974        PREFIX_BROTLI=$OPT_BROTLI
23975    ;;
23976  esac
23977
23978    if test -n "$PREFIX_BROTLI"; then
23979    LIB_BROTLI="-lbrotlidec"
23980    LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23981    CPP_BROTLI=-I${PREFIX_BROTLI}/include
23982    DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23983  fi
23984
23985  LDFLAGS="$LDFLAGS $LD_BROTLI"
23986  CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23987  LIBS="$LIB_BROTLI $LIBS"
23988
23989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23990printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23991if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23992then :
23993  printf %s "(cached) " >&6
23994else $as_nop
23995  ac_check_lib_save_LIBS=$LIBS
23996LIBS="-lbrotlidec  $LIBS"
23997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998/* end confdefs.h.  */
23999
24000
24001#ifdef __cplusplus
24002extern "C"
24003#endif
24004char BrotliDecoderDecompress ();
24005int main (void)
24006{
24007return BrotliDecoderDecompress ();
24008 ;
24009 return 0;
24010}
24011_ACEOF
24012if ac_fn_c_try_link "$LINENO"
24013then :
24014  ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
24015else $as_nop
24016  ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
24017fi
24018rm -f core conftest.err conftest.$ac_objext conftest.beam \
24019    conftest$ac_exeext conftest.$ac_ext
24020LIBS=$ac_check_lib_save_LIBS
24021fi
24022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
24023printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
24024if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
24025then :
24026  printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
24027
24028  LIBS="-lbrotlidec $LIBS"
24029
24030fi
24031
24032
24033         for ac_header in brotli/decode.h
24034do :
24035  ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24036if test "x$ac_cv_header_brotli_decode_h" = xyes
24037then :
24038  printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24039 curl_brotli_msg="enabled (libbrotlidec)"
24040    HAVE_BROTLI=1
24041
24042printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24043
24044    HAVE_BROTLI=1
24045
24046
24047fi
24048
24049done
24050
24051  if test X"$OPT_BROTLI" != Xoff &&
24052     test "$HAVE_BROTLI" != "1"; then
24053    as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24054  fi
24055
24056  if test "$HAVE_BROTLI" = "1"; then
24057    if test -n "$DIR_BROTLI"; then
24058
24059       if test "x$cross_compiling" != "xyes"; then
24060         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24061         export CURL_LIBRARY_PATH
24062         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24063printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24064       fi
24065    fi
24066  else
24067        LDFLAGS=$CLEANLDFLAGS
24068    CPPFLAGS=$CLEANCPPFLAGS
24069    LIBS=$CLEANLIBS
24070  fi
24071fi
24072
24073
24074OPT_ZSTD=off
24075
24076# Check whether --with-zstd was given.
24077if test ${with_zstd+y}
24078then :
24079  withval=$with_zstd; OPT_ZSTD=$withval
24080fi
24081
24082
24083if test X"$OPT_ZSTD" != Xno; then
24084    CLEANLDFLAGS="$LDFLAGS"
24085  CLEANCPPFLAGS="$CPPFLAGS"
24086  CLEANLIBS="$LIBS"
24087
24088  case "$OPT_ZSTD" in
24089  yes)
24090
24091    if test -n "$PKG_CONFIG"; then
24092      PKGCONFIG="$PKG_CONFIG"
24093    else
24094      if test -n "$ac_tool_prefix"; then
24095  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24096set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24098printf %s "checking for $ac_word... " >&6; }
24099if test ${ac_cv_path_PKGCONFIG+y}
24100then :
24101  printf %s "(cached) " >&6
24102else $as_nop
24103  case $PKGCONFIG in
24104  [\\/]* | ?:[\\/]*)
24105  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24106  ;;
24107  *)
24108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24109as_dummy="$PATH:/usr/bin:/usr/local/bin"
24110for as_dir in $as_dummy
24111do
24112  IFS=$as_save_IFS
24113  case $as_dir in #(((
24114    '') as_dir=./ ;;
24115    */) ;;
24116    *) as_dir=$as_dir/ ;;
24117  esac
24118    for ac_exec_ext in '' $ac_executable_extensions; do
24119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24120    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24122    break 2
24123  fi
24124done
24125  done
24126IFS=$as_save_IFS
24127
24128  ;;
24129esac
24130fi
24131PKGCONFIG=$ac_cv_path_PKGCONFIG
24132if test -n "$PKGCONFIG"; then
24133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24134printf "%s\n" "$PKGCONFIG" >&6; }
24135else
24136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24137printf "%s\n" "no" >&6; }
24138fi
24139
24140
24141fi
24142if test -z "$ac_cv_path_PKGCONFIG"; then
24143  ac_pt_PKGCONFIG=$PKGCONFIG
24144  # Extract the first word of "pkg-config", so it can be a program name with args.
24145set dummy pkg-config; ac_word=$2
24146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24147printf %s "checking for $ac_word... " >&6; }
24148if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24149then :
24150  printf %s "(cached) " >&6
24151else $as_nop
24152  case $ac_pt_PKGCONFIG in
24153  [\\/]* | ?:[\\/]*)
24154  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24155  ;;
24156  *)
24157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24158as_dummy="$PATH:/usr/bin:/usr/local/bin"
24159for as_dir in $as_dummy
24160do
24161  IFS=$as_save_IFS
24162  case $as_dir in #(((
24163    '') as_dir=./ ;;
24164    */) ;;
24165    *) as_dir=$as_dir/ ;;
24166  esac
24167    for ac_exec_ext in '' $ac_executable_extensions; do
24168  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24169    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24170    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24171    break 2
24172  fi
24173done
24174  done
24175IFS=$as_save_IFS
24176
24177  ;;
24178esac
24179fi
24180ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24181if test -n "$ac_pt_PKGCONFIG"; then
24182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24183printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24184else
24185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24186printf "%s\n" "no" >&6; }
24187fi
24188
24189  if test "x$ac_pt_PKGCONFIG" = x; then
24190    PKGCONFIG="no"
24191  else
24192    case $cross_compiling:$ac_tool_warned in
24193yes:)
24194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24195printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24196ac_tool_warned=yes ;;
24197esac
24198    PKGCONFIG=$ac_pt_PKGCONFIG
24199  fi
24200else
24201  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24202fi
24203
24204    fi
24205
24206    if test "x$PKGCONFIG" != "xno"; then
24207      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24208printf %s "checking for libzstd options with pkg-config... " >&6; }
24209            itexists=`
24210    if test -n ""; then
24211      PKG_CONFIG_LIBDIR=""
24212      export PKG_CONFIG_LIBDIR
24213    fi
24214         $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24215
24216      if test -z "$itexists"; then
24217                        PKGCONFIG="no"
24218        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24219printf "%s\n" "no" >&6; }
24220      else
24221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24222printf "%s\n" "found" >&6; }
24223      fi
24224    fi
24225
24226
24227    if test "$PKGCONFIG" != "no" ; then
24228      LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24229      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24230      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24231      version=`$PKGCONFIG --modversion libzstd`
24232      DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24233    fi
24234
24235    ;;
24236  off)
24237        ;;
24238  *)
24239        PREFIX_ZSTD=$OPT_ZSTD
24240    ;;
24241  esac
24242
24243    if test -n "$PREFIX_ZSTD"; then
24244    LIB_ZSTD="-lzstd"
24245    LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24246    CPP_ZSTD=-I${PREFIX_ZSTD}/include
24247    DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24248  fi
24249
24250  LDFLAGS="$LDFLAGS $LD_ZSTD"
24251  CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24252  LIBS="$LIB_ZSTD $LIBS"
24253
24254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24255printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24256if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24257then :
24258  printf %s "(cached) " >&6
24259else $as_nop
24260  ac_check_lib_save_LIBS=$LIBS
24261LIBS="-lzstd  $LIBS"
24262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263/* end confdefs.h.  */
24264
24265
24266#ifdef __cplusplus
24267extern "C"
24268#endif
24269char ZSTD_createDStream ();
24270int main (void)
24271{
24272return ZSTD_createDStream ();
24273 ;
24274 return 0;
24275}
24276_ACEOF
24277if ac_fn_c_try_link "$LINENO"
24278then :
24279  ac_cv_lib_zstd_ZSTD_createDStream=yes
24280else $as_nop
24281  ac_cv_lib_zstd_ZSTD_createDStream=no
24282fi
24283rm -f core conftest.err conftest.$ac_objext conftest.beam \
24284    conftest$ac_exeext conftest.$ac_ext
24285LIBS=$ac_check_lib_save_LIBS
24286fi
24287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24288printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24289if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24290then :
24291  printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24292
24293  LIBS="-lzstd $LIBS"
24294
24295fi
24296
24297
24298         for ac_header in zstd.h
24299do :
24300  ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24301if test "x$ac_cv_header_zstd_h" = xyes
24302then :
24303  printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24304 curl_zstd_msg="enabled (libzstd)"
24305    HAVE_ZSTD=1
24306
24307printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24308
24309    HAVE_ZSTD=1
24310
24311
24312fi
24313
24314done
24315
24316  if test X"$OPT_ZSTD" != Xoff &&
24317     test "$HAVE_ZSTD" != "1"; then
24318    as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24319  fi
24320
24321  if test "$HAVE_ZSTD" = "1"; then
24322    if test -n "$DIR_ZSTD"; then
24323
24324       if test "x$cross_compiling" != "xyes"; then
24325         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24326         export CURL_LIBRARY_PATH
24327         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24328printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24329       fi
24330    fi
24331  else
24332        LDFLAGS=$CLEANLDFLAGS
24333    CPPFLAGS=$CLEANCPPFLAGS
24334    LIBS=$CLEANLIBS
24335  fi
24336fi
24337
24338
24339LDAPLIBNAME=""
24340
24341# Check whether --with-ldap-lib was given.
24342if test ${with_ldap_lib+y}
24343then :
24344  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24345fi
24346
24347
24348LBERLIBNAME=""
24349
24350# Check whether --with-lber-lib was given.
24351if test ${with_lber_lib+y}
24352then :
24353  withval=$with_lber_lib; LBERLIBNAME="$withval"
24354fi
24355
24356
24357if test x$CURL_DISABLE_LDAP != x1 ; then
24358
24359
24360    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24361printf %s "checking for lber.h... " >&6; }
24362if test ${curl_cv_header_lber_h+y}
24363then :
24364  printf %s "(cached) " >&6
24365else $as_nop
24366
24367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368/* end confdefs.h.  */
24369
24370
24371#undef inline
24372#ifdef HAVE_WINDOWS_H
24373#ifndef WIN32_LEAN_AND_MEAN
24374#define WIN32_LEAN_AND_MEAN
24375#endif
24376#include <windows.h>
24377#else
24378#ifdef HAVE_SYS_TYPES_H
24379#include <sys/types.h>
24380#endif
24381#endif
24382#ifndef NULL
24383#define NULL (void *)0
24384#endif
24385#include <lber.h>
24386
24387int main (void)
24388{
24389
24390        BerValue *bvp = NULL;
24391        BerElement *bep = ber_init(bvp);
24392        ber_free(bep, 1);
24393
24394 ;
24395 return 0;
24396}
24397
24398_ACEOF
24399if ac_fn_c_try_compile "$LINENO"
24400then :
24401
24402      curl_cv_header_lber_h="yes"
24403
24404else $as_nop
24405
24406      curl_cv_header_lber_h="no"
24407
24408fi
24409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24410
24411fi
24412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24413printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24414  if test "$curl_cv_header_lber_h" = "yes"; then
24415
24416printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24417
24418    #
24419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420/* end confdefs.h.  */
24421
24422
24423#undef inline
24424#ifdef HAVE_WINDOWS_H
24425#ifndef WIN32_LEAN_AND_MEAN
24426#define WIN32_LEAN_AND_MEAN
24427#endif
24428#include <windows.h>
24429#else
24430#ifdef HAVE_SYS_TYPES_H
24431#include <sys/types.h>
24432#endif
24433#endif
24434#ifndef NULL
24435#define NULL (void *)0
24436#endif
24437#ifndef LDAP_DEPRECATED
24438#define LDAP_DEPRECATED 1
24439#endif
24440#include <ldap.h>
24441
24442int main (void)
24443{
24444
24445        BerValue *bvp = NULL;
24446        BerElement *bep = ber_init(bvp);
24447        ber_free(bep, 1);
24448
24449 ;
24450 return 0;
24451}
24452
24453_ACEOF
24454if ac_fn_c_try_compile "$LINENO"
24455then :
24456
24457      curl_cv_need_header_lber_h="no"
24458
24459else $as_nop
24460
24461      curl_cv_need_header_lber_h="yes"
24462
24463fi
24464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24465    #
24466    case "$curl_cv_need_header_lber_h" in
24467      yes)
24468
24469printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24470
24471        ;;
24472    esac
24473  fi
24474
24475
24476    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24477printf %s "checking for ldap.h... " >&6; }
24478if test ${curl_cv_header_ldap_h+y}
24479then :
24480  printf %s "(cached) " >&6
24481else $as_nop
24482
24483    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24484/* end confdefs.h.  */
24485
24486
24487#undef inline
24488#ifdef HAVE_WINDOWS_H
24489#ifndef WIN32_LEAN_AND_MEAN
24490#define WIN32_LEAN_AND_MEAN
24491#endif
24492#include <windows.h>
24493#else
24494#ifdef HAVE_SYS_TYPES_H
24495#include <sys/types.h>
24496#endif
24497#endif
24498#ifndef LDAP_DEPRECATED
24499#define LDAP_DEPRECATED 1
24500#endif
24501#ifdef NEED_LBER_H
24502#include <lber.h>
24503#endif
24504#include <ldap.h>
24505
24506int main (void)
24507{
24508
24509        LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24510        int res = ldap_unbind(ldp);
24511
24512 ;
24513 return 0;
24514}
24515
24516_ACEOF
24517if ac_fn_c_try_compile "$LINENO"
24518then :
24519
24520      curl_cv_header_ldap_h="yes"
24521
24522else $as_nop
24523
24524      curl_cv_header_ldap_h="no"
24525
24526fi
24527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24528
24529fi
24530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24531printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24532  case "$curl_cv_header_ldap_h" in
24533    yes)
24534
24535printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24536
24537      ;;
24538  esac
24539
24540
24541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24542printf %s "checking for ldap_ssl.h... " >&6; }
24543if test ${curl_cv_header_ldap_ssl_h+y}
24544then :
24545  printf %s "(cached) " >&6
24546else $as_nop
24547
24548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24549/* end confdefs.h.  */
24550
24551
24552#undef inline
24553#ifdef HAVE_WINDOWS_H
24554#ifndef WIN32_LEAN_AND_MEAN
24555#define WIN32_LEAN_AND_MEAN
24556#endif
24557#include <windows.h>
24558#else
24559#ifdef HAVE_SYS_TYPES_H
24560#include <sys/types.h>
24561#endif
24562#endif
24563#ifndef LDAP_DEPRECATED
24564#define LDAP_DEPRECATED 1
24565#endif
24566#ifdef NEED_LBER_H
24567#include <lber.h>
24568#endif
24569#ifdef HAVE_LDAP_H
24570#include <ldap.h>
24571#endif
24572#include <ldap_ssl.h>
24573
24574int main (void)
24575{
24576
24577        LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
24578
24579 ;
24580 return 0;
24581}
24582
24583_ACEOF
24584if ac_fn_c_try_compile "$LINENO"
24585then :
24586
24587      curl_cv_header_ldap_ssl_h="yes"
24588
24589else $as_nop
24590
24591      curl_cv_header_ldap_ssl_h="no"
24592
24593fi
24594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24595
24596fi
24597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24598printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24599  case "$curl_cv_header_ldap_ssl_h" in
24600    yes)
24601
24602printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24603
24604      ;;
24605  esac
24606
24607
24608  if test -z "$LDAPLIBNAME" ; then
24609    if test "$curl_cv_native_windows" = "yes"; then
24610            LDAPLIBNAME="wldap32"
24611      LBERLIBNAME="no"
24612    fi
24613  fi
24614
24615  if test "$LDAPLIBNAME" ; then
24616    as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24618printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24619if eval test \${$as_ac_Lib+y}
24620then :
24621  printf %s "(cached) " >&6
24622else $as_nop
24623  ac_check_lib_save_LIBS=$LIBS
24624LIBS="-l"$LDAPLIBNAME"  $LIBS"
24625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626/* end confdefs.h.  */
24627
24628
24629#ifdef __cplusplus
24630extern "C"
24631#endif
24632char ldap_init ();
24633int main (void)
24634{
24635return ldap_init ();
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640if ac_fn_c_try_link "$LINENO"
24641then :
24642  eval "$as_ac_Lib=yes"
24643else $as_nop
24644  eval "$as_ac_Lib=no"
24645fi
24646rm -f core conftest.err conftest.$ac_objext conftest.beam \
24647    conftest$ac_exeext conftest.$ac_ext
24648LIBS=$ac_check_lib_save_LIBS
24649fi
24650eval ac_res=\$$as_ac_Lib
24651	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24652printf "%s\n" "$ac_res" >&6; }
24653if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24654then :
24655  cat >>confdefs.h <<_ACEOF
24656#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24657_ACEOF
24658
24659  LIBS="-l"$LDAPLIBNAME" $LIBS"
24660
24661else $as_nop
24662
24663      if test -n "$ldap_askedfor"; then
24664        as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24665      fi
24666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24667printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24668
24669printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24670
24671      CURL_DISABLE_LDAP=1
24672
24673
24674printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24675
24676      CURL_DISABLE_LDAPS=1
24677
24678fi
24679
24680  else
24681
24682    #
24683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24684printf %s "checking for LDAP libraries... " >&6; }
24685  #
24686  u_libs=""
24687  #
24688
24689  #
24690  curl_cv_save_LIBS="$LIBS"
24691  curl_cv_ldap_LIBS="unknown"
24692  #
24693  for x_nlibs in '' "$u_libs" \
24694    '-lldap' \
24695    '-lldap -llber' \
24696    '-llber -lldap' \
24697    '-lldapssl -lldapx -lldapsdk' \
24698    '-lldapsdk -lldapx -lldapssl' \
24699    '-lldap -llber -lssl -lcrypto' ; do
24700
24701    if test "$curl_cv_ldap_LIBS" = "unknown"; then
24702      if test -z "$x_nlibs"; then
24703        LIBS="$curl_cv_save_LIBS"
24704      else
24705        LIBS="$x_nlibs $curl_cv_save_LIBS"
24706      fi
24707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708/* end confdefs.h.  */
24709
24710
24711#undef inline
24712#ifdef HAVE_WINDOWS_H
24713#ifndef WIN32_LEAN_AND_MEAN
24714#define WIN32_LEAN_AND_MEAN
24715#endif
24716#include <windows.h>
24717#else
24718#ifdef HAVE_SYS_TYPES_H
24719#include <sys/types.h>
24720#endif
24721#endif
24722#ifndef NULL
24723#define NULL (void *)0
24724#endif
24725#ifndef LDAP_DEPRECATED
24726#define LDAP_DEPRECATED 1
24727#endif
24728#ifdef NEED_LBER_H
24729#include <lber.h>
24730#endif
24731#ifdef HAVE_LDAP_H
24732#include <ldap.h>
24733#endif
24734
24735int main (void)
24736{
24737
24738          BerValue *bvp = NULL;
24739          BerElement *bep = ber_init(bvp);
24740          LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24741          int res = ldap_unbind(ldp);
24742          ber_free(bep, 1);
24743
24744 ;
24745 return 0;
24746}
24747
24748_ACEOF
24749if ac_fn_c_try_link "$LINENO"
24750then :
24751
24752        curl_cv_ldap_LIBS="$x_nlibs"
24753
24754fi
24755rm -f core conftest.err conftest.$ac_objext conftest.beam \
24756    conftest$ac_exeext conftest.$ac_ext
24757    fi
24758  done
24759  #
24760  LIBS="$curl_cv_save_LIBS"
24761  #
24762  case X-"$curl_cv_ldap_LIBS" in
24763    X-unknown)
24764      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24765printf "%s\n" "cannot find LDAP libraries" >&6; }
24766      ;;
24767    X-)
24768      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24769printf "%s\n" "no additional lib required" >&6; }
24770      ;;
24771    *)
24772      if test -z "$curl_cv_save_LIBS"; then
24773        LIBS="$curl_cv_ldap_LIBS"
24774      else
24775        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24776      fi
24777      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24778printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24779      ;;
24780  esac
24781  #
24782
24783    case X-"$curl_cv_ldap_LIBS" in
24784      X-unknown)
24785        if test -n "$ldap_askedfor"; then
24786          as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24787        fi
24788        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24789printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24790
24791printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24792
24793        CURL_DISABLE_LDAP=1
24794
24795
24796printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24797
24798        CURL_DISABLE_LDAPS=1
24799
24800        ;;
24801    esac
24802  fi
24803fi
24804
24805if test x$CURL_DISABLE_LDAP != x1 ; then
24806
24807  if test "$LBERLIBNAME" ; then
24808            if test "$LBERLIBNAME" != "no" ; then
24809      as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24811printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24812if eval test \${$as_ac_Lib+y}
24813then :
24814  printf %s "(cached) " >&6
24815else $as_nop
24816  ac_check_lib_save_LIBS=$LIBS
24817LIBS="-l"$LBERLIBNAME"  $LIBS"
24818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819/* end confdefs.h.  */
24820
24821
24822#ifdef __cplusplus
24823extern "C"
24824#endif
24825char ber_free ();
24826int main (void)
24827{
24828return ber_free ();
24829 ;
24830 return 0;
24831}
24832_ACEOF
24833if ac_fn_c_try_link "$LINENO"
24834then :
24835  eval "$as_ac_Lib=yes"
24836else $as_nop
24837  eval "$as_ac_Lib=no"
24838fi
24839rm -f core conftest.err conftest.$ac_objext conftest.beam \
24840    conftest$ac_exeext conftest.$ac_ext
24841LIBS=$ac_check_lib_save_LIBS
24842fi
24843eval ac_res=\$$as_ac_Lib
24844	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24845printf "%s\n" "$ac_res" >&6; }
24846if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24847then :
24848  cat >>confdefs.h <<_ACEOF
24849#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24850_ACEOF
24851
24852  LIBS="-l"$LBERLIBNAME" $LIBS"
24853
24854else $as_nop
24855
24856        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24857printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24858
24859printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24860
24861        CURL_DISABLE_LDAP=1
24862
24863
24864printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24865
24866        CURL_DISABLE_LDAPS=1
24867
24868fi
24869
24870    fi
24871  fi
24872fi
24873
24874if test x$CURL_DISABLE_LDAP != x1 ; then
24875  ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24876if test "x$ac_cv_func_ldap_url_parse" = xyes
24877then :
24878  printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24879
24880fi
24881ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
24882if test "x$ac_cv_func_ldap_init_fd" = xyes
24883then :
24884  printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
24885
24886fi
24887
24888
24889  if test "$LDAPLIBNAME" = "wldap32"; then
24890    curl_ldap_msg="enabled (winldap)"
24891
24892printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24893
24894  else
24895    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24896      curl_ldap_msg="enabled (OpenLDAP)"
24897
24898printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24899
24900      USE_OPENLDAP=1
24901
24902    else
24903      curl_ldap_msg="enabled (ancient OpenLDAP)"
24904    fi
24905  fi
24906fi
24907
24908if test x$CURL_DISABLE_LDAPS != x1 ; then
24909    curl_ldaps_msg="enabled"
24910fi
24911
24912
24913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24914printf %s "checking whether to enable IPv6... " >&6; }
24915# Check whether --enable-ipv6 was given.
24916if test ${enable_ipv6+y}
24917then :
24918  enableval=$enable_ipv6;  case "$enableval" in
24919  no)
24920       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24921printf "%s\n" "no" >&6; }
24922       ipv6=no
24923       ;;
24924  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24925printf "%s\n" "yes" >&6; }
24926       ipv6=yes
24927       ;;
24928  esac
24929else $as_nop
24930  if test "$cross_compiling" = yes
24931then :
24932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24933printf "%s\n" "yes" >&6; }
24934  ipv6=yes
24935
24936else $as_nop
24937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938/* end confdefs.h.  */
24939
24940/* are AF_INET6 and sockaddr_in6 available? */
24941#include <sys/types.h>
24942#ifdef HAVE_WINSOCK2_H
24943#include <winsock2.h>
24944#include <ws2tcpip.h>
24945#else
24946#include <sys/socket.h>
24947#include <netinet/in.h>
24948#if defined (__TANDEM)
24949# include <netinet/in6.h>
24950#endif
24951#endif
24952#include <stdlib.h> /* for exit() */
24953main()
24954{
24955 struct sockaddr_in6 s;
24956 (void)s;
24957 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24958   exit(1);
24959 else
24960   exit(0);
24961}
24962
24963
24964_ACEOF
24965if ac_fn_c_try_run "$LINENO"
24966then :
24967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24968printf "%s\n" "yes" >&6; }
24969  ipv6=yes
24970else $as_nop
24971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24972printf "%s\n" "no" >&6; }
24973  ipv6=no
24974fi
24975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24976  conftest.$ac_objext conftest.beam conftest.$ac_ext
24977fi
24978
24979fi
24980
24981
24982if test "$ipv6" = yes; then
24983  curl_ipv6_msg="enabled"
24984
24985printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24986
24987  IPV6_ENABLED=1
24988
24989
24990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24991printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24993/* end confdefs.h.  */
24994
24995#include <sys/types.h>
24996#ifdef HAVE_WINSOCK2_H
24997#include <winsock2.h>
24998#include <ws2tcpip.h>
24999#else
25000#include <netinet/in.h>
25001#if defined (__TANDEM)
25002# include <netinet/in6.h>
25003#endif
25004#endif
25005
25006int main (void)
25007{
25008
25009  struct sockaddr_in6 s;
25010  s.sin6_scope_id = 0;
25011
25012 ;
25013 return 0;
25014}
25015_ACEOF
25016if ac_fn_c_try_compile "$LINENO"
25017then :
25018
25019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25020printf "%s\n" "yes" >&6; }
25021
25022printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
25023
25024
25025else $as_nop
25026
25027    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25028printf "%s\n" "no" >&6; }
25029
25030fi
25031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25032fi
25033
25034
25035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25036printf %s "checking if argv can be written to... " >&6; }
25037
25038   case $host_os in
25039     darwin*)
25040      if test "$cross_compiling" = yes
25041then :
25042  curl_cv_writable_argv=cross
25043
25044else $as_nop
25045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046/* end confdefs.h.  */
25047
25048int main(int argc, char **argv)
25049{
25050#ifdef _WIN32
25051  /* on Windows, writing to the argv does not hide the argument in
25052     process lists so it can just be skipped */
25053  (void)argc;
25054  (void)argv;
25055  return 1;
25056#else
25057  (void)argc;
25058  argv[0][0] = ' ';
25059  return (argv[0][0] == ' ')?0:1;
25060#endif
25061}
25062
25063_ACEOF
25064if ac_fn_c_try_run "$LINENO"
25065then :
25066  curl_cv_writable_argv=yes
25067
25068else $as_nop
25069  curl_cv_writable_argv=no
25070
25071fi
25072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25073  conftest.$ac_objext conftest.beam conftest.$ac_ext
25074fi
25075
25076     ;;
25077     *)
25078      oldcc=$CC
25079      old=$LD_LIBRARY_PATH
25080      CC="sh ./run-compiler"
25081      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25082      export LD_LIBRARY_PATH
25083      if test "$cross_compiling" = yes
25084then :
25085  curl_cv_writable_argv=cross
25086
25087else $as_nop
25088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25089/* end confdefs.h.  */
25090
25091int main(int argc, char **argv)
25092{
25093#ifdef _WIN32
25094  /* on Windows, writing to the argv does not hide the argument in
25095     process lists so it can just be skipped */
25096  (void)argc;
25097  (void)argv;
25098  return 1;
25099#else
25100  (void)argc;
25101  argv[0][0] = ' ';
25102  return (argv[0][0] == ' ')?0:1;
25103#endif
25104}
25105
25106_ACEOF
25107if ac_fn_c_try_run "$LINENO"
25108then :
25109  curl_cv_writable_argv=yes
25110
25111else $as_nop
25112  curl_cv_writable_argv=no
25113
25114fi
25115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25116  conftest.$ac_objext conftest.beam conftest.$ac_ext
25117fi
25118
25119      LD_LIBRARY_PATH=$old # restore
25120      CC=$oldcc
25121     ;;
25122   esac
25123
25124case $curl_cv_writable_argv in
25125yes)
25126
25127printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25128
25129        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130printf "%s\n" "yes" >&6; }
25131        ;;
25132no)
25133        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25134printf "%s\n" "no" >&6; }
25135        ;;
25136*)
25137        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25138printf "%s\n" "no" >&6; }
25139        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25140printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25141        ;;
25142esac
25143
25144
25145
25146GSSAPI_ROOT="/usr"
25147
25148# Check whether --with-gssapi-includes was given.
25149if test ${with_gssapi_includes+y}
25150then :
25151  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
25152    want_gss="yes"
25153
25154fi
25155
25156
25157
25158# Check whether --with-gssapi-libs was given.
25159if test ${with_gssapi_libs+y}
25160then :
25161  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
25162    want_gss="yes"
25163
25164fi
25165
25166
25167
25168# Check whether --with-gssapi was given.
25169if test ${with_gssapi+y}
25170then :
25171  withval=$with_gssapi;
25172  GSSAPI_ROOT="$withval"
25173  if test x"$GSSAPI_ROOT" != xno; then
25174    want_gss="yes"
25175    if test x"$GSSAPI_ROOT" = xyes; then
25176            GSSAPI_ROOT="/usr"
25177    fi
25178  fi
25179
25180fi
25181
25182
25183: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25184
25185save_CPPFLAGS="$CPPFLAGS"
25186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25187printf %s "checking if GSS-API support is requested... " >&6; }
25188if test x"$want_gss" = xyes; then
25189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25190printf "%s\n" "yes" >&6; }
25191
25192  if test $GSSAPI_ROOT != "/usr"; then
25193
25194    if test -n "$PKG_CONFIG"; then
25195      PKGCONFIG="$PKG_CONFIG"
25196    else
25197      if test -n "$ac_tool_prefix"; then
25198  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25201printf %s "checking for $ac_word... " >&6; }
25202if test ${ac_cv_path_PKGCONFIG+y}
25203then :
25204  printf %s "(cached) " >&6
25205else $as_nop
25206  case $PKGCONFIG in
25207  [\\/]* | ?:[\\/]*)
25208  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25209  ;;
25210  *)
25211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25212as_dummy="$PATH:/usr/bin:/usr/local/bin"
25213for as_dir in $as_dummy
25214do
25215  IFS=$as_save_IFS
25216  case $as_dir in #(((
25217    '') as_dir=./ ;;
25218    */) ;;
25219    *) as_dir=$as_dir/ ;;
25220  esac
25221    for ac_exec_ext in '' $ac_executable_extensions; do
25222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25223    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25225    break 2
25226  fi
25227done
25228  done
25229IFS=$as_save_IFS
25230
25231  ;;
25232esac
25233fi
25234PKGCONFIG=$ac_cv_path_PKGCONFIG
25235if test -n "$PKGCONFIG"; then
25236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25237printf "%s\n" "$PKGCONFIG" >&6; }
25238else
25239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25240printf "%s\n" "no" >&6; }
25241fi
25242
25243
25244fi
25245if test -z "$ac_cv_path_PKGCONFIG"; then
25246  ac_pt_PKGCONFIG=$PKGCONFIG
25247  # Extract the first word of "pkg-config", so it can be a program name with args.
25248set dummy pkg-config; ac_word=$2
25249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25250printf %s "checking for $ac_word... " >&6; }
25251if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25252then :
25253  printf %s "(cached) " >&6
25254else $as_nop
25255  case $ac_pt_PKGCONFIG in
25256  [\\/]* | ?:[\\/]*)
25257  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25258  ;;
25259  *)
25260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25261as_dummy="$PATH:/usr/bin:/usr/local/bin"
25262for as_dir in $as_dummy
25263do
25264  IFS=$as_save_IFS
25265  case $as_dir in #(((
25266    '') as_dir=./ ;;
25267    */) ;;
25268    *) as_dir=$as_dir/ ;;
25269  esac
25270    for ac_exec_ext in '' $ac_executable_extensions; do
25271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25272    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25274    break 2
25275  fi
25276done
25277  done
25278IFS=$as_save_IFS
25279
25280  ;;
25281esac
25282fi
25283ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25284if test -n "$ac_pt_PKGCONFIG"; then
25285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25286printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25287else
25288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289printf "%s\n" "no" >&6; }
25290fi
25291
25292  if test "x$ac_pt_PKGCONFIG" = x; then
25293    PKGCONFIG="no"
25294  else
25295    case $cross_compiling:$ac_tool_warned in
25296yes:)
25297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25299ac_tool_warned=yes ;;
25300esac
25301    PKGCONFIG=$ac_pt_PKGCONFIG
25302  fi
25303else
25304  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25305fi
25306
25307    fi
25308
25309    if test "x$PKGCONFIG" != "xno"; then
25310      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25311printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25312            itexists=`
25313    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25314      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25315      export PKG_CONFIG_LIBDIR
25316    fi
25317         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25318
25319      if test -z "$itexists"; then
25320                        PKGCONFIG="no"
25321        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322printf "%s\n" "no" >&6; }
25323      else
25324        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25325printf "%s\n" "found" >&6; }
25326      fi
25327    fi
25328
25329  else
25330
25331    if test -n "$PKG_CONFIG"; then
25332      PKGCONFIG="$PKG_CONFIG"
25333    else
25334      if test -n "$ac_tool_prefix"; then
25335  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25336set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25338printf %s "checking for $ac_word... " >&6; }
25339if test ${ac_cv_path_PKGCONFIG+y}
25340then :
25341  printf %s "(cached) " >&6
25342else $as_nop
25343  case $PKGCONFIG in
25344  [\\/]* | ?:[\\/]*)
25345  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25346  ;;
25347  *)
25348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25349as_dummy="$PATH:/usr/bin:/usr/local/bin"
25350for as_dir in $as_dummy
25351do
25352  IFS=$as_save_IFS
25353  case $as_dir in #(((
25354    '') as_dir=./ ;;
25355    */) ;;
25356    *) as_dir=$as_dir/ ;;
25357  esac
25358    for ac_exec_ext in '' $ac_executable_extensions; do
25359  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25360    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25361    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25362    break 2
25363  fi
25364done
25365  done
25366IFS=$as_save_IFS
25367
25368  ;;
25369esac
25370fi
25371PKGCONFIG=$ac_cv_path_PKGCONFIG
25372if test -n "$PKGCONFIG"; then
25373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25374printf "%s\n" "$PKGCONFIG" >&6; }
25375else
25376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25377printf "%s\n" "no" >&6; }
25378fi
25379
25380
25381fi
25382if test -z "$ac_cv_path_PKGCONFIG"; then
25383  ac_pt_PKGCONFIG=$PKGCONFIG
25384  # Extract the first word of "pkg-config", so it can be a program name with args.
25385set dummy pkg-config; ac_word=$2
25386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25387printf %s "checking for $ac_word... " >&6; }
25388if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25389then :
25390  printf %s "(cached) " >&6
25391else $as_nop
25392  case $ac_pt_PKGCONFIG in
25393  [\\/]* | ?:[\\/]*)
25394  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25395  ;;
25396  *)
25397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25398as_dummy="$PATH:/usr/bin:/usr/local/bin"
25399for as_dir in $as_dummy
25400do
25401  IFS=$as_save_IFS
25402  case $as_dir in #(((
25403    '') as_dir=./ ;;
25404    */) ;;
25405    *) as_dir=$as_dir/ ;;
25406  esac
25407    for ac_exec_ext in '' $ac_executable_extensions; do
25408  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25409    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25411    break 2
25412  fi
25413done
25414  done
25415IFS=$as_save_IFS
25416
25417  ;;
25418esac
25419fi
25420ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25421if test -n "$ac_pt_PKGCONFIG"; then
25422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25423printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25424else
25425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25426printf "%s\n" "no" >&6; }
25427fi
25428
25429  if test "x$ac_pt_PKGCONFIG" = x; then
25430    PKGCONFIG="no"
25431  else
25432    case $cross_compiling:$ac_tool_warned in
25433yes:)
25434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25436ac_tool_warned=yes ;;
25437esac
25438    PKGCONFIG=$ac_pt_PKGCONFIG
25439  fi
25440else
25441  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25442fi
25443
25444    fi
25445
25446    if test "x$PKGCONFIG" != "xno"; then
25447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25448printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25449            itexists=`
25450    if test -n ""; then
25451      PKG_CONFIG_LIBDIR=""
25452      export PKG_CONFIG_LIBDIR
25453    fi
25454         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25455
25456      if test -z "$itexists"; then
25457                        PKGCONFIG="no"
25458        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25459printf "%s\n" "no" >&6; }
25460      else
25461        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25462printf "%s\n" "found" >&6; }
25463      fi
25464    fi
25465
25466  fi
25467  if test -z "$GSSAPI_INCS"; then
25468     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25469        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25470     elif test "$PKGCONFIG" != "no" ; then
25471        GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25472     elif test -f "$KRB5CONFIG"; then
25473        GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25474     elif test "$GSSAPI_ROOT" != "yes"; then
25475        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25476     fi
25477  fi
25478
25479  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25480
25481  ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25482if test "x$ac_cv_header_gss_h" = xyes
25483then :
25484
25485
25486printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25487
25488      gnu_gss=yes
25489
25490else $as_nop
25491
25492                   for ac_header in gssapi/gssapi.h
25493do :
25494  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25495if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25496then :
25497  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25498
25499else $as_nop
25500  not_mit=1
25501fi
25502
25503done
25504             for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25505do :
25506  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25507ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25508$ac_includes_default
25509#ifdef HAVE_GSSAPI_GSSAPI_H
25510#include <gssapi/gssapi.h>
25511#endif
25512
25513"
25514if eval test \"x\$"$as_ac_Header"\" = x"yes"
25515then :
25516  cat >>confdefs.h <<_ACEOF
25517#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25518_ACEOF
25519
25520else $as_nop
25521  not_mit=1
25522fi
25523
25524done
25525      if test "x$not_mit" = "x1"; then
25526                ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25527if test "x$ac_cv_header_gssapi_h" = xyes
25528then :
25529
25530
25531printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25532
25533
25534else $as_nop
25535
25536                            want_gss=no
25537              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25538printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25539
25540
25541fi
25542
25543      else
25544
25545printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25546
25547                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25548printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25549        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550/* end confdefs.h.  */
25551
25552
25553#include <gssapi/gssapi.h>
25554#include <gssapi/gssapi_generic.h>
25555#include <gssapi/gssapi_krb5.h>
25556
25557int main (void)
25558{
25559
25560            gss_import_name(
25561                            (OM_uint32 *)0,
25562                            (gss_buffer_t)0,
25563                            GSS_C_NT_HOSTBASED_SERVICE,
25564                            (gss_name_t *)0);
25565
25566 ;
25567 return 0;
25568}
25569
25570_ACEOF
25571if ac_fn_c_try_compile "$LINENO"
25572then :
25573
25574          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25575printf "%s\n" "yes" >&6; }
25576
25577else $as_nop
25578
25579          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25580printf "%s\n" "no" >&6; }
25581
25582printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25583
25584
25585fi
25586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25587      fi
25588
25589
25590fi
25591
25592else
25593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25594printf "%s\n" "no" >&6; }
25595fi
25596if test x"$want_gss" = xyes; then
25597
25598printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25599
25600  HAVE_GSSAPI=1
25601  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25602
25603  if test -n "$gnu_gss"; then
25604    curl_gss_msg="enabled (GNU GSS)"
25605    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25606    LIBS="-lgss $LIBS"
25607  elif test -z "$GSSAPI_LIB_DIR"; then
25608     case $host in
25609     *-*-darwin*)
25610        LIBS="-lgssapi_krb5 -lresolv $LIBS"
25611        ;;
25612     *)
25613        if test $GSSAPI_ROOT != "/usr"; then
25614
25615    if test -n "$PKG_CONFIG"; then
25616      PKGCONFIG="$PKG_CONFIG"
25617    else
25618      if test -n "$ac_tool_prefix"; then
25619  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25620set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25622printf %s "checking for $ac_word... " >&6; }
25623if test ${ac_cv_path_PKGCONFIG+y}
25624then :
25625  printf %s "(cached) " >&6
25626else $as_nop
25627  case $PKGCONFIG in
25628  [\\/]* | ?:[\\/]*)
25629  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25630  ;;
25631  *)
25632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25633as_dummy="$PATH:/usr/bin:/usr/local/bin"
25634for as_dir in $as_dummy
25635do
25636  IFS=$as_save_IFS
25637  case $as_dir in #(((
25638    '') as_dir=./ ;;
25639    */) ;;
25640    *) as_dir=$as_dir/ ;;
25641  esac
25642    for ac_exec_ext in '' $ac_executable_extensions; do
25643  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25644    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25645    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25646    break 2
25647  fi
25648done
25649  done
25650IFS=$as_save_IFS
25651
25652  ;;
25653esac
25654fi
25655PKGCONFIG=$ac_cv_path_PKGCONFIG
25656if test -n "$PKGCONFIG"; then
25657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25658printf "%s\n" "$PKGCONFIG" >&6; }
25659else
25660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25661printf "%s\n" "no" >&6; }
25662fi
25663
25664
25665fi
25666if test -z "$ac_cv_path_PKGCONFIG"; then
25667  ac_pt_PKGCONFIG=$PKGCONFIG
25668  # Extract the first word of "pkg-config", so it can be a program name with args.
25669set dummy pkg-config; ac_word=$2
25670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25671printf %s "checking for $ac_word... " >&6; }
25672if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25673then :
25674  printf %s "(cached) " >&6
25675else $as_nop
25676  case $ac_pt_PKGCONFIG in
25677  [\\/]* | ?:[\\/]*)
25678  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25679  ;;
25680  *)
25681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682as_dummy="$PATH:/usr/bin:/usr/local/bin"
25683for as_dir in $as_dummy
25684do
25685  IFS=$as_save_IFS
25686  case $as_dir in #(((
25687    '') as_dir=./ ;;
25688    */) ;;
25689    *) as_dir=$as_dir/ ;;
25690  esac
25691    for ac_exec_ext in '' $ac_executable_extensions; do
25692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25693    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25695    break 2
25696  fi
25697done
25698  done
25699IFS=$as_save_IFS
25700
25701  ;;
25702esac
25703fi
25704ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25705if test -n "$ac_pt_PKGCONFIG"; then
25706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25707printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25708else
25709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25710printf "%s\n" "no" >&6; }
25711fi
25712
25713  if test "x$ac_pt_PKGCONFIG" = x; then
25714    PKGCONFIG="no"
25715  else
25716    case $cross_compiling:$ac_tool_warned in
25717yes:)
25718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25719printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25720ac_tool_warned=yes ;;
25721esac
25722    PKGCONFIG=$ac_pt_PKGCONFIG
25723  fi
25724else
25725  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25726fi
25727
25728    fi
25729
25730    if test "x$PKGCONFIG" != "xno"; then
25731      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25732printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25733            itexists=`
25734    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25735      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25736      export PKG_CONFIG_LIBDIR
25737    fi
25738         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25739
25740      if test -z "$itexists"; then
25741                        PKGCONFIG="no"
25742        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25743printf "%s\n" "no" >&6; }
25744      else
25745        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25746printf "%s\n" "found" >&6; }
25747      fi
25748    fi
25749
25750        else
25751
25752    if test -n "$PKG_CONFIG"; then
25753      PKGCONFIG="$PKG_CONFIG"
25754    else
25755      if test -n "$ac_tool_prefix"; then
25756  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25757set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25759printf %s "checking for $ac_word... " >&6; }
25760if test ${ac_cv_path_PKGCONFIG+y}
25761then :
25762  printf %s "(cached) " >&6
25763else $as_nop
25764  case $PKGCONFIG in
25765  [\\/]* | ?:[\\/]*)
25766  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25767  ;;
25768  *)
25769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25770as_dummy="$PATH:/usr/bin:/usr/local/bin"
25771for as_dir in $as_dummy
25772do
25773  IFS=$as_save_IFS
25774  case $as_dir in #(((
25775    '') as_dir=./ ;;
25776    */) ;;
25777    *) as_dir=$as_dir/ ;;
25778  esac
25779    for ac_exec_ext in '' $ac_executable_extensions; do
25780  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25781    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25782    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25783    break 2
25784  fi
25785done
25786  done
25787IFS=$as_save_IFS
25788
25789  ;;
25790esac
25791fi
25792PKGCONFIG=$ac_cv_path_PKGCONFIG
25793if test -n "$PKGCONFIG"; then
25794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25795printf "%s\n" "$PKGCONFIG" >&6; }
25796else
25797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25798printf "%s\n" "no" >&6; }
25799fi
25800
25801
25802fi
25803if test -z "$ac_cv_path_PKGCONFIG"; then
25804  ac_pt_PKGCONFIG=$PKGCONFIG
25805  # Extract the first word of "pkg-config", so it can be a program name with args.
25806set dummy pkg-config; ac_word=$2
25807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25808printf %s "checking for $ac_word... " >&6; }
25809if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25810then :
25811  printf %s "(cached) " >&6
25812else $as_nop
25813  case $ac_pt_PKGCONFIG in
25814  [\\/]* | ?:[\\/]*)
25815  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25816  ;;
25817  *)
25818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25819as_dummy="$PATH:/usr/bin:/usr/local/bin"
25820for as_dir in $as_dummy
25821do
25822  IFS=$as_save_IFS
25823  case $as_dir in #(((
25824    '') as_dir=./ ;;
25825    */) ;;
25826    *) as_dir=$as_dir/ ;;
25827  esac
25828    for ac_exec_ext in '' $ac_executable_extensions; do
25829  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25830    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25831    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25832    break 2
25833  fi
25834done
25835  done
25836IFS=$as_save_IFS
25837
25838  ;;
25839esac
25840fi
25841ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25842if test -n "$ac_pt_PKGCONFIG"; then
25843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25844printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25845else
25846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25847printf "%s\n" "no" >&6; }
25848fi
25849
25850  if test "x$ac_pt_PKGCONFIG" = x; then
25851    PKGCONFIG="no"
25852  else
25853    case $cross_compiling:$ac_tool_warned in
25854yes:)
25855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25857ac_tool_warned=yes ;;
25858esac
25859    PKGCONFIG=$ac_pt_PKGCONFIG
25860  fi
25861else
25862  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25863fi
25864
25865    fi
25866
25867    if test "x$PKGCONFIG" != "xno"; then
25868      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25869printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25870            itexists=`
25871    if test -n ""; then
25872      PKG_CONFIG_LIBDIR=""
25873      export PKG_CONFIG_LIBDIR
25874    fi
25875         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25876
25877      if test -z "$itexists"; then
25878                        PKGCONFIG="no"
25879        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880printf "%s\n" "no" >&6; }
25881      else
25882        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25883printf "%s\n" "found" >&6; }
25884      fi
25885    fi
25886
25887        fi
25888        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25889                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
25890           LIBS="$gss_libs $LIBS"
25891        elif test "$PKGCONFIG" != "no" ; then
25892           gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
25893           LIBS="$gss_libs $LIBS"
25894        elif test -f "$KRB5CONFIG"; then
25895                                 gss_libs=`$KRB5CONFIG --libs gssapi`
25896           LIBS="$gss_libs $LIBS"
25897        else
25898           case $host in
25899           *-hp-hpux*)
25900              gss_libname="gss"
25901              ;;
25902           *)
25903              gss_libname="gssapi"
25904              ;;
25905           esac
25906
25907           if test "$GSSAPI_ROOT" != "yes"; then
25908              LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
25909              LIBS="-l$gss_libname $LIBS"
25910           else
25911              LIBS="-l$gss_libname $LIBS"
25912           fi
25913        fi
25914        ;;
25915     esac
25916  else
25917     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25918     case $host in
25919     *-hp-hpux*)
25920        LIBS="-lgss $LIBS"
25921        ;;
25922     *)
25923        LIBS="-lgssapi $LIBS"
25924        ;;
25925     esac
25926  fi
25927else
25928  CPPFLAGS="$save_CPPFLAGS"
25929fi
25930
25931if test x"$want_gss" = xyes; then
25932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
25933printf %s "checking if we can link against GSS-API library... " >&6; }
25934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935/* end confdefs.h.  */
25936
25937
25938#define gss_init_sec_context innocuous_gss_init_sec_context
25939#ifdef __STDC__
25940# include <limits.h>
25941#else
25942# include <assert.h>
25943#endif
25944#undef gss_init_sec_context
25945#ifdef __cplusplus
25946extern "C"
25947#endif
25948char gss_init_sec_context ();
25949#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
25950choke me
25951#endif
25952
25953int main (void)
25954{
25955return gss_init_sec_context ();
25956 ;
25957 return 0;
25958}
25959
25960_ACEOF
25961if ac_fn_c_try_link "$LINENO"
25962then :
25963
25964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25965printf "%s\n" "yes" >&6; }
25966
25967else $as_nop
25968
25969    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25970printf "%s\n" "no" >&6; }
25971    as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
25972
25973fi
25974rm -f core conftest.err conftest.$ac_objext conftest.beam \
25975    conftest$ac_exeext conftest.$ac_ext
25976fi
25977
25978build_libstubgss=no
25979if test x"$want_gss" = "xyes"; then
25980  build_libstubgss=yes
25981fi
25982
25983 if test "x$build_libstubgss" = "xyes"; then
25984  BUILD_STUB_GSS_TRUE=
25985  BUILD_STUB_GSS_FALSE='#'
25986else
25987  BUILD_STUB_GSS_TRUE='#'
25988  BUILD_STUB_GSS_FALSE=
25989fi
25990
25991
25992
25993DEFAULT_SSL_BACKEND=no
25994VALID_DEFAULT_SSL_BACKEND=
25995
25996# Check whether --with-default-ssl-backend was given.
25997if test ${with_default_ssl_backend+y}
25998then :
25999  withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
26000fi
26001
26002case "$DEFAULT_SSL_BACKEND" in
26003  no)
26004        ;;
26005  default|yes)
26006        as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
26007    ;;
26008  *)
26009
26010        VALID_DEFAULT_SSL_BACKEND=no
26011    ;;
26012esac
26013
26014
26015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
26016printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
26017if test "x$OPT_SCHANNEL" != xno; then
26018  ssl_msg=
26019  if test "x$OPT_SCHANNEL" != "xno"  &&
26020     test "x$curl_cv_native_windows" = "xyes"; then
26021    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26022printf "%s\n" "yes" >&6; }
26023
26024printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
26025
26026    USE_SCHANNEL=1
26027
26028    ssl_msg="Schannel"
26029    test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26030    SCHANNEL_ENABLED=1
26031    # --with-schannel implies --enable-sspi
26032
26033printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
26034
26035    USE_WINDOWS_SSPI=1
26036
26037    curl_sspi_msg="enabled"
26038  else
26039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040printf "%s\n" "no" >&6; }
26041  fi
26042  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26043else
26044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045printf "%s\n" "no" >&6; }
26046fi
26047
26048
26049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
26050printf %s "checking whether to enable Secure Transport... " >&6; }
26051if test "x$OPT_SECURETRANSPORT" != xno; then
26052  if test "x$OPT_SECURETRANSPORT" != "xno" &&
26053     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
26054    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26055printf "%s\n" "yes" >&6; }
26056
26057printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26058
26059    USE_SECTRANSP=1
26060
26061    ssl_msg="Secure Transport"
26062    test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26063    SECURETRANSPORT_ENABLED=1
26064    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security"
26065  else
26066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067printf "%s\n" "no" >&6; }
26068  fi
26069  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26070else
26071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072printf "%s\n" "no" >&6; }
26073fi
26074
26075
26076
26077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26078printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26079if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26080  if test "x$OPT_AMISSL" != xno; then
26081    ssl_msg=
26082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083/* end confdefs.h.  */
26084
26085
26086        #include <libraries/amisslmaster.h>
26087        #include <openssl/opensslv.h>
26088
26089int main (void)
26090{
26091
26092        #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \
26093            defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
26094            defined(PROTO_AMISSL_H)
26095        return 0;
26096        #else
26097        #error not AmiSSL v5 / OpenSSL 3
26098        #endif
26099
26100 ;
26101 return 0;
26102}
26103
26104_ACEOF
26105if ac_fn_c_try_compile "$LINENO"
26106then :
26107
26108      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26109printf "%s\n" "yes" >&6; }
26110      ssl_msg="AmiSSL"
26111      test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26112      AMISSL_ENABLED=1
26113      OPENSSL_ENABLED=1
26114      # Use AmiSSL's built-in ca bundle
26115      check_for_ca_bundle=1
26116      with_ca_fallback=yes
26117      LIBS="-lamisslstubs -lamisslauto $LIBS"
26118
26119printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26120
26121
26122printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26123
26124
26125printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26126
26127      ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26128if test "x$ac_cv_header_openssl_x509_h" = xyes
26129then :
26130  printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26131
26132fi
26133ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26134if test "x$ac_cv_header_openssl_rsa_h" = xyes
26135then :
26136  printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26137
26138fi
26139ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26140if test "x$ac_cv_header_openssl_crypto_h" = xyes
26141then :
26142  printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26143
26144fi
26145ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26146if test "x$ac_cv_header_openssl_pem_h" = xyes
26147then :
26148  printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26149
26150fi
26151ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26152if test "x$ac_cv_header_openssl_ssl_h" = xyes
26153then :
26154  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26155
26156fi
26157ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26158if test "x$ac_cv_header_openssl_err_h" = xyes
26159then :
26160  printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26161
26162fi
26163
26164
26165else $as_nop
26166
26167      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26168printf "%s\n" "no" >&6; }
26169
26170fi
26171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26172    test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26173  else
26174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26175printf "%s\n" "no" >&6; }
26176  fi
26177else
26178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26179printf "%s\n" "no" >&6; }
26180fi
26181
26182
26183
26184if test "x$OPT_OPENSSL" != xno; then
26185  ssl_msg=
26186
26187    CLEANLDFLAGS="$LDFLAGS"
26188  CLEANCPPFLAGS="$CPPFLAGS"
26189  CLEANLIBS="$LIBS"
26190
26191    case $host in
26192    *-*-msys* | *-*-mingw*)
26193      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26194printf %s "checking for gdi32... " >&6; }
26195      my_ac_save_LIBS=$LIBS
26196      LIBS="-lgdi32 $LIBS"
26197      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26198/* end confdefs.h.  */
26199
26200        #include <windef.h>
26201        #include <wingdi.h>
26202
26203int main (void)
26204{
26205
26206          GdiFlush();
26207
26208 ;
26209 return 0;
26210}
26211_ACEOF
26212if ac_fn_c_try_link "$LINENO"
26213then :
26214           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26215printf "%s\n" "yes" >&6; }
26216else $as_nop
26217           LIBS=$my_ac_save_LIBS
26218        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26219printf "%s\n" "no" >&6; }
26220
26221fi
26222rm -f core conftest.err conftest.$ac_objext conftest.beam \
26223    conftest$ac_exeext conftest.$ac_ext
26224      ;;
26225  esac
26226
26227  case "$OPT_OPENSSL" in
26228  yes)
26229        PKGTEST="yes"
26230    PREFIX_OPENSSL=
26231    ;;
26232  *)
26233        PKGTEST="no"
26234    PREFIX_OPENSSL=$OPT_OPENSSL
26235
26236                OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26237    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26238      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26239printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26240      PKGTEST="yes"
26241    fi
26242
26243    if test "$PKGTEST" != "yes"; then
26244      # try lib64 instead
26245      OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26246      if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26247        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26248printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26249        PKGTEST="yes"
26250      fi
26251    fi
26252
26253    if test "$PKGTEST" != "yes"; then
26254      if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26255        as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26256      fi
26257    fi
26258
26259            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26260    if test "$PREFIX_OPENSSL" != "/usr" ; then
26261      SSL_LDFLAGS="-L$LIB_OPENSSL"
26262      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26263    fi
26264    ;;
26265  esac
26266
26267  if test "$PKGTEST" = "yes"; then
26268
26269
26270    if test -n "$PKG_CONFIG"; then
26271      PKGCONFIG="$PKG_CONFIG"
26272    else
26273      if test -n "$ac_tool_prefix"; then
26274  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26275set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26277printf %s "checking for $ac_word... " >&6; }
26278if test ${ac_cv_path_PKGCONFIG+y}
26279then :
26280  printf %s "(cached) " >&6
26281else $as_nop
26282  case $PKGCONFIG in
26283  [\\/]* | ?:[\\/]*)
26284  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26285  ;;
26286  *)
26287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26288as_dummy="$PATH:/usr/bin:/usr/local/bin"
26289for as_dir in $as_dummy
26290do
26291  IFS=$as_save_IFS
26292  case $as_dir in #(((
26293    '') as_dir=./ ;;
26294    */) ;;
26295    *) as_dir=$as_dir/ ;;
26296  esac
26297    for ac_exec_ext in '' $ac_executable_extensions; do
26298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26299    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26301    break 2
26302  fi
26303done
26304  done
26305IFS=$as_save_IFS
26306
26307  ;;
26308esac
26309fi
26310PKGCONFIG=$ac_cv_path_PKGCONFIG
26311if test -n "$PKGCONFIG"; then
26312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26313printf "%s\n" "$PKGCONFIG" >&6; }
26314else
26315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26316printf "%s\n" "no" >&6; }
26317fi
26318
26319
26320fi
26321if test -z "$ac_cv_path_PKGCONFIG"; then
26322  ac_pt_PKGCONFIG=$PKGCONFIG
26323  # Extract the first word of "pkg-config", so it can be a program name with args.
26324set dummy pkg-config; ac_word=$2
26325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26326printf %s "checking for $ac_word... " >&6; }
26327if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26328then :
26329  printf %s "(cached) " >&6
26330else $as_nop
26331  case $ac_pt_PKGCONFIG in
26332  [\\/]* | ?:[\\/]*)
26333  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26334  ;;
26335  *)
26336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26337as_dummy="$PATH:/usr/bin:/usr/local/bin"
26338for as_dir in $as_dummy
26339do
26340  IFS=$as_save_IFS
26341  case $as_dir in #(((
26342    '') as_dir=./ ;;
26343    */) ;;
26344    *) as_dir=$as_dir/ ;;
26345  esac
26346    for ac_exec_ext in '' $ac_executable_extensions; do
26347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26348    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26350    break 2
26351  fi
26352done
26353  done
26354IFS=$as_save_IFS
26355
26356  ;;
26357esac
26358fi
26359ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26360if test -n "$ac_pt_PKGCONFIG"; then
26361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26362printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26363else
26364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26365printf "%s\n" "no" >&6; }
26366fi
26367
26368  if test "x$ac_pt_PKGCONFIG" = x; then
26369    PKGCONFIG="no"
26370  else
26371    case $cross_compiling:$ac_tool_warned in
26372yes:)
26373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26375ac_tool_warned=yes ;;
26376esac
26377    PKGCONFIG=$ac_pt_PKGCONFIG
26378  fi
26379else
26380  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26381fi
26382
26383    fi
26384
26385    if test "x$PKGCONFIG" != "xno"; then
26386      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26387printf %s "checking for openssl options with pkg-config... " >&6; }
26388            itexists=`
26389    if test -n "$OPENSSL_PCDIR"; then
26390      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26391      export PKG_CONFIG_LIBDIR
26392    fi
26393         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26394
26395      if test -z "$itexists"; then
26396                        PKGCONFIG="no"
26397        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26398printf "%s\n" "no" >&6; }
26399      else
26400        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26401printf "%s\n" "found" >&6; }
26402      fi
26403    fi
26404
26405
26406    if test "$PKGCONFIG" != "no" ; then
26407      SSL_LIBS=`
26408    if test -n "$OPENSSL_PCDIR"; then
26409      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26410      export PKG_CONFIG_LIBDIR
26411    fi
26412         $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26413
26414      SSL_LDFLAGS=`
26415    if test -n "$OPENSSL_PCDIR"; then
26416      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26417      export PKG_CONFIG_LIBDIR
26418    fi
26419         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26420
26421      SSL_CPPFLAGS=`
26422    if test -n "$OPENSSL_PCDIR"; then
26423      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26424      export PKG_CONFIG_LIBDIR
26425    fi
26426         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26427
26428
26429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26430printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26431      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26432printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26434printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26435
26436      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26437
26438                                          LIBS="$SSL_LIBS $LIBS"
26439    fi
26440  fi
26441
26442    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26443  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26444
26445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26446printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26447if test ${ac_cv_lib_crypto_HMAC_Update+y}
26448then :
26449  printf %s "(cached) " >&6
26450else $as_nop
26451  ac_check_lib_save_LIBS=$LIBS
26452LIBS="-lcrypto  $LIBS"
26453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454/* end confdefs.h.  */
26455
26456
26457#ifdef __cplusplus
26458extern "C"
26459#endif
26460char HMAC_Update ();
26461int main (void)
26462{
26463return HMAC_Update ();
26464 ;
26465 return 0;
26466}
26467_ACEOF
26468if ac_fn_c_try_link "$LINENO"
26469then :
26470  ac_cv_lib_crypto_HMAC_Update=yes
26471else $as_nop
26472  ac_cv_lib_crypto_HMAC_Update=no
26473fi
26474rm -f core conftest.err conftest.$ac_objext conftest.beam \
26475    conftest$ac_exeext conftest.$ac_ext
26476LIBS=$ac_check_lib_save_LIBS
26477fi
26478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26479printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26480if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26481then :
26482
26483     HAVECRYPTO="yes"
26484     LIBS="-lcrypto $LIBS"
26485
26486else $as_nop
26487
26488     if test -n "$LIB_OPENSSL" ; then
26489       LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26490     fi
26491     if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26492       # only set this if pkg-config wasn't used
26493       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26494     fi
26495     # Linking previously failed, try extra paths from --with-openssl or
26496     # pkg-config.  Use a different function name to avoid reusing the earlier
26497     # cached result.
26498     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26499printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26500if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26501then :
26502  printf %s "(cached) " >&6
26503else $as_nop
26504  ac_check_lib_save_LIBS=$LIBS
26505LIBS="-lcrypto  $LIBS"
26506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26507/* end confdefs.h.  */
26508
26509
26510#ifdef __cplusplus
26511extern "C"
26512#endif
26513char HMAC_Init_ex ();
26514int main (void)
26515{
26516return HMAC_Init_ex ();
26517 ;
26518 return 0;
26519}
26520_ACEOF
26521if ac_fn_c_try_link "$LINENO"
26522then :
26523  ac_cv_lib_crypto_HMAC_Init_ex=yes
26524else $as_nop
26525  ac_cv_lib_crypto_HMAC_Init_ex=no
26526fi
26527rm -f core conftest.err conftest.$ac_objext conftest.beam \
26528    conftest$ac_exeext conftest.$ac_ext
26529LIBS=$ac_check_lib_save_LIBS
26530fi
26531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26532printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26533if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26534then :
26535
26536       HAVECRYPTO="yes"
26537       LIBS="-lcrypto $LIBS"
26538else $as_nop
26539
26540
26541              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26542printf %s "checking OpenSSL linking with -ldl... " >&6; }
26543       LIBS="-lcrypto $CLEANLIBS -ldl"
26544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545/* end confdefs.h.  */
26546
26547         #include <openssl/err.h>
26548
26549int main (void)
26550{
26551
26552         ERR_clear_error();
26553
26554 ;
26555 return 0;
26556}
26557_ACEOF
26558if ac_fn_c_try_link "$LINENO"
26559then :
26560
26561         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26562printf "%s\n" "yes" >&6; }
26563         HAVECRYPTO="yes"
26564
26565else $as_nop
26566
26567         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26568printf "%s\n" "no" >&6; }
26569
26570         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26571printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26572         LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26574/* end confdefs.h.  */
26575
26576
26577           #include <openssl/err.h>
26578
26579int main (void)
26580{
26581
26582           ERR_clear_error();
26583
26584 ;
26585 return 0;
26586}
26587_ACEOF
26588if ac_fn_c_try_link "$LINENO"
26589then :
26590
26591           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26592printf "%s\n" "yes" >&6; }
26593           HAVECRYPTO="yes"
26594
26595else $as_nop
26596
26597           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26598printf "%s\n" "no" >&6; }
26599           LDFLAGS="$CLEANLDFLAGS"
26600           CPPFLAGS="$CLEANCPPFLAGS"
26601           LIBS="$CLEANLIBS"
26602
26603
26604fi
26605rm -f core conftest.err conftest.$ac_objext conftest.beam \
26606    conftest$ac_exeext conftest.$ac_ext
26607
26608
26609fi
26610rm -f core conftest.err conftest.$ac_objext conftest.beam \
26611    conftest$ac_exeext conftest.$ac_ext
26612
26613
26614fi
26615
26616
26617fi
26618
26619
26620  if test X"$HAVECRYPTO" = X"yes"; then
26621
26622    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26623printf %s "checking for SSL_connect in -lssl... " >&6; }
26624if test ${ac_cv_lib_ssl_SSL_connect+y}
26625then :
26626  printf %s "(cached) " >&6
26627else $as_nop
26628  ac_check_lib_save_LIBS=$LIBS
26629LIBS="-lssl  $LIBS"
26630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26631/* end confdefs.h.  */
26632
26633
26634#ifdef __cplusplus
26635extern "C"
26636#endif
26637char SSL_connect ();
26638int main (void)
26639{
26640return SSL_connect ();
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645if ac_fn_c_try_link "$LINENO"
26646then :
26647  ac_cv_lib_ssl_SSL_connect=yes
26648else $as_nop
26649  ac_cv_lib_ssl_SSL_connect=no
26650fi
26651rm -f core conftest.err conftest.$ac_objext conftest.beam \
26652    conftest$ac_exeext conftest.$ac_ext
26653LIBS=$ac_check_lib_save_LIBS
26654fi
26655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26656printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26657if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26658then :
26659  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26660
26661  LIBS="-lssl $LIBS"
26662
26663fi
26664
26665
26666    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26667                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26668printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26669        OLIBS=$LIBS
26670        LIBS="-lRSAglue -lrsaref $LIBS"
26671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26672printf %s "checking for SSL_connect in -lssl... " >&6; }
26673if test ${ac_cv_lib_ssl_SSL_connect+y}
26674then :
26675  printf %s "(cached) " >&6
26676else $as_nop
26677  ac_check_lib_save_LIBS=$LIBS
26678LIBS="-lssl  $LIBS"
26679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680/* end confdefs.h.  */
26681
26682
26683#ifdef __cplusplus
26684extern "C"
26685#endif
26686char SSL_connect ();
26687int main (void)
26688{
26689return SSL_connect ();
26690 ;
26691 return 0;
26692}
26693_ACEOF
26694if ac_fn_c_try_link "$LINENO"
26695then :
26696  ac_cv_lib_ssl_SSL_connect=yes
26697else $as_nop
26698  ac_cv_lib_ssl_SSL_connect=no
26699fi
26700rm -f core conftest.err conftest.$ac_objext conftest.beam \
26701    conftest$ac_exeext conftest.$ac_ext
26702LIBS=$ac_check_lib_save_LIBS
26703fi
26704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26705printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26706if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26707then :
26708  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26709
26710  LIBS="-lssl $LIBS"
26711
26712fi
26713
26714        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26715                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26716printf "%s\n" "no" >&6; }
26717            LIBS=$OLIBS
26718        else
26719            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26720printf "%s\n" "yes" >&6; }
26721        fi
26722
26723    else
26724
26725                   for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26726do :
26727  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26728ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26729if eval test \"x\$"$as_ac_Header"\" = x"yes"
26730then :
26731  cat >>confdefs.h <<_ACEOF
26732#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26733_ACEOF
26734 ssl_msg="OpenSSL"
26735        test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26736        OPENSSL_ENABLED=1
26737
26738printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26739
26740fi
26741
26742done
26743
26744      if test $ac_cv_header_openssl_x509_h = no; then
26745                                ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26746if test "x$ac_cv_header_x509_h" = xyes
26747then :
26748  printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26749
26750fi
26751ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26752if test "x$ac_cv_header_rsa_h" = xyes
26753then :
26754  printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26755
26756fi
26757ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26758if test "x$ac_cv_header_crypto_h" = xyes
26759then :
26760  printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26761
26762fi
26763ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26764if test "x$ac_cv_header_pem_h" = xyes
26765then :
26766  printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26767
26768fi
26769ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26770if test "x$ac_cv_header_ssl_h" = xyes
26771then :
26772  printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26773
26774fi
26775ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26776if test "x$ac_cv_header_err_h" = xyes
26777then :
26778  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26779
26780fi
26781
26782
26783        if test $ac_cv_header_x509_h = yes &&
26784           test $ac_cv_header_crypto_h = yes &&
26785           test $ac_cv_header_ssl_h = yes; then
26786                    ssl_msg="OpenSSL"
26787          OPENSSL_ENABLED=1
26788        fi
26789      fi
26790    fi
26791
26792    if test X"$OPENSSL_ENABLED" != X"1"; then
26793       LIBS="$CLEANLIBS"
26794    fi
26795
26796    if test X"$OPT_OPENSSL" != Xoff &&
26797       test "$OPENSSL_ENABLED" != "1"; then
26798      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26799    fi
26800  fi
26801
26802  if test X"$OPENSSL_ENABLED" = X"1"; then
26803
26804    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26805printf %s "checking for BoringSSL... " >&6; }
26806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26807/* end confdefs.h.  */
26808
26809
26810                #include <openssl/base.h>
26811
26812int main (void)
26813{
26814
26815                #ifndef OPENSSL_IS_BORINGSSL
26816                #error not boringssl
26817                #endif
26818
26819 ;
26820 return 0;
26821}
26822
26823_ACEOF
26824if ac_fn_c_try_compile "$LINENO"
26825then :
26826
26827        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26828printf "%s\n" "yes" >&6; }
26829        ssl_msg="BoringSSL"
26830
26831else $as_nop
26832
26833        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26834printf "%s\n" "no" >&6; }
26835
26836fi
26837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26838
26839    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5
26840printf %s "checking for AWS-LC... " >&6; }
26841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26842/* end confdefs.h.  */
26843
26844
26845                #include <openssl/base.h>
26846
26847int main (void)
26848{
26849
26850                #ifndef OPENSSL_IS_AWSLC
26851                #error not AWS-LC
26852                #endif
26853
26854 ;
26855 return 0;
26856}
26857
26858_ACEOF
26859if ac_fn_c_try_compile "$LINENO"
26860then :
26861
26862        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26863printf "%s\n" "yes" >&6; }
26864        ssl_msg="AWS-LC"
26865
26866else $as_nop
26867
26868        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26869printf "%s\n" "no" >&6; }
26870
26871fi
26872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26873
26874    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
26875printf %s "checking for libressl... " >&6; }
26876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26877/* end confdefs.h.  */
26878
26879
26880#include <openssl/opensslv.h>
26881
26882int main (void)
26883{
26884
26885        int dummy = LIBRESSL_VERSION_NUMBER;
26886
26887 ;
26888 return 0;
26889}
26890
26891_ACEOF
26892if ac_fn_c_try_compile "$LINENO"
26893then :
26894
26895      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26896printf "%s\n" "yes" >&6; }
26897
26898printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
26899
26900      ssl_msg="libressl"
26901
26902else $as_nop
26903
26904      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905printf "%s\n" "no" >&6; }
26906
26907fi
26908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26909
26910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
26911printf %s "checking for OpenSSL >= v3... " >&6; }
26912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913/* end confdefs.h.  */
26914
26915
26916#include <openssl/opensslv.h>
26917
26918int main (void)
26919{
26920
26921        #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
26922        return 0;
26923        #else
26924        #error older than 3
26925        #endif
26926
26927 ;
26928 return 0;
26929}
26930
26931_ACEOF
26932if ac_fn_c_try_compile "$LINENO"
26933then :
26934
26935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26936printf "%s\n" "yes" >&6; }
26937
26938printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26939
26940      ssl_msg="OpenSSL v3+"
26941
26942else $as_nop
26943
26944      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26945printf "%s\n" "no" >&6; }
26946
26947fi
26948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26949  fi
26950
26951  if test "$OPENSSL_ENABLED" = "1"; then
26952    if test -n "$LIB_OPENSSL"; then
26953                            if test "x$cross_compiling" != "xyes"; then
26954         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
26955         export CURL_LIBRARY_PATH
26956         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
26957printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
26958       fi
26959    fi
26960    check_for_ca_bundle=1
26961  fi
26962
26963  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26964fi
26965
26966if test X"$OPT_OPENSSL" != Xno &&
26967  test "$OPENSSL_ENABLED" != "1"; then
26968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26969printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26971printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26972  as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26973fi
26974
26975
26976if test X"$OPENSSL_ENABLED" = X"1"; then
26977
26978# Check whether --with-random was given.
26979if test ${with_random+y}
26980then :
26981  withval=$with_random;  RANDOM_FILE="$withval"
26982else $as_nop
26983
26984          if test x$cross_compiling != xyes; then
26985                        as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26987printf %s "checking for \"/dev/urandom\"... " >&6; }
26988if eval test \${$as_ac_File+y}
26989then :
26990  printf %s "(cached) " >&6
26991else $as_nop
26992  test "$cross_compiling" = yes &&
26993  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26994if test -r ""/dev/urandom""; then
26995  eval "$as_ac_File=yes"
26996else
26997  eval "$as_ac_File=no"
26998fi
26999fi
27000eval ac_res=\$$as_ac_File
27001	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27002printf "%s\n" "$ac_res" >&6; }
27003if eval test \"x\$"$as_ac_File"\" = x"yes"
27004then :
27005   RANDOM_FILE="/dev/urandom"
27006fi
27007
27008          else
27009            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
27010printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
27011          fi
27012
27013
27014fi
27015
27016  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
27017
27018
27019printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
27020
27021  fi
27022fi
27023
27024if test "$OPENSSL_ENABLED" = "1"; then
27025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
27026printf %s "checking for SRP support in OpenSSL... " >&6; }
27027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028/* end confdefs.h.  */
27029
27030
27031#include <openssl/ssl.h>
27032
27033int main (void)
27034{
27035
27036      SSL_CTX_set_srp_username(NULL, "");
27037      SSL_CTX_set_srp_password(NULL, "");
27038
27039 ;
27040 return 0;
27041}
27042
27043_ACEOF
27044if ac_fn_c_try_link "$LINENO"
27045then :
27046
27047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27048printf "%s\n" "yes" >&6; }
27049
27050printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
27051
27052    HAVE_OPENSSL_SRP=1
27053
27054
27055else $as_nop
27056
27057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27058printf "%s\n" "no" >&6; }
27059
27060fi
27061rm -f core conftest.err conftest.$ac_objext conftest.beam \
27062    conftest$ac_exeext conftest.$ac_ext
27063fi
27064
27065if test X"$OPENSSL_ENABLED" = X"1"; then
27066# Check whether --enable-openssl-auto-load-config was given.
27067if test ${enable_openssl_auto_load_config+y}
27068then :
27069  enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
27070    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27071printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27072
27073printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27074
27075  fi
27076
27077fi
27078
27079fi
27080
27081
27082
27083if test "x$OPT_GNUTLS" != xno; then
27084  ssl_msg=
27085
27086  if test X"$OPT_GNUTLS" != Xno; then
27087
27088    addld=""
27089    addlib=""
27090    gtlslib=""
27091    version=""
27092    addcflags=""
27093
27094    if test "x$OPT_GNUTLS" = "xyes"; then
27095
27096    if test -n "$PKG_CONFIG"; then
27097      PKGCONFIG="$PKG_CONFIG"
27098    else
27099      if test -n "$ac_tool_prefix"; then
27100  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27101set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27103printf %s "checking for $ac_word... " >&6; }
27104if test ${ac_cv_path_PKGCONFIG+y}
27105then :
27106  printf %s "(cached) " >&6
27107else $as_nop
27108  case $PKGCONFIG in
27109  [\\/]* | ?:[\\/]*)
27110  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27111  ;;
27112  *)
27113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27114as_dummy="$PATH:/usr/bin:/usr/local/bin"
27115for as_dir in $as_dummy
27116do
27117  IFS=$as_save_IFS
27118  case $as_dir in #(((
27119    '') as_dir=./ ;;
27120    */) ;;
27121    *) as_dir=$as_dir/ ;;
27122  esac
27123    for ac_exec_ext in '' $ac_executable_extensions; do
27124  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27125    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27126    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27127    break 2
27128  fi
27129done
27130  done
27131IFS=$as_save_IFS
27132
27133  ;;
27134esac
27135fi
27136PKGCONFIG=$ac_cv_path_PKGCONFIG
27137if test -n "$PKGCONFIG"; then
27138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27139printf "%s\n" "$PKGCONFIG" >&6; }
27140else
27141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27142printf "%s\n" "no" >&6; }
27143fi
27144
27145
27146fi
27147if test -z "$ac_cv_path_PKGCONFIG"; then
27148  ac_pt_PKGCONFIG=$PKGCONFIG
27149  # Extract the first word of "pkg-config", so it can be a program name with args.
27150set dummy pkg-config; ac_word=$2
27151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27152printf %s "checking for $ac_word... " >&6; }
27153if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27154then :
27155  printf %s "(cached) " >&6
27156else $as_nop
27157  case $ac_pt_PKGCONFIG in
27158  [\\/]* | ?:[\\/]*)
27159  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27160  ;;
27161  *)
27162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27163as_dummy="$PATH:/usr/bin:/usr/local/bin"
27164for as_dir in $as_dummy
27165do
27166  IFS=$as_save_IFS
27167  case $as_dir in #(((
27168    '') as_dir=./ ;;
27169    */) ;;
27170    *) as_dir=$as_dir/ ;;
27171  esac
27172    for ac_exec_ext in '' $ac_executable_extensions; do
27173  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27174    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27175    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27176    break 2
27177  fi
27178done
27179  done
27180IFS=$as_save_IFS
27181
27182  ;;
27183esac
27184fi
27185ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27186if test -n "$ac_pt_PKGCONFIG"; then
27187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27188printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27189else
27190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27191printf "%s\n" "no" >&6; }
27192fi
27193
27194  if test "x$ac_pt_PKGCONFIG" = x; then
27195    PKGCONFIG="no"
27196  else
27197    case $cross_compiling:$ac_tool_warned in
27198yes:)
27199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27200printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27201ac_tool_warned=yes ;;
27202esac
27203    PKGCONFIG=$ac_pt_PKGCONFIG
27204  fi
27205else
27206  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27207fi
27208
27209    fi
27210
27211    if test "x$PKGCONFIG" != "xno"; then
27212      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27213printf %s "checking for gnutls options with pkg-config... " >&6; }
27214            itexists=`
27215    if test -n ""; then
27216      PKG_CONFIG_LIBDIR=""
27217      export PKG_CONFIG_LIBDIR
27218    fi
27219         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27220
27221      if test -z "$itexists"; then
27222                        PKGCONFIG="no"
27223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224printf "%s\n" "no" >&6; }
27225      else
27226        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27227printf "%s\n" "found" >&6; }
27228      fi
27229    fi
27230
27231
27232      if test "$PKGCONFIG" != "no" ; then
27233        addlib=`$PKGCONFIG --libs-only-l gnutls`
27234        addld=`$PKGCONFIG --libs-only-L gnutls`
27235        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27236        version=`$PKGCONFIG --modversion gnutls`
27237        gtlslib=`echo $addld | $SED -e 's/^-L//'`
27238      else
27239                        check=`libgnutls-config --version 2>/dev/null`
27240        if test -n "$check"; then
27241          addlib=`libgnutls-config --libs`
27242          addcflags=`libgnutls-config --cflags`
27243          version=`libgnutls-config --version`
27244          gtlslib=`libgnutls-config --prefix`/lib$libsuff
27245        fi
27246      fi
27247    else
27248                  cfg=$OPT_GNUTLS/bin/libgnutls-config
27249      check=`$cfg --version 2>/dev/null`
27250      if test -n "$check"; then
27251        addlib=`$cfg --libs`
27252        addcflags=`$cfg --cflags`
27253        version=`$cfg --version`
27254        gtlslib=`$cfg --prefix`/lib$libsuff
27255      else
27256                addlib=-lgnutls
27257        addld=-L$OPT_GNUTLS/lib$libsuff
27258        addcflags=-I$OPT_GNUTLS/include
27259        version="" # we just don't know
27260        gtlslib=$OPT_GNUTLS/lib$libsuff
27261      fi
27262    fi
27263
27264    if test -z "$version"; then
27265            version="unknown"
27266    fi
27267
27268    if test -n "$addlib"; then
27269
27270      CLEANLIBS="$LIBS"
27271      CLEANCPPFLAGS="$CPPFLAGS"
27272      CLEANLDFLAGS="$LDFLAGS"
27273
27274      LIBS="$addlib $LIBS"
27275      LDFLAGS="$LDFLAGS $addld"
27276      if test "$addcflags" != "-I/usr/include"; then
27277         CPPFLAGS="$CPPFLAGS $addcflags"
27278      fi
27279
27280            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27281printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27282if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27283then :
27284  printf %s "(cached) " >&6
27285else $as_nop
27286  ac_check_lib_save_LIBS=$LIBS
27287LIBS="-lgnutls  $LIBS"
27288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27289/* end confdefs.h.  */
27290
27291
27292#ifdef __cplusplus
27293extern "C"
27294#endif
27295char gnutls_x509_crt_get_dn2 ();
27296int main (void)
27297{
27298return gnutls_x509_crt_get_dn2 ();
27299 ;
27300 return 0;
27301}
27302_ACEOF
27303if ac_fn_c_try_link "$LINENO"
27304then :
27305  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27306else $as_nop
27307  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27308fi
27309rm -f core conftest.err conftest.$ac_objext conftest.beam \
27310    conftest$ac_exeext conftest.$ac_ext
27311LIBS=$ac_check_lib_save_LIBS
27312fi
27313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27314printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27315if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27316then :
27317
27318
27319printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27320
27321       USE_GNUTLS=1
27322
27323       GNUTLS_ENABLED=1
27324       USE_GNUTLS="yes"
27325       ssl_msg="GnuTLS"
27326       test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27327
27328else $as_nop
27329
27330         LIBS="$CLEANLIBS"
27331         CPPFLAGS="$CLEANCPPFLAGS"
27332
27333fi
27334
27335
27336      if test "x$USE_GNUTLS" = "xyes"; then
27337        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27338printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27339        check_for_ca_bundle=1
27340        if test -n "$gtlslib"; then
27341                                                  if test "x$cross_compiling" != "xyes"; then
27342            CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27343            export CURL_LIBRARY_PATH
27344            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27345printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27346          fi
27347        fi
27348      fi
27349
27350    fi
27351
27352  fi
27353  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27354fi
27355
27356
27357if test "$GNUTLS_ENABLED" = "1"; then
27358  USE_GNUTLS_NETTLE=
27359  # First check if we can detect either crypto library via transitive linking
27360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27361printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27362if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27363then :
27364  printf %s "(cached) " >&6
27365else $as_nop
27366  ac_check_lib_save_LIBS=$LIBS
27367LIBS="-lgnutls  $LIBS"
27368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27369/* end confdefs.h.  */
27370
27371
27372#ifdef __cplusplus
27373extern "C"
27374#endif
27375char nettle_MD5Init ();
27376int main (void)
27377{
27378return nettle_MD5Init ();
27379 ;
27380 return 0;
27381}
27382_ACEOF
27383if ac_fn_c_try_link "$LINENO"
27384then :
27385  ac_cv_lib_gnutls_nettle_MD5Init=yes
27386else $as_nop
27387  ac_cv_lib_gnutls_nettle_MD5Init=no
27388fi
27389rm -f core conftest.err conftest.$ac_objext conftest.beam \
27390    conftest$ac_exeext conftest.$ac_ext
27391LIBS=$ac_check_lib_save_LIBS
27392fi
27393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27394printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27395if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27396then :
27397   USE_GNUTLS_NETTLE=1
27398fi
27399
27400
27401  # If not, try linking directly to both of them to see if they are available
27402  if test "$USE_GNUTLS_NETTLE" = ""; then
27403    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27404printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27405if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27406then :
27407  printf %s "(cached) " >&6
27408else $as_nop
27409  ac_check_lib_save_LIBS=$LIBS
27410LIBS="-lnettle  $LIBS"
27411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27412/* end confdefs.h.  */
27413
27414
27415#ifdef __cplusplus
27416extern "C"
27417#endif
27418char nettle_MD5Init ();
27419int main (void)
27420{
27421return nettle_MD5Init ();
27422 ;
27423 return 0;
27424}
27425_ACEOF
27426if ac_fn_c_try_link "$LINENO"
27427then :
27428  ac_cv_lib_nettle_nettle_MD5Init=yes
27429else $as_nop
27430  ac_cv_lib_nettle_nettle_MD5Init=no
27431fi
27432rm -f core conftest.err conftest.$ac_objext conftest.beam \
27433    conftest$ac_exeext conftest.$ac_ext
27434LIBS=$ac_check_lib_save_LIBS
27435fi
27436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27437printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27438if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27439then :
27440   USE_GNUTLS_NETTLE=1
27441fi
27442
27443  fi
27444  if test "$USE_GNUTLS_NETTLE" = ""; then
27445    as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27446  fi
27447  LIBS="-lnettle $LIBS"
27448fi
27449
27450if test "$GNUTLS_ENABLED" = "1"; then
27451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27452printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27453if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27454then :
27455  printf %s "(cached) " >&6
27456else $as_nop
27457  ac_check_lib_save_LIBS=$LIBS
27458LIBS="-lgnutls  $LIBS"
27459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460/* end confdefs.h.  */
27461
27462
27463#ifdef __cplusplus
27464extern "C"
27465#endif
27466char gnutls_srp_verifier ();
27467int main (void)
27468{
27469return gnutls_srp_verifier ();
27470 ;
27471 return 0;
27472}
27473_ACEOF
27474if ac_fn_c_try_link "$LINENO"
27475then :
27476  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27477else $as_nop
27478  ac_cv_lib_gnutls_gnutls_srp_verifier=no
27479fi
27480rm -f core conftest.err conftest.$ac_objext conftest.beam \
27481    conftest$ac_exeext conftest.$ac_ext
27482LIBS=$ac_check_lib_save_LIBS
27483fi
27484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27485printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27486if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27487then :
27488
27489
27490printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27491
27492     HAVE_GNUTLS_SRP=1
27493
27494
27495fi
27496
27497fi
27498
27499
27500
27501
27502if test "x$OPT_MBEDTLS" != xno; then
27503  _cppflags=$CPPFLAGS
27504  _ldflags=$LDFLAGS
27505  ssl_msg=
27506
27507  if test X"$OPT_MBEDTLS" != Xno; then
27508
27509    if test "$OPT_MBEDTLS" = "yes"; then
27510      OPT_MBEDTLS=""
27511    fi
27512
27513    if test -z "$OPT_MBEDTLS" ; then
27514
27515      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27516printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27517if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27518then :
27519  printf %s "(cached) " >&6
27520else $as_nop
27521  ac_check_lib_save_LIBS=$LIBS
27522LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27524/* end confdefs.h.  */
27525
27526
27527#ifdef __cplusplus
27528extern "C"
27529#endif
27530char mbedtls_havege_init ();
27531int main (void)
27532{
27533return mbedtls_havege_init ();
27534 ;
27535 return 0;
27536}
27537_ACEOF
27538if ac_fn_c_try_link "$LINENO"
27539then :
27540  ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27541else $as_nop
27542  ac_cv_lib_mbedtls_mbedtls_havege_init=no
27543fi
27544rm -f core conftest.err conftest.$ac_objext conftest.beam \
27545    conftest$ac_exeext conftest.$ac_ext
27546LIBS=$ac_check_lib_save_LIBS
27547fi
27548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27549printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27550if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27551then :
27552
27553
27554printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27555
27556         USE_MBEDTLS=1
27557
27558         MBEDTLS_ENABLED=1
27559         USE_MBEDTLS="yes"
27560         ssl_msg="mbedTLS"
27561         test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27562
27563fi
27564
27565    fi
27566
27567    addld=""
27568    addlib=""
27569    addcflags=""
27570    mbedtlslib=""
27571
27572    if test "x$USE_MBEDTLS" != "xyes"; then
27573            addld=-L$OPT_MBEDTLS/lib$libsuff
27574      addcflags=-I$OPT_MBEDTLS/include
27575      mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27576
27577      LDFLAGS="$LDFLAGS $addld"
27578      if test "$addcflags" != "-I/usr/include"; then
27579         CPPFLAGS="$CPPFLAGS $addcflags"
27580      fi
27581
27582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27583printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27584if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27585then :
27586  printf %s "(cached) " >&6
27587else $as_nop
27588  ac_check_lib_save_LIBS=$LIBS
27589LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27591/* end confdefs.h.  */
27592
27593
27594#ifdef __cplusplus
27595extern "C"
27596#endif
27597char mbedtls_ssl_init ();
27598int main (void)
27599{
27600return mbedtls_ssl_init ();
27601 ;
27602 return 0;
27603}
27604_ACEOF
27605if ac_fn_c_try_link "$LINENO"
27606then :
27607  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27608else $as_nop
27609  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27610fi
27611rm -f core conftest.err conftest.$ac_objext conftest.beam \
27612    conftest$ac_exeext conftest.$ac_ext
27613LIBS=$ac_check_lib_save_LIBS
27614fi
27615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27616printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27617if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27618then :
27619
27620
27621printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27622
27623       USE_MBEDTLS=1
27624
27625       MBEDTLS_ENABLED=1
27626       USE_MBEDTLS="yes"
27627       ssl_msg="mbedTLS"
27628       test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27629
27630else $as_nop
27631
27632         CPPFLAGS=$_cppflags
27633         LDFLAGS=$_ldflags
27634
27635fi
27636
27637    fi
27638
27639    if test "x$USE_MBEDTLS" = "xyes"; then
27640      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27641printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27642      check_for_ca_bundle=1
27643
27644      LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27645
27646      if test -n "$mbedtlslib"; then
27647                                        if test "x$cross_compiling" != "xyes"; then
27648          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27649          export CURL_LIBRARY_PATH
27650          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27651printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27652        fi
27653      fi
27654    fi
27655
27656  fi
27657  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27658fi
27659
27660
27661
27662
27663case "$OPT_WOLFSSL" in
27664  yes|no)
27665    wolfpkg=""
27666    ;;
27667  *)
27668    wolfpkg="$withval/lib/pkgconfig"
27669    ;;
27670esac
27671
27672if test "x$OPT_WOLFSSL" != xno; then
27673  _cppflags=$CPPFLAGS
27674  _ldflags=$LDFLAGS
27675
27676  ssl_msg=
27677
27678  if test X"$OPT_WOLFSSL" != Xno; then
27679
27680    if test "$OPT_WOLFSSL" = "yes"; then
27681      OPT_WOLFSSL=""
27682    fi
27683
27684
27685    if test -n "$PKG_CONFIG"; then
27686      PKGCONFIG="$PKG_CONFIG"
27687    else
27688      if test -n "$ac_tool_prefix"; then
27689  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27690set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27692printf %s "checking for $ac_word... " >&6; }
27693if test ${ac_cv_path_PKGCONFIG+y}
27694then :
27695  printf %s "(cached) " >&6
27696else $as_nop
27697  case $PKGCONFIG in
27698  [\\/]* | ?:[\\/]*)
27699  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27700  ;;
27701  *)
27702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27703as_dummy="$PATH:/usr/bin:/usr/local/bin"
27704for as_dir in $as_dummy
27705do
27706  IFS=$as_save_IFS
27707  case $as_dir in #(((
27708    '') as_dir=./ ;;
27709    */) ;;
27710    *) as_dir=$as_dir/ ;;
27711  esac
27712    for ac_exec_ext in '' $ac_executable_extensions; do
27713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27714    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27716    break 2
27717  fi
27718done
27719  done
27720IFS=$as_save_IFS
27721
27722  ;;
27723esac
27724fi
27725PKGCONFIG=$ac_cv_path_PKGCONFIG
27726if test -n "$PKGCONFIG"; then
27727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27728printf "%s\n" "$PKGCONFIG" >&6; }
27729else
27730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27731printf "%s\n" "no" >&6; }
27732fi
27733
27734
27735fi
27736if test -z "$ac_cv_path_PKGCONFIG"; then
27737  ac_pt_PKGCONFIG=$PKGCONFIG
27738  # Extract the first word of "pkg-config", so it can be a program name with args.
27739set dummy pkg-config; ac_word=$2
27740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27741printf %s "checking for $ac_word... " >&6; }
27742if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27743then :
27744  printf %s "(cached) " >&6
27745else $as_nop
27746  case $ac_pt_PKGCONFIG in
27747  [\\/]* | ?:[\\/]*)
27748  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27749  ;;
27750  *)
27751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27752as_dummy="$PATH:/usr/bin:/usr/local/bin"
27753for as_dir in $as_dummy
27754do
27755  IFS=$as_save_IFS
27756  case $as_dir in #(((
27757    '') as_dir=./ ;;
27758    */) ;;
27759    *) as_dir=$as_dir/ ;;
27760  esac
27761    for ac_exec_ext in '' $ac_executable_extensions; do
27762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27763    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27765    break 2
27766  fi
27767done
27768  done
27769IFS=$as_save_IFS
27770
27771  ;;
27772esac
27773fi
27774ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27775if test -n "$ac_pt_PKGCONFIG"; then
27776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27777printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27778else
27779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780printf "%s\n" "no" >&6; }
27781fi
27782
27783  if test "x$ac_pt_PKGCONFIG" = x; then
27784    PKGCONFIG="no"
27785  else
27786    case $cross_compiling:$ac_tool_warned in
27787yes:)
27788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27789printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27790ac_tool_warned=yes ;;
27791esac
27792    PKGCONFIG=$ac_pt_PKGCONFIG
27793  fi
27794else
27795  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27796fi
27797
27798    fi
27799
27800    if test "x$PKGCONFIG" != "xno"; then
27801      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27802printf %s "checking for wolfssl options with pkg-config... " >&6; }
27803            itexists=`
27804    if test -n "$wolfpkg"; then
27805      PKG_CONFIG_LIBDIR="$wolfpkg"
27806      export PKG_CONFIG_LIBDIR
27807    fi
27808         $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27809
27810      if test -z "$itexists"; then
27811                        PKGCONFIG="no"
27812        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27813printf "%s\n" "no" >&6; }
27814      else
27815        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27816printf "%s\n" "found" >&6; }
27817      fi
27818    fi
27819
27820    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27821printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27822
27823    addld=""
27824    addlib=""
27825    addcflags=""
27826    if test "$PKGCONFIG" != "no" ; then
27827      addlib=`
27828    if test -n "$wolfpkg"; then
27829      PKG_CONFIG_LIBDIR="$wolfpkg"
27830      export PKG_CONFIG_LIBDIR
27831    fi
27832
27833        $PKGCONFIG --libs-only-l wolfssl`
27834      addld=`
27835    if test -n "$wolfpkg"; then
27836      PKG_CONFIG_LIBDIR="$wolfpkg"
27837      export PKG_CONFIG_LIBDIR
27838    fi
27839
27840        $PKGCONFIG --libs-only-L wolfssl`
27841      addcflags=`
27842    if test -n "$wolfpkg"; then
27843      PKG_CONFIG_LIBDIR="$wolfpkg"
27844      export PKG_CONFIG_LIBDIR
27845    fi
27846
27847        $PKGCONFIG --cflags-only-I wolfssl`
27848      version=`
27849    if test -n "$wolfpkg"; then
27850      PKG_CONFIG_LIBDIR="$wolfpkg"
27851      export PKG_CONFIG_LIBDIR
27852    fi
27853
27854        $PKGCONFIG --modversion wolfssl`
27855      wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27856    else
27857      addlib=-lwolfssl
27858            if test -n "$OPT_WOLFSSL"; then
27859        addld=-L$OPT_WOLFSSL/lib$libsuff
27860        addcflags=-I$OPT_WOLFSSL/include
27861        wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27862      fi
27863    fi
27864
27865    if test "x$USE_WOLFSSL" != "xyes"; then
27866
27867      LDFLAGS="$LDFLAGS $addld"
27868      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27869printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27870      if test "$addcflags" != "-I/usr/include"; then
27871         CPPFLAGS="$CPPFLAGS $addcflags"
27872         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27873printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27874      fi
27875
27876      my_ac_save_LIBS="$LIBS"
27877      LIBS="$addlib $LIBS"
27878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27879printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27880
27881      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27882printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27883      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27884/* end confdefs.h.  */
27885
27886
27887/* These aren't needed for detection and confuse WolfSSL.
27888   They are set up properly later if it is detected.  */
27889#undef SIZEOF_LONG
27890#undef SIZEOF_LONG_LONG
27891#include <wolfssl/options.h>
27892#include <wolfssl/ssl.h>
27893
27894int main (void)
27895{
27896
27897          return wolfSSL_Init();
27898
27899 ;
27900 return 0;
27901}
27902
27903_ACEOF
27904if ac_fn_c_try_link "$LINENO"
27905then :
27906
27907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27908printf "%s\n" "yes" >&6; }
27909
27910printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27911
27912         USE_WOLFSSL=1
27913
27914         WOLFSSL_ENABLED=1
27915         USE_WOLFSSL="yes"
27916         ssl_msg="WolfSSL"
27917         test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27918
27919else $as_nop
27920
27921         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27922printf "%s\n" "no" >&6; }
27923         CPPFLAGS=$_cppflags
27924         LDFLAGS=$_ldflags
27925         wolfssllibpath=""
27926
27927fi
27928rm -f core conftest.err conftest.$ac_objext conftest.beam \
27929    conftest$ac_exeext conftest.$ac_ext
27930      LIBS="$my_ac_save_LIBS"
27931    fi
27932
27933    if test "x$USE_WOLFSSL" = "xyes"; then
27934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27935printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27936      check_for_ca_bundle=1
27937
27938
27939
27940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27941printf %s "checking size of long long... " >&6; }
27942  r=0
27943    for typesize in 8 4 2 16 1; do
27944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27945/* end confdefs.h.  */
27946
27947#include <sys/types.h>
27948
27949
27950int main (void)
27951{
27952switch(0) {
27953       case 0:
27954       case (sizeof(long long) == $typesize):;
27955     }
27956
27957 ;
27958 return 0;
27959}
27960_ACEOF
27961if ac_fn_c_try_compile "$LINENO"
27962then :
27963
27964       r=$typesize
27965else $as_nop
27966
27967       r=0
27968fi
27969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27970        if test $r -gt 0; then
27971      break;
27972    fi
27973  done
27974  if test $r -eq 0; then
27975    as_fn_error $? "Failed to find size of long long" "$LINENO" 5
27976  fi
27977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
27978printf "%s\n" "$r" >&6; }
27979    tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
27980  eval "$tname=$r"
27981
27982
27983printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
27984
27985
27986
27987
27988      LIBS="$addlib -lm $LIBS"
27989
27990                        ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27991if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27992then :
27993  printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27994
27995fi
27996ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27997if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27998then :
27999  printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
28000
28001fi
28002
28003
28004                  ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
28005if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
28006then :
28007
28008
28009printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
28010
28011            WOLFSSL_NTLM=1
28012
28013
28014fi
28015
28016
28017            ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
28018if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
28019then :
28020
28021
28022printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
28023
28024            WOLFSSL_FULL_BIO=1
28025
28026
28027fi
28028
28029
28030      if test -n "$wolfssllibpath"; then
28031                                        if test "x$cross_compiling" != "xyes"; then
28032          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
28033          export CURL_LIBRARY_PATH
28034          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
28035printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
28036        fi
28037      fi
28038    else
28039        as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
28040    fi
28041
28042  fi
28043  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28044fi
28045
28046
28047
28048
28049if test "x$OPT_BEARSSL" != xno; then
28050  _cppflags=$CPPFLAGS
28051  _ldflags=$LDFLAGS
28052  ssl_msg=
28053
28054  if test X"$OPT_BEARSSL" != Xno; then
28055
28056    if test "$OPT_BEARSSL" = "yes"; then
28057      OPT_BEARSSL=""
28058    fi
28059
28060    if test -z "$OPT_BEARSSL" ; then
28061
28062      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28063printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28064if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28065then :
28066  printf %s "(cached) " >&6
28067else $as_nop
28068  ac_check_lib_save_LIBS=$LIBS
28069LIBS="-lbearssl -lbearssl $LIBS"
28070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28071/* end confdefs.h.  */
28072
28073
28074#ifdef __cplusplus
28075extern "C"
28076#endif
28077char br_ssl_client_init_full ();
28078int main (void)
28079{
28080return br_ssl_client_init_full ();
28081 ;
28082 return 0;
28083}
28084_ACEOF
28085if ac_fn_c_try_link "$LINENO"
28086then :
28087  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28088else $as_nop
28089  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28090fi
28091rm -f core conftest.err conftest.$ac_objext conftest.beam \
28092    conftest$ac_exeext conftest.$ac_ext
28093LIBS=$ac_check_lib_save_LIBS
28094fi
28095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28096printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28097if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28098then :
28099
28100
28101printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28102
28103         USE_BEARSSL=1
28104
28105         BEARSSL_ENABLED=1
28106         USE_BEARSSL="yes"
28107         ssl_msg="BearSSL"
28108         test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28109
28110fi
28111
28112    fi
28113
28114    addld=""
28115    addlib=""
28116    addcflags=""
28117    bearssllib=""
28118
28119    if test "x$USE_BEARSSL" != "xyes"; then
28120            addld=-L$OPT_BEARSSL/lib$libsuff
28121      addcflags=-I$OPT_BEARSSL/include
28122      bearssllib=$OPT_BEARSSL/lib$libsuff
28123
28124      LDFLAGS="$LDFLAGS $addld"
28125      if test "$addcflags" != "-I/usr/include"; then
28126         CPPFLAGS="$CPPFLAGS $addcflags"
28127      fi
28128
28129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28130printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28131if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28132then :
28133  printf %s "(cached) " >&6
28134else $as_nop
28135  ac_check_lib_save_LIBS=$LIBS
28136LIBS="-lbearssl -lbearssl $LIBS"
28137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28138/* end confdefs.h.  */
28139
28140
28141#ifdef __cplusplus
28142extern "C"
28143#endif
28144char br_ssl_client_init_full ();
28145int main (void)
28146{
28147return br_ssl_client_init_full ();
28148 ;
28149 return 0;
28150}
28151_ACEOF
28152if ac_fn_c_try_link "$LINENO"
28153then :
28154  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28155else $as_nop
28156  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28157fi
28158rm -f core conftest.err conftest.$ac_objext conftest.beam \
28159    conftest$ac_exeext conftest.$ac_ext
28160LIBS=$ac_check_lib_save_LIBS
28161fi
28162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28163printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28164if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28165then :
28166
28167
28168printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28169
28170       USE_BEARSSL=1
28171
28172       BEARSSL_ENABLED=1
28173       USE_BEARSSL="yes"
28174       ssl_msg="BearSSL"
28175       test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28176
28177else $as_nop
28178
28179         CPPFLAGS=$_cppflags
28180         LDFLAGS=$_ldflags
28181
28182fi
28183
28184    fi
28185
28186    if test "x$USE_BEARSSL" = "xyes"; then
28187      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28188printf "%s\n" "$as_me: detected BearSSL" >&6;}
28189      check_for_ca_bundle=1
28190
28191      LIBS="-lbearssl $LIBS"
28192
28193      if test -n "$bearssllib"; then
28194                                        if test "x$cross_compiling" != "xyes"; then
28195          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28196          export CURL_LIBRARY_PATH
28197          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28198printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28199        fi
28200      fi
28201    fi
28202
28203  fi
28204  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28205fi
28206
28207
28208
28209if test "x$OPT_RUSTLS" != xno; then
28210  _cppflags=$CPPFLAGS
28211  _ldflags=$LDFLAGS
28212  ssl_msg=
28213
28214  if test X"$OPT_RUSTLS" != Xno; then
28215
28216    if test "$OPT_RUSTLS" = "yes"; then
28217      OPT_RUSTLS=""
28218    fi
28219
28220    case $host_os in
28221      darwin*)
28222        LDFLAGS="$LDFLAGS -framework Security"
28223        ;;
28224      *)
28225        ;;
28226    esac
28227
28228    if test -z "$OPT_RUSTLS" ; then
28229
28230      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
28231printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
28232if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
28233then :
28234  printf %s "(cached) " >&6
28235else $as_nop
28236  ac_check_lib_save_LIBS=$LIBS
28237LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239/* end confdefs.h.  */
28240
28241
28242#ifdef __cplusplus
28243extern "C"
28244#endif
28245char rustls_client_session_read ();
28246int main (void)
28247{
28248return rustls_client_session_read ();
28249 ;
28250 return 0;
28251}
28252_ACEOF
28253if ac_fn_c_try_link "$LINENO"
28254then :
28255  ac_cv_lib_rustls_rustls_client_session_read=yes
28256else $as_nop
28257  ac_cv_lib_rustls_rustls_client_session_read=no
28258fi
28259rm -f core conftest.err conftest.$ac_objext conftest.beam \
28260    conftest$ac_exeext conftest.$ac_ext
28261LIBS=$ac_check_lib_save_LIBS
28262fi
28263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
28264printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
28265if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
28266then :
28267
28268
28269printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28270
28271         USE_RUSTLS=1
28272
28273         RUSTLS_ENABLED=1
28274         USE_RUSTLS="yes"
28275         ssl_msg="rustls"
28276         test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28277
28278fi
28279
28280    fi
28281
28282    if test "x$USE_RUSTLS" != "xyes"; then
28283            addld=-L$OPT_RUSTLS/lib$libsuff
28284      addcflags=-I$OPT_RUSTLS/include
28285      rustlslib=$OPT_RUSTLS/lib$libsuff
28286
28287      LDFLAGS="$LDFLAGS $addld"
28288      if test "$addcflags" != "-I/usr/include"; then
28289         CPPFLAGS="$CPPFLAGS $addcflags"
28290      fi
28291
28292      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28293printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28294if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28295then :
28296  printf %s "(cached) " >&6
28297else $as_nop
28298  ac_check_lib_save_LIBS=$LIBS
28299LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28301/* end confdefs.h.  */
28302
28303
28304#ifdef __cplusplus
28305extern "C"
28306#endif
28307char rustls_connection_read ();
28308int main (void)
28309{
28310return rustls_connection_read ();
28311 ;
28312 return 0;
28313}
28314_ACEOF
28315if ac_fn_c_try_link "$LINENO"
28316then :
28317  ac_cv_lib_rustls_rustls_connection_read=yes
28318else $as_nop
28319  ac_cv_lib_rustls_rustls_connection_read=no
28320fi
28321rm -f core conftest.err conftest.$ac_objext conftest.beam \
28322    conftest$ac_exeext conftest.$ac_ext
28323LIBS=$ac_check_lib_save_LIBS
28324fi
28325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28326printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28327if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28328then :
28329
28330
28331printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28332
28333       USE_RUSTLS=1
28334
28335       RUSTLS_ENABLED=1
28336       USE_RUSTLS="yes"
28337       ssl_msg="rustls"
28338       test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28339
28340else $as_nop
28341  as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28342fi
28343
28344    fi
28345
28346    if test "x$USE_RUSTLS" = "xyes"; then
28347      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28348printf "%s\n" "$as_me: detected rustls" >&6;}
28349      check_for_ca_bundle=1
28350
28351      LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28352
28353      if test -n "$rustlslib"; then
28354                                        if test "x$cross_compiling" != "xyes"; then
28355          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28356          export CURL_LIBRARY_PATH
28357          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28358printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28359        fi
28360      fi
28361    fi
28362
28363  fi
28364  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28365fi
28366
28367
28368if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28369  LIBS="-ladvapi32 -lcrypt32 $LIBS"
28370fi
28371
28372if test "x$curl_cv_native_windows" = "xyes"; then
28373  LIBS="-lbcrypt $LIBS"
28374fi
28375
28376case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28377in
28378x)
28379  as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28380Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28381  ;;
28382x1)
28383  # one SSL backend is enabled
28384
28385  SSL_ENABLED="1"
28386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28387printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28388  ;;
28389xD)
28390  # explicitly built without TLS
28391  ;;
28392xD*)
28393  as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28394(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28395Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28396  ;;
28397*)
28398  # more than one SSL backend is enabled
28399
28400  SSL_ENABLED="1"
28401
28402  CURL_WITH_MULTI_SSL="1"
28403
28404printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28405
28406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28407printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28408  ;;
28409esac
28410
28411if test -n "$ssl_backends"; then
28412  curl_ssl_msg="enabled ($ssl_backends)"
28413fi
28414
28415if test no = "$VALID_DEFAULT_SSL_BACKEND"
28416then
28417  if test -n "$SSL_ENABLED"
28418  then
28419    as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28420  else
28421    as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28422  fi
28423elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28424then
28425
28426printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28427
28428fi
28429
28430
28431if test -n "$check_for_ca_bundle"; then
28432
28433
28434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28435printf %s "checking default CA cert bundle/path... " >&6; }
28436
28437
28438# Check whether --with-ca-bundle was given.
28439if test ${with_ca_bundle+y}
28440then :
28441  withval=$with_ca_bundle;
28442    want_ca="$withval"
28443    if test "x$want_ca" = "xyes"; then
28444      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28445    fi
28446
28447else $as_nop
28448   want_ca="unset"
28449fi
28450
28451
28452# Check whether --with-ca-path was given.
28453if test ${with_ca_path+y}
28454then :
28455  withval=$with_ca_path;
28456    want_capath="$withval"
28457    if test "x$want_capath" = "xyes"; then
28458      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28459    fi
28460
28461else $as_nop
28462   want_capath="unset"
28463fi
28464
28465
28466  ca_warning="   (warning: certs not found)"
28467  capath_warning="   (warning: certs not found)"
28468  check_capath=""
28469
28470  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28471          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28472        ca="$want_ca"
28473    capath="$want_capath"
28474  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28475        ca="$want_ca"
28476    capath="no"
28477  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28478        if test "x$OPENSSL_ENABLED" != "x1" -a \
28479            "x$GNUTLS_ENABLED" != "x1" -a \
28480            "x$MBEDTLS_ENABLED" != "x1" -a \
28481            "x$WOLFSSL_ENABLED" != "x1"; then
28482      as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS, mbedTLS or wolfSSL" "$LINENO" 5
28483    fi
28484    capath="$want_capath"
28485    ca="no"
28486  else
28487            ca="no"
28488    capath="no"
28489    if test "x$cross_compiling" != "xyes"; then
28490                  if test "x$want_ca" = "xunset"; then
28491                                if test "x$prefix" != xNONE; then
28492          cac="${prefix}/share/curl/curl-ca-bundle.crt"
28493        else
28494          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28495        fi
28496
28497        for a in /etc/ssl/certs/ca-certificates.crt \
28498                 /etc/pki/tls/certs/ca-bundle.crt \
28499                 /usr/share/ssl/certs/ca-bundle.crt \
28500                 /usr/local/share/certs/ca-root-nss.crt \
28501                 /etc/ssl/cert.pem \
28502                 "$cac"; do
28503          if test -f "$a"; then
28504            ca="$a"
28505            break
28506          fi
28507        done
28508      fi
28509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5
28510printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;}
28511      if test "x$want_capath" = "xunset"; then
28512        if test "x$OPENSSL_ENABLED" = "x1" -o \
28513                "x$GNUTLS_ENABLED" = "x1" -o \
28514                "x$MBEDTLS_ENABLED" = "x1" -o \
28515                "x$WOLFSSL_ENABLED" = "x1"; then
28516          check_capath="/etc/ssl/certs"
28517        fi
28518      fi
28519    else
28520            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28521printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28522    fi
28523  fi
28524
28525  if test "x$ca" = "xno" || test -f "$ca"; then
28526    ca_warning=""
28527  fi
28528
28529  if test "x$capath" != "xno"; then
28530    check_capath="$capath"
28531  fi
28532
28533  if test ! -z "$check_capath"; then
28534    for a in "$check_capath"; do
28535      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
28536        if test "x$capath" = "xno"; then
28537          capath="$a"
28538        fi
28539        capath_warning=""
28540        break
28541      fi
28542    done
28543  fi
28544
28545  if test "x$capath" = "xno"; then
28546    capath_warning=""
28547  fi
28548
28549  if test "x$ca" != "xno"; then
28550    CURL_CA_BUNDLE='"'$ca'"'
28551
28552printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28553
28554
28555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28556printf "%s\n" "$ca" >&6; }
28557  fi
28558  if test "x$capath" != "xno"; then
28559    CURL_CA_PATH="\"$capath\""
28560
28561printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28562
28563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28564printf "%s\n" "$capath (capath)" >&6; }
28565  fi
28566  if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28567    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28568printf "%s\n" "no" >&6; }
28569  fi
28570
28571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28572printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28573
28574# Check whether --with-ca-fallback was given.
28575if test ${with_ca_fallback+y}
28576then :
28577  withval=$with_ca_fallback;
28578    if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28579      as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28580    fi
28581
28582else $as_nop
28583   with_ca_fallback="no"
28584fi
28585
28586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28587printf "%s\n" "$with_ca_fallback" >&6; }
28588  if test "x$with_ca_fallback" = "xyes"; then
28589    if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28590      as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28591    fi
28592
28593printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28594
28595  fi
28596
28597fi
28598
28599
28600
28601# Check whether --with-libpsl was given.
28602if test ${with_libpsl+y}
28603then :
28604  withval=$with_libpsl; with_libpsl=$withval
28605else $as_nop
28606  with_libpsl=yes
28607fi
28608
28609if test $with_libpsl != "no"; then
28610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28611printf %s "checking for library containing psl_builtin... " >&6; }
28612if test ${ac_cv_search_psl_builtin+y}
28613then :
28614  printf %s "(cached) " >&6
28615else $as_nop
28616  ac_func_search_save_LIBS=$LIBS
28617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28618/* end confdefs.h.  */
28619
28620
28621#ifdef __cplusplus
28622extern "C"
28623#endif
28624char psl_builtin ();
28625int main (void)
28626{
28627return psl_builtin ();
28628 ;
28629 return 0;
28630}
28631_ACEOF
28632for ac_lib in '' psl
28633do
28634  if test -z "$ac_lib"; then
28635    ac_res="none required"
28636  else
28637    ac_res=-l$ac_lib
28638    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28639  fi
28640  if ac_fn_c_try_link "$LINENO"
28641then :
28642  ac_cv_search_psl_builtin=$ac_res
28643fi
28644rm -f core conftest.err conftest.$ac_objext conftest.beam \
28645    conftest$ac_exeext
28646  if test ${ac_cv_search_psl_builtin+y}
28647then :
28648  break
28649fi
28650done
28651if test ${ac_cv_search_psl_builtin+y}
28652then :
28653
28654else $as_nop
28655  ac_cv_search_psl_builtin=no
28656fi
28657rm conftest.$ac_ext
28658LIBS=$ac_func_search_save_LIBS
28659fi
28660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28661printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28662ac_res=$ac_cv_search_psl_builtin
28663if test "$ac_res" != no
28664then :
28665  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28666  curl_psl_msg="enabled";
28667
28668printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28669
28670
28671else $as_nop
28672  curl_psl_msg="no      (libpsl not found)";
28673     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28674printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28675
28676
28677fi
28678
28679fi
28680 if test "$curl_psl_msg" = "enabled"; then
28681  USE_LIBPSL_TRUE=
28682  USE_LIBPSL_FALSE='#'
28683else
28684  USE_LIBPSL_TRUE='#'
28685  USE_LIBPSL_FALSE=
28686fi
28687
28688
28689
28690
28691
28692# Check whether --with-libgsasl was given.
28693if test ${with_libgsasl+y}
28694then :
28695  withval=$with_libgsasl; with_libgsasl=$withval
28696else $as_nop
28697  with_libgsasl=yes
28698fi
28699
28700if test $with_libgsasl != "no"; then
28701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28702printf %s "checking for library containing gsasl_init... " >&6; }
28703if test ${ac_cv_search_gsasl_init+y}
28704then :
28705  printf %s "(cached) " >&6
28706else $as_nop
28707  ac_func_search_save_LIBS=$LIBS
28708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709/* end confdefs.h.  */
28710
28711
28712#ifdef __cplusplus
28713extern "C"
28714#endif
28715char gsasl_init ();
28716int main (void)
28717{
28718return gsasl_init ();
28719 ;
28720 return 0;
28721}
28722_ACEOF
28723for ac_lib in '' gsasl
28724do
28725  if test -z "$ac_lib"; then
28726    ac_res="none required"
28727  else
28728    ac_res=-l$ac_lib
28729    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28730  fi
28731  if ac_fn_c_try_link "$LINENO"
28732then :
28733  ac_cv_search_gsasl_init=$ac_res
28734fi
28735rm -f core conftest.err conftest.$ac_objext conftest.beam \
28736    conftest$ac_exeext
28737  if test ${ac_cv_search_gsasl_init+y}
28738then :
28739  break
28740fi
28741done
28742if test ${ac_cv_search_gsasl_init+y}
28743then :
28744
28745else $as_nop
28746  ac_cv_search_gsasl_init=no
28747fi
28748rm conftest.$ac_ext
28749LIBS=$ac_func_search_save_LIBS
28750fi
28751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28752printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28753ac_res=$ac_cv_search_gsasl_init
28754if test "$ac_res" != no
28755then :
28756  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28757  curl_gsasl_msg="enabled";
28758
28759printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28760
28761
28762else $as_nop
28763  curl_gsasl_msg="no      (libgsasl not found)";
28764     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28765printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28766
28767
28768fi
28769
28770fi
28771 if test "$curl_gsasl_msg" = "enabled"; then
28772  USE_GSASL_TRUE=
28773  USE_GSASL_FALSE='#'
28774else
28775  USE_GSASL_TRUE='#'
28776  USE_GSASL_FALSE=
28777fi
28778
28779
28780
28781# Check whether --with-libmetalink was given.
28782if test ${with_libmetalink+y}
28783then :
28784  withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5
28785fi
28786
28787
28788
28789OPT_LIBSSH2=off
28790
28791# Check whether --with-libssh2 was given.
28792if test ${with_libssh2+y}
28793then :
28794  withval=$with_libssh2; OPT_LIBSSH2=$withval
28795else $as_nop
28796  OPT_LIBSSH2=no
28797fi
28798
28799
28800
28801OPT_LIBSSH=off
28802
28803# Check whether --with-libssh was given.
28804if test ${with_libssh+y}
28805then :
28806  withval=$with_libssh; OPT_LIBSSH=$withval
28807else $as_nop
28808  OPT_LIBSSH=no
28809fi
28810
28811
28812OPT_WOLFSSH=off
28813
28814# Check whether --with-wolfssh was given.
28815if test ${with_wolfssh+y}
28816then :
28817  withval=$with_wolfssh; OPT_WOLFSSH=$withval
28818else $as_nop
28819  OPT_WOLFSSH=no
28820fi
28821
28822
28823if test X"$OPT_LIBSSH2" != Xno; then
28824    CLEANLDFLAGS="$LDFLAGS"
28825  CLEANCPPFLAGS="$CPPFLAGS"
28826  CLEANLIBS="$LIBS"
28827
28828  case "$OPT_LIBSSH2" in
28829  yes)
28830
28831    if test -n "$PKG_CONFIG"; then
28832      PKGCONFIG="$PKG_CONFIG"
28833    else
28834      if test -n "$ac_tool_prefix"; then
28835  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28836set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28838printf %s "checking for $ac_word... " >&6; }
28839if test ${ac_cv_path_PKGCONFIG+y}
28840then :
28841  printf %s "(cached) " >&6
28842else $as_nop
28843  case $PKGCONFIG in
28844  [\\/]* | ?:[\\/]*)
28845  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28846  ;;
28847  *)
28848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28849as_dummy="$PATH:/usr/bin:/usr/local/bin"
28850for as_dir in $as_dummy
28851do
28852  IFS=$as_save_IFS
28853  case $as_dir in #(((
28854    '') as_dir=./ ;;
28855    */) ;;
28856    *) as_dir=$as_dir/ ;;
28857  esac
28858    for ac_exec_ext in '' $ac_executable_extensions; do
28859  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28860    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28861    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28862    break 2
28863  fi
28864done
28865  done
28866IFS=$as_save_IFS
28867
28868  ;;
28869esac
28870fi
28871PKGCONFIG=$ac_cv_path_PKGCONFIG
28872if test -n "$PKGCONFIG"; then
28873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28874printf "%s\n" "$PKGCONFIG" >&6; }
28875else
28876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28877printf "%s\n" "no" >&6; }
28878fi
28879
28880
28881fi
28882if test -z "$ac_cv_path_PKGCONFIG"; then
28883  ac_pt_PKGCONFIG=$PKGCONFIG
28884  # Extract the first word of "pkg-config", so it can be a program name with args.
28885set dummy pkg-config; ac_word=$2
28886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28887printf %s "checking for $ac_word... " >&6; }
28888if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28889then :
28890  printf %s "(cached) " >&6
28891else $as_nop
28892  case $ac_pt_PKGCONFIG in
28893  [\\/]* | ?:[\\/]*)
28894  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28895  ;;
28896  *)
28897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28898as_dummy="$PATH:/usr/bin:/usr/local/bin"
28899for as_dir in $as_dummy
28900do
28901  IFS=$as_save_IFS
28902  case $as_dir in #(((
28903    '') as_dir=./ ;;
28904    */) ;;
28905    *) as_dir=$as_dir/ ;;
28906  esac
28907    for ac_exec_ext in '' $ac_executable_extensions; do
28908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28909    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28911    break 2
28912  fi
28913done
28914  done
28915IFS=$as_save_IFS
28916
28917  ;;
28918esac
28919fi
28920ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28921if test -n "$ac_pt_PKGCONFIG"; then
28922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28923printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28924else
28925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28926printf "%s\n" "no" >&6; }
28927fi
28928
28929  if test "x$ac_pt_PKGCONFIG" = x; then
28930    PKGCONFIG="no"
28931  else
28932    case $cross_compiling:$ac_tool_warned in
28933yes:)
28934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28936ac_tool_warned=yes ;;
28937esac
28938    PKGCONFIG=$ac_pt_PKGCONFIG
28939  fi
28940else
28941  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28942fi
28943
28944    fi
28945
28946    if test "x$PKGCONFIG" != "xno"; then
28947      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
28948printf %s "checking for libssh2 options with pkg-config... " >&6; }
28949            itexists=`
28950    if test -n ""; then
28951      PKG_CONFIG_LIBDIR=""
28952      export PKG_CONFIG_LIBDIR
28953    fi
28954         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
28955
28956      if test -z "$itexists"; then
28957                        PKGCONFIG="no"
28958        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28959printf "%s\n" "no" >&6; }
28960      else
28961        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28962printf "%s\n" "found" >&6; }
28963      fi
28964    fi
28965
28966
28967    if test "$PKGCONFIG" != "no" ; then
28968      LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
28969      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
28970      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
28971      version=`$PKGCONFIG --modversion libssh2`
28972      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
28973    fi
28974
28975    ;;
28976  off)
28977        ;;
28978  *)
28979        PREFIX_SSH2=$OPT_LIBSSH2
28980    ;;
28981  esac
28982
28983    if test -n "$PREFIX_SSH2"; then
28984    LIB_SSH2="-lssh2"
28985    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
28986    CPP_SSH2=-I${PREFIX_SSH2}/include
28987    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
28988  fi
28989
28990  LDFLAGS="$LDFLAGS $LD_SSH2"
28991  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
28992  LIBS="$LIB_SSH2 $LIBS"
28993
28994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
28995printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
28996if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
28997then :
28998  printf %s "(cached) " >&6
28999else $as_nop
29000  ac_check_lib_save_LIBS=$LIBS
29001LIBS="-lssh2  $LIBS"
29002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29003/* end confdefs.h.  */
29004
29005
29006#ifdef __cplusplus
29007extern "C"
29008#endif
29009char libssh2_session_block_directions ();
29010int main (void)
29011{
29012return libssh2_session_block_directions ();
29013 ;
29014 return 0;
29015}
29016_ACEOF
29017if ac_fn_c_try_link "$LINENO"
29018then :
29019  ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29020else $as_nop
29021  ac_cv_lib_ssh2_libssh2_session_block_directions=no
29022fi
29023rm -f core conftest.err conftest.$ac_objext conftest.beam \
29024    conftest$ac_exeext conftest.$ac_ext
29025LIBS=$ac_check_lib_save_LIBS
29026fi
29027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29028printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29029if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29030then :
29031  printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29032
29033  LIBS="-lssh2 $LIBS"
29034
29035fi
29036
29037
29038  ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29039if test "x$ac_cv_header_libssh2_h" = xyes
29040then :
29041  curl_ssh_msg="enabled (libSSH2)"
29042    LIBSSH2_ENABLED=1
29043
29044printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29045
29046    USE_LIBSSH2=1
29047
29048
29049fi
29050
29051
29052  if test X"$OPT_LIBSSH2" != Xoff &&
29053     test "$LIBSSH2_ENABLED" != "1"; then
29054    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29055  fi
29056
29057  if test "$LIBSSH2_ENABLED" = "1"; then
29058    if test -n "$DIR_SSH2"; then
29059
29060       if test "x$cross_compiling" != "xyes"; then
29061         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29062         export CURL_LIBRARY_PATH
29063         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29064printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29065       fi
29066    fi
29067  else
29068        LDFLAGS=$CLEANLDFLAGS
29069    CPPFLAGS=$CLEANCPPFLAGS
29070    LIBS=$CLEANLIBS
29071  fi
29072elif test X"$OPT_LIBSSH" != Xno; then
29073    CLEANLDFLAGS="$LDFLAGS"
29074  CLEANCPPFLAGS="$CPPFLAGS"
29075  CLEANLIBS="$LIBS"
29076
29077  case "$OPT_LIBSSH" in
29078  yes)
29079
29080    if test -n "$PKG_CONFIG"; then
29081      PKGCONFIG="$PKG_CONFIG"
29082    else
29083      if test -n "$ac_tool_prefix"; then
29084  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29085set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29087printf %s "checking for $ac_word... " >&6; }
29088if test ${ac_cv_path_PKGCONFIG+y}
29089then :
29090  printf %s "(cached) " >&6
29091else $as_nop
29092  case $PKGCONFIG in
29093  [\\/]* | ?:[\\/]*)
29094  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29095  ;;
29096  *)
29097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29098as_dummy="$PATH:/usr/bin:/usr/local/bin"
29099for as_dir in $as_dummy
29100do
29101  IFS=$as_save_IFS
29102  case $as_dir in #(((
29103    '') as_dir=./ ;;
29104    */) ;;
29105    *) as_dir=$as_dir/ ;;
29106  esac
29107    for ac_exec_ext in '' $ac_executable_extensions; do
29108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29109    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29111    break 2
29112  fi
29113done
29114  done
29115IFS=$as_save_IFS
29116
29117  ;;
29118esac
29119fi
29120PKGCONFIG=$ac_cv_path_PKGCONFIG
29121if test -n "$PKGCONFIG"; then
29122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29123printf "%s\n" "$PKGCONFIG" >&6; }
29124else
29125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29126printf "%s\n" "no" >&6; }
29127fi
29128
29129
29130fi
29131if test -z "$ac_cv_path_PKGCONFIG"; then
29132  ac_pt_PKGCONFIG=$PKGCONFIG
29133  # Extract the first word of "pkg-config", so it can be a program name with args.
29134set dummy pkg-config; ac_word=$2
29135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29136printf %s "checking for $ac_word... " >&6; }
29137if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29138then :
29139  printf %s "(cached) " >&6
29140else $as_nop
29141  case $ac_pt_PKGCONFIG in
29142  [\\/]* | ?:[\\/]*)
29143  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29144  ;;
29145  *)
29146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29147as_dummy="$PATH:/usr/bin:/usr/local/bin"
29148for as_dir in $as_dummy
29149do
29150  IFS=$as_save_IFS
29151  case $as_dir in #(((
29152    '') as_dir=./ ;;
29153    */) ;;
29154    *) as_dir=$as_dir/ ;;
29155  esac
29156    for ac_exec_ext in '' $ac_executable_extensions; do
29157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29158    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29160    break 2
29161  fi
29162done
29163  done
29164IFS=$as_save_IFS
29165
29166  ;;
29167esac
29168fi
29169ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29170if test -n "$ac_pt_PKGCONFIG"; then
29171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29172printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29173else
29174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29175printf "%s\n" "no" >&6; }
29176fi
29177
29178  if test "x$ac_pt_PKGCONFIG" = x; then
29179    PKGCONFIG="no"
29180  else
29181    case $cross_compiling:$ac_tool_warned in
29182yes:)
29183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29185ac_tool_warned=yes ;;
29186esac
29187    PKGCONFIG=$ac_pt_PKGCONFIG
29188  fi
29189else
29190  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29191fi
29192
29193    fi
29194
29195    if test "x$PKGCONFIG" != "xno"; then
29196      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29197printf %s "checking for libssh options with pkg-config... " >&6; }
29198            itexists=`
29199    if test -n ""; then
29200      PKG_CONFIG_LIBDIR=""
29201      export PKG_CONFIG_LIBDIR
29202    fi
29203         $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29204
29205      if test -z "$itexists"; then
29206                        PKGCONFIG="no"
29207        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29208printf "%s\n" "no" >&6; }
29209      else
29210        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29211printf "%s\n" "found" >&6; }
29212      fi
29213    fi
29214
29215
29216    if test "$PKGCONFIG" != "no" ; then
29217      LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29218      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29219      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29220      version=`$PKGCONFIG --modversion libssh`
29221      DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29222    fi
29223
29224    ;;
29225  off)
29226        ;;
29227  *)
29228        PREFIX_SSH=$OPT_LIBSSH
29229    ;;
29230  esac
29231
29232    if test -n "$PREFIX_SSH"; then
29233    LIB_SSH="-lssh"
29234    LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29235    CPP_SSH=-I${PREFIX_SSH}/include
29236    DIR_SSH=${PREFIX_SSH}/lib$libsuff
29237  fi
29238
29239  LDFLAGS="$LDFLAGS $LD_SSH"
29240  CPPFLAGS="$CPPFLAGS $CPP_SSH"
29241  LIBS="$LIB_SSH $LIBS"
29242
29243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29244printf %s "checking for ssh_new in -lssh... " >&6; }
29245if test ${ac_cv_lib_ssh_ssh_new+y}
29246then :
29247  printf %s "(cached) " >&6
29248else $as_nop
29249  ac_check_lib_save_LIBS=$LIBS
29250LIBS="-lssh  $LIBS"
29251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29252/* end confdefs.h.  */
29253
29254
29255#ifdef __cplusplus
29256extern "C"
29257#endif
29258char ssh_new ();
29259int main (void)
29260{
29261return ssh_new ();
29262 ;
29263 return 0;
29264}
29265_ACEOF
29266if ac_fn_c_try_link "$LINENO"
29267then :
29268  ac_cv_lib_ssh_ssh_new=yes
29269else $as_nop
29270  ac_cv_lib_ssh_ssh_new=no
29271fi
29272rm -f core conftest.err conftest.$ac_objext conftest.beam \
29273    conftest$ac_exeext conftest.$ac_ext
29274LIBS=$ac_check_lib_save_LIBS
29275fi
29276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29277printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29278if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29279then :
29280  printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29281
29282  LIBS="-lssh $LIBS"
29283
29284fi
29285
29286
29287  ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29288if test "x$ac_cv_header_libssh_libssh_h" = xyes
29289then :
29290  curl_ssh_msg="enabled (libSSH)"
29291    LIBSSH_ENABLED=1
29292
29293printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29294
29295    USE_LIBSSH=1
29296
29297
29298fi
29299
29300
29301  if test X"$OPT_LIBSSH" != Xoff &&
29302     test "$LIBSSH_ENABLED" != "1"; then
29303    as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29304  fi
29305
29306  if test "$LIBSSH_ENABLED" = "1"; then
29307    if test -n "$DIR_SSH"; then
29308
29309       if test "x$cross_compiling" != "xyes"; then
29310         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29311         export CURL_LIBRARY_PATH
29312         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29313printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29314       fi
29315    fi
29316  else
29317        LDFLAGS=$CLEANLDFLAGS
29318    CPPFLAGS=$CLEANCPPFLAGS
29319    LIBS=$CLEANLIBS
29320  fi
29321elif test X"$OPT_WOLFSSH" != Xno; then
29322    CLEANLDFLAGS="$LDFLAGS"
29323  CLEANCPPFLAGS="$CPPFLAGS"
29324  CLEANLIBS="$LIBS"
29325
29326
29327  if test "$OPT_WOLFSSH" != yes; then
29328     WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29329     LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29330     CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29331  fi
29332
29333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29334printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29335if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29336then :
29337  printf %s "(cached) " >&6
29338else $as_nop
29339  ac_check_lib_save_LIBS=$LIBS
29340LIBS="-lwolfssh  $LIBS"
29341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29342/* end confdefs.h.  */
29343
29344
29345#ifdef __cplusplus
29346extern "C"
29347#endif
29348char wolfSSH_Init ();
29349int main (void)
29350{
29351return wolfSSH_Init ();
29352 ;
29353 return 0;
29354}
29355_ACEOF
29356if ac_fn_c_try_link "$LINENO"
29357then :
29358  ac_cv_lib_wolfssh_wolfSSH_Init=yes
29359else $as_nop
29360  ac_cv_lib_wolfssh_wolfSSH_Init=no
29361fi
29362rm -f core conftest.err conftest.$ac_objext conftest.beam \
29363    conftest$ac_exeext conftest.$ac_ext
29364LIBS=$ac_check_lib_save_LIBS
29365fi
29366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29367printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29368if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29369then :
29370  printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29371
29372  LIBS="-lwolfssh $LIBS"
29373
29374fi
29375
29376
29377         for ac_header in wolfssh/ssh.h
29378do :
29379  ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29380if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29381then :
29382  printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29383 curl_ssh_msg="enabled (wolfSSH)"
29384    WOLFSSH_ENABLED=1
29385
29386printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29387
29388    USE_WOLFSSH=1
29389
29390
29391fi
29392
29393done
29394
29395fi
29396
29397
29398OPT_LIBRTMP=off
29399
29400# Check whether --with-librtmp was given.
29401if test ${with_librtmp+y}
29402then :
29403  withval=$with_librtmp; OPT_LIBRTMP=$withval
29404fi
29405
29406
29407if test X"$OPT_LIBRTMP" != Xno; then
29408    CLEANLDFLAGS="$LDFLAGS"
29409  CLEANCPPFLAGS="$CPPFLAGS"
29410  CLEANLIBS="$LIBS"
29411
29412  case "$OPT_LIBRTMP" in
29413  yes)
29414
29415    if test -n "$PKG_CONFIG"; then
29416      PKGCONFIG="$PKG_CONFIG"
29417    else
29418      if test -n "$ac_tool_prefix"; then
29419  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29420set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29422printf %s "checking for $ac_word... " >&6; }
29423if test ${ac_cv_path_PKGCONFIG+y}
29424then :
29425  printf %s "(cached) " >&6
29426else $as_nop
29427  case $PKGCONFIG in
29428  [\\/]* | ?:[\\/]*)
29429  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29430  ;;
29431  *)
29432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29433as_dummy="$PATH:/usr/bin:/usr/local/bin"
29434for as_dir in $as_dummy
29435do
29436  IFS=$as_save_IFS
29437  case $as_dir in #(((
29438    '') as_dir=./ ;;
29439    */) ;;
29440    *) as_dir=$as_dir/ ;;
29441  esac
29442    for ac_exec_ext in '' $ac_executable_extensions; do
29443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29444    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29446    break 2
29447  fi
29448done
29449  done
29450IFS=$as_save_IFS
29451
29452  ;;
29453esac
29454fi
29455PKGCONFIG=$ac_cv_path_PKGCONFIG
29456if test -n "$PKGCONFIG"; then
29457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29458printf "%s\n" "$PKGCONFIG" >&6; }
29459else
29460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29461printf "%s\n" "no" >&6; }
29462fi
29463
29464
29465fi
29466if test -z "$ac_cv_path_PKGCONFIG"; then
29467  ac_pt_PKGCONFIG=$PKGCONFIG
29468  # Extract the first word of "pkg-config", so it can be a program name with args.
29469set dummy pkg-config; ac_word=$2
29470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29471printf %s "checking for $ac_word... " >&6; }
29472if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29473then :
29474  printf %s "(cached) " >&6
29475else $as_nop
29476  case $ac_pt_PKGCONFIG in
29477  [\\/]* | ?:[\\/]*)
29478  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29479  ;;
29480  *)
29481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482as_dummy="$PATH:/usr/bin:/usr/local/bin"
29483for as_dir in $as_dummy
29484do
29485  IFS=$as_save_IFS
29486  case $as_dir in #(((
29487    '') as_dir=./ ;;
29488    */) ;;
29489    *) as_dir=$as_dir/ ;;
29490  esac
29491    for ac_exec_ext in '' $ac_executable_extensions; do
29492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29493    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29495    break 2
29496  fi
29497done
29498  done
29499IFS=$as_save_IFS
29500
29501  ;;
29502esac
29503fi
29504ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29505if test -n "$ac_pt_PKGCONFIG"; then
29506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29507printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29508else
29509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510printf "%s\n" "no" >&6; }
29511fi
29512
29513  if test "x$ac_pt_PKGCONFIG" = x; then
29514    PKGCONFIG="no"
29515  else
29516    case $cross_compiling:$ac_tool_warned in
29517yes:)
29518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29519printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29520ac_tool_warned=yes ;;
29521esac
29522    PKGCONFIG=$ac_pt_PKGCONFIG
29523  fi
29524else
29525  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29526fi
29527
29528    fi
29529
29530    if test "x$PKGCONFIG" != "xno"; then
29531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29532printf %s "checking for librtmp options with pkg-config... " >&6; }
29533            itexists=`
29534    if test -n ""; then
29535      PKG_CONFIG_LIBDIR=""
29536      export PKG_CONFIG_LIBDIR
29537    fi
29538         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29539
29540      if test -z "$itexists"; then
29541                        PKGCONFIG="no"
29542        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29543printf "%s\n" "no" >&6; }
29544      else
29545        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29546printf "%s\n" "found" >&6; }
29547      fi
29548    fi
29549
29550
29551    if test "$PKGCONFIG" != "no" ; then
29552      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29553      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29554      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29555      version=`$PKGCONFIG --modversion librtmp`
29556      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29557    else
29558                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29559    fi
29560
29561    ;;
29562  off)
29563        LIB_RTMP="-lrtmp"
29564    ;;
29565  *)
29566        LIB_RTMP="-lrtmp"
29567    PREFIX_RTMP=$OPT_LIBRTMP
29568    ;;
29569  esac
29570
29571    if test -n "$PREFIX_RTMP"; then
29572    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29573    CPP_RTMP=-I${PREFIX_RTMP}/include
29574    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29575  fi
29576
29577  LDFLAGS="$LDFLAGS $LD_RTMP"
29578  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29579  LIBS="$LIB_RTMP $LIBS"
29580
29581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29582printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29583if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29584then :
29585  printf %s "(cached) " >&6
29586else $as_nop
29587  ac_check_lib_save_LIBS=$LIBS
29588LIBS="-lrtmp  $LIBS"
29589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29590/* end confdefs.h.  */
29591
29592
29593#ifdef __cplusplus
29594extern "C"
29595#endif
29596char RTMP_Init ();
29597int main (void)
29598{
29599return RTMP_Init ();
29600 ;
29601 return 0;
29602}
29603_ACEOF
29604if ac_fn_c_try_link "$LINENO"
29605then :
29606  ac_cv_lib_rtmp_RTMP_Init=yes
29607else $as_nop
29608  ac_cv_lib_rtmp_RTMP_Init=no
29609fi
29610rm -f core conftest.err conftest.$ac_objext conftest.beam \
29611    conftest$ac_exeext conftest.$ac_ext
29612LIBS=$ac_check_lib_save_LIBS
29613fi
29614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29615printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29616if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29617then :
29618
29619            for ac_header in librtmp/rtmp.h
29620do :
29621  ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29622if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29623then :
29624  printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29625 curl_rtmp_msg="enabled (librtmp)"
29626        LIBRTMP_ENABLED=1
29627
29628printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29629
29630        USE_LIBRTMP=1
29631
29632
29633fi
29634
29635done
29636
29637else $as_nop
29638        LDFLAGS=$CLEANLDFLAGS
29639      CPPFLAGS=$CLEANCPPFLAGS
29640      LIBS=$CLEANLIBS
29641
29642fi
29643
29644
29645  if test X"$OPT_LIBRTMP" != Xoff &&
29646     test "$LIBRTMP_ENABLED" != "1"; then
29647    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29648  fi
29649
29650fi
29651
29652
29653versioned_symbols_flavour=
29654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29655printf %s "checking whether versioned symbols are wanted... " >&6; }
29656# Check whether --enable-versioned-symbols was given.
29657if test ${enable_versioned_symbols+y}
29658then :
29659  enableval=$enable_versioned_symbols;  case "$enableval" in
29660  yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29661printf "%s\n" "yes" >&6; }
29662    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29663printf %s "checking if libraries can be versioned... " >&6; }
29664    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29665    if test -z "$GLD"; then
29666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667printf "%s\n" "no" >&6; }
29668        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29669printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29670    else
29671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29672printf "%s\n" "yes" >&6; }
29673        if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29674          versioned_symbols_flavour="MULTISSL_"
29675        elif test "x$OPENSSL_ENABLED" = "x1"; then
29676          versioned_symbols_flavour="OPENSSL_"
29677        elif test "x$GNUTLS_ENABLED" = "x1"; then
29678          versioned_symbols_flavour="GNUTLS_"
29679        elif test "x$WOLFSSL_ENABLED" = "x1"; then
29680          versioned_symbols_flavour="WOLFSSL_"
29681        elif test "x$SCHANNEL_ENABLED" = "x1"; then
29682          versioned_symbols_flavour="SCHANNEL_"
29683        elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29684          versioned_symbols_flavour="SECURE_TRANSPORT_"
29685        else
29686          versioned_symbols_flavour=""
29687        fi
29688        versioned_symbols="yes"
29689    fi
29690    ;;
29691
29692  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693printf "%s\n" "no" >&6; }
29694    ;;
29695  esac
29696
29697else $as_nop
29698
29699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700printf "%s\n" "no" >&6; }
29701
29702
29703fi
29704
29705
29706CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29707
29708 if test "x$versioned_symbols" = 'xyes'; then
29709  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29710  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29711else
29712  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29713  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29714fi
29715
29716
29717CURL_PLIST_VERSION="$CURLVERSION"
29718
29719
29720
29721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29722printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29723OPT_WINIDN="default"
29724
29725# Check whether --with-winidn was given.
29726if test ${with_winidn+y}
29727then :
29728  withval=$with_winidn; OPT_WINIDN=$withval
29729fi
29730
29731case "$OPT_WINIDN" in
29732  no|default)
29733        want_winidn="no"
29734    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29735printf "%s\n" "no" >&6; }
29736    ;;
29737  yes)
29738        want_winidn="yes"
29739    want_winidn_path="default"
29740    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29741printf "%s\n" "yes" >&6; }
29742    ;;
29743  *)
29744        want_winidn="yes"
29745    want_winidn_path="$withval"
29746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29747printf "%s\n" "yes ($withval)" >&6; }
29748    ;;
29749esac
29750
29751if test "$want_winidn" = "yes"; then
29752    clean_CFLAGS="$CFLAGS"
29753  clean_CPPFLAGS="$CPPFLAGS"
29754  clean_LDFLAGS="$LDFLAGS"
29755  clean_LIBS="$LIBS"
29756  WINIDN_LIBS="-lnormaliz"
29757  WINIDN_CPPFLAGS=""
29758  #
29759  if test "$want_winidn_path" != "default"; then
29760            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29761    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29762    WINIDN_DIR="$want_winidn_path/lib$libsuff"
29763  fi
29764  #
29765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766/* end confdefs.h.  */
29767
29768
29769      #include <windows.h>
29770
29771int main (void)
29772{
29773
29774      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29775      #error
29776      #endif
29777
29778 ;
29779 return 0;
29780}
29781
29782_ACEOF
29783if ac_fn_c_try_compile "$LINENO"
29784then :
29785
29786
29787else $as_nop
29788
29789     CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29790     CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29791     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29792     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29793     WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29794
29795fi
29796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29797  #
29798  CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29799  LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29800  LIBS="$WINIDN_LIBS $LIBS"
29801  #
29802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29803printf %s "checking if IdnToUnicode can be linked... " >&6; }
29804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29805/* end confdefs.h.  */
29806
29807
29808      #include <windows.h>
29809
29810int main (void)
29811{
29812
29813      IdnToUnicode(0, NULL, 0, NULL, 0);
29814
29815 ;
29816 return 0;
29817}
29818
29819_ACEOF
29820if ac_fn_c_try_link "$LINENO"
29821then :
29822
29823    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29824printf "%s\n" "yes" >&6; }
29825    tst_links_winidn="yes"
29826
29827else $as_nop
29828
29829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29830printf "%s\n" "no" >&6; }
29831    tst_links_winidn="no"
29832
29833fi
29834rm -f core conftest.err conftest.$ac_objext conftest.beam \
29835    conftest$ac_exeext conftest.$ac_ext
29836  #
29837  if test "$tst_links_winidn" = "yes"; then
29838
29839printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29840
29841    IDN_ENABLED=1
29842
29843    curl_idn_msg="enabled (Windows-native)"
29844  else
29845    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29846printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29847    CFLAGS="$clean_CFLAGS"
29848    CPPFLAGS="$clean_CPPFLAGS"
29849    LDFLAGS="$clean_LDFLAGS"
29850    LIBS="$clean_LIBS"
29851  fi
29852fi
29853
29854
29855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29856printf %s "checking whether to build with libidn2... " >&6; }
29857OPT_IDN="default"
29858
29859# Check whether --with-libidn2 was given.
29860if test ${with_libidn2+y}
29861then :
29862  withval=$with_libidn2; OPT_IDN=$withval
29863fi
29864
29865if test "x$tst_links_winidn" = "xyes"; then
29866  want_idn="no"
29867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
29868printf "%s\n" "no (using winidn instead)" >&6; }
29869else
29870  case "$OPT_IDN" in
29871    no)
29872            want_idn="no"
29873      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874printf "%s\n" "no" >&6; }
29875      ;;
29876    default)
29877            want_idn="yes"
29878      want_idn_path="default"
29879      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29880printf "%s\n" "(assumed) yes" >&6; }
29881      ;;
29882    yes)
29883            want_idn="yes"
29884      want_idn_path="default"
29885      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29886printf "%s\n" "yes" >&6; }
29887      ;;
29888    *)
29889            want_idn="yes"
29890      want_idn_path="$withval"
29891      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29892printf "%s\n" "yes ($withval)" >&6; }
29893      ;;
29894  esac
29895fi
29896
29897if test "$want_idn" = "yes"; then
29898    clean_CPPFLAGS="$CPPFLAGS"
29899  clean_LDFLAGS="$LDFLAGS"
29900  clean_LIBS="$LIBS"
29901  PKGCONFIG="no"
29902  #
29903  if test "$want_idn_path" != "default"; then
29904        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29905
29906    if test -n "$PKG_CONFIG"; then
29907      PKGCONFIG="$PKG_CONFIG"
29908    else
29909      if test -n "$ac_tool_prefix"; then
29910  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29911set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29913printf %s "checking for $ac_word... " >&6; }
29914if test ${ac_cv_path_PKGCONFIG+y}
29915then :
29916  printf %s "(cached) " >&6
29917else $as_nop
29918  case $PKGCONFIG in
29919  [\\/]* | ?:[\\/]*)
29920  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29921  ;;
29922  *)
29923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924as_dummy="$PATH:/usr/bin:/usr/local/bin"
29925for as_dir in $as_dummy
29926do
29927  IFS=$as_save_IFS
29928  case $as_dir in #(((
29929    '') as_dir=./ ;;
29930    */) ;;
29931    *) as_dir=$as_dir/ ;;
29932  esac
29933    for ac_exec_ext in '' $ac_executable_extensions; do
29934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29935    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29937    break 2
29938  fi
29939done
29940  done
29941IFS=$as_save_IFS
29942
29943  ;;
29944esac
29945fi
29946PKGCONFIG=$ac_cv_path_PKGCONFIG
29947if test -n "$PKGCONFIG"; then
29948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29949printf "%s\n" "$PKGCONFIG" >&6; }
29950else
29951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29952printf "%s\n" "no" >&6; }
29953fi
29954
29955
29956fi
29957if test -z "$ac_cv_path_PKGCONFIG"; then
29958  ac_pt_PKGCONFIG=$PKGCONFIG
29959  # Extract the first word of "pkg-config", so it can be a program name with args.
29960set dummy pkg-config; ac_word=$2
29961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29962printf %s "checking for $ac_word... " >&6; }
29963if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29964then :
29965  printf %s "(cached) " >&6
29966else $as_nop
29967  case $ac_pt_PKGCONFIG in
29968  [\\/]* | ?:[\\/]*)
29969  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29970  ;;
29971  *)
29972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29973as_dummy="$PATH:/usr/bin:/usr/local/bin"
29974for as_dir in $as_dummy
29975do
29976  IFS=$as_save_IFS
29977  case $as_dir in #(((
29978    '') as_dir=./ ;;
29979    */) ;;
29980    *) as_dir=$as_dir/ ;;
29981  esac
29982    for ac_exec_ext in '' $ac_executable_extensions; do
29983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29984    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29986    break 2
29987  fi
29988done
29989  done
29990IFS=$as_save_IFS
29991
29992  ;;
29993esac
29994fi
29995ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29996if test -n "$ac_pt_PKGCONFIG"; then
29997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29998printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29999else
30000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30001printf "%s\n" "no" >&6; }
30002fi
30003
30004  if test "x$ac_pt_PKGCONFIG" = x; then
30005    PKGCONFIG="no"
30006  else
30007    case $cross_compiling:$ac_tool_warned in
30008yes:)
30009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30010printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30011ac_tool_warned=yes ;;
30012esac
30013    PKGCONFIG=$ac_pt_PKGCONFIG
30014  fi
30015else
30016  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30017fi
30018
30019    fi
30020
30021    if test "x$PKGCONFIG" != "xno"; then
30022      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30023printf %s "checking for libidn2 options with pkg-config... " >&6; }
30024            itexists=`
30025    if test -n "$IDN_PCDIR"; then
30026      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30027      export PKG_CONFIG_LIBDIR
30028    fi
30029         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30030
30031      if test -z "$itexists"; then
30032                        PKGCONFIG="no"
30033        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034printf "%s\n" "no" >&6; }
30035      else
30036        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30037printf "%s\n" "found" >&6; }
30038      fi
30039    fi
30040
30041    if test "$PKGCONFIG" != "no"; then
30042      IDN_LIBS=`
30043    if test -n "$IDN_PCDIR"; then
30044      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30045      export PKG_CONFIG_LIBDIR
30046    fi
30047         $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30048      IDN_LDFLAGS=`
30049    if test -n "$IDN_PCDIR"; then
30050      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30051      export PKG_CONFIG_LIBDIR
30052    fi
30053         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30054      IDN_CPPFLAGS=`
30055    if test -n "$IDN_PCDIR"; then
30056      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30057      export PKG_CONFIG_LIBDIR
30058    fi
30059         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30060      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30061    else
30062            IDN_LIBS="-lidn2"
30063      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30064      IDN_CPPFLAGS="-I$want_idn_path/include"
30065      IDN_DIR="$want_idn_path/lib$libsuff"
30066    fi
30067  else
30068
30069    if test -n "$PKG_CONFIG"; then
30070      PKGCONFIG="$PKG_CONFIG"
30071    else
30072      if test -n "$ac_tool_prefix"; then
30073  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30074set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30076printf %s "checking for $ac_word... " >&6; }
30077if test ${ac_cv_path_PKGCONFIG+y}
30078then :
30079  printf %s "(cached) " >&6
30080else $as_nop
30081  case $PKGCONFIG in
30082  [\\/]* | ?:[\\/]*)
30083  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30084  ;;
30085  *)
30086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30087as_dummy="$PATH:/usr/bin:/usr/local/bin"
30088for as_dir in $as_dummy
30089do
30090  IFS=$as_save_IFS
30091  case $as_dir in #(((
30092    '') as_dir=./ ;;
30093    */) ;;
30094    *) as_dir=$as_dir/ ;;
30095  esac
30096    for ac_exec_ext in '' $ac_executable_extensions; do
30097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30098    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30100    break 2
30101  fi
30102done
30103  done
30104IFS=$as_save_IFS
30105
30106  ;;
30107esac
30108fi
30109PKGCONFIG=$ac_cv_path_PKGCONFIG
30110if test -n "$PKGCONFIG"; then
30111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30112printf "%s\n" "$PKGCONFIG" >&6; }
30113else
30114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115printf "%s\n" "no" >&6; }
30116fi
30117
30118
30119fi
30120if test -z "$ac_cv_path_PKGCONFIG"; then
30121  ac_pt_PKGCONFIG=$PKGCONFIG
30122  # Extract the first word of "pkg-config", so it can be a program name with args.
30123set dummy pkg-config; ac_word=$2
30124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30125printf %s "checking for $ac_word... " >&6; }
30126if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30127then :
30128  printf %s "(cached) " >&6
30129else $as_nop
30130  case $ac_pt_PKGCONFIG in
30131  [\\/]* | ?:[\\/]*)
30132  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30133  ;;
30134  *)
30135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30136as_dummy="$PATH:/usr/bin:/usr/local/bin"
30137for as_dir in $as_dummy
30138do
30139  IFS=$as_save_IFS
30140  case $as_dir in #(((
30141    '') as_dir=./ ;;
30142    */) ;;
30143    *) as_dir=$as_dir/ ;;
30144  esac
30145    for ac_exec_ext in '' $ac_executable_extensions; do
30146  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30147    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30148    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30149    break 2
30150  fi
30151done
30152  done
30153IFS=$as_save_IFS
30154
30155  ;;
30156esac
30157fi
30158ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30159if test -n "$ac_pt_PKGCONFIG"; then
30160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30161printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30162else
30163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30164printf "%s\n" "no" >&6; }
30165fi
30166
30167  if test "x$ac_pt_PKGCONFIG" = x; then
30168    PKGCONFIG="no"
30169  else
30170    case $cross_compiling:$ac_tool_warned in
30171yes:)
30172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30174ac_tool_warned=yes ;;
30175esac
30176    PKGCONFIG=$ac_pt_PKGCONFIG
30177  fi
30178else
30179  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30180fi
30181
30182    fi
30183
30184    if test "x$PKGCONFIG" != "xno"; then
30185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30186printf %s "checking for libidn2 options with pkg-config... " >&6; }
30187            itexists=`
30188    if test -n ""; then
30189      PKG_CONFIG_LIBDIR=""
30190      export PKG_CONFIG_LIBDIR
30191    fi
30192         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30193
30194      if test -z "$itexists"; then
30195                        PKGCONFIG="no"
30196        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197printf "%s\n" "no" >&6; }
30198      else
30199        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30200printf "%s\n" "found" >&6; }
30201      fi
30202    fi
30203
30204    if test "$PKGCONFIG" != "no"; then
30205      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30206      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30207      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30208      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30209    else
30210            IDN_LIBS="-lidn2"
30211    fi
30212  fi
30213  #
30214  if test "$PKGCONFIG" != "no"; then
30215    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30216printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30217    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30218printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30220printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30222printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30223  else
30224    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30225printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30227printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30229printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30230    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30231printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30232  fi
30233  #
30234  CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30235  LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30236  LIBS="$IDN_LIBS $LIBS"
30237  #
30238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30239printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30241/* end confdefs.h.  */
30242
30243
30244#define idn2_lookup_ul innocuous_idn2_lookup_ul
30245#ifdef __STDC__
30246# include <limits.h>
30247#else
30248# include <assert.h>
30249#endif
30250#undef idn2_lookup_ul
30251#ifdef __cplusplus
30252extern "C"
30253#endif
30254char idn2_lookup_ul ();
30255#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30256choke me
30257#endif
30258
30259int main (void)
30260{
30261return idn2_lookup_ul ();
30262 ;
30263 return 0;
30264}
30265
30266_ACEOF
30267if ac_fn_c_try_link "$LINENO"
30268then :
30269
30270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30271printf "%s\n" "yes" >&6; }
30272    tst_links_libidn="yes"
30273
30274else $as_nop
30275
30276    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277printf "%s\n" "no" >&6; }
30278    tst_links_libidn="no"
30279
30280fi
30281rm -f core conftest.err conftest.$ac_objext conftest.beam \
30282    conftest$ac_exeext conftest.$ac_ext
30283  #
30284  ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30285if test "x$ac_cv_header_idn2_h" = xyes
30286then :
30287  printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30288
30289fi
30290
30291
30292  if test "$tst_links_libidn" = "yes"; then
30293
30294printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30295
30296
30297    IDN_ENABLED=1
30298
30299    curl_idn_msg="enabled (libidn2)"
30300    if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30301      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30302      export CURL_LIBRARY_PATH
30303      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30304printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30305    fi
30306  else
30307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30308printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30309    CPPFLAGS="$clean_CPPFLAGS"
30310    LDFLAGS="$clean_LDFLAGS"
30311    LIBS="$clean_LIBS"
30312  fi
30313fi
30314
30315
30316OPT_H2="yes"
30317
30318if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30319  # without HTTP or with Hyper, nghttp2 is no use
30320  OPT_H2="no"
30321fi
30322
30323
30324# Check whether --with-nghttp2 was given.
30325if test ${with_nghttp2+y}
30326then :
30327  withval=$with_nghttp2; OPT_H2=$withval
30328fi
30329
30330case "$OPT_H2" in
30331  no)
30332        want_nghttp2="no"
30333    ;;
30334  yes)
30335        want_nghttp2="default"
30336    want_nghttp2_path=""
30337    want_nghttp2_pkg_config_path=""
30338    ;;
30339  *)
30340        want_nghttp2="yes"
30341    want_nghttp2_path="$withval"
30342    want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30343    ;;
30344esac
30345
30346if test X"$want_nghttp2" != Xno; then
30347    CLEANLDFLAGS="$LDFLAGS"
30348  CLEANCPPFLAGS="$CPPFLAGS"
30349  CLEANLIBS="$LIBS"
30350
30351
30352    if test -n "$PKG_CONFIG"; then
30353      PKGCONFIG="$PKG_CONFIG"
30354    else
30355      if test -n "$ac_tool_prefix"; then
30356  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30357set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30359printf %s "checking for $ac_word... " >&6; }
30360if test ${ac_cv_path_PKGCONFIG+y}
30361then :
30362  printf %s "(cached) " >&6
30363else $as_nop
30364  case $PKGCONFIG in
30365  [\\/]* | ?:[\\/]*)
30366  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30367  ;;
30368  *)
30369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30370as_dummy="$PATH:/usr/bin:/usr/local/bin"
30371for as_dir in $as_dummy
30372do
30373  IFS=$as_save_IFS
30374  case $as_dir in #(((
30375    '') as_dir=./ ;;
30376    */) ;;
30377    *) as_dir=$as_dir/ ;;
30378  esac
30379    for ac_exec_ext in '' $ac_executable_extensions; do
30380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30381    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30382    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30383    break 2
30384  fi
30385done
30386  done
30387IFS=$as_save_IFS
30388
30389  ;;
30390esac
30391fi
30392PKGCONFIG=$ac_cv_path_PKGCONFIG
30393if test -n "$PKGCONFIG"; then
30394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30395printf "%s\n" "$PKGCONFIG" >&6; }
30396else
30397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30398printf "%s\n" "no" >&6; }
30399fi
30400
30401
30402fi
30403if test -z "$ac_cv_path_PKGCONFIG"; then
30404  ac_pt_PKGCONFIG=$PKGCONFIG
30405  # Extract the first word of "pkg-config", so it can be a program name with args.
30406set dummy pkg-config; ac_word=$2
30407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30408printf %s "checking for $ac_word... " >&6; }
30409if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30410then :
30411  printf %s "(cached) " >&6
30412else $as_nop
30413  case $ac_pt_PKGCONFIG in
30414  [\\/]* | ?:[\\/]*)
30415  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30416  ;;
30417  *)
30418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30419as_dummy="$PATH:/usr/bin:/usr/local/bin"
30420for as_dir in $as_dummy
30421do
30422  IFS=$as_save_IFS
30423  case $as_dir in #(((
30424    '') as_dir=./ ;;
30425    */) ;;
30426    *) as_dir=$as_dir/ ;;
30427  esac
30428    for ac_exec_ext in '' $ac_executable_extensions; do
30429  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30430    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30432    break 2
30433  fi
30434done
30435  done
30436IFS=$as_save_IFS
30437
30438  ;;
30439esac
30440fi
30441ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30442if test -n "$ac_pt_PKGCONFIG"; then
30443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30444printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30445else
30446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30447printf "%s\n" "no" >&6; }
30448fi
30449
30450  if test "x$ac_pt_PKGCONFIG" = x; then
30451    PKGCONFIG="no"
30452  else
30453    case $cross_compiling:$ac_tool_warned in
30454yes:)
30455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30456printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30457ac_tool_warned=yes ;;
30458esac
30459    PKGCONFIG=$ac_pt_PKGCONFIG
30460  fi
30461else
30462  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30463fi
30464
30465    fi
30466
30467    if test "x$PKGCONFIG" != "xno"; then
30468      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30469printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30470            itexists=`
30471    if test -n "$want_nghttp2_pkg_config_path"; then
30472      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30473      export PKG_CONFIG_LIBDIR
30474    fi
30475         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30476
30477      if test -z "$itexists"; then
30478                        PKGCONFIG="no"
30479        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30480printf "%s\n" "no" >&6; }
30481      else
30482        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30483printf "%s\n" "found" >&6; }
30484      fi
30485    fi
30486
30487
30488  if test "$PKGCONFIG" != "no" ; then
30489    LIB_H2=`
30490    if test -n "$want_nghttp2_pkg_config_path"; then
30491      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30492      export PKG_CONFIG_LIBDIR
30493    fi
30494
30495      $PKGCONFIG --libs-only-l libnghttp2`
30496    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30497printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30498
30499    CPP_H2=`
30500    if test -n "$want_nghttp2_pkg_config_path"; then
30501      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30502      export PKG_CONFIG_LIBDIR
30503    fi
30504       $PKGCONFIG --cflags-only-I libnghttp2`
30505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30506printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30507
30508    LD_H2=`
30509    if test -n "$want_nghttp2_pkg_config_path"; then
30510      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30511      export PKG_CONFIG_LIBDIR
30512    fi
30513
30514      $PKGCONFIG --libs-only-L libnghttp2`
30515    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30516printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30517
30518    DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30519  elif test x"$want_nghttp2_path" != x; then
30520    LIB_H2="-lnghttp2"
30521    LD_H2=-L${want_nghttp2_path}/lib$libsuff
30522    CPP_H2=-I${want_nghttp2_path}/include
30523    DIR_H2=${want_nghttp2_path}/lib$libsuff
30524  elif test X"$want_nghttp2" != Xdefault; then
30525            as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30526  else
30527    LIB_H2="-lnghttp2"
30528  fi
30529
30530  LDFLAGS="$LDFLAGS $LD_H2"
30531  CPPFLAGS="$CPPFLAGS $CPP_H2"
30532  LIBS="$LIB_H2 $LIBS"
30533
30534  # use nghttp2_session_get_stream_local_window_size to require nghttp2
30535  # >= 1.15.0
30536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5
30537printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; }
30538if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y}
30539then :
30540  printf %s "(cached) " >&6
30541else $as_nop
30542  ac_check_lib_save_LIBS=$LIBS
30543LIBS="-lnghttp2  $LIBS"
30544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30545/* end confdefs.h.  */
30546
30547
30548#ifdef __cplusplus
30549extern "C"
30550#endif
30551char nghttp2_session_get_stream_local_window_size ();
30552int main (void)
30553{
30554return nghttp2_session_get_stream_local_window_size ();
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559if ac_fn_c_try_link "$LINENO"
30560then :
30561  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes
30562else $as_nop
30563  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no
30564fi
30565rm -f core conftest.err conftest.$ac_objext conftest.beam \
30566    conftest$ac_exeext conftest.$ac_ext
30567LIBS=$ac_check_lib_save_LIBS
30568fi
30569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5
30570printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; }
30571if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes
30572then :
30573
30574            for ac_header in nghttp2/nghttp2.h
30575do :
30576  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30577if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30578then :
30579  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30580 curl_h2_msg="enabled (nghttp2)"
30581        NGHTTP2_ENABLED=1
30582
30583printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30584
30585        USE_NGHTTP2=1
30586
30587
30588fi
30589
30590done
30591
30592     CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30593     export CURL_LIBRARY_PATH
30594     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30595printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30596
30597else $as_nop
30598        LDFLAGS=$CLEANLDFLAGS
30599      CPPFLAGS=$CLEANCPPFLAGS
30600      LIBS=$CLEANLIBS
30601
30602fi
30603
30604fi
30605
30606
30607OPT_TCP2="no"
30608
30609if test "x$disable_http" = "xyes"; then
30610  # without HTTP, ngtcp2 is no use
30611  OPT_TCP2="no"
30612fi
30613
30614
30615# Check whether --with-ngtcp2 was given.
30616if test ${with_ngtcp2+y}
30617then :
30618  withval=$with_ngtcp2; OPT_TCP2=$withval
30619fi
30620
30621case "$OPT_TCP2" in
30622  no)
30623        want_tcp2="no"
30624    ;;
30625  yes)
30626        want_tcp2="default"
30627    want_tcp2_path=""
30628    ;;
30629  *)
30630        want_tcp2="yes"
30631    want_tcp2_path="$withval/lib/pkgconfig"
30632    ;;
30633esac
30634
30635curl_tcp2_msg="no      (--with-ngtcp2)"
30636if test X"$want_tcp2" != Xno; then
30637    CLEANLDFLAGS="$LDFLAGS"
30638  CLEANCPPFLAGS="$CPPFLAGS"
30639  CLEANLIBS="$LIBS"
30640
30641
30642    if test -n "$PKG_CONFIG"; then
30643      PKGCONFIG="$PKG_CONFIG"
30644    else
30645      if test -n "$ac_tool_prefix"; then
30646  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30647set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30649printf %s "checking for $ac_word... " >&6; }
30650if test ${ac_cv_path_PKGCONFIG+y}
30651then :
30652  printf %s "(cached) " >&6
30653else $as_nop
30654  case $PKGCONFIG in
30655  [\\/]* | ?:[\\/]*)
30656  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30657  ;;
30658  *)
30659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30660as_dummy="$PATH:/usr/bin:/usr/local/bin"
30661for as_dir in $as_dummy
30662do
30663  IFS=$as_save_IFS
30664  case $as_dir in #(((
30665    '') as_dir=./ ;;
30666    */) ;;
30667    *) as_dir=$as_dir/ ;;
30668  esac
30669    for ac_exec_ext in '' $ac_executable_extensions; do
30670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30671    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30673    break 2
30674  fi
30675done
30676  done
30677IFS=$as_save_IFS
30678
30679  ;;
30680esac
30681fi
30682PKGCONFIG=$ac_cv_path_PKGCONFIG
30683if test -n "$PKGCONFIG"; then
30684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30685printf "%s\n" "$PKGCONFIG" >&6; }
30686else
30687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30688printf "%s\n" "no" >&6; }
30689fi
30690
30691
30692fi
30693if test -z "$ac_cv_path_PKGCONFIG"; then
30694  ac_pt_PKGCONFIG=$PKGCONFIG
30695  # Extract the first word of "pkg-config", so it can be a program name with args.
30696set dummy pkg-config; ac_word=$2
30697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30698printf %s "checking for $ac_word... " >&6; }
30699if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30700then :
30701  printf %s "(cached) " >&6
30702else $as_nop
30703  case $ac_pt_PKGCONFIG in
30704  [\\/]* | ?:[\\/]*)
30705  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30706  ;;
30707  *)
30708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30709as_dummy="$PATH:/usr/bin:/usr/local/bin"
30710for as_dir in $as_dummy
30711do
30712  IFS=$as_save_IFS
30713  case $as_dir in #(((
30714    '') as_dir=./ ;;
30715    */) ;;
30716    *) as_dir=$as_dir/ ;;
30717  esac
30718    for ac_exec_ext in '' $ac_executable_extensions; do
30719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30720    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30722    break 2
30723  fi
30724done
30725  done
30726IFS=$as_save_IFS
30727
30728  ;;
30729esac
30730fi
30731ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30732if test -n "$ac_pt_PKGCONFIG"; then
30733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30734printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30735else
30736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30737printf "%s\n" "no" >&6; }
30738fi
30739
30740  if test "x$ac_pt_PKGCONFIG" = x; then
30741    PKGCONFIG="no"
30742  else
30743    case $cross_compiling:$ac_tool_warned in
30744yes:)
30745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30747ac_tool_warned=yes ;;
30748esac
30749    PKGCONFIG=$ac_pt_PKGCONFIG
30750  fi
30751else
30752  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30753fi
30754
30755    fi
30756
30757    if test "x$PKGCONFIG" != "xno"; then
30758      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30759printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30760            itexists=`
30761    if test -n "$want_tcp2_path"; then
30762      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30763      export PKG_CONFIG_LIBDIR
30764    fi
30765         $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30766
30767      if test -z "$itexists"; then
30768                        PKGCONFIG="no"
30769        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30770printf "%s\n" "no" >&6; }
30771      else
30772        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30773printf "%s\n" "found" >&6; }
30774      fi
30775    fi
30776
30777
30778  if test "$PKGCONFIG" != "no" ; then
30779    LIB_TCP2=`
30780    if test -n "$want_tcp2_path"; then
30781      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30782      export PKG_CONFIG_LIBDIR
30783    fi
30784
30785      $PKGCONFIG --libs-only-l libngtcp2`
30786    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30787printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30788
30789    CPP_TCP2=`
30790    if test -n "$want_tcp2_path"; then
30791      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30792      export PKG_CONFIG_LIBDIR
30793    fi
30794       $PKGCONFIG --cflags-only-I libngtcp2`
30795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30796printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30797
30798    LD_TCP2=`
30799    if test -n "$want_tcp2_path"; then
30800      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30801      export PKG_CONFIG_LIBDIR
30802    fi
30803
30804      $PKGCONFIG --libs-only-L libngtcp2`
30805    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30806printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30807
30808    LDFLAGS="$LDFLAGS $LD_TCP2"
30809    CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30810    LIBS="$LIB_TCP2 $LIBS"
30811
30812    if test "x$cross_compiling" != "xyes"; then
30813      DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30814    fi
30815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30816printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30817if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30818then :
30819  printf %s "(cached) " >&6
30820else $as_nop
30821  ac_check_lib_save_LIBS=$LIBS
30822LIBS="-lngtcp2  $LIBS"
30823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824/* end confdefs.h.  */
30825
30826
30827#ifdef __cplusplus
30828extern "C"
30829#endif
30830char ngtcp2_conn_client_new_versioned ();
30831int main (void)
30832{
30833return ngtcp2_conn_client_new_versioned ();
30834 ;
30835 return 0;
30836}
30837_ACEOF
30838if ac_fn_c_try_link "$LINENO"
30839then :
30840  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30841else $as_nop
30842  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30843fi
30844rm -f core conftest.err conftest.$ac_objext conftest.beam \
30845    conftest$ac_exeext conftest.$ac_ext
30846LIBS=$ac_check_lib_save_LIBS
30847fi
30848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30849printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30850if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30851then :
30852
30853              for ac_header in ngtcp2/ngtcp2.h
30854do :
30855  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30856if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30857then :
30858  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30859 NGTCP2_ENABLED=1
30860
30861printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30862
30863          USE_NGTCP2=1
30864
30865          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30866          export CURL_LIBRARY_PATH
30867          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30868printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30869
30870fi
30871
30872done
30873
30874else $as_nop
30875          LDFLAGS=$CLEANLDFLAGS
30876        CPPFLAGS=$CLEANCPPFLAGS
30877        LIBS=$CLEANLIBS
30878
30879fi
30880
30881
30882  else
30883        if test X"$want_tcp2" != Xdefault; then
30884                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30885    fi
30886  fi
30887
30888fi
30889
30890if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30891    CLEANLDFLAGS="$LDFLAGS"
30892  CLEANCPPFLAGS="$CPPFLAGS"
30893  CLEANLIBS="$LIBS"
30894
30895
30896    if test -n "$PKG_CONFIG"; then
30897      PKGCONFIG="$PKG_CONFIG"
30898    else
30899      if test -n "$ac_tool_prefix"; then
30900  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30901set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30903printf %s "checking for $ac_word... " >&6; }
30904if test ${ac_cv_path_PKGCONFIG+y}
30905then :
30906  printf %s "(cached) " >&6
30907else $as_nop
30908  case $PKGCONFIG in
30909  [\\/]* | ?:[\\/]*)
30910  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30911  ;;
30912  *)
30913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30914as_dummy="$PATH:/usr/bin:/usr/local/bin"
30915for as_dir in $as_dummy
30916do
30917  IFS=$as_save_IFS
30918  case $as_dir in #(((
30919    '') as_dir=./ ;;
30920    */) ;;
30921    *) as_dir=$as_dir/ ;;
30922  esac
30923    for ac_exec_ext in '' $ac_executable_extensions; do
30924  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30925    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30926    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30927    break 2
30928  fi
30929done
30930  done
30931IFS=$as_save_IFS
30932
30933  ;;
30934esac
30935fi
30936PKGCONFIG=$ac_cv_path_PKGCONFIG
30937if test -n "$PKGCONFIG"; then
30938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30939printf "%s\n" "$PKGCONFIG" >&6; }
30940else
30941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30942printf "%s\n" "no" >&6; }
30943fi
30944
30945
30946fi
30947if test -z "$ac_cv_path_PKGCONFIG"; then
30948  ac_pt_PKGCONFIG=$PKGCONFIG
30949  # Extract the first word of "pkg-config", so it can be a program name with args.
30950set dummy pkg-config; ac_word=$2
30951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30952printf %s "checking for $ac_word... " >&6; }
30953if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30954then :
30955  printf %s "(cached) " >&6
30956else $as_nop
30957  case $ac_pt_PKGCONFIG in
30958  [\\/]* | ?:[\\/]*)
30959  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30960  ;;
30961  *)
30962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30963as_dummy="$PATH:/usr/bin:/usr/local/bin"
30964for as_dir in $as_dummy
30965do
30966  IFS=$as_save_IFS
30967  case $as_dir in #(((
30968    '') as_dir=./ ;;
30969    */) ;;
30970    *) as_dir=$as_dir/ ;;
30971  esac
30972    for ac_exec_ext in '' $ac_executable_extensions; do
30973  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30974    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30975    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30976    break 2
30977  fi
30978done
30979  done
30980IFS=$as_save_IFS
30981
30982  ;;
30983esac
30984fi
30985ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30986if test -n "$ac_pt_PKGCONFIG"; then
30987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30988printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30989else
30990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30991printf "%s\n" "no" >&6; }
30992fi
30993
30994  if test "x$ac_pt_PKGCONFIG" = x; then
30995    PKGCONFIG="no"
30996  else
30997    case $cross_compiling:$ac_tool_warned in
30998yes:)
30999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31000printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31001ac_tool_warned=yes ;;
31002esac
31003    PKGCONFIG=$ac_pt_PKGCONFIG
31004  fi
31005else
31006  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31007fi
31008
31009    fi
31010
31011    if test "x$PKGCONFIG" != "xno"; then
31012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5
31013printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; }
31014            itexists=`
31015    if test -n "$want_tcp2_path"; then
31016      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31017      export PKG_CONFIG_LIBDIR
31018    fi
31019         $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1`
31020
31021      if test -z "$itexists"; then
31022                        PKGCONFIG="no"
31023        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024printf "%s\n" "no" >&6; }
31025      else
31026        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31027printf "%s\n" "found" >&6; }
31028      fi
31029    fi
31030
31031
31032  if test "$PKGCONFIG" != "no" ; then
31033    LIB_NGTCP2_CRYPTO_QUICTLS=`
31034    if test -n "$want_tcp2_path"; then
31035      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31036      export PKG_CONFIG_LIBDIR
31037    fi
31038
31039      $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
31040    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5
31041printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;}
31042
31043    CPP_NGTCP2_CRYPTO_QUICTLS=`
31044    if test -n "$want_tcp2_path"; then
31045      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31046      export PKG_CONFIG_LIBDIR
31047    fi
31048       $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
31049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5
31050printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;}
31051
31052    LD_NGTCP2_CRYPTO_QUICTLS=`
31053    if test -n "$want_tcp2_path"; then
31054      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31055      export PKG_CONFIG_LIBDIR
31056    fi
31057
31058      $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
31059    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5
31060printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;}
31061
31062    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS"
31063    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
31064    LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
31065
31066    if test "x$cross_compiling" != "xyes"; then
31067      DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
31068    fi
31069    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5
31070printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; }
31071if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y}
31072then :
31073  printf %s "(cached) " >&6
31074else $as_nop
31075  ac_check_lib_save_LIBS=$LIBS
31076LIBS="-lngtcp2_crypto_quictls  $LIBS"
31077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31078/* end confdefs.h.  */
31079
31080
31081#ifdef __cplusplus
31082extern "C"
31083#endif
31084char ngtcp2_crypto_recv_client_initial_cb ();
31085int main (void)
31086{
31087return ngtcp2_crypto_recv_client_initial_cb ();
31088 ;
31089 return 0;
31090}
31091_ACEOF
31092if ac_fn_c_try_link "$LINENO"
31093then :
31094  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes
31095else $as_nop
31096  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no
31097fi
31098rm -f core conftest.err conftest.$ac_objext conftest.beam \
31099    conftest$ac_exeext conftest.$ac_ext
31100LIBS=$ac_check_lib_save_LIBS
31101fi
31102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5
31103printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31104if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31105then :
31106
31107              for ac_header in ngtcp2/ngtcp2_crypto.h
31108do :
31109  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31110if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31111then :
31112  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31113 NGTCP2_ENABLED=1
31114
31115printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h
31116
31117          USE_NGTCP2_CRYPTO_QUICTLS=1
31118
31119          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
31120          export CURL_LIBRARY_PATH
31121          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5
31122printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;}
31123
31124fi
31125
31126done
31127
31128else $as_nop
31129          LDFLAGS=$CLEANLDFLAGS
31130        CPPFLAGS=$CLEANCPPFLAGS
31131        LIBS=$CLEANLIBS
31132
31133fi
31134
31135
31136  else
31137        if test X"$want_tcp2" != Xdefault; then
31138                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5
31139    fi
31140  fi
31141fi
31142
31143if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31144    CLEANLDFLAGS="$LDFLAGS"
31145  CLEANCPPFLAGS="$CPPFLAGS"
31146  CLEANLIBS="$LIBS"
31147
31148
31149    if test -n "$PKG_CONFIG"; then
31150      PKGCONFIG="$PKG_CONFIG"
31151    else
31152      if test -n "$ac_tool_prefix"; then
31153  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31154set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31156printf %s "checking for $ac_word... " >&6; }
31157if test ${ac_cv_path_PKGCONFIG+y}
31158then :
31159  printf %s "(cached) " >&6
31160else $as_nop
31161  case $PKGCONFIG in
31162  [\\/]* | ?:[\\/]*)
31163  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31164  ;;
31165  *)
31166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31167as_dummy="$PATH:/usr/bin:/usr/local/bin"
31168for as_dir in $as_dummy
31169do
31170  IFS=$as_save_IFS
31171  case $as_dir in #(((
31172    '') as_dir=./ ;;
31173    */) ;;
31174    *) as_dir=$as_dir/ ;;
31175  esac
31176    for ac_exec_ext in '' $ac_executable_extensions; do
31177  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31178    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31179    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31180    break 2
31181  fi
31182done
31183  done
31184IFS=$as_save_IFS
31185
31186  ;;
31187esac
31188fi
31189PKGCONFIG=$ac_cv_path_PKGCONFIG
31190if test -n "$PKGCONFIG"; then
31191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31192printf "%s\n" "$PKGCONFIG" >&6; }
31193else
31194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31195printf "%s\n" "no" >&6; }
31196fi
31197
31198
31199fi
31200if test -z "$ac_cv_path_PKGCONFIG"; then
31201  ac_pt_PKGCONFIG=$PKGCONFIG
31202  # Extract the first word of "pkg-config", so it can be a program name with args.
31203set dummy pkg-config; ac_word=$2
31204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31205printf %s "checking for $ac_word... " >&6; }
31206if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31207then :
31208  printf %s "(cached) " >&6
31209else $as_nop
31210  case $ac_pt_PKGCONFIG in
31211  [\\/]* | ?:[\\/]*)
31212  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31213  ;;
31214  *)
31215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31216as_dummy="$PATH:/usr/bin:/usr/local/bin"
31217for as_dir in $as_dummy
31218do
31219  IFS=$as_save_IFS
31220  case $as_dir in #(((
31221    '') as_dir=./ ;;
31222    */) ;;
31223    *) as_dir=$as_dir/ ;;
31224  esac
31225    for ac_exec_ext in '' $ac_executable_extensions; do
31226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31227    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31229    break 2
31230  fi
31231done
31232  done
31233IFS=$as_save_IFS
31234
31235  ;;
31236esac
31237fi
31238ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31239if test -n "$ac_pt_PKGCONFIG"; then
31240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31241printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31242else
31243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31244printf "%s\n" "no" >&6; }
31245fi
31246
31247  if test "x$ac_pt_PKGCONFIG" = x; then
31248    PKGCONFIG="no"
31249  else
31250    case $cross_compiling:$ac_tool_warned in
31251yes:)
31252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31254ac_tool_warned=yes ;;
31255esac
31256    PKGCONFIG=$ac_pt_PKGCONFIG
31257  fi
31258else
31259  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31260fi
31261
31262    fi
31263
31264    if test "x$PKGCONFIG" != "xno"; then
31265      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31266printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31267            itexists=`
31268    if test -n "$want_tcp2_path"; then
31269      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31270      export PKG_CONFIG_LIBDIR
31271    fi
31272         $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31273
31274      if test -z "$itexists"; then
31275                        PKGCONFIG="no"
31276        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31277printf "%s\n" "no" >&6; }
31278      else
31279        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31280printf "%s\n" "found" >&6; }
31281      fi
31282    fi
31283
31284
31285  if test "$PKGCONFIG" != "no" ; then
31286    LIB_NGTCP2_CRYPTO_GNUTLS=`
31287    if test -n "$want_tcp2_path"; then
31288      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31289      export PKG_CONFIG_LIBDIR
31290    fi
31291
31292      $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31294printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31295
31296    CPP_NGTCP2_CRYPTO_GNUTLS=`
31297    if test -n "$want_tcp2_path"; then
31298      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31299      export PKG_CONFIG_LIBDIR
31300    fi
31301       $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31302    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31303printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31304
31305    LD_NGTCP2_CRYPTO_GNUTLS=`
31306    if test -n "$want_tcp2_path"; then
31307      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31308      export PKG_CONFIG_LIBDIR
31309    fi
31310
31311      $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31313printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31314
31315    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31316    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31317    LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31318
31319    if test "x$cross_compiling" != "xyes"; then
31320      DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31321    fi
31322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31323printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31324if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31325then :
31326  printf %s "(cached) " >&6
31327else $as_nop
31328  ac_check_lib_save_LIBS=$LIBS
31329LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31331/* end confdefs.h.  */
31332
31333
31334#ifdef __cplusplus
31335extern "C"
31336#endif
31337char ngtcp2_crypto_recv_client_initial_cb ();
31338int main (void)
31339{
31340return ngtcp2_crypto_recv_client_initial_cb ();
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345if ac_fn_c_try_link "$LINENO"
31346then :
31347  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31348else $as_nop
31349  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31350fi
31351rm -f core conftest.err conftest.$ac_objext conftest.beam \
31352    conftest$ac_exeext conftest.$ac_ext
31353LIBS=$ac_check_lib_save_LIBS
31354fi
31355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31356printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31357if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31358then :
31359
31360              for ac_header in ngtcp2/ngtcp2_crypto.h
31361do :
31362  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31363if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31364then :
31365  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31366 NGTCP2_ENABLED=1
31367
31368printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31369
31370          USE_NGTCP2_CRYPTO_GNUTLS=1
31371
31372          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31373          export CURL_LIBRARY_PATH
31374          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31375printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31376
31377fi
31378
31379done
31380
31381else $as_nop
31382          LDFLAGS=$CLEANLDFLAGS
31383        CPPFLAGS=$CLEANCPPFLAGS
31384        LIBS=$CLEANLIBS
31385
31386fi
31387
31388
31389  else
31390        if test X"$want_tcp2" != Xdefault; then
31391                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31392    fi
31393  fi
31394fi
31395
31396if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31397    CLEANLDFLAGS="$LDFLAGS"
31398  CLEANCPPFLAGS="$CPPFLAGS"
31399  CLEANLIBS="$LIBS"
31400
31401
31402    if test -n "$PKG_CONFIG"; then
31403      PKGCONFIG="$PKG_CONFIG"
31404    else
31405      if test -n "$ac_tool_prefix"; then
31406  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31407set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31409printf %s "checking for $ac_word... " >&6; }
31410if test ${ac_cv_path_PKGCONFIG+y}
31411then :
31412  printf %s "(cached) " >&6
31413else $as_nop
31414  case $PKGCONFIG in
31415  [\\/]* | ?:[\\/]*)
31416  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31417  ;;
31418  *)
31419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31420as_dummy="$PATH:/usr/bin:/usr/local/bin"
31421for as_dir in $as_dummy
31422do
31423  IFS=$as_save_IFS
31424  case $as_dir in #(((
31425    '') as_dir=./ ;;
31426    */) ;;
31427    *) as_dir=$as_dir/ ;;
31428  esac
31429    for ac_exec_ext in '' $ac_executable_extensions; do
31430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31431    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31433    break 2
31434  fi
31435done
31436  done
31437IFS=$as_save_IFS
31438
31439  ;;
31440esac
31441fi
31442PKGCONFIG=$ac_cv_path_PKGCONFIG
31443if test -n "$PKGCONFIG"; then
31444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31445printf "%s\n" "$PKGCONFIG" >&6; }
31446else
31447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448printf "%s\n" "no" >&6; }
31449fi
31450
31451
31452fi
31453if test -z "$ac_cv_path_PKGCONFIG"; then
31454  ac_pt_PKGCONFIG=$PKGCONFIG
31455  # Extract the first word of "pkg-config", so it can be a program name with args.
31456set dummy pkg-config; ac_word=$2
31457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31458printf %s "checking for $ac_word... " >&6; }
31459if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31460then :
31461  printf %s "(cached) " >&6
31462else $as_nop
31463  case $ac_pt_PKGCONFIG in
31464  [\\/]* | ?:[\\/]*)
31465  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31466  ;;
31467  *)
31468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31469as_dummy="$PATH:/usr/bin:/usr/local/bin"
31470for as_dir in $as_dummy
31471do
31472  IFS=$as_save_IFS
31473  case $as_dir in #(((
31474    '') as_dir=./ ;;
31475    */) ;;
31476    *) as_dir=$as_dir/ ;;
31477  esac
31478    for ac_exec_ext in '' $ac_executable_extensions; do
31479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31480    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31482    break 2
31483  fi
31484done
31485  done
31486IFS=$as_save_IFS
31487
31488  ;;
31489esac
31490fi
31491ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31492if test -n "$ac_pt_PKGCONFIG"; then
31493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31494printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31495else
31496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31497printf "%s\n" "no" >&6; }
31498fi
31499
31500  if test "x$ac_pt_PKGCONFIG" = x; then
31501    PKGCONFIG="no"
31502  else
31503    case $cross_compiling:$ac_tool_warned in
31504yes:)
31505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31507ac_tool_warned=yes ;;
31508esac
31509    PKGCONFIG=$ac_pt_PKGCONFIG
31510  fi
31511else
31512  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31513fi
31514
31515    fi
31516
31517    if test "x$PKGCONFIG" != "xno"; then
31518      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31519printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31520            itexists=`
31521    if test -n "$want_tcp2_path"; then
31522      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31523      export PKG_CONFIG_LIBDIR
31524    fi
31525         $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31526
31527      if test -z "$itexists"; then
31528                        PKGCONFIG="no"
31529        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31530printf "%s\n" "no" >&6; }
31531      else
31532        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31533printf "%s\n" "found" >&6; }
31534      fi
31535    fi
31536
31537
31538  if test "$PKGCONFIG" != "no" ; then
31539    LIB_NGTCP2_CRYPTO_WOLFSSL=`
31540    if test -n "$want_tcp2_path"; then
31541      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31542      export PKG_CONFIG_LIBDIR
31543    fi
31544
31545      $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31546    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31547printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31548
31549    CPP_NGTCP2_CRYPTO_WOLFSSL=`
31550    if test -n "$want_tcp2_path"; then
31551      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31552      export PKG_CONFIG_LIBDIR
31553    fi
31554       $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31556printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31557
31558    LD_NGTCP2_CRYPTO_WOLFSSL=`
31559    if test -n "$want_tcp2_path"; then
31560      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31561      export PKG_CONFIG_LIBDIR
31562    fi
31563
31564      $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31565    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31566printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31567
31568    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31569    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31570    LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31571
31572    if test "x$cross_compiling" != "xyes"; then
31573      DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31574    fi
31575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31576printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31577if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31578then :
31579  printf %s "(cached) " >&6
31580else $as_nop
31581  ac_check_lib_save_LIBS=$LIBS
31582LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
31583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31584/* end confdefs.h.  */
31585
31586
31587#ifdef __cplusplus
31588extern "C"
31589#endif
31590char ngtcp2_crypto_recv_client_initial_cb ();
31591int main (void)
31592{
31593return ngtcp2_crypto_recv_client_initial_cb ();
31594 ;
31595 return 0;
31596}
31597_ACEOF
31598if ac_fn_c_try_link "$LINENO"
31599then :
31600  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31601else $as_nop
31602  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31603fi
31604rm -f core conftest.err conftest.$ac_objext conftest.beam \
31605    conftest$ac_exeext conftest.$ac_ext
31606LIBS=$ac_check_lib_save_LIBS
31607fi
31608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31609printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31610if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31611then :
31612
31613              for ac_header in ngtcp2/ngtcp2_crypto.h
31614do :
31615  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31616if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31617then :
31618  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31619 NGTCP2_ENABLED=1
31620
31621printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
31622
31623          USE_NGTCP2_CRYPTO_WOLFSSL=1
31624
31625          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
31626          export CURL_LIBRARY_PATH
31627          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
31628printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
31629
31630fi
31631
31632done
31633
31634else $as_nop
31635          LDFLAGS=$CLEANLDFLAGS
31636        CPPFLAGS=$CLEANCPPFLAGS
31637        LIBS=$CLEANLIBS
31638
31639fi
31640
31641
31642  else
31643        if test X"$want_tcp2" != Xdefault; then
31644                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
31645    fi
31646  fi
31647fi
31648
31649
31650OPT_NGHTTP3="yes"
31651
31652if test "x$NGTCP2_ENABLED" = "x"; then
31653  # without ngtcp2, nghttp3 is of no use for us
31654  OPT_NGHTTP3="no"
31655fi
31656
31657
31658# Check whether --with-nghttp3 was given.
31659if test ${with_nghttp3+y}
31660then :
31661  withval=$with_nghttp3; OPT_NGHTTP3=$withval
31662fi
31663
31664case "$OPT_NGHTTP3" in
31665  no)
31666        want_nghttp3="no"
31667    ;;
31668  yes)
31669        want_nghttp3="default"
31670    want_nghttp3_path=""
31671    ;;
31672  *)
31673        want_nghttp3="yes"
31674    want_nghttp3_path="$withval/lib/pkgconfig"
31675    ;;
31676esac
31677
31678curl_http3_msg="no      (--with-nghttp3)"
31679if test X"$want_nghttp3" != Xno; then
31680    CLEANLDFLAGS="$LDFLAGS"
31681  CLEANCPPFLAGS="$CPPFLAGS"
31682  CLEANLIBS="$LIBS"
31683
31684
31685    if test -n "$PKG_CONFIG"; then
31686      PKGCONFIG="$PKG_CONFIG"
31687    else
31688      if test -n "$ac_tool_prefix"; then
31689  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31690set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31692printf %s "checking for $ac_word... " >&6; }
31693if test ${ac_cv_path_PKGCONFIG+y}
31694then :
31695  printf %s "(cached) " >&6
31696else $as_nop
31697  case $PKGCONFIG in
31698  [\\/]* | ?:[\\/]*)
31699  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31700  ;;
31701  *)
31702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31703as_dummy="$PATH:/usr/bin:/usr/local/bin"
31704for as_dir in $as_dummy
31705do
31706  IFS=$as_save_IFS
31707  case $as_dir in #(((
31708    '') as_dir=./ ;;
31709    */) ;;
31710    *) as_dir=$as_dir/ ;;
31711  esac
31712    for ac_exec_ext in '' $ac_executable_extensions; do
31713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31714    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31716    break 2
31717  fi
31718done
31719  done
31720IFS=$as_save_IFS
31721
31722  ;;
31723esac
31724fi
31725PKGCONFIG=$ac_cv_path_PKGCONFIG
31726if test -n "$PKGCONFIG"; then
31727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31728printf "%s\n" "$PKGCONFIG" >&6; }
31729else
31730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31731printf "%s\n" "no" >&6; }
31732fi
31733
31734
31735fi
31736if test -z "$ac_cv_path_PKGCONFIG"; then
31737  ac_pt_PKGCONFIG=$PKGCONFIG
31738  # Extract the first word of "pkg-config", so it can be a program name with args.
31739set dummy pkg-config; ac_word=$2
31740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31741printf %s "checking for $ac_word... " >&6; }
31742if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31743then :
31744  printf %s "(cached) " >&6
31745else $as_nop
31746  case $ac_pt_PKGCONFIG in
31747  [\\/]* | ?:[\\/]*)
31748  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31749  ;;
31750  *)
31751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31752as_dummy="$PATH:/usr/bin:/usr/local/bin"
31753for as_dir in $as_dummy
31754do
31755  IFS=$as_save_IFS
31756  case $as_dir in #(((
31757    '') as_dir=./ ;;
31758    */) ;;
31759    *) as_dir=$as_dir/ ;;
31760  esac
31761    for ac_exec_ext in '' $ac_executable_extensions; do
31762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31763    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31765    break 2
31766  fi
31767done
31768  done
31769IFS=$as_save_IFS
31770
31771  ;;
31772esac
31773fi
31774ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31775if test -n "$ac_pt_PKGCONFIG"; then
31776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31777printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31778else
31779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31780printf "%s\n" "no" >&6; }
31781fi
31782
31783  if test "x$ac_pt_PKGCONFIG" = x; then
31784    PKGCONFIG="no"
31785  else
31786    case $cross_compiling:$ac_tool_warned in
31787yes:)
31788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31789printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31790ac_tool_warned=yes ;;
31791esac
31792    PKGCONFIG=$ac_pt_PKGCONFIG
31793  fi
31794else
31795  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31796fi
31797
31798    fi
31799
31800    if test "x$PKGCONFIG" != "xno"; then
31801      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31802printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31803            itexists=`
31804    if test -n "$want_nghttp3_path"; then
31805      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31806      export PKG_CONFIG_LIBDIR
31807    fi
31808         $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31809
31810      if test -z "$itexists"; then
31811                        PKGCONFIG="no"
31812        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31813printf "%s\n" "no" >&6; }
31814      else
31815        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31816printf "%s\n" "found" >&6; }
31817      fi
31818    fi
31819
31820
31821  if test "$PKGCONFIG" != "no" ; then
31822    LIB_NGHTTP3=`
31823    if test -n "$want_nghttp3_path"; then
31824      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31825      export PKG_CONFIG_LIBDIR
31826    fi
31827
31828      $PKGCONFIG --libs-only-l libnghttp3`
31829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31830printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31831
31832    CPP_NGHTTP3=`
31833    if test -n "$want_nghttp3_path"; then
31834      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31835      export PKG_CONFIG_LIBDIR
31836    fi
31837       $PKGCONFIG --cflags-only-I libnghttp3`
31838    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31839printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31840
31841    LD_NGHTTP3=`
31842    if test -n "$want_nghttp3_path"; then
31843      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31844      export PKG_CONFIG_LIBDIR
31845    fi
31846
31847      $PKGCONFIG --libs-only-L libnghttp3`
31848    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31849printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31850
31851    LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31852    CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31853    LIBS="$LIB_NGHTTP3 $LIBS"
31854
31855    if test "x$cross_compiling" != "xyes"; then
31856      DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31857    fi
31858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31859printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31860if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31861then :
31862  printf %s "(cached) " >&6
31863else $as_nop
31864  ac_check_lib_save_LIBS=$LIBS
31865LIBS="-lnghttp3  $LIBS"
31866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867/* end confdefs.h.  */
31868
31869
31870#ifdef __cplusplus
31871extern "C"
31872#endif
31873char nghttp3_conn_client_new_versioned ();
31874int main (void)
31875{
31876return nghttp3_conn_client_new_versioned ();
31877 ;
31878 return 0;
31879}
31880_ACEOF
31881if ac_fn_c_try_link "$LINENO"
31882then :
31883  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31884else $as_nop
31885  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31886fi
31887rm -f core conftest.err conftest.$ac_objext conftest.beam \
31888    conftest$ac_exeext conftest.$ac_ext
31889LIBS=$ac_check_lib_save_LIBS
31890fi
31891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31892printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31893if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31894then :
31895
31896              for ac_header in nghttp3/nghttp3.h
31897do :
31898  ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31899if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31900then :
31901  printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31902 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31903          NGHTTP3_ENABLED=1
31904
31905printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31906
31907          USE_NGHTTP3=1
31908
31909          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31910          export CURL_LIBRARY_PATH
31911          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31912printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31913          experimental="$experimental HTTP3"
31914
31915fi
31916
31917done
31918
31919else $as_nop
31920          LDFLAGS=$CLEANLDFLAGS
31921        CPPFLAGS=$CLEANCPPFLAGS
31922        LIBS=$CLEANLIBS
31923
31924fi
31925
31926
31927  else
31928        if test X"$want_nghttp3" != Xdefault; then
31929                  as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31930    fi
31931  fi
31932
31933fi
31934
31935
31936OPT_QUICHE="no"
31937
31938if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31939  # without HTTP or with ngtcp2, quiche is no use
31940  OPT_QUICHE="no"
31941fi
31942
31943
31944# Check whether --with-quiche was given.
31945if test ${with_quiche+y}
31946then :
31947  withval=$with_quiche; OPT_QUICHE=$withval
31948fi
31949
31950case "$OPT_QUICHE" in
31951  no)
31952        want_quiche="no"
31953    ;;
31954  yes)
31955        want_quiche="default"
31956    want_quiche_path=""
31957    ;;
31958  *)
31959        want_quiche="yes"
31960    want_quiche_path="$withval"
31961    ;;
31962esac
31963
31964if test X"$want_quiche" != Xno; then
31965
31966  if test "$NGHTTP3_ENABLED" = 1; then
31967    as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31968  fi
31969
31970    CLEANLDFLAGS="$LDFLAGS"
31971  CLEANCPPFLAGS="$CPPFLAGS"
31972  CLEANLIBS="$LIBS"
31973
31974
31975    if test -n "$PKG_CONFIG"; then
31976      PKGCONFIG="$PKG_CONFIG"
31977    else
31978      if test -n "$ac_tool_prefix"; then
31979  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31980set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31982printf %s "checking for $ac_word... " >&6; }
31983if test ${ac_cv_path_PKGCONFIG+y}
31984then :
31985  printf %s "(cached) " >&6
31986else $as_nop
31987  case $PKGCONFIG in
31988  [\\/]* | ?:[\\/]*)
31989  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31990  ;;
31991  *)
31992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31993as_dummy="$PATH:/usr/bin:/usr/local/bin"
31994for as_dir in $as_dummy
31995do
31996  IFS=$as_save_IFS
31997  case $as_dir in #(((
31998    '') as_dir=./ ;;
31999    */) ;;
32000    *) as_dir=$as_dir/ ;;
32001  esac
32002    for ac_exec_ext in '' $ac_executable_extensions; do
32003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32004    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32006    break 2
32007  fi
32008done
32009  done
32010IFS=$as_save_IFS
32011
32012  ;;
32013esac
32014fi
32015PKGCONFIG=$ac_cv_path_PKGCONFIG
32016if test -n "$PKGCONFIG"; then
32017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32018printf "%s\n" "$PKGCONFIG" >&6; }
32019else
32020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32021printf "%s\n" "no" >&6; }
32022fi
32023
32024
32025fi
32026if test -z "$ac_cv_path_PKGCONFIG"; then
32027  ac_pt_PKGCONFIG=$PKGCONFIG
32028  # Extract the first word of "pkg-config", so it can be a program name with args.
32029set dummy pkg-config; ac_word=$2
32030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32031printf %s "checking for $ac_word... " >&6; }
32032if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32033then :
32034  printf %s "(cached) " >&6
32035else $as_nop
32036  case $ac_pt_PKGCONFIG in
32037  [\\/]* | ?:[\\/]*)
32038  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32039  ;;
32040  *)
32041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32042as_dummy="$PATH:/usr/bin:/usr/local/bin"
32043for as_dir in $as_dummy
32044do
32045  IFS=$as_save_IFS
32046  case $as_dir in #(((
32047    '') as_dir=./ ;;
32048    */) ;;
32049    *) as_dir=$as_dir/ ;;
32050  esac
32051    for ac_exec_ext in '' $ac_executable_extensions; do
32052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32053    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32055    break 2
32056  fi
32057done
32058  done
32059IFS=$as_save_IFS
32060
32061  ;;
32062esac
32063fi
32064ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32065if test -n "$ac_pt_PKGCONFIG"; then
32066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32067printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32068else
32069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070printf "%s\n" "no" >&6; }
32071fi
32072
32073  if test "x$ac_pt_PKGCONFIG" = x; then
32074    PKGCONFIG="no"
32075  else
32076    case $cross_compiling:$ac_tool_warned in
32077yes:)
32078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32080ac_tool_warned=yes ;;
32081esac
32082    PKGCONFIG=$ac_pt_PKGCONFIG
32083  fi
32084else
32085  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32086fi
32087
32088    fi
32089
32090    if test "x$PKGCONFIG" != "xno"; then
32091      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32092printf %s "checking for quiche options with pkg-config... " >&6; }
32093            itexists=`
32094    if test -n "$want_quiche_path"; then
32095      PKG_CONFIG_LIBDIR="$want_quiche_path"
32096      export PKG_CONFIG_LIBDIR
32097    fi
32098         $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32099
32100      if test -z "$itexists"; then
32101                        PKGCONFIG="no"
32102        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32103printf "%s\n" "no" >&6; }
32104      else
32105        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32106printf "%s\n" "found" >&6; }
32107      fi
32108    fi
32109
32110
32111  if test "$PKGCONFIG" != "no" ; then
32112    LIB_QUICHE=`
32113    if test -n "$want_quiche_path"; then
32114      PKG_CONFIG_LIBDIR="$want_quiche_path"
32115      export PKG_CONFIG_LIBDIR
32116    fi
32117
32118      $PKGCONFIG --libs-only-l quiche`
32119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32120printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32121
32122    CPP_QUICHE=`
32123    if test -n "$want_quiche_path"; then
32124      PKG_CONFIG_LIBDIR="$want_quiche_path"
32125      export PKG_CONFIG_LIBDIR
32126    fi
32127       $PKGCONFIG --cflags-only-I quiche`
32128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32129printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32130
32131    LD_QUICHE=`
32132    if test -n "$want_quiche_path"; then
32133      PKG_CONFIG_LIBDIR="$want_quiche_path"
32134      export PKG_CONFIG_LIBDIR
32135    fi
32136
32137      $PKGCONFIG --libs-only-L quiche`
32138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32139printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32140
32141    LDFLAGS="$LDFLAGS $LD_QUICHE"
32142    CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32143    LIBS="$LIB_QUICHE $LIBS"
32144
32145    if test "x$cross_compiling" != "xyes"; then
32146      DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32147    fi
32148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5
32149printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; }
32150if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y}
32151then :
32152  printf %s "(cached) " >&6
32153else $as_nop
32154  ac_check_lib_save_LIBS=$LIBS
32155LIBS="-lquiche  $LIBS"
32156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32157/* end confdefs.h.  */
32158
32159
32160#ifdef __cplusplus
32161extern "C"
32162#endif
32163char quiche_conn_send_ack_eliciting ();
32164int main (void)
32165{
32166return quiche_conn_send_ack_eliciting ();
32167 ;
32168 return 0;
32169}
32170_ACEOF
32171if ac_fn_c_try_link "$LINENO"
32172then :
32173  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes
32174else $as_nop
32175  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no
32176fi
32177rm -f core conftest.err conftest.$ac_objext conftest.beam \
32178    conftest$ac_exeext conftest.$ac_ext
32179LIBS=$ac_check_lib_save_LIBS
32180fi
32181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5
32182printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; }
32183if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes
32184then :
32185
32186              for ac_header in quiche.h
32187do :
32188  ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32189$ac_includes_default
32190#include <sys/socket.h>
32191
32192
32193"
32194if test "x$ac_cv_header_quiche_h" = xyes
32195then :
32196  printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32197 experimental="$experimental HTTP3"
32198          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32199printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32200          curl_h3_msg="enabled (quiche)"
32201          QUICHE_ENABLED=1
32202
32203printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32204
32205          USE_QUICHE=1
32206
32207          ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32208if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32209then :
32210  printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32211
32212fi
32213
32214          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32215          export CURL_LIBRARY_PATH
32216          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32217printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32218fi
32219
32220done
32221
32222else $as_nop
32223          as_fn_error $? "couldn't use quiche" "$LINENO" 5
32224
32225fi
32226
32227  else
32228        if test X"$want_quiche" != Xdefault; then
32229                  as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32230    fi
32231  fi
32232fi
32233
32234
32235OPT_MSH3="no"
32236
32237if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32238  # without HTTP or with ngtcp2, msh3 is no use
32239  OPT_MSH3="no"
32240fi
32241
32242
32243# Check whether --with-msh3 was given.
32244if test ${with_msh3+y}
32245then :
32246  withval=$with_msh3; OPT_MSH3=$withval
32247fi
32248
32249case "$OPT_MSH3" in
32250  no)
32251        want_msh3="no"
32252    ;;
32253  yes)
32254        want_msh3="default"
32255    want_msh3_path=""
32256    ;;
32257  *)
32258        want_msh3="yes"
32259    want_msh3_path="$withval"
32260    ;;
32261esac
32262
32263if test X"$want_msh3" != Xno; then
32264
32265  if test "$NGHTTP3_ENABLED" = 1; then
32266    as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32267  fi
32268
32269    CLEANLDFLAGS="$LDFLAGS"
32270  CLEANCPPFLAGS="$CPPFLAGS"
32271  CLEANLIBS="$LIBS"
32272
32273  if test -n "$want_msh3_path"; then
32274    LD_MSH3="-L$want_msh3_path/lib"
32275    CPP_MSH3="-I$want_msh3_path/include"
32276    DIR_MSH3="$want_msh3_path/lib"
32277    LDFLAGS="$LDFLAGS $LD_MSH3"
32278    CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32279  fi
32280  LIBS="-lmsh3 $LIBS"
32281
32282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32283printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32284if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32285then :
32286  printf %s "(cached) " >&6
32287else $as_nop
32288  ac_check_lib_save_LIBS=$LIBS
32289LIBS="-lmsh3  $LIBS"
32290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32291/* end confdefs.h.  */
32292
32293
32294#ifdef __cplusplus
32295extern "C"
32296#endif
32297char MsH3ApiOpen ();
32298int main (void)
32299{
32300return MsH3ApiOpen ();
32301 ;
32302 return 0;
32303}
32304_ACEOF
32305if ac_fn_c_try_link "$LINENO"
32306then :
32307  ac_cv_lib_msh3_MsH3ApiOpen=yes
32308else $as_nop
32309  ac_cv_lib_msh3_MsH3ApiOpen=no
32310fi
32311rm -f core conftest.err conftest.$ac_objext conftest.beam \
32312    conftest$ac_exeext conftest.$ac_ext
32313LIBS=$ac_check_lib_save_LIBS
32314fi
32315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32316printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32317if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32318then :
32319
32320           for ac_header in msh3.h
32321do :
32322  ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32323if test "x$ac_cv_header_msh3_h" = xyes
32324then :
32325  printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32326 curl_h3_msg="enabled (msh3)"
32327        MSH3_ENABLED=1
32328
32329printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32330
32331        USE_MSH3=1
32332
32333        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32334        export CURL_LIBRARY_PATH
32335        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32336printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32337else $as_nop
32338  experimental="$experimental HTTP3"
32339
32340fi
32341
32342done
32343
32344else $as_nop
32345        LDFLAGS=$CLEANLDFLAGS
32346      CPPFLAGS=$CLEANCPPFLAGS
32347      LIBS=$CLEANLIBS
32348
32349fi
32350
32351fi
32352
32353
32354OPT_ZSH_FPATH=default
32355
32356# Check whether --with-zsh-functions-dir was given.
32357if test ${with_zsh_functions_dir+y}
32358then :
32359  withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32360fi
32361
32362case "$OPT_ZSH_FPATH" in
32363  no)
32364        ;;
32365  default|yes)
32366        ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32367
32368    ;;
32369  *)
32370        ZSH_FUNCTIONS_DIR="$withval"
32371
32372    ;;
32373esac
32374
32375
32376OPT_FISH_FPATH=default
32377
32378# Check whether --with-fish-functions-dir was given.
32379if test ${with_fish_functions_dir+y}
32380then :
32381  withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32382fi
32383
32384case "$OPT_FISH_FPATH" in
32385  no)
32386        ;;
32387  default|yes)
32388
32389    if test -n "$PKG_CONFIG"; then
32390      PKGCONFIG="$PKG_CONFIG"
32391    else
32392      if test -n "$ac_tool_prefix"; then
32393  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32394set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32396printf %s "checking for $ac_word... " >&6; }
32397if test ${ac_cv_path_PKGCONFIG+y}
32398then :
32399  printf %s "(cached) " >&6
32400else $as_nop
32401  case $PKGCONFIG in
32402  [\\/]* | ?:[\\/]*)
32403  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32404  ;;
32405  *)
32406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32407as_dummy="$PATH:/usr/bin:/usr/local/bin"
32408for as_dir in $as_dummy
32409do
32410  IFS=$as_save_IFS
32411  case $as_dir in #(((
32412    '') as_dir=./ ;;
32413    */) ;;
32414    *) as_dir=$as_dir/ ;;
32415  esac
32416    for ac_exec_ext in '' $ac_executable_extensions; do
32417  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32418    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32419    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32420    break 2
32421  fi
32422done
32423  done
32424IFS=$as_save_IFS
32425
32426  ;;
32427esac
32428fi
32429PKGCONFIG=$ac_cv_path_PKGCONFIG
32430if test -n "$PKGCONFIG"; then
32431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32432printf "%s\n" "$PKGCONFIG" >&6; }
32433else
32434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32435printf "%s\n" "no" >&6; }
32436fi
32437
32438
32439fi
32440if test -z "$ac_cv_path_PKGCONFIG"; then
32441  ac_pt_PKGCONFIG=$PKGCONFIG
32442  # Extract the first word of "pkg-config", so it can be a program name with args.
32443set dummy pkg-config; ac_word=$2
32444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32445printf %s "checking for $ac_word... " >&6; }
32446if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32447then :
32448  printf %s "(cached) " >&6
32449else $as_nop
32450  case $ac_pt_PKGCONFIG in
32451  [\\/]* | ?:[\\/]*)
32452  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32453  ;;
32454  *)
32455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32456as_dummy="$PATH:/usr/bin:/usr/local/bin"
32457for as_dir in $as_dummy
32458do
32459  IFS=$as_save_IFS
32460  case $as_dir in #(((
32461    '') as_dir=./ ;;
32462    */) ;;
32463    *) as_dir=$as_dir/ ;;
32464  esac
32465    for ac_exec_ext in '' $ac_executable_extensions; do
32466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32467    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32469    break 2
32470  fi
32471done
32472  done
32473IFS=$as_save_IFS
32474
32475  ;;
32476esac
32477fi
32478ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32479if test -n "$ac_pt_PKGCONFIG"; then
32480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32481printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32482else
32483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32484printf "%s\n" "no" >&6; }
32485fi
32486
32487  if test "x$ac_pt_PKGCONFIG" = x; then
32488    PKGCONFIG="no"
32489  else
32490    case $cross_compiling:$ac_tool_warned in
32491yes:)
32492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32493printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32494ac_tool_warned=yes ;;
32495esac
32496    PKGCONFIG=$ac_pt_PKGCONFIG
32497  fi
32498else
32499  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32500fi
32501
32502    fi
32503
32504    if test "x$PKGCONFIG" != "xno"; then
32505      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32506printf %s "checking for fish options with pkg-config... " >&6; }
32507            itexists=`
32508    if test -n ""; then
32509      PKG_CONFIG_LIBDIR=""
32510      export PKG_CONFIG_LIBDIR
32511    fi
32512         $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32513
32514      if test -z "$itexists"; then
32515                        PKGCONFIG="no"
32516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32517printf "%s\n" "no" >&6; }
32518      else
32519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32520printf "%s\n" "found" >&6; }
32521      fi
32522    fi
32523
32524    if test "$PKGCONFIG" != "no" ; then
32525      FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32526    else
32527      FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32528    fi
32529
32530    ;;
32531  *)
32532        FISH_FUNCTIONS_DIR="$withval"
32533
32534    ;;
32535esac
32536
32537ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32538#ifdef HAVE_SYS_TYPES_H
32539#include <sys/types.h>
32540#endif
32541#ifdef HAVE_SYS_TIME_H
32542#include <sys/time.h>
32543#endif
32544#ifdef HAVE_SYS_SELECT_H
32545#include <sys/select.h>
32546#elif defined(HAVE_UNISTD_H)
32547#include <unistd.h>
32548#endif
32549#ifdef HAVE_SYS_SOCKET_H
32550#include <sys/socket.h>
32551#endif
32552#ifdef HAVE_NETINET_IN_H
32553#include <netinet/in.h>
32554#endif
32555#ifdef HAVE_NETINET_IN6_H
32556#include <netinet/in6.h>
32557#endif
32558#ifdef HAVE_SYS_UN_H
32559#include <sys/un.h>
32560#endif
32561
32562
32563"
32564if test "x$ac_cv_header_sys_types_h" = xyes
32565then :
32566  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32567
32568fi
32569ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32570#ifdef HAVE_SYS_TYPES_H
32571#include <sys/types.h>
32572#endif
32573#ifdef HAVE_SYS_TIME_H
32574#include <sys/time.h>
32575#endif
32576#ifdef HAVE_SYS_SELECT_H
32577#include <sys/select.h>
32578#elif defined(HAVE_UNISTD_H)
32579#include <unistd.h>
32580#endif
32581#ifdef HAVE_SYS_SOCKET_H
32582#include <sys/socket.h>
32583#endif
32584#ifdef HAVE_NETINET_IN_H
32585#include <netinet/in.h>
32586#endif
32587#ifdef HAVE_NETINET_IN6_H
32588#include <netinet/in6.h>
32589#endif
32590#ifdef HAVE_SYS_UN_H
32591#include <sys/un.h>
32592#endif
32593
32594
32595"
32596if test "x$ac_cv_header_sys_time_h" = xyes
32597then :
32598  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32599
32600fi
32601ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32602#ifdef HAVE_SYS_TYPES_H
32603#include <sys/types.h>
32604#endif
32605#ifdef HAVE_SYS_TIME_H
32606#include <sys/time.h>
32607#endif
32608#ifdef HAVE_SYS_SELECT_H
32609#include <sys/select.h>
32610#elif defined(HAVE_UNISTD_H)
32611#include <unistd.h>
32612#endif
32613#ifdef HAVE_SYS_SOCKET_H
32614#include <sys/socket.h>
32615#endif
32616#ifdef HAVE_NETINET_IN_H
32617#include <netinet/in.h>
32618#endif
32619#ifdef HAVE_NETINET_IN6_H
32620#include <netinet/in6.h>
32621#endif
32622#ifdef HAVE_SYS_UN_H
32623#include <sys/un.h>
32624#endif
32625
32626
32627"
32628if test "x$ac_cv_header_sys_select_h" = xyes
32629then :
32630  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32631
32632fi
32633ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32634#ifdef HAVE_SYS_TYPES_H
32635#include <sys/types.h>
32636#endif
32637#ifdef HAVE_SYS_TIME_H
32638#include <sys/time.h>
32639#endif
32640#ifdef HAVE_SYS_SELECT_H
32641#include <sys/select.h>
32642#elif defined(HAVE_UNISTD_H)
32643#include <unistd.h>
32644#endif
32645#ifdef HAVE_SYS_SOCKET_H
32646#include <sys/socket.h>
32647#endif
32648#ifdef HAVE_NETINET_IN_H
32649#include <netinet/in.h>
32650#endif
32651#ifdef HAVE_NETINET_IN6_H
32652#include <netinet/in6.h>
32653#endif
32654#ifdef HAVE_SYS_UN_H
32655#include <sys/un.h>
32656#endif
32657
32658
32659"
32660if test "x$ac_cv_header_sys_socket_h" = xyes
32661then :
32662  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32663
32664fi
32665ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32666#ifdef HAVE_SYS_TYPES_H
32667#include <sys/types.h>
32668#endif
32669#ifdef HAVE_SYS_TIME_H
32670#include <sys/time.h>
32671#endif
32672#ifdef HAVE_SYS_SELECT_H
32673#include <sys/select.h>
32674#elif defined(HAVE_UNISTD_H)
32675#include <unistd.h>
32676#endif
32677#ifdef HAVE_SYS_SOCKET_H
32678#include <sys/socket.h>
32679#endif
32680#ifdef HAVE_NETINET_IN_H
32681#include <netinet/in.h>
32682#endif
32683#ifdef HAVE_NETINET_IN6_H
32684#include <netinet/in6.h>
32685#endif
32686#ifdef HAVE_SYS_UN_H
32687#include <sys/un.h>
32688#endif
32689
32690
32691"
32692if test "x$ac_cv_header_sys_ioctl_h" = xyes
32693then :
32694  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32695
32696fi
32697ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32698#ifdef HAVE_SYS_TYPES_H
32699#include <sys/types.h>
32700#endif
32701#ifdef HAVE_SYS_TIME_H
32702#include <sys/time.h>
32703#endif
32704#ifdef HAVE_SYS_SELECT_H
32705#include <sys/select.h>
32706#elif defined(HAVE_UNISTD_H)
32707#include <unistd.h>
32708#endif
32709#ifdef HAVE_SYS_SOCKET_H
32710#include <sys/socket.h>
32711#endif
32712#ifdef HAVE_NETINET_IN_H
32713#include <netinet/in.h>
32714#endif
32715#ifdef HAVE_NETINET_IN6_H
32716#include <netinet/in6.h>
32717#endif
32718#ifdef HAVE_SYS_UN_H
32719#include <sys/un.h>
32720#endif
32721
32722
32723"
32724if test "x$ac_cv_header_unistd_h" = xyes
32725then :
32726  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32727
32728fi
32729ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32730#ifdef HAVE_SYS_TYPES_H
32731#include <sys/types.h>
32732#endif
32733#ifdef HAVE_SYS_TIME_H
32734#include <sys/time.h>
32735#endif
32736#ifdef HAVE_SYS_SELECT_H
32737#include <sys/select.h>
32738#elif defined(HAVE_UNISTD_H)
32739#include <unistd.h>
32740#endif
32741#ifdef HAVE_SYS_SOCKET_H
32742#include <sys/socket.h>
32743#endif
32744#ifdef HAVE_NETINET_IN_H
32745#include <netinet/in.h>
32746#endif
32747#ifdef HAVE_NETINET_IN6_H
32748#include <netinet/in6.h>
32749#endif
32750#ifdef HAVE_SYS_UN_H
32751#include <sys/un.h>
32752#endif
32753
32754
32755"
32756if test "x$ac_cv_header_stdlib_h" = xyes
32757then :
32758  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32759
32760fi
32761ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32762#ifdef HAVE_SYS_TYPES_H
32763#include <sys/types.h>
32764#endif
32765#ifdef HAVE_SYS_TIME_H
32766#include <sys/time.h>
32767#endif
32768#ifdef HAVE_SYS_SELECT_H
32769#include <sys/select.h>
32770#elif defined(HAVE_UNISTD_H)
32771#include <unistd.h>
32772#endif
32773#ifdef HAVE_SYS_SOCKET_H
32774#include <sys/socket.h>
32775#endif
32776#ifdef HAVE_NETINET_IN_H
32777#include <netinet/in.h>
32778#endif
32779#ifdef HAVE_NETINET_IN6_H
32780#include <netinet/in6.h>
32781#endif
32782#ifdef HAVE_SYS_UN_H
32783#include <sys/un.h>
32784#endif
32785
32786
32787"
32788if test "x$ac_cv_header_arpa_inet_h" = xyes
32789then :
32790  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32791
32792fi
32793ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32794#ifdef HAVE_SYS_TYPES_H
32795#include <sys/types.h>
32796#endif
32797#ifdef HAVE_SYS_TIME_H
32798#include <sys/time.h>
32799#endif
32800#ifdef HAVE_SYS_SELECT_H
32801#include <sys/select.h>
32802#elif defined(HAVE_UNISTD_H)
32803#include <unistd.h>
32804#endif
32805#ifdef HAVE_SYS_SOCKET_H
32806#include <sys/socket.h>
32807#endif
32808#ifdef HAVE_NETINET_IN_H
32809#include <netinet/in.h>
32810#endif
32811#ifdef HAVE_NETINET_IN6_H
32812#include <netinet/in6.h>
32813#endif
32814#ifdef HAVE_SYS_UN_H
32815#include <sys/un.h>
32816#endif
32817
32818
32819"
32820if test "x$ac_cv_header_net_if_h" = xyes
32821then :
32822  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32823
32824fi
32825ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32826#ifdef HAVE_SYS_TYPES_H
32827#include <sys/types.h>
32828#endif
32829#ifdef HAVE_SYS_TIME_H
32830#include <sys/time.h>
32831#endif
32832#ifdef HAVE_SYS_SELECT_H
32833#include <sys/select.h>
32834#elif defined(HAVE_UNISTD_H)
32835#include <unistd.h>
32836#endif
32837#ifdef HAVE_SYS_SOCKET_H
32838#include <sys/socket.h>
32839#endif
32840#ifdef HAVE_NETINET_IN_H
32841#include <netinet/in.h>
32842#endif
32843#ifdef HAVE_NETINET_IN6_H
32844#include <netinet/in6.h>
32845#endif
32846#ifdef HAVE_SYS_UN_H
32847#include <sys/un.h>
32848#endif
32849
32850
32851"
32852if test "x$ac_cv_header_netinet_in_h" = xyes
32853then :
32854  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32855
32856fi
32857ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32858#ifdef HAVE_SYS_TYPES_H
32859#include <sys/types.h>
32860#endif
32861#ifdef HAVE_SYS_TIME_H
32862#include <sys/time.h>
32863#endif
32864#ifdef HAVE_SYS_SELECT_H
32865#include <sys/select.h>
32866#elif defined(HAVE_UNISTD_H)
32867#include <unistd.h>
32868#endif
32869#ifdef HAVE_SYS_SOCKET_H
32870#include <sys/socket.h>
32871#endif
32872#ifdef HAVE_NETINET_IN_H
32873#include <netinet/in.h>
32874#endif
32875#ifdef HAVE_NETINET_IN6_H
32876#include <netinet/in6.h>
32877#endif
32878#ifdef HAVE_SYS_UN_H
32879#include <sys/un.h>
32880#endif
32881
32882
32883"
32884if test "x$ac_cv_header_netinet_in6_h" = xyes
32885then :
32886  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32887
32888fi
32889ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32890#ifdef HAVE_SYS_TYPES_H
32891#include <sys/types.h>
32892#endif
32893#ifdef HAVE_SYS_TIME_H
32894#include <sys/time.h>
32895#endif
32896#ifdef HAVE_SYS_SELECT_H
32897#include <sys/select.h>
32898#elif defined(HAVE_UNISTD_H)
32899#include <unistd.h>
32900#endif
32901#ifdef HAVE_SYS_SOCKET_H
32902#include <sys/socket.h>
32903#endif
32904#ifdef HAVE_NETINET_IN_H
32905#include <netinet/in.h>
32906#endif
32907#ifdef HAVE_NETINET_IN6_H
32908#include <netinet/in6.h>
32909#endif
32910#ifdef HAVE_SYS_UN_H
32911#include <sys/un.h>
32912#endif
32913
32914
32915"
32916if test "x$ac_cv_header_sys_un_h" = xyes
32917then :
32918  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32919
32920fi
32921ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32922#ifdef HAVE_SYS_TYPES_H
32923#include <sys/types.h>
32924#endif
32925#ifdef HAVE_SYS_TIME_H
32926#include <sys/time.h>
32927#endif
32928#ifdef HAVE_SYS_SELECT_H
32929#include <sys/select.h>
32930#elif defined(HAVE_UNISTD_H)
32931#include <unistd.h>
32932#endif
32933#ifdef HAVE_SYS_SOCKET_H
32934#include <sys/socket.h>
32935#endif
32936#ifdef HAVE_NETINET_IN_H
32937#include <netinet/in.h>
32938#endif
32939#ifdef HAVE_NETINET_IN6_H
32940#include <netinet/in6.h>
32941#endif
32942#ifdef HAVE_SYS_UN_H
32943#include <sys/un.h>
32944#endif
32945
32946
32947"
32948if test "x$ac_cv_header_linux_tcp_h" = xyes
32949then :
32950  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32951
32952fi
32953ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32954#ifdef HAVE_SYS_TYPES_H
32955#include <sys/types.h>
32956#endif
32957#ifdef HAVE_SYS_TIME_H
32958#include <sys/time.h>
32959#endif
32960#ifdef HAVE_SYS_SELECT_H
32961#include <sys/select.h>
32962#elif defined(HAVE_UNISTD_H)
32963#include <unistd.h>
32964#endif
32965#ifdef HAVE_SYS_SOCKET_H
32966#include <sys/socket.h>
32967#endif
32968#ifdef HAVE_NETINET_IN_H
32969#include <netinet/in.h>
32970#endif
32971#ifdef HAVE_NETINET_IN6_H
32972#include <netinet/in6.h>
32973#endif
32974#ifdef HAVE_SYS_UN_H
32975#include <sys/un.h>
32976#endif
32977
32978
32979"
32980if test "x$ac_cv_header_netinet_tcp_h" = xyes
32981then :
32982  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32983
32984fi
32985ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
32986#ifdef HAVE_SYS_TYPES_H
32987#include <sys/types.h>
32988#endif
32989#ifdef HAVE_SYS_TIME_H
32990#include <sys/time.h>
32991#endif
32992#ifdef HAVE_SYS_SELECT_H
32993#include <sys/select.h>
32994#elif defined(HAVE_UNISTD_H)
32995#include <unistd.h>
32996#endif
32997#ifdef HAVE_SYS_SOCKET_H
32998#include <sys/socket.h>
32999#endif
33000#ifdef HAVE_NETINET_IN_H
33001#include <netinet/in.h>
33002#endif
33003#ifdef HAVE_NETINET_IN6_H
33004#include <netinet/in6.h>
33005#endif
33006#ifdef HAVE_SYS_UN_H
33007#include <sys/un.h>
33008#endif
33009
33010
33011"
33012if test "x$ac_cv_header_netinet_udp_h" = xyes
33013then :
33014  printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33015
33016fi
33017ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33018#ifdef HAVE_SYS_TYPES_H
33019#include <sys/types.h>
33020#endif
33021#ifdef HAVE_SYS_TIME_H
33022#include <sys/time.h>
33023#endif
33024#ifdef HAVE_SYS_SELECT_H
33025#include <sys/select.h>
33026#elif defined(HAVE_UNISTD_H)
33027#include <unistd.h>
33028#endif
33029#ifdef HAVE_SYS_SOCKET_H
33030#include <sys/socket.h>
33031#endif
33032#ifdef HAVE_NETINET_IN_H
33033#include <netinet/in.h>
33034#endif
33035#ifdef HAVE_NETINET_IN6_H
33036#include <netinet/in6.h>
33037#endif
33038#ifdef HAVE_SYS_UN_H
33039#include <sys/un.h>
33040#endif
33041
33042
33043"
33044if test "x$ac_cv_header_netdb_h" = xyes
33045then :
33046  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33047
33048fi
33049ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33050#ifdef HAVE_SYS_TYPES_H
33051#include <sys/types.h>
33052#endif
33053#ifdef HAVE_SYS_TIME_H
33054#include <sys/time.h>
33055#endif
33056#ifdef HAVE_SYS_SELECT_H
33057#include <sys/select.h>
33058#elif defined(HAVE_UNISTD_H)
33059#include <unistd.h>
33060#endif
33061#ifdef HAVE_SYS_SOCKET_H
33062#include <sys/socket.h>
33063#endif
33064#ifdef HAVE_NETINET_IN_H
33065#include <netinet/in.h>
33066#endif
33067#ifdef HAVE_NETINET_IN6_H
33068#include <netinet/in6.h>
33069#endif
33070#ifdef HAVE_SYS_UN_H
33071#include <sys/un.h>
33072#endif
33073
33074
33075"
33076if test "x$ac_cv_header_sys_sockio_h" = xyes
33077then :
33078  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33079
33080fi
33081ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33082#ifdef HAVE_SYS_TYPES_H
33083#include <sys/types.h>
33084#endif
33085#ifdef HAVE_SYS_TIME_H
33086#include <sys/time.h>
33087#endif
33088#ifdef HAVE_SYS_SELECT_H
33089#include <sys/select.h>
33090#elif defined(HAVE_UNISTD_H)
33091#include <unistd.h>
33092#endif
33093#ifdef HAVE_SYS_SOCKET_H
33094#include <sys/socket.h>
33095#endif
33096#ifdef HAVE_NETINET_IN_H
33097#include <netinet/in.h>
33098#endif
33099#ifdef HAVE_NETINET_IN6_H
33100#include <netinet/in6.h>
33101#endif
33102#ifdef HAVE_SYS_UN_H
33103#include <sys/un.h>
33104#endif
33105
33106
33107"
33108if test "x$ac_cv_header_sys_stat_h" = xyes
33109then :
33110  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33111
33112fi
33113ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33114#ifdef HAVE_SYS_TYPES_H
33115#include <sys/types.h>
33116#endif
33117#ifdef HAVE_SYS_TIME_H
33118#include <sys/time.h>
33119#endif
33120#ifdef HAVE_SYS_SELECT_H
33121#include <sys/select.h>
33122#elif defined(HAVE_UNISTD_H)
33123#include <unistd.h>
33124#endif
33125#ifdef HAVE_SYS_SOCKET_H
33126#include <sys/socket.h>
33127#endif
33128#ifdef HAVE_NETINET_IN_H
33129#include <netinet/in.h>
33130#endif
33131#ifdef HAVE_NETINET_IN6_H
33132#include <netinet/in6.h>
33133#endif
33134#ifdef HAVE_SYS_UN_H
33135#include <sys/un.h>
33136#endif
33137
33138
33139"
33140if test "x$ac_cv_header_sys_param_h" = xyes
33141then :
33142  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33143
33144fi
33145ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33146#ifdef HAVE_SYS_TYPES_H
33147#include <sys/types.h>
33148#endif
33149#ifdef HAVE_SYS_TIME_H
33150#include <sys/time.h>
33151#endif
33152#ifdef HAVE_SYS_SELECT_H
33153#include <sys/select.h>
33154#elif defined(HAVE_UNISTD_H)
33155#include <unistd.h>
33156#endif
33157#ifdef HAVE_SYS_SOCKET_H
33158#include <sys/socket.h>
33159#endif
33160#ifdef HAVE_NETINET_IN_H
33161#include <netinet/in.h>
33162#endif
33163#ifdef HAVE_NETINET_IN6_H
33164#include <netinet/in6.h>
33165#endif
33166#ifdef HAVE_SYS_UN_H
33167#include <sys/un.h>
33168#endif
33169
33170
33171"
33172if test "x$ac_cv_header_termios_h" = xyes
33173then :
33174  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33175
33176fi
33177ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33178#ifdef HAVE_SYS_TYPES_H
33179#include <sys/types.h>
33180#endif
33181#ifdef HAVE_SYS_TIME_H
33182#include <sys/time.h>
33183#endif
33184#ifdef HAVE_SYS_SELECT_H
33185#include <sys/select.h>
33186#elif defined(HAVE_UNISTD_H)
33187#include <unistd.h>
33188#endif
33189#ifdef HAVE_SYS_SOCKET_H
33190#include <sys/socket.h>
33191#endif
33192#ifdef HAVE_NETINET_IN_H
33193#include <netinet/in.h>
33194#endif
33195#ifdef HAVE_NETINET_IN6_H
33196#include <netinet/in6.h>
33197#endif
33198#ifdef HAVE_SYS_UN_H
33199#include <sys/un.h>
33200#endif
33201
33202
33203"
33204if test "x$ac_cv_header_termio_h" = xyes
33205then :
33206  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33207
33208fi
33209ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33210#ifdef HAVE_SYS_TYPES_H
33211#include <sys/types.h>
33212#endif
33213#ifdef HAVE_SYS_TIME_H
33214#include <sys/time.h>
33215#endif
33216#ifdef HAVE_SYS_SELECT_H
33217#include <sys/select.h>
33218#elif defined(HAVE_UNISTD_H)
33219#include <unistd.h>
33220#endif
33221#ifdef HAVE_SYS_SOCKET_H
33222#include <sys/socket.h>
33223#endif
33224#ifdef HAVE_NETINET_IN_H
33225#include <netinet/in.h>
33226#endif
33227#ifdef HAVE_NETINET_IN6_H
33228#include <netinet/in6.h>
33229#endif
33230#ifdef HAVE_SYS_UN_H
33231#include <sys/un.h>
33232#endif
33233
33234
33235"
33236if test "x$ac_cv_header_fcntl_h" = xyes
33237then :
33238  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33239
33240fi
33241ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33242#ifdef HAVE_SYS_TYPES_H
33243#include <sys/types.h>
33244#endif
33245#ifdef HAVE_SYS_TIME_H
33246#include <sys/time.h>
33247#endif
33248#ifdef HAVE_SYS_SELECT_H
33249#include <sys/select.h>
33250#elif defined(HAVE_UNISTD_H)
33251#include <unistd.h>
33252#endif
33253#ifdef HAVE_SYS_SOCKET_H
33254#include <sys/socket.h>
33255#endif
33256#ifdef HAVE_NETINET_IN_H
33257#include <netinet/in.h>
33258#endif
33259#ifdef HAVE_NETINET_IN6_H
33260#include <netinet/in6.h>
33261#endif
33262#ifdef HAVE_SYS_UN_H
33263#include <sys/un.h>
33264#endif
33265
33266
33267"
33268if test "x$ac_cv_header_io_h" = xyes
33269then :
33270  printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33271
33272fi
33273ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33274#ifdef HAVE_SYS_TYPES_H
33275#include <sys/types.h>
33276#endif
33277#ifdef HAVE_SYS_TIME_H
33278#include <sys/time.h>
33279#endif
33280#ifdef HAVE_SYS_SELECT_H
33281#include <sys/select.h>
33282#elif defined(HAVE_UNISTD_H)
33283#include <unistd.h>
33284#endif
33285#ifdef HAVE_SYS_SOCKET_H
33286#include <sys/socket.h>
33287#endif
33288#ifdef HAVE_NETINET_IN_H
33289#include <netinet/in.h>
33290#endif
33291#ifdef HAVE_NETINET_IN6_H
33292#include <netinet/in6.h>
33293#endif
33294#ifdef HAVE_SYS_UN_H
33295#include <sys/un.h>
33296#endif
33297
33298
33299"
33300if test "x$ac_cv_header_pwd_h" = xyes
33301then :
33302  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33303
33304fi
33305ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33306#ifdef HAVE_SYS_TYPES_H
33307#include <sys/types.h>
33308#endif
33309#ifdef HAVE_SYS_TIME_H
33310#include <sys/time.h>
33311#endif
33312#ifdef HAVE_SYS_SELECT_H
33313#include <sys/select.h>
33314#elif defined(HAVE_UNISTD_H)
33315#include <unistd.h>
33316#endif
33317#ifdef HAVE_SYS_SOCKET_H
33318#include <sys/socket.h>
33319#endif
33320#ifdef HAVE_NETINET_IN_H
33321#include <netinet/in.h>
33322#endif
33323#ifdef HAVE_NETINET_IN6_H
33324#include <netinet/in6.h>
33325#endif
33326#ifdef HAVE_SYS_UN_H
33327#include <sys/un.h>
33328#endif
33329
33330
33331"
33332if test "x$ac_cv_header_utime_h" = xyes
33333then :
33334  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33335
33336fi
33337ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33338#ifdef HAVE_SYS_TYPES_H
33339#include <sys/types.h>
33340#endif
33341#ifdef HAVE_SYS_TIME_H
33342#include <sys/time.h>
33343#endif
33344#ifdef HAVE_SYS_SELECT_H
33345#include <sys/select.h>
33346#elif defined(HAVE_UNISTD_H)
33347#include <unistd.h>
33348#endif
33349#ifdef HAVE_SYS_SOCKET_H
33350#include <sys/socket.h>
33351#endif
33352#ifdef HAVE_NETINET_IN_H
33353#include <netinet/in.h>
33354#endif
33355#ifdef HAVE_NETINET_IN6_H
33356#include <netinet/in6.h>
33357#endif
33358#ifdef HAVE_SYS_UN_H
33359#include <sys/un.h>
33360#endif
33361
33362
33363"
33364if test "x$ac_cv_header_sys_utime_h" = xyes
33365then :
33366  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33367
33368fi
33369ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33370#ifdef HAVE_SYS_TYPES_H
33371#include <sys/types.h>
33372#endif
33373#ifdef HAVE_SYS_TIME_H
33374#include <sys/time.h>
33375#endif
33376#ifdef HAVE_SYS_SELECT_H
33377#include <sys/select.h>
33378#elif defined(HAVE_UNISTD_H)
33379#include <unistd.h>
33380#endif
33381#ifdef HAVE_SYS_SOCKET_H
33382#include <sys/socket.h>
33383#endif
33384#ifdef HAVE_NETINET_IN_H
33385#include <netinet/in.h>
33386#endif
33387#ifdef HAVE_NETINET_IN6_H
33388#include <netinet/in6.h>
33389#endif
33390#ifdef HAVE_SYS_UN_H
33391#include <sys/un.h>
33392#endif
33393
33394
33395"
33396if test "x$ac_cv_header_sys_poll_h" = xyes
33397then :
33398  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33399
33400fi
33401ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33402#ifdef HAVE_SYS_TYPES_H
33403#include <sys/types.h>
33404#endif
33405#ifdef HAVE_SYS_TIME_H
33406#include <sys/time.h>
33407#endif
33408#ifdef HAVE_SYS_SELECT_H
33409#include <sys/select.h>
33410#elif defined(HAVE_UNISTD_H)
33411#include <unistd.h>
33412#endif
33413#ifdef HAVE_SYS_SOCKET_H
33414#include <sys/socket.h>
33415#endif
33416#ifdef HAVE_NETINET_IN_H
33417#include <netinet/in.h>
33418#endif
33419#ifdef HAVE_NETINET_IN6_H
33420#include <netinet/in6.h>
33421#endif
33422#ifdef HAVE_SYS_UN_H
33423#include <sys/un.h>
33424#endif
33425
33426
33427"
33428if test "x$ac_cv_header_poll_h" = xyes
33429then :
33430  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33431
33432fi
33433ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33434#ifdef HAVE_SYS_TYPES_H
33435#include <sys/types.h>
33436#endif
33437#ifdef HAVE_SYS_TIME_H
33438#include <sys/time.h>
33439#endif
33440#ifdef HAVE_SYS_SELECT_H
33441#include <sys/select.h>
33442#elif defined(HAVE_UNISTD_H)
33443#include <unistd.h>
33444#endif
33445#ifdef HAVE_SYS_SOCKET_H
33446#include <sys/socket.h>
33447#endif
33448#ifdef HAVE_NETINET_IN_H
33449#include <netinet/in.h>
33450#endif
33451#ifdef HAVE_NETINET_IN6_H
33452#include <netinet/in6.h>
33453#endif
33454#ifdef HAVE_SYS_UN_H
33455#include <sys/un.h>
33456#endif
33457
33458
33459"
33460if test "x$ac_cv_header_socket_h" = xyes
33461then :
33462  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33463
33464fi
33465ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33466#ifdef HAVE_SYS_TYPES_H
33467#include <sys/types.h>
33468#endif
33469#ifdef HAVE_SYS_TIME_H
33470#include <sys/time.h>
33471#endif
33472#ifdef HAVE_SYS_SELECT_H
33473#include <sys/select.h>
33474#elif defined(HAVE_UNISTD_H)
33475#include <unistd.h>
33476#endif
33477#ifdef HAVE_SYS_SOCKET_H
33478#include <sys/socket.h>
33479#endif
33480#ifdef HAVE_NETINET_IN_H
33481#include <netinet/in.h>
33482#endif
33483#ifdef HAVE_NETINET_IN6_H
33484#include <netinet/in6.h>
33485#endif
33486#ifdef HAVE_SYS_UN_H
33487#include <sys/un.h>
33488#endif
33489
33490
33491"
33492if test "x$ac_cv_header_sys_resource_h" = xyes
33493then :
33494  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33495
33496fi
33497ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33498#ifdef HAVE_SYS_TYPES_H
33499#include <sys/types.h>
33500#endif
33501#ifdef HAVE_SYS_TIME_H
33502#include <sys/time.h>
33503#endif
33504#ifdef HAVE_SYS_SELECT_H
33505#include <sys/select.h>
33506#elif defined(HAVE_UNISTD_H)
33507#include <unistd.h>
33508#endif
33509#ifdef HAVE_SYS_SOCKET_H
33510#include <sys/socket.h>
33511#endif
33512#ifdef HAVE_NETINET_IN_H
33513#include <netinet/in.h>
33514#endif
33515#ifdef HAVE_NETINET_IN6_H
33516#include <netinet/in6.h>
33517#endif
33518#ifdef HAVE_SYS_UN_H
33519#include <sys/un.h>
33520#endif
33521
33522
33523"
33524if test "x$ac_cv_header_libgen_h" = xyes
33525then :
33526  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33527
33528fi
33529ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33530#ifdef HAVE_SYS_TYPES_H
33531#include <sys/types.h>
33532#endif
33533#ifdef HAVE_SYS_TIME_H
33534#include <sys/time.h>
33535#endif
33536#ifdef HAVE_SYS_SELECT_H
33537#include <sys/select.h>
33538#elif defined(HAVE_UNISTD_H)
33539#include <unistd.h>
33540#endif
33541#ifdef HAVE_SYS_SOCKET_H
33542#include <sys/socket.h>
33543#endif
33544#ifdef HAVE_NETINET_IN_H
33545#include <netinet/in.h>
33546#endif
33547#ifdef HAVE_NETINET_IN6_H
33548#include <netinet/in6.h>
33549#endif
33550#ifdef HAVE_SYS_UN_H
33551#include <sys/un.h>
33552#endif
33553
33554
33555"
33556if test "x$ac_cv_header_locale_h" = xyes
33557then :
33558  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33559
33560fi
33561ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33562#ifdef HAVE_SYS_TYPES_H
33563#include <sys/types.h>
33564#endif
33565#ifdef HAVE_SYS_TIME_H
33566#include <sys/time.h>
33567#endif
33568#ifdef HAVE_SYS_SELECT_H
33569#include <sys/select.h>
33570#elif defined(HAVE_UNISTD_H)
33571#include <unistd.h>
33572#endif
33573#ifdef HAVE_SYS_SOCKET_H
33574#include <sys/socket.h>
33575#endif
33576#ifdef HAVE_NETINET_IN_H
33577#include <netinet/in.h>
33578#endif
33579#ifdef HAVE_NETINET_IN6_H
33580#include <netinet/in6.h>
33581#endif
33582#ifdef HAVE_SYS_UN_H
33583#include <sys/un.h>
33584#endif
33585
33586
33587"
33588if test "x$ac_cv_header_stdbool_h" = xyes
33589then :
33590  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33591
33592fi
33593ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33594#ifdef HAVE_SYS_TYPES_H
33595#include <sys/types.h>
33596#endif
33597#ifdef HAVE_SYS_TIME_H
33598#include <sys/time.h>
33599#endif
33600#ifdef HAVE_SYS_SELECT_H
33601#include <sys/select.h>
33602#elif defined(HAVE_UNISTD_H)
33603#include <unistd.h>
33604#endif
33605#ifdef HAVE_SYS_SOCKET_H
33606#include <sys/socket.h>
33607#endif
33608#ifdef HAVE_NETINET_IN_H
33609#include <netinet/in.h>
33610#endif
33611#ifdef HAVE_NETINET_IN6_H
33612#include <netinet/in6.h>
33613#endif
33614#ifdef HAVE_SYS_UN_H
33615#include <sys/un.h>
33616#endif
33617
33618
33619"
33620if test "x$ac_cv_header_sys_filio_h" = xyes
33621then :
33622  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33623
33624fi
33625ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33626#ifdef HAVE_SYS_TYPES_H
33627#include <sys/types.h>
33628#endif
33629#ifdef HAVE_SYS_TIME_H
33630#include <sys/time.h>
33631#endif
33632#ifdef HAVE_SYS_SELECT_H
33633#include <sys/select.h>
33634#elif defined(HAVE_UNISTD_H)
33635#include <unistd.h>
33636#endif
33637#ifdef HAVE_SYS_SOCKET_H
33638#include <sys/socket.h>
33639#endif
33640#ifdef HAVE_NETINET_IN_H
33641#include <netinet/in.h>
33642#endif
33643#ifdef HAVE_NETINET_IN6_H
33644#include <netinet/in6.h>
33645#endif
33646#ifdef HAVE_SYS_UN_H
33647#include <sys/un.h>
33648#endif
33649
33650
33651"
33652if test "x$ac_cv_header_sys_wait_h" = xyes
33653then :
33654  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33655
33656fi
33657ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33658#ifdef HAVE_SYS_TYPES_H
33659#include <sys/types.h>
33660#endif
33661#ifdef HAVE_SYS_TIME_H
33662#include <sys/time.h>
33663#endif
33664#ifdef HAVE_SYS_SELECT_H
33665#include <sys/select.h>
33666#elif defined(HAVE_UNISTD_H)
33667#include <unistd.h>
33668#endif
33669#ifdef HAVE_SYS_SOCKET_H
33670#include <sys/socket.h>
33671#endif
33672#ifdef HAVE_NETINET_IN_H
33673#include <netinet/in.h>
33674#endif
33675#ifdef HAVE_NETINET_IN6_H
33676#include <netinet/in6.h>
33677#endif
33678#ifdef HAVE_SYS_UN_H
33679#include <sys/un.h>
33680#endif
33681
33682
33683"
33684if test "x$ac_cv_header_setjmp_h" = xyes
33685then :
33686  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33687
33688fi
33689
33690
33691
33692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33693printf %s "checking for an ANSI C-conforming const... " >&6; }
33694if test ${ac_cv_c_const+y}
33695then :
33696  printf %s "(cached) " >&6
33697else $as_nop
33698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33699/* end confdefs.h.  */
33700
33701int main (void)
33702{
33703
33704#ifndef __cplusplus
33705  /* Ultrix mips cc rejects this sort of thing.  */
33706  typedef int charset[2];
33707  const charset cs = { 0, 0 };
33708  /* SunOS 4.1.1 cc rejects this.  */
33709  char const *const *pcpcc;
33710  char **ppc;
33711  /* NEC SVR4.0.2 mips cc rejects this.  */
33712  struct point {int x, y;};
33713  static struct point const zero = {0,0};
33714  /* IBM XL C 1.02.0.0 rejects this.
33715     It does not let you subtract one const X* pointer from another in
33716     an arm of an if-expression whose if-part is not a constant
33717     expression */
33718  const char *g = "string";
33719  pcpcc = &g + (g ? g-g : 0);
33720  /* HPUX 7.0 cc rejects these. */
33721  ++pcpcc;
33722  ppc = (char**) pcpcc;
33723  pcpcc = (char const *const *) ppc;
33724  { /* SCO 3.2v4 cc rejects this sort of thing.  */
33725    char tx;
33726    char *t = &tx;
33727    char const *s = 0 ? (char *) 0 : (char const *) 0;
33728
33729    *t++ = 0;
33730    if (s) return 0;
33731  }
33732  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33733    int x[] = {25, 17};
33734    const int *foo = &x[0];
33735    ++foo;
33736  }
33737  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33738    typedef const int *iptr;
33739    iptr p = 0;
33740    ++p;
33741  }
33742  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33743       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33744    struct s { int j; const int *ap[3]; } bx;
33745    struct s *b = &bx; b->j = 5;
33746  }
33747  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33748    const int foo = 10;
33749    if (!foo) return 0;
33750  }
33751  return !cs[0] && !zero.x;
33752#endif
33753
33754 ;
33755 return 0;
33756}
33757_ACEOF
33758if ac_fn_c_try_compile "$LINENO"
33759then :
33760  ac_cv_c_const=yes
33761else $as_nop
33762  ac_cv_c_const=no
33763fi
33764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33765fi
33766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33767printf "%s\n" "$ac_cv_c_const" >&6; }
33768if test $ac_cv_c_const = no; then
33769
33770printf "%s\n" "#define const /**/" >>confdefs.h
33771
33772fi
33773
33774
33775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33776printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33777if test ${curl_cv_variadic_macros_c99+y}
33778then :
33779  printf %s "(cached) " >&6
33780else $as_nop
33781
33782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33783/* end confdefs.h.  */
33784
33785
33786#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33787#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33788        int fun3(int arg1, int arg2, int arg3);
33789        int fun2(int arg1, int arg2);
33790        int fun3(int arg1, int arg2, int arg3)
33791        { return arg1 + arg2 + arg3; }
33792        int fun2(int arg1, int arg2)
33793        { return arg1 + arg2; }
33794
33795int main (void)
33796{
33797
33798        int res3 = c99_vmacro3(1, 2, 3);
33799        int res2 = c99_vmacro2(1, 2);
33800
33801 ;
33802 return 0;
33803}
33804
33805_ACEOF
33806if ac_fn_c_try_compile "$LINENO"
33807then :
33808
33809      curl_cv_variadic_macros_c99="yes"
33810
33811else $as_nop
33812
33813      curl_cv_variadic_macros_c99="no"
33814
33815fi
33816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33817
33818fi
33819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33820printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33821  case "$curl_cv_variadic_macros_c99" in
33822    yes)
33823
33824printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33825
33826      ;;
33827  esac
33828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33829printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33830if test ${curl_cv_variadic_macros_gcc+y}
33831then :
33832  printf %s "(cached) " >&6
33833else $as_nop
33834
33835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33836/* end confdefs.h.  */
33837
33838
33839#define gcc_vmacro3(first, args...) fun3(first, args)
33840#define gcc_vmacro2(first, args...) fun2(first, args)
33841        int fun3(int arg1, int arg2, int arg3);
33842        int fun2(int arg1, int arg2);
33843        int fun3(int arg1, int arg2, int arg3)
33844        { return arg1 + arg2 + arg3; }
33845        int fun2(int arg1, int arg2)
33846        { return arg1 + arg2; }
33847
33848int main (void)
33849{
33850
33851        int res3 = gcc_vmacro3(1, 2, 3);
33852        int res2 = gcc_vmacro2(1, 2);
33853
33854 ;
33855 return 0;
33856}
33857
33858_ACEOF
33859if ac_fn_c_try_compile "$LINENO"
33860then :
33861
33862      curl_cv_variadic_macros_gcc="yes"
33863
33864else $as_nop
33865
33866      curl_cv_variadic_macros_gcc="no"
33867
33868fi
33869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33870
33871fi
33872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33873printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33874  case "$curl_cv_variadic_macros_gcc" in
33875    yes)
33876
33877printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33878
33879      ;;
33880  esac
33881
33882ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33883if test "x$ac_cv_type_size_t" = xyes
33884then :
33885
33886else $as_nop
33887
33888printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33889
33890fi
33891
33892
33893
33894    ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33895if test "x$ac_cv_header_sys_types_h" = xyes
33896then :
33897  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33898
33899fi
33900ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33901if test "x$ac_cv_header_sys_time_h" = xyes
33902then :
33903  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33904
33905fi
33906ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33907if test "x$ac_cv_header_sys_socket_h" = xyes
33908then :
33909  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33910
33911fi
33912
33913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33914printf %s "checking for struct timeval... " >&6; }
33915if test ${curl_cv_struct_timeval+y}
33916then :
33917  printf %s "(cached) " >&6
33918else $as_nop
33919
33920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33921/* end confdefs.h.  */
33922
33923
33924#undef inline
33925#ifdef HAVE_WINDOWS_H
33926#ifndef WIN32_LEAN_AND_MEAN
33927#define WIN32_LEAN_AND_MEAN
33928#endif
33929#include <windows.h>
33930#ifdef HAVE_WINSOCK2_H
33931#include <winsock2.h>
33932#endif
33933#endif
33934#ifdef HAVE_SYS_TYPES_H
33935#include <sys/types.h>
33936#endif
33937#ifdef HAVE_SYS_TIME_H
33938#include <sys/time.h>
33939#endif
33940#include <time.h>
33941#ifdef HAVE_SYS_SOCKET_H
33942#include <sys/socket.h>
33943#endif
33944
33945int main (void)
33946{
33947
33948        struct timeval ts;
33949        ts.tv_sec  = 0;
33950        ts.tv_usec = 0;
33951
33952 ;
33953 return 0;
33954}
33955
33956_ACEOF
33957if ac_fn_c_try_compile "$LINENO"
33958then :
33959
33960      curl_cv_struct_timeval="yes"
33961
33962else $as_nop
33963
33964      curl_cv_struct_timeval="no"
33965
33966fi
33967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33968
33969fi
33970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
33971printf "%s\n" "$curl_cv_struct_timeval" >&6; }
33972  case "$curl_cv_struct_timeval" in
33973    yes)
33974
33975printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
33976
33977      ;;
33978  esac
33979
33980
33981
33982    if test "x$cross_compiling" != xyes; then
33983
33984            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
33985printf %s "checking run-time libs availability... " >&6; }
33986
33987   case $host_os in
33988     darwin*)
33989      if test "$cross_compiling" = yes
33990then :
33991  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33992printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33993as_fn_error $? "cannot run test program while cross compiling
33994See \`config.log' for more details" "$LINENO" 5; }
33995else $as_nop
33996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33997/* end confdefs.h.  */
33998
33999int main()
34000{
34001  return 0;
34002}
34003
34004_ACEOF
34005if ac_fn_c_try_run "$LINENO"
34006then :
34007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34008printf "%s\n" "fine" >&6; }
34009else $as_nop
34010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34011printf "%s\n" "failed" >&6; }
34012    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34013
34014fi
34015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34016  conftest.$ac_objext conftest.beam conftest.$ac_ext
34017fi
34018
34019     ;;
34020     *)
34021      oldcc=$CC
34022      old=$LD_LIBRARY_PATH
34023      CC="sh ./run-compiler"
34024      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34025      export LD_LIBRARY_PATH
34026      if test "$cross_compiling" = yes
34027then :
34028  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34029printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34030as_fn_error $? "cannot run test program while cross compiling
34031See \`config.log' for more details" "$LINENO" 5; }
34032else $as_nop
34033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34034/* end confdefs.h.  */
34035
34036int main()
34037{
34038  return 0;
34039}
34040
34041_ACEOF
34042if ac_fn_c_try_run "$LINENO"
34043then :
34044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34045printf "%s\n" "fine" >&6; }
34046else $as_nop
34047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34048printf "%s\n" "failed" >&6; }
34049    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34050
34051fi
34052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34053  conftest.$ac_objext conftest.beam conftest.$ac_ext
34054fi
34055
34056      LD_LIBRARY_PATH=$old # restore
34057      CC=$oldcc
34058     ;;
34059   esac
34060
34061
34062      fi
34063
34064
34065
34066
34067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34068printf %s "checking size of size_t... " >&6; }
34069  r=0
34070    for typesize in 8 4 2 16 1; do
34071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34072/* end confdefs.h.  */
34073
34074#include <sys/types.h>
34075
34076
34077int main (void)
34078{
34079switch(0) {
34080       case 0:
34081       case (sizeof(size_t) == $typesize):;
34082     }
34083
34084 ;
34085 return 0;
34086}
34087_ACEOF
34088if ac_fn_c_try_compile "$LINENO"
34089then :
34090
34091       r=$typesize
34092else $as_nop
34093
34094       r=0
34095fi
34096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34097        if test $r -gt 0; then
34098      break;
34099    fi
34100  done
34101  if test $r -eq 0; then
34102    as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34103  fi
34104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34105printf "%s\n" "$r" >&6; }
34106    tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34107  eval "$tname=$r"
34108
34109
34110printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34111
34112
34113
34114
34115
34116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34117printf %s "checking size of long... " >&6; }
34118  r=0
34119    for typesize in 8 4 2 16 1; do
34120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34121/* end confdefs.h.  */
34122
34123#include <sys/types.h>
34124
34125
34126int main (void)
34127{
34128switch(0) {
34129       case 0:
34130       case (sizeof(long) == $typesize):;
34131     }
34132
34133 ;
34134 return 0;
34135}
34136_ACEOF
34137if ac_fn_c_try_compile "$LINENO"
34138then :
34139
34140       r=$typesize
34141else $as_nop
34142
34143       r=0
34144fi
34145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34146        if test $r -gt 0; then
34147      break;
34148    fi
34149  done
34150  if test $r -eq 0; then
34151    as_fn_error $? "Failed to find size of long" "$LINENO" 5
34152  fi
34153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34154printf "%s\n" "$r" >&6; }
34155    tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34156  eval "$tname=$r"
34157
34158
34159printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34160
34161
34162
34163
34164
34165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34166printf %s "checking size of int... " >&6; }
34167  r=0
34168    for typesize in 8 4 2 16 1; do
34169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34170/* end confdefs.h.  */
34171
34172#include <sys/types.h>
34173
34174
34175int main (void)
34176{
34177switch(0) {
34178       case 0:
34179       case (sizeof(int) == $typesize):;
34180     }
34181
34182 ;
34183 return 0;
34184}
34185_ACEOF
34186if ac_fn_c_try_compile "$LINENO"
34187then :
34188
34189       r=$typesize
34190else $as_nop
34191
34192       r=0
34193fi
34194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34195        if test $r -gt 0; then
34196      break;
34197    fi
34198  done
34199  if test $r -eq 0; then
34200    as_fn_error $? "Failed to find size of int" "$LINENO" 5
34201  fi
34202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34203printf "%s\n" "$r" >&6; }
34204    tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34205  eval "$tname=$r"
34206
34207
34208printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34209
34210
34211
34212
34213
34214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34215printf %s "checking size of time_t... " >&6; }
34216  r=0
34217    for typesize in 8 4 2 16 1; do
34218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34219/* end confdefs.h.  */
34220
34221#include <sys/types.h>
34222
34223
34224int main (void)
34225{
34226switch(0) {
34227       case 0:
34228       case (sizeof(time_t) == $typesize):;
34229     }
34230
34231 ;
34232 return 0;
34233}
34234_ACEOF
34235if ac_fn_c_try_compile "$LINENO"
34236then :
34237
34238       r=$typesize
34239else $as_nop
34240
34241       r=0
34242fi
34243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34244        if test $r -gt 0; then
34245      break;
34246    fi
34247  done
34248  if test $r -eq 0; then
34249    as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34250  fi
34251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34252printf "%s\n" "$r" >&6; }
34253    tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34254  eval "$tname=$r"
34255
34256
34257printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34258
34259
34260
34261
34262
34263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34264printf %s "checking size of off_t... " >&6; }
34265  r=0
34266    for typesize in 8 4 2 16 1; do
34267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34268/* end confdefs.h.  */
34269
34270#include <sys/types.h>
34271
34272
34273int main (void)
34274{
34275switch(0) {
34276       case 0:
34277       case (sizeof(off_t) == $typesize):;
34278     }
34279
34280 ;
34281 return 0;
34282}
34283_ACEOF
34284if ac_fn_c_try_compile "$LINENO"
34285then :
34286
34287       r=$typesize
34288else $as_nop
34289
34290       r=0
34291fi
34292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34293        if test $r -gt 0; then
34294      break;
34295    fi
34296  done
34297  if test $r -eq 0; then
34298    as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34299  fi
34300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34301printf "%s\n" "$r" >&6; }
34302    tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34303  eval "$tname=$r"
34304
34305
34306printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34307
34308
34309
34310
34311o=$CPPFLAGS
34312CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34313
34314
34315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34316printf %s "checking size of curl_off_t... " >&6; }
34317  r=0
34318    for typesize in 8 4 2 16 1; do
34319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34320/* end confdefs.h.  */
34321
34322#include <sys/types.h>
34323
34324#include <curl/system.h>
34325
34326
34327int main (void)
34328{
34329switch(0) {
34330       case 0:
34331       case (sizeof(curl_off_t) == $typesize):;
34332     }
34333
34334 ;
34335 return 0;
34336}
34337_ACEOF
34338if ac_fn_c_try_compile "$LINENO"
34339then :
34340
34341       r=$typesize
34342else $as_nop
34343
34344       r=0
34345fi
34346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34347        if test $r -gt 0; then
34348      break;
34349    fi
34350  done
34351  if test $r -eq 0; then
34352    as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34353  fi
34354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34355printf "%s\n" "$r" >&6; }
34356    tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34357  eval "$tname=$r"
34358
34359
34360printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34361
34362
34363
34364
34365
34366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5
34367printf %s "checking size of curl_socket_t... " >&6; }
34368  r=0
34369    for typesize in 8 4 2 16 1; do
34370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34371/* end confdefs.h.  */
34372
34373#include <sys/types.h>
34374
34375#include <curl/curl.h>
34376
34377
34378int main (void)
34379{
34380switch(0) {
34381       case 0:
34382       case (sizeof(curl_socket_t) == $typesize):;
34383     }
34384
34385 ;
34386 return 0;
34387}
34388_ACEOF
34389if ac_fn_c_try_compile "$LINENO"
34390then :
34391
34392       r=$typesize
34393else $as_nop
34394
34395       r=0
34396fi
34397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34398        if test $r -gt 0; then
34399      break;
34400    fi
34401  done
34402  if test $r -eq 0; then
34403    as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5
34404  fi
34405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34406printf "%s\n" "$r" >&6; }
34407    tname=$(echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_")
34408  eval "$tname=$r"
34409
34410
34411printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h
34412
34413
34414
34415CPPFLAGS=$o
34416
34417ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34418if test "x$ac_cv_type_long_long" = xyes
34419then :
34420
34421printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34422
34423   longlong="yes"
34424
34425fi
34426
34427
34428if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34429  as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
34430fi
34431
34432# check for ssize_t
34433ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34434if test "x$ac_cv_type_ssize_t" = xyes
34435then :
34436
34437else $as_nop
34438
34439printf "%s\n" "#define ssize_t int" >>confdefs.h
34440
34441fi
34442
34443
34444# check for bool type
34445ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34446#ifdef HAVE_SYS_TYPES_H
34447#include <sys/types.h>
34448#endif
34449#ifdef HAVE_STDBOOL_H
34450#include <stdbool.h>
34451#endif
34452
34453"
34454if test "x$ac_cv_type_bool" = xyes
34455then :
34456
34457
34458printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34459
34460
34461fi
34462
34463
34464# check for sa_family_t
34465ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34466#ifdef HAVE_SYS_SOCKET_H
34467#include <sys/socket.h>
34468#endif
34469
34470"
34471if test "x$ac_cv_type_sa_family_t" = xyes
34472then :
34473
34474printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34475
34476else $as_nop
34477
34478   # The windows name?
34479   ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34480#ifdef HAVE_SYS_SOCKET_H
34481#include <sys/socket.h>
34482#endif
34483
34484"
34485if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34486then :
34487
34488printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34489
34490else $as_nop
34491
34492printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34493
34494fi
34495
34496
34497fi
34498
34499
34500# check for suseconds_t
34501ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34502#ifdef HAVE_SYS_TYPES_H
34503#include <sys/types.h>
34504#endif
34505#ifdef HAVE_SYS_TIME_H
34506#include <sys/time.h>
34507#endif
34508
34509"
34510if test "x$ac_cv_type_suseconds_t" = xyes
34511then :
34512
34513
34514printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34515
34516
34517fi
34518
34519
34520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34521printf %s "checking if time_t is unsigned... " >&6; }
34522
34523   case $host_os in
34524     darwin*)
34525      if test "$cross_compiling" = yes
34526then :
34527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34528printf "%s\n" "no" >&6; }
34529
34530else $as_nop
34531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34532/* end confdefs.h.  */
34533
34534  #include <time.h>
34535  #include <limits.h>
34536  int main(void) {
34537    time_t t = -1;
34538    return (t < 0);
34539  }
34540
34541_ACEOF
34542if ac_fn_c_try_run "$LINENO"
34543then :
34544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34545printf "%s\n" "yes" >&6; }
34546
34547printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34548
34549
34550else $as_nop
34551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34552printf "%s\n" "no" >&6; }
34553
34554fi
34555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34556  conftest.$ac_objext conftest.beam conftest.$ac_ext
34557fi
34558
34559     ;;
34560     *)
34561      oldcc=$CC
34562      old=$LD_LIBRARY_PATH
34563      CC="sh ./run-compiler"
34564      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34565      export LD_LIBRARY_PATH
34566      if test "$cross_compiling" = yes
34567then :
34568    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34569printf "%s\n" "no" >&6; }
34570
34571else $as_nop
34572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34573/* end confdefs.h.  */
34574
34575  #include <time.h>
34576  #include <limits.h>
34577  int main(void) {
34578    time_t t = -1;
34579    return (t < 0);
34580  }
34581
34582_ACEOF
34583if ac_fn_c_try_run "$LINENO"
34584then :
34585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34586printf "%s\n" "yes" >&6; }
34587
34588printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34589
34590
34591else $as_nop
34592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34593printf "%s\n" "no" >&6; }
34594
34595fi
34596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34597  conftest.$ac_objext conftest.beam conftest.$ac_ext
34598fi
34599
34600      LD_LIBRARY_PATH=$old # restore
34601      CC=$oldcc
34602     ;;
34603   esac
34604
34605
34606
34607curl_includes_poll="\
34608/* includes start */
34609#ifdef HAVE_SYS_TYPES_H
34610#  include <sys/types.h>
34611#endif
34612#ifdef HAVE_POLL_H
34613#  include <poll.h>
34614#endif
34615#ifdef HAVE_SYS_POLL_H
34616#  include <sys/poll.h>
34617#endif
34618/* includes end */"
34619  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34620"
34621if test "x$ac_cv_header_sys_types_h" = xyes
34622then :
34623  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34624
34625fi
34626ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34627"
34628if test "x$ac_cv_header_poll_h" = xyes
34629then :
34630  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34631
34632fi
34633ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34634"
34635if test "x$ac_cv_header_sys_poll_h" = xyes
34636then :
34637  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34638
34639fi
34640
34641
34642
34643    #
34644  tst_poll_events_macro_defined="unknown"
34645  #
34646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647/* end confdefs.h.  */
34648
34649
34650      $curl_includes_poll
34651
34652int main (void)
34653{
34654
34655#if defined(events) || defined(revents)
34656      return 0;
34657#else
34658      force compilation error
34659#endif
34660
34661 ;
34662 return 0;
34663}
34664
34665_ACEOF
34666if ac_fn_c_try_compile "$LINENO"
34667then :
34668
34669    tst_poll_events_macro_defined="yes"
34670
34671else $as_nop
34672
34673    tst_poll_events_macro_defined="no"
34674
34675fi
34676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34677  #
34678  if test "$tst_poll_events_macro_defined" = "yes"; then
34679    if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34680
34681cat >>confdefs.h <<_EOF
34682#define CURL_PULL_SYS_POLL_H 1
34683_EOF
34684
34685    fi
34686  fi
34687  #
34688
34689
34690
34691  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34692#undef inline
34693#ifdef HAVE_WINDOWS_H
34694#ifndef WIN32_LEAN_AND_MEAN
34695#define WIN32_LEAN_AND_MEAN
34696#endif
34697#include <windows.h>
34698#ifdef HAVE_WINSOCK2_H
34699#include <winsock2.h>
34700#endif
34701#else
34702#ifdef HAVE_SYS_TYPES_H
34703#include <sys/types.h>
34704#endif
34705#ifdef HAVE_SYS_SOCKET_H
34706#include <sys/socket.h>
34707#endif
34708#ifdef HAVE_NETINET_IN_H
34709#include <netinet/in.h>
34710#endif
34711#ifdef HAVE_ARPA_INET_H
34712#include <arpa/inet.h>
34713#endif
34714#endif
34715
34716"
34717if test "x$ac_cv_type_in_addr_t" = xyes
34718then :
34719
34720else $as_nop
34721
34722        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34723printf %s "checking for in_addr_t equivalent... " >&6; }
34724if test ${curl_cv_in_addr_t_equiv+y}
34725then :
34726  printf %s "(cached) " >&6
34727else $as_nop
34728
34729      curl_cv_in_addr_t_equiv="unknown"
34730      for t in "unsigned long" int size_t unsigned long; do
34731        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34732          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733/* end confdefs.h.  */
34734
34735
34736#undef inline
34737#ifdef HAVE_WINDOWS_H
34738#ifndef WIN32_LEAN_AND_MEAN
34739#define WIN32_LEAN_AND_MEAN
34740#endif
34741#include <windows.h>
34742#ifdef HAVE_WINSOCK2_H
34743#include <winsock2.h>
34744#endif
34745#else
34746#ifdef HAVE_SYS_TYPES_H
34747#include <sys/types.h>
34748#endif
34749#ifdef HAVE_SYS_SOCKET_H
34750#include <sys/socket.h>
34751#endif
34752#ifdef HAVE_NETINET_IN_H
34753#include <netinet/in.h>
34754#endif
34755#ifdef HAVE_ARPA_INET_H
34756#include <arpa/inet.h>
34757#endif
34758#endif
34759
34760int main (void)
34761{
34762
34763              $t data = inet_addr ("1.2.3.4");
34764
34765 ;
34766 return 0;
34767}
34768
34769_ACEOF
34770if ac_fn_c_try_link "$LINENO"
34771then :
34772
34773            curl_cv_in_addr_t_equiv="$t"
34774
34775fi
34776rm -f core conftest.err conftest.$ac_objext conftest.beam \
34777    conftest$ac_exeext conftest.$ac_ext
34778        fi
34779      done
34780
34781fi
34782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34783printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34784    case "$curl_cv_in_addr_t_equiv" in
34785      unknown)
34786        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34787        ;;
34788      *)
34789
34790printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34791
34792        ;;
34793    esac
34794
34795fi
34796
34797
34798
34799
34800   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34801#undef inline
34802#ifdef HAVE_WINDOWS_H
34803#ifndef WIN32_LEAN_AND_MEAN
34804#define WIN32_LEAN_AND_MEAN
34805#endif
34806#include <windows.h>
34807#ifdef HAVE_WINSOCK2_H
34808#include <winsock2.h>
34809#endif
34810#else
34811#ifdef HAVE_SYS_TYPES_H
34812#include <sys/types.h>
34813#endif
34814#ifdef HAVE_SYS_SOCKET_H
34815#include <sys/socket.h>
34816#endif
34817#ifdef HAVE_NETINET_IN_H
34818#include <netinet/in.h>
34819#endif
34820#ifdef HAVE_ARPA_INET_H
34821#include <arpa/inet.h>
34822#endif
34823#endif
34824
34825"
34826if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34827then :
34828
34829printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34830
34831fi
34832
34833
34834
34835
34836      ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34837if test "x$ac_cv_header_sys_select_h" = xyes
34838then :
34839  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34840
34841fi
34842ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34843if test "x$ac_cv_header_sys_socket_h" = xyes
34844then :
34845  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34846
34847fi
34848
34849  #
34850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34851printf %s "checking for select... " >&6; }
34852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853/* end confdefs.h.  */
34854
34855
34856#undef inline
34857#ifdef HAVE_WINDOWS_H
34858#ifndef WIN32_LEAN_AND_MEAN
34859#define WIN32_LEAN_AND_MEAN
34860#endif
34861#include <windows.h>
34862#ifdef HAVE_WINSOCK2_H
34863#include <winsock2.h>
34864#endif
34865#endif
34866#ifdef HAVE_SYS_TYPES_H
34867#include <sys/types.h>
34868#endif
34869#ifdef HAVE_SYS_TIME_H
34870#include <sys/time.h>
34871#endif
34872#include <time.h>
34873#ifndef HAVE_WINDOWS_H
34874#ifdef HAVE_SYS_SELECT_H
34875#include <sys/select.h>
34876#elif defined(HAVE_UNISTD_H)
34877#include <unistd.h>
34878#endif
34879#ifdef HAVE_SYS_SOCKET_H
34880#include <sys/socket.h>
34881#endif
34882$curl_includes_bsdsocket
34883#endif
34884
34885int main (void)
34886{
34887
34888      select(0, 0, 0, 0, 0);
34889
34890 ;
34891 return 0;
34892}
34893
34894_ACEOF
34895if ac_fn_c_try_link "$LINENO"
34896then :
34897
34898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34899printf "%s\n" "yes" >&6; }
34900    curl_cv_select="yes"
34901
34902else $as_nop
34903
34904    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905printf "%s\n" "no" >&6; }
34906    curl_cv_select="no"
34907
34908fi
34909rm -f core conftest.err conftest.$ac_objext conftest.beam \
34910    conftest$ac_exeext conftest.$ac_ext
34911  #
34912  if test "$curl_cv_select" = "yes"; then
34913
34914printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34915
34916    curl_cv_func_select="yes"
34917  fi
34918
34919
34920
34921      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34922if test "x$ac_cv_header_sys_types_h" = xyes
34923then :
34924  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34925
34926fi
34927ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34928if test "x$ac_cv_header_sys_socket_h" = xyes
34929then :
34930  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34931
34932fi
34933
34934  #
34935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34936printf %s "checking for recv... " >&6; }
34937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938/* end confdefs.h.  */
34939
34940
34941#undef inline
34942#ifdef HAVE_WINDOWS_H
34943#ifndef WIN32_LEAN_AND_MEAN
34944#define WIN32_LEAN_AND_MEAN
34945#endif
34946#include <windows.h>
34947#ifdef HAVE_WINSOCK2_H
34948#include <winsock2.h>
34949#endif
34950#else
34951$curl_includes_bsdsocket
34952#ifdef HAVE_SYS_TYPES_H
34953#include <sys/types.h>
34954#endif
34955#ifdef HAVE_SYS_SOCKET_H
34956#include <sys/socket.h>
34957#endif
34958#endif
34959
34960int main (void)
34961{
34962
34963      recv(0, 0, 0, 0);
34964
34965 ;
34966 return 0;
34967}
34968
34969_ACEOF
34970if ac_fn_c_try_link "$LINENO"
34971then :
34972
34973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974printf "%s\n" "yes" >&6; }
34975    curl_cv_recv="yes"
34976
34977else $as_nop
34978
34979    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34980printf "%s\n" "no" >&6; }
34981    curl_cv_recv="no"
34982
34983fi
34984rm -f core conftest.err conftest.$ac_objext conftest.beam \
34985    conftest$ac_exeext conftest.$ac_ext
34986  #
34987  if test "$curl_cv_recv" = "yes"; then
34988
34989printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
34990
34991      curl_cv_func_recv="yes"
34992  else
34993    as_fn_error $? "Unable to link function recv" "$LINENO" 5
34994  fi
34995
34996
34997      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34998if test "x$ac_cv_header_sys_types_h" = xyes
34999then :
35000  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35001
35002fi
35003ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35004if test "x$ac_cv_header_sys_socket_h" = xyes
35005then :
35006  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35007
35008fi
35009
35010  #
35011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35012printf %s "checking for send... " >&6; }
35013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35014/* end confdefs.h.  */
35015
35016
35017#undef inline
35018#ifdef HAVE_WINDOWS_H
35019#ifndef WIN32_LEAN_AND_MEAN
35020#define WIN32_LEAN_AND_MEAN
35021#endif
35022#include <windows.h>
35023#ifdef HAVE_WINSOCK2_H
35024#include <winsock2.h>
35025#endif
35026#else
35027$curl_includes_bsdsocket
35028#ifdef HAVE_SYS_TYPES_H
35029#include <sys/types.h>
35030#endif
35031#ifdef HAVE_SYS_SOCKET_H
35032#include <sys/socket.h>
35033#endif
35034#endif
35035
35036int main (void)
35037{
35038
35039      send(0, 0, 0, 0);
35040
35041 ;
35042 return 0;
35043}
35044
35045_ACEOF
35046if ac_fn_c_try_link "$LINENO"
35047then :
35048
35049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35050printf "%s\n" "yes" >&6; }
35051    curl_cv_send="yes"
35052
35053else $as_nop
35054
35055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35056printf "%s\n" "no" >&6; }
35057    curl_cv_send="no"
35058
35059fi
35060rm -f core conftest.err conftest.$ac_objext conftest.beam \
35061    conftest$ac_exeext conftest.$ac_ext
35062  #
35063  if test "$curl_cv_send" = "yes"; then
35064
35065printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35066
35067    curl_cv_func_send="yes"
35068  else
35069    as_fn_error $? "Unable to link function send" "$LINENO" 5
35070  fi
35071
35072
35073  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35074if test "x$ac_cv_header_sys_types_h" = xyes
35075then :
35076  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35077
35078fi
35079ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35080if test "x$ac_cv_header_sys_socket_h" = xyes
35081then :
35082  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35083
35084fi
35085
35086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35087printf %s "checking for MSG_NOSIGNAL... " >&6; }
35088if test ${curl_cv_msg_nosignal+y}
35089then :
35090  printf %s "(cached) " >&6
35091else $as_nop
35092
35093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35094/* end confdefs.h.  */
35095
35096
35097#undef inline
35098#ifdef HAVE_WINDOWS_H
35099#ifndef WIN32_LEAN_AND_MEAN
35100#define WIN32_LEAN_AND_MEAN
35101#endif
35102#include <windows.h>
35103#ifdef HAVE_WINSOCK2_H
35104#include <winsock2.h>
35105#endif
35106#else
35107#ifdef HAVE_SYS_TYPES_H
35108#include <sys/types.h>
35109#endif
35110#ifdef HAVE_SYS_SOCKET_H
35111#include <sys/socket.h>
35112#endif
35113#endif
35114
35115int main (void)
35116{
35117
35118        int flag=MSG_NOSIGNAL;
35119
35120 ;
35121 return 0;
35122}
35123
35124_ACEOF
35125if ac_fn_c_try_compile "$LINENO"
35126then :
35127
35128      curl_cv_msg_nosignal="yes"
35129
35130else $as_nop
35131
35132      curl_cv_msg_nosignal="no"
35133
35134fi
35135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35136
35137fi
35138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35139printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35140  case "$curl_cv_msg_nosignal" in
35141    yes)
35142
35143printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35144
35145      ;;
35146  esac
35147
35148
35149
35150curl_includes_unistd="\
35151/* includes start */
35152#ifdef HAVE_SYS_TYPES_H
35153#  include <sys/types.h>
35154#endif
35155#ifdef HAVE_UNISTD_H
35156#  include <unistd.h>
35157#endif
35158/* includes end */"
35159  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35160"
35161if test "x$ac_cv_header_sys_types_h" = xyes
35162then :
35163  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35164
35165fi
35166ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35167"
35168if test "x$ac_cv_header_unistd_h" = xyes
35169then :
35170  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35171
35172fi
35173
35174
35175
35176    #
35177  tst_links_alarm="unknown"
35178  tst_proto_alarm="unknown"
35179  tst_compi_alarm="unknown"
35180  tst_allow_alarm="unknown"
35181  #
35182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35183printf %s "checking if alarm can be linked... " >&6; }
35184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35185/* end confdefs.h.  */
35186
35187
35188#define alarm innocuous_alarm
35189#ifdef __STDC__
35190# include <limits.h>
35191#else
35192# include <assert.h>
35193#endif
35194#undef alarm
35195#ifdef __cplusplus
35196extern "C"
35197#endif
35198char alarm ();
35199#if defined __stub_alarm || defined __stub___alarm
35200choke me
35201#endif
35202
35203int main (void)
35204{
35205return alarm ();
35206 ;
35207 return 0;
35208}
35209
35210_ACEOF
35211if ac_fn_c_try_link "$LINENO"
35212then :
35213
35214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35215printf "%s\n" "yes" >&6; }
35216    tst_links_alarm="yes"
35217
35218else $as_nop
35219
35220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35221printf "%s\n" "no" >&6; }
35222    tst_links_alarm="no"
35223
35224fi
35225rm -f core conftest.err conftest.$ac_objext conftest.beam \
35226    conftest$ac_exeext conftest.$ac_ext
35227  #
35228  if test "$tst_links_alarm" = "yes"; then
35229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35230printf %s "checking if alarm is prototyped... " >&6; }
35231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35232/* end confdefs.h.  */
35233
35234      $curl_includes_unistd
35235
35236_ACEOF
35237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35238  $EGREP "alarm" >/dev/null 2>&1
35239then :
35240
35241      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242printf "%s\n" "yes" >&6; }
35243      tst_proto_alarm="yes"
35244
35245else $as_nop
35246
35247      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248printf "%s\n" "no" >&6; }
35249      tst_proto_alarm="no"
35250
35251fi
35252rm -rf conftest*
35253
35254  fi
35255  #
35256  if test "$tst_proto_alarm" = "yes"; then
35257    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35258printf %s "checking if alarm is compilable... " >&6; }
35259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260/* end confdefs.h.  */
35261
35262
35263        $curl_includes_unistd
35264
35265int main (void)
35266{
35267
35268        if(0 != alarm(0))
35269          return 1;
35270
35271 ;
35272 return 0;
35273}
35274
35275_ACEOF
35276if ac_fn_c_try_compile "$LINENO"
35277then :
35278
35279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35280printf "%s\n" "yes" >&6; }
35281      tst_compi_alarm="yes"
35282
35283else $as_nop
35284
35285      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286printf "%s\n" "no" >&6; }
35287      tst_compi_alarm="no"
35288
35289fi
35290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35291  fi
35292  #
35293  if test "$tst_compi_alarm" = "yes"; then
35294    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35295printf %s "checking if alarm usage allowed... " >&6; }
35296    if test "x$curl_disallow_alarm" != "xyes"; then
35297      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298printf "%s\n" "yes" >&6; }
35299      tst_allow_alarm="yes"
35300    else
35301      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35302printf "%s\n" "no" >&6; }
35303      tst_allow_alarm="no"
35304    fi
35305  fi
35306  #
35307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35308printf %s "checking if alarm might be used... " >&6; }
35309  if test "$tst_links_alarm" = "yes" &&
35310     test "$tst_proto_alarm" = "yes" &&
35311     test "$tst_compi_alarm" = "yes" &&
35312     test "$tst_allow_alarm" = "yes"; then
35313    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314printf "%s\n" "yes" >&6; }
35315
35316printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35317
35318    curl_cv_func_alarm="yes"
35319  else
35320    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35321printf "%s\n" "no" >&6; }
35322    curl_cv_func_alarm="no"
35323  fi
35324
35325
35326curl_includes_string="\
35327/* includes start */
35328#ifdef HAVE_SYS_TYPES_H
35329#  include <sys/types.h>
35330#endif
35331#include <string.h>
35332#ifdef HAVE_STRINGS_H
35333#  include <strings.h>
35334#endif
35335/* includes end */"
35336  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35337"
35338if test "x$ac_cv_header_sys_types_h" = xyes
35339then :
35340  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35341
35342fi
35343ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35344"
35345if test "x$ac_cv_header_strings_h" = xyes
35346then :
35347  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35348
35349fi
35350
35351
35352
35353curl_includes_libgen="\
35354/* includes start */
35355#ifdef HAVE_SYS_TYPES_H
35356#  include <sys/types.h>
35357#endif
35358#ifdef HAVE_LIBGEN_H
35359#  include <libgen.h>
35360#endif
35361/* includes end */"
35362  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35363"
35364if test "x$ac_cv_header_sys_types_h" = xyes
35365then :
35366  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35367
35368fi
35369ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35370"
35371if test "x$ac_cv_header_libgen_h" = xyes
35372then :
35373  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35374
35375fi
35376
35377
35378
35379        #
35380  tst_links_basename="unknown"
35381  tst_proto_basename="unknown"
35382  tst_compi_basename="unknown"
35383  tst_allow_basename="unknown"
35384  #
35385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35386printf %s "checking if basename can be linked... " >&6; }
35387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35388/* end confdefs.h.  */
35389
35390
35391#define basename innocuous_basename
35392#ifdef __STDC__
35393# include <limits.h>
35394#else
35395# include <assert.h>
35396#endif
35397#undef basename
35398#ifdef __cplusplus
35399extern "C"
35400#endif
35401char basename ();
35402#if defined __stub_basename || defined __stub___basename
35403choke me
35404#endif
35405
35406int main (void)
35407{
35408return basename ();
35409 ;
35410 return 0;
35411}
35412
35413_ACEOF
35414if ac_fn_c_try_link "$LINENO"
35415then :
35416
35417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35418printf "%s\n" "yes" >&6; }
35419    tst_links_basename="yes"
35420
35421else $as_nop
35422
35423    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35424printf "%s\n" "no" >&6; }
35425    tst_links_basename="no"
35426
35427fi
35428rm -f core conftest.err conftest.$ac_objext conftest.beam \
35429    conftest$ac_exeext conftest.$ac_ext
35430  #
35431  if test "$tst_links_basename" = "yes"; then
35432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35433printf %s "checking if basename is prototyped... " >&6; }
35434    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35435/* end confdefs.h.  */
35436
35437      $curl_includes_string
35438      $curl_includes_libgen
35439      $curl_includes_unistd
35440
35441_ACEOF
35442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35443  $EGREP "basename" >/dev/null 2>&1
35444then :
35445
35446      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35447printf "%s\n" "yes" >&6; }
35448      tst_proto_basename="yes"
35449
35450else $as_nop
35451
35452      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35453printf "%s\n" "no" >&6; }
35454      tst_proto_basename="no"
35455
35456fi
35457rm -rf conftest*
35458
35459  fi
35460  #
35461  if test "$tst_proto_basename" = "yes"; then
35462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35463printf %s "checking if basename is compilable... " >&6; }
35464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35465/* end confdefs.h.  */
35466
35467
35468        $curl_includes_string
35469        $curl_includes_libgen
35470        $curl_includes_unistd
35471
35472int main (void)
35473{
35474
35475        if(0 != basename(0))
35476          return 1;
35477
35478 ;
35479 return 0;
35480}
35481
35482_ACEOF
35483if ac_fn_c_try_compile "$LINENO"
35484then :
35485
35486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35487printf "%s\n" "yes" >&6; }
35488      tst_compi_basename="yes"
35489
35490else $as_nop
35491
35492      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35493printf "%s\n" "no" >&6; }
35494      tst_compi_basename="no"
35495
35496fi
35497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35498  fi
35499  #
35500  if test "$tst_compi_basename" = "yes"; then
35501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35502printf %s "checking if basename usage allowed... " >&6; }
35503    if test "x$curl_disallow_basename" != "xyes"; then
35504      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35505printf "%s\n" "yes" >&6; }
35506      tst_allow_basename="yes"
35507    else
35508      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35509printf "%s\n" "no" >&6; }
35510      tst_allow_basename="no"
35511    fi
35512  fi
35513  #
35514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35515printf %s "checking if basename might be used... " >&6; }
35516  if test "$tst_links_basename" = "yes" &&
35517     test "$tst_proto_basename" = "yes" &&
35518     test "$tst_compi_basename" = "yes" &&
35519     test "$tst_allow_basename" = "yes"; then
35520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35521printf "%s\n" "yes" >&6; }
35522
35523printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35524
35525    curl_cv_func_basename="yes"
35526  else
35527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35528printf "%s\n" "no" >&6; }
35529    curl_cv_func_basename="no"
35530  fi
35531
35532
35533curl_includes_socket="\
35534/* includes start */
35535#ifdef HAVE_SYS_TYPES_H
35536#  include <sys/types.h>
35537#endif
35538#ifdef HAVE_SOCKET_H
35539#  include <socket.h>
35540#endif
35541/* includes end */"
35542  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35543"
35544if test "x$ac_cv_header_sys_types_h" = xyes
35545then :
35546  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35547
35548fi
35549ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35550"
35551if test "x$ac_cv_header_socket_h" = xyes
35552then :
35553  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35554
35555fi
35556
35557
35558
35559      #
35560  tst_links_closesocket="unknown"
35561  tst_proto_closesocket="unknown"
35562  tst_compi_closesocket="unknown"
35563  tst_allow_closesocket="unknown"
35564  #
35565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35566printf %s "checking if closesocket can be linked... " >&6; }
35567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35568/* end confdefs.h.  */
35569
35570
35571      $curl_includes_winsock2
35572      $curl_includes_socket
35573
35574int main (void)
35575{
35576
35577      if(0 != closesocket(0))
35578        return 1;
35579
35580 ;
35581 return 0;
35582}
35583
35584_ACEOF
35585if ac_fn_c_try_link "$LINENO"
35586then :
35587
35588    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35589printf "%s\n" "yes" >&6; }
35590    tst_links_closesocket="yes"
35591
35592else $as_nop
35593
35594    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35595printf "%s\n" "no" >&6; }
35596    tst_links_closesocket="no"
35597
35598fi
35599rm -f core conftest.err conftest.$ac_objext conftest.beam \
35600    conftest$ac_exeext conftest.$ac_ext
35601  #
35602  if test "$tst_links_closesocket" = "yes"; then
35603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35604printf %s "checking if closesocket is prototyped... " >&6; }
35605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35606/* end confdefs.h.  */
35607
35608      $curl_includes_winsock2
35609      $curl_includes_socket
35610
35611_ACEOF
35612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35613  $EGREP "closesocket" >/dev/null 2>&1
35614then :
35615
35616      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35617printf "%s\n" "yes" >&6; }
35618      tst_proto_closesocket="yes"
35619
35620else $as_nop
35621
35622      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35623printf "%s\n" "no" >&6; }
35624      tst_proto_closesocket="no"
35625
35626fi
35627rm -rf conftest*
35628
35629  fi
35630  #
35631  if test "$tst_proto_closesocket" = "yes"; then
35632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35633printf %s "checking if closesocket is compilable... " >&6; }
35634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35635/* end confdefs.h.  */
35636
35637
35638        $curl_includes_winsock2
35639        $curl_includes_socket
35640
35641int main (void)
35642{
35643
35644        if(0 != closesocket(0))
35645          return 1;
35646
35647 ;
35648 return 0;
35649}
35650
35651_ACEOF
35652if ac_fn_c_try_compile "$LINENO"
35653then :
35654
35655      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35656printf "%s\n" "yes" >&6; }
35657      tst_compi_closesocket="yes"
35658
35659else $as_nop
35660
35661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35662printf "%s\n" "no" >&6; }
35663      tst_compi_closesocket="no"
35664
35665fi
35666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35667  fi
35668  #
35669  if test "$tst_compi_closesocket" = "yes"; then
35670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35671printf %s "checking if closesocket usage allowed... " >&6; }
35672    if test "x$curl_disallow_closesocket" != "xyes"; then
35673      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35674printf "%s\n" "yes" >&6; }
35675      tst_allow_closesocket="yes"
35676    else
35677      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35678printf "%s\n" "no" >&6; }
35679      tst_allow_closesocket="no"
35680    fi
35681  fi
35682  #
35683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35684printf %s "checking if closesocket might be used... " >&6; }
35685  if test "$tst_links_closesocket" = "yes" &&
35686     test "$tst_proto_closesocket" = "yes" &&
35687     test "$tst_compi_closesocket" = "yes" &&
35688     test "$tst_allow_closesocket" = "yes"; then
35689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35690printf "%s\n" "yes" >&6; }
35691
35692printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35693
35694    curl_cv_func_closesocket="yes"
35695  else
35696    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35697printf "%s\n" "no" >&6; }
35698    curl_cv_func_closesocket="no"
35699  fi
35700
35701
35702curl_includes_sys_socket="\
35703/* includes start */
35704#ifdef HAVE_SYS_TYPES_H
35705#  include <sys/types.h>
35706#endif
35707#ifdef HAVE_SYS_SOCKET_H
35708#  include <sys/socket.h>
35709#endif
35710/* includes end */"
35711  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35712"
35713if test "x$ac_cv_header_sys_types_h" = xyes
35714then :
35715  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35716
35717fi
35718ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35719"
35720if test "x$ac_cv_header_sys_socket_h" = xyes
35721then :
35722  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35723
35724fi
35725
35726
35727
35728      #
35729  tst_links_closesocket_camel="unknown"
35730  tst_proto_closesocket_camel="unknown"
35731  tst_compi_closesocket_camel="unknown"
35732  tst_allow_closesocket_camel="unknown"
35733  #
35734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
35735printf %s "checking if CloseSocket can be linked... " >&6; }
35736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35737/* end confdefs.h.  */
35738
35739
35740      $curl_includes_bsdsocket
35741      $curl_includes_sys_socket
35742
35743int main (void)
35744{
35745
35746      if(0 != CloseSocket(0))
35747        return 1;
35748
35749 ;
35750 return 0;
35751}
35752
35753_ACEOF
35754if ac_fn_c_try_link "$LINENO"
35755then :
35756
35757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35758printf "%s\n" "yes" >&6; }
35759    tst_links_closesocket_camel="yes"
35760
35761else $as_nop
35762
35763    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35764printf "%s\n" "no" >&6; }
35765    tst_links_closesocket_camel="no"
35766
35767fi
35768rm -f core conftest.err conftest.$ac_objext conftest.beam \
35769    conftest$ac_exeext conftest.$ac_ext
35770  #
35771  if test "$tst_links_closesocket_camel" = "yes"; then
35772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
35773printf %s "checking if CloseSocket is prototyped... " >&6; }
35774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35775/* end confdefs.h.  */
35776
35777      $curl_includes_bsdsocket
35778      $curl_includes_sys_socket
35779
35780_ACEOF
35781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35782  $EGREP "CloseSocket" >/dev/null 2>&1
35783then :
35784
35785      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35786printf "%s\n" "yes" >&6; }
35787      tst_proto_closesocket_camel="yes"
35788
35789else $as_nop
35790
35791      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35792printf "%s\n" "no" >&6; }
35793      tst_proto_closesocket_camel="no"
35794
35795fi
35796rm -rf conftest*
35797
35798  fi
35799  #
35800  if test "$tst_proto_closesocket_camel" = "yes"; then
35801    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
35802printf %s "checking if CloseSocket is compilable... " >&6; }
35803    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35804/* end confdefs.h.  */
35805
35806
35807        $curl_includes_bsdsocket
35808        $curl_includes_sys_socket
35809
35810int main (void)
35811{
35812
35813        if(0 != CloseSocket(0))
35814          return 1;
35815
35816 ;
35817 return 0;
35818}
35819
35820_ACEOF
35821if ac_fn_c_try_compile "$LINENO"
35822then :
35823
35824      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35825printf "%s\n" "yes" >&6; }
35826      tst_compi_closesocket_camel="yes"
35827
35828else $as_nop
35829
35830      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35831printf "%s\n" "no" >&6; }
35832      tst_compi_closesocket_camel="no"
35833
35834fi
35835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35836  fi
35837  #
35838  if test "$tst_compi_closesocket_camel" = "yes"; then
35839    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
35840printf %s "checking if CloseSocket usage allowed... " >&6; }
35841    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
35842      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35843printf "%s\n" "yes" >&6; }
35844      tst_allow_closesocket_camel="yes"
35845    else
35846      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35847printf "%s\n" "no" >&6; }
35848      tst_allow_closesocket_camel="no"
35849    fi
35850  fi
35851  #
35852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
35853printf %s "checking if CloseSocket might be used... " >&6; }
35854  if test "$tst_links_closesocket_camel" = "yes" &&
35855     test "$tst_proto_closesocket_camel" = "yes" &&
35856     test "$tst_compi_closesocket_camel" = "yes" &&
35857     test "$tst_allow_closesocket_camel" = "yes"; then
35858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35859printf "%s\n" "yes" >&6; }
35860
35861printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
35862
35863    curl_cv_func_closesocket_camel="yes"
35864  else
35865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35866printf "%s\n" "no" >&6; }
35867    curl_cv_func_closesocket_camel="no"
35868  fi
35869
35870
35871curl_includes_fcntl="\
35872/* includes start */
35873#ifdef HAVE_SYS_TYPES_H
35874#  include <sys/types.h>
35875#endif
35876#ifdef HAVE_UNISTD_H
35877#  include <unistd.h>
35878#endif
35879#ifdef HAVE_FCNTL_H
35880#  include <fcntl.h>
35881#endif
35882/* includes end */"
35883  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
35884"
35885if test "x$ac_cv_header_sys_types_h" = xyes
35886then :
35887  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35888
35889fi
35890ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
35891"
35892if test "x$ac_cv_header_unistd_h" = xyes
35893then :
35894  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35895
35896fi
35897ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
35898"
35899if test "x$ac_cv_header_fcntl_h" = xyes
35900then :
35901  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
35902
35903fi
35904
35905
35906
35907    #
35908  tst_links_fcntl="unknown"
35909  tst_proto_fcntl="unknown"
35910  tst_compi_fcntl="unknown"
35911  tst_allow_fcntl="unknown"
35912  #
35913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
35914printf %s "checking if fcntl can be linked... " >&6; }
35915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35916/* end confdefs.h.  */
35917
35918
35919#define fcntl innocuous_fcntl
35920#ifdef __STDC__
35921# include <limits.h>
35922#else
35923# include <assert.h>
35924#endif
35925#undef fcntl
35926#ifdef __cplusplus
35927extern "C"
35928#endif
35929char fcntl ();
35930#if defined __stub_fcntl || defined __stub___fcntl
35931choke me
35932#endif
35933
35934int main (void)
35935{
35936return fcntl ();
35937 ;
35938 return 0;
35939}
35940
35941_ACEOF
35942if ac_fn_c_try_link "$LINENO"
35943then :
35944
35945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35946printf "%s\n" "yes" >&6; }
35947    tst_links_fcntl="yes"
35948
35949else $as_nop
35950
35951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35952printf "%s\n" "no" >&6; }
35953    tst_links_fcntl="no"
35954
35955fi
35956rm -f core conftest.err conftest.$ac_objext conftest.beam \
35957    conftest$ac_exeext conftest.$ac_ext
35958  #
35959  if test "$tst_links_fcntl" = "yes"; then
35960    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
35961printf %s "checking if fcntl is prototyped... " >&6; }
35962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35963/* end confdefs.h.  */
35964
35965      $curl_includes_fcntl
35966
35967_ACEOF
35968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35969  $EGREP "fcntl" >/dev/null 2>&1
35970then :
35971
35972      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35973printf "%s\n" "yes" >&6; }
35974      tst_proto_fcntl="yes"
35975
35976else $as_nop
35977
35978      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35979printf "%s\n" "no" >&6; }
35980      tst_proto_fcntl="no"
35981
35982fi
35983rm -rf conftest*
35984
35985  fi
35986  #
35987  if test "$tst_proto_fcntl" = "yes"; then
35988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
35989printf %s "checking if fcntl is compilable... " >&6; }
35990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35991/* end confdefs.h.  */
35992
35993
35994        $curl_includes_fcntl
35995
35996int main (void)
35997{
35998
35999        if(0 != fcntl(0, 0, 0))
36000          return 1;
36001
36002 ;
36003 return 0;
36004}
36005
36006_ACEOF
36007if ac_fn_c_try_compile "$LINENO"
36008then :
36009
36010      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36011printf "%s\n" "yes" >&6; }
36012      tst_compi_fcntl="yes"
36013
36014else $as_nop
36015
36016      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017printf "%s\n" "no" >&6; }
36018      tst_compi_fcntl="no"
36019
36020fi
36021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36022  fi
36023  #
36024  if test "$tst_compi_fcntl" = "yes"; then
36025    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36026printf %s "checking if fcntl usage allowed... " >&6; }
36027    if test "x$curl_disallow_fcntl" != "xyes"; then
36028      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029printf "%s\n" "yes" >&6; }
36030      tst_allow_fcntl="yes"
36031    else
36032      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36033printf "%s\n" "no" >&6; }
36034      tst_allow_fcntl="no"
36035    fi
36036  fi
36037  #
36038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36039printf %s "checking if fcntl might be used... " >&6; }
36040  if test "$tst_links_fcntl" = "yes" &&
36041     test "$tst_proto_fcntl" = "yes" &&
36042     test "$tst_compi_fcntl" = "yes" &&
36043     test "$tst_allow_fcntl" = "yes"; then
36044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36045printf "%s\n" "yes" >&6; }
36046
36047printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36048
36049    curl_cv_func_fcntl="yes"
36050
36051  #
36052  tst_compi_fcntl_o_nonblock="unknown"
36053  tst_allow_fcntl_o_nonblock="unknown"
36054  #
36055  case $host_os in
36056    sunos4* | aix3*)
36057            curl_disallow_fcntl_o_nonblock="yes"
36058      ;;
36059  esac
36060  #
36061  if test "$curl_cv_func_fcntl" = "yes"; then
36062    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36063printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36065/* end confdefs.h.  */
36066
36067
36068        $curl_includes_fcntl
36069
36070int main (void)
36071{
36072
36073        int flags = 0;
36074        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36075          return 1;
36076
36077 ;
36078 return 0;
36079}
36080
36081_ACEOF
36082if ac_fn_c_try_compile "$LINENO"
36083then :
36084
36085      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36086printf "%s\n" "yes" >&6; }
36087      tst_compi_fcntl_o_nonblock="yes"
36088
36089else $as_nop
36090
36091      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36092printf "%s\n" "no" >&6; }
36093      tst_compi_fcntl_o_nonblock="no"
36094
36095fi
36096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36097  fi
36098  #
36099  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36101printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36102    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36103      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36104printf "%s\n" "yes" >&6; }
36105      tst_allow_fcntl_o_nonblock="yes"
36106    else
36107      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36108printf "%s\n" "no" >&6; }
36109      tst_allow_fcntl_o_nonblock="no"
36110    fi
36111  fi
36112  #
36113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36114printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36115  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36116     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36118printf "%s\n" "yes" >&6; }
36119
36120printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36121
36122    curl_cv_func_fcntl_o_nonblock="yes"
36123  else
36124    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36125printf "%s\n" "no" >&6; }
36126    curl_cv_func_fcntl_o_nonblock="no"
36127  fi
36128
36129  else
36130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36131printf "%s\n" "no" >&6; }
36132    curl_cv_func_fcntl="no"
36133  fi
36134
36135
36136curl_includes_ws2tcpip="\
36137/* includes start */
36138#ifdef HAVE_WINDOWS_H
36139#  ifndef WIN32_LEAN_AND_MEAN
36140#    define WIN32_LEAN_AND_MEAN
36141#  endif
36142#  include <windows.h>
36143#  ifdef HAVE_WINSOCK2_H
36144#    include <winsock2.h>
36145#    ifdef HAVE_WS2TCPIP_H
36146#       include <ws2tcpip.h>
36147#    endif
36148#  endif
36149#endif
36150/* includes end */"
36151
36152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36153printf %s "checking for windows.h... " >&6; }
36154if test ${curl_cv_header_windows_h+y}
36155then :
36156  printf %s "(cached) " >&6
36157else $as_nop
36158
36159    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36160/* end confdefs.h.  */
36161
36162
36163#undef inline
36164#ifndef WIN32_LEAN_AND_MEAN
36165#define WIN32_LEAN_AND_MEAN
36166#endif
36167#include <windows.h>
36168
36169int main (void)
36170{
36171
36172#if defined(__CYGWIN__) || defined(__CEGCC__)
36173        HAVE_WINDOWS_H shall not be defined.
36174#else
36175        int dummy=2*WINVER;
36176#endif
36177
36178 ;
36179 return 0;
36180}
36181
36182_ACEOF
36183if ac_fn_c_try_compile "$LINENO"
36184then :
36185
36186      curl_cv_header_windows_h="yes"
36187
36188else $as_nop
36189
36190      curl_cv_header_windows_h="no"
36191
36192fi
36193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36194
36195fi
36196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36197printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36198  case "$curl_cv_header_windows_h" in
36199    yes)
36200
36201printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36202
36203      ;;
36204  esac
36205
36206
36207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36208printf %s "checking for winsock2.h... " >&6; }
36209if test ${curl_cv_header_winsock2_h+y}
36210then :
36211  printf %s "(cached) " >&6
36212else $as_nop
36213
36214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36215/* end confdefs.h.  */
36216
36217
36218#undef inline
36219#ifndef WIN32_LEAN_AND_MEAN
36220#define WIN32_LEAN_AND_MEAN
36221#endif
36222#include <windows.h>
36223#include <winsock2.h>
36224
36225int main (void)
36226{
36227
36228#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36229        HAVE_WINSOCK2_H shall not be defined.
36230#else
36231        int dummy=2*IPPROTO_ESP;
36232#endif
36233
36234 ;
36235 return 0;
36236}
36237
36238_ACEOF
36239if ac_fn_c_try_compile "$LINENO"
36240then :
36241
36242      curl_cv_header_winsock2_h="yes"
36243
36244else $as_nop
36245
36246      curl_cv_header_winsock2_h="no"
36247
36248fi
36249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36250
36251fi
36252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36253printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36254  case "$curl_cv_header_winsock2_h" in
36255    yes)
36256
36257printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36258
36259      ;;
36260  esac
36261
36262
36263    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36264printf %s "checking for ws2tcpip.h... " >&6; }
36265if test ${curl_cv_header_ws2tcpip_h+y}
36266then :
36267  printf %s "(cached) " >&6
36268else $as_nop
36269
36270    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36271/* end confdefs.h.  */
36272
36273
36274#undef inline
36275#ifndef WIN32_LEAN_AND_MEAN
36276#define WIN32_LEAN_AND_MEAN
36277#endif
36278#include <windows.h>
36279#include <winsock2.h>
36280#include <ws2tcpip.h>
36281
36282int main (void)
36283{
36284
36285#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36286        HAVE_WS2TCPIP_H shall not be defined.
36287#else
36288        int dummy=2*IP_PKTINFO;
36289#endif
36290
36291 ;
36292 return 0;
36293}
36294
36295_ACEOF
36296if ac_fn_c_try_compile "$LINENO"
36297then :
36298
36299      curl_cv_header_ws2tcpip_h="yes"
36300
36301else $as_nop
36302
36303      curl_cv_header_ws2tcpip_h="no"
36304
36305fi
36306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36307
36308fi
36309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36310printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36311  case "$curl_cv_header_ws2tcpip_h" in
36312    yes)
36313
36314printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36315
36316      ;;
36317  esac
36318
36319
36320
36321curl_includes_netdb="\
36322/* includes start */
36323#ifdef HAVE_SYS_TYPES_H
36324#  include <sys/types.h>
36325#endif
36326#ifdef HAVE_NETDB_H
36327#  include <netdb.h>
36328#endif
36329/* includes end */"
36330  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36331"
36332if test "x$ac_cv_header_sys_types_h" = xyes
36333then :
36334  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36335
36336fi
36337ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36338"
36339if test "x$ac_cv_header_netdb_h" = xyes
36340then :
36341  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36342
36343fi
36344
36345
36346
36347        #
36348  tst_links_freeaddrinfo="unknown"
36349  tst_proto_freeaddrinfo="unknown"
36350  tst_compi_freeaddrinfo="unknown"
36351  tst_allow_freeaddrinfo="unknown"
36352  #
36353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36354printf %s "checking if freeaddrinfo can be linked... " >&6; }
36355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36356/* end confdefs.h.  */
36357
36358
36359      $curl_includes_ws2tcpip
36360      $curl_includes_sys_socket
36361      $curl_includes_netdb
36362
36363int main (void)
36364{
36365
36366      freeaddrinfo(0);
36367
36368 ;
36369 return 0;
36370}
36371
36372_ACEOF
36373if ac_fn_c_try_link "$LINENO"
36374then :
36375
36376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377printf "%s\n" "yes" >&6; }
36378    tst_links_freeaddrinfo="yes"
36379
36380else $as_nop
36381
36382    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383printf "%s\n" "no" >&6; }
36384    tst_links_freeaddrinfo="no"
36385
36386fi
36387rm -f core conftest.err conftest.$ac_objext conftest.beam \
36388    conftest$ac_exeext conftest.$ac_ext
36389  #
36390  if test "$tst_links_freeaddrinfo" = "yes"; then
36391    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36392printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36394/* end confdefs.h.  */
36395
36396      $curl_includes_ws2tcpip
36397      $curl_includes_sys_socket
36398      $curl_includes_netdb
36399
36400_ACEOF
36401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36402  $EGREP "freeaddrinfo" >/dev/null 2>&1
36403then :
36404
36405      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36406printf "%s\n" "yes" >&6; }
36407      tst_proto_freeaddrinfo="yes"
36408
36409else $as_nop
36410
36411      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36412printf "%s\n" "no" >&6; }
36413      tst_proto_freeaddrinfo="no"
36414
36415fi
36416rm -rf conftest*
36417
36418  fi
36419  #
36420  if test "$tst_proto_freeaddrinfo" = "yes"; then
36421    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36422printf %s "checking if freeaddrinfo is compilable... " >&6; }
36423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36424/* end confdefs.h.  */
36425
36426
36427        $curl_includes_ws2tcpip
36428        $curl_includes_sys_socket
36429        $curl_includes_netdb
36430
36431int main (void)
36432{
36433
36434        freeaddrinfo(0);
36435
36436 ;
36437 return 0;
36438}
36439
36440_ACEOF
36441if ac_fn_c_try_compile "$LINENO"
36442then :
36443
36444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36445printf "%s\n" "yes" >&6; }
36446      tst_compi_freeaddrinfo="yes"
36447
36448else $as_nop
36449
36450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36451printf "%s\n" "no" >&6; }
36452      tst_compi_freeaddrinfo="no"
36453
36454fi
36455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36456  fi
36457  #
36458  if test "$tst_compi_freeaddrinfo" = "yes"; then
36459    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36460printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36461    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36462      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36463printf "%s\n" "yes" >&6; }
36464      tst_allow_freeaddrinfo="yes"
36465    else
36466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36467printf "%s\n" "no" >&6; }
36468      tst_allow_freeaddrinfo="no"
36469    fi
36470  fi
36471  #
36472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36473printf %s "checking if freeaddrinfo might be used... " >&6; }
36474  if test "$tst_links_freeaddrinfo" = "yes" &&
36475     test "$tst_proto_freeaddrinfo" = "yes" &&
36476     test "$tst_compi_freeaddrinfo" = "yes" &&
36477     test "$tst_allow_freeaddrinfo" = "yes"; then
36478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36479printf "%s\n" "yes" >&6; }
36480
36481printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36482
36483    curl_cv_func_freeaddrinfo="yes"
36484  else
36485    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36486printf "%s\n" "no" >&6; }
36487    curl_cv_func_freeaddrinfo="no"
36488  fi
36489
36490
36491curl_includes_sys_xattr="\
36492/* includes start */
36493#ifdef HAVE_SYS_TYPES_H
36494#  include <sys/types.h>
36495#endif
36496#ifdef HAVE_SYS_XATTR_H
36497#  include <sys/xattr.h>
36498#endif
36499/* includes end */"
36500  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36501"
36502if test "x$ac_cv_header_sys_types_h" = xyes
36503then :
36504  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36505
36506fi
36507ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36508"
36509if test "x$ac_cv_header_sys_xattr_h" = xyes
36510then :
36511  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36512
36513fi
36514
36515
36516
36517    #
36518  tst_links_fsetxattr="unknown"
36519  tst_proto_fsetxattr="unknown"
36520  tst_compi_fsetxattr="unknown"
36521  tst_allow_fsetxattr="unknown"
36522  tst_nargs_fsetxattr="unknown"
36523  #
36524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36525printf %s "checking if fsetxattr can be linked... " >&6; }
36526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36527/* end confdefs.h.  */
36528
36529
36530#define fsetxattr innocuous_fsetxattr
36531#ifdef __STDC__
36532# include <limits.h>
36533#else
36534# include <assert.h>
36535#endif
36536#undef fsetxattr
36537#ifdef __cplusplus
36538extern "C"
36539#endif
36540char fsetxattr ();
36541#if defined __stub_fsetxattr || defined __stub___fsetxattr
36542choke me
36543#endif
36544
36545int main (void)
36546{
36547return fsetxattr ();
36548 ;
36549 return 0;
36550}
36551
36552_ACEOF
36553if ac_fn_c_try_link "$LINENO"
36554then :
36555
36556    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36557printf "%s\n" "yes" >&6; }
36558    tst_links_fsetxattr="yes"
36559
36560else $as_nop
36561
36562    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36563printf "%s\n" "no" >&6; }
36564    tst_links_fsetxattr="no"
36565
36566fi
36567rm -f core conftest.err conftest.$ac_objext conftest.beam \
36568    conftest$ac_exeext conftest.$ac_ext
36569  #
36570  if test "$tst_links_fsetxattr" = "yes"; then
36571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36572printf %s "checking if fsetxattr is prototyped... " >&6; }
36573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574/* end confdefs.h.  */
36575
36576      $curl_includes_sys_xattr
36577
36578_ACEOF
36579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36580  $EGREP "fsetxattr" >/dev/null 2>&1
36581then :
36582
36583      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36584printf "%s\n" "yes" >&6; }
36585      tst_proto_fsetxattr="yes"
36586
36587else $as_nop
36588
36589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590printf "%s\n" "no" >&6; }
36591      tst_proto_fsetxattr="no"
36592
36593fi
36594rm -rf conftest*
36595
36596  fi
36597  #
36598  if test "$tst_proto_fsetxattr" = "yes"; then
36599    if test "$tst_nargs_fsetxattr" = "unknown"; then
36600      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36601printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36602      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36603/* end confdefs.h.  */
36604
36605
36606          $curl_includes_sys_xattr
36607
36608int main (void)
36609{
36610
36611          if(0 != fsetxattr(0, 0, 0, 0, 0))
36612            return 1;
36613
36614 ;
36615 return 0;
36616}
36617
36618_ACEOF
36619if ac_fn_c_try_compile "$LINENO"
36620then :
36621
36622        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36623printf "%s\n" "yes" >&6; }
36624        tst_compi_fsetxattr="yes"
36625        tst_nargs_fsetxattr="5"
36626
36627else $as_nop
36628
36629        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36630printf "%s\n" "no" >&6; }
36631        tst_compi_fsetxattr="no"
36632
36633fi
36634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36635    fi
36636    if test "$tst_nargs_fsetxattr" = "unknown"; then
36637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36638printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36640/* end confdefs.h.  */
36641
36642
36643          $curl_includes_sys_xattr
36644
36645int main (void)
36646{
36647
36648          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36649            return 1;
36650
36651 ;
36652 return 0;
36653}
36654
36655_ACEOF
36656if ac_fn_c_try_compile "$LINENO"
36657then :
36658
36659        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36660printf "%s\n" "yes" >&6; }
36661        tst_compi_fsetxattr="yes"
36662        tst_nargs_fsetxattr="6"
36663
36664else $as_nop
36665
36666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36667printf "%s\n" "no" >&6; }
36668        tst_compi_fsetxattr="no"
36669
36670fi
36671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36672    fi
36673    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36674printf %s "checking if fsetxattr is compilable... " >&6; }
36675    if test "$tst_compi_fsetxattr" = "yes"; then
36676      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36677printf "%s\n" "yes" >&6; }
36678    else
36679      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36680printf "%s\n" "no" >&6; }
36681    fi
36682  fi
36683  #
36684  if test "$tst_compi_fsetxattr" = "yes"; then
36685    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36686printf %s "checking if fsetxattr usage allowed... " >&6; }
36687    if test "x$curl_disallow_fsetxattr" != "xyes"; then
36688      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36689printf "%s\n" "yes" >&6; }
36690      tst_allow_fsetxattr="yes"
36691    else
36692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36693printf "%s\n" "no" >&6; }
36694      tst_allow_fsetxattr="no"
36695    fi
36696  fi
36697  #
36698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36699printf %s "checking if fsetxattr might be used... " >&6; }
36700  if test "$tst_links_fsetxattr" = "yes" &&
36701     test "$tst_proto_fsetxattr" = "yes" &&
36702     test "$tst_compi_fsetxattr" = "yes" &&
36703     test "$tst_allow_fsetxattr" = "yes"; then
36704    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36705printf "%s\n" "yes" >&6; }
36706
36707printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36708
36709            #
36710    if test "$tst_nargs_fsetxattr" -eq "5"; then
36711
36712printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36713
36714    elif test "$tst_nargs_fsetxattr" -eq "6"; then
36715
36716printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36717
36718    fi
36719    #
36720    curl_cv_func_fsetxattr="yes"
36721  else
36722    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36723printf "%s\n" "no" >&6; }
36724    curl_cv_func_fsetxattr="no"
36725  fi
36726
36727
36728    #
36729  tst_links_ftruncate="unknown"
36730  tst_proto_ftruncate="unknown"
36731  tst_compi_ftruncate="unknown"
36732  tst_allow_ftruncate="unknown"
36733  #
36734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
36735printf %s "checking if ftruncate can be linked... " >&6; }
36736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36737/* end confdefs.h.  */
36738
36739
36740#define ftruncate innocuous_ftruncate
36741#ifdef __STDC__
36742# include <limits.h>
36743#else
36744# include <assert.h>
36745#endif
36746#undef ftruncate
36747#ifdef __cplusplus
36748extern "C"
36749#endif
36750char ftruncate ();
36751#if defined __stub_ftruncate || defined __stub___ftruncate
36752choke me
36753#endif
36754
36755int main (void)
36756{
36757return ftruncate ();
36758 ;
36759 return 0;
36760}
36761
36762_ACEOF
36763if ac_fn_c_try_link "$LINENO"
36764then :
36765
36766    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36767printf "%s\n" "yes" >&6; }
36768    tst_links_ftruncate="yes"
36769
36770else $as_nop
36771
36772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36773printf "%s\n" "no" >&6; }
36774    tst_links_ftruncate="no"
36775
36776fi
36777rm -f core conftest.err conftest.$ac_objext conftest.beam \
36778    conftest$ac_exeext conftest.$ac_ext
36779  #
36780  if test "$tst_links_ftruncate" = "yes"; then
36781    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
36782printf %s "checking if ftruncate is prototyped... " >&6; }
36783    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36784/* end confdefs.h.  */
36785
36786      $curl_includes_unistd
36787
36788_ACEOF
36789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36790  $EGREP "ftruncate" >/dev/null 2>&1
36791then :
36792
36793      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36794printf "%s\n" "yes" >&6; }
36795      tst_proto_ftruncate="yes"
36796
36797else $as_nop
36798
36799      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36800printf "%s\n" "no" >&6; }
36801      tst_proto_ftruncate="no"
36802
36803fi
36804rm -rf conftest*
36805
36806  fi
36807  #
36808  if test "$tst_proto_ftruncate" = "yes"; then
36809    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
36810printf %s "checking if ftruncate is compilable... " >&6; }
36811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36812/* end confdefs.h.  */
36813
36814
36815        $curl_includes_unistd
36816
36817int main (void)
36818{
36819
36820        if(0 != ftruncate(0, 0))
36821          return 1;
36822
36823 ;
36824 return 0;
36825}
36826
36827_ACEOF
36828if ac_fn_c_try_compile "$LINENO"
36829then :
36830
36831      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36832printf "%s\n" "yes" >&6; }
36833      tst_compi_ftruncate="yes"
36834
36835else $as_nop
36836
36837      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838printf "%s\n" "no" >&6; }
36839      tst_compi_ftruncate="no"
36840
36841fi
36842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36843  fi
36844  #
36845  if test "$tst_compi_ftruncate" = "yes"; then
36846    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
36847printf %s "checking if ftruncate usage allowed... " >&6; }
36848    if test "x$curl_disallow_ftruncate" != "xyes"; then
36849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36850printf "%s\n" "yes" >&6; }
36851      tst_allow_ftruncate="yes"
36852    else
36853      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36854printf "%s\n" "no" >&6; }
36855      tst_allow_ftruncate="no"
36856    fi
36857  fi
36858  #
36859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
36860printf %s "checking if ftruncate might be used... " >&6; }
36861  if test "$tst_links_ftruncate" = "yes" &&
36862     test "$tst_proto_ftruncate" = "yes" &&
36863     test "$tst_compi_ftruncate" = "yes" &&
36864     test "$tst_allow_ftruncate" = "yes"; then
36865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36866printf "%s\n" "yes" >&6; }
36867
36868printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
36869
36870    curl_cv_func_ftruncate="yes"
36871  else
36872    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36873printf "%s\n" "no" >&6; }
36874    curl_cv_func_ftruncate="no"
36875  fi
36876
36877
36878curl_includes_stdlib="\
36879/* includes start */
36880#ifdef HAVE_SYS_TYPES_H
36881#  include <sys/types.h>
36882#endif
36883#include <stdlib.h>
36884/* includes end */"
36885  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
36886"
36887if test "x$ac_cv_header_sys_types_h" = xyes
36888then :
36889  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36890
36891fi
36892
36893
36894
36895              #
36896  tst_links_getaddrinfo="unknown"
36897  tst_proto_getaddrinfo="unknown"
36898  tst_compi_getaddrinfo="unknown"
36899  tst_works_getaddrinfo="unknown"
36900  tst_allow_getaddrinfo="unknown"
36901  tst_tsafe_getaddrinfo="unknown"
36902  #
36903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
36904printf %s "checking if getaddrinfo can be linked... " >&6; }
36905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36906/* end confdefs.h.  */
36907
36908
36909      $curl_includes_ws2tcpip
36910      $curl_includes_sys_socket
36911      $curl_includes_netdb
36912
36913int main (void)
36914{
36915
36916      if(0 != getaddrinfo(0, 0, 0, 0))
36917        return 1;
36918
36919 ;
36920 return 0;
36921}
36922
36923_ACEOF
36924if ac_fn_c_try_link "$LINENO"
36925then :
36926
36927    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36928printf "%s\n" "yes" >&6; }
36929    tst_links_getaddrinfo="yes"
36930
36931else $as_nop
36932
36933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36934printf "%s\n" "no" >&6; }
36935    tst_links_getaddrinfo="no"
36936
36937fi
36938rm -f core conftest.err conftest.$ac_objext conftest.beam \
36939    conftest$ac_exeext conftest.$ac_ext
36940  #
36941  if test "$tst_links_getaddrinfo" = "yes"; then
36942    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
36943printf %s "checking if getaddrinfo is prototyped... " >&6; }
36944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36945/* end confdefs.h.  */
36946
36947      $curl_includes_ws2tcpip
36948      $curl_includes_sys_socket
36949      $curl_includes_netdb
36950
36951_ACEOF
36952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36953  $EGREP "getaddrinfo" >/dev/null 2>&1
36954then :
36955
36956      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36957printf "%s\n" "yes" >&6; }
36958      tst_proto_getaddrinfo="yes"
36959
36960else $as_nop
36961
36962      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36963printf "%s\n" "no" >&6; }
36964      tst_proto_getaddrinfo="no"
36965
36966fi
36967rm -rf conftest*
36968
36969  fi
36970  #
36971  if test "$tst_proto_getaddrinfo" = "yes"; then
36972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
36973printf %s "checking if getaddrinfo is compilable... " >&6; }
36974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975/* end confdefs.h.  */
36976
36977
36978        $curl_includes_ws2tcpip
36979        $curl_includes_sys_socket
36980        $curl_includes_netdb
36981
36982int main (void)
36983{
36984
36985        if(0 != getaddrinfo(0, 0, 0, 0))
36986          return 1;
36987
36988 ;
36989 return 0;
36990}
36991
36992_ACEOF
36993if ac_fn_c_try_compile "$LINENO"
36994then :
36995
36996      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36997printf "%s\n" "yes" >&6; }
36998      tst_compi_getaddrinfo="yes"
36999
37000else $as_nop
37001
37002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37003printf "%s\n" "no" >&6; }
37004      tst_compi_getaddrinfo="no"
37005
37006fi
37007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37008  fi
37009  #
37010    if test "x$cross_compiling" != "xyes" &&
37011    test "$tst_compi_getaddrinfo" = "yes"; then
37012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37013printf %s "checking if getaddrinfo seems to work... " >&6; }
37014
37015   case $host_os in
37016     darwin*)
37017      if test "$cross_compiling" = yes
37018then :
37019  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37020printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37021as_fn_error $? "cannot run test program while cross compiling
37022See \`config.log' for more details" "$LINENO" 5; }
37023else $as_nop
37024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37025/* end confdefs.h.  */
37026
37027
37028        $curl_includes_ws2tcpip
37029        $curl_includes_stdlib
37030        $curl_includes_string
37031        $curl_includes_sys_socket
37032        $curl_includes_netdb
37033
37034int main (void)
37035{
37036
37037        struct addrinfo hints;
37038        struct addrinfo *ai = 0;
37039        int error;
37040
37041        #ifdef HAVE_WINSOCK2_H
37042        WSADATA wsa;
37043        if (WSAStartup(MAKEWORD(2,2), &wsa))
37044                exit(2);
37045        #endif
37046
37047        memset(&hints, 0, sizeof(hints));
37048        hints.ai_flags = AI_NUMERICHOST;
37049        hints.ai_family = AF_UNSPEC;
37050        hints.ai_socktype = SOCK_STREAM;
37051        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37052        if(error || !ai)
37053          exit(1); /* fail */
37054        else
37055          exit(0);
37056
37057 ;
37058 return 0;
37059}
37060
37061_ACEOF
37062if ac_fn_c_try_run "$LINENO"
37063then :
37064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37065printf "%s\n" "yes" >&6; }
37066      tst_works_getaddrinfo="yes"
37067
37068else $as_nop
37069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37070printf "%s\n" "no" >&6; }
37071      tst_works_getaddrinfo="no"
37072
37073fi
37074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37075  conftest.$ac_objext conftest.beam conftest.$ac_ext
37076fi
37077
37078     ;;
37079     *)
37080      oldcc=$CC
37081      old=$LD_LIBRARY_PATH
37082      CC="sh ./run-compiler"
37083      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37084      export LD_LIBRARY_PATH
37085      if test "$cross_compiling" = yes
37086then :
37087  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37089as_fn_error $? "cannot run test program while cross compiling
37090See \`config.log' for more details" "$LINENO" 5; }
37091else $as_nop
37092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37093/* end confdefs.h.  */
37094
37095
37096        $curl_includes_ws2tcpip
37097        $curl_includes_stdlib
37098        $curl_includes_string
37099        $curl_includes_sys_socket
37100        $curl_includes_netdb
37101
37102int main (void)
37103{
37104
37105        struct addrinfo hints;
37106        struct addrinfo *ai = 0;
37107        int error;
37108
37109        #ifdef HAVE_WINSOCK2_H
37110        WSADATA wsa;
37111        if (WSAStartup(MAKEWORD(2,2), &wsa))
37112                exit(2);
37113        #endif
37114
37115        memset(&hints, 0, sizeof(hints));
37116        hints.ai_flags = AI_NUMERICHOST;
37117        hints.ai_family = AF_UNSPEC;
37118        hints.ai_socktype = SOCK_STREAM;
37119        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37120        if(error || !ai)
37121          exit(1); /* fail */
37122        else
37123          exit(0);
37124
37125 ;
37126 return 0;
37127}
37128
37129_ACEOF
37130if ac_fn_c_try_run "$LINENO"
37131then :
37132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37133printf "%s\n" "yes" >&6; }
37134      tst_works_getaddrinfo="yes"
37135
37136else $as_nop
37137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37138printf "%s\n" "no" >&6; }
37139      tst_works_getaddrinfo="no"
37140
37141fi
37142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37143  conftest.$ac_objext conftest.beam conftest.$ac_ext
37144fi
37145
37146      LD_LIBRARY_PATH=$old # restore
37147      CC=$oldcc
37148     ;;
37149   esac
37150
37151  fi
37152  #
37153  if test "$tst_compi_getaddrinfo" = "yes" &&
37154    test "$tst_works_getaddrinfo" != "no"; then
37155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37156printf %s "checking if getaddrinfo usage allowed... " >&6; }
37157    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37158      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37159printf "%s\n" "yes" >&6; }
37160      tst_allow_getaddrinfo="yes"
37161    else
37162      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37163printf "%s\n" "no" >&6; }
37164      tst_allow_getaddrinfo="no"
37165    fi
37166  fi
37167  #
37168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37169printf %s "checking if getaddrinfo might be used... " >&6; }
37170  if test "$tst_links_getaddrinfo" = "yes" &&
37171     test "$tst_proto_getaddrinfo" = "yes" &&
37172     test "$tst_compi_getaddrinfo" = "yes" &&
37173     test "$tst_allow_getaddrinfo" = "yes" &&
37174     test "$tst_works_getaddrinfo" != "no"; then
37175    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37176printf "%s\n" "yes" >&6; }
37177
37178printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37179
37180    curl_cv_func_getaddrinfo="yes"
37181  else
37182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37183printf "%s\n" "no" >&6; }
37184    curl_cv_func_getaddrinfo="no"
37185    curl_cv_func_getaddrinfo_threadsafe="no"
37186  fi
37187  #
37188  if test "$curl_cv_func_getaddrinfo" = "yes"; then
37189    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37190printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37191    case $host_os in
37192      aix[1234].* | aix5.[01].*)
37193                tst_tsafe_getaddrinfo="no"
37194        ;;
37195      aix*)
37196                tst_tsafe_getaddrinfo="yes"
37197        ;;
37198      darwin[12345].*)
37199                tst_tsafe_getaddrinfo="no"
37200        ;;
37201      darwin*)
37202                tst_tsafe_getaddrinfo="yes"
37203        ;;
37204      freebsd[1234].* | freebsd5.[1234]*)
37205                tst_tsafe_getaddrinfo="no"
37206        ;;
37207      freebsd*)
37208                tst_tsafe_getaddrinfo="yes"
37209        ;;
37210      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37211                tst_tsafe_getaddrinfo="no"
37212        ;;
37213      hpux*)
37214                tst_tsafe_getaddrinfo="yes"
37215        ;;
37216      midnightbsd*)
37217                tst_tsafe_getaddrinfo="yes"
37218        ;;
37219      netbsd[123].*)
37220                tst_tsafe_getaddrinfo="no"
37221        ;;
37222      netbsd*)
37223                tst_tsafe_getaddrinfo="yes"
37224        ;;
37225      *bsd*)
37226                tst_tsafe_getaddrinfo="no"
37227        ;;
37228      solaris2*)
37229                tst_tsafe_getaddrinfo="yes"
37230        ;;
37231    esac
37232    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37233       test "$curl_cv_native_windows" = "yes"; then
37234      tst_tsafe_getaddrinfo="yes"
37235    fi
37236    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37237
37238
37239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37240/* end confdefs.h.  */
37241
37242
37243        $curl_includes_sys_socket
37244        $curl_includes_netdb
37245
37246int main (void)
37247{
37248#ifdef h_errno
37249  return 0;
37250#else
37251  force compilation error
37252#endif
37253}
37254
37255
37256_ACEOF
37257if ac_fn_c_try_compile "$LINENO"
37258then :
37259
37260    tst_symbol_defined="yes"
37261
37262else $as_nop
37263
37264    tst_symbol_defined="no"
37265
37266fi
37267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37268  if test "$tst_symbol_defined" = "yes"; then
37269    curl_cv_have_def_h_errno=yes
37270
37271  else
37272    curl_cv_have_def_h_errno=no
37273
37274  fi
37275
37276      if test "$curl_cv_have_def_h_errno" = "yes"; then
37277        tst_h_errno_macro="yes"
37278      else
37279        tst_h_errno_macro="no"
37280      fi
37281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37282/* end confdefs.h.  */
37283
37284
37285          $curl_includes_sys_socket
37286          $curl_includes_netdb
37287
37288int main (void)
37289{
37290
37291          h_errno = 2;
37292          if(0 != h_errno)
37293            return 1;
37294
37295 ;
37296 return 0;
37297}
37298
37299_ACEOF
37300if ac_fn_c_try_compile "$LINENO"
37301then :
37302
37303        tst_h_errno_modifiable_lvalue="yes"
37304
37305else $as_nop
37306
37307        tst_h_errno_modifiable_lvalue="no"
37308
37309fi
37310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37312/* end confdefs.h.  */
37313
37314
37315
37316int main (void)
37317{
37318
37319#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37320          return 0;
37321#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37322          return 0;
37323#else
37324          force compilation error
37325#endif
37326
37327 ;
37328 return 0;
37329}
37330
37331_ACEOF
37332if ac_fn_c_try_compile "$LINENO"
37333then :
37334
37335        tst_h_errno_sbs_issue_7="yes"
37336
37337else $as_nop
37338
37339        tst_h_errno_sbs_issue_7="no"
37340
37341fi
37342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37343      if test "$tst_h_errno_macro" = "no" &&
37344         test "$tst_h_errno_modifiable_lvalue" = "no" &&
37345         test "$tst_h_errno_sbs_issue_7" = "no"; then
37346        tst_tsafe_getaddrinfo="no"
37347      else
37348        tst_tsafe_getaddrinfo="yes"
37349      fi
37350    fi
37351    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37352printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37353    if test "$tst_tsafe_getaddrinfo" = "yes"; then
37354
37355printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37356
37357      curl_cv_func_getaddrinfo_threadsafe="yes"
37358    else
37359      curl_cv_func_getaddrinfo_threadsafe="no"
37360    fi
37361  fi
37362
37363
37364      #
37365  tst_links_gethostbyname="unknown"
37366  tst_proto_gethostbyname="unknown"
37367  tst_compi_gethostbyname="unknown"
37368  tst_allow_gethostbyname="unknown"
37369  #
37370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37371printf %s "checking if gethostbyname can be linked... " >&6; }
37372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37373/* end confdefs.h.  */
37374
37375
37376      $curl_includes_winsock2
37377      $curl_includes_bsdsocket
37378      $curl_includes_netdb
37379
37380int main (void)
37381{
37382
37383      if(0 != gethostbyname(0))
37384        return 1;
37385
37386 ;
37387 return 0;
37388}
37389
37390_ACEOF
37391if ac_fn_c_try_link "$LINENO"
37392then :
37393
37394    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37395printf "%s\n" "yes" >&6; }
37396    tst_links_gethostbyname="yes"
37397
37398else $as_nop
37399
37400    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37401printf "%s\n" "no" >&6; }
37402    tst_links_gethostbyname="no"
37403
37404fi
37405rm -f core conftest.err conftest.$ac_objext conftest.beam \
37406    conftest$ac_exeext conftest.$ac_ext
37407  #
37408  if test "$tst_links_gethostbyname" = "yes"; then
37409    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37410printf %s "checking if gethostbyname is prototyped... " >&6; }
37411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37412/* end confdefs.h.  */
37413
37414      $curl_includes_winsock2
37415      $curl_includes_bsdsocket
37416      $curl_includes_netdb
37417
37418_ACEOF
37419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37420  $EGREP "gethostbyname" >/dev/null 2>&1
37421then :
37422
37423      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37424printf "%s\n" "yes" >&6; }
37425      tst_proto_gethostbyname="yes"
37426
37427else $as_nop
37428
37429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37430printf "%s\n" "no" >&6; }
37431      tst_proto_gethostbyname="no"
37432
37433fi
37434rm -rf conftest*
37435
37436  fi
37437  #
37438  if test "$tst_proto_gethostbyname" = "yes"; then
37439    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37440printf %s "checking if gethostbyname is compilable... " >&6; }
37441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37442/* end confdefs.h.  */
37443
37444
37445        $curl_includes_winsock2
37446        $curl_includes_bsdsocket
37447        $curl_includes_netdb
37448
37449int main (void)
37450{
37451
37452        if(0 != gethostbyname(0))
37453          return 1;
37454
37455 ;
37456 return 0;
37457}
37458
37459_ACEOF
37460if ac_fn_c_try_compile "$LINENO"
37461then :
37462
37463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37464printf "%s\n" "yes" >&6; }
37465      tst_compi_gethostbyname="yes"
37466
37467else $as_nop
37468
37469      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37470printf "%s\n" "no" >&6; }
37471      tst_compi_gethostbyname="no"
37472
37473fi
37474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37475  fi
37476  #
37477  if test "$tst_compi_gethostbyname" = "yes"; then
37478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37479printf %s "checking if gethostbyname usage allowed... " >&6; }
37480    if test "x$curl_disallow_gethostbyname" != "xyes"; then
37481      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37482printf "%s\n" "yes" >&6; }
37483      tst_allow_gethostbyname="yes"
37484    else
37485      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37486printf "%s\n" "no" >&6; }
37487      tst_allow_gethostbyname="no"
37488    fi
37489  fi
37490  #
37491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37492printf %s "checking if gethostbyname might be used... " >&6; }
37493  if test "$tst_links_gethostbyname" = "yes" &&
37494     test "$tst_proto_gethostbyname" = "yes" &&
37495     test "$tst_compi_gethostbyname" = "yes" &&
37496     test "$tst_allow_gethostbyname" = "yes"; then
37497    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37498printf "%s\n" "yes" >&6; }
37499
37500printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37501
37502    curl_cv_func_gethostbyname="yes"
37503  else
37504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37505printf "%s\n" "no" >&6; }
37506    curl_cv_func_gethostbyname="no"
37507  fi
37508
37509
37510    #
37511  tst_links_gethostbyname_r="unknown"
37512  tst_proto_gethostbyname_r="unknown"
37513  tst_compi_gethostbyname_r="unknown"
37514  tst_allow_gethostbyname_r="unknown"
37515  tst_nargs_gethostbyname_r="unknown"
37516  #
37517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37518printf %s "checking if gethostbyname_r can be linked... " >&6; }
37519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37520/* end confdefs.h.  */
37521
37522
37523#define gethostbyname_r innocuous_gethostbyname_r
37524#ifdef __STDC__
37525# include <limits.h>
37526#else
37527# include <assert.h>
37528#endif
37529#undef gethostbyname_r
37530#ifdef __cplusplus
37531extern "C"
37532#endif
37533char gethostbyname_r ();
37534#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37535choke me
37536#endif
37537
37538int main (void)
37539{
37540return gethostbyname_r ();
37541 ;
37542 return 0;
37543}
37544
37545_ACEOF
37546if ac_fn_c_try_link "$LINENO"
37547then :
37548
37549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37550printf "%s\n" "yes" >&6; }
37551    tst_links_gethostbyname_r="yes"
37552
37553else $as_nop
37554
37555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37556printf "%s\n" "no" >&6; }
37557    tst_links_gethostbyname_r="no"
37558
37559fi
37560rm -f core conftest.err conftest.$ac_objext conftest.beam \
37561    conftest$ac_exeext conftest.$ac_ext
37562  #
37563  if test "$tst_links_gethostbyname_r" = "yes"; then
37564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37565printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37567/* end confdefs.h.  */
37568
37569      $curl_includes_netdb
37570
37571_ACEOF
37572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37573  $EGREP "gethostbyname_r" >/dev/null 2>&1
37574then :
37575
37576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37577printf "%s\n" "yes" >&6; }
37578      tst_proto_gethostbyname_r="yes"
37579
37580else $as_nop
37581
37582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37583printf "%s\n" "no" >&6; }
37584      tst_proto_gethostbyname_r="no"
37585
37586fi
37587rm -rf conftest*
37588
37589  fi
37590  #
37591  if test "$tst_proto_gethostbyname_r" = "yes"; then
37592    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37594printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37595      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37596/* end confdefs.h.  */
37597
37598
37599          $curl_includes_netdb
37600          $curl_includes_bsdsocket
37601
37602int main (void)
37603{
37604
37605          if(0 != gethostbyname_r(0, 0, 0))
37606            return 1;
37607
37608 ;
37609 return 0;
37610}
37611
37612_ACEOF
37613if ac_fn_c_try_compile "$LINENO"
37614then :
37615
37616        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37617printf "%s\n" "yes" >&6; }
37618        tst_compi_gethostbyname_r="yes"
37619        tst_nargs_gethostbyname_r="3"
37620
37621else $as_nop
37622
37623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37624printf "%s\n" "no" >&6; }
37625        tst_compi_gethostbyname_r="no"
37626
37627fi
37628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37629    fi
37630    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37631      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37632printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634/* end confdefs.h.  */
37635
37636
37637          $curl_includes_netdb
37638          $curl_includes_bsdsocket
37639
37640int main (void)
37641{
37642
37643          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37644            return 1;
37645
37646 ;
37647 return 0;
37648}
37649
37650_ACEOF
37651if ac_fn_c_try_compile "$LINENO"
37652then :
37653
37654        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37655printf "%s\n" "yes" >&6; }
37656        tst_compi_gethostbyname_r="yes"
37657        tst_nargs_gethostbyname_r="5"
37658
37659else $as_nop
37660
37661        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37662printf "%s\n" "no" >&6; }
37663        tst_compi_gethostbyname_r="no"
37664
37665fi
37666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37667    fi
37668    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37669      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37670printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37672/* end confdefs.h.  */
37673
37674
37675          $curl_includes_netdb
37676          $curl_includes_bsdsocket
37677
37678int main (void)
37679{
37680
37681          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37682            return 1;
37683
37684 ;
37685 return 0;
37686}
37687
37688_ACEOF
37689if ac_fn_c_try_compile "$LINENO"
37690then :
37691
37692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37693printf "%s\n" "yes" >&6; }
37694        tst_compi_gethostbyname_r="yes"
37695        tst_nargs_gethostbyname_r="6"
37696
37697else $as_nop
37698
37699        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37700printf "%s\n" "no" >&6; }
37701        tst_compi_gethostbyname_r="no"
37702
37703fi
37704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37705    fi
37706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37707printf %s "checking if gethostbyname_r is compilable... " >&6; }
37708    if test "$tst_compi_gethostbyname_r" = "yes"; then
37709      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37710printf "%s\n" "yes" >&6; }
37711    else
37712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37713printf "%s\n" "no" >&6; }
37714    fi
37715  fi
37716  #
37717  if test "$tst_compi_gethostbyname_r" = "yes"; then
37718    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37719printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37720    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37721      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37722printf "%s\n" "yes" >&6; }
37723      tst_allow_gethostbyname_r="yes"
37724    else
37725      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37726printf "%s\n" "no" >&6; }
37727      tst_allow_gethostbyname_r="no"
37728    fi
37729  fi
37730  #
37731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
37732printf %s "checking if gethostbyname_r might be used... " >&6; }
37733  if test "$tst_links_gethostbyname_r" = "yes" &&
37734     test "$tst_proto_gethostbyname_r" = "yes" &&
37735     test "$tst_compi_gethostbyname_r" = "yes" &&
37736     test "$tst_allow_gethostbyname_r" = "yes"; then
37737    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37738printf "%s\n" "yes" >&6; }
37739
37740printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
37741
37742            #
37743    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
37744
37745printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
37746
37747    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
37748
37749printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
37750
37751    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
37752
37753printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
37754
37755    fi
37756    #
37757    curl_cv_func_gethostbyname_r="yes"
37758  else
37759    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760printf "%s\n" "no" >&6; }
37761    curl_cv_func_gethostbyname_r="no"
37762  fi
37763
37764
37765curl_preprocess_callconv="\
37766/* preprocess start */
37767#ifdef HAVE_WINDOWS_H
37768#  define FUNCALLCONV __stdcall
37769#else
37770#  define FUNCALLCONV
37771#endif
37772/* preprocess end */"
37773
37774
37775          #
37776  tst_links_gethostname="unknown"
37777  tst_proto_gethostname="unknown"
37778  tst_compi_gethostname="unknown"
37779  tst_allow_gethostname="unknown"
37780  #
37781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
37782printf %s "checking if gethostname can be linked... " >&6; }
37783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37784/* end confdefs.h.  */
37785
37786
37787      $curl_includes_winsock2
37788      $curl_includes_unistd
37789      $curl_includes_bsdsocket
37790
37791int main (void)
37792{
37793
37794      if(0 != gethostname(0, 0))
37795        return 1;
37796
37797 ;
37798 return 0;
37799}
37800
37801_ACEOF
37802if ac_fn_c_try_link "$LINENO"
37803then :
37804
37805    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37806printf "%s\n" "yes" >&6; }
37807    tst_links_gethostname="yes"
37808
37809else $as_nop
37810
37811    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37812printf "%s\n" "no" >&6; }
37813    tst_links_gethostname="no"
37814
37815fi
37816rm -f core conftest.err conftest.$ac_objext conftest.beam \
37817    conftest$ac_exeext conftest.$ac_ext
37818  #
37819  if test "$tst_links_gethostname" = "yes"; then
37820    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
37821printf %s "checking if gethostname is prototyped... " >&6; }
37822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37823/* end confdefs.h.  */
37824
37825      $curl_includes_winsock2
37826      $curl_includes_unistd
37827      $curl_includes_bsdsocket
37828
37829_ACEOF
37830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37831  $EGREP "gethostname" >/dev/null 2>&1
37832then :
37833
37834      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37835printf "%s\n" "yes" >&6; }
37836      tst_proto_gethostname="yes"
37837
37838else $as_nop
37839
37840      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37841printf "%s\n" "no" >&6; }
37842      tst_proto_gethostname="no"
37843
37844fi
37845rm -rf conftest*
37846
37847  fi
37848  #
37849  if test "$tst_proto_gethostname" = "yes"; then
37850    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
37851printf %s "checking if gethostname is compilable... " >&6; }
37852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37853/* end confdefs.h.  */
37854
37855
37856        $curl_includes_winsock2
37857        $curl_includes_unistd
37858        $curl_includes_bsdsocket
37859
37860int main (void)
37861{
37862
37863        if(0 != gethostname(0, 0))
37864          return 1;
37865
37866 ;
37867 return 0;
37868}
37869
37870_ACEOF
37871if ac_fn_c_try_compile "$LINENO"
37872then :
37873
37874      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37875printf "%s\n" "yes" >&6; }
37876      tst_compi_gethostname="yes"
37877
37878else $as_nop
37879
37880      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37881printf "%s\n" "no" >&6; }
37882      tst_compi_gethostname="no"
37883
37884fi
37885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37886  fi
37887  #
37888  if test "$tst_compi_gethostname" = "yes"; then
37889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
37890printf %s "checking for gethostname arg 2 data type... " >&6; }
37891    tst_gethostname_type_arg2="unknown"
37892    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
37893      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
37894        if test "$tst_gethostname_type_arg2" = "unknown"; then
37895          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37896/* end confdefs.h.  */
37897
37898
37899              $curl_includes_winsock2
37900              $curl_includes_unistd
37901              $curl_includes_bsdsocket
37902              $curl_preprocess_callconv
37903              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
37904
37905int main (void)
37906{
37907
37908              if(0 != gethostname(0, 0))
37909                return 1;
37910
37911 ;
37912 return 0;
37913}
37914
37915_ACEOF
37916if ac_fn_c_try_compile "$LINENO"
37917then :
37918
37919            tst_gethostname_type_arg2="$tst_arg2"
37920
37921fi
37922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37923        fi
37924      done
37925    done
37926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
37927printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
37928    if test "$tst_gethostname_type_arg2" != "unknown"; then
37929
37930printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
37931
37932    fi
37933  fi
37934  #
37935  if test "$tst_compi_gethostname" = "yes"; then
37936    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
37937printf %s "checking if gethostname usage allowed... " >&6; }
37938    if test "x$curl_disallow_gethostname" != "xyes"; then
37939      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37940printf "%s\n" "yes" >&6; }
37941      tst_allow_gethostname="yes"
37942    else
37943      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37944printf "%s\n" "no" >&6; }
37945      tst_allow_gethostname="no"
37946    fi
37947  fi
37948  #
37949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
37950printf %s "checking if gethostname might be used... " >&6; }
37951  if test "$tst_links_gethostname" = "yes" &&
37952     test "$tst_proto_gethostname" = "yes" &&
37953     test "$tst_compi_gethostname" = "yes" &&
37954     test "$tst_allow_gethostname" = "yes"; then
37955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37956printf "%s\n" "yes" >&6; }
37957
37958printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
37959
37960    curl_cv_func_gethostname="yes"
37961  else
37962    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37963printf "%s\n" "no" >&6; }
37964    curl_cv_func_gethostname="no"
37965  fi
37966
37967
37968          #
37969  tst_links_getpeername="unknown"
37970  tst_proto_getpeername="unknown"
37971  tst_compi_getpeername="unknown"
37972  tst_allow_getpeername="unknown"
37973  #
37974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
37975printf %s "checking if getpeername can be linked... " >&6; }
37976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37977/* end confdefs.h.  */
37978
37979
37980      $curl_includes_winsock2
37981      $curl_includes_bsdsocket
37982      $curl_includes_sys_socket
37983
37984int main (void)
37985{
37986
37987      if(0 != getpeername(0, (void *)0, (void *)0))
37988        return 1;
37989
37990 ;
37991 return 0;
37992}
37993
37994_ACEOF
37995if ac_fn_c_try_link "$LINENO"
37996then :
37997
37998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37999printf "%s\n" "yes" >&6; }
38000    tst_links_getpeername="yes"
38001
38002else $as_nop
38003
38004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38005printf "%s\n" "no" >&6; }
38006    tst_links_getpeername="no"
38007
38008fi
38009rm -f core conftest.err conftest.$ac_objext conftest.beam \
38010    conftest$ac_exeext conftest.$ac_ext
38011  #
38012  if test "$tst_links_getpeername" = "yes"; then
38013    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38014printf %s "checking if getpeername is prototyped... " >&6; }
38015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38016/* end confdefs.h.  */
38017
38018      $curl_includes_winsock2
38019      $curl_includes_bsdsocket
38020      $curl_includes_sys_socket
38021
38022_ACEOF
38023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38024  $EGREP "getpeername" >/dev/null 2>&1
38025then :
38026
38027      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38028printf "%s\n" "yes" >&6; }
38029      tst_proto_getpeername="yes"
38030
38031else $as_nop
38032
38033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38034printf "%s\n" "no" >&6; }
38035      tst_proto_getpeername="no"
38036
38037fi
38038rm -rf conftest*
38039
38040  fi
38041  #
38042  if test "$tst_proto_getpeername" = "yes"; then
38043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38044printf %s "checking if getpeername is compilable... " >&6; }
38045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38046/* end confdefs.h.  */
38047
38048
38049        $curl_includes_winsock2
38050        $curl_includes_bsdsocket
38051        $curl_includes_sys_socket
38052
38053int main (void)
38054{
38055
38056        if(0 != getpeername(0, (void *)0, (void *)0))
38057          return 1;
38058
38059 ;
38060 return 0;
38061}
38062
38063_ACEOF
38064if ac_fn_c_try_compile "$LINENO"
38065then :
38066
38067      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38068printf "%s\n" "yes" >&6; }
38069      tst_compi_getpeername="yes"
38070
38071else $as_nop
38072
38073      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38074printf "%s\n" "no" >&6; }
38075      tst_compi_getpeername="no"
38076
38077fi
38078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38079  fi
38080  #
38081  if test "$tst_compi_getpeername" = "yes"; then
38082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38083printf %s "checking if getpeername usage allowed... " >&6; }
38084    if test "x$curl_disallow_getpeername" != "xyes"; then
38085      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38086printf "%s\n" "yes" >&6; }
38087      tst_allow_getpeername="yes"
38088    else
38089      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38090printf "%s\n" "no" >&6; }
38091      tst_allow_getpeername="no"
38092    fi
38093  fi
38094  #
38095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38096printf %s "checking if getpeername might be used... " >&6; }
38097  if test "$tst_links_getpeername" = "yes" &&
38098     test "$tst_proto_getpeername" = "yes" &&
38099     test "$tst_compi_getpeername" = "yes" &&
38100     test "$tst_allow_getpeername" = "yes"; then
38101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38102printf "%s\n" "yes" >&6; }
38103
38104printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38105
38106    curl_cv_func_getpeername="yes"
38107  else
38108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38109printf "%s\n" "no" >&6; }
38110    curl_cv_func_getpeername="no"
38111  fi
38112
38113
38114          #
38115  tst_links_getsockname="unknown"
38116  tst_proto_getsockname="unknown"
38117  tst_compi_getsockname="unknown"
38118  tst_allow_getsockname="unknown"
38119  #
38120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38121printf %s "checking if getsockname can be linked... " >&6; }
38122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38123/* end confdefs.h.  */
38124
38125
38126      $curl_includes_winsock2
38127      $curl_includes_bsdsocket
38128      $curl_includes_sys_socket
38129
38130int main (void)
38131{
38132
38133      if(0 != getsockname(0, (void *)0, (void *)0))
38134        return 1;
38135
38136 ;
38137 return 0;
38138}
38139
38140_ACEOF
38141if ac_fn_c_try_link "$LINENO"
38142then :
38143
38144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38145printf "%s\n" "yes" >&6; }
38146    tst_links_getsockname="yes"
38147
38148else $as_nop
38149
38150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38151printf "%s\n" "no" >&6; }
38152    tst_links_getsockname="no"
38153
38154fi
38155rm -f core conftest.err conftest.$ac_objext conftest.beam \
38156    conftest$ac_exeext conftest.$ac_ext
38157  #
38158  if test "$tst_links_getsockname" = "yes"; then
38159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38160printf %s "checking if getsockname is prototyped... " >&6; }
38161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38162/* end confdefs.h.  */
38163
38164      $curl_includes_winsock2
38165      $curl_includes_bsdsocket
38166      $curl_includes_sys_socket
38167
38168_ACEOF
38169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38170  $EGREP "getsockname" >/dev/null 2>&1
38171then :
38172
38173      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38174printf "%s\n" "yes" >&6; }
38175      tst_proto_getsockname="yes"
38176
38177else $as_nop
38178
38179      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38180printf "%s\n" "no" >&6; }
38181      tst_proto_getsockname="no"
38182
38183fi
38184rm -rf conftest*
38185
38186  fi
38187  #
38188  if test "$tst_proto_getsockname" = "yes"; then
38189    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38190printf %s "checking if getsockname is compilable... " >&6; }
38191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38192/* end confdefs.h.  */
38193
38194
38195        $curl_includes_winsock2
38196        $curl_includes_bsdsocket
38197        $curl_includes_sys_socket
38198
38199int main (void)
38200{
38201
38202        if(0 != getsockname(0, (void *)0, (void *)0))
38203          return 1;
38204
38205 ;
38206 return 0;
38207}
38208
38209_ACEOF
38210if ac_fn_c_try_compile "$LINENO"
38211then :
38212
38213      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38214printf "%s\n" "yes" >&6; }
38215      tst_compi_getsockname="yes"
38216
38217else $as_nop
38218
38219      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38220printf "%s\n" "no" >&6; }
38221      tst_compi_getsockname="no"
38222
38223fi
38224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38225  fi
38226  #
38227  if test "$tst_compi_getsockname" = "yes"; then
38228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38229printf %s "checking if getsockname usage allowed... " >&6; }
38230    if test "x$curl_disallow_getsockname" != "xyes"; then
38231      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38232printf "%s\n" "yes" >&6; }
38233      tst_allow_getsockname="yes"
38234    else
38235      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38236printf "%s\n" "no" >&6; }
38237      tst_allow_getsockname="no"
38238    fi
38239  fi
38240  #
38241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38242printf %s "checking if getsockname might be used... " >&6; }
38243  if test "$tst_links_getsockname" = "yes" &&
38244     test "$tst_proto_getsockname" = "yes" &&
38245     test "$tst_compi_getsockname" = "yes" &&
38246     test "$tst_allow_getsockname" = "yes"; then
38247    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38248printf "%s\n" "yes" >&6; }
38249
38250printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38251
38252    curl_cv_func_getsockname="yes"
38253  else
38254    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38255printf "%s\n" "no" >&6; }
38256    curl_cv_func_getsockname="no"
38257  fi
38258
38259
38260curl_includes_netif="\
38261/* includes start */
38262#ifdef HAVE_NET_IF_H
38263#  include <net/if.h>
38264#endif
38265/* includes end */"
38266  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38267"
38268if test "x$ac_cv_header_net_if_h" = xyes
38269then :
38270  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38271
38272fi
38273
38274
38275
38276        #
38277  tst_links_if_nametoindex="unknown"
38278  tst_proto_if_nametoindex="unknown"
38279  tst_compi_if_nametoindex="unknown"
38280  tst_allow_if_nametoindex="unknown"
38281  #
38282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38283printf %s "checking if if_nametoindex can be linked... " >&6; }
38284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38285/* end confdefs.h.  */
38286
38287
38288      $curl_includes_winsock2
38289      $curl_includes_bsdsocket
38290      #include <net/if.h>
38291
38292int main (void)
38293{
38294
38295      if(0 != if_nametoindex(""))
38296        return 1;
38297
38298 ;
38299 return 0;
38300}
38301
38302_ACEOF
38303if ac_fn_c_try_link "$LINENO"
38304then :
38305
38306    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38307printf "%s\n" "yes" >&6; }
38308    tst_links_if_nametoindex="yes"
38309
38310else $as_nop
38311
38312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38313printf "%s\n" "no" >&6; }
38314    tst_links_if_nametoindex="no"
38315
38316fi
38317rm -f core conftest.err conftest.$ac_objext conftest.beam \
38318    conftest$ac_exeext conftest.$ac_ext
38319  #
38320  if test "$tst_links_if_nametoindex" = "yes"; then
38321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38322printf %s "checking if if_nametoindex is prototyped... " >&6; }
38323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38324/* end confdefs.h.  */
38325
38326      $curl_includes_winsock2
38327      $curl_includes_netif
38328
38329_ACEOF
38330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38331  $EGREP "if_nametoindex" >/dev/null 2>&1
38332then :
38333
38334      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335printf "%s\n" "yes" >&6; }
38336      tst_proto_if_nametoindex="yes"
38337
38338else $as_nop
38339
38340      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38341printf "%s\n" "no" >&6; }
38342      tst_proto_if_nametoindex="no"
38343
38344fi
38345rm -rf conftest*
38346
38347  fi
38348  #
38349  if test "$tst_proto_if_nametoindex" = "yes"; then
38350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38351printf %s "checking if if_nametoindex is compilable... " >&6; }
38352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38353/* end confdefs.h.  */
38354
38355
38356        $curl_includes_winsock2
38357        $curl_includes_netif
38358
38359int main (void)
38360{
38361
38362        if(0 != if_nametoindex(""))
38363          return 1;
38364
38365 ;
38366 return 0;
38367}
38368
38369_ACEOF
38370if ac_fn_c_try_compile "$LINENO"
38371then :
38372
38373      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38374printf "%s\n" "yes" >&6; }
38375      tst_compi_if_nametoindex="yes"
38376
38377else $as_nop
38378
38379      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38380printf "%s\n" "no" >&6; }
38381      tst_compi_if_nametoindex="no"
38382
38383fi
38384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38385  fi
38386  #
38387  if test "$tst_compi_if_nametoindex" = "yes"; then
38388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38389printf %s "checking if if_nametoindex usage allowed... " >&6; }
38390    if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38391      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38392printf "%s\n" "yes" >&6; }
38393      tst_allow_if_nametoindex="yes"
38394    else
38395      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38396printf "%s\n" "no" >&6; }
38397      tst_allow_if_nametoindex="no"
38398    fi
38399  fi
38400  #
38401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38402printf %s "checking if if_nametoindex might be used... " >&6; }
38403  if test "$tst_links_if_nametoindex" = "yes" &&
38404     test "$tst_proto_if_nametoindex" = "yes" &&
38405     test "$tst_compi_if_nametoindex" = "yes" &&
38406     test "$tst_allow_if_nametoindex" = "yes"; then
38407    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38408printf "%s\n" "yes" >&6; }
38409
38410printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38411
38412    curl_cv_func_if_nametoindex="yes"
38413  else
38414    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38415printf "%s\n" "no" >&6; }
38416    curl_cv_func_if_nametoindex="no"
38417  fi
38418
38419
38420curl_includes_ifaddrs="\
38421/* includes start */
38422#ifdef HAVE_SYS_TYPES_H
38423#  include <sys/types.h>
38424#endif
38425#ifdef HAVE_SYS_SOCKET_H
38426#  include <sys/socket.h>
38427#endif
38428#ifdef HAVE_NETINET_IN_H
38429#  include <netinet/in.h>
38430#endif
38431#ifdef HAVE_IFADDRS_H
38432#  include <ifaddrs.h>
38433#endif
38434/* includes end */"
38435  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38436"
38437if test "x$ac_cv_header_sys_types_h" = xyes
38438then :
38439  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38440
38441fi
38442ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38443"
38444if test "x$ac_cv_header_sys_socket_h" = xyes
38445then :
38446  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38447
38448fi
38449ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38450"
38451if test "x$ac_cv_header_netinet_in_h" = xyes
38452then :
38453  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38454
38455fi
38456ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38457"
38458if test "x$ac_cv_header_ifaddrs_h" = xyes
38459then :
38460  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38461
38462fi
38463
38464
38465
38466      #
38467  tst_links_getifaddrs="unknown"
38468  tst_proto_getifaddrs="unknown"
38469  tst_compi_getifaddrs="unknown"
38470  tst_works_getifaddrs="unknown"
38471  tst_allow_getifaddrs="unknown"
38472  #
38473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38474printf %s "checking if getifaddrs can be linked... " >&6; }
38475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38476/* end confdefs.h.  */
38477
38478
38479#define getifaddrs innocuous_getifaddrs
38480#ifdef __STDC__
38481# include <limits.h>
38482#else
38483# include <assert.h>
38484#endif
38485#undef getifaddrs
38486#ifdef __cplusplus
38487extern "C"
38488#endif
38489char getifaddrs ();
38490#if defined __stub_getifaddrs || defined __stub___getifaddrs
38491choke me
38492#endif
38493
38494int main (void)
38495{
38496return getifaddrs ();
38497 ;
38498 return 0;
38499}
38500
38501_ACEOF
38502if ac_fn_c_try_link "$LINENO"
38503then :
38504
38505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38506printf "%s\n" "yes" >&6; }
38507    tst_links_getifaddrs="yes"
38508
38509else $as_nop
38510
38511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38512printf "%s\n" "no" >&6; }
38513    tst_links_getifaddrs="no"
38514
38515fi
38516rm -f core conftest.err conftest.$ac_objext conftest.beam \
38517    conftest$ac_exeext conftest.$ac_ext
38518  #
38519  if test "$tst_links_getifaddrs" = "yes"; then
38520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38521printf %s "checking if getifaddrs is prototyped... " >&6; }
38522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38523/* end confdefs.h.  */
38524
38525      $curl_includes_ifaddrs
38526
38527_ACEOF
38528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38529  $EGREP "getifaddrs" >/dev/null 2>&1
38530then :
38531
38532      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38533printf "%s\n" "yes" >&6; }
38534      tst_proto_getifaddrs="yes"
38535
38536else $as_nop
38537
38538      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38539printf "%s\n" "no" >&6; }
38540      tst_proto_getifaddrs="no"
38541
38542fi
38543rm -rf conftest*
38544
38545  fi
38546  #
38547  if test "$tst_proto_getifaddrs" = "yes"; then
38548    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38549printf %s "checking if getifaddrs is compilable... " >&6; }
38550    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38551/* end confdefs.h.  */
38552
38553
38554        $curl_includes_ifaddrs
38555
38556int main (void)
38557{
38558
38559        if(0 != getifaddrs(0))
38560          return 1;
38561
38562 ;
38563 return 0;
38564}
38565
38566_ACEOF
38567if ac_fn_c_try_compile "$LINENO"
38568then :
38569
38570      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38571printf "%s\n" "yes" >&6; }
38572      tst_compi_getifaddrs="yes"
38573
38574else $as_nop
38575
38576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38577printf "%s\n" "no" >&6; }
38578      tst_compi_getifaddrs="no"
38579
38580fi
38581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38582  fi
38583  #
38584    if test "x$cross_compiling" != "xyes" &&
38585    test "$tst_compi_getifaddrs" = "yes"; then
38586    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38587printf %s "checking if getifaddrs seems to work... " >&6; }
38588
38589   case $host_os in
38590     darwin*)
38591      if test "$cross_compiling" = yes
38592then :
38593  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38594printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38595as_fn_error $? "cannot run test program while cross compiling
38596See \`config.log' for more details" "$LINENO" 5; }
38597else $as_nop
38598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38599/* end confdefs.h.  */
38600
38601
38602        $curl_includes_stdlib
38603        $curl_includes_ifaddrs
38604
38605int main (void)
38606{
38607
38608        struct ifaddrs *ifa = 0;
38609        int error;
38610
38611        error = getifaddrs(&ifa);
38612        if(error || !ifa)
38613          exit(1); /* fail */
38614        else
38615          exit(0);
38616
38617 ;
38618 return 0;
38619}
38620
38621_ACEOF
38622if ac_fn_c_try_run "$LINENO"
38623then :
38624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38625printf "%s\n" "yes" >&6; }
38626      tst_works_getifaddrs="yes"
38627
38628else $as_nop
38629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38630printf "%s\n" "no" >&6; }
38631      tst_works_getifaddrs="no"
38632
38633fi
38634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38635  conftest.$ac_objext conftest.beam conftest.$ac_ext
38636fi
38637
38638     ;;
38639     *)
38640      oldcc=$CC
38641      old=$LD_LIBRARY_PATH
38642      CC="sh ./run-compiler"
38643      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38644      export LD_LIBRARY_PATH
38645      if test "$cross_compiling" = yes
38646then :
38647  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38649as_fn_error $? "cannot run test program while cross compiling
38650See \`config.log' for more details" "$LINENO" 5; }
38651else $as_nop
38652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38653/* end confdefs.h.  */
38654
38655
38656        $curl_includes_stdlib
38657        $curl_includes_ifaddrs
38658
38659int main (void)
38660{
38661
38662        struct ifaddrs *ifa = 0;
38663        int error;
38664
38665        error = getifaddrs(&ifa);
38666        if(error || !ifa)
38667          exit(1); /* fail */
38668        else
38669          exit(0);
38670
38671 ;
38672 return 0;
38673}
38674
38675_ACEOF
38676if ac_fn_c_try_run "$LINENO"
38677then :
38678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38679printf "%s\n" "yes" >&6; }
38680      tst_works_getifaddrs="yes"
38681
38682else $as_nop
38683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38684printf "%s\n" "no" >&6; }
38685      tst_works_getifaddrs="no"
38686
38687fi
38688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38689  conftest.$ac_objext conftest.beam conftest.$ac_ext
38690fi
38691
38692      LD_LIBRARY_PATH=$old # restore
38693      CC=$oldcc
38694     ;;
38695   esac
38696
38697  fi
38698  #
38699  if test "$tst_compi_getifaddrs" = "yes" &&
38700    test "$tst_works_getifaddrs" != "no"; then
38701    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38702printf %s "checking if getifaddrs usage allowed... " >&6; }
38703    if test "x$curl_disallow_getifaddrs" != "xyes"; then
38704      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38705printf "%s\n" "yes" >&6; }
38706      tst_allow_getifaddrs="yes"
38707    else
38708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38709printf "%s\n" "no" >&6; }
38710      tst_allow_getifaddrs="no"
38711    fi
38712  fi
38713  #
38714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38715printf %s "checking if getifaddrs might be used... " >&6; }
38716  if test "$tst_links_getifaddrs" = "yes" &&
38717     test "$tst_proto_getifaddrs" = "yes" &&
38718     test "$tst_compi_getifaddrs" = "yes" &&
38719     test "$tst_allow_getifaddrs" = "yes" &&
38720     test "$tst_works_getifaddrs" != "no"; then
38721    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722printf "%s\n" "yes" >&6; }
38723
38724printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
38725
38726    curl_cv_func_getifaddrs="yes"
38727  else
38728    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38729printf "%s\n" "no" >&6; }
38730    curl_cv_func_getifaddrs="no"
38731  fi
38732
38733
38734curl_includes_time="\
38735/* includes start */
38736#ifdef HAVE_SYS_TYPES_H
38737#  include <sys/types.h>
38738#endif
38739#ifdef HAVE_SYS_TIME_H
38740#  include <sys/time.h>
38741#endif
38742#include <time.h>
38743/* includes end */"
38744  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
38745"
38746if test "x$ac_cv_header_sys_types_h" = xyes
38747then :
38748  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38749
38750fi
38751ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
38752"
38753if test "x$ac_cv_header_sys_time_h" = xyes
38754then :
38755  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
38756
38757fi
38758
38759
38760
38761      #
38762  tst_links_gmtime_r="unknown"
38763  tst_proto_gmtime_r="unknown"
38764  tst_compi_gmtime_r="unknown"
38765  tst_works_gmtime_r="unknown"
38766  tst_allow_gmtime_r="unknown"
38767  #
38768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
38769printf %s "checking if gmtime_r can be linked... " >&6; }
38770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38771/* end confdefs.h.  */
38772
38773
38774#define gmtime_r innocuous_gmtime_r
38775#ifdef __STDC__
38776# include <limits.h>
38777#else
38778# include <assert.h>
38779#endif
38780#undef gmtime_r
38781#ifdef __cplusplus
38782extern "C"
38783#endif
38784char gmtime_r ();
38785#if defined __stub_gmtime_r || defined __stub___gmtime_r
38786choke me
38787#endif
38788
38789int main (void)
38790{
38791return gmtime_r ();
38792 ;
38793 return 0;
38794}
38795
38796_ACEOF
38797if ac_fn_c_try_link "$LINENO"
38798then :
38799
38800    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38801printf "%s\n" "yes" >&6; }
38802    tst_links_gmtime_r="yes"
38803
38804else $as_nop
38805
38806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38807printf "%s\n" "no" >&6; }
38808    tst_links_gmtime_r="no"
38809
38810fi
38811rm -f core conftest.err conftest.$ac_objext conftest.beam \
38812    conftest$ac_exeext conftest.$ac_ext
38813  #
38814  if test "$tst_links_gmtime_r" = "yes"; then
38815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
38816printf %s "checking if gmtime_r is prototyped... " >&6; }
38817    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38818/* end confdefs.h.  */
38819
38820      $curl_includes_time
38821
38822_ACEOF
38823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38824  $EGREP "gmtime_r" >/dev/null 2>&1
38825then :
38826
38827      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38828printf "%s\n" "yes" >&6; }
38829      tst_proto_gmtime_r="yes"
38830
38831else $as_nop
38832
38833      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38834printf "%s\n" "no" >&6; }
38835      tst_proto_gmtime_r="no"
38836
38837fi
38838rm -rf conftest*
38839
38840  fi
38841  #
38842  if test "$tst_proto_gmtime_r" = "yes"; then
38843    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
38844printf %s "checking if gmtime_r is compilable... " >&6; }
38845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38846/* end confdefs.h.  */
38847
38848
38849        $curl_includes_time
38850
38851int main (void)
38852{
38853
38854        if(0 != gmtime_r(0, 0))
38855          return 1;
38856
38857 ;
38858 return 0;
38859}
38860
38861_ACEOF
38862if ac_fn_c_try_compile "$LINENO"
38863then :
38864
38865      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866printf "%s\n" "yes" >&6; }
38867      tst_compi_gmtime_r="yes"
38868
38869else $as_nop
38870
38871      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38872printf "%s\n" "no" >&6; }
38873      tst_compi_gmtime_r="no"
38874
38875fi
38876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38877  fi
38878  #
38879    if test "x$cross_compiling" != "xyes" &&
38880    test "$tst_compi_gmtime_r" = "yes"; then
38881    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
38882printf %s "checking if gmtime_r seems to work... " >&6; }
38883
38884   case $host_os in
38885     darwin*)
38886      if test "$cross_compiling" = yes
38887then :
38888  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38889printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38890as_fn_error $? "cannot run test program while cross compiling
38891See \`config.log' for more details" "$LINENO" 5; }
38892else $as_nop
38893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38894/* end confdefs.h.  */
38895
38896
38897        $curl_includes_stdlib
38898        $curl_includes_time
38899
38900int main (void)
38901{
38902
38903        time_t local = 1170352587;
38904        struct tm *gmt = 0;
38905        struct tm result;
38906        gmt = gmtime_r(&local, &result);
38907        if(gmt)
38908          exit(0);
38909        else
38910          exit(1);
38911
38912 ;
38913 return 0;
38914}
38915
38916_ACEOF
38917if ac_fn_c_try_run "$LINENO"
38918then :
38919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38920printf "%s\n" "yes" >&6; }
38921      tst_works_gmtime_r="yes"
38922
38923else $as_nop
38924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38925printf "%s\n" "no" >&6; }
38926      tst_works_gmtime_r="no"
38927
38928fi
38929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38930  conftest.$ac_objext conftest.beam conftest.$ac_ext
38931fi
38932
38933     ;;
38934     *)
38935      oldcc=$CC
38936      old=$LD_LIBRARY_PATH
38937      CC="sh ./run-compiler"
38938      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38939      export LD_LIBRARY_PATH
38940      if test "$cross_compiling" = yes
38941then :
38942  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38944as_fn_error $? "cannot run test program while cross compiling
38945See \`config.log' for more details" "$LINENO" 5; }
38946else $as_nop
38947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38948/* end confdefs.h.  */
38949
38950
38951        $curl_includes_stdlib
38952        $curl_includes_time
38953
38954int main (void)
38955{
38956
38957        time_t local = 1170352587;
38958        struct tm *gmt = 0;
38959        struct tm result;
38960        gmt = gmtime_r(&local, &result);
38961        if(gmt)
38962          exit(0);
38963        else
38964          exit(1);
38965
38966 ;
38967 return 0;
38968}
38969
38970_ACEOF
38971if ac_fn_c_try_run "$LINENO"
38972then :
38973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38974printf "%s\n" "yes" >&6; }
38975      tst_works_gmtime_r="yes"
38976
38977else $as_nop
38978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38979printf "%s\n" "no" >&6; }
38980      tst_works_gmtime_r="no"
38981
38982fi
38983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38984  conftest.$ac_objext conftest.beam conftest.$ac_ext
38985fi
38986
38987      LD_LIBRARY_PATH=$old # restore
38988      CC=$oldcc
38989     ;;
38990   esac
38991
38992  fi
38993  #
38994  if test "$tst_compi_gmtime_r" = "yes" &&
38995    test "$tst_works_gmtime_r" != "no"; then
38996    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
38997printf %s "checking if gmtime_r usage allowed... " >&6; }
38998    if test "x$curl_disallow_gmtime_r" != "xyes"; then
38999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39000printf "%s\n" "yes" >&6; }
39001      tst_allow_gmtime_r="yes"
39002    else
39003      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39004printf "%s\n" "no" >&6; }
39005      tst_allow_gmtime_r="no"
39006    fi
39007  fi
39008  #
39009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39010printf %s "checking if gmtime_r might be used... " >&6; }
39011  if test "$tst_links_gmtime_r" = "yes" &&
39012     test "$tst_proto_gmtime_r" = "yes" &&
39013     test "$tst_compi_gmtime_r" = "yes" &&
39014     test "$tst_allow_gmtime_r" = "yes" &&
39015     test "$tst_works_gmtime_r" != "no"; then
39016    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39017printf "%s\n" "yes" >&6; }
39018
39019printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39020
39021    curl_cv_func_gmtime_r="yes"
39022  else
39023    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39024printf "%s\n" "no" >&6; }
39025    curl_cv_func_gmtime_r="no"
39026  fi
39027
39028
39029curl_includes_arpa_inet="\
39030/* includes start */
39031#ifdef HAVE_SYS_TYPES_H
39032#  include <sys/types.h>
39033#endif
39034#ifdef HAVE_SYS_SOCKET_H
39035#  include <sys/socket.h>
39036#endif
39037#ifdef HAVE_NETINET_IN_H
39038#  include <netinet/in.h>
39039#endif
39040#ifdef HAVE_ARPA_INET_H
39041#  include <arpa/inet.h>
39042#endif
39043#ifdef HAVE_WINSOCK2_H
39044#include <winsock2.h>
39045#include <ws2tcpip.h>
39046#endif
39047/* includes end */"
39048  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39049"
39050if test "x$ac_cv_header_sys_types_h" = xyes
39051then :
39052  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39053
39054fi
39055ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39056"
39057if test "x$ac_cv_header_sys_socket_h" = xyes
39058then :
39059  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39060
39061fi
39062ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39063"
39064if test "x$ac_cv_header_netinet_in_h" = xyes
39065then :
39066  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39067
39068fi
39069ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39070"
39071if test "x$ac_cv_header_arpa_inet_h" = xyes
39072then :
39073  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39074
39075fi
39076
39077
39078
39079        #
39080  tst_links_inet_ntop="unknown"
39081  tst_proto_inet_ntop="unknown"
39082  tst_compi_inet_ntop="unknown"
39083  tst_works_inet_ntop="unknown"
39084  tst_allow_inet_ntop="unknown"
39085  #
39086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39087printf %s "checking if inet_ntop can be linked... " >&6; }
39088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39089/* end confdefs.h.  */
39090
39091
39092#define inet_ntop innocuous_inet_ntop
39093#ifdef __STDC__
39094# include <limits.h>
39095#else
39096# include <assert.h>
39097#endif
39098#undef inet_ntop
39099#ifdef __cplusplus
39100extern "C"
39101#endif
39102char inet_ntop ();
39103#if defined __stub_inet_ntop || defined __stub___inet_ntop
39104choke me
39105#endif
39106
39107int main (void)
39108{
39109return inet_ntop ();
39110 ;
39111 return 0;
39112}
39113
39114_ACEOF
39115if ac_fn_c_try_link "$LINENO"
39116then :
39117
39118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39119printf "%s\n" "yes" >&6; }
39120    tst_links_inet_ntop="yes"
39121
39122else $as_nop
39123
39124    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39125printf "%s\n" "no" >&6; }
39126    tst_links_inet_ntop="no"
39127
39128fi
39129rm -f core conftest.err conftest.$ac_objext conftest.beam \
39130    conftest$ac_exeext conftest.$ac_ext
39131  #
39132  if test "$tst_links_inet_ntop" = "yes"; then
39133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39134printf %s "checking if inet_ntop is prototyped... " >&6; }
39135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39136/* end confdefs.h.  */
39137
39138      $curl_includes_arpa_inet
39139
39140_ACEOF
39141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39142  $EGREP "inet_ntop" >/dev/null 2>&1
39143then :
39144
39145      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39146printf "%s\n" "yes" >&6; }
39147      tst_proto_inet_ntop="yes"
39148
39149else $as_nop
39150
39151      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39152printf "%s\n" "no" >&6; }
39153      tst_proto_inet_ntop="no"
39154
39155fi
39156rm -rf conftest*
39157
39158  fi
39159  #
39160  if test "$tst_proto_inet_ntop" = "yes"; then
39161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39162printf %s "checking if inet_ntop is compilable... " >&6; }
39163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39164/* end confdefs.h.  */
39165
39166
39167        $curl_includes_arpa_inet
39168
39169int main (void)
39170{
39171
39172        if(0 != inet_ntop(0, 0, 0, 0))
39173          return 1;
39174
39175 ;
39176 return 0;
39177}
39178
39179_ACEOF
39180if ac_fn_c_try_compile "$LINENO"
39181then :
39182
39183      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39184printf "%s\n" "yes" >&6; }
39185      tst_compi_inet_ntop="yes"
39186
39187else $as_nop
39188
39189      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39190printf "%s\n" "no" >&6; }
39191      tst_compi_inet_ntop="no"
39192
39193fi
39194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39195  fi
39196  #
39197    if test "x$cross_compiling" != "xyes" &&
39198    test "$tst_compi_inet_ntop" = "yes"; then
39199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39200printf %s "checking if inet_ntop seems to work... " >&6; }
39201
39202   case $host_os in
39203     darwin*)
39204      if test "$cross_compiling" = yes
39205then :
39206  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39207printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39208as_fn_error $? "cannot run test program while cross compiling
39209See \`config.log' for more details" "$LINENO" 5; }
39210else $as_nop
39211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39212/* end confdefs.h.  */
39213
39214
39215        $curl_includes_stdlib
39216        $curl_includes_arpa_inet
39217        $curl_includes_string
39218
39219int main (void)
39220{
39221
39222        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39223        char ipv4res[sizeof "255.255.255.255"];
39224        unsigned char ipv6a[26];
39225        unsigned char ipv4a[5];
39226        char *ipv6ptr = 0;
39227        char *ipv4ptr = 0;
39228        /* - */
39229        ipv4res[0] = '\0';
39230        ipv4a[0] = 0xc0;
39231        ipv4a[1] = 0xa8;
39232        ipv4a[2] = 0x64;
39233        ipv4a[3] = 0x01;
39234        ipv4a[4] = 0x01;
39235        /* - */
39236        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39237        if(!ipv4ptr)
39238          exit(1); /* fail */
39239        if(ipv4ptr != ipv4res)
39240          exit(1); /* fail */
39241        if(!ipv4ptr[0])
39242          exit(1); /* fail */
39243        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39244          exit(1); /* fail */
39245        /* - */
39246        ipv6res[0] = '\0';
39247        memset(ipv6a, 0, sizeof(ipv6a));
39248        ipv6a[0] = 0xfe;
39249        ipv6a[1] = 0x80;
39250        ipv6a[8] = 0x02;
39251        ipv6a[9] = 0x14;
39252        ipv6a[10] = 0x4f;
39253        ipv6a[11] = 0xff;
39254        ipv6a[12] = 0xfe;
39255        ipv6a[13] = 0x0b;
39256        ipv6a[14] = 0x76;
39257        ipv6a[15] = 0xc8;
39258        ipv6a[25] = 0x01;
39259        /* - */
39260        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39261        if(!ipv6ptr)
39262          exit(1); /* fail */
39263        if(ipv6ptr != ipv6res)
39264          exit(1); /* fail */
39265        if(!ipv6ptr[0])
39266          exit(1); /* fail */
39267        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39268          exit(1); /* fail */
39269        /* - */
39270        exit(0);
39271
39272 ;
39273 return 0;
39274}
39275
39276_ACEOF
39277if ac_fn_c_try_run "$LINENO"
39278then :
39279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39280printf "%s\n" "yes" >&6; }
39281      tst_works_inet_ntop="yes"
39282
39283else $as_nop
39284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39285printf "%s\n" "no" >&6; }
39286      tst_works_inet_ntop="no"
39287
39288fi
39289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39290  conftest.$ac_objext conftest.beam conftest.$ac_ext
39291fi
39292
39293     ;;
39294     *)
39295      oldcc=$CC
39296      old=$LD_LIBRARY_PATH
39297      CC="sh ./run-compiler"
39298      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39299      export LD_LIBRARY_PATH
39300      if test "$cross_compiling" = yes
39301then :
39302  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39303printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39304as_fn_error $? "cannot run test program while cross compiling
39305See \`config.log' for more details" "$LINENO" 5; }
39306else $as_nop
39307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39308/* end confdefs.h.  */
39309
39310
39311        $curl_includes_stdlib
39312        $curl_includes_arpa_inet
39313        $curl_includes_string
39314
39315int main (void)
39316{
39317
39318        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39319        char ipv4res[sizeof "255.255.255.255"];
39320        unsigned char ipv6a[26];
39321        unsigned char ipv4a[5];
39322        char *ipv6ptr = 0;
39323        char *ipv4ptr = 0;
39324        /* - */
39325        ipv4res[0] = '\0';
39326        ipv4a[0] = 0xc0;
39327        ipv4a[1] = 0xa8;
39328        ipv4a[2] = 0x64;
39329        ipv4a[3] = 0x01;
39330        ipv4a[4] = 0x01;
39331        /* - */
39332        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39333        if(!ipv4ptr)
39334          exit(1); /* fail */
39335        if(ipv4ptr != ipv4res)
39336          exit(1); /* fail */
39337        if(!ipv4ptr[0])
39338          exit(1); /* fail */
39339        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39340          exit(1); /* fail */
39341        /* - */
39342        ipv6res[0] = '\0';
39343        memset(ipv6a, 0, sizeof(ipv6a));
39344        ipv6a[0] = 0xfe;
39345        ipv6a[1] = 0x80;
39346        ipv6a[8] = 0x02;
39347        ipv6a[9] = 0x14;
39348        ipv6a[10] = 0x4f;
39349        ipv6a[11] = 0xff;
39350        ipv6a[12] = 0xfe;
39351        ipv6a[13] = 0x0b;
39352        ipv6a[14] = 0x76;
39353        ipv6a[15] = 0xc8;
39354        ipv6a[25] = 0x01;
39355        /* - */
39356        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39357        if(!ipv6ptr)
39358          exit(1); /* fail */
39359        if(ipv6ptr != ipv6res)
39360          exit(1); /* fail */
39361        if(!ipv6ptr[0])
39362          exit(1); /* fail */
39363        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39364          exit(1); /* fail */
39365        /* - */
39366        exit(0);
39367
39368 ;
39369 return 0;
39370}
39371
39372_ACEOF
39373if ac_fn_c_try_run "$LINENO"
39374then :
39375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39376printf "%s\n" "yes" >&6; }
39377      tst_works_inet_ntop="yes"
39378
39379else $as_nop
39380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39381printf "%s\n" "no" >&6; }
39382      tst_works_inet_ntop="no"
39383
39384fi
39385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39386  conftest.$ac_objext conftest.beam conftest.$ac_ext
39387fi
39388
39389      LD_LIBRARY_PATH=$old # restore
39390      CC=$oldcc
39391     ;;
39392   esac
39393
39394  fi
39395  #
39396  if test "$tst_compi_inet_ntop" = "yes" &&
39397    test "$tst_works_inet_ntop" != "no"; then
39398    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39399printf %s "checking if inet_ntop usage allowed... " >&6; }
39400    if test "x$curl_disallow_inet_ntop" != "xyes"; then
39401      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39402printf "%s\n" "yes" >&6; }
39403      tst_allow_inet_ntop="yes"
39404    else
39405      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39406printf "%s\n" "no" >&6; }
39407      tst_allow_inet_ntop="no"
39408    fi
39409  fi
39410  #
39411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39412printf %s "checking if inet_ntop might be used... " >&6; }
39413  if test "$tst_links_inet_ntop" = "yes" &&
39414     test "$tst_proto_inet_ntop" = "yes" &&
39415     test "$tst_compi_inet_ntop" = "yes" &&
39416     test "$tst_allow_inet_ntop" = "yes" &&
39417     test "$tst_works_inet_ntop" != "no"; then
39418    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39419printf "%s\n" "yes" >&6; }
39420
39421printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39422
39423    curl_cv_func_inet_ntop="yes"
39424  else
39425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39426printf "%s\n" "no" >&6; }
39427    curl_cv_func_inet_ntop="no"
39428  fi
39429
39430
39431        #
39432  tst_links_inet_pton="unknown"
39433  tst_proto_inet_pton="unknown"
39434  tst_compi_inet_pton="unknown"
39435  tst_works_inet_pton="unknown"
39436  tst_allow_inet_pton="unknown"
39437  #
39438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39439printf %s "checking if inet_pton can be linked... " >&6; }
39440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39441/* end confdefs.h.  */
39442
39443
39444#define inet_pton innocuous_inet_pton
39445#ifdef __STDC__
39446# include <limits.h>
39447#else
39448# include <assert.h>
39449#endif
39450#undef inet_pton
39451#ifdef __cplusplus
39452extern "C"
39453#endif
39454char inet_pton ();
39455#if defined __stub_inet_pton || defined __stub___inet_pton
39456choke me
39457#endif
39458
39459int main (void)
39460{
39461return inet_pton ();
39462 ;
39463 return 0;
39464}
39465
39466_ACEOF
39467if ac_fn_c_try_link "$LINENO"
39468then :
39469
39470    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39471printf "%s\n" "yes" >&6; }
39472    tst_links_inet_pton="yes"
39473
39474else $as_nop
39475
39476    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39477printf "%s\n" "no" >&6; }
39478    tst_links_inet_pton="no"
39479
39480fi
39481rm -f core conftest.err conftest.$ac_objext conftest.beam \
39482    conftest$ac_exeext conftest.$ac_ext
39483  #
39484  if test "$tst_links_inet_pton" = "yes"; then
39485    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39486printf %s "checking if inet_pton is prototyped... " >&6; }
39487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39488/* end confdefs.h.  */
39489
39490      $curl_includes_arpa_inet
39491
39492_ACEOF
39493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39494  $EGREP "inet_pton" >/dev/null 2>&1
39495then :
39496
39497      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39498printf "%s\n" "yes" >&6; }
39499      tst_proto_inet_pton="yes"
39500
39501else $as_nop
39502
39503      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39504printf "%s\n" "no" >&6; }
39505      tst_proto_inet_pton="no"
39506
39507fi
39508rm -rf conftest*
39509
39510  fi
39511  #
39512  if test "$tst_proto_inet_pton" = "yes"; then
39513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39514printf %s "checking if inet_pton is compilable... " >&6; }
39515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39516/* end confdefs.h.  */
39517
39518
39519        $curl_includes_arpa_inet
39520
39521int main (void)
39522{
39523
39524        if(0 != inet_pton(0, 0, 0))
39525          return 1;
39526
39527 ;
39528 return 0;
39529}
39530
39531_ACEOF
39532if ac_fn_c_try_compile "$LINENO"
39533then :
39534
39535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39536printf "%s\n" "yes" >&6; }
39537      tst_compi_inet_pton="yes"
39538
39539else $as_nop
39540
39541      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39542printf "%s\n" "no" >&6; }
39543      tst_compi_inet_pton="no"
39544
39545fi
39546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39547  fi
39548  #
39549    if test "x$cross_compiling" != "xyes" &&
39550    test "$tst_compi_inet_pton" = "yes"; then
39551    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39552printf %s "checking if inet_pton seems to work... " >&6; }
39553
39554   case $host_os in
39555     darwin*)
39556      if test "$cross_compiling" = yes
39557then :
39558  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39560as_fn_error $? "cannot run test program while cross compiling
39561See \`config.log' for more details" "$LINENO" 5; }
39562else $as_nop
39563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39564/* end confdefs.h.  */
39565
39566
39567        $curl_includes_stdlib
39568        $curl_includes_arpa_inet
39569        $curl_includes_string
39570
39571int main (void)
39572{
39573
39574        unsigned char ipv6a[16+1];
39575        unsigned char ipv4a[4+1];
39576        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39577        const char *ipv4src = "192.168.100.1";
39578        /* - */
39579        memset(ipv4a, 1, sizeof(ipv4a));
39580        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39581          exit(1); /* fail */
39582        /* - */
39583        if( (ipv4a[0] != 0xc0) ||
39584            (ipv4a[1] != 0xa8) ||
39585            (ipv4a[2] != 0x64) ||
39586            (ipv4a[3] != 0x01) ||
39587            (ipv4a[4] != 0x01) )
39588          exit(1); /* fail */
39589        /* - */
39590        memset(ipv6a, 1, sizeof(ipv6a));
39591        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39592          exit(1); /* fail */
39593        /* - */
39594        if( (ipv6a[0]  != 0xfe) ||
39595            (ipv6a[1]  != 0x80) ||
39596            (ipv6a[8]  != 0x02) ||
39597            (ipv6a[9]  != 0x14) ||
39598            (ipv6a[10] != 0x4f) ||
39599            (ipv6a[11] != 0xff) ||
39600            (ipv6a[12] != 0xfe) ||
39601            (ipv6a[13] != 0x0b) ||
39602            (ipv6a[14] != 0x76) ||
39603            (ipv6a[15] != 0xc8) ||
39604            (ipv6a[16] != 0x01) )
39605          exit(1); /* fail */
39606        /* - */
39607        if( (ipv6a[2]  != 0x0) ||
39608            (ipv6a[3]  != 0x0) ||
39609            (ipv6a[4]  != 0x0) ||
39610            (ipv6a[5]  != 0x0) ||
39611            (ipv6a[6]  != 0x0) ||
39612            (ipv6a[7]  != 0x0) )
39613          exit(1); /* fail */
39614        /* - */
39615        exit(0);
39616
39617 ;
39618 return 0;
39619}
39620
39621_ACEOF
39622if ac_fn_c_try_run "$LINENO"
39623then :
39624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39625printf "%s\n" "yes" >&6; }
39626      tst_works_inet_pton="yes"
39627
39628else $as_nop
39629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39630printf "%s\n" "no" >&6; }
39631      tst_works_inet_pton="no"
39632
39633fi
39634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39635  conftest.$ac_objext conftest.beam conftest.$ac_ext
39636fi
39637
39638     ;;
39639     *)
39640      oldcc=$CC
39641      old=$LD_LIBRARY_PATH
39642      CC="sh ./run-compiler"
39643      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39644      export LD_LIBRARY_PATH
39645      if test "$cross_compiling" = yes
39646then :
39647  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39648printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39649as_fn_error $? "cannot run test program while cross compiling
39650See \`config.log' for more details" "$LINENO" 5; }
39651else $as_nop
39652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39653/* end confdefs.h.  */
39654
39655
39656        $curl_includes_stdlib
39657        $curl_includes_arpa_inet
39658        $curl_includes_string
39659
39660int main (void)
39661{
39662
39663        unsigned char ipv6a[16+1];
39664        unsigned char ipv4a[4+1];
39665        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39666        const char *ipv4src = "192.168.100.1";
39667        /* - */
39668        memset(ipv4a, 1, sizeof(ipv4a));
39669        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39670          exit(1); /* fail */
39671        /* - */
39672        if( (ipv4a[0] != 0xc0) ||
39673            (ipv4a[1] != 0xa8) ||
39674            (ipv4a[2] != 0x64) ||
39675            (ipv4a[3] != 0x01) ||
39676            (ipv4a[4] != 0x01) )
39677          exit(1); /* fail */
39678        /* - */
39679        memset(ipv6a, 1, sizeof(ipv6a));
39680        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39681          exit(1); /* fail */
39682        /* - */
39683        if( (ipv6a[0]  != 0xfe) ||
39684            (ipv6a[1]  != 0x80) ||
39685            (ipv6a[8]  != 0x02) ||
39686            (ipv6a[9]  != 0x14) ||
39687            (ipv6a[10] != 0x4f) ||
39688            (ipv6a[11] != 0xff) ||
39689            (ipv6a[12] != 0xfe) ||
39690            (ipv6a[13] != 0x0b) ||
39691            (ipv6a[14] != 0x76) ||
39692            (ipv6a[15] != 0xc8) ||
39693            (ipv6a[16] != 0x01) )
39694          exit(1); /* fail */
39695        /* - */
39696        if( (ipv6a[2]  != 0x0) ||
39697            (ipv6a[3]  != 0x0) ||
39698            (ipv6a[4]  != 0x0) ||
39699            (ipv6a[5]  != 0x0) ||
39700            (ipv6a[6]  != 0x0) ||
39701            (ipv6a[7]  != 0x0) )
39702          exit(1); /* fail */
39703        /* - */
39704        exit(0);
39705
39706 ;
39707 return 0;
39708}
39709
39710_ACEOF
39711if ac_fn_c_try_run "$LINENO"
39712then :
39713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39714printf "%s\n" "yes" >&6; }
39715      tst_works_inet_pton="yes"
39716
39717else $as_nop
39718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39719printf "%s\n" "no" >&6; }
39720      tst_works_inet_pton="no"
39721
39722fi
39723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39724  conftest.$ac_objext conftest.beam conftest.$ac_ext
39725fi
39726
39727      LD_LIBRARY_PATH=$old # restore
39728      CC=$oldcc
39729     ;;
39730   esac
39731
39732  fi
39733  #
39734  if test "$tst_compi_inet_pton" = "yes" &&
39735    test "$tst_works_inet_pton" != "no"; then
39736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39737printf %s "checking if inet_pton usage allowed... " >&6; }
39738    if test "x$curl_disallow_inet_pton" != "xyes"; then
39739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39740printf "%s\n" "yes" >&6; }
39741      tst_allow_inet_pton="yes"
39742    else
39743      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39744printf "%s\n" "no" >&6; }
39745      tst_allow_inet_pton="no"
39746    fi
39747  fi
39748  #
39749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39750printf %s "checking if inet_pton might be used... " >&6; }
39751  if test "$tst_links_inet_pton" = "yes" &&
39752     test "$tst_proto_inet_pton" = "yes" &&
39753     test "$tst_compi_inet_pton" = "yes" &&
39754     test "$tst_allow_inet_pton" = "yes" &&
39755     test "$tst_works_inet_pton" != "no"; then
39756    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39757printf "%s\n" "yes" >&6; }
39758
39759printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39760
39761    curl_cv_func_inet_pton="yes"
39762  else
39763    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39764printf "%s\n" "no" >&6; }
39765    curl_cv_func_inet_pton="no"
39766  fi
39767
39768
39769curl_includes_stropts="\
39770/* includes start */
39771#ifdef HAVE_SYS_TYPES_H
39772#  include <sys/types.h>
39773#endif
39774#ifdef HAVE_UNISTD_H
39775#  include <unistd.h>
39776#endif
39777#ifdef HAVE_SYS_SOCKET_H
39778#  include <sys/socket.h>
39779#endif
39780#ifdef HAVE_SYS_IOCTL_H
39781#  include <sys/ioctl.h>
39782#endif
39783#ifdef HAVE_STROPTS_H
39784#  include <stropts.h>
39785#endif
39786/* includes end */"
39787  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
39788"
39789if test "x$ac_cv_header_sys_types_h" = xyes
39790then :
39791  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39792
39793fi
39794ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
39795"
39796if test "x$ac_cv_header_unistd_h" = xyes
39797then :
39798  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
39799
39800fi
39801ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
39802"
39803if test "x$ac_cv_header_sys_socket_h" = xyes
39804then :
39805  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39806
39807fi
39808ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
39809"
39810if test "x$ac_cv_header_sys_ioctl_h" = xyes
39811then :
39812  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
39813
39814fi
39815ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
39816"
39817if test "x$ac_cv_header_stropts_h" = xyes
39818then :
39819  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
39820
39821fi
39822
39823
39824
39825    #
39826  tst_links_ioctl="unknown"
39827  tst_proto_ioctl="unknown"
39828  tst_compi_ioctl="unknown"
39829  tst_allow_ioctl="unknown"
39830  #
39831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
39832printf %s "checking if ioctl can be linked... " >&6; }
39833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39834/* end confdefs.h.  */
39835
39836
39837#define ioctl innocuous_ioctl
39838#ifdef __STDC__
39839# include <limits.h>
39840#else
39841# include <assert.h>
39842#endif
39843#undef ioctl
39844#ifdef __cplusplus
39845extern "C"
39846#endif
39847char ioctl ();
39848#if defined __stub_ioctl || defined __stub___ioctl
39849choke me
39850#endif
39851
39852int main (void)
39853{
39854return ioctl ();
39855 ;
39856 return 0;
39857}
39858
39859_ACEOF
39860if ac_fn_c_try_link "$LINENO"
39861then :
39862
39863    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39864printf "%s\n" "yes" >&6; }
39865    tst_links_ioctl="yes"
39866
39867else $as_nop
39868
39869    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39870printf "%s\n" "no" >&6; }
39871    tst_links_ioctl="no"
39872
39873fi
39874rm -f core conftest.err conftest.$ac_objext conftest.beam \
39875    conftest$ac_exeext conftest.$ac_ext
39876  #
39877  if test "$tst_links_ioctl" = "yes"; then
39878    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
39879printf %s "checking if ioctl is prototyped... " >&6; }
39880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39881/* end confdefs.h.  */
39882
39883      $curl_includes_stropts
39884
39885_ACEOF
39886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39887  $EGREP "ioctl" >/dev/null 2>&1
39888then :
39889
39890      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39891printf "%s\n" "yes" >&6; }
39892      tst_proto_ioctl="yes"
39893
39894else $as_nop
39895
39896      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39897printf "%s\n" "no" >&6; }
39898      tst_proto_ioctl="no"
39899
39900fi
39901rm -rf conftest*
39902
39903  fi
39904  #
39905  if test "$tst_proto_ioctl" = "yes"; then
39906    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
39907printf %s "checking if ioctl is compilable... " >&6; }
39908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39909/* end confdefs.h.  */
39910
39911
39912        $curl_includes_stropts
39913
39914int main (void)
39915{
39916
39917        if(0 != ioctl(0, 0, 0))
39918          return 1;
39919
39920 ;
39921 return 0;
39922}
39923
39924_ACEOF
39925if ac_fn_c_try_compile "$LINENO"
39926then :
39927
39928      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39929printf "%s\n" "yes" >&6; }
39930      tst_compi_ioctl="yes"
39931
39932else $as_nop
39933
39934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39935printf "%s\n" "no" >&6; }
39936      tst_compi_ioctl="no"
39937
39938fi
39939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39940  fi
39941  #
39942  if test "$tst_compi_ioctl" = "yes"; then
39943    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
39944printf %s "checking if ioctl usage allowed... " >&6; }
39945    if test "x$curl_disallow_ioctl" != "xyes"; then
39946      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39947printf "%s\n" "yes" >&6; }
39948      tst_allow_ioctl="yes"
39949    else
39950      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39951printf "%s\n" "no" >&6; }
39952      tst_allow_ioctl="no"
39953    fi
39954  fi
39955  #
39956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
39957printf %s "checking if ioctl might be used... " >&6; }
39958  if test "$tst_links_ioctl" = "yes" &&
39959     test "$tst_proto_ioctl" = "yes" &&
39960     test "$tst_compi_ioctl" = "yes" &&
39961     test "$tst_allow_ioctl" = "yes"; then
39962    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39963printf "%s\n" "yes" >&6; }
39964
39965printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
39966
39967    curl_cv_func_ioctl="yes"
39968
39969  #
39970  tst_compi_ioctl_fionbio="unknown"
39971  tst_allow_ioctl_fionbio="unknown"
39972  #
39973  if test "$curl_cv_func_ioctl" = "yes"; then
39974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
39975printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
39976    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39977/* end confdefs.h.  */
39978
39979
39980        $curl_includes_stropts
39981
39982int main (void)
39983{
39984
39985        int flags = 0;
39986        if(0 != ioctl(0, FIONBIO, &flags))
39987          return 1;
39988
39989 ;
39990 return 0;
39991}
39992
39993_ACEOF
39994if ac_fn_c_try_compile "$LINENO"
39995then :
39996
39997      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39998printf "%s\n" "yes" >&6; }
39999      tst_compi_ioctl_fionbio="yes"
40000
40001else $as_nop
40002
40003      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40004printf "%s\n" "no" >&6; }
40005      tst_compi_ioctl_fionbio="no"
40006
40007fi
40008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40009  fi
40010  #
40011  if test "$tst_compi_ioctl_fionbio" = "yes"; then
40012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40013printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40014    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40015      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40016printf "%s\n" "yes" >&6; }
40017      tst_allow_ioctl_fionbio="yes"
40018    else
40019      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40020printf "%s\n" "no" >&6; }
40021      tst_allow_ioctl_fionbio="no"
40022    fi
40023  fi
40024  #
40025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40026printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40027  if test "$tst_compi_ioctl_fionbio" = "yes" &&
40028     test "$tst_allow_ioctl_fionbio" = "yes"; then
40029    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40030printf "%s\n" "yes" >&6; }
40031
40032printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40033
40034    curl_cv_func_ioctl_fionbio="yes"
40035  else
40036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037printf "%s\n" "no" >&6; }
40038    curl_cv_func_ioctl_fionbio="no"
40039  fi
40040
40041
40042  #
40043  tst_compi_ioctl_siocgifaddr="unknown"
40044  tst_allow_ioctl_siocgifaddr="unknown"
40045  #
40046  if test "$curl_cv_func_ioctl" = "yes"; then
40047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40048printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40050/* end confdefs.h.  */
40051
40052
40053        $curl_includes_stropts
40054        #include <net/if.h>
40055
40056int main (void)
40057{
40058
40059        struct ifreq ifr;
40060        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40061          return 1;
40062
40063 ;
40064 return 0;
40065}
40066
40067_ACEOF
40068if ac_fn_c_try_compile "$LINENO"
40069then :
40070
40071      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40072printf "%s\n" "yes" >&6; }
40073      tst_compi_ioctl_siocgifaddr="yes"
40074
40075else $as_nop
40076
40077      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40078printf "%s\n" "no" >&6; }
40079      tst_compi_ioctl_siocgifaddr="no"
40080
40081fi
40082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40083  fi
40084  #
40085  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40086    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40087printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40088    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40089      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40090printf "%s\n" "yes" >&6; }
40091      tst_allow_ioctl_siocgifaddr="yes"
40092    else
40093      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40094printf "%s\n" "no" >&6; }
40095      tst_allow_ioctl_siocgifaddr="no"
40096    fi
40097  fi
40098  #
40099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40100printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40101  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40102     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40103    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40104printf "%s\n" "yes" >&6; }
40105
40106printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40107
40108    curl_cv_func_ioctl_siocgifaddr="yes"
40109  else
40110    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40111printf "%s\n" "no" >&6; }
40112    curl_cv_func_ioctl_siocgifaddr="no"
40113  fi
40114
40115  else
40116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40117printf "%s\n" "no" >&6; }
40118    curl_cv_func_ioctl="no"
40119  fi
40120
40121
40122    #
40123  tst_links_ioctlsocket="unknown"
40124  tst_proto_ioctlsocket="unknown"
40125  tst_compi_ioctlsocket="unknown"
40126  tst_allow_ioctlsocket="unknown"
40127  #
40128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40129printf %s "checking if ioctlsocket can be linked... " >&6; }
40130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40131/* end confdefs.h.  */
40132
40133
40134      $curl_includes_winsock2
40135
40136int main (void)
40137{
40138
40139      if(0 != ioctlsocket(0, 0, 0))
40140        return 1;
40141
40142 ;
40143 return 0;
40144}
40145
40146_ACEOF
40147if ac_fn_c_try_link "$LINENO"
40148then :
40149
40150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40151printf "%s\n" "yes" >&6; }
40152    tst_links_ioctlsocket="yes"
40153
40154else $as_nop
40155
40156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40157printf "%s\n" "no" >&6; }
40158    tst_links_ioctlsocket="no"
40159
40160fi
40161rm -f core conftest.err conftest.$ac_objext conftest.beam \
40162    conftest$ac_exeext conftest.$ac_ext
40163  #
40164  if test "$tst_links_ioctlsocket" = "yes"; then
40165    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40166printf %s "checking if ioctlsocket is prototyped... " >&6; }
40167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40168/* end confdefs.h.  */
40169
40170      $curl_includes_winsock2
40171
40172_ACEOF
40173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40174  $EGREP "ioctlsocket" >/dev/null 2>&1
40175then :
40176
40177      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40178printf "%s\n" "yes" >&6; }
40179      tst_proto_ioctlsocket="yes"
40180
40181else $as_nop
40182
40183      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40184printf "%s\n" "no" >&6; }
40185      tst_proto_ioctlsocket="no"
40186
40187fi
40188rm -rf conftest*
40189
40190  fi
40191  #
40192  if test "$tst_proto_ioctlsocket" = "yes"; then
40193    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40194printf %s "checking if ioctlsocket is compilable... " >&6; }
40195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40196/* end confdefs.h.  */
40197
40198
40199        $curl_includes_winsock2
40200
40201int main (void)
40202{
40203
40204        if(0 != ioctlsocket(0, 0, 0))
40205          return 1;
40206
40207 ;
40208 return 0;
40209}
40210
40211_ACEOF
40212if ac_fn_c_try_compile "$LINENO"
40213then :
40214
40215      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40216printf "%s\n" "yes" >&6; }
40217      tst_compi_ioctlsocket="yes"
40218
40219else $as_nop
40220
40221      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40222printf "%s\n" "no" >&6; }
40223      tst_compi_ioctlsocket="no"
40224
40225fi
40226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40227  fi
40228  #
40229  if test "$tst_compi_ioctlsocket" = "yes"; then
40230    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40231printf %s "checking if ioctlsocket usage allowed... " >&6; }
40232    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40233      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40234printf "%s\n" "yes" >&6; }
40235      tst_allow_ioctlsocket="yes"
40236    else
40237      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40238printf "%s\n" "no" >&6; }
40239      tst_allow_ioctlsocket="no"
40240    fi
40241  fi
40242  #
40243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40244printf %s "checking if ioctlsocket might be used... " >&6; }
40245  if test "$tst_links_ioctlsocket" = "yes" &&
40246     test "$tst_proto_ioctlsocket" = "yes" &&
40247     test "$tst_compi_ioctlsocket" = "yes" &&
40248     test "$tst_allow_ioctlsocket" = "yes"; then
40249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40250printf "%s\n" "yes" >&6; }
40251
40252printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40253
40254    curl_cv_func_ioctlsocket="yes"
40255
40256  #
40257  tst_compi_ioctlsocket_fionbio="unknown"
40258  tst_allow_ioctlsocket_fionbio="unknown"
40259  #
40260  if test "$curl_cv_func_ioctlsocket" = "yes"; then
40261    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40262printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40264/* end confdefs.h.  */
40265
40266
40267        $curl_includes_winsock2
40268
40269int main (void)
40270{
40271
40272        int flags = 0;
40273        if(0 != ioctlsocket(0, FIONBIO, &flags))
40274          return 1;
40275
40276 ;
40277 return 0;
40278}
40279
40280_ACEOF
40281if ac_fn_c_try_compile "$LINENO"
40282then :
40283
40284      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40285printf "%s\n" "yes" >&6; }
40286      tst_compi_ioctlsocket_fionbio="yes"
40287
40288else $as_nop
40289
40290      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40291printf "%s\n" "no" >&6; }
40292      tst_compi_ioctlsocket_fionbio="no"
40293
40294fi
40295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40296  fi
40297  #
40298  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40299    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40300printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40301    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40302      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40303printf "%s\n" "yes" >&6; }
40304      tst_allow_ioctlsocket_fionbio="yes"
40305    else
40306      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40307printf "%s\n" "no" >&6; }
40308      tst_allow_ioctlsocket_fionbio="no"
40309    fi
40310  fi
40311  #
40312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40313printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40314  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40315     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40316    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40317printf "%s\n" "yes" >&6; }
40318
40319printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40320
40321    curl_cv_func_ioctlsocket_fionbio="yes"
40322  else
40323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40324printf "%s\n" "no" >&6; }
40325    curl_cv_func_ioctlsocket_fionbio="no"
40326  fi
40327
40328  else
40329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40330printf "%s\n" "no" >&6; }
40331    curl_cv_func_ioctlsocket="no"
40332  fi
40333
40334
40335    #
40336  tst_links_ioctlsocket_camel="unknown"
40337  tst_proto_ioctlsocket_camel="unknown"
40338  tst_compi_ioctlsocket_camel="unknown"
40339  tst_allow_ioctlsocket_camel="unknown"
40340  #
40341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40342printf %s "checking if IoctlSocket can be linked... " >&6; }
40343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40344/* end confdefs.h.  */
40345
40346
40347      $curl_includes_bsdsocket
40348
40349int main (void)
40350{
40351
40352      IoctlSocket(0, 0, 0);
40353
40354 ;
40355 return 0;
40356}
40357
40358_ACEOF
40359if ac_fn_c_try_link "$LINENO"
40360then :
40361
40362    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40363printf "%s\n" "yes" >&6; }
40364    tst_links_ioctlsocket_camel="yes"
40365
40366else $as_nop
40367
40368    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40369printf "%s\n" "no" >&6; }
40370    tst_links_ioctlsocket_camel="no"
40371
40372fi
40373rm -f core conftest.err conftest.$ac_objext conftest.beam \
40374    conftest$ac_exeext conftest.$ac_ext
40375  #
40376  if test "$tst_links_ioctlsocket_camel" = "yes"; then
40377    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40378printf %s "checking if IoctlSocket is prototyped... " >&6; }
40379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40380/* end confdefs.h.  */
40381
40382      $curl_includes_bsdsocket
40383
40384_ACEOF
40385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40386  $EGREP "IoctlSocket" >/dev/null 2>&1
40387then :
40388
40389      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40390printf "%s\n" "yes" >&6; }
40391      tst_proto_ioctlsocket_camel="yes"
40392
40393else $as_nop
40394
40395      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40396printf "%s\n" "no" >&6; }
40397      tst_proto_ioctlsocket_camel="no"
40398
40399fi
40400rm -rf conftest*
40401
40402  fi
40403  #
40404  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40405    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40406printf %s "checking if IoctlSocket is compilable... " >&6; }
40407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40408/* end confdefs.h.  */
40409
40410
40411        $curl_includes_bsdsocket
40412
40413int main (void)
40414{
40415
40416        if(0 != IoctlSocket(0, 0, 0))
40417          return 1;
40418
40419 ;
40420 return 0;
40421}
40422
40423_ACEOF
40424if ac_fn_c_try_compile "$LINENO"
40425then :
40426
40427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40428printf "%s\n" "yes" >&6; }
40429      tst_compi_ioctlsocket_camel="yes"
40430
40431else $as_nop
40432
40433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40434printf "%s\n" "no" >&6; }
40435      tst_compi_ioctlsocket_camel="no"
40436
40437fi
40438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40439  fi
40440  #
40441  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40442    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40443printf %s "checking if IoctlSocket usage allowed... " >&6; }
40444    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40446printf "%s\n" "yes" >&6; }
40447      tst_allow_ioctlsocket_camel="yes"
40448    else
40449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40450printf "%s\n" "no" >&6; }
40451      tst_allow_ioctlsocket_camel="no"
40452    fi
40453  fi
40454  #
40455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40456printf %s "checking if IoctlSocket might be used... " >&6; }
40457  if test "$tst_links_ioctlsocket_camel" = "yes" &&
40458     test "$tst_proto_ioctlsocket_camel" = "yes" &&
40459     test "$tst_compi_ioctlsocket_camel" = "yes" &&
40460     test "$tst_allow_ioctlsocket_camel" = "yes"; then
40461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40462printf "%s\n" "yes" >&6; }
40463
40464printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40465
40466    curl_cv_func_ioctlsocket_camel="yes"
40467
40468    #
40469  tst_compi_ioctlsocket_camel_fionbio="unknown"
40470  tst_allow_ioctlsocket_camel_fionbio="unknown"
40471  #
40472  if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40474printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40475    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40476/* end confdefs.h.  */
40477
40478
40479        $curl_includes_bsdsocket
40480
40481int main (void)
40482{
40483
40484        long flags = 0;
40485        if(0 != IoctlSocket(0, FIONBIO, &flags))
40486          return 1;
40487
40488 ;
40489 return 0;
40490}
40491
40492_ACEOF
40493if ac_fn_c_try_compile "$LINENO"
40494then :
40495
40496      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40497printf "%s\n" "yes" >&6; }
40498      tst_compi_ioctlsocket_camel_fionbio="yes"
40499
40500else $as_nop
40501
40502      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40503printf "%s\n" "no" >&6; }
40504      tst_compi_ioctlsocket_camel_fionbio="no"
40505
40506fi
40507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40508  fi
40509  #
40510  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40512printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40513    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40514      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40515printf "%s\n" "yes" >&6; }
40516      tst_allow_ioctlsocket_camel_fionbio="yes"
40517    else
40518      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40519printf "%s\n" "no" >&6; }
40520      tst_allow_ioctlsocket_camel_fionbio="no"
40521    fi
40522  fi
40523  #
40524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40525printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40526  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40527     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40529printf "%s\n" "yes" >&6; }
40530
40531printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40532
40533    curl_cv_func_ioctlsocket_camel_fionbio="yes"
40534  else
40535    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40536printf "%s\n" "no" >&6; }
40537    curl_cv_func_ioctlsocket_camel_fionbio="no"
40538  fi
40539
40540  else
40541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40542printf "%s\n" "no" >&6; }
40543    curl_cv_func_ioctlsocket_camel="no"
40544  fi
40545
40546
40547    #
40548  tst_links_memrchr="unknown"
40549  tst_macro_memrchr="unknown"
40550  tst_proto_memrchr="unknown"
40551  tst_compi_memrchr="unknown"
40552  tst_allow_memrchr="unknown"
40553  #
40554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40555printf %s "checking if memrchr can be linked... " >&6; }
40556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40557/* end confdefs.h.  */
40558
40559
40560#define memrchr innocuous_memrchr
40561#ifdef __STDC__
40562# include <limits.h>
40563#else
40564# include <assert.h>
40565#endif
40566#undef memrchr
40567#ifdef __cplusplus
40568extern "C"
40569#endif
40570char memrchr ();
40571#if defined __stub_memrchr || defined __stub___memrchr
40572choke me
40573#endif
40574
40575int main (void)
40576{
40577return memrchr ();
40578 ;
40579 return 0;
40580}
40581
40582_ACEOF
40583if ac_fn_c_try_link "$LINENO"
40584then :
40585
40586    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40587printf "%s\n" "yes" >&6; }
40588    tst_links_memrchr="yes"
40589
40590else $as_nop
40591
40592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40593printf "%s\n" "no" >&6; }
40594    tst_links_memrchr="no"
40595
40596fi
40597rm -f core conftest.err conftest.$ac_objext conftest.beam \
40598    conftest$ac_exeext conftest.$ac_ext
40599  #
40600  if test "$tst_links_memrchr" = "no"; then
40601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40602printf %s "checking if memrchr seems a macro... " >&6; }
40603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40604/* end confdefs.h.  */
40605
40606
40607        $curl_includes_string
40608
40609int main (void)
40610{
40611
40612        if(0 != memrchr(0, 0, 0))
40613          return 1;
40614
40615 ;
40616 return 0;
40617}
40618
40619_ACEOF
40620if ac_fn_c_try_link "$LINENO"
40621then :
40622
40623      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40624printf "%s\n" "yes" >&6; }
40625      tst_macro_memrchr="yes"
40626
40627else $as_nop
40628
40629      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40630printf "%s\n" "no" >&6; }
40631      tst_macro_memrchr="no"
40632
40633fi
40634rm -f core conftest.err conftest.$ac_objext conftest.beam \
40635    conftest$ac_exeext conftest.$ac_ext
40636  fi
40637  #
40638  if test "$tst_links_memrchr" = "yes"; then
40639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40640printf %s "checking if memrchr is prototyped... " >&6; }
40641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40642/* end confdefs.h.  */
40643
40644      $curl_includes_string
40645
40646_ACEOF
40647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40648  $EGREP "memrchr" >/dev/null 2>&1
40649then :
40650
40651      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40652printf "%s\n" "yes" >&6; }
40653      tst_proto_memrchr="yes"
40654
40655else $as_nop
40656
40657      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40658printf "%s\n" "no" >&6; }
40659      tst_proto_memrchr="no"
40660
40661fi
40662rm -rf conftest*
40663
40664  fi
40665  #
40666  if test "$tst_proto_memrchr" = "yes" ||
40667     test "$tst_macro_memrchr" = "yes"; then
40668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40669printf %s "checking if memrchr is compilable... " >&6; }
40670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40671/* end confdefs.h.  */
40672
40673
40674        $curl_includes_string
40675
40676int main (void)
40677{
40678
40679        if(0 != memrchr(0, 0, 0))
40680          return 1;
40681
40682 ;
40683 return 0;
40684}
40685
40686_ACEOF
40687if ac_fn_c_try_compile "$LINENO"
40688then :
40689
40690      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40691printf "%s\n" "yes" >&6; }
40692      tst_compi_memrchr="yes"
40693
40694else $as_nop
40695
40696      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40697printf "%s\n" "no" >&6; }
40698      tst_compi_memrchr="no"
40699
40700fi
40701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40702  fi
40703  #
40704  if test "$tst_compi_memrchr" = "yes"; then
40705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40706printf %s "checking if memrchr usage allowed... " >&6; }
40707    if test "x$curl_disallow_memrchr" != "xyes"; then
40708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40709printf "%s\n" "yes" >&6; }
40710      tst_allow_memrchr="yes"
40711    else
40712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40713printf "%s\n" "no" >&6; }
40714      tst_allow_memrchr="no"
40715    fi
40716  fi
40717  #
40718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40719printf %s "checking if memrchr might be used... " >&6; }
40720  if (test "$tst_proto_memrchr" = "yes" ||
40721      test "$tst_macro_memrchr" = "yes") &&
40722     test "$tst_compi_memrchr" = "yes" &&
40723     test "$tst_allow_memrchr" = "yes"; then
40724    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40725printf "%s\n" "yes" >&6; }
40726
40727printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40728
40729    curl_cv_func_memrchr="yes"
40730  else
40731    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40732printf "%s\n" "no" >&6; }
40733    curl_cv_func_memrchr="no"
40734  fi
40735
40736
40737      #
40738  tst_links_poll="unknown"
40739  tst_proto_poll="unknown"
40740  tst_compi_poll="unknown"
40741  tst_works_poll="unknown"
40742  tst_allow_poll="unknown"
40743  #
40744  case $host_os in
40745    darwin*|interix*)
40746                                          curl_disallow_poll="yes"
40747      tst_compi_poll="no"
40748      ;;
40749  esac
40750  #
40751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40752printf %s "checking if poll can be linked... " >&6; }
40753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40754/* end confdefs.h.  */
40755
40756
40757      $curl_includes_poll
40758
40759int main (void)
40760{
40761
40762      if(0 != poll(0, 0, 0))
40763        return 1;
40764
40765 ;
40766 return 0;
40767}
40768
40769_ACEOF
40770if ac_fn_c_try_link "$LINENO"
40771then :
40772
40773    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40774printf "%s\n" "yes" >&6; }
40775    tst_links_poll="yes"
40776
40777else $as_nop
40778
40779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40780printf "%s\n" "no" >&6; }
40781    tst_links_poll="no"
40782
40783fi
40784rm -f core conftest.err conftest.$ac_objext conftest.beam \
40785    conftest$ac_exeext conftest.$ac_ext
40786  #
40787  if test "$tst_links_poll" = "yes"; then
40788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
40789printf %s "checking if poll is prototyped... " >&6; }
40790    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40791/* end confdefs.h.  */
40792
40793      $curl_includes_poll
40794
40795_ACEOF
40796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40797  $EGREP "poll" >/dev/null 2>&1
40798then :
40799
40800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40801printf "%s\n" "yes" >&6; }
40802      tst_proto_poll="yes"
40803
40804else $as_nop
40805
40806      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40807printf "%s\n" "no" >&6; }
40808      tst_proto_poll="no"
40809
40810fi
40811rm -rf conftest*
40812
40813  fi
40814  #
40815  if test "$tst_proto_poll" = "yes"; then
40816    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
40817printf %s "checking if poll is compilable... " >&6; }
40818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40819/* end confdefs.h.  */
40820
40821
40822        $curl_includes_poll
40823
40824int main (void)
40825{
40826
40827        if(0 != poll(0, 0, 0))
40828          return 1;
40829
40830 ;
40831 return 0;
40832}
40833
40834_ACEOF
40835if ac_fn_c_try_compile "$LINENO"
40836then :
40837
40838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40839printf "%s\n" "yes" >&6; }
40840      tst_compi_poll="yes"
40841
40842else $as_nop
40843
40844      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40845printf "%s\n" "no" >&6; }
40846      tst_compi_poll="no"
40847
40848fi
40849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40850  fi
40851  #
40852    if test "x$cross_compiling" != "xyes" &&
40853    test "$tst_compi_poll" = "yes"; then
40854    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
40855printf %s "checking if poll seems to work... " >&6; }
40856
40857   case $host_os in
40858     darwin*)
40859      if test "$cross_compiling" = yes
40860then :
40861  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40862printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40863as_fn_error $? "cannot run test program while cross compiling
40864See \`config.log' for more details" "$LINENO" 5; }
40865else $as_nop
40866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40867/* end confdefs.h.  */
40868
40869
40870        $curl_includes_stdlib
40871        $curl_includes_poll
40872        $curl_includes_time
40873
40874int main (void)
40875{
40876
40877        /* detect the original poll() breakage */
40878        if(0 != poll(0, 0, 10))
40879          exit(1); /* fail */
40880        else {
40881          /* detect the 10.12 poll() breakage */
40882          struct timeval before, after;
40883          int rc;
40884          size_t us;
40885
40886          gettimeofday(&before, NULL);
40887          rc = poll(NULL, 0, 500);
40888          gettimeofday(&after, NULL);
40889
40890          us = (after.tv_sec - before.tv_sec) * 1000000 +
40891            (after.tv_usec - before.tv_usec);
40892
40893          if(us < 400000)
40894            exit(1);
40895        }
40896
40897 ;
40898 return 0;
40899}
40900
40901_ACEOF
40902if ac_fn_c_try_run "$LINENO"
40903then :
40904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40905printf "%s\n" "yes" >&6; }
40906      tst_works_poll="yes"
40907
40908else $as_nop
40909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40910printf "%s\n" "no" >&6; }
40911      tst_works_poll="no"
40912
40913fi
40914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40915  conftest.$ac_objext conftest.beam conftest.$ac_ext
40916fi
40917
40918     ;;
40919     *)
40920      oldcc=$CC
40921      old=$LD_LIBRARY_PATH
40922      CC="sh ./run-compiler"
40923      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40924      export LD_LIBRARY_PATH
40925      if test "$cross_compiling" = yes
40926then :
40927  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40928printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40929as_fn_error $? "cannot run test program while cross compiling
40930See \`config.log' for more details" "$LINENO" 5; }
40931else $as_nop
40932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40933/* end confdefs.h.  */
40934
40935
40936        $curl_includes_stdlib
40937        $curl_includes_poll
40938        $curl_includes_time
40939
40940int main (void)
40941{
40942
40943        /* detect the original poll() breakage */
40944        if(0 != poll(0, 0, 10))
40945          exit(1); /* fail */
40946        else {
40947          /* detect the 10.12 poll() breakage */
40948          struct timeval before, after;
40949          int rc;
40950          size_t us;
40951
40952          gettimeofday(&before, NULL);
40953          rc = poll(NULL, 0, 500);
40954          gettimeofday(&after, NULL);
40955
40956          us = (after.tv_sec - before.tv_sec) * 1000000 +
40957            (after.tv_usec - before.tv_usec);
40958
40959          if(us < 400000)
40960            exit(1);
40961        }
40962
40963 ;
40964 return 0;
40965}
40966
40967_ACEOF
40968if ac_fn_c_try_run "$LINENO"
40969then :
40970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40971printf "%s\n" "yes" >&6; }
40972      tst_works_poll="yes"
40973
40974else $as_nop
40975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40976printf "%s\n" "no" >&6; }
40977      tst_works_poll="no"
40978
40979fi
40980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40981  conftest.$ac_objext conftest.beam conftest.$ac_ext
40982fi
40983
40984      LD_LIBRARY_PATH=$old # restore
40985      CC=$oldcc
40986     ;;
40987   esac
40988
40989  fi
40990  #
40991  if test "$tst_compi_poll" = "yes" &&
40992    test "$tst_works_poll" != "no"; then
40993    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
40994printf %s "checking if poll usage allowed... " >&6; }
40995    if test "x$curl_disallow_poll" != "xyes"; then
40996      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40997printf "%s\n" "yes" >&6; }
40998      tst_allow_poll="yes"
40999    else
41000      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41001printf "%s\n" "no" >&6; }
41002      tst_allow_poll="no"
41003    fi
41004  fi
41005  #
41006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41007printf %s "checking if poll might be used... " >&6; }
41008  if test "$tst_links_poll" = "yes" &&
41009     test "$tst_proto_poll" = "yes" &&
41010     test "$tst_compi_poll" = "yes" &&
41011     test "$tst_allow_poll" = "yes" &&
41012     test "$tst_works_poll" != "no"; then
41013    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41014printf "%s\n" "yes" >&6; }
41015
41016printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41017
41018    curl_cv_func_poll="yes"
41019  else
41020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41021printf "%s\n" "no" >&6; }
41022    curl_cv_func_poll="no"
41023  fi
41024
41025
41026curl_includes_signal="\
41027/* includes start */
41028#ifdef HAVE_SYS_TYPES_H
41029#  include <sys/types.h>
41030#endif
41031#include <signal.h>
41032/* includes end */"
41033  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41034"
41035if test "x$ac_cv_header_sys_types_h" = xyes
41036then :
41037  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41038
41039fi
41040
41041
41042
41043    #
41044  tst_links_sigaction="unknown"
41045  tst_proto_sigaction="unknown"
41046  tst_compi_sigaction="unknown"
41047  tst_allow_sigaction="unknown"
41048  #
41049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41050printf %s "checking if sigaction can be linked... " >&6; }
41051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41052/* end confdefs.h.  */
41053
41054
41055#define sigaction innocuous_sigaction
41056#ifdef __STDC__
41057# include <limits.h>
41058#else
41059# include <assert.h>
41060#endif
41061#undef sigaction
41062#ifdef __cplusplus
41063extern "C"
41064#endif
41065char sigaction ();
41066#if defined __stub_sigaction || defined __stub___sigaction
41067choke me
41068#endif
41069
41070int main (void)
41071{
41072return sigaction ();
41073 ;
41074 return 0;
41075}
41076
41077_ACEOF
41078if ac_fn_c_try_link "$LINENO"
41079then :
41080
41081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41082printf "%s\n" "yes" >&6; }
41083    tst_links_sigaction="yes"
41084
41085else $as_nop
41086
41087    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41088printf "%s\n" "no" >&6; }
41089    tst_links_sigaction="no"
41090
41091fi
41092rm -f core conftest.err conftest.$ac_objext conftest.beam \
41093    conftest$ac_exeext conftest.$ac_ext
41094  #
41095  if test "$tst_links_sigaction" = "yes"; then
41096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41097printf %s "checking if sigaction is prototyped... " >&6; }
41098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41099/* end confdefs.h.  */
41100
41101      $curl_includes_signal
41102
41103_ACEOF
41104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41105  $EGREP "sigaction" >/dev/null 2>&1
41106then :
41107
41108      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41109printf "%s\n" "yes" >&6; }
41110      tst_proto_sigaction="yes"
41111
41112else $as_nop
41113
41114      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41115printf "%s\n" "no" >&6; }
41116      tst_proto_sigaction="no"
41117
41118fi
41119rm -rf conftest*
41120
41121  fi
41122  #
41123  if test "$tst_proto_sigaction" = "yes"; then
41124    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41125printf %s "checking if sigaction is compilable... " >&6; }
41126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41127/* end confdefs.h.  */
41128
41129
41130        $curl_includes_signal
41131
41132int main (void)
41133{
41134
41135        if(0 != sigaction(0, 0, 0))
41136          return 1;
41137
41138 ;
41139 return 0;
41140}
41141
41142_ACEOF
41143if ac_fn_c_try_compile "$LINENO"
41144then :
41145
41146      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41147printf "%s\n" "yes" >&6; }
41148      tst_compi_sigaction="yes"
41149
41150else $as_nop
41151
41152      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41153printf "%s\n" "no" >&6; }
41154      tst_compi_sigaction="no"
41155
41156fi
41157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41158  fi
41159  #
41160  if test "$tst_compi_sigaction" = "yes"; then
41161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41162printf %s "checking if sigaction usage allowed... " >&6; }
41163    if test "x$curl_disallow_sigaction" != "xyes"; then
41164      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41165printf "%s\n" "yes" >&6; }
41166      tst_allow_sigaction="yes"
41167    else
41168      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41169printf "%s\n" "no" >&6; }
41170      tst_allow_sigaction="no"
41171    fi
41172  fi
41173  #
41174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41175printf %s "checking if sigaction might be used... " >&6; }
41176  if test "$tst_links_sigaction" = "yes" &&
41177     test "$tst_proto_sigaction" = "yes" &&
41178     test "$tst_compi_sigaction" = "yes" &&
41179     test "$tst_allow_sigaction" = "yes"; then
41180    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41181printf "%s\n" "yes" >&6; }
41182
41183printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41184
41185    curl_cv_func_sigaction="yes"
41186  else
41187    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41188printf "%s\n" "no" >&6; }
41189    curl_cv_func_sigaction="no"
41190  fi
41191
41192
41193    #
41194  tst_links_siginterrupt="unknown"
41195  tst_proto_siginterrupt="unknown"
41196  tst_compi_siginterrupt="unknown"
41197  tst_allow_siginterrupt="unknown"
41198  #
41199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41200printf %s "checking if siginterrupt can be linked... " >&6; }
41201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41202/* end confdefs.h.  */
41203
41204
41205#define siginterrupt innocuous_siginterrupt
41206#ifdef __STDC__
41207# include <limits.h>
41208#else
41209# include <assert.h>
41210#endif
41211#undef siginterrupt
41212#ifdef __cplusplus
41213extern "C"
41214#endif
41215char siginterrupt ();
41216#if defined __stub_siginterrupt || defined __stub___siginterrupt
41217choke me
41218#endif
41219
41220int main (void)
41221{
41222return siginterrupt ();
41223 ;
41224 return 0;
41225}
41226
41227_ACEOF
41228if ac_fn_c_try_link "$LINENO"
41229then :
41230
41231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41232printf "%s\n" "yes" >&6; }
41233    tst_links_siginterrupt="yes"
41234
41235else $as_nop
41236
41237    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238printf "%s\n" "no" >&6; }
41239    tst_links_siginterrupt="no"
41240
41241fi
41242rm -f core conftest.err conftest.$ac_objext conftest.beam \
41243    conftest$ac_exeext conftest.$ac_ext
41244  #
41245  if test "$tst_links_siginterrupt" = "yes"; then
41246    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41247printf %s "checking if siginterrupt is prototyped... " >&6; }
41248    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41249/* end confdefs.h.  */
41250
41251      $curl_includes_signal
41252
41253_ACEOF
41254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41255  $EGREP "siginterrupt" >/dev/null 2>&1
41256then :
41257
41258      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41259printf "%s\n" "yes" >&6; }
41260      tst_proto_siginterrupt="yes"
41261
41262else $as_nop
41263
41264      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41265printf "%s\n" "no" >&6; }
41266      tst_proto_siginterrupt="no"
41267
41268fi
41269rm -rf conftest*
41270
41271  fi
41272  #
41273  if test "$tst_proto_siginterrupt" = "yes"; then
41274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41275printf %s "checking if siginterrupt is compilable... " >&6; }
41276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41277/* end confdefs.h.  */
41278
41279
41280        $curl_includes_signal
41281
41282int main (void)
41283{
41284
41285        if(0 != siginterrupt(0, 0))
41286          return 1;
41287
41288 ;
41289 return 0;
41290}
41291
41292_ACEOF
41293if ac_fn_c_try_compile "$LINENO"
41294then :
41295
41296      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41297printf "%s\n" "yes" >&6; }
41298      tst_compi_siginterrupt="yes"
41299
41300else $as_nop
41301
41302      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41303printf "%s\n" "no" >&6; }
41304      tst_compi_siginterrupt="no"
41305
41306fi
41307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41308  fi
41309  #
41310  if test "$tst_compi_siginterrupt" = "yes"; then
41311    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41312printf %s "checking if siginterrupt usage allowed... " >&6; }
41313    if test "x$curl_disallow_siginterrupt" != "xyes"; then
41314      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41315printf "%s\n" "yes" >&6; }
41316      tst_allow_siginterrupt="yes"
41317    else
41318      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41319printf "%s\n" "no" >&6; }
41320      tst_allow_siginterrupt="no"
41321    fi
41322  fi
41323  #
41324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41325printf %s "checking if siginterrupt might be used... " >&6; }
41326  if test "$tst_links_siginterrupt" = "yes" &&
41327     test "$tst_proto_siginterrupt" = "yes" &&
41328     test "$tst_compi_siginterrupt" = "yes" &&
41329     test "$tst_allow_siginterrupt" = "yes"; then
41330    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41331printf "%s\n" "yes" >&6; }
41332
41333printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41334
41335    curl_cv_func_siginterrupt="yes"
41336  else
41337    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41338printf "%s\n" "no" >&6; }
41339    curl_cv_func_siginterrupt="no"
41340  fi
41341
41342
41343    #
41344  tst_links_signal="unknown"
41345  tst_proto_signal="unknown"
41346  tst_compi_signal="unknown"
41347  tst_allow_signal="unknown"
41348  #
41349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41350printf %s "checking if signal can be linked... " >&6; }
41351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41352/* end confdefs.h.  */
41353
41354
41355#define signal innocuous_signal
41356#ifdef __STDC__
41357# include <limits.h>
41358#else
41359# include <assert.h>
41360#endif
41361#undef signal
41362#ifdef __cplusplus
41363extern "C"
41364#endif
41365char signal ();
41366#if defined __stub_signal || defined __stub___signal
41367choke me
41368#endif
41369
41370int main (void)
41371{
41372return signal ();
41373 ;
41374 return 0;
41375}
41376
41377_ACEOF
41378if ac_fn_c_try_link "$LINENO"
41379then :
41380
41381    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41382printf "%s\n" "yes" >&6; }
41383    tst_links_signal="yes"
41384
41385else $as_nop
41386
41387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41388printf "%s\n" "no" >&6; }
41389    tst_links_signal="no"
41390
41391fi
41392rm -f core conftest.err conftest.$ac_objext conftest.beam \
41393    conftest$ac_exeext conftest.$ac_ext
41394  #
41395  if test "$tst_links_signal" = "yes"; then
41396    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41397printf %s "checking if signal is prototyped... " >&6; }
41398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41399/* end confdefs.h.  */
41400
41401      $curl_includes_signal
41402
41403_ACEOF
41404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41405  $EGREP "signal" >/dev/null 2>&1
41406then :
41407
41408      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41409printf "%s\n" "yes" >&6; }
41410      tst_proto_signal="yes"
41411
41412else $as_nop
41413
41414      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41415printf "%s\n" "no" >&6; }
41416      tst_proto_signal="no"
41417
41418fi
41419rm -rf conftest*
41420
41421  fi
41422  #
41423  if test "$tst_proto_signal" = "yes"; then
41424    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41425printf %s "checking if signal is compilable... " >&6; }
41426    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41427/* end confdefs.h.  */
41428
41429
41430        $curl_includes_signal
41431
41432int main (void)
41433{
41434
41435        if(0 != signal(0, 0))
41436          return 1;
41437
41438 ;
41439 return 0;
41440}
41441
41442_ACEOF
41443if ac_fn_c_try_compile "$LINENO"
41444then :
41445
41446      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41447printf "%s\n" "yes" >&6; }
41448      tst_compi_signal="yes"
41449
41450else $as_nop
41451
41452      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41453printf "%s\n" "no" >&6; }
41454      tst_compi_signal="no"
41455
41456fi
41457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41458  fi
41459  #
41460  if test "$tst_compi_signal" = "yes"; then
41461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41462printf %s "checking if signal usage allowed... " >&6; }
41463    if test "x$curl_disallow_signal" != "xyes"; then
41464      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41465printf "%s\n" "yes" >&6; }
41466      tst_allow_signal="yes"
41467    else
41468      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41469printf "%s\n" "no" >&6; }
41470      tst_allow_signal="no"
41471    fi
41472  fi
41473  #
41474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41475printf %s "checking if signal might be used... " >&6; }
41476  if test "$tst_links_signal" = "yes" &&
41477     test "$tst_proto_signal" = "yes" &&
41478     test "$tst_compi_signal" = "yes" &&
41479     test "$tst_allow_signal" = "yes"; then
41480    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41481printf "%s\n" "yes" >&6; }
41482
41483printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41484
41485    curl_cv_func_signal="yes"
41486  else
41487    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41488printf "%s\n" "no" >&6; }
41489    curl_cv_func_signal="no"
41490  fi
41491
41492
41493curl_includes_setjmp="\
41494/* includes start */
41495#ifdef HAVE_SYS_TYPES_H
41496#  include <sys/types.h>
41497#endif
41498#include <setjmp.h>
41499/* includes end */"
41500  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41501"
41502if test "x$ac_cv_header_sys_types_h" = xyes
41503then :
41504  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41505
41506fi
41507
41508
41509
41510    #
41511  tst_links_sigsetjmp="unknown"
41512  tst_macro_sigsetjmp="unknown"
41513  tst_proto_sigsetjmp="unknown"
41514  tst_compi_sigsetjmp="unknown"
41515  tst_allow_sigsetjmp="unknown"
41516  #
41517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41518printf %s "checking if sigsetjmp can be linked... " >&6; }
41519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41520/* end confdefs.h.  */
41521
41522
41523#define sigsetjmp innocuous_sigsetjmp
41524#ifdef __STDC__
41525# include <limits.h>
41526#else
41527# include <assert.h>
41528#endif
41529#undef sigsetjmp
41530#ifdef __cplusplus
41531extern "C"
41532#endif
41533char sigsetjmp ();
41534#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41535choke me
41536#endif
41537
41538int main (void)
41539{
41540return sigsetjmp ();
41541 ;
41542 return 0;
41543}
41544
41545_ACEOF
41546if ac_fn_c_try_link "$LINENO"
41547then :
41548
41549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41550printf "%s\n" "yes" >&6; }
41551    tst_links_sigsetjmp="yes"
41552
41553else $as_nop
41554
41555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41556printf "%s\n" "no" >&6; }
41557    tst_links_sigsetjmp="no"
41558
41559fi
41560rm -f core conftest.err conftest.$ac_objext conftest.beam \
41561    conftest$ac_exeext conftest.$ac_ext
41562  #
41563  if test "$tst_links_sigsetjmp" = "no"; then
41564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41565printf %s "checking if sigsetjmp seems a macro... " >&6; }
41566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41567/* end confdefs.h.  */
41568
41569
41570        $curl_includes_setjmp
41571
41572int main (void)
41573{
41574
41575        sigjmp_buf env;
41576        if(0 != sigsetjmp(env, 0))
41577          return 1;
41578
41579 ;
41580 return 0;
41581}
41582
41583_ACEOF
41584if ac_fn_c_try_link "$LINENO"
41585then :
41586
41587      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41588printf "%s\n" "yes" >&6; }
41589      tst_macro_sigsetjmp="yes"
41590
41591else $as_nop
41592
41593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41594printf "%s\n" "no" >&6; }
41595      tst_macro_sigsetjmp="no"
41596
41597fi
41598rm -f core conftest.err conftest.$ac_objext conftest.beam \
41599    conftest$ac_exeext conftest.$ac_ext
41600  fi
41601  #
41602  if test "$tst_links_sigsetjmp" = "yes"; then
41603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41604printf %s "checking if sigsetjmp is prototyped... " >&6; }
41605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41606/* end confdefs.h.  */
41607
41608      $curl_includes_setjmp
41609
41610_ACEOF
41611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41612  $EGREP "sigsetjmp" >/dev/null 2>&1
41613then :
41614
41615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41616printf "%s\n" "yes" >&6; }
41617      tst_proto_sigsetjmp="yes"
41618
41619else $as_nop
41620
41621      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41622printf "%s\n" "no" >&6; }
41623      tst_proto_sigsetjmp="no"
41624
41625fi
41626rm -rf conftest*
41627
41628  fi
41629  #
41630  if test "$tst_proto_sigsetjmp" = "yes" ||
41631     test "$tst_macro_sigsetjmp" = "yes"; then
41632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41633printf %s "checking if sigsetjmp is compilable... " >&6; }
41634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41635/* end confdefs.h.  */
41636
41637
41638        $curl_includes_setjmp
41639
41640int main (void)
41641{
41642
41643        sigjmp_buf env;
41644        if(0 != sigsetjmp(env, 0))
41645          return 1;
41646
41647 ;
41648 return 0;
41649}
41650
41651_ACEOF
41652if ac_fn_c_try_compile "$LINENO"
41653then :
41654
41655      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41656printf "%s\n" "yes" >&6; }
41657      tst_compi_sigsetjmp="yes"
41658
41659else $as_nop
41660
41661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41662printf "%s\n" "no" >&6; }
41663      tst_compi_sigsetjmp="no"
41664
41665fi
41666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41667  fi
41668  #
41669  if test "$tst_compi_sigsetjmp" = "yes"; then
41670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41671printf %s "checking if sigsetjmp usage allowed... " >&6; }
41672    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41673      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41674printf "%s\n" "yes" >&6; }
41675      tst_allow_sigsetjmp="yes"
41676    else
41677      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41678printf "%s\n" "no" >&6; }
41679      tst_allow_sigsetjmp="no"
41680    fi
41681  fi
41682  #
41683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41684printf %s "checking if sigsetjmp might be used... " >&6; }
41685  if (test "$tst_proto_sigsetjmp" = "yes" ||
41686      test "$tst_macro_sigsetjmp" = "yes") &&
41687     test "$tst_compi_sigsetjmp" = "yes" &&
41688     test "$tst_allow_sigsetjmp" = "yes"; then
41689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41690printf "%s\n" "yes" >&6; }
41691
41692printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41693
41694    curl_cv_func_sigsetjmp="yes"
41695  else
41696    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41697printf "%s\n" "no" >&6; }
41698    curl_cv_func_sigsetjmp="no"
41699  fi
41700
41701
41702        #
41703  tst_links_socket="unknown"
41704  tst_proto_socket="unknown"
41705  tst_compi_socket="unknown"
41706  tst_allow_socket="unknown"
41707  #
41708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41709printf %s "checking if socket can be linked... " >&6; }
41710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41711/* end confdefs.h.  */
41712
41713
41714      $curl_includes_winsock2
41715      $curl_includes_bsdsocket
41716      $curl_includes_sys_socket
41717      $curl_includes_socket
41718
41719int main (void)
41720{
41721
41722      if(0 != socket(0, 0, 0))
41723        return 1;
41724
41725 ;
41726 return 0;
41727}
41728
41729_ACEOF
41730if ac_fn_c_try_link "$LINENO"
41731then :
41732
41733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41734printf "%s\n" "yes" >&6; }
41735    tst_links_socket="yes"
41736
41737else $as_nop
41738
41739    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41740printf "%s\n" "no" >&6; }
41741    tst_links_socket="no"
41742
41743fi
41744rm -f core conftest.err conftest.$ac_objext conftest.beam \
41745    conftest$ac_exeext conftest.$ac_ext
41746  #
41747  if test "$tst_links_socket" = "yes"; then
41748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41749printf %s "checking if socket is prototyped... " >&6; }
41750    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41751/* end confdefs.h.  */
41752
41753      $curl_includes_winsock2
41754      $curl_includes_bsdsocket
41755      $curl_includes_sys_socket
41756      $curl_includes_socket
41757
41758_ACEOF
41759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41760  $EGREP "socket" >/dev/null 2>&1
41761then :
41762
41763      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41764printf "%s\n" "yes" >&6; }
41765      tst_proto_socket="yes"
41766
41767else $as_nop
41768
41769      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41770printf "%s\n" "no" >&6; }
41771      tst_proto_socket="no"
41772
41773fi
41774rm -rf conftest*
41775
41776  fi
41777  #
41778  if test "$tst_proto_socket" = "yes"; then
41779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
41780printf %s "checking if socket is compilable... " >&6; }
41781    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41782/* end confdefs.h.  */
41783
41784
41785        $curl_includes_winsock2
41786        $curl_includes_bsdsocket
41787        $curl_includes_sys_socket
41788        $curl_includes_socket
41789
41790int main (void)
41791{
41792
41793        if(0 != socket(0, 0, 0))
41794          return 1;
41795
41796 ;
41797 return 0;
41798}
41799
41800_ACEOF
41801if ac_fn_c_try_compile "$LINENO"
41802then :
41803
41804      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41805printf "%s\n" "yes" >&6; }
41806      tst_compi_socket="yes"
41807
41808else $as_nop
41809
41810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41811printf "%s\n" "no" >&6; }
41812      tst_compi_socket="no"
41813
41814fi
41815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41816  fi
41817  #
41818  if test "$tst_compi_socket" = "yes"; then
41819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
41820printf %s "checking if socket usage allowed... " >&6; }
41821    if test "x$curl_disallow_socket" != "xyes"; then
41822      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41823printf "%s\n" "yes" >&6; }
41824      tst_allow_socket="yes"
41825    else
41826      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41827printf "%s\n" "no" >&6; }
41828      tst_allow_socket="no"
41829    fi
41830  fi
41831  #
41832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
41833printf %s "checking if socket might be used... " >&6; }
41834  if test "$tst_links_socket" = "yes" &&
41835     test "$tst_proto_socket" = "yes" &&
41836     test "$tst_compi_socket" = "yes" &&
41837     test "$tst_allow_socket" = "yes"; then
41838    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41839printf "%s\n" "yes" >&6; }
41840
41841printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
41842
41843    curl_cv_func_socket="yes"
41844  else
41845    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41846printf "%s\n" "no" >&6; }
41847    curl_cv_func_socket="no"
41848  fi
41849
41850
41851      #
41852  tst_links_socketpair="unknown"
41853  tst_proto_socketpair="unknown"
41854  tst_compi_socketpair="unknown"
41855  tst_allow_socketpair="unknown"
41856  #
41857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41858printf %s "checking if socketpair can be linked... " >&6; }
41859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41860/* end confdefs.h.  */
41861
41862
41863#define socketpair innocuous_socketpair
41864#ifdef __STDC__
41865# include <limits.h>
41866#else
41867# include <assert.h>
41868#endif
41869#undef socketpair
41870#ifdef __cplusplus
41871extern "C"
41872#endif
41873char socketpair ();
41874#if defined __stub_socketpair || defined __stub___socketpair
41875choke me
41876#endif
41877
41878int main (void)
41879{
41880return socketpair ();
41881 ;
41882 return 0;
41883}
41884
41885_ACEOF
41886if ac_fn_c_try_link "$LINENO"
41887then :
41888
41889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41890printf "%s\n" "yes" >&6; }
41891    tst_links_socketpair="yes"
41892
41893else $as_nop
41894
41895    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41896printf "%s\n" "no" >&6; }
41897    tst_links_socketpair="no"
41898
41899fi
41900rm -f core conftest.err conftest.$ac_objext conftest.beam \
41901    conftest$ac_exeext conftest.$ac_ext
41902  #
41903  if test "$tst_links_socketpair" = "yes"; then
41904    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41905printf %s "checking if socketpair is prototyped... " >&6; }
41906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41907/* end confdefs.h.  */
41908
41909      $curl_includes_sys_socket
41910      $curl_includes_socket
41911
41912_ACEOF
41913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41914  $EGREP "socketpair" >/dev/null 2>&1
41915then :
41916
41917      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41918printf "%s\n" "yes" >&6; }
41919      tst_proto_socketpair="yes"
41920
41921else $as_nop
41922
41923      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41924printf "%s\n" "no" >&6; }
41925      tst_proto_socketpair="no"
41926
41927fi
41928rm -rf conftest*
41929
41930  fi
41931  #
41932  if test "$tst_proto_socketpair" = "yes"; then
41933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41934printf %s "checking if socketpair is compilable... " >&6; }
41935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41936/* end confdefs.h.  */
41937
41938
41939        $curl_includes_sys_socket
41940        $curl_includes_socket
41941
41942int main (void)
41943{
41944
41945        int sv[2];
41946        if(0 != socketpair(0, 0, 0, sv))
41947          return 1;
41948
41949 ;
41950 return 0;
41951}
41952
41953_ACEOF
41954if ac_fn_c_try_compile "$LINENO"
41955then :
41956
41957      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41958printf "%s\n" "yes" >&6; }
41959      tst_compi_socketpair="yes"
41960
41961else $as_nop
41962
41963      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41964printf "%s\n" "no" >&6; }
41965      tst_compi_socketpair="no"
41966
41967fi
41968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41969  fi
41970  #
41971  if test "$tst_compi_socketpair" = "yes"; then
41972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41973printf %s "checking if socketpair usage allowed... " >&6; }
41974    if test "x$curl_disallow_socketpair" != "xyes"; then
41975      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41976printf "%s\n" "yes" >&6; }
41977      tst_allow_socketpair="yes"
41978    else
41979      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41980printf "%s\n" "no" >&6; }
41981      tst_allow_socketpair="no"
41982    fi
41983  fi
41984  #
41985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41986printf %s "checking if socketpair might be used... " >&6; }
41987  if test "$tst_links_socketpair" = "yes" &&
41988     test "$tst_proto_socketpair" = "yes" &&
41989     test "$tst_compi_socketpair" = "yes" &&
41990     test "$tst_allow_socketpair" = "yes"; then
41991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41992printf "%s\n" "yes" >&6; }
41993
41994printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
41995
41996    curl_cv_func_socketpair="yes"
41997  else
41998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41999printf "%s\n" "no" >&6; }
42000    curl_cv_func_socketpair="no"
42001  fi
42002
42003
42004    #
42005  tst_links_strcasecmp="unknown"
42006  tst_proto_strcasecmp="unknown"
42007  tst_compi_strcasecmp="unknown"
42008  tst_allow_strcasecmp="unknown"
42009  #
42010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42011printf %s "checking if strcasecmp can be linked... " >&6; }
42012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42013/* end confdefs.h.  */
42014
42015
42016#define strcasecmp innocuous_strcasecmp
42017#ifdef __STDC__
42018# include <limits.h>
42019#else
42020# include <assert.h>
42021#endif
42022#undef strcasecmp
42023#ifdef __cplusplus
42024extern "C"
42025#endif
42026char strcasecmp ();
42027#if defined __stub_strcasecmp || defined __stub___strcasecmp
42028choke me
42029#endif
42030
42031int main (void)
42032{
42033return strcasecmp ();
42034 ;
42035 return 0;
42036}
42037
42038_ACEOF
42039if ac_fn_c_try_link "$LINENO"
42040then :
42041
42042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42043printf "%s\n" "yes" >&6; }
42044    tst_links_strcasecmp="yes"
42045
42046else $as_nop
42047
42048    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42049printf "%s\n" "no" >&6; }
42050    tst_links_strcasecmp="no"
42051
42052fi
42053rm -f core conftest.err conftest.$ac_objext conftest.beam \
42054    conftest$ac_exeext conftest.$ac_ext
42055  #
42056  if test "$tst_links_strcasecmp" = "yes"; then
42057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42058printf %s "checking if strcasecmp is prototyped... " >&6; }
42059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42060/* end confdefs.h.  */
42061
42062      $curl_includes_string
42063
42064_ACEOF
42065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42066  $EGREP "strcasecmp" >/dev/null 2>&1
42067then :
42068
42069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42070printf "%s\n" "yes" >&6; }
42071      tst_proto_strcasecmp="yes"
42072
42073else $as_nop
42074
42075      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42076printf "%s\n" "no" >&6; }
42077      tst_proto_strcasecmp="no"
42078
42079fi
42080rm -rf conftest*
42081
42082  fi
42083  #
42084  if test "$tst_proto_strcasecmp" = "yes"; then
42085    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42086printf %s "checking if strcasecmp is compilable... " >&6; }
42087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42088/* end confdefs.h.  */
42089
42090
42091        $curl_includes_string
42092
42093int main (void)
42094{
42095
42096        if(0 != strcasecmp(0, 0))
42097          return 1;
42098
42099 ;
42100 return 0;
42101}
42102
42103_ACEOF
42104if ac_fn_c_try_compile "$LINENO"
42105then :
42106
42107      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42108printf "%s\n" "yes" >&6; }
42109      tst_compi_strcasecmp="yes"
42110
42111else $as_nop
42112
42113      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42114printf "%s\n" "no" >&6; }
42115      tst_compi_strcasecmp="no"
42116
42117fi
42118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42119  fi
42120  #
42121  if test "$tst_compi_strcasecmp" = "yes"; then
42122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42123printf %s "checking if strcasecmp usage allowed... " >&6; }
42124    if test "x$curl_disallow_strcasecmp" != "xyes"; then
42125      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42126printf "%s\n" "yes" >&6; }
42127      tst_allow_strcasecmp="yes"
42128    else
42129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42130printf "%s\n" "no" >&6; }
42131      tst_allow_strcasecmp="no"
42132    fi
42133  fi
42134  #
42135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42136printf %s "checking if strcasecmp might be used... " >&6; }
42137  if test "$tst_links_strcasecmp" = "yes" &&
42138     test "$tst_proto_strcasecmp" = "yes" &&
42139     test "$tst_compi_strcasecmp" = "yes" &&
42140     test "$tst_allow_strcasecmp" = "yes"; then
42141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42142printf "%s\n" "yes" >&6; }
42143
42144printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42145
42146    curl_cv_func_strcasecmp="yes"
42147  else
42148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42149printf "%s\n" "no" >&6; }
42150    curl_cv_func_strcasecmp="no"
42151  fi
42152
42153
42154    #
42155  tst_links_strcmpi="unknown"
42156  tst_proto_strcmpi="unknown"
42157  tst_compi_strcmpi="unknown"
42158  tst_allow_strcmpi="unknown"
42159  #
42160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42161printf %s "checking if strcmpi can be linked... " >&6; }
42162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42163/* end confdefs.h.  */
42164
42165
42166#define strcmpi innocuous_strcmpi
42167#ifdef __STDC__
42168# include <limits.h>
42169#else
42170# include <assert.h>
42171#endif
42172#undef strcmpi
42173#ifdef __cplusplus
42174extern "C"
42175#endif
42176char strcmpi ();
42177#if defined __stub_strcmpi || defined __stub___strcmpi
42178choke me
42179#endif
42180
42181int main (void)
42182{
42183return strcmpi ();
42184 ;
42185 return 0;
42186}
42187
42188_ACEOF
42189if ac_fn_c_try_link "$LINENO"
42190then :
42191
42192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42193printf "%s\n" "yes" >&6; }
42194    tst_links_strcmpi="yes"
42195
42196else $as_nop
42197
42198    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42199printf "%s\n" "no" >&6; }
42200    tst_links_strcmpi="no"
42201
42202fi
42203rm -f core conftest.err conftest.$ac_objext conftest.beam \
42204    conftest$ac_exeext conftest.$ac_ext
42205  #
42206  if test "$tst_links_strcmpi" = "yes"; then
42207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42208printf %s "checking if strcmpi is prototyped... " >&6; }
42209    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42210/* end confdefs.h.  */
42211
42212      $curl_includes_string
42213
42214_ACEOF
42215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42216  $EGREP "strcmpi" >/dev/null 2>&1
42217then :
42218
42219      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42220printf "%s\n" "yes" >&6; }
42221      tst_proto_strcmpi="yes"
42222
42223else $as_nop
42224
42225      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42226printf "%s\n" "no" >&6; }
42227      tst_proto_strcmpi="no"
42228
42229fi
42230rm -rf conftest*
42231
42232  fi
42233  #
42234  if test "$tst_proto_strcmpi" = "yes"; then
42235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42236printf %s "checking if strcmpi is compilable... " >&6; }
42237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42238/* end confdefs.h.  */
42239
42240
42241        $curl_includes_string
42242
42243int main (void)
42244{
42245
42246        if(0 != strcmpi(0, 0))
42247          return 1;
42248
42249 ;
42250 return 0;
42251}
42252
42253_ACEOF
42254if ac_fn_c_try_compile "$LINENO"
42255then :
42256
42257      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42258printf "%s\n" "yes" >&6; }
42259      tst_compi_strcmpi="yes"
42260
42261else $as_nop
42262
42263      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42264printf "%s\n" "no" >&6; }
42265      tst_compi_strcmpi="no"
42266
42267fi
42268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42269  fi
42270  #
42271  if test "$tst_compi_strcmpi" = "yes"; then
42272    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42273printf %s "checking if strcmpi usage allowed... " >&6; }
42274    if test "x$curl_disallow_strcmpi" != "xyes"; then
42275      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42276printf "%s\n" "yes" >&6; }
42277      tst_allow_strcmpi="yes"
42278    else
42279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42280printf "%s\n" "no" >&6; }
42281      tst_allow_strcmpi="no"
42282    fi
42283  fi
42284  #
42285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42286printf %s "checking if strcmpi might be used... " >&6; }
42287  if test "$tst_links_strcmpi" = "yes" &&
42288     test "$tst_proto_strcmpi" = "yes" &&
42289     test "$tst_compi_strcmpi" = "yes" &&
42290     test "$tst_allow_strcmpi" = "yes"; then
42291    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42292printf "%s\n" "yes" >&6; }
42293
42294printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42295
42296    curl_cv_func_strcmpi="yes"
42297  else
42298    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42299printf "%s\n" "no" >&6; }
42300    curl_cv_func_strcmpi="no"
42301  fi
42302
42303
42304    #
42305  tst_links_strdup="unknown"
42306  tst_proto_strdup="unknown"
42307  tst_compi_strdup="unknown"
42308  tst_allow_strdup="unknown"
42309  #
42310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42311printf %s "checking if strdup can be linked... " >&6; }
42312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42313/* end confdefs.h.  */
42314
42315
42316#define strdup innocuous_strdup
42317#ifdef __STDC__
42318# include <limits.h>
42319#else
42320# include <assert.h>
42321#endif
42322#undef strdup
42323#ifdef __cplusplus
42324extern "C"
42325#endif
42326char strdup ();
42327#if defined __stub_strdup || defined __stub___strdup
42328choke me
42329#endif
42330
42331int main (void)
42332{
42333return strdup ();
42334 ;
42335 return 0;
42336}
42337
42338_ACEOF
42339if ac_fn_c_try_link "$LINENO"
42340then :
42341
42342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42343printf "%s\n" "yes" >&6; }
42344    tst_links_strdup="yes"
42345
42346else $as_nop
42347
42348    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42349printf "%s\n" "no" >&6; }
42350    tst_links_strdup="no"
42351
42352fi
42353rm -f core conftest.err conftest.$ac_objext conftest.beam \
42354    conftest$ac_exeext conftest.$ac_ext
42355  #
42356  if test "$tst_links_strdup" = "yes"; then
42357    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42358printf %s "checking if strdup is prototyped... " >&6; }
42359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42360/* end confdefs.h.  */
42361
42362      $curl_includes_string
42363
42364_ACEOF
42365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42366  $EGREP "strdup" >/dev/null 2>&1
42367then :
42368
42369      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42370printf "%s\n" "yes" >&6; }
42371      tst_proto_strdup="yes"
42372
42373else $as_nop
42374
42375      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42376printf "%s\n" "no" >&6; }
42377      tst_proto_strdup="no"
42378
42379fi
42380rm -rf conftest*
42381
42382  fi
42383  #
42384  if test "$tst_proto_strdup" = "yes"; then
42385    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42386printf %s "checking if strdup is compilable... " >&6; }
42387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42388/* end confdefs.h.  */
42389
42390
42391        $curl_includes_string
42392
42393int main (void)
42394{
42395
42396        if(0 != strdup(0))
42397          return 1;
42398
42399 ;
42400 return 0;
42401}
42402
42403_ACEOF
42404if ac_fn_c_try_compile "$LINENO"
42405then :
42406
42407      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42408printf "%s\n" "yes" >&6; }
42409      tst_compi_strdup="yes"
42410
42411else $as_nop
42412
42413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42414printf "%s\n" "no" >&6; }
42415      tst_compi_strdup="no"
42416
42417fi
42418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42419  fi
42420  #
42421  if test "$tst_compi_strdup" = "yes"; then
42422    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42423printf %s "checking if strdup usage allowed... " >&6; }
42424    if test "x$curl_disallow_strdup" != "xyes"; then
42425      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42426printf "%s\n" "yes" >&6; }
42427      tst_allow_strdup="yes"
42428    else
42429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42430printf "%s\n" "no" >&6; }
42431      tst_allow_strdup="no"
42432    fi
42433  fi
42434  #
42435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42436printf %s "checking if strdup might be used... " >&6; }
42437  if test "$tst_links_strdup" = "yes" &&
42438     test "$tst_proto_strdup" = "yes" &&
42439     test "$tst_compi_strdup" = "yes" &&
42440     test "$tst_allow_strdup" = "yes"; then
42441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42442printf "%s\n" "yes" >&6; }
42443
42444printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42445
42446    curl_cv_func_strdup="yes"
42447  else
42448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42449printf "%s\n" "no" >&6; }
42450    curl_cv_func_strdup="no"
42451  fi
42452
42453
42454      #
42455  tst_links_strerror_r="unknown"
42456  tst_proto_strerror_r="unknown"
42457  tst_compi_strerror_r="unknown"
42458  tst_glibc_strerror_r="unknown"
42459  tst_posix_strerror_r="unknown"
42460  tst_allow_strerror_r="unknown"
42461  tst_works_glibc_strerror_r="unknown"
42462  tst_works_posix_strerror_r="unknown"
42463  tst_glibc_strerror_r_type_arg3="unknown"
42464  tst_posix_strerror_r_type_arg3="unknown"
42465  #
42466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42467printf %s "checking if strerror_r can be linked... " >&6; }
42468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42469/* end confdefs.h.  */
42470
42471
42472#define strerror_r innocuous_strerror_r
42473#ifdef __STDC__
42474# include <limits.h>
42475#else
42476# include <assert.h>
42477#endif
42478#undef strerror_r
42479#ifdef __cplusplus
42480extern "C"
42481#endif
42482char strerror_r ();
42483#if defined __stub_strerror_r || defined __stub___strerror_r
42484choke me
42485#endif
42486
42487int main (void)
42488{
42489return strerror_r ();
42490 ;
42491 return 0;
42492}
42493
42494_ACEOF
42495if ac_fn_c_try_link "$LINENO"
42496then :
42497
42498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42499printf "%s\n" "yes" >&6; }
42500    tst_links_strerror_r="yes"
42501
42502else $as_nop
42503
42504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42505printf "%s\n" "no" >&6; }
42506    tst_links_strerror_r="no"
42507
42508fi
42509rm -f core conftest.err conftest.$ac_objext conftest.beam \
42510    conftest$ac_exeext conftest.$ac_ext
42511  #
42512  if test "$tst_links_strerror_r" = "yes"; then
42513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42514printf %s "checking if strerror_r is prototyped... " >&6; }
42515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42516/* end confdefs.h.  */
42517
42518      $curl_includes_string
42519
42520_ACEOF
42521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42522  $EGREP "strerror_r" >/dev/null 2>&1
42523then :
42524
42525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42526printf "%s\n" "yes" >&6; }
42527      tst_proto_strerror_r="yes"
42528
42529else $as_nop
42530
42531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42532printf "%s\n" "no" >&6; }
42533      tst_proto_strerror_r="no"
42534
42535fi
42536rm -rf conftest*
42537
42538  fi
42539  #
42540  if test "$tst_proto_strerror_r" = "yes"; then
42541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42542printf %s "checking if strerror_r is compilable... " >&6; }
42543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42544/* end confdefs.h.  */
42545
42546
42547        $curl_includes_string
42548
42549int main (void)
42550{
42551
42552        if(0 != strerror_r(0, 0, 0))
42553          return 1;
42554
42555 ;
42556 return 0;
42557}
42558
42559_ACEOF
42560if ac_fn_c_try_compile "$LINENO"
42561then :
42562
42563      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42564printf "%s\n" "yes" >&6; }
42565      tst_compi_strerror_r="yes"
42566
42567else $as_nop
42568
42569      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42570printf "%s\n" "no" >&6; }
42571      tst_compi_strerror_r="no"
42572
42573fi
42574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42575  fi
42576  #
42577  if test "$tst_compi_strerror_r" = "yes"; then
42578    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42579printf %s "checking if strerror_r is glibc like... " >&6; }
42580    tst_glibc_strerror_r_type_arg3="unknown"
42581    for arg3 in 'size_t' 'int' 'unsigned int'; do
42582      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42583        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42584/* end confdefs.h.  */
42585
42586
42587            $curl_includes_string
42588            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42589
42590int main (void)
42591{
42592
42593            if(0 != strerror_r(0, 0, 0))
42594              return 1;
42595
42596 ;
42597 return 0;
42598}
42599
42600_ACEOF
42601if ac_fn_c_try_compile "$LINENO"
42602then :
42603
42604          tst_glibc_strerror_r_type_arg3="$arg3"
42605
42606fi
42607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42608      fi
42609    done
42610    case "$tst_glibc_strerror_r_type_arg3" in
42611      unknown)
42612        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42613printf "%s\n" "no" >&6; }
42614        tst_glibc_strerror_r="no"
42615        ;;
42616      *)
42617        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42618printf "%s\n" "yes" >&6; }
42619        tst_glibc_strerror_r="yes"
42620        ;;
42621    esac
42622  fi
42623  #
42624    if test "x$cross_compiling" != "xyes" &&
42625    test "$tst_glibc_strerror_r" = "yes"; then
42626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42627printf %s "checking if strerror_r seems to work... " >&6; }
42628
42629   case $host_os in
42630     darwin*)
42631      if test "$cross_compiling" = yes
42632then :
42633  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42634printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42635as_fn_error $? "cannot run test program while cross compiling
42636See \`config.log' for more details" "$LINENO" 5; }
42637else $as_nop
42638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42639/* end confdefs.h.  */
42640
42641
42642        $curl_includes_stdlib
42643        $curl_includes_string
42644#       include <errno.h>
42645
42646int main (void)
42647{
42648
42649        char buffer[1024];
42650        char *string = 0;
42651        buffer[0] = '\0';
42652        string = strerror_r(EACCES, buffer, sizeof(buffer));
42653        if(!string)
42654          exit(1); /* fail */
42655        if(!string[0])
42656          exit(1); /* fail */
42657        else
42658          exit(0);
42659
42660 ;
42661 return 0;
42662}
42663
42664_ACEOF
42665if ac_fn_c_try_run "$LINENO"
42666then :
42667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42668printf "%s\n" "yes" >&6; }
42669      tst_works_glibc_strerror_r="yes"
42670
42671else $as_nop
42672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42673printf "%s\n" "no" >&6; }
42674      tst_works_glibc_strerror_r="no"
42675
42676fi
42677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42678  conftest.$ac_objext conftest.beam conftest.$ac_ext
42679fi
42680
42681     ;;
42682     *)
42683      oldcc=$CC
42684      old=$LD_LIBRARY_PATH
42685      CC="sh ./run-compiler"
42686      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42687      export LD_LIBRARY_PATH
42688      if test "$cross_compiling" = yes
42689then :
42690  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42691printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42692as_fn_error $? "cannot run test program while cross compiling
42693See \`config.log' for more details" "$LINENO" 5; }
42694else $as_nop
42695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42696/* end confdefs.h.  */
42697
42698
42699        $curl_includes_stdlib
42700        $curl_includes_string
42701#       include <errno.h>
42702
42703int main (void)
42704{
42705
42706        char buffer[1024];
42707        char *string = 0;
42708        buffer[0] = '\0';
42709        string = strerror_r(EACCES, buffer, sizeof(buffer));
42710        if(!string)
42711          exit(1); /* fail */
42712        if(!string[0])
42713          exit(1); /* fail */
42714        else
42715          exit(0);
42716
42717 ;
42718 return 0;
42719}
42720
42721_ACEOF
42722if ac_fn_c_try_run "$LINENO"
42723then :
42724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42725printf "%s\n" "yes" >&6; }
42726      tst_works_glibc_strerror_r="yes"
42727
42728else $as_nop
42729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42730printf "%s\n" "no" >&6; }
42731      tst_works_glibc_strerror_r="no"
42732
42733fi
42734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42735  conftest.$ac_objext conftest.beam conftest.$ac_ext
42736fi
42737
42738      LD_LIBRARY_PATH=$old # restore
42739      CC=$oldcc
42740     ;;
42741   esac
42742
42743  fi
42744  #
42745  if test "$tst_compi_strerror_r" = "yes" &&
42746    test "$tst_works_glibc_strerror_r" != "yes"; then
42747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42748printf %s "checking if strerror_r is POSIX like... " >&6; }
42749    tst_posix_strerror_r_type_arg3="unknown"
42750    for arg3 in 'size_t' 'int' 'unsigned int'; do
42751      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42752        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42753/* end confdefs.h.  */
42754
42755
42756            $curl_includes_string
42757            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42758
42759int main (void)
42760{
42761
42762            if(0 != strerror_r(0, 0, 0))
42763              return 1;
42764
42765 ;
42766 return 0;
42767}
42768
42769_ACEOF
42770if ac_fn_c_try_compile "$LINENO"
42771then :
42772
42773          tst_posix_strerror_r_type_arg3="$arg3"
42774
42775fi
42776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42777      fi
42778    done
42779    case "$tst_posix_strerror_r_type_arg3" in
42780      unknown)
42781        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42782printf "%s\n" "no" >&6; }
42783        tst_posix_strerror_r="no"
42784        ;;
42785      *)
42786        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42787printf "%s\n" "yes" >&6; }
42788        tst_posix_strerror_r="yes"
42789        ;;
42790    esac
42791  fi
42792  #
42793    if test "x$cross_compiling" != "xyes" &&
42794    test "$tst_posix_strerror_r" = "yes"; then
42795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42796printf %s "checking if strerror_r seems to work... " >&6; }
42797
42798   case $host_os in
42799     darwin*)
42800      if test "$cross_compiling" = yes
42801then :
42802  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42803printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42804as_fn_error $? "cannot run test program while cross compiling
42805See \`config.log' for more details" "$LINENO" 5; }
42806else $as_nop
42807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42808/* end confdefs.h.  */
42809
42810
42811        $curl_includes_stdlib
42812        $curl_includes_string
42813#       include <errno.h>
42814
42815int main (void)
42816{
42817
42818        char buffer[1024];
42819        int error = 1;
42820        buffer[0] = '\0';
42821        error = strerror_r(EACCES, buffer, sizeof(buffer));
42822        if(error)
42823          exit(1); /* fail */
42824        if(buffer[0] == '\0')
42825          exit(1); /* fail */
42826        else
42827          exit(0);
42828
42829 ;
42830 return 0;
42831}
42832
42833_ACEOF
42834if ac_fn_c_try_run "$LINENO"
42835then :
42836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42837printf "%s\n" "yes" >&6; }
42838      tst_works_posix_strerror_r="yes"
42839
42840else $as_nop
42841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42842printf "%s\n" "no" >&6; }
42843      tst_works_posix_strerror_r="no"
42844
42845fi
42846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42847  conftest.$ac_objext conftest.beam conftest.$ac_ext
42848fi
42849
42850     ;;
42851     *)
42852      oldcc=$CC
42853      old=$LD_LIBRARY_PATH
42854      CC="sh ./run-compiler"
42855      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42856      export LD_LIBRARY_PATH
42857      if test "$cross_compiling" = yes
42858then :
42859  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42860printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42861as_fn_error $? "cannot run test program while cross compiling
42862See \`config.log' for more details" "$LINENO" 5; }
42863else $as_nop
42864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42865/* end confdefs.h.  */
42866
42867
42868        $curl_includes_stdlib
42869        $curl_includes_string
42870#       include <errno.h>
42871
42872int main (void)
42873{
42874
42875        char buffer[1024];
42876        int error = 1;
42877        buffer[0] = '\0';
42878        error = strerror_r(EACCES, buffer, sizeof(buffer));
42879        if(error)
42880          exit(1); /* fail */
42881        if(buffer[0] == '\0')
42882          exit(1); /* fail */
42883        else
42884          exit(0);
42885
42886 ;
42887 return 0;
42888}
42889
42890_ACEOF
42891if ac_fn_c_try_run "$LINENO"
42892then :
42893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42894printf "%s\n" "yes" >&6; }
42895      tst_works_posix_strerror_r="yes"
42896
42897else $as_nop
42898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42899printf "%s\n" "no" >&6; }
42900      tst_works_posix_strerror_r="no"
42901
42902fi
42903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42904  conftest.$ac_objext conftest.beam conftest.$ac_ext
42905fi
42906
42907      LD_LIBRARY_PATH=$old # restore
42908      CC=$oldcc
42909     ;;
42910   esac
42911
42912  fi
42913  #
42914  if test "$tst_works_glibc_strerror_r" = "yes"; then
42915    tst_posix_strerror_r="no"
42916  fi
42917  if test "$tst_works_posix_strerror_r" = "yes"; then
42918    tst_glibc_strerror_r="no"
42919  fi
42920  if test "$tst_glibc_strerror_r" = "yes" &&
42921    test "$tst_works_glibc_strerror_r" != "no" &&
42922    test "$tst_posix_strerror_r" != "yes"; then
42923    tst_allow_strerror_r="check"
42924  fi
42925  if test "$tst_posix_strerror_r" = "yes" &&
42926    test "$tst_works_posix_strerror_r" != "no" &&
42927    test "$tst_glibc_strerror_r" != "yes"; then
42928    tst_allow_strerror_r="check"
42929  fi
42930  if test "$tst_allow_strerror_r" = "check"; then
42931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
42932printf %s "checking if strerror_r usage allowed... " >&6; }
42933    if test "x$curl_disallow_strerror_r" != "xyes"; then
42934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42935printf "%s\n" "yes" >&6; }
42936      tst_allow_strerror_r="yes"
42937    else
42938      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42939printf "%s\n" "no" >&6; }
42940      tst_allow_strerror_r="no"
42941    fi
42942  fi
42943  #
42944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
42945printf %s "checking if strerror_r might be used... " >&6; }
42946  if test "$tst_links_strerror_r" = "yes" &&
42947     test "$tst_proto_strerror_r" = "yes" &&
42948     test "$tst_compi_strerror_r" = "yes" &&
42949     test "$tst_allow_strerror_r" = "yes"; then
42950    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42951printf "%s\n" "yes" >&6; }
42952    if test "$tst_glibc_strerror_r" = "yes"; then
42953
42954printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42955
42956
42957printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
42958
42959    fi
42960    if test "$tst_posix_strerror_r" = "yes"; then
42961
42962printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42963
42964
42965printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
42966
42967    fi
42968    curl_cv_func_strerror_r="yes"
42969  else
42970    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42971printf "%s\n" "no" >&6; }
42972    curl_cv_func_strerror_r="no"
42973  fi
42974  #
42975  if test "$tst_compi_strerror_r" = "yes" &&
42976     test "$tst_allow_strerror_r" = "unknown"; then
42977    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42978printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42979  fi
42980  #
42981
42982
42983    #
42984  tst_links_stricmp="unknown"
42985  tst_proto_stricmp="unknown"
42986  tst_compi_stricmp="unknown"
42987  tst_allow_stricmp="unknown"
42988  #
42989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42990printf %s "checking if stricmp can be linked... " >&6; }
42991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42992/* end confdefs.h.  */
42993
42994
42995#define stricmp innocuous_stricmp
42996#ifdef __STDC__
42997# include <limits.h>
42998#else
42999# include <assert.h>
43000#endif
43001#undef stricmp
43002#ifdef __cplusplus
43003extern "C"
43004#endif
43005char stricmp ();
43006#if defined __stub_stricmp || defined __stub___stricmp
43007choke me
43008#endif
43009
43010int main (void)
43011{
43012return stricmp ();
43013 ;
43014 return 0;
43015}
43016
43017_ACEOF
43018if ac_fn_c_try_link "$LINENO"
43019then :
43020
43021    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43022printf "%s\n" "yes" >&6; }
43023    tst_links_stricmp="yes"
43024
43025else $as_nop
43026
43027    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43028printf "%s\n" "no" >&6; }
43029    tst_links_stricmp="no"
43030
43031fi
43032rm -f core conftest.err conftest.$ac_objext conftest.beam \
43033    conftest$ac_exeext conftest.$ac_ext
43034  #
43035  if test "$tst_links_stricmp" = "yes"; then
43036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43037printf %s "checking if stricmp is prototyped... " >&6; }
43038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43039/* end confdefs.h.  */
43040
43041      $curl_includes_string
43042
43043_ACEOF
43044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43045  $EGREP "stricmp" >/dev/null 2>&1
43046then :
43047
43048      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43049printf "%s\n" "yes" >&6; }
43050      tst_proto_stricmp="yes"
43051
43052else $as_nop
43053
43054      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43055printf "%s\n" "no" >&6; }
43056      tst_proto_stricmp="no"
43057
43058fi
43059rm -rf conftest*
43060
43061  fi
43062  #
43063  if test "$tst_proto_stricmp" = "yes"; then
43064    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43065printf %s "checking if stricmp is compilable... " >&6; }
43066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43067/* end confdefs.h.  */
43068
43069
43070        $curl_includes_string
43071
43072int main (void)
43073{
43074
43075        if(0 != stricmp(0, 0))
43076          return 1;
43077
43078 ;
43079 return 0;
43080}
43081
43082_ACEOF
43083if ac_fn_c_try_compile "$LINENO"
43084then :
43085
43086      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43087printf "%s\n" "yes" >&6; }
43088      tst_compi_stricmp="yes"
43089
43090else $as_nop
43091
43092      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43093printf "%s\n" "no" >&6; }
43094      tst_compi_stricmp="no"
43095
43096fi
43097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43098  fi
43099  #
43100  if test "$tst_compi_stricmp" = "yes"; then
43101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43102printf %s "checking if stricmp usage allowed... " >&6; }
43103    if test "x$curl_disallow_stricmp" != "xyes"; then
43104      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43105printf "%s\n" "yes" >&6; }
43106      tst_allow_stricmp="yes"
43107    else
43108      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43109printf "%s\n" "no" >&6; }
43110      tst_allow_stricmp="no"
43111    fi
43112  fi
43113  #
43114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43115printf %s "checking if stricmp might be used... " >&6; }
43116  if test "$tst_links_stricmp" = "yes" &&
43117     test "$tst_proto_stricmp" = "yes" &&
43118     test "$tst_compi_stricmp" = "yes" &&
43119     test "$tst_allow_stricmp" = "yes"; then
43120    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43121printf "%s\n" "yes" >&6; }
43122
43123printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43124
43125    curl_cv_func_stricmp="yes"
43126  else
43127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43128printf "%s\n" "no" >&6; }
43129    curl_cv_func_stricmp="no"
43130  fi
43131
43132
43133    #
43134  tst_links_strtok_r="unknown"
43135  tst_proto_strtok_r="unknown"
43136  tst_compi_strtok_r="unknown"
43137  tst_allow_strtok_r="unknown"
43138  #
43139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43140printf %s "checking if strtok_r can be linked... " >&6; }
43141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43142/* end confdefs.h.  */
43143
43144
43145#define strtok_r innocuous_strtok_r
43146#ifdef __STDC__
43147# include <limits.h>
43148#else
43149# include <assert.h>
43150#endif
43151#undef strtok_r
43152#ifdef __cplusplus
43153extern "C"
43154#endif
43155char strtok_r ();
43156#if defined __stub_strtok_r || defined __stub___strtok_r
43157choke me
43158#endif
43159
43160int main (void)
43161{
43162return strtok_r ();
43163 ;
43164 return 0;
43165}
43166
43167_ACEOF
43168if ac_fn_c_try_link "$LINENO"
43169then :
43170
43171    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43172printf "%s\n" "yes" >&6; }
43173    tst_links_strtok_r="yes"
43174
43175else $as_nop
43176
43177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43178printf "%s\n" "no" >&6; }
43179    tst_links_strtok_r="no"
43180
43181fi
43182rm -f core conftest.err conftest.$ac_objext conftest.beam \
43183    conftest$ac_exeext conftest.$ac_ext
43184  #
43185  if test "$tst_links_strtok_r" = "yes"; then
43186    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43187printf %s "checking if strtok_r is prototyped... " >&6; }
43188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43189/* end confdefs.h.  */
43190
43191      $curl_includes_string
43192
43193_ACEOF
43194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43195  $EGREP "strtok_r" >/dev/null 2>&1
43196then :
43197
43198      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43199printf "%s\n" "yes" >&6; }
43200      tst_proto_strtok_r="yes"
43201
43202else $as_nop
43203
43204      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43205printf "%s\n" "no" >&6; }
43206      tst_proto_strtok_r="no"
43207
43208fi
43209rm -rf conftest*
43210
43211  fi
43212  #
43213  if test "$tst_proto_strtok_r" = "yes"; then
43214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43215printf %s "checking if strtok_r is compilable... " >&6; }
43216    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43217/* end confdefs.h.  */
43218
43219
43220        $curl_includes_string
43221
43222int main (void)
43223{
43224
43225        if(0 != strtok_r(0, 0, 0))
43226          return 1;
43227
43228 ;
43229 return 0;
43230}
43231
43232_ACEOF
43233if ac_fn_c_try_compile "$LINENO"
43234then :
43235
43236      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43237printf "%s\n" "yes" >&6; }
43238      tst_compi_strtok_r="yes"
43239
43240else $as_nop
43241
43242      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43243printf "%s\n" "no" >&6; }
43244      tst_compi_strtok_r="no"
43245
43246fi
43247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43248  fi
43249  #
43250  if test "$tst_compi_strtok_r" = "yes"; then
43251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43252printf %s "checking if strtok_r usage allowed... " >&6; }
43253    if test "x$curl_disallow_strtok_r" != "xyes"; then
43254      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43255printf "%s\n" "yes" >&6; }
43256      tst_allow_strtok_r="yes"
43257    else
43258      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43259printf "%s\n" "no" >&6; }
43260      tst_allow_strtok_r="no"
43261    fi
43262  fi
43263  #
43264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43265printf %s "checking if strtok_r might be used... " >&6; }
43266  if test "$tst_links_strtok_r" = "yes" &&
43267     test "$tst_proto_strtok_r" = "yes" &&
43268     test "$tst_compi_strtok_r" = "yes" &&
43269     test "$tst_allow_strtok_r" = "yes"; then
43270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43271printf "%s\n" "yes" >&6; }
43272
43273printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43274
43275    curl_cv_func_strtok_r="yes"
43276  else
43277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43278printf "%s\n" "no" >&6; }
43279    curl_cv_func_strtok_r="no"
43280  fi
43281
43282
43283    #
43284  tst_links_strtoll="unknown"
43285  tst_proto_strtoll="unknown"
43286  tst_compi_strtoll="unknown"
43287  tst_allow_strtoll="unknown"
43288  #
43289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43290printf %s "checking if strtoll can be linked... " >&6; }
43291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43292/* end confdefs.h.  */
43293
43294
43295#define strtoll innocuous_strtoll
43296#ifdef __STDC__
43297# include <limits.h>
43298#else
43299# include <assert.h>
43300#endif
43301#undef strtoll
43302#ifdef __cplusplus
43303extern "C"
43304#endif
43305char strtoll ();
43306#if defined __stub_strtoll || defined __stub___strtoll
43307choke me
43308#endif
43309
43310int main (void)
43311{
43312return strtoll ();
43313 ;
43314 return 0;
43315}
43316
43317_ACEOF
43318if ac_fn_c_try_link "$LINENO"
43319then :
43320
43321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43322printf "%s\n" "yes" >&6; }
43323    tst_links_strtoll="yes"
43324
43325else $as_nop
43326
43327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43328printf "%s\n" "no" >&6; }
43329    tst_links_strtoll="no"
43330
43331fi
43332rm -f core conftest.err conftest.$ac_objext conftest.beam \
43333    conftest$ac_exeext conftest.$ac_ext
43334  #
43335  if test "$tst_links_strtoll" = "yes"; then
43336    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43337printf %s "checking if strtoll is prototyped... " >&6; }
43338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43339/* end confdefs.h.  */
43340
43341      $curl_includes_stdlib
43342
43343_ACEOF
43344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43345  $EGREP "strtoll" >/dev/null 2>&1
43346then :
43347
43348      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43349printf "%s\n" "yes" >&6; }
43350      tst_proto_strtoll="yes"
43351
43352else $as_nop
43353
43354      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43355printf "%s\n" "no" >&6; }
43356      tst_proto_strtoll="no"
43357
43358fi
43359rm -rf conftest*
43360
43361  fi
43362  #
43363  if test "$tst_proto_strtoll" = "yes"; then
43364    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43365printf %s "checking if strtoll is compilable... " >&6; }
43366    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43367/* end confdefs.h.  */
43368
43369
43370        $curl_includes_stdlib
43371
43372int main (void)
43373{
43374
43375        if(0 != strtoll(0, 0, 0))
43376          return 1;
43377
43378 ;
43379 return 0;
43380}
43381
43382_ACEOF
43383if ac_fn_c_try_compile "$LINENO"
43384then :
43385
43386      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387printf "%s\n" "yes" >&6; }
43388      tst_compi_strtoll="yes"
43389
43390else $as_nop
43391
43392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43393printf "%s\n" "no" >&6; }
43394      tst_compi_strtoll="no"
43395
43396fi
43397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43398  fi
43399  #
43400  if test "$tst_compi_strtoll" = "yes"; then
43401    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43402printf %s "checking if strtoll usage allowed... " >&6; }
43403    if test "x$curl_disallow_strtoll" != "xyes"; then
43404      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43405printf "%s\n" "yes" >&6; }
43406      tst_allow_strtoll="yes"
43407    else
43408      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43409printf "%s\n" "no" >&6; }
43410      tst_allow_strtoll="no"
43411    fi
43412  fi
43413  #
43414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43415printf %s "checking if strtoll might be used... " >&6; }
43416  if test "$tst_links_strtoll" = "yes" &&
43417     test "$tst_proto_strtoll" = "yes" &&
43418     test "$tst_compi_strtoll" = "yes" &&
43419     test "$tst_allow_strtoll" = "yes"; then
43420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43421printf "%s\n" "yes" >&6; }
43422
43423printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43424
43425    curl_cv_func_strtoll="yes"
43426  else
43427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43428printf "%s\n" "no" >&6; }
43429    curl_cv_func_strtoll="no"
43430  fi
43431
43432
43433case $host in
43434  *msdosdjgpp)
43435     ac_cv_func_pipe=no
43436     skipcheck_pipe=yes
43437     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43438printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43439    ;;
43440esac
43441
43442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43443printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43444if test ${ac_cv_c_undeclared_builtin_options+y}
43445then :
43446  printf %s "(cached) " >&6
43447else $as_nop
43448  ac_save_CFLAGS=$CFLAGS
43449   ac_cv_c_undeclared_builtin_options='cannot detect'
43450   for ac_arg in '' -fno-builtin; do
43451     CFLAGS="$ac_save_CFLAGS $ac_arg"
43452     # This test program should *not* compile successfully.
43453     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43454/* end confdefs.h.  */
43455
43456int main (void)
43457{
43458(void) strchr;
43459 ;
43460 return 0;
43461}
43462_ACEOF
43463if ac_fn_c_try_compile "$LINENO"
43464then :
43465
43466else $as_nop
43467  # This test program should compile successfully.
43468        # No library function is consistently available on
43469        # freestanding implementations, so test against a dummy
43470        # declaration.  Include always-available headers on the
43471        # off chance that they somehow elicit warnings.
43472        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43473/* end confdefs.h.  */
43474#include <float.h>
43475#include <limits.h>
43476#include <stdarg.h>
43477#include <stddef.h>
43478extern void ac_decl (int, char *);
43479
43480int main (void)
43481{
43482(void) ac_decl (0, (char *) 0);
43483  (void) ac_decl;
43484
43485 ;
43486 return 0;
43487}
43488_ACEOF
43489if ac_fn_c_try_compile "$LINENO"
43490then :
43491  if test x"$ac_arg" = x
43492then :
43493  ac_cv_c_undeclared_builtin_options='none needed'
43494else $as_nop
43495  ac_cv_c_undeclared_builtin_options=$ac_arg
43496fi
43497          break
43498fi
43499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43500fi
43501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43502    done
43503    CFLAGS=$ac_save_CFLAGS
43504
43505fi
43506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43507printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43508  case $ac_cv_c_undeclared_builtin_options in #(
43509  'cannot detect') :
43510    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43511printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43512as_fn_error $? "cannot make $CC report undeclared builtins
43513See \`config.log' for more details" "$LINENO" 5; } ;; #(
43514  'none needed') :
43515    ac_c_undeclared_builtin_options='' ;; #(
43516  *) :
43517    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43518esac
43519
43520ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43521          #include <sys/types.h>
43522" "$ac_c_undeclared_builtin_options" "CFLAGS"
43523if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43524then :
43525  ac_have_decl=1
43526else $as_nop
43527  ac_have_decl=0
43528fi
43529printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43530if test $ac_have_decl = 1
43531then :
43532
43533else $as_nop
43534
43535printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43536
43537fi
43538
43539
43540
43541
43542  for ac_func in _fseeki64 arc4random fchmod fnmatch fseeko geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43543do :
43544  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43546if eval test \"x\$"$as_ac_var"\" = x"yes"
43547then :
43548  cat >>confdefs.h <<_ACEOF
43549#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43550_ACEOF
43551
43552
43553else $as_nop
43554
43555  func="$ac_func"
43556  eval skipcheck=\$skipcheck_$func
43557  if test "x$skipcheck" != "xyes"; then
43558    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43559printf %s "checking deeper for $func... " >&6; }
43560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43561/* end confdefs.h.  */
43562
43563
43564
43565int main (void)
43566{
43567
43568        $func ();
43569
43570 ;
43571 return 0;
43572}
43573
43574_ACEOF
43575if ac_fn_c_try_link "$LINENO"
43576then :
43577
43578      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43579printf "%s\n" "yes" >&6; }
43580      eval "ac_cv_func_$func=yes"
43581
43582cat >>confdefs.h <<_ACEOF
43583#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43584_ACEOF
43585
43586
43587else $as_nop
43588
43589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43590printf "%s\n" "but still no" >&6; }
43591
43592fi
43593rm -f core conftest.err conftest.$ac_objext conftest.beam \
43594    conftest$ac_exeext conftest.$ac_ext
43595  fi
43596
43597fi
43598
43599done
43600
43601
43602        #
43603  tst_method="unknown"
43604
43605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43606printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43607  if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43608    tst_method="fcntl O_NONBLOCK"
43609  elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43610    tst_method="ioctl FIONBIO"
43611  elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43612    tst_method="ioctlsocket FIONBIO"
43613  elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43614    tst_method="IoctlSocket FIONBIO"
43615  elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43616    tst_method="setsockopt SO_NONBLOCK"
43617  fi
43618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43619printf "%s\n" "$tst_method" >&6; }
43620  if test "$tst_method" = "unknown"; then
43621    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43622printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43623  fi
43624
43625
43626
43627# Extract the first word of "perl", so it can be a program name with args.
43628set dummy perl; ac_word=$2
43629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43630printf %s "checking for $ac_word... " >&6; }
43631if test ${ac_cv_path_PERL+y}
43632then :
43633  printf %s "(cached) " >&6
43634else $as_nop
43635  case $PERL in
43636  [\\/]* | ?:[\\/]*)
43637  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43638  ;;
43639  *)
43640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43641as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43642for as_dir in $as_dummy
43643do
43644  IFS=$as_save_IFS
43645  case $as_dir in #(((
43646    '') as_dir=./ ;;
43647    */) ;;
43648    *) as_dir=$as_dir/ ;;
43649  esac
43650    for ac_exec_ext in '' $ac_executable_extensions; do
43651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43652    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43654    break 2
43655  fi
43656done
43657  done
43658IFS=$as_save_IFS
43659
43660  ;;
43661esac
43662fi
43663PERL=$ac_cv_path_PERL
43664if test -n "$PERL"; then
43665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43666printf "%s\n" "$PERL" >&6; }
43667else
43668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43669printf "%s\n" "no" >&6; }
43670fi
43671
43672
43673
43674
43675for ac_prog in gnroff nroff
43676do
43677  # Extract the first word of "$ac_prog", so it can be a program name with args.
43678set dummy $ac_prog; ac_word=$2
43679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43680printf %s "checking for $ac_word... " >&6; }
43681if test ${ac_cv_path_NROFF+y}
43682then :
43683  printf %s "(cached) " >&6
43684else $as_nop
43685  case $NROFF in
43686  [\\/]* | ?:[\\/]*)
43687  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43688  ;;
43689  *)
43690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43691as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43692for as_dir in $as_dummy
43693do
43694  IFS=$as_save_IFS
43695  case $as_dir in #(((
43696    '') as_dir=./ ;;
43697    */) ;;
43698    *) as_dir=$as_dir/ ;;
43699  esac
43700    for ac_exec_ext in '' $ac_executable_extensions; do
43701  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43702    ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43704    break 2
43705  fi
43706done
43707  done
43708IFS=$as_save_IFS
43709
43710  ;;
43711esac
43712fi
43713NROFF=$ac_cv_path_NROFF
43714if test -n "$NROFF"; then
43715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43716printf "%s\n" "$NROFF" >&6; }
43717else
43718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43719printf "%s\n" "no" >&6; }
43720fi
43721
43722
43723  test -n "$NROFF" && break
43724done
43725
43726
43727
43728if test -n "$NROFF"; then
43729
43730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43731printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43732  MANOPT="-man"
43733  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43734  if test -z "$mancheck"; then
43735    MANOPT="-mandoc"
43736   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43737    if test -z "$mancheck"; then
43738      MANOPT=""
43739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43740printf "%s\n" "failed" >&6; }
43741      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43742printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43743    else
43744      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43745printf "%s\n" "$MANOPT" >&6; }
43746    fi
43747  else
43748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43749printf "%s\n" "$MANOPT" >&6; }
43750  fi
43751
43752fi
43753
43754if test -z "$MANOPT"
43755then
43756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43757printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43758  USE_MANUAL="no";
43759fi
43760
43761
43762if test "$USE_MANUAL" = "1"; then
43763
43764printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
43765
43766  curl_manual_msg="enabled"
43767fi
43768
43769 if test x"$USE_MANUAL" = x1; then
43770  USE_MANUAL_TRUE=
43771  USE_MANUAL_FALSE='#'
43772else
43773  USE_MANUAL_TRUE='#'
43774  USE_MANUAL_FALSE=
43775fi
43776
43777
43778
43779  #
43780  if test "$want_ares" = "yes"; then
43781        clean_CPPFLAGS="$CPPFLAGS"
43782    clean_LDFLAGS="$LDFLAGS"
43783    clean_LIBS="$LIBS"
43784    configure_runpath=`pwd`
43785    if test -n "$want_ares_path"; then
43786            ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43787
43788    if test -n "$PKG_CONFIG"; then
43789      PKGCONFIG="$PKG_CONFIG"
43790    else
43791      if test -n "$ac_tool_prefix"; then
43792  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43793set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43795printf %s "checking for $ac_word... " >&6; }
43796if test ${ac_cv_path_PKGCONFIG+y}
43797then :
43798  printf %s "(cached) " >&6
43799else $as_nop
43800  case $PKGCONFIG in
43801  [\\/]* | ?:[\\/]*)
43802  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43803  ;;
43804  *)
43805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43806as_dummy="$PATH:/usr/bin:/usr/local/bin"
43807for as_dir in $as_dummy
43808do
43809  IFS=$as_save_IFS
43810  case $as_dir in #(((
43811    '') as_dir=./ ;;
43812    */) ;;
43813    *) as_dir=$as_dir/ ;;
43814  esac
43815    for ac_exec_ext in '' $ac_executable_extensions; do
43816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43817    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43819    break 2
43820  fi
43821done
43822  done
43823IFS=$as_save_IFS
43824
43825  ;;
43826esac
43827fi
43828PKGCONFIG=$ac_cv_path_PKGCONFIG
43829if test -n "$PKGCONFIG"; then
43830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43831printf "%s\n" "$PKGCONFIG" >&6; }
43832else
43833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43834printf "%s\n" "no" >&6; }
43835fi
43836
43837
43838fi
43839if test -z "$ac_cv_path_PKGCONFIG"; then
43840  ac_pt_PKGCONFIG=$PKGCONFIG
43841  # Extract the first word of "pkg-config", so it can be a program name with args.
43842set dummy pkg-config; ac_word=$2
43843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43844printf %s "checking for $ac_word... " >&6; }
43845if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43846then :
43847  printf %s "(cached) " >&6
43848else $as_nop
43849  case $ac_pt_PKGCONFIG in
43850  [\\/]* | ?:[\\/]*)
43851  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43852  ;;
43853  *)
43854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43855as_dummy="$PATH:/usr/bin:/usr/local/bin"
43856for as_dir in $as_dummy
43857do
43858  IFS=$as_save_IFS
43859  case $as_dir in #(((
43860    '') as_dir=./ ;;
43861    */) ;;
43862    *) as_dir=$as_dir/ ;;
43863  esac
43864    for ac_exec_ext in '' $ac_executable_extensions; do
43865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43866    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43868    break 2
43869  fi
43870done
43871  done
43872IFS=$as_save_IFS
43873
43874  ;;
43875esac
43876fi
43877ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43878if test -n "$ac_pt_PKGCONFIG"; then
43879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43880printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43881else
43882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43883printf "%s\n" "no" >&6; }
43884fi
43885
43886  if test "x$ac_pt_PKGCONFIG" = x; then
43887    PKGCONFIG="no"
43888  else
43889    case $cross_compiling:$ac_tool_warned in
43890yes:)
43891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43892printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43893ac_tool_warned=yes ;;
43894esac
43895    PKGCONFIG=$ac_pt_PKGCONFIG
43896  fi
43897else
43898  PKGCONFIG="$ac_cv_path_PKGCONFIG"
43899fi
43900
43901    fi
43902
43903    if test "x$PKGCONFIG" != "xno"; then
43904      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43905printf %s "checking for libcares options with pkg-config... " >&6; }
43906            itexists=`
43907    if test -n "$ARES_PCDIR"; then
43908      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43909      export PKG_CONFIG_LIBDIR
43910    fi
43911         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43912
43913      if test -z "$itexists"; then
43914                        PKGCONFIG="no"
43915        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43916printf "%s\n" "no" >&6; }
43917      else
43918        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43919printf "%s\n" "found" >&6; }
43920      fi
43921    fi
43922
43923      if test "$PKGCONFIG" != "no" ; then
43924        ares_LIBS=`
43925    if test -n "$ARES_PCDIR"; then
43926      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43927      export PKG_CONFIG_LIBDIR
43928    fi
43929
43930          $PKGCONFIG --libs-only-l libcares`
43931        ares_LDFLAGS=`
43932    if test -n "$ARES_PCDIR"; then
43933      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43934      export PKG_CONFIG_LIBDIR
43935    fi
43936
43937          $PKGCONFIG --libs-only-L libcares`
43938        ares_CPPFLAGS=`
43939    if test -n "$ARES_PCDIR"; then
43940      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43941      export PKG_CONFIG_LIBDIR
43942    fi
43943
43944          $PKGCONFIG --cflags-only-I libcares`
43945        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43946printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43947        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43948printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43949        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43950printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43951      else
43952                ares_CPPFLAGS="-I$want_ares_path/include"
43953        ares_LDFLAGS="-L$want_ares_path/lib"
43954        ares_LIBS="-lcares"
43955      fi
43956    else
43957
43958    if test -n "$PKG_CONFIG"; then
43959      PKGCONFIG="$PKG_CONFIG"
43960    else
43961      if test -n "$ac_tool_prefix"; then
43962  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43963set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43965printf %s "checking for $ac_word... " >&6; }
43966if test ${ac_cv_path_PKGCONFIG+y}
43967then :
43968  printf %s "(cached) " >&6
43969else $as_nop
43970  case $PKGCONFIG in
43971  [\\/]* | ?:[\\/]*)
43972  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43973  ;;
43974  *)
43975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43976as_dummy="$PATH:/usr/bin:/usr/local/bin"
43977for as_dir in $as_dummy
43978do
43979  IFS=$as_save_IFS
43980  case $as_dir in #(((
43981    '') as_dir=./ ;;
43982    */) ;;
43983    *) as_dir=$as_dir/ ;;
43984  esac
43985    for ac_exec_ext in '' $ac_executable_extensions; do
43986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43987    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43989    break 2
43990  fi
43991done
43992  done
43993IFS=$as_save_IFS
43994
43995  ;;
43996esac
43997fi
43998PKGCONFIG=$ac_cv_path_PKGCONFIG
43999if test -n "$PKGCONFIG"; then
44000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44001printf "%s\n" "$PKGCONFIG" >&6; }
44002else
44003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44004printf "%s\n" "no" >&6; }
44005fi
44006
44007
44008fi
44009if test -z "$ac_cv_path_PKGCONFIG"; then
44010  ac_pt_PKGCONFIG=$PKGCONFIG
44011  # Extract the first word of "pkg-config", so it can be a program name with args.
44012set dummy pkg-config; ac_word=$2
44013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44014printf %s "checking for $ac_word... " >&6; }
44015if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44016then :
44017  printf %s "(cached) " >&6
44018else $as_nop
44019  case $ac_pt_PKGCONFIG in
44020  [\\/]* | ?:[\\/]*)
44021  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44022  ;;
44023  *)
44024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44025as_dummy="$PATH:/usr/bin:/usr/local/bin"
44026for as_dir in $as_dummy
44027do
44028  IFS=$as_save_IFS
44029  case $as_dir in #(((
44030    '') as_dir=./ ;;
44031    */) ;;
44032    *) as_dir=$as_dir/ ;;
44033  esac
44034    for ac_exec_ext in '' $ac_executable_extensions; do
44035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44036    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44038    break 2
44039  fi
44040done
44041  done
44042IFS=$as_save_IFS
44043
44044  ;;
44045esac
44046fi
44047ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44048if test -n "$ac_pt_PKGCONFIG"; then
44049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44050printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44051else
44052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44053printf "%s\n" "no" >&6; }
44054fi
44055
44056  if test "x$ac_pt_PKGCONFIG" = x; then
44057    PKGCONFIG="no"
44058  else
44059    case $cross_compiling:$ac_tool_warned in
44060yes:)
44061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44063ac_tool_warned=yes ;;
44064esac
44065    PKGCONFIG=$ac_pt_PKGCONFIG
44066  fi
44067else
44068  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44069fi
44070
44071    fi
44072
44073    if test "x$PKGCONFIG" != "xno"; then
44074      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44075printf %s "checking for libcares options with pkg-config... " >&6; }
44076            itexists=`
44077    if test -n ""; then
44078      PKG_CONFIG_LIBDIR=""
44079      export PKG_CONFIG_LIBDIR
44080    fi
44081         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44082
44083      if test -z "$itexists"; then
44084                        PKGCONFIG="no"
44085        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44086printf "%s\n" "no" >&6; }
44087      else
44088        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44089printf "%s\n" "found" >&6; }
44090      fi
44091    fi
44092
44093      if test "$PKGCONFIG" != "no" ; then
44094        ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44095        ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44096        ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44097        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44098printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44099        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44100printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44101        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44102printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44103      else
44104        ares_CPPFLAGS=""
44105        ares_LDFLAGS=""
44106        ares_LIBS="-lcares"
44107      fi
44108    fi
44109    #
44110    CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44111    LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44112    LIBS="$ares_LIBS $clean_LIBS"
44113    #
44114
44115        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44116printf %s "checking that c-ares is good and recent enough... " >&6; }
44117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44118/* end confdefs.h.  */
44119
44120
44121#include <ares.h>
44122        /* set of dummy functions in case c-ares was built with debug */
44123        void curl_dofree() { }
44124        void curl_sclose() { }
44125        void curl_domalloc() { }
44126        void curl_docalloc() { }
44127        void curl_socket() { }
44128
44129int main (void)
44130{
44131
44132        ares_channel channel;
44133        ares_cancel(channel); /* added in 1.2.0 */
44134        ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44135        ares_dup(&channel, channel); /* added in 1.6.0 */
44136
44137 ;
44138 return 0;
44139}
44140
44141_ACEOF
44142if ac_fn_c_try_link "$LINENO"
44143then :
44144
44145      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44146printf "%s\n" "yes" >&6; }
44147
44148else $as_nop
44149
44150      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44151printf "%s\n" "no" >&6; }
44152      as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44153            CPPFLAGS="$clean_CPPFLAGS"
44154      LDFLAGS="$clean_LDFLAGS"
44155      LIBS="$clean_LIBS"
44156      # prevent usage
44157      want_ares="no"
44158
44159fi
44160rm -f core conftest.err conftest.$ac_objext conftest.beam \
44161    conftest$ac_exeext conftest.$ac_ext
44162
44163    if test "$want_ares" = "yes"; then
44164
44165printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44166
44167      USE_ARES=1
44168
44169      curl_res_msg="c-ares"
44170    fi
44171  fi
44172
44173
44174if test "x$curl_cv_native_windows" != "xyes" &&
44175   test "x$enable_shared" = "xyes"; then
44176  build_libhostname=yes
44177else
44178  build_libhostname=no
44179fi
44180 if test x$build_libhostname = xyes; then
44181  BUILD_LIBHOSTNAME_TRUE=
44182  BUILD_LIBHOSTNAME_FALSE='#'
44183else
44184  BUILD_LIBHOSTNAME_TRUE='#'
44185  BUILD_LIBHOSTNAME_FALSE=
44186fi
44187
44188
44189if test "x$want_ares" != xyes; then
44190
44191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44192printf %s "checking whether to enable the threaded resolver... " >&6; }
44193  OPT_THRES="default"
44194  # Check whether --enable-threaded_resolver was given.
44195if test ${enable_threaded_resolver+y}
44196then :
44197  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44198fi
44199
44200  case "$OPT_THRES" in
44201    no)
44202            want_thres="no"
44203      ;;
44204    *)
44205            want_thres="yes"
44206      ;;
44207  esac
44208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44209printf "%s\n" "$want_thres" >&6; }
44210
44211fi
44212
44213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44214printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44215# Check whether --enable-pthreads was given.
44216if test ${enable_pthreads+y}
44217then :
44218  enableval=$enable_pthreads;  case "$enableval" in
44219  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44220printf "%s\n" "no" >&6; }
44221       want_pthreads=no
44222       ;;
44223  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44224printf "%s\n" "yes" >&6; }
44225       want_pthreads=yes
44226       ;;
44227  esac
44228else $as_nop
44229
44230       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44231printf "%s\n" "auto" >&6; }
44232       want_pthreads=auto
44233
44234
44235fi
44236
44237
44238if test "$want_pthreads" != "no"; then
44239  if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44240    as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44241  fi
44242  if test "$dontwant_rt" != "no"; then
44243        if test "$want_pthreads" = "yes"; then
44244      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44245printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44246    fi
44247    want_pthreads=no
44248  fi
44249fi
44250
44251if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44252  want_pthreads=no
44253fi
44254
44255if test "$want_pthreads" != "no"; then
44256  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44257if test "x$ac_cv_header_pthread_h" = xyes
44258then :
44259
44260printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44261
44262      save_CFLAGS="$CFLAGS"
44263                                    save_LIBS="$LIBS"
44264
44265      LIBS=
44266            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44267if test "x$ac_cv_func_pthread_create" = xyes
44268then :
44269  USE_THREADS_POSIX=1
44270fi
44271
44272      LIBS="$save_LIBS"
44273
44274            case $host in
44275      *-hp-hpux*)
44276                  USE_THREADS_POSIX=""
44277         ;;
44278      *)
44279         ;;
44280      esac
44281
44282            if test "$USE_THREADS_POSIX" != "1"
44283      then
44284        # assign PTHREAD for pkg-config use
44285        PTHREAD=" -pthread"
44286
44287        case $host in
44288        *-ibm-aix*)
44289                      COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44290           if test x"$COMPILER_VERSION" = "x"; then
44291             CFLAGS="$CFLAGS -pthread"
44292           else
44293             CFLAGS="$CFLAGS -qthreaded"
44294           fi
44295           ;;
44296        powerpc-*amigaos*)
44297                      PTHREAD=" -lpthread"
44298           ;;
44299        *)
44300           CFLAGS="$CFLAGS -pthread"
44301           ;;
44302        esac
44303        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44304printf %s "checking for pthread_create in -lpthread... " >&6; }
44305if test ${ac_cv_lib_pthread_pthread_create+y}
44306then :
44307  printf %s "(cached) " >&6
44308else $as_nop
44309  ac_check_lib_save_LIBS=$LIBS
44310LIBS="-lpthread  $LIBS"
44311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44312/* end confdefs.h.  */
44313
44314
44315#ifdef __cplusplus
44316extern "C"
44317#endif
44318char pthread_create ();
44319int main (void)
44320{
44321return pthread_create ();
44322 ;
44323 return 0;
44324}
44325_ACEOF
44326if ac_fn_c_try_link "$LINENO"
44327then :
44328  ac_cv_lib_pthread_pthread_create=yes
44329else $as_nop
44330  ac_cv_lib_pthread_pthread_create=no
44331fi
44332rm -f core conftest.err conftest.$ac_objext conftest.beam \
44333    conftest$ac_exeext conftest.$ac_ext
44334LIBS=$ac_check_lib_save_LIBS
44335fi
44336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44337printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44338if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44339then :
44340  USE_THREADS_POSIX=1
44341else $as_nop
44342   CFLAGS="$save_CFLAGS"
44343fi
44344
44345      fi
44346
44347      if test "x$USE_THREADS_POSIX" = "x1"
44348      then
44349
44350printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44351
44352        curl_res_msg="POSIX threaded"
44353      fi
44354
44355fi
44356
44357fi
44358
44359if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44360  if test "$want_pthreads" = "yes"; then
44361    as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44362  fi
44363    if test "$curl_cv_native_windows" = "yes"; then
44364    USE_THREADS_WIN32=1
44365
44366printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44367
44368    curl_res_msg="Win32 threaded"
44369  else
44370    as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44371  fi
44372fi
44373
44374
44375      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44376printf %s "checking convert -I options to -isystem... " >&6; }
44377  if test "$compiler_id" = "GNU_C" ||
44378    test "$compiler_id" = "CLANG"; then
44379    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44380printf "%s\n" "yes" >&6; }
44381    tmp_has_include="no"
44382    tmp_chg_FLAGS="$CFLAGS"
44383    for word1 in $tmp_chg_FLAGS; do
44384      case "$word1" in
44385        -I*)
44386          tmp_has_include="yes"
44387          ;;
44388      esac
44389    done
44390    if test "$tmp_has_include" = "yes"; then
44391      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44392      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44393      CFLAGS="$tmp_chg_FLAGS"
44394      squeeze CFLAGS
44395    fi
44396    tmp_has_include="no"
44397    tmp_chg_FLAGS="$CPPFLAGS"
44398    for word1 in $tmp_chg_FLAGS; do
44399      case "$word1" in
44400        -I*)
44401          tmp_has_include="yes"
44402          ;;
44403      esac
44404    done
44405    if test "$tmp_has_include" = "yes"; then
44406      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44407      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44408      CPPFLAGS="$tmp_chg_FLAGS"
44409      squeeze CPPFLAGS
44410    fi
44411  else
44412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44413printf "%s\n" "no" >&6; }
44414  fi
44415
44416
44417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44418printf %s "checking whether to enable verbose strings... " >&6; }
44419# Check whether --enable-verbose was given.
44420if test ${enable_verbose+y}
44421then :
44422  enableval=$enable_verbose;  case "$enableval" in
44423  no)
44424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44425printf "%s\n" "no" >&6; }
44426
44427printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44428
44429       curl_verbose_msg="no"
44430       ;;
44431  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44432printf "%s\n" "yes" >&6; }
44433       ;;
44434  esac
44435else $as_nop
44436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44437printf "%s\n" "yes" >&6; }
44438
44439fi
44440
44441
44442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44443printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44444# Check whether --enable-sspi was given.
44445if test ${enable_sspi+y}
44446then :
44447  enableval=$enable_sspi;  case "$enableval" in
44448  yes)
44449       if test "$curl_cv_native_windows" = "yes"; then
44450         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44451printf "%s\n" "yes" >&6; }
44452
44453printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44454
44455         USE_WINDOWS_SSPI=1
44456
44457         curl_sspi_msg="enabled"
44458       else
44459         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44460printf "%s\n" "no" >&6; }
44461         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44462printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44463       fi
44464       ;;
44465  *)
44466       if test "x$SCHANNEL_ENABLED" = "x1"; then
44467         # --with-schannel implies --enable-sspi
44468         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44469printf "%s\n" "yes" >&6; }
44470       else
44471         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44472printf "%s\n" "no" >&6; }
44473       fi
44474       ;;
44475  esac
44476else $as_nop
44477  if test "x$SCHANNEL_ENABLED" = "x1"; then
44478         # --with-schannel implies --enable-sspi
44479         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44480printf "%s\n" "yes" >&6; }
44481       else
44482         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44483printf "%s\n" "no" >&6; }
44484       fi
44485
44486fi
44487
44488
44489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5
44490printf %s "checking whether to enable basic authentication method... " >&6; }
44491# Check whether --enable-basic-auth was given.
44492if test ${enable_basic_auth+y}
44493then :
44494  enableval=$enable_basic_auth;  case "$enableval" in
44495  no)
44496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44497printf "%s\n" "no" >&6; }
44498
44499printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h
44500
44501       CURL_DISABLE_BASIC_AUTH=1
44502       ;;
44503  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44504printf "%s\n" "yes" >&6; }
44505       ;;
44506  esac
44507else $as_nop
44508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44509printf "%s\n" "yes" >&6; }
44510
44511fi
44512
44513
44514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5
44515printf %s "checking whether to enable bearer authentication method... " >&6; }
44516# Check whether --enable-bearer-auth was given.
44517if test ${enable_bearer_auth+y}
44518then :
44519  enableval=$enable_bearer_auth;  case "$enableval" in
44520  no)
44521       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44522printf "%s\n" "no" >&6; }
44523
44524printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h
44525
44526       CURL_DISABLE_BEARER_AUTH=1
44527       ;;
44528  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44529printf "%s\n" "yes" >&6; }
44530       ;;
44531  esac
44532else $as_nop
44533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44534printf "%s\n" "yes" >&6; }
44535
44536fi
44537
44538
44539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5
44540printf %s "checking whether to enable digest authentication method... " >&6; }
44541# Check whether --enable-digest-auth was given.
44542if test ${enable_digest_auth+y}
44543then :
44544  enableval=$enable_digest_auth;  case "$enableval" in
44545  no)
44546       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44547printf "%s\n" "no" >&6; }
44548
44549printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h
44550
44551       CURL_DISABLE_DIGEST_AUTH=1
44552       ;;
44553  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44554printf "%s\n" "yes" >&6; }
44555       ;;
44556  esac
44557else $as_nop
44558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44559printf "%s\n" "yes" >&6; }
44560
44561fi
44562
44563
44564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5
44565printf %s "checking whether to enable kerberos authentication method... " >&6; }
44566# Check whether --enable-kerberos-auth was given.
44567if test ${enable_kerberos_auth+y}
44568then :
44569  enableval=$enable_kerberos_auth;  case "$enableval" in
44570  no)
44571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44572printf "%s\n" "no" >&6; }
44573
44574printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h
44575
44576       CURL_DISABLE_KERBEROS_AUTH=1
44577       ;;
44578  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44579printf "%s\n" "yes" >&6; }
44580       ;;
44581  esac
44582else $as_nop
44583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44584printf "%s\n" "yes" >&6; }
44585
44586fi
44587
44588
44589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5
44590printf %s "checking whether to enable negotiate authentication method... " >&6; }
44591# Check whether --enable-negotiate-auth was given.
44592if test ${enable_negotiate_auth+y}
44593then :
44594  enableval=$enable_negotiate_auth;  case "$enableval" in
44595  no)
44596       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44597printf "%s\n" "no" >&6; }
44598
44599printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h
44600
44601       CURL_DISABLE_NEGOTIATE_AUTH=1
44602       ;;
44603  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44604printf "%s\n" "yes" >&6; }
44605       ;;
44606  esac
44607else $as_nop
44608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44609printf "%s\n" "yes" >&6; }
44610
44611fi
44612
44613
44614
44615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5
44616printf %s "checking whether to enable aws sig methods... " >&6; }
44617# Check whether --enable-aws was given.
44618if test ${enable_aws+y}
44619then :
44620  enableval=$enable_aws;  case "$enableval" in
44621  no)
44622       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44623printf "%s\n" "no" >&6; }
44624
44625printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h
44626
44627       CURL_DISABLE_AWS=1
44628       ;;
44629  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44630printf "%s\n" "yes" >&6; }
44631       ;;
44632  esac
44633else $as_nop
44634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44635printf "%s\n" "yes" >&6; }
44636
44637fi
44638
44639
44640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44641printf %s "checking whether to support NTLM... " >&6; }
44642# Check whether --enable-ntlm was given.
44643if test ${enable_ntlm+y}
44644then :
44645  enableval=$enable_ntlm;  case "$enableval" in
44646  no)
44647       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44648printf "%s\n" "no" >&6; }
44649
44650printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44651
44652       CURL_DISABLE_NTLM=1
44653       ;;
44654  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44655printf "%s\n" "yes" >&6; }
44656       ;;
44657  esac
44658else $as_nop
44659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44660printf "%s\n" "yes" >&6; }
44661
44662fi
44663
44664
44665
44666    OPT_NTLM_WB="default"
44667  # Check whether --enable-ntlm-wb was given.
44668if test ${enable_ntlm_wb+y}
44669then :
44670  enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44671fi
44672
44673  want_ntlm_wb_file="/usr/bin/ntlm_auth"
44674  case "$OPT_NTLM_WB" in
44675    no)
44676            want_ntlm_wb="no"
44677      ;;
44678    default)
44679            want_ntlm_wb="yes"
44680      ;;
44681    *)
44682            want_ntlm_wb="yes"
44683      if test -n "$enableval" && test "$enableval" != "yes"; then
44684        want_ntlm_wb_file="$enableval"
44685      fi
44686      ;;
44687  esac
44688
44689
44690
44691      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44692printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44693  if test "$curl_cv_native_windows" = "yes" ||
44694    test "x$SSL_ENABLED" = "x"; then
44695    want_ntlm_wb_file=""
44696    want_ntlm_wb="no"
44697  elif test "x$ac_cv_func_fork" != "xyes"; then
44698        want_ntlm_wb="no"
44699  fi
44700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44701printf "%s\n" "$want_ntlm_wb" >&6; }
44702  if test "$want_ntlm_wb" = "yes"; then
44703
44704printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44705
44706
44707printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44708
44709    NTLM_WB_ENABLED=1
44710  fi
44711
44712
44713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44714printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44715# Check whether --enable-tls-srp was given.
44716if test ${enable_tls_srp+y}
44717then :
44718  enableval=$enable_tls_srp;  case "$enableval" in
44719  no)
44720       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44721printf "%s\n" "no" >&6; }
44722       want_tls_srp=no
44723       ;;
44724  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44725printf "%s\n" "yes" >&6; }
44726       want_tls_srp=yes
44727       ;;
44728  esac
44729else $as_nop
44730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44731printf "%s\n" "yes" >&6; }
44732       want_tls_srp=yes
44733
44734fi
44735
44736
44737if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44738
44739printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44740
44741   USE_TLS_SRP=1
44742   curl_tls_srp_msg="enabled"
44743fi
44744
44745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44746printf %s "checking whether to enable Unix domain sockets... " >&6; }
44747# Check whether --enable-unix-sockets was given.
44748if test ${enable_unix_sockets+y}
44749then :
44750  enableval=$enable_unix_sockets;  case "$enableval" in
44751  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44752printf "%s\n" "no" >&6; }
44753       want_unix_sockets=no
44754       ;;
44755  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44756printf "%s\n" "yes" >&6; }
44757       want_unix_sockets=yes
44758       ;;
44759  esac
44760else $as_nop
44761
44762       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44763printf "%s\n" "auto" >&6; }
44764       want_unix_sockets=auto
44765
44766
44767fi
44768
44769if test "x$want_unix_sockets" != "xno"; then
44770  if test "x$curl_cv_native_windows" = "xyes"; then
44771    USE_UNIX_SOCKETS=1
44772
44773printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44774
44775    curl_unix_sockets_msg="enabled"
44776  else
44777    ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44778      #include <sys/un.h>
44779
44780"
44781if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
44782then :
44783
44784
44785printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44786
44787      USE_UNIX_SOCKETS=1
44788
44789      curl_unix_sockets_msg="enabled"
44790
44791else $as_nop
44792
44793      if test "x$want_unix_sockets" = "xyes"; then
44794        as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44795      fi
44796
44797fi
44798
44799  fi
44800fi
44801
44802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44803printf %s "checking whether to support cookies... " >&6; }
44804# Check whether --enable-cookies was given.
44805if test ${enable_cookies+y}
44806then :
44807  enableval=$enable_cookies;  case "$enableval" in
44808  no)
44809       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44810printf "%s\n" "no" >&6; }
44811
44812printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44813
44814       ;;
44815  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44816printf "%s\n" "yes" >&6; }
44817       ;;
44818  esac
44819else $as_nop
44820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44821printf "%s\n" "yes" >&6; }
44822
44823fi
44824
44825
44826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44827printf %s "checking whether to support socketpair... " >&6; }
44828# Check whether --enable-socketpair was given.
44829if test ${enable_socketpair+y}
44830then :
44831  enableval=$enable_socketpair;  case "$enableval" in
44832  no)
44833       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44834printf "%s\n" "no" >&6; }
44835
44836printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44837
44838       ;;
44839  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44840printf "%s\n" "yes" >&6; }
44841       ;;
44842  esac
44843else $as_nop
44844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44845printf "%s\n" "yes" >&6; }
44846
44847fi
44848
44849
44850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44851printf %s "checking whether to support HTTP authentication... " >&6; }
44852# Check whether --enable-http-auth was given.
44853if test ${enable_http_auth+y}
44854then :
44855  enableval=$enable_http_auth;  case "$enableval" in
44856  no)
44857       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44858printf "%s\n" "no" >&6; }
44859
44860printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44861
44862       ;;
44863  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44864printf "%s\n" "yes" >&6; }
44865       ;;
44866  esac
44867else $as_nop
44868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44869printf "%s\n" "yes" >&6; }
44870
44871fi
44872
44873
44874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44875printf %s "checking whether to support DoH... " >&6; }
44876# Check whether --enable-doh was given.
44877if test ${enable_doh+y}
44878then :
44879  enableval=$enable_doh;  case "$enableval" in
44880  no)
44881       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44882printf "%s\n" "no" >&6; }
44883
44884printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
44885
44886       ;;
44887  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44888printf "%s\n" "yes" >&6; }
44889       ;;
44890  esac
44891else $as_nop
44892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44893printf "%s\n" "yes" >&6; }
44894
44895fi
44896
44897
44898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44899printf %s "checking whether to support the MIME API... " >&6; }
44900# Check whether --enable-mime was given.
44901if test ${enable_mime+y}
44902then :
44903  enableval=$enable_mime;  case "$enableval" in
44904  no)
44905       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44906printf "%s\n" "no" >&6; }
44907
44908printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
44909
44910       ;;
44911  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44912printf "%s\n" "yes" >&6; }
44913       ;;
44914  esac
44915else $as_nop
44916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44917printf "%s\n" "yes" >&6; }
44918
44919fi
44920
44921
44922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5
44923printf %s "checking whether to support binding connections locally... " >&6; }
44924# Check whether --enable-bindlocal was given.
44925if test ${enable_bindlocal+y}
44926then :
44927  enableval=$enable_bindlocal;  case "$enableval" in
44928  no)
44929       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44930printf "%s\n" "no" >&6; }
44931
44932printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h
44933
44934       ;;
44935  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44936printf "%s\n" "yes" >&6; }
44937       ;;
44938  esac
44939else $as_nop
44940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44941printf "%s\n" "yes" >&6; }
44942
44943fi
44944
44945
44946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5
44947printf %s "checking whether to support the form API... " >&6; }
44948# Check whether --enable-form-api was given.
44949if test ${enable_form_api+y}
44950then :
44951  enableval=$enable_form_api;  case "$enableval" in
44952  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44953printf "%s\n" "no" >&6; }
44954
44955printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
44956
44957       ;;
44958  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44959printf "%s\n" "yes" >&6; }
44960       test "$enable_mime" = no &&
44961         as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5
44962       ;;
44963  esac
44964else $as_nop
44965
44966  if test "$enable_mime" = no; then
44967    enable_form_api=no
44968    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44969printf "%s\n" "no" >&6; }
44970
44971printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
44972
44973  else
44974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44975printf "%s\n" "yes" >&6; }
44976  fi
44977
44978fi
44979
44980
44981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44982printf %s "checking whether to support date parsing... " >&6; }
44983# Check whether --enable-dateparse was given.
44984if test ${enable_dateparse+y}
44985then :
44986  enableval=$enable_dateparse;  case "$enableval" in
44987  no)
44988       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44989printf "%s\n" "no" >&6; }
44990
44991printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44992
44993       ;;
44994  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44995printf "%s\n" "yes" >&6; }
44996       ;;
44997  esac
44998else $as_nop
44999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45000printf "%s\n" "yes" >&6; }
45001
45002fi
45003
45004
45005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45006printf %s "checking whether to support netrc parsing... " >&6; }
45007# Check whether --enable-netrc was given.
45008if test ${enable_netrc+y}
45009then :
45010  enableval=$enable_netrc;  case "$enableval" in
45011  no)
45012       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45013printf "%s\n" "no" >&6; }
45014
45015printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45016
45017       ;;
45018  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45019printf "%s\n" "yes" >&6; }
45020       ;;
45021  esac
45022else $as_nop
45023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45024printf "%s\n" "yes" >&6; }
45025
45026fi
45027
45028
45029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45030printf %s "checking whether to support progress-meter... " >&6; }
45031# Check whether --enable-progress-meter was given.
45032if test ${enable_progress_meter+y}
45033then :
45034  enableval=$enable_progress_meter;  case "$enableval" in
45035  no)
45036       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45037printf "%s\n" "no" >&6; }
45038
45039printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45040
45041       ;;
45042  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45043printf "%s\n" "yes" >&6; }
45044       ;;
45045  esac
45046else $as_nop
45047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45048printf "%s\n" "yes" >&6; }
45049
45050fi
45051
45052
45053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45054printf %s "checking whether to support DNS shuffling... " >&6; }
45055# Check whether --enable-dnsshuffle was given.
45056if test ${enable_dnsshuffle+y}
45057then :
45058  enableval=$enable_dnsshuffle;  case "$enableval" in
45059  no)
45060       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45061printf "%s\n" "no" >&6; }
45062
45063printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45064
45065       ;;
45066  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45067printf "%s\n" "yes" >&6; }
45068       ;;
45069  esac
45070else $as_nop
45071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45072printf "%s\n" "yes" >&6; }
45073
45074fi
45075
45076
45077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45078printf %s "checking whether to support curl_easy_option*... " >&6; }
45079# Check whether --enable-get-easy-options was given.
45080if test ${enable_get_easy_options+y}
45081then :
45082  enableval=$enable_get_easy_options;  case "$enableval" in
45083  no)
45084       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45085printf "%s\n" "no" >&6; }
45086
45087printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45088
45089       ;;
45090  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45091printf "%s\n" "yes" >&6; }
45092       ;;
45093  esac
45094else $as_nop
45095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45096printf "%s\n" "yes" >&6; }
45097
45098fi
45099
45100
45101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45102printf %s "checking whether to support alt-svc... " >&6; }
45103# Check whether --enable-alt-svc was given.
45104if test ${enable_alt_svc+y}
45105then :
45106  enableval=$enable_alt_svc;  case "$enableval" in
45107  no)
45108       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45109printf "%s\n" "no" >&6; }
45110
45111printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45112
45113       curl_altsvc_msg="no";
45114       enable_altsvc="no"
45115       ;;
45116  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45117printf "%s\n" "yes" >&6; }
45118       ;;
45119  esac
45120else $as_nop
45121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45122printf "%s\n" "yes" >&6; }
45123
45124fi
45125
45126
45127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45128printf %s "checking whether to support headers-api... " >&6; }
45129# Check whether --enable-headers-api was given.
45130if test ${enable_headers_api+y}
45131then :
45132  enableval=$enable_headers_api;  case "$enableval" in
45133  no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45134printf "%s\n" "no" >&6; }
45135       curl_headers_msg="no      (--enable-headers-api)"
45136
45137printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45138
45139       ;;
45140  *)
45141       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45142printf "%s\n" "yes" >&6; }
45143       ;;
45144  esac
45145else $as_nop
45146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45147printf "%s\n" "yes" >&6; }
45148
45149fi
45150
45151
45152if test -n "$SSL_ENABLED"; then
45153        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45154printf %s "checking whether to support HSTS... " >&6; }
45155  # Check whether --enable-hsts was given.
45156if test ${enable_hsts+y}
45157then :
45158  enableval=$enable_hsts;  case "$enableval" in
45159    no)
45160       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45161printf "%s\n" "no" >&6; }
45162       hsts="no"
45163       ;;
45164    *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45165printf "%s\n" "yes" >&6; }
45166       ;;
45167    esac
45168else $as_nop
45169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45170printf "%s\n" "$hsts" >&6; }
45171
45172fi
45173
45174else
45175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45176printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45177  hsts="no"
45178fi
45179
45180if test "x$hsts" != "xyes"; then
45181  curl_hsts_msg="no      (--enable-hsts)";
45182
45183printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45184
45185fi
45186
45187if test "x$want_ech" != "xno"; then
45188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45189printf %s "checking whether ECH support is available... " >&6; }
45190
45191    ECH_ENABLED=0
45192  ECH_SUPPORT=''
45193
45194      if test "x$OPENSSL_ENABLED" = "x1"; then
45195
45196  for ac_func in SSL_get_ech_status
45197do :
45198  ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
45199if test "x$ac_cv_func_SSL_get_ech_status" = xyes
45200then :
45201  printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
45202 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
45203      ECH_ENABLED=1
45204fi
45205
45206done
45207
45208    fi
45209
45210    if test "x$ECH_ENABLED" = "x1"; then
45211
45212printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45213
45214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45215printf "%s\n" "$ECH_SUPPORT" >&6; }
45216    experimental="$experimental ECH"
45217  else
45218    as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45219  fi
45220fi
45221
45222if test "x$OPENSSL_ENABLED" = "x1"; then
45223  ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45224if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45225then :
45226  printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45227
45228fi
45229
45230fi
45231
45232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45233printf %s "checking whether to support WebSockets... " >&6; }
45234# Check whether --enable-websockets was given.
45235if test ${enable_websockets+y}
45236then :
45237  enableval=$enable_websockets;  case "$enableval" in
45238  no)
45239     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45240printf "%s\n" "no" >&6; }
45241     ;;
45242  *)
45243     if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45244         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45245printf "%s\n" "yes" >&6; }
45246         curl_ws_msg="enabled"
45247
45248printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45249
45250         SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45251         if test "x$SSL_ENABLED" = "x1"; then
45252           SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45253         fi
45254         experimental="$experimental Websockets"
45255     else
45256                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45257printf "%s\n" "no" >&6; }
45258         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45259printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45260     fi
45261     ;;
45262  esac
45263else $as_nop
45264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45265printf "%s\n" "no" >&6; }
45266
45267fi
45268
45269
45270
45271
45272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45273printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45274  CFLAG_CURL_SYMBOL_HIDING=""
45275  doing_symbol_hiding="no"
45276  if test "$want_symbol_hiding" = "yes" &&
45277    test "$supports_symbol_hiding" = "yes"; then
45278    doing_symbol_hiding="yes"
45279    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45280
45281printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45282
45283    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45284printf "%s\n" "yes" >&6; }
45285  else
45286    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45287printf "%s\n" "no" >&6; }
45288  fi
45289   if test x$doing_symbol_hiding = xyes; then
45290  DOING_CURL_SYMBOL_HIDING_TRUE=
45291  DOING_CURL_SYMBOL_HIDING_FALSE='#'
45292else
45293  DOING_CURL_SYMBOL_HIDING_TRUE='#'
45294  DOING_CURL_SYMBOL_HIDING_FALSE=
45295fi
45296
45297
45298
45299
45300LIBCURL_LIBS="$LIBS$PTHREAD"
45301
45302
45303
45304
45305
45306BLANK_AT_MAKETIME=
45307
45308
45309 if test x$cross_compiling = xyes; then
45310  CROSSCOMPILING_TRUE=
45311  CROSSCOMPILING_FALSE='#'
45312else
45313  CROSSCOMPILING_TRUE='#'
45314  CROSSCOMPILING_FALSE=
45315fi
45316
45317
45318ENABLE_SHARED="$enable_shared"
45319
45320
45321ENABLE_STATIC="$enable_static"
45322
45323
45324if test "x$enable_shared" = "xno"; then
45325  LIBCURL_NO_SHARED=$LIBCURL_LIBS
45326else
45327  LIBCURL_NO_SHARED=
45328fi
45329
45330
45331rm $compilersh
45332
45333
45334if test "x$OPENSSL_ENABLED" = "x1"; then
45335  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45336elif test -n "$SSL_ENABLED"; then
45337  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45338fi
45339if test "x$IPV6_ENABLED" = "x1"; then
45340  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45341fi
45342if test "x$USE_UNIX_SOCKETS" = "x1"; then
45343  SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45344fi
45345if test "x$HAVE_LIBZ" = "x1"; then
45346  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45347fi
45348if test "x$HAVE_BROTLI" = "x1"; then
45349  SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45350fi
45351if test "x$HAVE_ZSTD" = "x1"; then
45352  SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45353fi
45354if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45355                            -o "x$USE_THREADS_WIN32" = "x1"; then
45356  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45357fi
45358if test "x$IDN_ENABLED" = "x1"; then
45359  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45360fi
45361if test "x$USE_WINDOWS_SSPI" = "x1"; then
45362  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45363fi
45364
45365if test "x$HAVE_GSSAPI" = "x1"; then
45366  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45367fi
45368
45369if test "x$curl_psl_msg" = "xenabled"; then
45370  SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45371fi
45372
45373if test "x$curl_gsasl_msg" = "xenabled"; then
45374  SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45375fi
45376
45377if test "x$enable_altsvc" = "xyes"; then
45378  SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45379fi
45380if test "x$hsts" = "xyes"; then
45381  SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45382fi
45383
45384if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
45385    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45386  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45387fi
45388
45389if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
45390    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45391  SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45392fi
45393
45394use_curl_ntlm_core=no
45395
45396if test "x$CURL_DISABLE_NTLM" != "x1"; then
45397  if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45398      -o "x$GNUTLS_ENABLED" = "x1" \
45399      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45400      -o "x$USE_WIN32_CRYPTO" = "x1" \
45401      -o "x$WOLFSSL_NTLM" = "x1"; then
45402    use_curl_ntlm_core=yes
45403  fi
45404
45405  if test "x$use_curl_ntlm_core" = "xyes" \
45406      -o "x$USE_WINDOWS_SSPI" = "x1"; then
45407    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45408
45409    if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45410        "x$NTLM_WB_ENABLED" = "x1"; then
45411      SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45412    fi
45413  fi
45414fi
45415
45416if test "x$USE_TLS_SRP" = "x1"; then
45417  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45418fi
45419
45420if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
45421  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45422fi
45423
45424if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45425    -o "x$USE_MSH3" = "x1"; then
45426  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45427fi
45428
45429if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45430  SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45431fi
45432
45433if test "x$https_proxy" != "xno"; then
45434  if test "x$OPENSSL_ENABLED" = "x1" \
45435      -o "x$GNUTLS_ENABLED" = "x1" \
45436      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45437      -o "x$RUSTLS_ENABLED" = "x1" \
45438      -o "x$BEARSSL_ENABLED" = "x1" \
45439      -o "x$SCHANNEL_ENABLED" = "x1" \
45440      -o "x$GNUTLS_ENABLED" = "x1" \
45441      -o "x$MBEDTLS_ENABLED" = "x1"; then
45442    SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45443  elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
45444    SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45445  fi
45446fi
45447
45448if test "x$ECH_ENABLED" = "x1"; then
45449  SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45450fi
45451
45452if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45453  if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45454     "$curl_win32_file_api" = "win32_large_files"; then
45455    SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45456  fi
45457fi
45458
45459if test "$tst_atomic" = "yes"; then
45460  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45461else
45462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45463/* end confdefs.h.  */
45464
45465
45466      #include <windows.h>
45467
45468int main (void)
45469{
45470
45471      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45472      #error
45473      #endif
45474
45475 ;
45476 return 0;
45477}
45478
45479_ACEOF
45480if ac_fn_c_try_compile "$LINENO"
45481then :
45482
45483     SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45484
45485fi
45486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45487fi
45488
45489SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45490
45491
45492if test "x$CURL_DISABLE_HTTP" != "x1"; then
45493  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45494  if test "x$SSL_ENABLED" = "x1"; then
45495    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45496  fi
45497fi
45498if test "x$CURL_DISABLE_FTP" != "x1"; then
45499  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45500  if test "x$SSL_ENABLED" = "x1"; then
45501    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45502  fi
45503fi
45504if test "x$CURL_DISABLE_FILE" != "x1"; then
45505  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45506fi
45507if test "x$CURL_DISABLE_TELNET" != "x1"; then
45508  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45509fi
45510if test "x$CURL_DISABLE_LDAP" != "x1"; then
45511  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45512  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45513    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45514      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
45515      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45516    fi
45517  fi
45518fi
45519if test "x$CURL_DISABLE_DICT" != "x1"; then
45520  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45521fi
45522if test "x$CURL_DISABLE_TFTP" != "x1"; then
45523  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45524fi
45525if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45526  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45527  if test "x$SSL_ENABLED" = "x1"; then
45528    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45529  fi
45530fi
45531if test "x$CURL_DISABLE_MQTT" != "x1"; then
45532  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45533fi
45534if test "x$CURL_DISABLE_POP3" != "x1"; then
45535  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45536  if test "x$SSL_ENABLED" = "x1"; then
45537    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45538  fi
45539fi
45540if test "x$CURL_DISABLE_IMAP" != "x1"; then
45541  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45542  if test "x$SSL_ENABLED" = "x1"; then
45543    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45544  fi
45545fi
45546if test "x$CURL_DISABLE_SMB" != "x1" \
45547    -a "x$use_curl_ntlm_core" = "xyes"; then
45548  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45549  if test "x$SSL_ENABLED" = "x1"; then
45550    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45551  fi
45552fi
45553if test "x$CURL_DISABLE_SMTP" != "x1"; then
45554  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45555  if test "x$SSL_ENABLED" = "x1"; then
45556    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45557  fi
45558fi
45559if test "x$USE_LIBSSH2" = "x1"; then
45560  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45561  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45562fi
45563if test "x$USE_LIBSSH" = "x1"; then
45564  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45565  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45566fi
45567if test "x$USE_WOLFSSH" = "x1"; then
45568  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45569fi
45570if test "x$CURL_DISABLE_RTSP" != "x1"; then
45571  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45572fi
45573if test "x$USE_LIBRTMP" = "x1"; then
45574  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45575fi
45576
45577SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45578
45579
45580
45581
45582squeeze CFLAGS
45583squeeze CPPFLAGS
45584squeeze DEFS
45585squeeze LDFLAGS
45586squeeze LIBS
45587
45588squeeze LIBCURL_LIBS
45589squeeze CURL_NETWORK_LIBS
45590squeeze CURL_NETWORK_AND_TIME_LIBS
45591
45592squeeze SUPPORT_FEATURES
45593squeeze SUPPORT_PROTOCOLS
45594
45595
45596
45597  xc_bad_var_libs=no
45598  for xc_word in $LIBS; do
45599    case "$xc_word" in
45600      -l* | --library=*)
45601        :
45602        ;;
45603      *)
45604        xc_bad_var_libs=yes
45605        ;;
45606    esac
45607  done
45608  if test $xc_bad_var_libs = yes; then
45609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45610printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45612printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45613  fi
45614
45615
45616  xc_bad_var_ldflags=no
45617  for xc_word in $LDFLAGS; do
45618    case "$xc_word" in
45619      -D*)
45620        xc_bad_var_ldflags=yes
45621        ;;
45622      -U*)
45623        xc_bad_var_ldflags=yes
45624        ;;
45625      -I*)
45626        xc_bad_var_ldflags=yes
45627        ;;
45628      -l* | --library=*)
45629        xc_bad_var_ldflags=yes
45630        ;;
45631    esac
45632  done
45633  if test $xc_bad_var_ldflags = yes; then
45634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45635printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45636    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45637    for xc_word in $LDFLAGS; do
45638      case "$xc_word" in
45639        -D*)
45640          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45641printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45642          ;;
45643        -U*)
45644          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45645printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45646          ;;
45647        -I*)
45648          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45649printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45650          ;;
45651        -l* | --library=*)
45652          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45653printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45654          ;;
45655      esac
45656    done
45657  fi
45658
45659
45660  xc_bad_var_cppflags=no
45661  for xc_word in $CPPFLAGS; do
45662    case "$xc_word" in
45663      -rpath*)
45664        xc_bad_var_cppflags=yes
45665        ;;
45666      -L* | --library-path=*)
45667        xc_bad_var_cppflags=yes
45668        ;;
45669      -l* | --library=*)
45670        xc_bad_var_cppflags=yes
45671        ;;
45672    esac
45673  done
45674  if test $xc_bad_var_cppflags = yes; then
45675    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45676printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45677    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45678    for xc_word in $CPPFLAGS; do
45679      case "$xc_word" in
45680        -rpath*)
45681          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45682printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45683          ;;
45684        -L* | --library-path=*)
45685          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45686printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45687          ;;
45688        -l* | --library=*)
45689          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45690printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45691          ;;
45692      esac
45693    done
45694  fi
45695
45696
45697  xc_bad_var_cflags=no
45698  for xc_word in $CFLAGS; do
45699    case "$xc_word" in
45700      -D*)
45701        xc_bad_var_cflags=yes
45702        ;;
45703      -U*)
45704        xc_bad_var_cflags=yes
45705        ;;
45706      -I*)
45707        xc_bad_var_cflags=yes
45708        ;;
45709      -rpath*)
45710        xc_bad_var_cflags=yes
45711        ;;
45712      -L* | --library-path=*)
45713        xc_bad_var_cflags=yes
45714        ;;
45715      -l* | --library=*)
45716        xc_bad_var_cflags=yes
45717        ;;
45718    esac
45719  done
45720  if test $xc_bad_var_cflags = yes; then
45721    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45722printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45723    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45724    for xc_word in $CFLAGS; do
45725      case "$xc_word" in
45726        -D*)
45727          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45728printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45729          ;;
45730        -U*)
45731          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45732printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45733          ;;
45734        -I*)
45735          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45736printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45737          ;;
45738        -rpath*)
45739          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45740printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45741          ;;
45742        -L* | --library-path=*)
45743          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45744printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45745          ;;
45746        -l* | --library=*)
45747          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45748printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45749          ;;
45750      esac
45751    done
45752  fi
45753
45754  if test $xc_bad_var_libs = yes ||
45755     test $xc_bad_var_cflags = yes ||
45756     test $xc_bad_var_ldflags = yes ||
45757     test $xc_bad_var_cppflags = yes; then
45758     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45759printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45760  fi
45761
45762
45763SSL_BACKENDS=${ssl_backends}
45764
45765
45766if test "x$want_curldebug_assumed" = "xyes" &&
45767  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45768  ac_configure_args="$ac_configure_args --enable-curldebug"
45769fi
45770
45771ac_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 lib/libcurl.plist tests/Makefile tests/config tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/http/config.ini tests/http/Makefile tests/http/clients/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
45772
45773cat >confcache <<\_ACEOF
45774# This file is a shell script that caches the results of configure
45775# tests run on this system so they can be shared between configure
45776# scripts and configure runs, see configure's option --config-cache.
45777# It is not useful on other systems.  If it contains results you don't
45778# want to keep, you may remove or edit it.
45779#
45780# config.status only pays attention to the cache file if you give it
45781# the --recheck option to rerun configure.
45782#
45783# `ac_cv_env_foo' variables (set or unset) will be overridden when
45784# loading this file, other *unset* `ac_cv_foo' will be assigned the
45785# following values.
45786
45787_ACEOF
45788
45789# The following way of writing the cache mishandles newlines in values,
45790# but we know of no workaround that is simple, portable, and efficient.
45791# So, we kill variables containing newlines.
45792# Ultrix sh set writes to stderr and can't be redirected directly,
45793# and sets the high bit in the cache file unless we assign to the vars.
45794(
45795  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45796    eval ac_val=\$$ac_var
45797    case $ac_val in #(
45798    *${as_nl}*)
45799      case $ac_var in #(
45800      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45801printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45802      esac
45803      case $ac_var in #(
45804      _ | IFS | as_nl) ;; #(
45805      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45806      *) { eval $ac_var=; unset $ac_var;} ;;
45807      esac ;;
45808    esac
45809  done
45810
45811  (set) 2>&1 |
45812    case $as_nl`(ac_space=' '; set) 2>&1` in #(
45813    *${as_nl}ac_space=\ *)
45814      # `set' does not quote correctly, so add quotes: double-quote
45815      # substitution turns \\\\ into \\, and sed turns \\ into \.
45816      sed -n \
45817	"s/'/'\\\\''/g;
45818	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45819      ;; #(
45820    *)
45821      # `set' quotes correctly as required by POSIX, so do not add quotes.
45822      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45823      ;;
45824    esac |
45825    sort
45826) |
45827  sed '
45828     /^ac_cv_env_/b end
45829     t clear
45830     :clear
45831     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
45832     t end
45833     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45834     :end' >>confcache
45835if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45836  if test -w "$cache_file"; then
45837    if test "x$cache_file" != "x/dev/null"; then
45838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45839printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
45840      if test ! -f "$cache_file" || test -h "$cache_file"; then
45841	cat confcache >"$cache_file"
45842      else
45843        case $cache_file in #(
45844        */* | ?:*)
45845	  mv -f confcache "$cache_file"$$ &&
45846	  mv -f "$cache_file"$$ "$cache_file" ;; #(
45847        *)
45848	  mv -f confcache "$cache_file" ;;
45849	esac
45850      fi
45851    fi
45852  else
45853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45854printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
45855  fi
45856fi
45857rm -f confcache
45858
45859test "x$prefix" = xNONE && prefix=$ac_default_prefix
45860# Let make expand exec_prefix.
45861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45862
45863DEFS=-DHAVE_CONFIG_H
45864
45865ac_libobjs=
45866ac_ltlibobjs=
45867U=
45868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45869  # 1. Remove the extension, and $U if already installed.
45870  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45871  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
45872  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45873  #    will be set to the directory where LIBOBJS objects are built.
45874  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45875  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45876done
45877LIBOBJS=$ac_libobjs
45878
45879LTLIBOBJS=$ac_ltlibobjs
45880
45881
45882if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45883  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45884Usually this means the macro was only invoked conditionally." "$LINENO" 5
45885fi
45886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45887printf %s "checking that generated files are newer than configure... " >&6; }
45888   if test -n "$am_sleep_pid"; then
45889     # Hide warnings about reused PIDs.
45890     wait $am_sleep_pid 2>/dev/null
45891   fi
45892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
45893printf "%s\n" "done" >&6; }
45894if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45895  as_fn_error $? "conditional \"AMDEP\" was never defined.
45896Usually this means the macro was only invoked conditionally." "$LINENO" 5
45897fi
45898if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45899  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45900Usually this means the macro was only invoked conditionally." "$LINENO" 5
45901fi
45902 if test -n "$EXEEXT"; then
45903  am__EXEEXT_TRUE=
45904  am__EXEEXT_FALSE='#'
45905else
45906  am__EXEEXT_TRUE='#'
45907  am__EXEEXT_FALSE=
45908fi
45909
45910if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45911  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45912Usually this means the macro was only invoked conditionally." "$LINENO" 5
45913fi
45914if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45915  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45916Usually this means the macro was only invoked conditionally." "$LINENO" 5
45917fi
45918if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45919  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45920Usually this means the macro was only invoked conditionally." "$LINENO" 5
45921fi
45922if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45923  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45924Usually this means the macro was only invoked conditionally." "$LINENO" 5
45925fi
45926if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45927  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45928Usually this means the macro was only invoked conditionally." "$LINENO" 5
45929fi
45930if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45931  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45932Usually this means the macro was only invoked conditionally." "$LINENO" 5
45933fi
45934if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45935  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45936Usually this means the macro was only invoked conditionally." "$LINENO" 5
45937fi
45938if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45939  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45940Usually this means the macro was only invoked conditionally." "$LINENO" 5
45941fi
45942if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
45943  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
45944Usually this means the macro was only invoked conditionally." "$LINENO" 5
45945fi
45946if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45947  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45948Usually this means the macro was only invoked conditionally." "$LINENO" 5
45949fi
45950if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45951  as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45952Usually this means the macro was only invoked conditionally." "$LINENO" 5
45953fi
45954if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45955  as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45956Usually this means the macro was only invoked conditionally." "$LINENO" 5
45957fi
45958if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
45959  as_fn_error $? "conditional \"USE_GSASL\" was never defined.
45960Usually this means the macro was only invoked conditionally." "$LINENO" 5
45961fi
45962if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45963  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45964Usually this means the macro was only invoked conditionally." "$LINENO" 5
45965fi
45966if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45967  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45968Usually this means the macro was only invoked conditionally." "$LINENO" 5
45969fi
45970if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45971  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45972Usually this means the macro was only invoked conditionally." "$LINENO" 5
45973fi
45974if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45975  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45976Usually this means the macro was only invoked conditionally." "$LINENO" 5
45977fi
45978if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45979  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45980Usually this means the macro was only invoked conditionally." "$LINENO" 5
45981fi
45982
45983: "${CONFIG_STATUS=./config.status}"
45984ac_write_fail=0
45985ac_clean_files_save=$ac_clean_files
45986ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45988printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
45989as_write_fail=0
45990cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45991#! $SHELL
45992# Generated by $as_me.
45993# Run this file to recreate the current configuration.
45994# Compiler output produced by configure, useful for debugging
45995# configure, is in config.log if it exists.
45996
45997debug=false
45998ac_cs_recheck=false
45999ac_cs_silent=false
46000
46001SHELL=\${CONFIG_SHELL-$SHELL}
46002export SHELL
46003_ASEOF
46004cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46005## -------------------- ##
46006## M4sh Initialization. ##
46007## -------------------- ##
46008
46009# Be more Bourne compatible
46010DUALCASE=1; export DUALCASE # for MKS sh
46011as_nop=:
46012if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46013then :
46014  emulate sh
46015  NULLCMD=:
46016  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46017  # is contrary to our usage.  Disable this feature.
46018  alias -g '${1+"$@"}'='"$@"'
46019  setopt NO_GLOB_SUBST
46020else $as_nop
46021  case `(set -o) 2>/dev/null` in #(
46022  *posix*) :
46023    set -o posix ;; #(
46024  *) :
46025     ;;
46026esac
46027fi
46028
46029
46030
46031# Reset variables that may have inherited troublesome values from
46032# the environment.
46033
46034# IFS needs to be set, to space, tab, and newline, in precisely that order.
46035# (If _AS_PATH_WALK were called with IFS unset, it would have the
46036# side effect of setting IFS to empty, thus disabling word splitting.)
46037# Quoting is to prevent editors from complaining about space-tab.
46038as_nl='
46039'
46040export as_nl
46041IFS=" ""	$as_nl"
46042
46043PS1='$ '
46044PS2='> '
46045PS4='+ '
46046
46047# Ensure predictable behavior from utilities with locale-dependent output.
46048LC_ALL=C
46049export LC_ALL
46050LANGUAGE=C
46051export LANGUAGE
46052
46053# We cannot yet rely on "unset" to work, but we need these variables
46054# to be unset--not just set to an empty or harmless value--now, to
46055# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46056# also avoids known problems related to "unset" and subshell syntax
46057# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46058for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46059do eval test \${$as_var+y} \
46060  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46061done
46062
46063# Ensure that fds 0, 1, and 2 are open.
46064if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46065if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46066if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46067
46068
46069
46070# Find who we are.  Look in the path if we contain no directory separator.
46071as_myself=
46072case $0 in #((
46073  *[\\/]* ) as_myself=$0 ;;
46074  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46075for as_dir in $PATH
46076do
46077  IFS=$as_save_IFS
46078  case $as_dir in #(((
46079    '') as_dir=./ ;;
46080    */) ;;
46081    *) as_dir=$as_dir/ ;;
46082  esac
46083    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46084  done
46085IFS=$as_save_IFS
46086
46087     ;;
46088esac
46089# We did not find ourselves, most probably we were run as `sh COMMAND'
46090# in which case we are not to be found in the path.
46091if test "x$as_myself" = x; then
46092  as_myself=$0
46093fi
46094if test ! -f "$as_myself"; then
46095  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46096  exit 1
46097fi
46098
46099
46100
46101# as_fn_error STATUS ERROR [LINENO LOG_FD]
46102# ----------------------------------------
46103# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46104# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46105# script with STATUS, using 1 if that was 0.
46106as_fn_error ()
46107{
46108  as_status=$1; test $as_status -eq 0 && as_status=1
46109  if test "$4"; then
46110    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46111    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46112  fi
46113  printf "%s\n" "$as_me: error: $2" >&2
46114  as_fn_exit $as_status
46115} # as_fn_error
46116
46117
46118
46119# as_fn_set_status STATUS
46120# -----------------------
46121# Set $? to STATUS, without forking.
46122as_fn_set_status ()
46123{
46124  return $1
46125} # as_fn_set_status
46126
46127# as_fn_exit STATUS
46128# -----------------
46129# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46130as_fn_exit ()
46131{
46132  set +e
46133  as_fn_set_status $1
46134  exit $1
46135} # as_fn_exit
46136
46137# as_fn_unset VAR
46138# ---------------
46139# Portably unset VAR.
46140as_fn_unset ()
46141{
46142  { eval $1=; unset $1;}
46143}
46144as_unset=as_fn_unset
46145
46146# as_fn_append VAR VALUE
46147# ----------------------
46148# Append the text in VALUE to the end of the definition contained in VAR. Take
46149# advantage of any shell optimizations that allow amortized linear growth over
46150# repeated appends, instead of the typical quadratic growth present in naive
46151# implementations.
46152if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46153then :
46154  eval 'as_fn_append ()
46155  {
46156    eval $1+=\$2
46157  }'
46158else $as_nop
46159  as_fn_append ()
46160  {
46161    eval $1=\$$1\$2
46162  }
46163fi # as_fn_append
46164
46165# as_fn_arith ARG...
46166# ------------------
46167# Perform arithmetic evaluation on the ARGs, and store the result in the
46168# global $as_val. Take advantage of shells that can avoid forks. The arguments
46169# must be portable across $(()) and expr.
46170if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46171then :
46172  eval 'as_fn_arith ()
46173  {
46174    as_val=$(( $* ))
46175  }'
46176else $as_nop
46177  as_fn_arith ()
46178  {
46179    as_val=`expr "$@" || test $? -eq 1`
46180  }
46181fi # as_fn_arith
46182
46183
46184if expr a : '\(a\)' >/dev/null 2>&1 &&
46185   test "X`expr 00001 : '.*\(...\)'`" = X001; then
46186  as_expr=expr
46187else
46188  as_expr=false
46189fi
46190
46191if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46192  as_basename=basename
46193else
46194  as_basename=false
46195fi
46196
46197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46198  as_dirname=dirname
46199else
46200  as_dirname=false
46201fi
46202
46203as_me=`$as_basename -- "$0" ||
46204$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46205	 X"$0" : 'X\(//\)$' \| \
46206	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46207printf "%s\n" X/"$0" |
46208    sed '/^.*\/\([^/][^/]*\)\/*$/{
46209	    s//\1/
46210	    q
46211	  }
46212	  /^X\/\(\/\/\)$/{
46213	    s//\1/
46214	    q
46215	  }
46216	  /^X\/\(\/\).*/{
46217	    s//\1/
46218	    q
46219	  }
46220	  s/.*/./; q'`
46221
46222# Avoid depending upon Character Ranges.
46223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46226as_cr_digits='0123456789'
46227as_cr_alnum=$as_cr_Letters$as_cr_digits
46228
46229
46230# Determine whether it's possible to make 'echo' print without a newline.
46231# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46232# for compatibility with existing Makefiles.
46233ECHO_C= ECHO_N= ECHO_T=
46234case `echo -n x` in #(((((
46235-n*)
46236  case `echo 'xy\c'` in
46237  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46238  xy)  ECHO_C='\c';;
46239  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46240       ECHO_T='	';;
46241  esac;;
46242*)
46243  ECHO_N='-n';;
46244esac
46245
46246# For backward compatibility with old third-party macros, we provide
46247# the shell variables $as_echo and $as_echo_n.  New code should use
46248# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46249as_echo='printf %s\n'
46250as_echo_n='printf %s'
46251
46252rm -f conf$$ conf$$.exe conf$$.file
46253if test -d conf$$.dir; then
46254  rm -f conf$$.dir/conf$$.file
46255else
46256  rm -f conf$$.dir
46257  mkdir conf$$.dir 2>/dev/null
46258fi
46259if (echo >conf$$.file) 2>/dev/null; then
46260  if ln -s conf$$.file conf$$ 2>/dev/null; then
46261    as_ln_s='ln -s'
46262    # ... but there are two gotchas:
46263    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46264    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46265    # In both cases, we have to default to `cp -pR'.
46266    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46267      as_ln_s='cp -pR'
46268  elif ln conf$$.file conf$$ 2>/dev/null; then
46269    as_ln_s=ln
46270  else
46271    as_ln_s='cp -pR'
46272  fi
46273else
46274  as_ln_s='cp -pR'
46275fi
46276rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46277rmdir conf$$.dir 2>/dev/null
46278
46279
46280# as_fn_mkdir_p
46281# -------------
46282# Create "$as_dir" as a directory, including parents if necessary.
46283as_fn_mkdir_p ()
46284{
46285
46286  case $as_dir in #(
46287  -*) as_dir=./$as_dir;;
46288  esac
46289  test -d "$as_dir" || eval $as_mkdir_p || {
46290    as_dirs=
46291    while :; do
46292      case $as_dir in #(
46293      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46294      *) as_qdir=$as_dir;;
46295      esac
46296      as_dirs="'$as_qdir' $as_dirs"
46297      as_dir=`$as_dirname -- "$as_dir" ||
46298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46299	 X"$as_dir" : 'X\(//\)[^/]' \| \
46300	 X"$as_dir" : 'X\(//\)$' \| \
46301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46302printf "%s\n" X"$as_dir" |
46303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46304	    s//\1/
46305	    q
46306	  }
46307	  /^X\(\/\/\)[^/].*/{
46308	    s//\1/
46309	    q
46310	  }
46311	  /^X\(\/\/\)$/{
46312	    s//\1/
46313	    q
46314	  }
46315	  /^X\(\/\).*/{
46316	    s//\1/
46317	    q
46318	  }
46319	  s/.*/./; q'`
46320      test -d "$as_dir" && break
46321    done
46322    test -z "$as_dirs" || eval "mkdir $as_dirs"
46323  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46324
46325
46326} # as_fn_mkdir_p
46327if mkdir -p . 2>/dev/null; then
46328  as_mkdir_p='mkdir -p "$as_dir"'
46329else
46330  test -d ./-p && rmdir ./-p
46331  as_mkdir_p=false
46332fi
46333
46334
46335# as_fn_executable_p FILE
46336# -----------------------
46337# Test if FILE is an executable regular file.
46338as_fn_executable_p ()
46339{
46340  test -f "$1" && test -x "$1"
46341} # as_fn_executable_p
46342as_test_x='test -x'
46343as_executable_p=as_fn_executable_p
46344
46345# Sed expression to map a string onto a valid CPP name.
46346as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46347
46348# Sed expression to map a string onto a valid variable name.
46349as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46350
46351
46352exec 6>&1
46353## ----------------------------------- ##
46354## Main body of $CONFIG_STATUS script. ##
46355## ----------------------------------- ##
46356_ASEOF
46357test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46358
46359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46360# Save the log message, to keep $0 and so on meaningful, and to
46361# report actual input values of CONFIG_FILES etc. instead of their
46362# values after options handling.
46363ac_log="
46364This file was extended by curl $as_me -, which was
46365generated by GNU Autoconf 2.71.  Invocation command line was
46366
46367  CONFIG_FILES    = $CONFIG_FILES
46368  CONFIG_HEADERS  = $CONFIG_HEADERS
46369  CONFIG_LINKS    = $CONFIG_LINKS
46370  CONFIG_COMMANDS = $CONFIG_COMMANDS
46371  $ $0 $@
46372
46373on `(hostname || uname -n) 2>/dev/null | sed 1q`
46374"
46375
46376_ACEOF
46377
46378case $ac_config_files in *"
46379"*) set x $ac_config_files; shift; ac_config_files=$*;;
46380esac
46381
46382case $ac_config_headers in *"
46383"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46384esac
46385
46386
46387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46388# Files that config.status was made for.
46389config_files="$ac_config_files"
46390config_headers="$ac_config_headers"
46391config_commands="$ac_config_commands"
46392
46393_ACEOF
46394
46395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46396ac_cs_usage="\
46397\`$as_me' instantiates files and other configuration actions
46398from templates according to the current configuration.  Unless the files
46399and actions are specified as TAGs, all are instantiated by default.
46400
46401Usage: $0 [OPTION]... [TAG]...
46402
46403  -h, --help       print this help, then exit
46404  -V, --version    print version number and configuration settings, then exit
46405      --config     print configuration, then exit
46406  -q, --quiet, --silent
46407                   do not print progress messages
46408  -d, --debug      don't remove temporary files
46409      --recheck    update $as_me by reconfiguring in the same conditions
46410      --file=FILE[:TEMPLATE]
46411                   instantiate the configuration file FILE
46412      --header=FILE[:TEMPLATE]
46413                   instantiate the configuration header FILE
46414
46415Configuration files:
46416$config_files
46417
46418Configuration headers:
46419$config_headers
46420
46421Configuration commands:
46422$config_commands
46423
46424Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46425
46426_ACEOF
46427ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46428ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46430ac_cs_config='$ac_cs_config_escaped'
46431ac_cs_version="\\
46432curl config.status -
46433configured by $0, generated by GNU Autoconf 2.71,
46434  with options \\"\$ac_cs_config\\"
46435
46436Copyright (C) 2021 Free Software Foundation, Inc.
46437This config.status script is free software; the Free Software Foundation
46438gives unlimited permission to copy, distribute and modify it."
46439
46440ac_pwd='$ac_pwd'
46441srcdir='$srcdir'
46442INSTALL='$INSTALL'
46443MKDIR_P='$MKDIR_P'
46444AWK='$AWK'
46445test -n "\$AWK" || AWK=awk
46446_ACEOF
46447
46448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46449# The default lists apply if the user does not specify any file.
46450ac_need_defaults=:
46451while test $# != 0
46452do
46453  case $1 in
46454  --*=?*)
46455    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46456    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46457    ac_shift=:
46458    ;;
46459  --*=)
46460    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46461    ac_optarg=
46462    ac_shift=:
46463    ;;
46464  *)
46465    ac_option=$1
46466    ac_optarg=$2
46467    ac_shift=shift
46468    ;;
46469  esac
46470
46471  case $ac_option in
46472  # Handling of the options.
46473  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46474    ac_cs_recheck=: ;;
46475  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46476    printf "%s\n" "$ac_cs_version"; exit ;;
46477  --config | --confi | --conf | --con | --co | --c )
46478    printf "%s\n" "$ac_cs_config"; exit ;;
46479  --debug | --debu | --deb | --de | --d | -d )
46480    debug=: ;;
46481  --file | --fil | --fi | --f )
46482    $ac_shift
46483    case $ac_optarg in
46484    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46485    '') as_fn_error $? "missing file argument" ;;
46486    esac
46487    as_fn_append CONFIG_FILES " '$ac_optarg'"
46488    ac_need_defaults=false;;
46489  --header | --heade | --head | --hea )
46490    $ac_shift
46491    case $ac_optarg in
46492    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46493    esac
46494    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46495    ac_need_defaults=false;;
46496  --he | --h)
46497    # Conflict between --help and --header
46498    as_fn_error $? "ambiguous option: \`$1'
46499Try \`$0 --help' for more information.";;
46500  --help | --hel | -h )
46501    printf "%s\n" "$ac_cs_usage"; exit ;;
46502  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46503  | -silent | --silent | --silen | --sile | --sil | --si | --s)
46504    ac_cs_silent=: ;;
46505
46506  # This is an error.
46507  -*) as_fn_error $? "unrecognized option: \`$1'
46508Try \`$0 --help' for more information." ;;
46509
46510  *) as_fn_append ac_config_targets " $1"
46511     ac_need_defaults=false ;;
46512
46513  esac
46514  shift
46515done
46516
46517ac_configure_extra_args=
46518
46519if $ac_cs_silent; then
46520  exec 6>/dev/null
46521  ac_configure_extra_args="$ac_configure_extra_args --silent"
46522fi
46523
46524_ACEOF
46525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46526if \$ac_cs_recheck; then
46527  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46528  shift
46529  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46530  CONFIG_SHELL='$SHELL'
46531  export CONFIG_SHELL
46532  exec "\$@"
46533fi
46534
46535_ACEOF
46536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46537exec 5>>config.log
46538{
46539  echo
46540  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46541## Running $as_me. ##
46542_ASBOX
46543  printf "%s\n" "$ac_log"
46544} >&5
46545
46546_ACEOF
46547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46548#
46549# INIT-COMMANDS
46550#
46551AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46552
46553
46554# The HP-UX ksh and POSIX shell print the target directory to stdout
46555# if CDPATH is set.
46556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46557
46558sed_quote_subst='$sed_quote_subst'
46559double_quote_subst='$double_quote_subst'
46560delay_variable_subst='$delay_variable_subst'
46561macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46562macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46563AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46564DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46565OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46566enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46567enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46568pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46569enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46570shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46571SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46572ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46573PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46574host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46575host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46576host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46577build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46578build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46579build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46580SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46581Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46582GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46583EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46584FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46585LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46586NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46587LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46588max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46589ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46590exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46591lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46592lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46593lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46594lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46595lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46596reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46597reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46598FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46599deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46600file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46601file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46602want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46603sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46604AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46605lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46606AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46607archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46608STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46609RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46610old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46611old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46612old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46613lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46614CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46615CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46616compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46617GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46618lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46619lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46620lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46621lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46622lt_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"`'
46623lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46624nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46625lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46626lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46627objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46628MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46629lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46630lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46631lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46632lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46633lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46634need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46635MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46636DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46637NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46638LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46639OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46640OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46641libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46642shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46643extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46644archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46645enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46646export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46647whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46648compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46649old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46650old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46651archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46652archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46653module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46654module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46655with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46656allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46657no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46658hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46659hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46660hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46661hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46662hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46663hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46664hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46665inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46666link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46667always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46668export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46669exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46670include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46671prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46672postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46673file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46674variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46675need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46676need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46677version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46678runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46679shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46680shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46681libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46682library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46683soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46684install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46685postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46686postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46687finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46688finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46689hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46690sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46691configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46692configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46693hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46694enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46695enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46696enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46697old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46698striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46699LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46700reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46701reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46702old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46703compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46704GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46705lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46706lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46707lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46708lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46709lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46710archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46711enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46712export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46713whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46714compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46715old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46716old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46717archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46718archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46719module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46720module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46721with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46722allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46723no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46724hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46725hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46726hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46727hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46728hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46729hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46730hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46731inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46732link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
46733always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
46734export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
46735exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46736include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46737prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46738postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46739file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
46740hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
46741
46742LTCC='$LTCC'
46743LTCFLAGS='$LTCFLAGS'
46744compiler='$compiler_DEFAULT'
46745
46746# A function that is used when there is no print builtin or printf.
46747func_fallback_echo ()
46748{
46749  eval 'cat <<_LTECHO_EOF
46750\$1
46751_LTECHO_EOF'
46752}
46753
46754# Quote evaled strings.
46755for var in AS \
46756DLLTOOL \
46757OBJDUMP \
46758SHELL \
46759ECHO \
46760PATH_SEPARATOR \
46761SED \
46762GREP \
46763EGREP \
46764FGREP \
46765LD \
46766NM \
46767LN_S \
46768lt_SP2NL \
46769lt_NL2SP \
46770reload_flag \
46771FILECMD \
46772deplibs_check_method \
46773file_magic_cmd \
46774file_magic_glob \
46775want_nocaseglob \
46776sharedlib_from_linklib_cmd \
46777AR \
46778archiver_list_spec \
46779STRIP \
46780RANLIB \
46781CC \
46782CFLAGS \
46783compiler \
46784lt_cv_sys_global_symbol_pipe \
46785lt_cv_sys_global_symbol_to_cdecl \
46786lt_cv_sys_global_symbol_to_import \
46787lt_cv_sys_global_symbol_to_c_name_address \
46788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46789lt_cv_nm_interface \
46790nm_file_list_spec \
46791lt_cv_truncate_bin \
46792lt_prog_compiler_no_builtin_flag \
46793lt_prog_compiler_pic \
46794lt_prog_compiler_wl \
46795lt_prog_compiler_static \
46796lt_cv_prog_compiler_c_o \
46797need_locks \
46798MANIFEST_TOOL \
46799DSYMUTIL \
46800NMEDIT \
46801LIPO \
46802OTOOL \
46803OTOOL64 \
46804shrext_cmds \
46805export_dynamic_flag_spec \
46806whole_archive_flag_spec \
46807compiler_needs_object \
46808with_gnu_ld \
46809allow_undefined_flag \
46810no_undefined_flag \
46811hardcode_libdir_flag_spec \
46812hardcode_libdir_separator \
46813exclude_expsyms \
46814include_expsyms \
46815file_list_spec \
46816variables_saved_for_relink \
46817libname_spec \
46818library_names_spec \
46819soname_spec \
46820install_override_mode \
46821finish_eval \
46822old_striplib \
46823striplib \
46824LD_RC \
46825reload_flag_RC \
46826compiler_RC \
46827lt_prog_compiler_no_builtin_flag_RC \
46828lt_prog_compiler_pic_RC \
46829lt_prog_compiler_wl_RC \
46830lt_prog_compiler_static_RC \
46831lt_cv_prog_compiler_c_o_RC \
46832export_dynamic_flag_spec_RC \
46833whole_archive_flag_spec_RC \
46834compiler_needs_object_RC \
46835with_gnu_ld_RC \
46836allow_undefined_flag_RC \
46837no_undefined_flag_RC \
46838hardcode_libdir_flag_spec_RC \
46839hardcode_libdir_separator_RC \
46840exclude_expsyms_RC \
46841include_expsyms_RC \
46842file_list_spec_RC; do
46843    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46844    *[\\\\\\\`\\"\\\$]*)
46845      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46846      ;;
46847    *)
46848      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46849      ;;
46850    esac
46851done
46852
46853# Double-quote double-evaled strings.
46854for var in reload_cmds \
46855old_postinstall_cmds \
46856old_postuninstall_cmds \
46857old_archive_cmds \
46858extract_expsyms_cmds \
46859old_archive_from_new_cmds \
46860old_archive_from_expsyms_cmds \
46861archive_cmds \
46862archive_expsym_cmds \
46863module_cmds \
46864module_expsym_cmds \
46865export_symbols_cmds \
46866prelink_cmds \
46867postlink_cmds \
46868postinstall_cmds \
46869postuninstall_cmds \
46870finish_cmds \
46871sys_lib_search_path_spec \
46872configure_time_dlsearch_path \
46873configure_time_lt_sys_library_path \
46874reload_cmds_RC \
46875old_archive_cmds_RC \
46876old_archive_from_new_cmds_RC \
46877old_archive_from_expsyms_cmds_RC \
46878archive_cmds_RC \
46879archive_expsym_cmds_RC \
46880module_cmds_RC \
46881module_expsym_cmds_RC \
46882export_symbols_cmds_RC \
46883prelink_cmds_RC \
46884postlink_cmds_RC; do
46885    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46886    *[\\\\\\\`\\"\\\$]*)
46887      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46888      ;;
46889    *)
46890      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46891      ;;
46892    esac
46893done
46894
46895ac_aux_dir='$ac_aux_dir'
46896
46897# See if we are running on zsh, and set the options that allow our
46898# commands through without removal of \ escapes INIT.
46899if test -n "\${ZSH_VERSION+set}"; then
46900   setopt NO_GLOB_SUBST
46901fi
46902
46903
46904    PACKAGE='$PACKAGE'
46905    VERSION='$VERSION'
46906    RM='$RM'
46907    ofile='$ofile'
46908
46909
46910
46911
46912
46913
46914_ACEOF
46915
46916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46917
46918# Handling of arguments.
46919for ac_config_target in $ac_config_targets
46920do
46921  case $ac_config_target in
46922    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46923    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46924    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46925    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46926    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46927    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46928    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46929    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46930    "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46931    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46932    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46933    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46934    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46935    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46936    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46937    "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
46938    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46939    "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
46940    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46941    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46942    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46943    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46944    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46945    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46946    "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
46947    "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
46948    "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;;
46949    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46950    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46951    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46952    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46953
46954  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46955  esac
46956done
46957
46958
46959# If the user did not use the arguments to specify the items to instantiate,
46960# then the envvar interface is used.  Set only those that are not.
46961# We use the long form for the default assignment because of an extremely
46962# bizarre bug on SunOS 4.1.3.
46963if $ac_need_defaults; then
46964  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
46965  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
46966  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
46967fi
46968
46969# Have a temporary directory for convenience.  Make it in the build tree
46970# simply because there is no reason against having it here, and in addition,
46971# creating and moving files from /tmp can sometimes cause problems.
46972# Hook for its removal unless debugging.
46973# Note that there is a small window in which the directory will not be cleaned:
46974# after its creation but before its name has been assigned to `$tmp'.
46975$debug ||
46976{
46977  tmp= ac_tmp=
46978  trap 'exit_status=$?
46979  : "${ac_tmp:=$tmp}"
46980  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46981' 0
46982  trap 'as_fn_exit 1' 1 2 13 15
46983}
46984# Create a (secure) tmp directory for tmp files.
46985
46986{
46987  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46988  test -d "$tmp"
46989}  ||
46990{
46991  tmp=./conf$$-$RANDOM
46992  (umask 077 && mkdir "$tmp")
46993} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46994ac_tmp=$tmp
46995
46996# Set up the scripts for CONFIG_FILES section.
46997# No need to generate them if there are no CONFIG_FILES.
46998# This happens for instance with `./config.status config.h'.
46999if test -n "$CONFIG_FILES"; then
47000
47001
47002ac_cr=`echo X | tr X '\015'`
47003# On cygwin, bash can eat \r inside `` if the user requested igncr.
47004# But we know of no other shell where ac_cr would be empty at this
47005# point, so we can use a bashism as a fallback.
47006if test "x$ac_cr" = x; then
47007  eval ac_cr=\$\'\\r\'
47008fi
47009ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47010if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47011  ac_cs_awk_cr='\\r'
47012else
47013  ac_cs_awk_cr=$ac_cr
47014fi
47015
47016echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47017_ACEOF
47018
47019
47020{
47021  echo "cat >conf$$subs.awk <<_ACEOF" &&
47022  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47023  echo "_ACEOF"
47024} >conf$$subs.sh ||
47025  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47026ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47027ac_delim='%!_!# '
47028for ac_last_try in false false false false false :; do
47029  . ./conf$$subs.sh ||
47030    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47031
47032  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47033  if test $ac_delim_n = $ac_delim_num; then
47034    break
47035  elif $ac_last_try; then
47036    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47037  else
47038    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47039  fi
47040done
47041rm -f conf$$subs.sh
47042
47043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47044cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47045_ACEOF
47046sed -n '
47047h
47048s/^/S["/; s/!.*/"]=/
47049p
47050g
47051s/^[^!]*!//
47052:repl
47053t repl
47054s/'"$ac_delim"'$//
47055t delim
47056:nl
47057h
47058s/\(.\{148\}\)..*/\1/
47059t more1
47060s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47061p
47062n
47063b repl
47064:more1
47065s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47066p
47067g
47068s/.\{148\}//
47069t nl
47070:delim
47071h
47072s/\(.\{148\}\)..*/\1/
47073t more2
47074s/["\\]/\\&/g; s/^/"/; s/$/"/
47075p
47076b
47077:more2
47078s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47079p
47080g
47081s/.\{148\}//
47082t delim
47083' <conf$$subs.awk | sed '
47084/^[^""]/{
47085  N
47086  s/\n//
47087}
47088' >>$CONFIG_STATUS || ac_write_fail=1
47089rm -f conf$$subs.awk
47090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47091_ACAWK
47092cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47093  for (key in S) S_is_set[key] = 1
47094  FS = ""
47095
47096}
47097{
47098  line = $ 0
47099  nfields = split(line, field, "@")
47100  substed = 0
47101  len = length(field[1])
47102  for (i = 2; i < nfields; i++) {
47103    key = field[i]
47104    keylen = length(key)
47105    if (S_is_set[key]) {
47106      value = S[key]
47107      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47108      len += length(value) + length(field[++i])
47109      substed = 1
47110    } else
47111      len += 1 + keylen
47112  }
47113
47114  print line
47115}
47116
47117_ACAWK
47118_ACEOF
47119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47120if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47121  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47122else
47123  cat
47124fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47125  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47126_ACEOF
47127
47128# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47129# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47130# trailing colons and then remove the whole line if VPATH becomes empty
47131# (actually we leave an empty line to preserve line numbers).
47132if test "x$srcdir" = x.; then
47133  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
47134h
47135s///
47136s/^/:/
47137s/[	 ]*$/:/
47138s/:\$(srcdir):/:/g
47139s/:\${srcdir}:/:/g
47140s/:@srcdir@:/:/g
47141s/^:*//
47142s/:*$//
47143x
47144s/\(=[	 ]*\).*/\1/
47145G
47146s/\n//
47147s/^[^=]*=[	 ]*$//
47148}'
47149fi
47150
47151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47152fi # test -n "$CONFIG_FILES"
47153
47154# Set up the scripts for CONFIG_HEADERS section.
47155# No need to generate them if there are no CONFIG_HEADERS.
47156# This happens for instance with `./config.status Makefile'.
47157if test -n "$CONFIG_HEADERS"; then
47158cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47159BEGIN {
47160_ACEOF
47161
47162# Transform confdefs.h into an awk script `defines.awk', embedded as
47163# here-document in config.status, that substitutes the proper values into
47164# config.h.in to produce config.h.
47165
47166# Create a delimiter string that does not exist in confdefs.h, to ease
47167# handling of long lines.
47168ac_delim='%!_!# '
47169for ac_last_try in false false :; do
47170  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47171  if test -z "$ac_tt"; then
47172    break
47173  elif $ac_last_try; then
47174    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47175  else
47176    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47177  fi
47178done
47179
47180# For the awk script, D is an array of macro values keyed by name,
47181# likewise P contains macro parameters if any.  Preserve backslash
47182# newline sequences.
47183
47184ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47185sed -n '
47186s/.\{148\}/&'"$ac_delim"'/g
47187t rset
47188:rset
47189s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
47190t def
47191d
47192:def
47193s/\\$//
47194t bsnl
47195s/["\\]/\\&/g
47196s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47197D["\1"]=" \3"/p
47198s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
47199d
47200:bsnl
47201s/["\\]/\\&/g
47202s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47203D["\1"]=" \3\\\\\\n"\\/p
47204t cont
47205s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47206t cont
47207d
47208:cont
47209n
47210s/.\{148\}/&'"$ac_delim"'/g
47211t clear
47212:clear
47213s/\\$//
47214t bsnlc
47215s/["\\]/\\&/g; s/^/"/; s/$/"/p
47216d
47217:bsnlc
47218s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47219b cont
47220' <confdefs.h | sed '
47221s/'"$ac_delim"'/"\\\
47222"/g' >>$CONFIG_STATUS || ac_write_fail=1
47223
47224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47225  for (key in D) D_is_set[key] = 1
47226  FS = ""
47227}
47228/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47229  line = \$ 0
47230  split(line, arg, " ")
47231  if (arg[1] == "#") {
47232    defundef = arg[2]
47233    mac1 = arg[3]
47234  } else {
47235    defundef = substr(arg[1], 2)
47236    mac1 = arg[2]
47237  }
47238  split(mac1, mac2, "(") #)
47239  macro = mac2[1]
47240  prefix = substr(line, 1, index(line, defundef) - 1)
47241  if (D_is_set[macro]) {
47242    # Preserve the white space surrounding the "#".
47243    print prefix "define", macro P[macro] D[macro]
47244    next
47245  } else {
47246    # Replace #undef with comments.  This is necessary, for example,
47247    # in the case of _POSIX_SOURCE, which is predefined and required
47248    # on some systems where configure will not decide to define it.
47249    if (defundef == "undef") {
47250      print "/*", prefix defundef, macro, "*/"
47251      next
47252    }
47253  }
47254}
47255{ print }
47256_ACAWK
47257_ACEOF
47258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47259  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47260fi # test -n "$CONFIG_HEADERS"
47261
47262
47263eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47264shift
47265for ac_tag
47266do
47267  case $ac_tag in
47268  :[FHLC]) ac_mode=$ac_tag; continue;;
47269  esac
47270  case $ac_mode$ac_tag in
47271  :[FHL]*:*);;
47272  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47273  :[FH]-) ac_tag=-:-;;
47274  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47275  esac
47276  ac_save_IFS=$IFS
47277  IFS=:
47278  set x $ac_tag
47279  IFS=$ac_save_IFS
47280  shift
47281  ac_file=$1
47282  shift
47283
47284  case $ac_mode in
47285  :L) ac_source=$1;;
47286  :[FH])
47287    ac_file_inputs=
47288    for ac_f
47289    do
47290      case $ac_f in
47291      -) ac_f="$ac_tmp/stdin";;
47292      *) # Look for the file first in the build tree, then in the source tree
47293	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
47294	 # because $ac_f cannot contain `:'.
47295	 test -f "$ac_f" ||
47296	   case $ac_f in
47297	   [\\/$]*) false;;
47298	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47299	   esac ||
47300	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47301      esac
47302      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47303      as_fn_append ac_file_inputs " '$ac_f'"
47304    done
47305
47306    # Let's still pretend it is `configure' which instantiates (i.e., don't
47307    # use $as_me), people would be surprised to read:
47308    #    /* config.h.  Generated by config.status.  */
47309    configure_input='Generated from '`
47310	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47311	`' by configure.'
47312    if test x"$ac_file" != x-; then
47313      configure_input="$ac_file.  $configure_input"
47314      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47315printf "%s\n" "$as_me: creating $ac_file" >&6;}
47316    fi
47317    # Neutralize special characters interpreted by sed in replacement strings.
47318    case $configure_input in #(
47319    *\&* | *\|* | *\\* )
47320       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47321       sed 's/[\\\\&|]/\\\\&/g'`;; #(
47322    *) ac_sed_conf_input=$configure_input;;
47323    esac
47324
47325    case $ac_tag in
47326    *:-:* | *:-) cat >"$ac_tmp/stdin" \
47327      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47328    esac
47329    ;;
47330  esac
47331
47332  ac_dir=`$as_dirname -- "$ac_file" ||
47333$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47334	 X"$ac_file" : 'X\(//\)[^/]' \| \
47335	 X"$ac_file" : 'X\(//\)$' \| \
47336	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47337printf "%s\n" X"$ac_file" |
47338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47339	    s//\1/
47340	    q
47341	  }
47342	  /^X\(\/\/\)[^/].*/{
47343	    s//\1/
47344	    q
47345	  }
47346	  /^X\(\/\/\)$/{
47347	    s//\1/
47348	    q
47349	  }
47350	  /^X\(\/\).*/{
47351	    s//\1/
47352	    q
47353	  }
47354	  s/.*/./; q'`
47355  as_dir="$ac_dir"; as_fn_mkdir_p
47356  ac_builddir=.
47357
47358case "$ac_dir" in
47359.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47360*)
47361  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47362  # A ".." for each directory in $ac_dir_suffix.
47363  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47364  case $ac_top_builddir_sub in
47365  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47366  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47367  esac ;;
47368esac
47369ac_abs_top_builddir=$ac_pwd
47370ac_abs_builddir=$ac_pwd$ac_dir_suffix
47371# for backward compatibility:
47372ac_top_builddir=$ac_top_build_prefix
47373
47374case $srcdir in
47375  .)  # We are building in place.
47376    ac_srcdir=.
47377    ac_top_srcdir=$ac_top_builddir_sub
47378    ac_abs_top_srcdir=$ac_pwd ;;
47379  [\\/]* | ?:[\\/]* )  # Absolute name.
47380    ac_srcdir=$srcdir$ac_dir_suffix;
47381    ac_top_srcdir=$srcdir
47382    ac_abs_top_srcdir=$srcdir ;;
47383  *) # Relative name.
47384    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47385    ac_top_srcdir=$ac_top_build_prefix$srcdir
47386    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47387esac
47388ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47389
47390
47391  case $ac_mode in
47392  :F)
47393  #
47394  # CONFIG_FILE
47395  #
47396
47397  case $INSTALL in
47398  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47399  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47400  esac
47401  ac_MKDIR_P=$MKDIR_P
47402  case $MKDIR_P in
47403  [\\/$]* | ?:[\\/]* ) ;;
47404  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47405  esac
47406_ACEOF
47407
47408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47409# If the template does not know about datarootdir, expand it.
47410# FIXME: This hack should be removed a few years after 2.60.
47411ac_datarootdir_hack=; ac_datarootdir_seen=
47412ac_sed_dataroot='
47413/datarootdir/ {
47414  p
47415  q
47416}
47417/@datadir@/p
47418/@docdir@/p
47419/@infodir@/p
47420/@localedir@/p
47421/@mandir@/p'
47422case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47423*datarootdir*) ac_datarootdir_seen=yes;;
47424*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47426printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47427_ACEOF
47428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47429  ac_datarootdir_hack='
47430  s&@datadir@&$datadir&g
47431  s&@docdir@&$docdir&g
47432  s&@infodir@&$infodir&g
47433  s&@localedir@&$localedir&g
47434  s&@mandir@&$mandir&g
47435  s&\\\${datarootdir}&$datarootdir&g' ;;
47436esac
47437_ACEOF
47438
47439# Neutralize VPATH when `$srcdir' = `.'.
47440# Shell code in configure.ac might set extrasub.
47441# FIXME: do we really want to maintain this feature?
47442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47443ac_sed_extra="$ac_vpsub
47444$extrasub
47445_ACEOF
47446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47447:t
47448/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47449s|@configure_input@|$ac_sed_conf_input|;t t
47450s&@top_builddir@&$ac_top_builddir_sub&;t t
47451s&@top_build_prefix@&$ac_top_build_prefix&;t t
47452s&@srcdir@&$ac_srcdir&;t t
47453s&@abs_srcdir@&$ac_abs_srcdir&;t t
47454s&@top_srcdir@&$ac_top_srcdir&;t t
47455s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47456s&@builddir@&$ac_builddir&;t t
47457s&@abs_builddir@&$ac_abs_builddir&;t t
47458s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47459s&@INSTALL@&$ac_INSTALL&;t t
47460s&@MKDIR_P@&$ac_MKDIR_P&;t t
47461$ac_datarootdir_hack
47462"
47463eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47464  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47465
47466test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47467  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47468  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
47469      "$ac_tmp/out"`; test -z "$ac_out"; } &&
47470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47471which seems to be undefined.  Please make sure it is defined" >&5
47472printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47473which seems to be undefined.  Please make sure it is defined" >&2;}
47474
47475  rm -f "$ac_tmp/stdin"
47476  case $ac_file in
47477  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47478  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47479  esac \
47480  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47481 ;;
47482  :H)
47483  #
47484  # CONFIG_HEADER
47485  #
47486  if test x"$ac_file" != x-; then
47487    {
47488      printf "%s\n" "/* $configure_input  */" >&1 \
47489      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47490    } >"$ac_tmp/config.h" \
47491      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47492    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47494printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47495    else
47496      rm -f "$ac_file"
47497      mv "$ac_tmp/config.h" "$ac_file" \
47498	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
47499    fi
47500  else
47501    printf "%s\n" "/* $configure_input  */" >&1 \
47502      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47503      || as_fn_error $? "could not create -" "$LINENO" 5
47504  fi
47505# Compute "$ac_file"'s index in $config_headers.
47506_am_arg="$ac_file"
47507_am_stamp_count=1
47508for _am_header in $config_headers :; do
47509  case $_am_header in
47510    $_am_arg | $_am_arg:* )
47511      break ;;
47512    * )
47513      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47514  esac
47515done
47516echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47517$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47518	 X"$_am_arg" : 'X\(//\)[^/]' \| \
47519	 X"$_am_arg" : 'X\(//\)$' \| \
47520	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47521printf "%s\n" X"$_am_arg" |
47522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47523	    s//\1/
47524	    q
47525	  }
47526	  /^X\(\/\/\)[^/].*/{
47527	    s//\1/
47528	    q
47529	  }
47530	  /^X\(\/\/\)$/{
47531	    s//\1/
47532	    q
47533	  }
47534	  /^X\(\/\).*/{
47535	    s//\1/
47536	    q
47537	  }
47538	  s/.*/./; q'`/stamp-h$_am_stamp_count
47539 ;;
47540
47541  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47542printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47543 ;;
47544  esac
47545
47546
47547  case $ac_file$ac_mode in
47548    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47549  # Older Autoconf quotes --file arguments for eval, but not when files
47550  # are listed without --file.  Let's play safe and only enable the eval
47551  # if we detect the quoting.
47552  # TODO: see whether this extra hack can be removed once we start
47553  # requiring Autoconf 2.70 or later.
47554  case $CONFIG_FILES in #(
47555  *\'*) :
47556    eval set x "$CONFIG_FILES" ;; #(
47557  *) :
47558    set x $CONFIG_FILES ;; #(
47559  *) :
47560     ;;
47561esac
47562  shift
47563  # Used to flag and report bootstrapping failures.
47564  am_rc=0
47565  for am_mf
47566  do
47567    # Strip MF so we end up with the name of the file.
47568    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47569    # Check whether this is an Automake generated Makefile which includes
47570    # dependency-tracking related rules and includes.
47571    # Grep'ing the whole file directly is not great: AIX grep has a line
47572    # limit of 2048, but all sed's we know have understand at least 4000.
47573    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47574      || continue
47575    am_dirpart=`$as_dirname -- "$am_mf" ||
47576$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47577	 X"$am_mf" : 'X\(//\)[^/]' \| \
47578	 X"$am_mf" : 'X\(//\)$' \| \
47579	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47580printf "%s\n" X"$am_mf" |
47581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47582	    s//\1/
47583	    q
47584	  }
47585	  /^X\(\/\/\)[^/].*/{
47586	    s//\1/
47587	    q
47588	  }
47589	  /^X\(\/\/\)$/{
47590	    s//\1/
47591	    q
47592	  }
47593	  /^X\(\/\).*/{
47594	    s//\1/
47595	    q
47596	  }
47597	  s/.*/./; q'`
47598    am_filepart=`$as_basename -- "$am_mf" ||
47599$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47600	 X"$am_mf" : 'X\(//\)$' \| \
47601	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47602printf "%s\n" X/"$am_mf" |
47603    sed '/^.*\/\([^/][^/]*\)\/*$/{
47604	    s//\1/
47605	    q
47606	  }
47607	  /^X\/\(\/\/\)$/{
47608	    s//\1/
47609	    q
47610	  }
47611	  /^X\/\(\/\).*/{
47612	    s//\1/
47613	    q
47614	  }
47615	  s/.*/./; q'`
47616    { echo "$as_me:$LINENO: cd "$am_dirpart" \
47617      && sed -e '/# am--include-marker/d' "$am_filepart" \
47618        | $MAKE -f - am--depfiles" >&5
47619   (cd "$am_dirpart" \
47620      && sed -e '/# am--include-marker/d' "$am_filepart" \
47621        | $MAKE -f - am--depfiles) >&5 2>&5
47622   ac_status=$?
47623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47624   (exit $ac_status); } || am_rc=$?
47625  done
47626  if test $am_rc -ne 0; then
47627    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47628printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47629as_fn_error $? "Something went wrong bootstrapping makefile fragments
47630    for automatic dependency tracking.  If GNU make was not used, consider
47631    re-running the configure script with MAKE=\"gmake\" (or whatever is
47632    necessary).  You can also try re-running configure with the
47633    '--disable-dependency-tracking' option to at least be able to build
47634    the package (albeit without support for automatic dependency tracking).
47635See \`config.log' for more details" "$LINENO" 5; }
47636  fi
47637  { am_dirpart=; unset am_dirpart;}
47638  { am_filepart=; unset am_filepart;}
47639  { am_mf=; unset am_mf;}
47640  { am_rc=; unset am_rc;}
47641  rm -f conftest-deps.mk
47642}
47643 ;;
47644    "libtool":C)
47645
47646    # See if we are running on zsh, and set the options that allow our
47647    # commands through without removal of \ escapes.
47648    if test -n "${ZSH_VERSION+set}"; then
47649      setopt NO_GLOB_SUBST
47650    fi
47651
47652    cfgfile=${ofile}T
47653    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47654    $RM "$cfgfile"
47655
47656    cat <<_LT_EOF >> "$cfgfile"
47657#! $SHELL
47658# Generated automatically by $as_me ($PACKAGE) $VERSION
47659# NOTE: Changes made to this file will be lost: look at ltmain.sh.
47660
47661# Provide generalized library-building support services.
47662# Written by Gordon Matzigkeit, 1996
47663
47664# Copyright (C) 2014 Free Software Foundation, Inc.
47665# This is free software; see the source for copying conditions.  There is NO
47666# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47667
47668# GNU Libtool is free software; you can redistribute it and/or modify
47669# it under the terms of the GNU General Public License as published by
47670# the Free Software Foundation; either version 2 of of the License, or
47671# (at your option) any later version.
47672#
47673# As a special exception to the GNU General Public License, if you
47674# distribute this file as part of a program or library that is built
47675# using GNU Libtool, you may include this file under the  same
47676# distribution terms that you use for the rest of that program.
47677#
47678# GNU Libtool is distributed in the hope that it will be useful, but
47679# WITHOUT ANY WARRANTY; without even the implied warranty of
47680# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47681# GNU General Public License for more details.
47682#
47683# You should have received a copy of the GNU General Public License
47684# along with this program.  If not, see <http://www.gnu.org/licenses/>.
47685
47686
47687# The names of the tagged configurations supported by this script.
47688available_tags='RC '
47689
47690# Configured defaults for sys_lib_dlsearch_path munging.
47691: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47692
47693# ### BEGIN LIBTOOL CONFIG
47694
47695# Which release of libtool.m4 was used?
47696macro_version=$macro_version
47697macro_revision=$macro_revision
47698
47699# Assembler program.
47700AS=$lt_AS
47701
47702# DLL creation program.
47703DLLTOOL=$lt_DLLTOOL
47704
47705# Object dumper program.
47706OBJDUMP=$lt_OBJDUMP
47707
47708# Whether or not to build shared libraries.
47709build_libtool_libs=$enable_shared
47710
47711# Whether or not to build static libraries.
47712build_old_libs=$enable_static
47713
47714# What type of objects to build.
47715pic_mode=$pic_mode
47716
47717# Whether or not to optimize for fast installation.
47718fast_install=$enable_fast_install
47719
47720# Shared archive member basename,for filename based shared library versioning on AIX.
47721shared_archive_member_spec=$shared_archive_member_spec
47722
47723# Shell to use when invoking shell scripts.
47724SHELL=$lt_SHELL
47725
47726# An echo program that protects backslashes.
47727ECHO=$lt_ECHO
47728
47729# The PATH separator for the build system.
47730PATH_SEPARATOR=$lt_PATH_SEPARATOR
47731
47732# The host system.
47733host_alias=$host_alias
47734host=$host
47735host_os=$host_os
47736
47737# The build system.
47738build_alias=$build_alias
47739build=$build
47740build_os=$build_os
47741
47742# A sed program that does not truncate output.
47743SED=$lt_SED
47744
47745# Sed that helps us avoid accidentally triggering echo(1) options like -n.
47746Xsed="\$SED -e 1s/^X//"
47747
47748# A grep program that handles long lines.
47749GREP=$lt_GREP
47750
47751# An ERE matcher.
47752EGREP=$lt_EGREP
47753
47754# A literal string matcher.
47755FGREP=$lt_FGREP
47756
47757# A BSD- or MS-compatible name lister.
47758NM=$lt_NM
47759
47760# Whether we need soft or hard links.
47761LN_S=$lt_LN_S
47762
47763# What is the maximum length of a command?
47764max_cmd_len=$max_cmd_len
47765
47766# Object file suffix (normally "o").
47767objext=$ac_objext
47768
47769# Executable file suffix (normally "").
47770exeext=$exeext
47771
47772# whether the shell understands "unset".
47773lt_unset=$lt_unset
47774
47775# turn spaces into newlines.
47776SP2NL=$lt_lt_SP2NL
47777
47778# turn newlines into spaces.
47779NL2SP=$lt_lt_NL2SP
47780
47781# convert \$build file names to \$host format.
47782to_host_file_cmd=$lt_cv_to_host_file_cmd
47783
47784# convert \$build files to toolchain format.
47785to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47786
47787# A file(cmd) program that detects file types.
47788FILECMD=$lt_FILECMD
47789
47790# Method to check whether dependent libraries are shared objects.
47791deplibs_check_method=$lt_deplibs_check_method
47792
47793# Command to use when deplibs_check_method = "file_magic".
47794file_magic_cmd=$lt_file_magic_cmd
47795
47796# How to find potential files when deplibs_check_method = "file_magic".
47797file_magic_glob=$lt_file_magic_glob
47798
47799# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47800want_nocaseglob=$lt_want_nocaseglob
47801
47802# Command to associate shared and link libraries.
47803sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47804
47805# The archiver.
47806AR=$lt_AR
47807
47808# Flags to create an archive (by configure).
47809lt_ar_flags=$lt_ar_flags
47810
47811# Flags to create an archive.
47812AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
47813
47814# How to feed a file listing to the archiver.
47815archiver_list_spec=$lt_archiver_list_spec
47816
47817# A symbol stripping program.
47818STRIP=$lt_STRIP
47819
47820# Commands used to install an old-style archive.
47821RANLIB=$lt_RANLIB
47822old_postinstall_cmds=$lt_old_postinstall_cmds
47823old_postuninstall_cmds=$lt_old_postuninstall_cmds
47824
47825# Whether to use a lock for old archive extraction.
47826lock_old_archive_extraction=$lock_old_archive_extraction
47827
47828# A C compiler.
47829LTCC=$lt_CC
47830
47831# LTCC compiler flags.
47832LTCFLAGS=$lt_CFLAGS
47833
47834# Take the output of nm and produce a listing of raw symbols and C names.
47835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47836
47837# Transform the output of nm in a proper C declaration.
47838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47839
47840# Transform the output of nm into a list of symbols to manually relocate.
47841global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47842
47843# Transform the output of nm in a C name address pair.
47844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47845
47846# Transform the output of nm in a C name address pair when lib prefix is needed.
47847global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47848
47849# The name lister interface.
47850nm_interface=$lt_lt_cv_nm_interface
47851
47852# Specify filename containing input files for \$NM.
47853nm_file_list_spec=$lt_nm_file_list_spec
47854
47855# The root where to search for dependent libraries,and where our libraries should be installed.
47856lt_sysroot=$lt_sysroot
47857
47858# Command to truncate a binary pipe.
47859lt_truncate_bin=$lt_lt_cv_truncate_bin
47860
47861# The name of the directory that contains temporary libtool files.
47862objdir=$objdir
47863
47864# Used to examine libraries when file_magic_cmd begins with "file".
47865MAGIC_CMD=$MAGIC_CMD
47866
47867# Must we lock files when doing compilation?
47868need_locks=$lt_need_locks
47869
47870# Manifest tool.
47871MANIFEST_TOOL=$lt_MANIFEST_TOOL
47872
47873# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47874DSYMUTIL=$lt_DSYMUTIL
47875
47876# Tool to change global to local symbols on Mac OS X.
47877NMEDIT=$lt_NMEDIT
47878
47879# Tool to manipulate fat objects and archives on Mac OS X.
47880LIPO=$lt_LIPO
47881
47882# ldd/readelf like tool for Mach-O binaries on Mac OS X.
47883OTOOL=$lt_OTOOL
47884
47885# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47886OTOOL64=$lt_OTOOL64
47887
47888# Old archive suffix (normally "a").
47889libext=$libext
47890
47891# Shared library suffix (normally ".so").
47892shrext_cmds=$lt_shrext_cmds
47893
47894# The commands to extract the exported symbol list from a shared archive.
47895extract_expsyms_cmds=$lt_extract_expsyms_cmds
47896
47897# Variables whose values should be saved in libtool wrapper scripts and
47898# restored at link time.
47899variables_saved_for_relink=$lt_variables_saved_for_relink
47900
47901# Do we need the "lib" prefix for modules?
47902need_lib_prefix=$need_lib_prefix
47903
47904# Do we need a version for libraries?
47905need_version=$need_version
47906
47907# Library versioning type.
47908version_type=$version_type
47909
47910# Shared library runtime path variable.
47911runpath_var=$runpath_var
47912
47913# Shared library path variable.
47914shlibpath_var=$shlibpath_var
47915
47916# Is shlibpath searched before the hard-coded library search path?
47917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47918
47919# Format of library name prefix.
47920libname_spec=$lt_libname_spec
47921
47922# List of archive names.  First name is the real one, the rest are links.
47923# The last name is the one that the linker finds with -lNAME
47924library_names_spec=$lt_library_names_spec
47925
47926# The coded name of the library, if different from the real name.
47927soname_spec=$lt_soname_spec
47928
47929# Permission mode override for installation of shared libraries.
47930install_override_mode=$lt_install_override_mode
47931
47932# Command to use after installation of a shared archive.
47933postinstall_cmds=$lt_postinstall_cmds
47934
47935# Command to use after uninstallation of a shared archive.
47936postuninstall_cmds=$lt_postuninstall_cmds
47937
47938# Commands used to finish a libtool library installation in a directory.
47939finish_cmds=$lt_finish_cmds
47940
47941# As "finish_cmds", except a single script fragment to be evaled but
47942# not shown.
47943finish_eval=$lt_finish_eval
47944
47945# Whether we should hardcode library paths into libraries.
47946hardcode_into_libs=$hardcode_into_libs
47947
47948# Compile-time system search path for libraries.
47949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47950
47951# Detected run-time system search path for libraries.
47952sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47953
47954# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47955configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47956
47957# Whether dlopen is supported.
47958dlopen_support=$enable_dlopen
47959
47960# Whether dlopen of programs is supported.
47961dlopen_self=$enable_dlopen_self
47962
47963# Whether dlopen of statically linked programs is supported.
47964dlopen_self_static=$enable_dlopen_self_static
47965
47966# Commands to strip libraries.
47967old_striplib=$lt_old_striplib
47968striplib=$lt_striplib
47969
47970
47971# The linker used to build libraries.
47972LD=$lt_LD
47973
47974# How to create reloadable object files.
47975reload_flag=$lt_reload_flag
47976reload_cmds=$lt_reload_cmds
47977
47978# Commands used to build an old-style archive.
47979old_archive_cmds=$lt_old_archive_cmds
47980
47981# A language specific compiler.
47982CC=$lt_compiler
47983
47984# Is the compiler the GNU compiler?
47985with_gcc=$GCC
47986
47987# Compiler flag to turn off builtin functions.
47988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47989
47990# Additional compiler flags for building library objects.
47991pic_flag=$lt_lt_prog_compiler_pic
47992
47993# How to pass a linker flag through the compiler.
47994wl=$lt_lt_prog_compiler_wl
47995
47996# Compiler flag to prevent dynamic linking.
47997link_static_flag=$lt_lt_prog_compiler_static
47998
47999# Does compiler simultaneously support -c and -o options?
48000compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48001
48002# Whether or not to add -lc for building shared libraries.
48003build_libtool_need_lc=$archive_cmds_need_lc
48004
48005# Whether or not to disallow shared libs when runtime libs are static.
48006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48007
48008# Compiler flag to allow reflexive dlopens.
48009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48010
48011# Compiler flag to generate shared objects directly from archives.
48012whole_archive_flag_spec=$lt_whole_archive_flag_spec
48013
48014# Whether the compiler copes with passing no objects directly.
48015compiler_needs_object=$lt_compiler_needs_object
48016
48017# Create an old-style archive from a shared archive.
48018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48019
48020# Create a temporary old-style archive to link instead of a shared archive.
48021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48022
48023# Commands used to build a shared archive.
48024archive_cmds=$lt_archive_cmds
48025archive_expsym_cmds=$lt_archive_expsym_cmds
48026
48027# Commands used to build a loadable module if different from building
48028# a shared archive.
48029module_cmds=$lt_module_cmds
48030module_expsym_cmds=$lt_module_expsym_cmds
48031
48032# Whether we are building with GNU ld or not.
48033with_gnu_ld=$lt_with_gnu_ld
48034
48035# Flag that allows shared libraries with undefined symbols to be built.
48036allow_undefined_flag=$lt_allow_undefined_flag
48037
48038# Flag that enforces no undefined symbols.
48039no_undefined_flag=$lt_no_undefined_flag
48040
48041# Flag to hardcode \$libdir into a binary during linking.
48042# This must work even if \$libdir does not exist
48043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48044
48045# Whether we need a single "-rpath" flag with a separated argument.
48046hardcode_libdir_separator=$lt_hardcode_libdir_separator
48047
48048# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48049# DIR into the resulting binary.
48050hardcode_direct=$hardcode_direct
48051
48052# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48053# DIR into the resulting binary and the resulting library dependency is
48054# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48055# library is relocated.
48056hardcode_direct_absolute=$hardcode_direct_absolute
48057
48058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48059# into the resulting binary.
48060hardcode_minus_L=$hardcode_minus_L
48061
48062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48063# into the resulting binary.
48064hardcode_shlibpath_var=$hardcode_shlibpath_var
48065
48066# Set to "yes" if building a shared library automatically hardcodes DIR
48067# into the library and all subsequent libraries and executables linked
48068# against it.
48069hardcode_automatic=$hardcode_automatic
48070
48071# Set to yes if linker adds runtime paths of dependent libraries
48072# to runtime path list.
48073inherit_rpath=$inherit_rpath
48074
48075# Whether libtool must link a program against all its dependency libraries.
48076link_all_deplibs=$link_all_deplibs
48077
48078# Set to "yes" if exported symbols are required.
48079always_export_symbols=$always_export_symbols
48080
48081# The commands to list exported symbols.
48082export_symbols_cmds=$lt_export_symbols_cmds
48083
48084# Symbols that should not be listed in the preloaded symbols.
48085exclude_expsyms=$lt_exclude_expsyms
48086
48087# Symbols that must always be exported.
48088include_expsyms=$lt_include_expsyms
48089
48090# Commands necessary for linking programs (against libraries) with templates.
48091prelink_cmds=$lt_prelink_cmds
48092
48093# Commands necessary for finishing linking programs.
48094postlink_cmds=$lt_postlink_cmds
48095
48096# Specify filename containing input files.
48097file_list_spec=$lt_file_list_spec
48098
48099# How to hardcode a shared library path into an executable.
48100hardcode_action=$hardcode_action
48101
48102# ### END LIBTOOL CONFIG
48103
48104_LT_EOF
48105
48106    cat <<'_LT_EOF' >> "$cfgfile"
48107
48108# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48109
48110# func_munge_path_list VARIABLE PATH
48111# -----------------------------------
48112# VARIABLE is name of variable containing _space_ separated list of
48113# directories to be munged by the contents of PATH, which is string
48114# having a format:
48115# "DIR[:DIR]:"
48116#       string "DIR[ DIR]" will be prepended to VARIABLE
48117# ":DIR[:DIR]"
48118#       string "DIR[ DIR]" will be appended to VARIABLE
48119# "DIRP[:DIRP]::[DIRA:]DIRA"
48120#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48121#       "DIRA[ DIRA]" will be appended to VARIABLE
48122# "DIR[:DIR]"
48123#       VARIABLE will be replaced by "DIR[ DIR]"
48124func_munge_path_list ()
48125{
48126    case x$2 in
48127    x)
48128        ;;
48129    *:)
48130        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48131        ;;
48132    x:*)
48133        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48134        ;;
48135    *::*)
48136        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48137        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48138        ;;
48139    *)
48140        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48141        ;;
48142    esac
48143}
48144
48145
48146# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48147func_cc_basename ()
48148{
48149    for cc_temp in $*""; do
48150      case $cc_temp in
48151        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48152        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48153        \-*) ;;
48154        *) break;;
48155      esac
48156    done
48157    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48158}
48159
48160
48161# ### END FUNCTIONS SHARED WITH CONFIGURE
48162
48163_LT_EOF
48164
48165  case $host_os in
48166  aix3*)
48167    cat <<\_LT_EOF >> "$cfgfile"
48168# AIX sometimes has problems with the GCC collect2 program.  For some
48169# reason, if we set the COLLECT_NAMES environment variable, the problems
48170# vanish in a puff of smoke.
48171if test set != "${COLLECT_NAMES+set}"; then
48172  COLLECT_NAMES=
48173  export COLLECT_NAMES
48174fi
48175_LT_EOF
48176    ;;
48177  esac
48178
48179
48180
48181ltmain=$ac_aux_dir/ltmain.sh
48182
48183
48184  # We use sed instead of cat because bash on DJGPP gets confused if
48185  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48186  # text mode, it properly converts lines to CR/LF.  This bash problem
48187  # is reportedly fixed, but why not run on old versions too?
48188  $SED '$q' "$ltmain" >> "$cfgfile" \
48189     || (rm -f "$cfgfile"; exit 1)
48190
48191   mv -f "$cfgfile" "$ofile" ||
48192    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48193  chmod +x "$ofile"
48194
48195
48196    cat <<_LT_EOF >> "$ofile"
48197
48198# ### BEGIN LIBTOOL TAG CONFIG: RC
48199
48200# The linker used to build libraries.
48201LD=$lt_LD_RC
48202
48203# How to create reloadable object files.
48204reload_flag=$lt_reload_flag_RC
48205reload_cmds=$lt_reload_cmds_RC
48206
48207# Commands used to build an old-style archive.
48208old_archive_cmds=$lt_old_archive_cmds_RC
48209
48210# A language specific compiler.
48211CC=$lt_compiler_RC
48212
48213# Is the compiler the GNU compiler?
48214with_gcc=$GCC_RC
48215
48216# Compiler flag to turn off builtin functions.
48217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48218
48219# Additional compiler flags for building library objects.
48220pic_flag=$lt_lt_prog_compiler_pic_RC
48221
48222# How to pass a linker flag through the compiler.
48223wl=$lt_lt_prog_compiler_wl_RC
48224
48225# Compiler flag to prevent dynamic linking.
48226link_static_flag=$lt_lt_prog_compiler_static_RC
48227
48228# Does compiler simultaneously support -c and -o options?
48229compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48230
48231# Whether or not to add -lc for building shared libraries.
48232build_libtool_need_lc=$archive_cmds_need_lc_RC
48233
48234# Whether or not to disallow shared libs when runtime libs are static.
48235allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48236
48237# Compiler flag to allow reflexive dlopens.
48238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48239
48240# Compiler flag to generate shared objects directly from archives.
48241whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48242
48243# Whether the compiler copes with passing no objects directly.
48244compiler_needs_object=$lt_compiler_needs_object_RC
48245
48246# Create an old-style archive from a shared archive.
48247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48248
48249# Create a temporary old-style archive to link instead of a shared archive.
48250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48251
48252# Commands used to build a shared archive.
48253archive_cmds=$lt_archive_cmds_RC
48254archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48255
48256# Commands used to build a loadable module if different from building
48257# a shared archive.
48258module_cmds=$lt_module_cmds_RC
48259module_expsym_cmds=$lt_module_expsym_cmds_RC
48260
48261# Whether we are building with GNU ld or not.
48262with_gnu_ld=$lt_with_gnu_ld_RC
48263
48264# Flag that allows shared libraries with undefined symbols to be built.
48265allow_undefined_flag=$lt_allow_undefined_flag_RC
48266
48267# Flag that enforces no undefined symbols.
48268no_undefined_flag=$lt_no_undefined_flag_RC
48269
48270# Flag to hardcode \$libdir into a binary during linking.
48271# This must work even if \$libdir does not exist
48272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48273
48274# Whether we need a single "-rpath" flag with a separated argument.
48275hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48276
48277# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48278# DIR into the resulting binary.
48279hardcode_direct=$hardcode_direct_RC
48280
48281# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48282# DIR into the resulting binary and the resulting library dependency is
48283# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48284# library is relocated.
48285hardcode_direct_absolute=$hardcode_direct_absolute_RC
48286
48287# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48288# into the resulting binary.
48289hardcode_minus_L=$hardcode_minus_L_RC
48290
48291# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48292# into the resulting binary.
48293hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48294
48295# Set to "yes" if building a shared library automatically hardcodes DIR
48296# into the library and all subsequent libraries and executables linked
48297# against it.
48298hardcode_automatic=$hardcode_automatic_RC
48299
48300# Set to yes if linker adds runtime paths of dependent libraries
48301# to runtime path list.
48302inherit_rpath=$inherit_rpath_RC
48303
48304# Whether libtool must link a program against all its dependency libraries.
48305link_all_deplibs=$link_all_deplibs_RC
48306
48307# Set to "yes" if exported symbols are required.
48308always_export_symbols=$always_export_symbols_RC
48309
48310# The commands to list exported symbols.
48311export_symbols_cmds=$lt_export_symbols_cmds_RC
48312
48313# Symbols that should not be listed in the preloaded symbols.
48314exclude_expsyms=$lt_exclude_expsyms_RC
48315
48316# Symbols that must always be exported.
48317include_expsyms=$lt_include_expsyms_RC
48318
48319# Commands necessary for linking programs (against libraries) with templates.
48320prelink_cmds=$lt_prelink_cmds_RC
48321
48322# Commands necessary for finishing linking programs.
48323postlink_cmds=$lt_postlink_cmds_RC
48324
48325# Specify filename containing input files.
48326file_list_spec=$lt_file_list_spec_RC
48327
48328# How to hardcode a shared library path into an executable.
48329hardcode_action=$hardcode_action_RC
48330
48331# ### END LIBTOOL TAG CONFIG: RC
48332_LT_EOF
48333
48334 ;;
48335
48336  esac
48337done # for ac_tag
48338
48339
48340as_fn_exit 0
48341_ACEOF
48342ac_clean_files=$ac_clean_files_save
48343
48344test $ac_write_fail = 0 ||
48345  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48346
48347
48348# configure is writing to config.log, and then calls config.status.
48349# config.status does its own redirection, appending to config.log.
48350# Unfortunately, on DOS this fails, as config.log is still kept open
48351# by configure, so config.status won't be able to write to it; its
48352# output is simply discarded.  So we exec the FD to /dev/null,
48353# effectively closing config.log, so it can be properly (re)opened and
48354# appended to by config.status.  When coming back to configure, we
48355# need to make the FD available again.
48356if test "$no_create" != yes; then
48357  ac_cs_success=:
48358  ac_config_status_args=
48359  test "$silent" = yes &&
48360    ac_config_status_args="$ac_config_status_args --quiet"
48361  exec 5>/dev/null
48362  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48363  exec 5>>config.log
48364  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48365  # would make configure fail if this is the last instruction.
48366  $ac_cs_success || as_fn_exit 1
48367fi
48368if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48370printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48371fi
48372
48373
48374
48375    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48376  if test -z "$tmp_cpp"; then
48377    tmp_cpp='cpp'
48378  fi
48379  cat >./tests/configurehelp.pm <<_EOF
48380# This is a generated file.  Do not edit.
48381
48382package configurehelp;
48383
48384use strict;
48385use warnings;
48386use Exporter;
48387
48388use vars qw(
48389    @ISA
48390    @EXPORT_OK
48391    \$Cpreprocessor
48392    );
48393
48394@ISA = qw(Exporter);
48395
48396@EXPORT_OK = qw(
48397    \$Cpreprocessor
48398    );
48399
48400\$Cpreprocessor = '$tmp_cpp';
48401
484021;
48403_EOF
48404
48405
48406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48407
48408  Host setup:       ${host}
48409  Install prefix:   ${prefix}
48410  Compiler:         ${CC}
48411   CFLAGS:          ${CFLAGS}
48412   CPPFLAGS:        ${CPPFLAGS}
48413   LDFLAGS:         ${LDFLAGS}
48414   LIBS:            ${LIBS}
48415
48416  curl version:     ${CURLVERSION}
48417  SSL:              ${curl_ssl_msg}
48418  SSH:              ${curl_ssh_msg}
48419  zlib:             ${curl_zlib_msg}
48420  brotli:           ${curl_brotli_msg}
48421  zstd:             ${curl_zstd_msg}
48422  GSS-API:          ${curl_gss_msg}
48423  GSASL:            ${curl_gsasl_msg}
48424  TLS-SRP:          ${curl_tls_srp_msg}
48425  resolver:         ${curl_res_msg}
48426  IPv6:             ${curl_ipv6_msg}
48427  Unix sockets:     ${curl_unix_sockets_msg}
48428  IDN:              ${curl_idn_msg}
48429  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48430  Built-in manual:  ${curl_manual_msg}
48431  --libcurl option: ${curl_libcurl_msg}
48432  Verbose errors:   ${curl_verbose_msg}
48433  Code coverage:    ${curl_coverage_msg}
48434  SSPI:             ${curl_sspi_msg}
48435  ca cert bundle:   ${ca}${ca_warning}
48436  ca cert path:     ${capath}${capath_warning}
48437  ca fallback:      ${with_ca_fallback}
48438  LDAP:             ${curl_ldap_msg}
48439  LDAPS:            ${curl_ldaps_msg}
48440  RTSP:             ${curl_rtsp_msg}
48441  RTMP:             ${curl_rtmp_msg}
48442  PSL:              ${curl_psl_msg}
48443  Alt-svc:          ${curl_altsvc_msg}
48444  Headers API:      ${curl_headers_msg}
48445  HSTS:             ${curl_hsts_msg}
48446  HTTP1:            ${curl_h1_msg}
48447  HTTP2:            ${curl_h2_msg}
48448  HTTP3:            ${curl_h3_msg}
48449  ECH:              ${curl_ech_msg}
48450  WebSockets:       ${curl_ws_msg}
48451  Protocols:        ${SUPPORT_PROTOCOLS}
48452  Features:         ${SUPPORT_FEATURES}
48453" >&5
48454printf "%s\n" "$as_me: Configured to build curl/libcurl:
48455
48456  Host setup:       ${host}
48457  Install prefix:   ${prefix}
48458  Compiler:         ${CC}
48459   CFLAGS:          ${CFLAGS}
48460   CPPFLAGS:        ${CPPFLAGS}
48461   LDFLAGS:         ${LDFLAGS}
48462   LIBS:            ${LIBS}
48463
48464  curl version:     ${CURLVERSION}
48465  SSL:              ${curl_ssl_msg}
48466  SSH:              ${curl_ssh_msg}
48467  zlib:             ${curl_zlib_msg}
48468  brotli:           ${curl_brotli_msg}
48469  zstd:             ${curl_zstd_msg}
48470  GSS-API:          ${curl_gss_msg}
48471  GSASL:            ${curl_gsasl_msg}
48472  TLS-SRP:          ${curl_tls_srp_msg}
48473  resolver:         ${curl_res_msg}
48474  IPv6:             ${curl_ipv6_msg}
48475  Unix sockets:     ${curl_unix_sockets_msg}
48476  IDN:              ${curl_idn_msg}
48477  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48478  Built-in manual:  ${curl_manual_msg}
48479  --libcurl option: ${curl_libcurl_msg}
48480  Verbose errors:   ${curl_verbose_msg}
48481  Code coverage:    ${curl_coverage_msg}
48482  SSPI:             ${curl_sspi_msg}
48483  ca cert bundle:   ${ca}${ca_warning}
48484  ca cert path:     ${capath}${capath_warning}
48485  ca fallback:      ${with_ca_fallback}
48486  LDAP:             ${curl_ldap_msg}
48487  LDAPS:            ${curl_ldaps_msg}
48488  RTSP:             ${curl_rtsp_msg}
48489  RTMP:             ${curl_rtmp_msg}
48490  PSL:              ${curl_psl_msg}
48491  Alt-svc:          ${curl_altsvc_msg}
48492  Headers API:      ${curl_headers_msg}
48493  HSTS:             ${curl_hsts_msg}
48494  HTTP1:            ${curl_h1_msg}
48495  HTTP2:            ${curl_h2_msg}
48496  HTTP3:            ${curl_h3_msg}
48497  ECH:              ${curl_ech_msg}
48498  WebSockets:       ${curl_ws_msg}
48499  Protocols:        ${SUPPORT_PROTOCOLS}
48500  Features:         ${SUPPORT_FEATURES}
48501" >&6;}
48502if test -n "$experimental"; then
48503 cat >&2 << _EOF
48504  WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48505_EOF
48506fi
48507
48508