• 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_OPENSSL
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
955NSS_LIBS
956USE_NSS
957USE_RUSTLS
958USE_BEARSSL
959USE_WOLFSSL
960USE_MBEDTLS
961HAVE_GNUTLS_SRP
962USE_GNUTLS
963HAVE_OPENSSL_SRP
964RANDOM_FILE
965SSL_LIBS
966USE_SECTRANSP
967USE_WINDOWS_SSPI
968USE_SCHANNEL
969DEFAULT_SSL_BACKEND
970BUILD_STUB_GSS_FALSE
971BUILD_STUB_GSS_TRUE
972IPV6_ENABLED
973USE_OPENLDAP
974HAVE_ZSTD
975HAVE_BROTLI
976ZLIB_LIBS
977HAVE_LIBZ_FALSE
978HAVE_LIBZ_TRUE
979HAVE_LIBZ
980HAVE_PROTO_BSDSOCKET_H
981CURL_DISABLE_MQTT
982CURL_DISABLE_GOPHER
983CURL_DISABLE_SMTP
984CURL_DISABLE_SMB
985CURL_DISABLE_IMAP
986CURL_DISABLE_POP3
987CURL_DISABLE_TFTP
988CURL_DISABLE_TELNET
989CURL_DISABLE_DICT
990CURL_DISABLE_PROXY
991USE_HYPER
992PKGCONFIG
993HAVE_LDAP_SSL
994CURL_DISABLE_LDAPS
995CURL_DISABLE_LDAP
996CURL_DISABLE_FILE
997CURL_DISABLE_FTP
998CURL_DISABLE_RTSP
999CURL_DISABLE_HTTP
1000HAVE_WINDRES_FALSE
1001HAVE_WINDRES_TRUE
1002USE_WIN32_CRYPTO
1003USE_WIN32_SMALL_FILES
1004USE_WIN32_LARGE_FILES
1005DOING_NATIVE_WINDOWS_FALSE
1006DOING_NATIVE_WINDOWS_TRUE
1007BUILD_UNITTESTS_FALSE
1008BUILD_UNITTESTS_TRUE
1009CURLDEBUG_FALSE
1010CURLDEBUG_TRUE
1011CURL_CFLAG_EXTRAS
1012USE_EXPLICIT_LIB_DEPS_FALSE
1013USE_EXPLICIT_LIB_DEPS_TRUE
1014REQUIRE_LIB_DEPS
1015CPPFLAG_CURL_STATICLIB
1016USE_CPPFLAG_CURL_STATICLIB_FALSE
1017USE_CPPFLAG_CURL_STATICLIB_TRUE
1018CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1024RC
1025LT_SYS_LIBRARY_PATH
1026OTOOL64
1027OTOOL
1028LIPO
1029NMEDIT
1030DSYMUTIL
1031MANIFEST_TOOL
1032RANLIB
1033ac_ct_AR
1034FILECMD
1035LN_S
1036NM
1037ac_ct_DUMPBIN
1038DUMPBIN
1039LD
1040FGREP
1041LIBTOOL
1042OBJDUMP
1043DLLTOOL
1044AS
1045AR_FLAGS
1046host_os
1047host_vendor
1048host_cpu
1049host
1050build_os
1051build_vendor
1052build_cpu
1053build
1054HTTPD_NGHTTPX
1055APACHECTL
1056HTTPD
1057APXS
1058CADDY
1059TEST_NGHTTPX
1060PKGADD_VENDOR
1061PKGADD_NAME
1062PKGADD_PKG
1063VERSIONNUM
1064CURLVERSION
1065CSCOPE
1066ETAGS
1067CTAGS
1068am__fastdepCC_FALSE
1069am__fastdepCC_TRUE
1070CCDEPMODE
1071am__nodep
1072AMDEPBACKSLASH
1073AMDEP_FALSE
1074AMDEP_TRUE
1075am__include
1076DEPDIR
1077am__untar
1078am__tar
1079AMTAR
1080am__leading_dot
1081SET_MAKE
1082AWK
1083mkdir_p
1084MKDIR_P
1085INSTALL_STRIP_PROGRAM
1086STRIP
1087install_sh
1088MAKEINFO
1089AUTOHEADER
1090AUTOMAKE
1091AUTOCONF
1092ACLOCAL
1093VERSION
1094PACKAGE
1095CYGPATH_W
1096am__isrc
1097LCOV
1098GCOV
1099CPP
1100OBJEXT
1101EXEEXT
1102ac_ct_CC
1103CPPFLAGS
1104LDFLAGS
1105CFLAGS
1106CC
1107INSTALL_DATA
1108INSTALL_SCRIPT
1109INSTALL_PROGRAM
1110libext
1111AR
1112EGREP
1113GREP
1114SED
1115CONFIGURE_OPTIONS
1116AM_BACKSLASH
1117AM_DEFAULT_VERBOSITY
1118AM_DEFAULT_V
1119AM_V
1120MAINT
1121MAINTAINER_MODE_FALSE
1122MAINTAINER_MODE_TRUE
1123target_alias
1124host_alias
1125build_alias
1126LIBS
1127ECHO_T
1128ECHO_N
1129ECHO_C
1130DEFS
1131mandir
1132localedir
1133libdir
1134psdir
1135pdfdir
1136dvidir
1137htmldir
1138infodir
1139docdir
1140oldincludedir
1141includedir
1142runstatedir
1143localstatedir
1144sharedstatedir
1145sysconfdir
1146datadir
1147datarootdir
1148libexecdir
1149sbindir
1150bindir
1151program_transform_name
1152prefix
1153exec_prefix
1154PACKAGE_URL
1155PACKAGE_BUGREPORT
1156PACKAGE_STRING
1157PACKAGE_VERSION
1158PACKAGE_TARNAME
1159PACKAGE_NAME
1160SHELL
1161PATH_SEPARATOR
1162am__quote'
1163ac_subst_files=''
1164ac_user_opts='
1165enable_option_checking
1166enable_maintainer_mode
1167enable_silent_rules
1168enable_debug
1169enable_optimize
1170enable_warnings
1171enable_werror
1172enable_curldebug
1173enable_symbol_hiding
1174enable_ares
1175enable_rt
1176enable_ech
1177enable_code_coverage
1178enable_dependency_tracking
1179with_schannel
1180with_secure_transport
1181with_amissl
1182with_ssl
1183with_openssl
1184with_gnutls
1185with_mbedtls
1186with_wolfssl
1187with_bearssl
1188with_rustls
1189with_nss_deprecated
1190with_nss
1191with_test_nghttpx
1192with_test_caddy
1193with_test_httpd
1194with_darwinssl
1195enable_largefile
1196enable_shared
1197enable_static
1198with_pic
1199enable_fast_install
1200with_aix_soname
1201with_gnu_ld
1202with_sysroot
1203enable_libtool_lock
1204with_mingw1_deprecated
1205enable_http
1206enable_ftp
1207enable_file
1208enable_ldap
1209enable_ldaps
1210with_hyper
1211enable_rtsp
1212enable_proxy
1213enable_dict
1214enable_telnet
1215enable_tftp
1216enable_pop3
1217enable_imap
1218enable_smb
1219enable_smtp
1220enable_gopher
1221enable_mqtt
1222enable_manual
1223enable_libcurl_option
1224enable_libgcc
1225with_zlib
1226with_brotli
1227with_zstd
1228with_ldap_lib
1229with_lber_lib
1230enable_ipv6
1231with_gssapi_includes
1232with_gssapi_libs
1233with_gssapi
1234with_default_ssl_backend
1235with_egd_socket
1236with_random
1237enable_openssl_auto_load_config
1238with_ca_bundle
1239with_ca_path
1240with_ca_fallback
1241with_libpsl
1242with_libgsasl
1243with_libmetalink
1244with_libssh2
1245with_libssh
1246with_wolfssh
1247with_librtmp
1248enable_versioned_symbols
1249with_winidn
1250with_libidn2
1251with_nghttp2
1252with_ngtcp2
1253with_nghttp3
1254with_quiche
1255with_msh3
1256with_zsh_functions_dir
1257with_fish_functions_dir
1258enable_threaded_resolver
1259enable_pthreads
1260enable_verbose
1261enable_sspi
1262enable_crypto_auth
1263enable_ntlm
1264enable_ntlm_wb
1265enable_tls_srp
1266enable_unix_sockets
1267enable_cookies
1268enable_socketpair
1269enable_http_auth
1270enable_doh
1271enable_mime
1272enable_dateparse
1273enable_netrc
1274enable_progress_meter
1275enable_dnsshuffle
1276enable_get_easy_options
1277enable_alt_svc
1278enable_headers_api
1279enable_hsts
1280enable_websockets
1281'
1282      ac_precious_vars='build_alias
1283host_alias
1284target_alias
1285CC
1286CFLAGS
1287LDFLAGS
1288LIBS
1289CPPFLAGS
1290CPP
1291LT_SYS_LIBRARY_PATH'
1292
1293
1294# Initialize some variables set by options.
1295ac_init_help=
1296ac_init_version=false
1297ac_unrecognized_opts=
1298ac_unrecognized_sep=
1299# The variables have the same names as the options, with
1300# dashes changed to underlines.
1301cache_file=/dev/null
1302exec_prefix=NONE
1303no_create=
1304no_recursion=
1305prefix=NONE
1306program_prefix=NONE
1307program_suffix=NONE
1308program_transform_name=s,x,x,
1309silent=
1310site=
1311srcdir=
1312verbose=
1313x_includes=NONE
1314x_libraries=NONE
1315
1316# Installation directory options.
1317# These are left unexpanded so users can "make install exec_prefix=/foo"
1318# and all the variables that are supposed to be based on exec_prefix
1319# by default will actually change.
1320# Use braces instead of parens because sh, perl, etc. also accept them.
1321# (The list follows the same order as the GNU Coding Standards.)
1322bindir='${exec_prefix}/bin'
1323sbindir='${exec_prefix}/sbin'
1324libexecdir='${exec_prefix}/libexec'
1325datarootdir='${prefix}/share'
1326datadir='${datarootdir}'
1327sysconfdir='${prefix}/etc'
1328sharedstatedir='${prefix}/com'
1329localstatedir='${prefix}/var'
1330runstatedir='${localstatedir}/run'
1331includedir='${prefix}/include'
1332oldincludedir='/usr/include'
1333docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334infodir='${datarootdir}/info'
1335htmldir='${docdir}'
1336dvidir='${docdir}'
1337pdfdir='${docdir}'
1338psdir='${docdir}'
1339libdir='${exec_prefix}/lib'
1340localedir='${datarootdir}/locale'
1341mandir='${datarootdir}/man'
1342
1343ac_prev=
1344ac_dashdash=
1345for ac_option
1346do
1347  # If the previous option needs an argument, assign it.
1348  if test -n "$ac_prev"; then
1349    eval $ac_prev=\$ac_option
1350    ac_prev=
1351    continue
1352  fi
1353
1354  case $ac_option in
1355  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1356  *=)   ac_optarg= ;;
1357  *)    ac_optarg=yes ;;
1358  esac
1359
1360  case $ac_dashdash$ac_option in
1361  --)
1362    ac_dashdash=yes ;;
1363
1364  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1365    ac_prev=bindir ;;
1366  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1367    bindir=$ac_optarg ;;
1368
1369  -build | --build | --buil | --bui | --bu)
1370    ac_prev=build_alias ;;
1371  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1372    build_alias=$ac_optarg ;;
1373
1374  -cache-file | --cache-file | --cache-fil | --cache-fi \
1375  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1376    ac_prev=cache_file ;;
1377  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1378  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1379    cache_file=$ac_optarg ;;
1380
1381  --config-cache | -C)
1382    cache_file=config.cache ;;
1383
1384  -datadir | --datadir | --datadi | --datad)
1385    ac_prev=datadir ;;
1386  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1387    datadir=$ac_optarg ;;
1388
1389  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1390  | --dataroo | --dataro | --datar)
1391    ac_prev=datarootdir ;;
1392  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1393  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1394    datarootdir=$ac_optarg ;;
1395
1396  -disable-* | --disable-*)
1397    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1398    # Reject names that are not valid shell variable names.
1399    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1400      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1401    ac_useropt_orig=$ac_useropt
1402    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1403    case $ac_user_opts in
1404      *"
1405"enable_$ac_useropt"
1406"*) ;;
1407      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1408	 ac_unrecognized_sep=', ';;
1409    esac
1410    eval enable_$ac_useropt=no ;;
1411
1412  -docdir | --docdir | --docdi | --doc | --do)
1413    ac_prev=docdir ;;
1414  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1415    docdir=$ac_optarg ;;
1416
1417  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1418    ac_prev=dvidir ;;
1419  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1420    dvidir=$ac_optarg ;;
1421
1422  -enable-* | --enable-*)
1423    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1424    # Reject names that are not valid shell variable names.
1425    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1427    ac_useropt_orig=$ac_useropt
1428    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1429    case $ac_user_opts in
1430      *"
1431"enable_$ac_useropt"
1432"*) ;;
1433      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1434	 ac_unrecognized_sep=', ';;
1435    esac
1436    eval enable_$ac_useropt=\$ac_optarg ;;
1437
1438  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1439  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1440  | --exec | --exe | --ex)
1441    ac_prev=exec_prefix ;;
1442  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1443  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1444  | --exec=* | --exe=* | --ex=*)
1445    exec_prefix=$ac_optarg ;;
1446
1447  -gas | --gas | --ga | --g)
1448    # Obsolete; use --with-gas.
1449    with_gas=yes ;;
1450
1451  -help | --help | --hel | --he | -h)
1452    ac_init_help=long ;;
1453  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1454    ac_init_help=recursive ;;
1455  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1456    ac_init_help=short ;;
1457
1458  -host | --host | --hos | --ho)
1459    ac_prev=host_alias ;;
1460  -host=* | --host=* | --hos=* | --ho=*)
1461    host_alias=$ac_optarg ;;
1462
1463  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1464    ac_prev=htmldir ;;
1465  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1466  | --ht=*)
1467    htmldir=$ac_optarg ;;
1468
1469  -includedir | --includedir | --includedi | --included | --include \
1470  | --includ | --inclu | --incl | --inc)
1471    ac_prev=includedir ;;
1472  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1473  | --includ=* | --inclu=* | --incl=* | --inc=*)
1474    includedir=$ac_optarg ;;
1475
1476  -infodir | --infodir | --infodi | --infod | --info | --inf)
1477    ac_prev=infodir ;;
1478  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1479    infodir=$ac_optarg ;;
1480
1481  -libdir | --libdir | --libdi | --libd)
1482    ac_prev=libdir ;;
1483  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1484    libdir=$ac_optarg ;;
1485
1486  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1487  | --libexe | --libex | --libe)
1488    ac_prev=libexecdir ;;
1489  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1490  | --libexe=* | --libex=* | --libe=*)
1491    libexecdir=$ac_optarg ;;
1492
1493  -localedir | --localedir | --localedi | --localed | --locale)
1494    ac_prev=localedir ;;
1495  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1496    localedir=$ac_optarg ;;
1497
1498  -localstatedir | --localstatedir | --localstatedi | --localstated \
1499  | --localstate | --localstat | --localsta | --localst | --locals)
1500    ac_prev=localstatedir ;;
1501  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1502  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1503    localstatedir=$ac_optarg ;;
1504
1505  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1506    ac_prev=mandir ;;
1507  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1508    mandir=$ac_optarg ;;
1509
1510  -nfp | --nfp | --nf)
1511    # Obsolete; use --without-fp.
1512    with_fp=no ;;
1513
1514  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1515  | --no-cr | --no-c | -n)
1516    no_create=yes ;;
1517
1518  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1519  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1520    no_recursion=yes ;;
1521
1522  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1523  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1524  | --oldin | --oldi | --old | --ol | --o)
1525    ac_prev=oldincludedir ;;
1526  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1527  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1528  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1529    oldincludedir=$ac_optarg ;;
1530
1531  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1532    ac_prev=prefix ;;
1533  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1534    prefix=$ac_optarg ;;
1535
1536  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1537  | --program-pre | --program-pr | --program-p)
1538    ac_prev=program_prefix ;;
1539  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1540  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1541    program_prefix=$ac_optarg ;;
1542
1543  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1544  | --program-suf | --program-su | --program-s)
1545    ac_prev=program_suffix ;;
1546  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1547  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1548    program_suffix=$ac_optarg ;;
1549
1550  -program-transform-name | --program-transform-name \
1551  | --program-transform-nam | --program-transform-na \
1552  | --program-transform-n | --program-transform- \
1553  | --program-transform | --program-transfor \
1554  | --program-transfo | --program-transf \
1555  | --program-trans | --program-tran \
1556  | --progr-tra | --program-tr | --program-t)
1557    ac_prev=program_transform_name ;;
1558  -program-transform-name=* | --program-transform-name=* \
1559  | --program-transform-nam=* | --program-transform-na=* \
1560  | --program-transform-n=* | --program-transform-=* \
1561  | --program-transform=* | --program-transfor=* \
1562  | --program-transfo=* | --program-transf=* \
1563  | --program-trans=* | --program-tran=* \
1564  | --progr-tra=* | --program-tr=* | --program-t=*)
1565    program_transform_name=$ac_optarg ;;
1566
1567  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1568    ac_prev=pdfdir ;;
1569  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1570    pdfdir=$ac_optarg ;;
1571
1572  -psdir | --psdir | --psdi | --psd | --ps)
1573    ac_prev=psdir ;;
1574  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1575    psdir=$ac_optarg ;;
1576
1577  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578  | -silent | --silent | --silen | --sile | --sil)
1579    silent=yes ;;
1580
1581  -runstatedir | --runstatedir | --runstatedi | --runstated \
1582  | --runstate | --runstat | --runsta | --runst | --runs \
1583  | --run | --ru | --r)
1584    ac_prev=runstatedir ;;
1585  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1586  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1587  | --run=* | --ru=* | --r=*)
1588    runstatedir=$ac_optarg ;;
1589
1590  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1591    ac_prev=sbindir ;;
1592  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1593  | --sbi=* | --sb=*)
1594    sbindir=$ac_optarg ;;
1595
1596  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1597  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1598  | --sharedst | --shareds | --shared | --share | --shar \
1599  | --sha | --sh)
1600    ac_prev=sharedstatedir ;;
1601  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1602  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1603  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1604  | --sha=* | --sh=*)
1605    sharedstatedir=$ac_optarg ;;
1606
1607  -site | --site | --sit)
1608    ac_prev=site ;;
1609  -site=* | --site=* | --sit=*)
1610    site=$ac_optarg ;;
1611
1612  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1613    ac_prev=srcdir ;;
1614  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1615    srcdir=$ac_optarg ;;
1616
1617  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1618  | --syscon | --sysco | --sysc | --sys | --sy)
1619    ac_prev=sysconfdir ;;
1620  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1621  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1622    sysconfdir=$ac_optarg ;;
1623
1624  -target | --target | --targe | --targ | --tar | --ta | --t)
1625    ac_prev=target_alias ;;
1626  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1627    target_alias=$ac_optarg ;;
1628
1629  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1630    verbose=yes ;;
1631
1632  -version | --version | --versio | --versi | --vers | -V)
1633    ac_init_version=: ;;
1634
1635  -with-* | --with-*)
1636    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1637    # Reject names that are not valid shell variable names.
1638    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639      as_fn_error $? "invalid package name: \`$ac_useropt'"
1640    ac_useropt_orig=$ac_useropt
1641    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1642    case $ac_user_opts in
1643      *"
1644"with_$ac_useropt"
1645"*) ;;
1646      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1647	 ac_unrecognized_sep=', ';;
1648    esac
1649    eval with_$ac_useropt=\$ac_optarg ;;
1650
1651  -without-* | --without-*)
1652    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1653    # Reject names that are not valid shell variable names.
1654    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1655      as_fn_error $? "invalid package name: \`$ac_useropt'"
1656    ac_useropt_orig=$ac_useropt
1657    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1658    case $ac_user_opts in
1659      *"
1660"with_$ac_useropt"
1661"*) ;;
1662      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1663	 ac_unrecognized_sep=', ';;
1664    esac
1665    eval with_$ac_useropt=no ;;
1666
1667  --x)
1668    # Obsolete; use --with-x.
1669    with_x=yes ;;
1670
1671  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1672  | --x-incl | --x-inc | --x-in | --x-i)
1673    ac_prev=x_includes ;;
1674  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1675  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1676    x_includes=$ac_optarg ;;
1677
1678  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1679  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1680    ac_prev=x_libraries ;;
1681  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1682  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1683    x_libraries=$ac_optarg ;;
1684
1685  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1686Try \`$0 --help' for more information"
1687    ;;
1688
1689  *=*)
1690    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1691    # Reject names that are not valid shell variable names.
1692    case $ac_envvar in #(
1693      '' | [0-9]* | *[!_$as_cr_alnum]* )
1694      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1695    esac
1696    eval $ac_envvar=\$ac_optarg
1697    export $ac_envvar ;;
1698
1699  *)
1700    # FIXME: should be removed in autoconf 3.0.
1701    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1702    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1703      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1704    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1705    ;;
1706
1707  esac
1708done
1709
1710if test -n "$ac_prev"; then
1711  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1712  as_fn_error $? "missing argument to $ac_option"
1713fi
1714
1715if test -n "$ac_unrecognized_opts"; then
1716  case $enable_option_checking in
1717    no) ;;
1718    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1719    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1720  esac
1721fi
1722
1723# Check all directory arguments for consistency.
1724for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1725		datadir sysconfdir sharedstatedir localstatedir includedir \
1726		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1727		libdir localedir mandir runstatedir
1728do
1729  eval ac_val=\$$ac_var
1730  # Remove trailing slashes.
1731  case $ac_val in
1732    */ )
1733      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1734      eval $ac_var=\$ac_val;;
1735  esac
1736  # Be sure to have absolute directory names.
1737  case $ac_val in
1738    [\\/$]* | ?:[\\/]* )  continue;;
1739    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1740  esac
1741  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1742done
1743
1744# There might be people who depend on the old broken behavior: `$host'
1745# used to hold the argument of --host etc.
1746# FIXME: To remove some day.
1747build=$build_alias
1748host=$host_alias
1749target=$target_alias
1750
1751# FIXME: To remove some day.
1752if test "x$host_alias" != x; then
1753  if test "x$build_alias" = x; then
1754    cross_compiling=maybe
1755  elif test "x$build_alias" != "x$host_alias"; then
1756    cross_compiling=yes
1757  fi
1758fi
1759
1760ac_tool_prefix=
1761test -n "$host_alias" && ac_tool_prefix=$host_alias-
1762
1763test "$silent" = yes && exec 6>/dev/null
1764
1765
1766ac_pwd=`pwd` && test -n "$ac_pwd" &&
1767ac_ls_di=`ls -di .` &&
1768ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1769  as_fn_error $? "working directory cannot be determined"
1770test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1771  as_fn_error $? "pwd does not report name of working directory"
1772
1773
1774# Find the source files, if location was not specified.
1775if test -z "$srcdir"; then
1776  ac_srcdir_defaulted=yes
1777  # Try the directory containing this script, then the parent directory.
1778  ac_confdir=`$as_dirname -- "$as_myself" ||
1779$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1780	 X"$as_myself" : 'X\(//\)[^/]' \| \
1781	 X"$as_myself" : 'X\(//\)$' \| \
1782	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1783printf "%s\n" X"$as_myself" |
1784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1785	    s//\1/
1786	    q
1787	  }
1788	  /^X\(\/\/\)[^/].*/{
1789	    s//\1/
1790	    q
1791	  }
1792	  /^X\(\/\/\)$/{
1793	    s//\1/
1794	    q
1795	  }
1796	  /^X\(\/\).*/{
1797	    s//\1/
1798	    q
1799	  }
1800	  s/.*/./; q'`
1801  srcdir=$ac_confdir
1802  if test ! -r "$srcdir/$ac_unique_file"; then
1803    srcdir=..
1804  fi
1805else
1806  ac_srcdir_defaulted=no
1807fi
1808if test ! -r "$srcdir/$ac_unique_file"; then
1809  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1810  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1811fi
1812ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1813ac_abs_confdir=`(
1814	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1815	pwd)`
1816# When building in place, set srcdir=.
1817if test "$ac_abs_confdir" = "$ac_pwd"; then
1818  srcdir=.
1819fi
1820# Remove unnecessary trailing slashes from srcdir.
1821# Double slashes in file names in object file debugging info
1822# mess up M-x gdb in Emacs.
1823case $srcdir in
1824*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1825esac
1826for ac_var in $ac_precious_vars; do
1827  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1828  eval ac_env_${ac_var}_value=\$${ac_var}
1829  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1830  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1831done
1832
1833#
1834# Report the --help message.
1835#
1836if test "$ac_init_help" = "long"; then
1837  # Omit some internal or obsolete options to make the list less imposing.
1838  # This message is too long to be a string in the A/UX 3.1 sh.
1839  cat <<_ACEOF
1840\`configure' configures curl - to adapt to many kinds of systems.
1841
1842Usage: $0 [OPTION]... [VAR=VALUE]...
1843
1844To assign environment variables (e.g., CC, CFLAGS...), specify them as
1845VAR=VALUE.  See below for descriptions of some of the useful variables.
1846
1847Defaults for the options are specified in brackets.
1848
1849Configuration:
1850  -h, --help              display this help and exit
1851      --help=short        display options specific to this package
1852      --help=recursive    display the short help of all the included packages
1853  -V, --version           display version information and exit
1854  -q, --quiet, --silent   do not print \`checking ...' messages
1855      --cache-file=FILE   cache test results in FILE [disabled]
1856  -C, --config-cache      alias for \`--cache-file=config.cache'
1857  -n, --no-create         do not create output files
1858      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1859
1860Installation directories:
1861  --prefix=PREFIX         install architecture-independent files in PREFIX
1862                          [$ac_default_prefix]
1863  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1864                          [PREFIX]
1865
1866By default, \`make install' will install all the files in
1867\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1868an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1869for instance \`--prefix=\$HOME'.
1870
1871For better control, use the options below.
1872
1873Fine tuning of the installation directories:
1874  --bindir=DIR            user executables [EPREFIX/bin]
1875  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1876  --libexecdir=DIR        program executables [EPREFIX/libexec]
1877  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1878  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1879  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1880  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1881  --libdir=DIR            object code libraries [EPREFIX/lib]
1882  --includedir=DIR        C header files [PREFIX/include]
1883  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1884  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1885  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1886  --infodir=DIR           info documentation [DATAROOTDIR/info]
1887  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1888  --mandir=DIR            man documentation [DATAROOTDIR/man]
1889  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1890  --htmldir=DIR           html documentation [DOCDIR]
1891  --dvidir=DIR            dvi documentation [DOCDIR]
1892  --pdfdir=DIR            pdf documentation [DOCDIR]
1893  --psdir=DIR             ps documentation [DOCDIR]
1894_ACEOF
1895
1896  cat <<\_ACEOF
1897
1898Program names:
1899  --program-prefix=PREFIX            prepend PREFIX to installed program names
1900  --program-suffix=SUFFIX            append SUFFIX to installed program names
1901  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1902
1903System types:
1904  --build=BUILD     configure for building on BUILD [guessed]
1905  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1906_ACEOF
1907fi
1908
1909if test -n "$ac_init_help"; then
1910  case $ac_init_help in
1911     short | recursive ) echo "Configuration of curl -:";;
1912   esac
1913  cat <<\_ACEOF
1914
1915Optional Features:
1916  --disable-option-checking  ignore unrecognized --enable/--with options
1917  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1918  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1919  --enable-maintainer-mode
1920                          enable make rules and dependencies not useful (and
1921                          sometimes confusing) to the casual installer
1922  --enable-silent-rules   less verbose build output (undo: "make V=1")
1923  --disable-silent-rules  verbose build output (undo: "make V=0")
1924  --enable-debug          Enable debug build options
1925  --disable-debug         Disable debug build options
1926  --enable-optimize       Enable compiler optimizations
1927  --disable-optimize      Disable compiler optimizations
1928  --enable-warnings       Enable strict compiler warnings
1929  --disable-warnings      Disable strict compiler warnings
1930  --enable-werror         Enable compiler warnings as errors
1931  --disable-werror        Disable compiler warnings as errors
1932  --enable-curldebug      Enable curl debug memory tracking
1933  --disable-curldebug     Disable curl debug memory tracking
1934  --enable-symbol-hiding  Enable hiding of library internal symbols
1935  --disable-symbol-hiding Disable hiding of library internal symbols
1936  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1937  --disable-ares          Disable c-ares for DNS lookups
1938  --disable-rt            disable dependency on -lrt
1939  --enable-ech            Enable ECH support
1940  --disable-ech           Disable ECH support
1941  --enable-code-coverage  Provide code coverage
1942  --enable-dependency-tracking
1943                          do not reject slow dependency extractors
1944  --disable-dependency-tracking
1945                          speeds up one-time build
1946  --disable-largefile     omit support for large files
1947  --enable-shared[=PKGS]  build shared libraries [default=yes]
1948  --enable-static[=PKGS]  build static libraries [default=yes]
1949  --enable-fast-install[=PKGS]
1950                          optimize for fast installation [default=yes]
1951  --disable-libtool-lock  avoid locking (might break parallel builds)
1952  --enable-http           Enable HTTP support
1953  --disable-http          Disable HTTP support
1954  --enable-ftp            Enable FTP support
1955  --disable-ftp           Disable FTP support
1956  --enable-file           Enable FILE support
1957  --disable-file          Disable FILE support
1958  --enable-ldap           Enable LDAP support
1959  --disable-ldap          Disable LDAP support
1960  --enable-ldaps          Enable LDAPS support
1961  --disable-ldaps         Disable LDAPS support
1962  --enable-rtsp           Enable RTSP support
1963    --disable-rtsp          Disable RTSP support
1964  --enable-proxy          Enable proxy support
1965  --disable-proxy         Disable proxy support
1966  --enable-dict           Enable DICT support
1967  --disable-dict          Disable DICT support
1968  --enable-telnet         Enable TELNET support
1969  --disable-telnet        Disable TELNET support
1970  --enable-tftp           Enable TFTP support
1971  --disable-tftp          Disable TFTP support
1972  --enable-pop3           Enable POP3 support
1973  --disable-pop3          Disable POP3 support
1974  --enable-imap           Enable IMAP support
1975  --disable-imap          Disable IMAP support
1976  --enable-smb            Enable SMB/CIFS support
1977  --disable-smb           Disable SMB/CIFS support
1978  --enable-smtp           Enable SMTP support
1979  --disable-smtp          Disable SMTP support
1980  --enable-gopher         Enable Gopher support
1981  --disable-gopher        Disable Gopher support
1982  --enable-mqtt           Enable MQTT support
1983  --disable-mqtt          Disable MQTT support
1984  --enable-manual         Enable built-in manual
1985  --disable-manual        Disable built-in manual
1986  --enable-libcurl-option Enable --libcurl C code generation support
1987  --disable-libcurl-option
1988                          Disable --libcurl C code generation support
1989  --enable-libgcc         use libgcc when linking
1990  --enable-ipv6           Enable IPv6 (with IPv4) support
1991  --disable-ipv6          Disable IPv6 support
1992  --enable-openssl-auto-load-config
1993                          Enable automatic loading of OpenSSL configuration
1994  --disable-openssl-auto-load-config
1995                          Disable automatic loading of OpenSSL configuration
1996  --enable-versioned-symbols
1997                          Enable versioned symbols in shared library
1998  --disable-versioned-symbols
1999                          Disable versioned symbols in shared library
2000  --enable-threaded-resolver
2001                          Enable threaded resolver
2002  --disable-threaded-resolver
2003                          Disable threaded resolver
2004  --enable-pthreads       Enable POSIX threads (default for threaded resolver)
2005  --disable-pthreads      Disable POSIX threads
2006  --enable-verbose        Enable verbose strings
2007  --disable-verbose       Disable verbose strings
2008  --enable-sspi           Enable SSPI
2009  --disable-sspi          Disable SSPI
2010  --enable-crypto-auth    Enable cryptographic authentication
2011  --disable-crypto-auth   Disable cryptographic authentication
2012  --enable-ntlm           Enable NTLM support
2013  --disable-ntlm          Disable NTLM support
2014  --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2015                          helper, where FILE is ntlm_auth's absolute filename
2016                          (default: /usr/bin/ntlm_auth)
2017  --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2018                          helper
2019  --enable-tls-srp        Enable TLS-SRP authentication
2020  --disable-tls-srp       Disable TLS-SRP authentication
2021  --enable-unix-sockets   Enable Unix domain sockets
2022  --disable-unix-sockets  Disable Unix domain sockets
2023  --enable-cookies        Enable cookies support
2024  --disable-cookies       Disable cookies support
2025  --enable-socketpair     Enable socketpair support
2026  --disable-socketpair    Disable socketpair support
2027  --enable-http-auth      Enable HTTP authentication support
2028  --disable-http-auth     Disable HTTP authentication support
2029  --enable-doh            Enable DoH support
2030  --disable-doh           Disable DoH support
2031  --enable-mime           Enable mime API support
2032  --disable-mime          Disable mime API support
2033  --enable-dateparse      Enable date parsing
2034  --disable-dateparse     Disable date parsing
2035  --enable-netrc          Enable netrc parsing
2036  --disable-netrc         Disable netrc parsing
2037  --enable-progress-meter Enable progress-meter
2038  --disable-progress-meter
2039                          Disable progress-meter
2040  --enable-dnsshuffle     Enable DNS shuffling
2041  --disable-dnsshuffle    Disable DNS shuffling
2042  --enable-get-easy-options
2043                          Enable curl_easy_options
2044  --disable-get-easy-options
2045                          Disable curl_easy_options
2046  --enable-alt-svc        Enable alt-svc support
2047  --disable-alt-svc       Disable alt-svc support
2048  --enable-headers-api    Enable headers-api support
2049  --disable-headers-api   Disable headers-api support
2050  --enable-hsts           Enable HSTS support
2051    --disable-hsts          Disable HSTS support
2052  --enable-websockets     Enable WebSockets support
2053  --disable-websockets    Disable WebSockets support
2054
2055Optional Packages:
2056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2058  --with-schannel         enable Windows native SSL/TLS
2059  --with-secure-transport enable Apple OS native SSL/TLS
2060  --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2061  --with-ssl=PATH         old version of --with-openssl
2062  --without-ssl           build without any TLS library
2063  --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2064                          installation (default: /usr/local/ssl); when
2065                          possible, set the PKG_CONFIG_PATH environment
2066                          variable instead of using this option
2067  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2068                          installation root
2069  --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2070                          installation root
2071  --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2072                          installation root (default: system lib default)
2073  --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2074                          installation root
2075  --with-rustls=PATH      where to look for rustls, PATH points to the
2076                          installation root
2077  --with-nss-deprecated   confirm you realize NSS is going away
2078  --with-nss=PATH         where to look for NSS, PATH points to the
2079                          installation root
2080  --with-test-nghttpx=PATH
2081                          where to find nghttpx for testing
2082  --with-test-caddy=PATH  where to find caddy for testing
2083  --with-test-httpd=PATH  where to find httpd/apache2 for testing
2084
2085  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2086                          both]
2087  --with-aix-soname=aix|svr4|both
2088                          shared library versioning (aka "SONAME") variant to
2089                          provide on AIX, [default=aix].
2090  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2091  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2092                          compiler's sysroot if not specified).
2093  --with-mingw1-deprecated
2094                          confirm you realize support for mingw v1 is dying
2095  --with-hyper=PATH       Enable hyper usage
2096  --without-hyper         Disable hyper usage
2097  --with-zlib=PATH        search for zlib in PATH
2098  --without-zlib          disable use of zlib
2099  --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2100                          installation; when possible, set the PKG_CONFIG_PATH
2101                          environment variable instead of using this option
2102  --without-brotli        disable BROTLI
2103  --with-zstd=PATH        Where to look for libzstd, PATH points to the
2104                          libzstd installation; when possible, set the
2105                          PKG_CONFIG_PATH environment variable instead of
2106                          using this option
2107  --without-zstd          disable libzstd
2108  --with-ldap-lib=libname Specify name of ldap lib file
2109  --with-lber-lib=libname Specify name of lber lib file
2110  --with-gssapi-includes=DIR
2111                          Specify location of GSS-API headers
2112  --with-gssapi-libs=DIR  Specify location of GSS-API libs
2113  --with-gssapi=DIR       Where to look for GSS-API
2114  --with-default-ssl-backend=NAME
2115                          Use NAME as default SSL backend
2116  --without-default-ssl-backend
2117                          Use implicit default SSL backend
2118  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
2119  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2120  --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2121                          /etc/ca-bundle.crt)
2122  --without-ca-bundle     Don't use a default CA bundle
2123  --with-ca-path=DIRECTORY
2124                          Path to a directory containing CA certificates
2125                          stored individually, with their filenames in a hash
2126                          format. This option can be used with the OpenSSL,
2127                          GnuTLS and mbedTLS backends. Refer to OpenSSL
2128                          c_rehash for details. (example: /etc/certificates)
2129  --without-ca-path       Don't use a default CA path
2130  --with-ca-fallback      Use the built in CA store of the SSL library
2131  --without-ca-fallback   Don't use the built in CA store of the SSL library
2132  --without-libpsl        disable support for libpsl cookie checking
2133  --without-libgsasl      disable libgsasl support for SCRAM
2134  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2135                          libssh2 installation; when possible, set the
2136                          PKG_CONFIG_PATH environment variable instead of
2137                          using this option
2138  --with-libssh2          enable libssh2
2139  --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2140                          installation; when possible, set the PKG_CONFIG_PATH
2141                          environment variable instead of using this option
2142  --with-libssh           enable libssh
2143  --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2144                          wolfSSH installation; when possible, set the
2145                          PKG_CONFIG_PATH environment variable instead of
2146                          using this option
2147  --with-wolfssh          enable wolfssh
2148  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2149                          LIBRTMP installation; when possible, set the
2150                          PKG_CONFIG_PATH environment variable instead of
2151                          using this option
2152  --without-librtmp       disable LIBRTMP
2153  --with-winidn=PATH      enable Windows native IDN
2154  --without-winidn        disable Windows native IDN
2155  --with-libidn2=PATH     Enable libidn2 usage
2156  --without-libidn2       Disable libidn2 usage
2157  --with-nghttp2=PATH     Enable nghttp2 usage
2158  --without-nghttp2       Disable nghttp2 usage
2159  --with-ngtcp2=PATH      Enable ngtcp2 usage
2160  --without-ngtcp2        Disable ngtcp2 usage
2161  --with-nghttp3=PATH     Enable nghttp3 usage
2162  --without-nghttp3       Disable nghttp3 usage
2163  --with-quiche=PATH      Enable quiche usage
2164  --without-quiche        Disable quiche usage
2165  --with-msh3=PATH        Enable msh3 usage
2166  --without-msh3          Disable msh3 usage
2167  --with-zsh-functions-dir=PATH
2168                          Install zsh completions to PATH
2169  --without-zsh-functions-dir
2170                          Do not install zsh completions
2171  --with-fish-functions-dir=PATH
2172                          Install fish completions to PATH
2173  --without-fish-functions-dir
2174                          Do not install fish completions
2175
2176Some influential environment variables:
2177  CC          C compiler command
2178  CFLAGS      C compiler flags
2179  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2180              nonstandard directory <lib dir>
2181  LIBS        libraries to pass to the linker, e.g. -l<library>
2182  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2183              you have headers in a nonstandard directory <include dir>
2184  CPP         C preprocessor
2185  LT_SYS_LIBRARY_PATH
2186              User-defined run-time library search path.
2187
2188Use these variables to override the choices made by `configure' or to help
2189it to find libraries and programs with nonstandard names/locations.
2190
2191Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2192_ACEOF
2193ac_status=$?
2194fi
2195
2196if test "$ac_init_help" = "recursive"; then
2197  # If there are subdirs, report their specific --help.
2198  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2199    test -d "$ac_dir" ||
2200      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2201      continue
2202    ac_builddir=.
2203
2204case "$ac_dir" in
2205.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2206*)
2207  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2208  # A ".." for each directory in $ac_dir_suffix.
2209  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2210  case $ac_top_builddir_sub in
2211  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2212  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2213  esac ;;
2214esac
2215ac_abs_top_builddir=$ac_pwd
2216ac_abs_builddir=$ac_pwd$ac_dir_suffix
2217# for backward compatibility:
2218ac_top_builddir=$ac_top_build_prefix
2219
2220case $srcdir in
2221  .)  # We are building in place.
2222    ac_srcdir=.
2223    ac_top_srcdir=$ac_top_builddir_sub
2224    ac_abs_top_srcdir=$ac_pwd ;;
2225  [\\/]* | ?:[\\/]* )  # Absolute name.
2226    ac_srcdir=$srcdir$ac_dir_suffix;
2227    ac_top_srcdir=$srcdir
2228    ac_abs_top_srcdir=$srcdir ;;
2229  *) # Relative name.
2230    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2231    ac_top_srcdir=$ac_top_build_prefix$srcdir
2232    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2233esac
2234ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2235
2236    cd "$ac_dir" || { ac_status=$?; continue; }
2237    # Check for configure.gnu first; this name is used for a wrapper for
2238    # Metaconfig's "Configure" on case-insensitive file systems.
2239    if test -f "$ac_srcdir/configure.gnu"; then
2240      echo &&
2241      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2242    elif test -f "$ac_srcdir/configure"; then
2243      echo &&
2244      $SHELL "$ac_srcdir/configure" --help=recursive
2245    else
2246      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2247    fi || ac_status=$?
2248    cd "$ac_pwd" || { ac_status=$?; break; }
2249  done
2250fi
2251
2252test -n "$ac_init_help" && exit $ac_status
2253if $ac_init_version; then
2254  cat <<\_ACEOF
2255curl configure -
2256generated by GNU Autoconf 2.71
2257
2258Copyright (C) 2021 Free Software Foundation, Inc.
2259This configure script is free software; the Free Software Foundation
2260gives unlimited permission to copy, distribute and modify it.
2261
2262Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2263This configure script may be copied, distributed and modified under the
2264terms of the curl license; see COPYING for more details
2265_ACEOF
2266  exit
2267fi
2268
2269## ------------------------ ##
2270## Autoconf initialization. ##
2271## ------------------------ ##
2272
2273# ac_fn_c_try_compile LINENO
2274# --------------------------
2275# Try to compile conftest.$ac_ext, and return whether this succeeded.
2276ac_fn_c_try_compile ()
2277{
2278  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279  rm -f conftest.$ac_objext conftest.beam
2280  if { { ac_try="$ac_compile"
2281case "(($ac_try" in
2282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283  *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286printf "%s\n" "$ac_try_echo"; } >&5
2287  (eval "$ac_compile") 2>conftest.err
2288  ac_status=$?
2289  if test -s conftest.err; then
2290    grep -v '^ *+' conftest.err >conftest.er1
2291    cat conftest.er1 >&5
2292    mv -f conftest.er1 conftest.err
2293  fi
2294  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295  test $ac_status = 0; } && {
2296	 test -z "$ac_c_werror_flag" ||
2297	 test ! -s conftest.err
2298       } && test -s conftest.$ac_objext
2299then :
2300  ac_retval=0
2301else $as_nop
2302  printf "%s\n" "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305	ac_retval=1
2306fi
2307  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308  as_fn_set_status $ac_retval
2309
2310} # ac_fn_c_try_compile
2311
2312# ac_fn_c_try_cpp LINENO
2313# ----------------------
2314# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2315ac_fn_c_try_cpp ()
2316{
2317  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318  if { { ac_try="$ac_cpp conftest.$ac_ext"
2319case "(($ac_try" in
2320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321  *) ac_try_echo=$ac_try;;
2322esac
2323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324printf "%s\n" "$ac_try_echo"; } >&5
2325  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2326  ac_status=$?
2327  if test -s conftest.err; then
2328    grep -v '^ *+' conftest.err >conftest.er1
2329    cat conftest.er1 >&5
2330    mv -f conftest.er1 conftest.err
2331  fi
2332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333  test $ac_status = 0; } > conftest.i && {
2334	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2335	 test ! -s conftest.err
2336       }
2337then :
2338  ac_retval=0
2339else $as_nop
2340  printf "%s\n" "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343    ac_retval=1
2344fi
2345  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346  as_fn_set_status $ac_retval
2347
2348} # ac_fn_c_try_cpp
2349
2350# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2351# -------------------------------------------------------
2352# Tests whether HEADER exists and can be compiled using the include files in
2353# INCLUDES, setting the cache variable VAR accordingly.
2354ac_fn_c_check_header_compile ()
2355{
2356  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2358printf %s "checking for $2... " >&6; }
2359if eval test \${$3+y}
2360then :
2361  printf %s "(cached) " >&6
2362else $as_nop
2363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h.  */
2365$4
2366#include <$2>
2367_ACEOF
2368if ac_fn_c_try_compile "$LINENO"
2369then :
2370  eval "$3=yes"
2371else $as_nop
2372  eval "$3=no"
2373fi
2374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2375fi
2376eval ac_res=\$$3
2377	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2378printf "%s\n" "$ac_res" >&6; }
2379  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380
2381} # ac_fn_c_check_header_compile
2382
2383# ac_fn_c_try_link LINENO
2384# -----------------------
2385# Try to link conftest.$ac_ext, and return whether this succeeded.
2386ac_fn_c_try_link ()
2387{
2388  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2390  if { { ac_try="$ac_link"
2391case "(($ac_try" in
2392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393  *) ac_try_echo=$ac_try;;
2394esac
2395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396printf "%s\n" "$ac_try_echo"; } >&5
2397  (eval "$ac_link") 2>conftest.err
2398  ac_status=$?
2399  if test -s conftest.err; then
2400    grep -v '^ *+' conftest.err >conftest.er1
2401    cat conftest.er1 >&5
2402    mv -f conftest.er1 conftest.err
2403  fi
2404  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2405  test $ac_status = 0; } && {
2406	 test -z "$ac_c_werror_flag" ||
2407	 test ! -s conftest.err
2408       } && test -s conftest$ac_exeext && {
2409	 test "$cross_compiling" = yes ||
2410	 test -x conftest$ac_exeext
2411       }
2412then :
2413  ac_retval=0
2414else $as_nop
2415  printf "%s\n" "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418	ac_retval=1
2419fi
2420  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422  # interfere with the next link command; also delete a directory that is
2423  # left behind by Apple's compiler.  We do this before executing the actions.
2424  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426  as_fn_set_status $ac_retval
2427
2428} # ac_fn_c_try_link
2429
2430# ac_fn_c_check_func LINENO FUNC VAR
2431# ----------------------------------
2432# Tests whether FUNC exists, setting the cache variable VAR accordingly
2433ac_fn_c_check_func ()
2434{
2435  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437printf %s "checking for $2... " >&6; }
2438if eval test \${$3+y}
2439then :
2440  printf %s "(cached) " >&6
2441else $as_nop
2442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443/* end confdefs.h.  */
2444
2445#define $2 innocuous_$2
2446#ifdef __STDC__
2447# include <limits.h>
2448#else
2449# include <assert.h>
2450#endif
2451#undef $2
2452#ifdef __cplusplus
2453extern "C"
2454#endif
2455char $2 ();
2456#if defined __stub_$2 || defined __stub___$2
2457choke me
2458#endif
2459
2460int main (void)
2461{
2462return $2 ();
2463 ;
2464 return 0;
2465}
2466_ACEOF
2467if ac_fn_c_try_link "$LINENO"
2468then :
2469  eval "$3=yes"
2470else $as_nop
2471  eval "$3=no"
2472fi
2473rm -f core conftest.err conftest.$ac_objext conftest.beam \
2474    conftest$ac_exeext conftest.$ac_ext
2475fi
2476eval ac_res=\$$3
2477	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478printf "%s\n" "$ac_res" >&6; }
2479  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480
2481} # ac_fn_c_check_func
2482
2483# ac_fn_c_try_run LINENO
2484# ----------------------
2485# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2486# executables *can* be run.
2487ac_fn_c_try_run ()
2488{
2489  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490  if { { ac_try="$ac_link"
2491case "(($ac_try" in
2492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493  *) ac_try_echo=$ac_try;;
2494esac
2495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496printf "%s\n" "$ac_try_echo"; } >&5
2497  (eval "$ac_link") 2>&5
2498  ac_status=$?
2499  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2501  { { case "(($ac_try" in
2502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503  *) ac_try_echo=$ac_try;;
2504esac
2505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506printf "%s\n" "$ac_try_echo"; } >&5
2507  (eval "$ac_try") 2>&5
2508  ac_status=$?
2509  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510  test $ac_status = 0; }; }
2511then :
2512  ac_retval=0
2513else $as_nop
2514  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2515       printf "%s\n" "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518       ac_retval=$ac_status
2519fi
2520  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2521  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522  as_fn_set_status $ac_retval
2523
2524} # ac_fn_c_try_run
2525
2526# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2527# -------------------------------------------------------
2528# Tests whether TYPE exists after having included INCLUDES, setting cache
2529# variable VAR accordingly.
2530ac_fn_c_check_type ()
2531{
2532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534printf %s "checking for $2... " >&6; }
2535if eval test \${$3+y}
2536then :
2537  printf %s "(cached) " >&6
2538else $as_nop
2539  eval "$3=no"
2540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541/* end confdefs.h.  */
2542$4
2543int main (void)
2544{
2545if (sizeof ($2))
2546	 return 0;
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551if ac_fn_c_try_compile "$LINENO"
2552then :
2553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554/* end confdefs.h.  */
2555$4
2556int main (void)
2557{
2558if (sizeof (($2)))
2559	    return 0;
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564if ac_fn_c_try_compile "$LINENO"
2565then :
2566
2567else $as_nop
2568  eval "$3=yes"
2569fi
2570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2571fi
2572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2573fi
2574eval ac_res=\$$3
2575	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576printf "%s\n" "$ac_res" >&6; }
2577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578
2579} # ac_fn_c_check_type
2580
2581# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2582# ------------------------------------------------------------------
2583# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2584# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2585ac_fn_check_decl ()
2586{
2587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588  as_decl_name=`echo $2|sed 's/ *(.*//'`
2589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2590printf %s "checking whether $as_decl_name is declared... " >&6; }
2591if eval test \${$3+y}
2592then :
2593  printf %s "(cached) " >&6
2594else $as_nop
2595  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2596  eval ac_save_FLAGS=\$$6
2597  as_fn_append $6 " $5"
2598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h.  */
2600$4
2601int main (void)
2602{
2603#ifndef $as_decl_name
2604#ifdef __cplusplus
2605  (void) $as_decl_use;
2606#else
2607  (void) $as_decl_name;
2608#endif
2609#endif
2610
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"
2616then :
2617  eval "$3=yes"
2618else $as_nop
2619  eval "$3=no"
2620fi
2621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2622  eval $6=\$ac_save_FLAGS
2623
2624fi
2625eval ac_res=\$$3
2626	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627printf "%s\n" "$ac_res" >&6; }
2628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2629
2630} # ac_fn_check_decl
2631
2632# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2633# ----------------------------------------------------
2634# Tries to find if the field MEMBER exists in type AGGR, after including
2635# INCLUDES, setting cache variable VAR accordingly.
2636ac_fn_c_check_member ()
2637{
2638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2640printf %s "checking for $2.$3... " >&6; }
2641if eval test \${$4+y}
2642then :
2643  printf %s "(cached) " >&6
2644else $as_nop
2645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h.  */
2647$5
2648int main (void)
2649{
2650static $2 ac_aggr;
2651if (ac_aggr.$3)
2652return 0;
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_compile "$LINENO"
2658then :
2659  eval "$4=yes"
2660else $as_nop
2661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h.  */
2663$5
2664int main (void)
2665{
2666static $2 ac_aggr;
2667if (sizeof ac_aggr.$3)
2668return 0;
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"
2674then :
2675  eval "$4=yes"
2676else $as_nop
2677  eval "$4=no"
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2682fi
2683eval ac_res=\$$4
2684	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685printf "%s\n" "$ac_res" >&6; }
2686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687
2688} # ac_fn_c_check_member
2689ac_configure_args_raw=
2690for ac_arg
2691do
2692  case $ac_arg in
2693  *\'*)
2694    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695  esac
2696  as_fn_append ac_configure_args_raw " '$ac_arg'"
2697done
2698
2699case $ac_configure_args_raw in
2700  *$as_nl*)
2701    ac_safe_unquote= ;;
2702  *)
2703    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2704    ac_unsafe_a="$ac_unsafe_z#~"
2705    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2706    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2707esac
2708
2709cat >config.log <<_ACEOF
2710This file contains any messages produced by compilers while
2711running configure, to aid debugging if configure makes a mistake.
2712
2713It was created by curl $as_me -, which was
2714generated by GNU Autoconf 2.71.  Invocation command line was
2715
2716  $ $0$ac_configure_args_raw
2717
2718_ACEOF
2719exec 5>>config.log
2720{
2721cat <<_ASUNAME
2722## --------- ##
2723## Platform. ##
2724## --------- ##
2725
2726hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2727uname -m = `(uname -m) 2>/dev/null || echo unknown`
2728uname -r = `(uname -r) 2>/dev/null || echo unknown`
2729uname -s = `(uname -s) 2>/dev/null || echo unknown`
2730uname -v = `(uname -v) 2>/dev/null || echo unknown`
2731
2732/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2733/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2734
2735/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2736/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2737/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2738/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2739/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2740/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2741/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2742
2743_ASUNAME
2744
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  case $as_dir in #(((
2750    '') as_dir=./ ;;
2751    */) ;;
2752    *) as_dir=$as_dir/ ;;
2753  esac
2754    printf "%s\n" "PATH: $as_dir"
2755  done
2756IFS=$as_save_IFS
2757
2758} >&5
2759
2760cat >&5 <<_ACEOF
2761
2762
2763## ----------- ##
2764## Core tests. ##
2765## ----------- ##
2766
2767_ACEOF
2768
2769
2770# Keep a trace of the command line.
2771# Strip out --no-create and --no-recursion so they do not pile up.
2772# Strip out --silent because we don't want to record it for future runs.
2773# Also quote any args containing shell meta-characters.
2774# Make two passes to allow for proper duplicate-argument suppression.
2775ac_configure_args=
2776ac_configure_args0=
2777ac_configure_args1=
2778ac_must_keep_next=false
2779for ac_pass in 1 2
2780do
2781  for ac_arg
2782  do
2783    case $ac_arg in
2784    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2785    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2786    | -silent | --silent | --silen | --sile | --sil)
2787      continue ;;
2788    *\'*)
2789      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2790    esac
2791    case $ac_pass in
2792    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2793    2)
2794      as_fn_append ac_configure_args1 " '$ac_arg'"
2795      if test $ac_must_keep_next = true; then
2796	ac_must_keep_next=false # Got value, back to normal.
2797      else
2798	case $ac_arg in
2799	  *=* | --config-cache | -C | -disable-* | --disable-* \
2800	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2801	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2802	  | -with-* | --with-* | -without-* | --without-* | --x)
2803	    case "$ac_configure_args0 " in
2804	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2805	    esac
2806	    ;;
2807	  -* ) ac_must_keep_next=true ;;
2808	esac
2809      fi
2810      as_fn_append ac_configure_args " '$ac_arg'"
2811      ;;
2812    esac
2813  done
2814done
2815{ ac_configure_args0=; unset ac_configure_args0;}
2816{ ac_configure_args1=; unset ac_configure_args1;}
2817
2818# When interrupted or exit'd, cleanup temporary files, and complete
2819# config.log.  We remove comments because anyway the quotes in there
2820# would cause problems or look ugly.
2821# WARNING: Use '\'' to represent an apostrophe within the trap.
2822# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2823trap 'exit_status=$?
2824  # Sanitize IFS.
2825  IFS=" ""	$as_nl"
2826  # Save into config.log some information that might help in debugging.
2827  {
2828    echo
2829
2830    printf "%s\n" "## ---------------- ##
2831## Cache variables. ##
2832## ---------------- ##"
2833    echo
2834    # The following way of writing the cache mishandles newlines in values,
2835(
2836  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2837    eval ac_val=\$$ac_var
2838    case $ac_val in #(
2839    *${as_nl}*)
2840      case $ac_var in #(
2841      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2842printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2843      esac
2844      case $ac_var in #(
2845      _ | IFS | as_nl) ;; #(
2846      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2847      *) { eval $ac_var=; unset $ac_var;} ;;
2848      esac ;;
2849    esac
2850  done
2851  (set) 2>&1 |
2852    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2853    *${as_nl}ac_space=\ *)
2854      sed -n \
2855	"s/'\''/'\''\\\\'\'''\''/g;
2856	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2857      ;; #(
2858    *)
2859      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2860      ;;
2861    esac |
2862    sort
2863)
2864    echo
2865
2866    printf "%s\n" "## ----------------- ##
2867## Output variables. ##
2868## ----------------- ##"
2869    echo
2870    for ac_var in $ac_subst_vars
2871    do
2872      eval ac_val=\$$ac_var
2873      case $ac_val in
2874      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2875      esac
2876      printf "%s\n" "$ac_var='\''$ac_val'\''"
2877    done | sort
2878    echo
2879
2880    if test -n "$ac_subst_files"; then
2881      printf "%s\n" "## ------------------- ##
2882## File substitutions. ##
2883## ------------------- ##"
2884      echo
2885      for ac_var in $ac_subst_files
2886      do
2887	eval ac_val=\$$ac_var
2888	case $ac_val in
2889	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2890	esac
2891	printf "%s\n" "$ac_var='\''$ac_val'\''"
2892      done | sort
2893      echo
2894    fi
2895
2896    if test -s confdefs.h; then
2897      printf "%s\n" "## ----------- ##
2898## confdefs.h. ##
2899## ----------- ##"
2900      echo
2901      cat confdefs.h
2902      echo
2903    fi
2904    test "$ac_signal" != 0 &&
2905      printf "%s\n" "$as_me: caught signal $ac_signal"
2906    printf "%s\n" "$as_me: exit $exit_status"
2907  } >&5
2908  rm -f core *.core core.conftest.* &&
2909    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2910    exit $exit_status
2911' 0
2912for ac_signal in 1 2 13 15; do
2913  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2914done
2915ac_signal=0
2916
2917# confdefs.h avoids OS command line length limits that DEFS can exceed.
2918rm -f -r conftest* confdefs.h
2919
2920printf "%s\n" "/* confdefs.h */" > confdefs.h
2921
2922# Predefined preprocessor variables.
2923
2924printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2925
2926printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2927
2928printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2929
2930printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2931
2932printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2933
2934printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2935
2936
2937# Let the site file select an alternate cache file if it wants to.
2938# Prefer an explicitly selected file to automatically selected ones.
2939if test -n "$CONFIG_SITE"; then
2940  ac_site_files="$CONFIG_SITE"
2941elif test "x$prefix" != xNONE; then
2942  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2943else
2944  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2945fi
2946
2947for ac_site_file in $ac_site_files
2948do
2949  case $ac_site_file in #(
2950  */*) :
2951     ;; #(
2952  *) :
2953    ac_site_file=./$ac_site_file ;;
2954esac
2955  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2956    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2957printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2958    sed 's/^/| /' "$ac_site_file" >&5
2959    . "$ac_site_file" \
2960      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2962as_fn_error $? "failed to load site script $ac_site_file
2963See \`config.log' for more details" "$LINENO" 5; }
2964  fi
2965done
2966
2967if test -r "$cache_file"; then
2968  # Some versions of bash will fail to source /dev/null (special files
2969  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2970  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2971    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2972printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2973    case $cache_file in
2974      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2975      *)                      . "./$cache_file";;
2976    esac
2977  fi
2978else
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2980printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2981  >$cache_file
2982fi
2983
2984# Test code for whether the C compiler supports C89 (global declarations)
2985ac_c_conftest_c89_globals='
2986/* Does the compiler advertise C89 conformance?
2987   Do not test the value of __STDC__, because some compilers set it to 0
2988   while being otherwise adequately conformant. */
2989#if !defined __STDC__
2990# error "Compiler does not advertise C89 conformance"
2991#endif
2992
2993#include <stddef.h>
2994#include <stdarg.h>
2995struct stat;
2996/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2997struct buf { int x; };
2998struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2999static char *e (p, i)
3000     char **p;
3001     int i;
3002{
3003  return p[i];
3004}
3005static char *f (char * (*g) (char **, int), char **p, ...)
3006{
3007  char *s;
3008  va_list v;
3009  va_start (v,p);
3010  s = g (p, va_arg (v,int));
3011  va_end (v);
3012  return s;
3013}
3014
3015/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3016   function prototypes and stuff, but not \xHH hex character constants.
3017   These do not provoke an error unfortunately, instead are silently treated
3018   as an "x".  The following induces an error, until -std is added to get
3019   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3020   array size at least.  It is necessary to write \x00 == 0 to get something
3021   that is true only with -std.  */
3022int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3023
3024/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3025   inside strings and character constants.  */
3026#define FOO(x) '\''x'\''
3027int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3028
3029int test (int i, double x);
3030struct s1 {int (*f) (int a);};
3031struct s2 {int (*f) (double a);};
3032int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3033               int, int);'
3034
3035# Test code for whether the C compiler supports C89 (body of main).
3036ac_c_conftest_c89_main='
3037ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3038'
3039
3040# Test code for whether the C compiler supports C99 (global declarations)
3041ac_c_conftest_c99_globals='
3042// Does the compiler advertise C99 conformance?
3043#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3044# error "Compiler does not advertise C99 conformance"
3045#endif
3046
3047#include <stdbool.h>
3048extern int puts (const char *);
3049extern int printf (const char *, ...);
3050extern int dprintf (int, const char *, ...);
3051extern void *malloc (size_t);
3052
3053// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3054// dprintf is used instead of fprintf to avoid needing to declare
3055// FILE and stderr.
3056#define debug(...) dprintf (2, __VA_ARGS__)
3057#define showlist(...) puts (#__VA_ARGS__)
3058#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3059static void
3060test_varargs_macros (void)
3061{
3062  int x = 1234;
3063  int y = 5678;
3064  debug ("Flag");
3065  debug ("X = %d\n", x);
3066  showlist (The first, second, and third items.);
3067  report (x>y, "x is %d but y is %d", x, y);
3068}
3069
3070// Check long long types.
3071#define BIG64 18446744073709551615ull
3072#define BIG32 4294967295ul
3073#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3074#if !BIG_OK
3075  #error "your preprocessor is broken"
3076#endif
3077#if BIG_OK
3078#else
3079  #error "your preprocessor is broken"
3080#endif
3081static long long int bignum = -9223372036854775807LL;
3082static unsigned long long int ubignum = BIG64;
3083
3084struct incomplete_array
3085{
3086  int datasize;
3087  double data[];
3088};
3089
3090struct named_init {
3091  int number;
3092  const wchar_t *name;
3093  double average;
3094};
3095
3096typedef const char *ccp;
3097
3098static inline int
3099test_restrict (ccp restrict text)
3100{
3101  // See if C++-style comments work.
3102  // Iterate through items via the restricted pointer.
3103  // Also check for declarations in for loops.
3104  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3105    continue;
3106  return 0;
3107}
3108
3109// Check varargs and va_copy.
3110static bool
3111test_varargs (const char *format, ...)
3112{
3113  va_list args;
3114  va_start (args, format);
3115  va_list args_copy;
3116  va_copy (args_copy, args);
3117
3118  const char *str = "";
3119  int number = 0;
3120  float fnumber = 0;
3121
3122  while (*format)
3123    {
3124      switch (*format++)
3125	{
3126	case '\''s'\'': // string
3127	  str = va_arg (args_copy, const char *);
3128	  break;
3129	case '\''d'\'': // int
3130	  number = va_arg (args_copy, int);
3131	  break;
3132	case '\''f'\'': // float
3133	  fnumber = va_arg (args_copy, double);
3134	  break;
3135	default:
3136	  break;
3137	}
3138    }
3139  va_end (args_copy);
3140  va_end (args);
3141
3142  return *str && number && fnumber;
3143}
3144'
3145
3146# Test code for whether the C compiler supports C99 (body of main).
3147ac_c_conftest_c99_main='
3148  // Check bool.
3149  _Bool success = false;
3150  success |= (argc != 0);
3151
3152  // Check restrict.
3153  if (test_restrict ("String literal") == 0)
3154    success = true;
3155  char *restrict newvar = "Another string";
3156
3157  // Check varargs.
3158  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3159  test_varargs_macros ();
3160
3161  // Check flexible array members.
3162  struct incomplete_array *ia =
3163    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3164  ia->datasize = 10;
3165  for (int i = 0; i < ia->datasize; ++i)
3166    ia->data[i] = i * 1.234;
3167
3168  // Check named initializers.
3169  struct named_init ni = {
3170    .number = 34,
3171    .name = L"Test wide string",
3172    .average = 543.34343,
3173  };
3174
3175  ni.number = 58;
3176
3177  int dynamic_array[ni.number];
3178  dynamic_array[0] = argv[0][0];
3179  dynamic_array[ni.number - 1] = 543;
3180
3181  // work around unused variable warnings
3182  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3183	 || dynamic_array[ni.number - 1] != 543);
3184'
3185
3186# Test code for whether the C compiler supports C11 (global declarations)
3187ac_c_conftest_c11_globals='
3188// Does the compiler advertise C11 conformance?
3189#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3190# error "Compiler does not advertise C11 conformance"
3191#endif
3192
3193// Check _Alignas.
3194char _Alignas (double) aligned_as_double;
3195char _Alignas (0) no_special_alignment;
3196extern char aligned_as_int;
3197char _Alignas (0) _Alignas (int) aligned_as_int;
3198
3199// Check _Alignof.
3200enum
3201{
3202  int_alignment = _Alignof (int),
3203  int_array_alignment = _Alignof (int[100]),
3204  char_alignment = _Alignof (char)
3205};
3206_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3207
3208// Check _Noreturn.
3209int _Noreturn does_not_return (void) { for (;;) continue; }
3210
3211// Check _Static_assert.
3212struct test_static_assert
3213{
3214  int x;
3215  _Static_assert (sizeof (int) <= sizeof (long int),
3216                  "_Static_assert does not work in struct");
3217  long int y;
3218};
3219
3220// Check UTF-8 literals.
3221#define u8 syntax error!
3222char const utf8_literal[] = u8"happens to be ASCII" "another string";
3223
3224// Check duplicate typedefs.
3225typedef long *long_ptr;
3226typedef long int *long_ptr;
3227typedef long_ptr long_ptr;
3228
3229// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3230struct anonymous
3231{
3232  union {
3233    struct { int i; int j; };
3234    struct { int k; long int l; } w;
3235  };
3236  int m;
3237} v1;
3238'
3239
3240# Test code for whether the C compiler supports C11 (body of main).
3241ac_c_conftest_c11_main='
3242  _Static_assert ((offsetof (struct anonymous, i)
3243		   == offsetof (struct anonymous, w.k)),
3244		  "Anonymous union alignment botch");
3245  v1.i = 2;
3246  v1.w.k = 5;
3247  ok |= v1.i != 5;
3248'
3249
3250# Test code for whether the C compiler supports C11 (complete).
3251ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3252${ac_c_conftest_c99_globals}
3253${ac_c_conftest_c11_globals}
3254
3255int
3256main (int argc, char **argv)
3257{
3258  int ok = 0;
3259  ${ac_c_conftest_c89_main}
3260  ${ac_c_conftest_c99_main}
3261  ${ac_c_conftest_c11_main}
3262  return ok;
3263}
3264"
3265
3266# Test code for whether the C compiler supports C99 (complete).
3267ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3268${ac_c_conftest_c99_globals}
3269
3270int
3271main (int argc, char **argv)
3272{
3273  int ok = 0;
3274  ${ac_c_conftest_c89_main}
3275  ${ac_c_conftest_c99_main}
3276  return ok;
3277}
3278"
3279
3280# Test code for whether the C compiler supports C89 (complete).
3281ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3282
3283int
3284main (int argc, char **argv)
3285{
3286  int ok = 0;
3287  ${ac_c_conftest_c89_main}
3288  return ok;
3289}
3290"
3291
3292as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3293as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3294as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3295as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3296as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3297as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3298as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3299as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3300as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3301
3302# Auxiliary files required by this configure script.
3303ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3304
3305# Locations in which to look for auxiliary files.
3306ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3307
3308# Search for a directory containing all of the required auxiliary files,
3309# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3310# If we don't find one directory that contains all the files we need,
3311# we report the set of missing files from the *first* directory in
3312# $ac_aux_dir_candidates and give up.
3313ac_missing_aux_files=""
3314ac_first_candidate=:
3315printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317as_found=false
3318for as_dir in $ac_aux_dir_candidates
3319do
3320  IFS=$as_save_IFS
3321  case $as_dir in #(((
3322    '') as_dir=./ ;;
3323    */) ;;
3324    *) as_dir=$as_dir/ ;;
3325  esac
3326  as_found=:
3327
3328  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3329  ac_aux_dir_found=yes
3330  ac_install_sh=
3331  for ac_aux in $ac_aux_files
3332  do
3333    # As a special case, if "install-sh" is required, that requirement
3334    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3335    # and $ac_install_sh is set appropriately for whichever one is found.
3336    if test x"$ac_aux" = x"install-sh"
3337    then
3338      if test -f "${as_dir}install-sh"; then
3339        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3340        ac_install_sh="${as_dir}install-sh -c"
3341      elif test -f "${as_dir}install.sh"; then
3342        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3343        ac_install_sh="${as_dir}install.sh -c"
3344      elif test -f "${as_dir}shtool"; then
3345        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3346        ac_install_sh="${as_dir}shtool install -c"
3347      else
3348        ac_aux_dir_found=no
3349        if $ac_first_candidate; then
3350          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3351        else
3352          break
3353        fi
3354      fi
3355    else
3356      if test -f "${as_dir}${ac_aux}"; then
3357        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3358      else
3359        ac_aux_dir_found=no
3360        if $ac_first_candidate; then
3361          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3362        else
3363          break
3364        fi
3365      fi
3366    fi
3367  done
3368  if test "$ac_aux_dir_found" = yes; then
3369    ac_aux_dir="$as_dir"
3370    break
3371  fi
3372  ac_first_candidate=false
3373
3374  as_found=false
3375done
3376IFS=$as_save_IFS
3377if $as_found
3378then :
3379
3380else $as_nop
3381  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3382fi
3383
3384
3385# These three variables are undocumented and unsupported,
3386# and are intended to be withdrawn in a future Autoconf release.
3387# They can cause serious problems if a builder's source tree is in a directory
3388# whose full name contains unusual characters.
3389if test -f "${ac_aux_dir}config.guess"; then
3390  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3391fi
3392if test -f "${ac_aux_dir}config.sub"; then
3393  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3394fi
3395if test -f "$ac_aux_dir/configure"; then
3396  ac_configure="$SHELL ${ac_aux_dir}configure"
3397fi
3398
3399# Check that the precious variables saved in the cache have kept the same
3400# value.
3401ac_cache_corrupted=false
3402for ac_var in $ac_precious_vars; do
3403  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3404  eval ac_new_set=\$ac_env_${ac_var}_set
3405  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3406  eval ac_new_val=\$ac_env_${ac_var}_value
3407  case $ac_old_set,$ac_new_set in
3408    set,)
3409      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3410printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3411      ac_cache_corrupted=: ;;
3412    ,set)
3413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3414printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3415      ac_cache_corrupted=: ;;
3416    ,);;
3417    *)
3418      if test "x$ac_old_val" != "x$ac_new_val"; then
3419	# differences in whitespace do not lead to failure.
3420	ac_old_val_w=`echo x $ac_old_val`
3421	ac_new_val_w=`echo x $ac_new_val`
3422	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3423	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3424printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3425	  ac_cache_corrupted=:
3426	else
3427	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3428printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3429	  eval $ac_var=\$ac_old_val
3430	fi
3431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3432printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3434printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3435      fi;;
3436  esac
3437  # Pass precious variables to config.status.
3438  if test "$ac_new_set" = set; then
3439    case $ac_new_val in
3440    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3441    *) ac_arg=$ac_var=$ac_new_val ;;
3442    esac
3443    case " $ac_configure_args " in
3444      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3445      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3446    esac
3447  fi
3448done
3449if $ac_cache_corrupted; then
3450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3453printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3454  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3455	    and start over" "$LINENO" 5
3456fi
3457## -------------------- ##
3458## Main body of script. ##
3459## -------------------- ##
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469
3470
3471
3472
3473# using curl-override.m4
3474
3475
3476
3477
3478
3479ac_config_headers="$ac_config_headers lib/curl_config.h"
3480
3481
3482
3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3484printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3485    # Check whether --enable-maintainer-mode was given.
3486if test ${enable_maintainer_mode+y}
3487then :
3488  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3489else $as_nop
3490  USE_MAINTAINER_MODE=no
3491fi
3492
3493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3494printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3495   if test $USE_MAINTAINER_MODE = yes; then
3496  MAINTAINER_MODE_TRUE=
3497  MAINTAINER_MODE_FALSE='#'
3498else
3499  MAINTAINER_MODE_TRUE='#'
3500  MAINTAINER_MODE_FALSE=
3501fi
3502
3503  MAINT=$MAINTAINER_MODE_TRUE
3504
3505
3506# Check whether --enable-silent-rules was given.
3507if test ${enable_silent_rules+y}
3508then :
3509  enableval=$enable_silent_rules;
3510fi
3511
3512case $enable_silent_rules in # (((
3513  yes) AM_DEFAULT_VERBOSITY=0;;
3514   no) AM_DEFAULT_VERBOSITY=1;;
3515    *) AM_DEFAULT_VERBOSITY=0;;
3516esac
3517am_make=${MAKE-make}
3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519printf %s "checking whether $am_make supports nested variables... " >&6; }
3520if test ${am_cv_make_support_nested_variables+y}
3521then :
3522  printf %s "(cached) " >&6
3523else $as_nop
3524  if printf "%s\n" 'TRUE=$(BAR$(V))
3525BAR0=false
3526BAR1=true
3527V=1
3528am__doit:
3529	@$(TRUE)
3530.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3531  am_cv_make_support_nested_variables=yes
3532else
3533  am_cv_make_support_nested_variables=no
3534fi
3535fi
3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3537printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3538if test $am_cv_make_support_nested_variables = yes; then
3539    AM_V='$(V)'
3540  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3541else
3542  AM_V=$AM_DEFAULT_VERBOSITY
3543  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3544fi
3545AM_BACKSLASH='\'
3546
3547
3548
3549        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3550printf %s "checking whether to enable debug build options... " >&6; }
3551  OPT_DEBUG_BUILD="default"
3552  # Check whether --enable-debug was given.
3553if test ${enable_debug+y}
3554then :
3555  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3556fi
3557
3558  case "$OPT_DEBUG_BUILD" in
3559    no)
3560            want_debug="no"
3561      ;;
3562    default)
3563            want_debug="no"
3564      ;;
3565    *)
3566            want_debug="yes"
3567
3568printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3569
3570      ;;
3571  esac
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3573printf "%s\n" "$want_debug" >&6; }
3574
3575
3576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3577printf %s "checking whether to enable compiler optimizer... " >&6; }
3578  OPT_COMPILER_OPTIMIZE="default"
3579  # Check whether --enable-optimize was given.
3580if test ${enable_optimize+y}
3581then :
3582  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3583fi
3584
3585  case "$OPT_COMPILER_OPTIMIZE" in
3586    no)
3587                              want_optimize="no"
3588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589printf "%s\n" "no" >&6; }
3590      ;;
3591    default)
3592                                                                        if test "$want_debug" = "yes"; then
3593        want_optimize="assume_no"
3594        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3595printf "%s\n" "(assumed) no" >&6; }
3596      else
3597        want_optimize="assume_yes"
3598        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3599printf "%s\n" "(assumed) yes" >&6; }
3600      fi
3601      ;;
3602    *)
3603                              want_optimize="yes"
3604      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605printf "%s\n" "yes" >&6; }
3606      ;;
3607  esac
3608
3609
3610        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3611printf %s "checking whether to enable strict compiler warnings... " >&6; }
3612  OPT_COMPILER_WARNINGS="default"
3613  # Check whether --enable-warnings was given.
3614if test ${enable_warnings+y}
3615then :
3616  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3617fi
3618
3619  case "$OPT_COMPILER_WARNINGS" in
3620    no)
3621            want_warnings="no"
3622      ;;
3623    default)
3624                  want_warnings="$want_debug"
3625      ;;
3626    *)
3627            want_warnings="yes"
3628      ;;
3629  esac
3630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3631printf "%s\n" "$want_warnings" >&6; }
3632
3633
3634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3635printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3636  OPT_COMPILER_WERROR="default"
3637  # Check whether --enable-werror was given.
3638if test ${enable_werror+y}
3639then :
3640  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3641fi
3642
3643  case "$OPT_COMPILER_WERROR" in
3644    no)
3645            want_werror="no"
3646      ;;
3647    default)
3648            want_werror="no"
3649      ;;
3650    *)
3651            want_werror="yes"
3652      ;;
3653  esac
3654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3655printf "%s\n" "$want_werror" >&6; }
3656
3657
3658    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3659printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3660  OPT_CURLDEBUG_BUILD="default"
3661  # Check whether --enable-curldebug was given.
3662if test ${enable_curldebug+y}
3663then :
3664  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3665fi
3666
3667  case "$OPT_CURLDEBUG_BUILD" in
3668    no)
3669            want_curldebug="no"
3670      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671printf "%s\n" "no" >&6; }
3672      ;;
3673    default)
3674                                          if test "$want_debug" = "yes"; then
3675        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3676printf "%s\n" "(assumed) yes" >&6; }
3677
3678printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3679
3680      else
3681        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683      fi
3684      want_curldebug_assumed="yes"
3685      want_curldebug="$want_debug"
3686      ;;
3687    *)
3688                                                      want_curldebug="yes"
3689
3690printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3691
3692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693printf "%s\n" "yes" >&6; }
3694      ;;
3695  esac
3696
3697
3698    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3699printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3700  OPT_SYMBOL_HIDING="default"
3701  # Check whether --enable-symbol-hiding was given.
3702if test ${enable_symbol_hiding+y}
3703then :
3704  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3705fi
3706
3707  case "$OPT_SYMBOL_HIDING" in
3708    no)
3709                              want_symbol_hiding="no"
3710      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711printf "%s\n" "no" >&6; }
3712      ;;
3713    default)
3714                  want_symbol_hiding="yes"
3715      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716printf "%s\n" "yes" >&6; }
3717      ;;
3718    *)
3719                        want_symbol_hiding="yes"
3720      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3721printf "%s\n" "yes" >&6; }
3722      ;;
3723  esac
3724
3725
3726    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3727printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3728  OPT_ARES="default"
3729  # Check whether --enable-ares was given.
3730if test ${enable_ares+y}
3731then :
3732  enableval=$enable_ares; OPT_ARES=$enableval
3733fi
3734
3735  case "$OPT_ARES" in
3736    no)
3737            want_ares="no"
3738      ;;
3739    default)
3740            want_ares="no"
3741      ;;
3742    *)
3743            want_ares="yes"
3744      if test -n "$enableval" && test "$enableval" != "yes"; then
3745        want_ares_path="$enableval"
3746      fi
3747      ;;
3748  esac
3749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3750printf "%s\n" "$want_ares" >&6; }
3751
3752
3753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3754printf %s "checking whether to disable dependency on -lrt... " >&6; }
3755  OPT_RT="default"
3756  # Check whether --enable-rt was given.
3757if test ${enable_rt+y}
3758then :
3759  enableval=$enable_rt; OPT_RT=$enableval
3760fi
3761
3762  case "$OPT_RT" in
3763    no)
3764            dontwant_rt="yes"
3765      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766printf "%s\n" "yes" >&6; }
3767      ;;
3768    default)
3769            dontwant_rt="no"
3770      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3771printf "%s\n" "(assumed no)" >&6; }
3772      ;;
3773    *)
3774            dontwant_rt="no"
3775      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776printf "%s\n" "no" >&6; }
3777      ;;
3778  esac
3779
3780
3781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3782printf %s "checking whether to enable ECH support... " >&6; }
3783  OPT_ECH="default"
3784  # Check whether --enable-ech was given.
3785if test ${enable_ech+y}
3786then :
3787  enableval=$enable_ech; OPT_ECH=$enableval
3788fi
3789
3790  case "$OPT_ECH" in
3791    no)
3792            want_ech="no"
3793      curl_ech_msg="no      (--enable-ech)"
3794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795printf "%s\n" "no" >&6; }
3796      ;;
3797    default)
3798            want_ech="no"
3799      curl_ech_msg="no      (--enable-ech)"
3800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801printf "%s\n" "no" >&6; }
3802      ;;
3803    *)
3804            want_ech="yes"
3805      curl_ech_msg="enabled (--disable-ech)"
3806      experimental="ech"
3807      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808printf "%s\n" "yes" >&6; }
3809      ;;
3810  esac
3811
3812
3813#
3814# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3815#
3816
3817if test -z "$xc_configure_preamble_result"; then
3818  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3819fi
3820
3821#
3822# Check that 'PATH_SEPARATOR' has already been set.
3823#
3824
3825if test -z "$xc_PATH_SEPARATOR"; then
3826  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3827fi
3828if test -z "$PATH_SEPARATOR"; then
3829  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3830fi
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3832printf %s "checking for path separator... " >&6; }
3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3834printf "%s\n" "$PATH_SEPARATOR" >&6; }
3835if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3837printf %s "checking for initial path separator... " >&6; }
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3839printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3840  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3841fi
3842
3843
3844#
3845# save the configure arguments
3846#
3847CONFIGURE_OPTIONS="\"$ac_configure_args\""
3848
3849
3850if test -z "$SED"; then
3851    # Extract the first word of "sed", so it can be a program name with args.
3852set dummy sed; ac_word=$2
3853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854printf %s "checking for $ac_word... " >&6; }
3855if test ${ac_cv_path_SED+y}
3856then :
3857  printf %s "(cached) " >&6
3858else $as_nop
3859  case $SED in
3860  [\\/]* | ?:[\\/]*)
3861  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3862  ;;
3863  *)
3864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865as_dummy="$PATH:/usr/bin:/usr/local/bin"
3866for as_dir in $as_dummy
3867do
3868  IFS=$as_save_IFS
3869  case $as_dir in #(((
3870    '') as_dir=./ ;;
3871    */) ;;
3872    *) as_dir=$as_dir/ ;;
3873  esac
3874    for ac_exec_ext in '' $ac_executable_extensions; do
3875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3876    ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3878    break 2
3879  fi
3880done
3881  done
3882IFS=$as_save_IFS
3883
3884  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3885  ;;
3886esac
3887fi
3888SED=$ac_cv_path_SED
3889if test -n "$SED"; then
3890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3891printf "%s\n" "$SED" >&6; }
3892else
3893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894printf "%s\n" "no" >&6; }
3895fi
3896
3897
3898  if test -z "$SED" || test "$SED" = "not_found"; then
3899    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3900  fi
3901fi
3902
3903
3904if test -z "$GREP"; then
3905    # Extract the first word of "grep", so it can be a program name with args.
3906set dummy grep; ac_word=$2
3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908printf %s "checking for $ac_word... " >&6; }
3909if test ${ac_cv_path_GREP+y}
3910then :
3911  printf %s "(cached) " >&6
3912else $as_nop
3913  case $GREP in
3914  [\\/]* | ?:[\\/]*)
3915  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3916  ;;
3917  *)
3918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919as_dummy="$PATH:/usr/bin:/usr/local/bin"
3920for as_dir in $as_dummy
3921do
3922  IFS=$as_save_IFS
3923  case $as_dir in #(((
3924    '') as_dir=./ ;;
3925    */) ;;
3926    *) as_dir=$as_dir/ ;;
3927  esac
3928    for ac_exec_ext in '' $ac_executable_extensions; do
3929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3930    ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3932    break 2
3933  fi
3934done
3935  done
3936IFS=$as_save_IFS
3937
3938  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3939  ;;
3940esac
3941fi
3942GREP=$ac_cv_path_GREP
3943if test -n "$GREP"; then
3944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3945printf "%s\n" "$GREP" >&6; }
3946else
3947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948printf "%s\n" "no" >&6; }
3949fi
3950
3951
3952  if test -z "$GREP" || test "$GREP" = "not_found"; then
3953    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3954  fi
3955fi
3956
3957
3958if test -z "$EGREP"; then
3959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3960printf %s "checking that grep -E works... " >&6; }
3961  if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3962    EGREP="$GREP -E"
3963    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964printf "%s\n" "yes" >&6; }
3965  else
3966    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967printf "%s\n" "no" >&6; }
3968    # Extract the first word of "egrep", so it can be a program name with args.
3969set dummy egrep; ac_word=$2
3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971printf %s "checking for $ac_word... " >&6; }
3972if test ${ac_cv_path_EGREP+y}
3973then :
3974  printf %s "(cached) " >&6
3975else $as_nop
3976  case $EGREP in
3977  [\\/]* | ?:[\\/]*)
3978  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3979  ;;
3980  *)
3981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982as_dummy="$PATH:/usr/bin:/usr/local/bin"
3983for as_dir in $as_dummy
3984do
3985  IFS=$as_save_IFS
3986  case $as_dir in #(((
3987    '') as_dir=./ ;;
3988    */) ;;
3989    *) as_dir=$as_dir/ ;;
3990  esac
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3993    ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3995    break 2
3996  fi
3997done
3998  done
3999IFS=$as_save_IFS
4000
4001  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4002  ;;
4003esac
4004fi
4005EGREP=$ac_cv_path_EGREP
4006if test -n "$EGREP"; then
4007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4008printf "%s\n" "$EGREP" >&6; }
4009else
4010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011printf "%s\n" "no" >&6; }
4012fi
4013
4014
4015  fi
4016fi
4017if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4018  as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4019fi
4020
4021
4022if test -z "$AR"; then
4023    if test -n "$ac_tool_prefix"; then
4024  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4025set dummy ${ac_tool_prefix}ar; ac_word=$2
4026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027printf %s "checking for $ac_word... " >&6; }
4028if test ${ac_cv_path_AR+y}
4029then :
4030  printf %s "(cached) " >&6
4031else $as_nop
4032  case $AR in
4033  [\\/]* | ?:[\\/]*)
4034  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4035  ;;
4036  *)
4037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038as_dummy="$PATH:/usr/bin:/usr/local/bin"
4039for as_dir in $as_dummy
4040do
4041  IFS=$as_save_IFS
4042  case $as_dir in #(((
4043    '') as_dir=./ ;;
4044    */) ;;
4045    *) as_dir=$as_dir/ ;;
4046  esac
4047    for ac_exec_ext in '' $ac_executable_extensions; do
4048  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4049    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4050    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054  done
4055IFS=$as_save_IFS
4056
4057  ;;
4058esac
4059fi
4060AR=$ac_cv_path_AR
4061if test -n "$AR"; then
4062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4063printf "%s\n" "$AR" >&6; }
4064else
4065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066printf "%s\n" "no" >&6; }
4067fi
4068
4069
4070fi
4071if test -z "$ac_cv_path_AR"; then
4072  ac_pt_AR=$AR
4073  # Extract the first word of "ar", so it can be a program name with args.
4074set dummy ar; ac_word=$2
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076printf %s "checking for $ac_word... " >&6; }
4077if test ${ac_cv_path_ac_pt_AR+y}
4078then :
4079  printf %s "(cached) " >&6
4080else $as_nop
4081  case $ac_pt_AR in
4082  [\\/]* | ?:[\\/]*)
4083  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4084  ;;
4085  *)
4086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087as_dummy="$PATH:/usr/bin:/usr/local/bin"
4088for as_dir in $as_dummy
4089do
4090  IFS=$as_save_IFS
4091  case $as_dir in #(((
4092    '') as_dir=./ ;;
4093    */) ;;
4094    *) as_dir=$as_dir/ ;;
4095  esac
4096    for ac_exec_ext in '' $ac_executable_extensions; do
4097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4098    ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4100    break 2
4101  fi
4102done
4103  done
4104IFS=$as_save_IFS
4105
4106  ;;
4107esac
4108fi
4109ac_pt_AR=$ac_cv_path_ac_pt_AR
4110if test -n "$ac_pt_AR"; then
4111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4112printf "%s\n" "$ac_pt_AR" >&6; }
4113else
4114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115printf "%s\n" "no" >&6; }
4116fi
4117
4118  if test "x$ac_pt_AR" = x; then
4119    AR="not_found"
4120  else
4121    case $cross_compiling:$ac_tool_warned in
4122yes:)
4123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125ac_tool_warned=yes ;;
4126esac
4127    AR=$ac_pt_AR
4128  fi
4129else
4130  AR="$ac_cv_path_AR"
4131fi
4132
4133  if test -z "$AR" || test "$AR" = "not_found"; then
4134    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4135  fi
4136fi
4137
4138
4139
4140
4141CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4142
4143  xc_prog_cc_prev_IFS=$IFS
4144  xc_prog_cc_prev_LIBS=$LIBS
4145  xc_prog_cc_prev_CFLAGS=$CFLAGS
4146  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4147  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4148
4149
4150
4151  xc_bad_var_libs=no
4152  for xc_word in $LIBS; do
4153    case "$xc_word" in
4154      -l* | --library=*)
4155        :
4156        ;;
4157      *)
4158        xc_bad_var_libs=yes
4159        ;;
4160    esac
4161  done
4162  if test $xc_bad_var_libs = yes; then
4163    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4164printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4165    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4166printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4167  fi
4168
4169
4170  xc_bad_var_ldflags=no
4171  for xc_word in $LDFLAGS; do
4172    case "$xc_word" in
4173      -D*)
4174        xc_bad_var_ldflags=yes
4175        ;;
4176      -U*)
4177        xc_bad_var_ldflags=yes
4178        ;;
4179      -I*)
4180        xc_bad_var_ldflags=yes
4181        ;;
4182      -l* | --library=*)
4183        xc_bad_var_ldflags=yes
4184        ;;
4185    esac
4186  done
4187  if test $xc_bad_var_ldflags = yes; then
4188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4189printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4190    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4191    for xc_word in $LDFLAGS; do
4192      case "$xc_word" in
4193        -D*)
4194          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4195printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4196          ;;
4197        -U*)
4198          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4199printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4200          ;;
4201        -I*)
4202          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4203printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4204          ;;
4205        -l* | --library=*)
4206          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4207printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4208          ;;
4209      esac
4210    done
4211  fi
4212
4213
4214  xc_bad_var_cppflags=no
4215  for xc_word in $CPPFLAGS; do
4216    case "$xc_word" in
4217      -rpath*)
4218        xc_bad_var_cppflags=yes
4219        ;;
4220      -L* | --library-path=*)
4221        xc_bad_var_cppflags=yes
4222        ;;
4223      -l* | --library=*)
4224        xc_bad_var_cppflags=yes
4225        ;;
4226    esac
4227  done
4228  if test $xc_bad_var_cppflags = yes; then
4229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4230printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4231    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4232    for xc_word in $CPPFLAGS; do
4233      case "$xc_word" in
4234        -rpath*)
4235          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4236printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4237          ;;
4238        -L* | --library-path=*)
4239          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4240printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4241          ;;
4242        -l* | --library=*)
4243          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4244printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4245          ;;
4246      esac
4247    done
4248  fi
4249
4250
4251  xc_bad_var_cflags=no
4252  for xc_word in $CFLAGS; do
4253    case "$xc_word" in
4254      -D*)
4255        xc_bad_var_cflags=yes
4256        ;;
4257      -U*)
4258        xc_bad_var_cflags=yes
4259        ;;
4260      -I*)
4261        xc_bad_var_cflags=yes
4262        ;;
4263      -rpath*)
4264        xc_bad_var_cflags=yes
4265        ;;
4266      -L* | --library-path=*)
4267        xc_bad_var_cflags=yes
4268        ;;
4269      -l* | --library=*)
4270        xc_bad_var_cflags=yes
4271        ;;
4272    esac
4273  done
4274  if test $xc_bad_var_cflags = yes; then
4275    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4276printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4277    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4278    for xc_word in $CFLAGS; do
4279      case "$xc_word" in
4280        -D*)
4281          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4282printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4283          ;;
4284        -U*)
4285          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4286printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4287          ;;
4288        -I*)
4289          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4290printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4291          ;;
4292        -rpath*)
4293          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4294printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4295          ;;
4296        -L* | --library-path=*)
4297          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4298printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4299          ;;
4300        -l* | --library=*)
4301          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4302printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4303          ;;
4304      esac
4305    done
4306  fi
4307
4308  if test $xc_bad_var_libs = yes ||
4309     test $xc_bad_var_cflags = yes ||
4310     test $xc_bad_var_ldflags = yes ||
4311     test $xc_bad_var_cppflags = yes; then
4312     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4313printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4314  fi
4315
4316
4317
4318  # Find a good install program.  We prefer a C program (faster),
4319# so one script is as good as another.  But avoid the broken or
4320# incompatible versions:
4321# SysV /etc/install, /usr/sbin/install
4322# SunOS /usr/etc/install
4323# IRIX /sbin/install
4324# AIX /bin/install
4325# AmigaOS /C/install, which installs bootblocks on floppy discs
4326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4327# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4329# OS/2's system install, which has a completely different semantic
4330# ./install, which can be erroneously created by make from ./install.sh.
4331# Reject install programs that cannot install multiple files.
4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4333printf %s "checking for a BSD-compatible install... " >&6; }
4334if test -z "$INSTALL"; then
4335if test ${ac_cv_path_install+y}
4336then :
4337  printf %s "(cached) " >&6
4338else $as_nop
4339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342  IFS=$as_save_IFS
4343  case $as_dir in #(((
4344    '') as_dir=./ ;;
4345    */) ;;
4346    *) as_dir=$as_dir/ ;;
4347  esac
4348    # Account for fact that we put trailing slashes in our PATH walk.
4349case $as_dir in #((
4350  ./ | /[cC]/* | \
4351  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4352  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4353  /usr/ucb/* ) ;;
4354  *)
4355    # OSF1 and SCO ODT 3.0 have their own names for install.
4356    # Don't use installbsd from OSF since it installs stuff as root
4357    # by default.
4358    for ac_prog in ginstall scoinst install; do
4359      for ac_exec_ext in '' $ac_executable_extensions; do
4360	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4361	  if test $ac_prog = install &&
4362	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4363	    # AIX install.  It has an incompatible calling convention.
4364	    :
4365	  elif test $ac_prog = install &&
4366	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4367	    # program-specific install script used by HP pwplus--don't use.
4368	    :
4369	  else
4370	    rm -rf conftest.one conftest.two conftest.dir
4371	    echo one > conftest.one
4372	    echo two > conftest.two
4373	    mkdir conftest.dir
4374	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4375	      test -s conftest.one && test -s conftest.two &&
4376	      test -s conftest.dir/conftest.one &&
4377	      test -s conftest.dir/conftest.two
4378	    then
4379	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4380	      break 3
4381	    fi
4382	  fi
4383	fi
4384      done
4385    done
4386    ;;
4387esac
4388
4389  done
4390IFS=$as_save_IFS
4391
4392rm -rf conftest.one conftest.two conftest.dir
4393
4394fi
4395  if test ${ac_cv_path_install+y}; then
4396    INSTALL=$ac_cv_path_install
4397  else
4398    # As a last resort, use the slow shell script.  Don't cache a
4399    # value for INSTALL within a source directory, because that will
4400    # break other packages using the cache if that directory is
4401    # removed, or if the value is a relative name.
4402    INSTALL=$ac_install_sh
4403  fi
4404fi
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4406printf "%s\n" "$INSTALL" >&6; }
4407
4408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4409# It thinks the first close brace ends the variable substitution.
4410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4411
4412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4413
4414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426# Expand $ac_aux_dir to an absolute path.
4427am_aux_dir=`cd "$ac_aux_dir" && pwd`
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434if test -n "$ac_tool_prefix"; then
4435  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4436set dummy ${ac_tool_prefix}gcc; ac_word=$2
4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438printf %s "checking for $ac_word... " >&6; }
4439if test ${ac_cv_prog_CC+y}
4440then :
4441  printf %s "(cached) " >&6
4442else $as_nop
4443  if test -n "$CC"; then
4444  ac_cv_prog_CC="$CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449  IFS=$as_save_IFS
4450  case $as_dir in #(((
4451    '') as_dir=./ ;;
4452    */) ;;
4453    *) as_dir=$as_dir/ ;;
4454  esac
4455    for ac_exec_ext in '' $ac_executable_extensions; do
4456  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4458    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462  done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467CC=$ac_cv_prog_CC
4468if test -n "$CC"; then
4469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470printf "%s\n" "$CC" >&6; }
4471else
4472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473printf "%s\n" "no" >&6; }
4474fi
4475
4476
4477fi
4478if test -z "$ac_cv_prog_CC"; then
4479  ac_ct_CC=$CC
4480  # Extract the first word of "gcc", so it can be a program name with args.
4481set dummy gcc; ac_word=$2
4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483printf %s "checking for $ac_word... " >&6; }
4484if test ${ac_cv_prog_ac_ct_CC+y}
4485then :
4486  printf %s "(cached) " >&6
4487else $as_nop
4488  if test -n "$ac_ct_CC"; then
4489  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4490else
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494  IFS=$as_save_IFS
4495  case $as_dir in #(((
4496    '') as_dir=./ ;;
4497    */) ;;
4498    *) as_dir=$as_dir/ ;;
4499  esac
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4502    ac_cv_prog_ac_ct_CC="gcc"
4503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507  done
4508IFS=$as_save_IFS
4509
4510fi
4511fi
4512ac_ct_CC=$ac_cv_prog_ac_ct_CC
4513if test -n "$ac_ct_CC"; then
4514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4515printf "%s\n" "$ac_ct_CC" >&6; }
4516else
4517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518printf "%s\n" "no" >&6; }
4519fi
4520
4521  if test "x$ac_ct_CC" = x; then
4522    CC=""
4523  else
4524    case $cross_compiling:$ac_tool_warned in
4525yes:)
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528ac_tool_warned=yes ;;
4529esac
4530    CC=$ac_ct_CC
4531  fi
4532else
4533  CC="$ac_cv_prog_CC"
4534fi
4535
4536if test -z "$CC"; then
4537          if test -n "$ac_tool_prefix"; then
4538    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4539set dummy ${ac_tool_prefix}cc; ac_word=$2
4540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541printf %s "checking for $ac_word... " >&6; }
4542if test ${ac_cv_prog_CC+y}
4543then :
4544  printf %s "(cached) " >&6
4545else $as_nop
4546  if test -n "$CC"; then
4547  ac_cv_prog_CC="$CC" # Let the user override the test.
4548else
4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552  IFS=$as_save_IFS
4553  case $as_dir in #(((
4554    '') as_dir=./ ;;
4555    */) ;;
4556    *) as_dir=$as_dir/ ;;
4557  esac
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4560    ac_cv_prog_CC="${ac_tool_prefix}cc"
4561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570CC=$ac_cv_prog_CC
4571if test -n "$CC"; then
4572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573printf "%s\n" "$CC" >&6; }
4574else
4575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576printf "%s\n" "no" >&6; }
4577fi
4578
4579
4580  fi
4581fi
4582if test -z "$CC"; then
4583  # Extract the first word of "cc", so it can be a program name with args.
4584set dummy cc; ac_word=$2
4585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586printf %s "checking for $ac_word... " >&6; }
4587if test ${ac_cv_prog_CC+y}
4588then :
4589  printf %s "(cached) " >&6
4590else $as_nop
4591  if test -n "$CC"; then
4592  ac_cv_prog_CC="$CC" # Let the user override the test.
4593else
4594  ac_prog_rejected=no
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  case $as_dir in #(((
4600    '') as_dir=./ ;;
4601    */) ;;
4602    *) as_dir=$as_dir/ ;;
4603  esac
4604    for ac_exec_ext in '' $ac_executable_extensions; do
4605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4606    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4607       ac_prog_rejected=yes
4608       continue
4609     fi
4610    ac_cv_prog_CC="cc"
4611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4612    break 2
4613  fi
4614done
4615  done
4616IFS=$as_save_IFS
4617
4618if test $ac_prog_rejected = yes; then
4619  # We found a bogon in the path, so make sure we never use it.
4620  set dummy $ac_cv_prog_CC
4621  shift
4622  if test $# != 0; then
4623    # We chose a different compiler from the bogus one.
4624    # However, it has the same basename, so the bogon will be chosen
4625    # first if we set CC to just the basename; use the full file name.
4626    shift
4627    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4628  fi
4629fi
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
4634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635printf "%s\n" "$CC" >&6; }
4636else
4637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638printf "%s\n" "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$CC"; then
4644  if test -n "$ac_tool_prefix"; then
4645  for ac_prog in cl.exe
4646  do
4647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650printf %s "checking for $ac_word... " >&6; }
4651if test ${ac_cv_prog_CC+y}
4652then :
4653  printf %s "(cached) " >&6
4654else $as_nop
4655  if test -n "$CC"; then
4656  ac_cv_prog_CC="$CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  case $as_dir in #(((
4663    '') as_dir=./ ;;
4664    */) ;;
4665    *) as_dir=$as_dir/ ;;
4666  esac
4667    for ac_exec_ext in '' $ac_executable_extensions; do
4668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674  done
4675IFS=$as_save_IFS
4676
4677fi
4678fi
4679CC=$ac_cv_prog_CC
4680if test -n "$CC"; then
4681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4682printf "%s\n" "$CC" >&6; }
4683else
4684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685printf "%s\n" "no" >&6; }
4686fi
4687
4688
4689    test -n "$CC" && break
4690  done
4691fi
4692if test -z "$CC"; then
4693  ac_ct_CC=$CC
4694  for ac_prog in cl.exe
4695do
4696  # Extract the first word of "$ac_prog", so it can be a program name with args.
4697set dummy $ac_prog; ac_word=$2
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699printf %s "checking for $ac_word... " >&6; }
4700if test ${ac_cv_prog_ac_ct_CC+y}
4701then :
4702  printf %s "(cached) " >&6
4703else $as_nop
4704  if test -n "$ac_ct_CC"; then
4705  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710  IFS=$as_save_IFS
4711  case $as_dir in #(((
4712    '') as_dir=./ ;;
4713    */) ;;
4714    *) as_dir=$as_dir/ ;;
4715  esac
4716    for ac_exec_ext in '' $ac_executable_extensions; do
4717  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4718    ac_cv_prog_ac_ct_CC="$ac_prog"
4719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4720    break 2
4721  fi
4722done
4723  done
4724IFS=$as_save_IFS
4725
4726fi
4727fi
4728ac_ct_CC=$ac_cv_prog_ac_ct_CC
4729if test -n "$ac_ct_CC"; then
4730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4731printf "%s\n" "$ac_ct_CC" >&6; }
4732else
4733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734printf "%s\n" "no" >&6; }
4735fi
4736
4737
4738  test -n "$ac_ct_CC" && break
4739done
4740
4741  if test "x$ac_ct_CC" = x; then
4742    CC=""
4743  else
4744    case $cross_compiling:$ac_tool_warned in
4745yes:)
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4747printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4748ac_tool_warned=yes ;;
4749esac
4750    CC=$ac_ct_CC
4751  fi
4752fi
4753
4754fi
4755if test -z "$CC"; then
4756  if test -n "$ac_tool_prefix"; then
4757  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}clang; ac_word=$2
4759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760printf %s "checking for $ac_word... " >&6; }
4761if test ${ac_cv_prog_CC+y}
4762then :
4763  printf %s "(cached) " >&6
4764else $as_nop
4765  if test -n "$CC"; then
4766  ac_cv_prog_CC="$CC" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  case $as_dir in #(((
4773    '') as_dir=./ ;;
4774    */) ;;
4775    *) as_dir=$as_dir/ ;;
4776  esac
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4779    ac_cv_prog_CC="${ac_tool_prefix}clang"
4780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784  done
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789CC=$ac_cv_prog_CC
4790if test -n "$CC"; then
4791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792printf "%s\n" "$CC" >&6; }
4793else
4794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795printf "%s\n" "no" >&6; }
4796fi
4797
4798
4799fi
4800if test -z "$ac_cv_prog_CC"; then
4801  ac_ct_CC=$CC
4802  # Extract the first word of "clang", so it can be a program name with args.
4803set dummy clang; ac_word=$2
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805printf %s "checking for $ac_word... " >&6; }
4806if test ${ac_cv_prog_ac_ct_CC+y}
4807then :
4808  printf %s "(cached) " >&6
4809else $as_nop
4810  if test -n "$ac_ct_CC"; then
4811  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  case $as_dir in #(((
4818    '') as_dir=./ ;;
4819    */) ;;
4820    *) as_dir=$as_dir/ ;;
4821  esac
4822    for ac_exec_ext in '' $ac_executable_extensions; do
4823  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4824    ac_cv_prog_ac_ct_CC="clang"
4825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829  done
4830IFS=$as_save_IFS
4831
4832fi
4833fi
4834ac_ct_CC=$ac_cv_prog_ac_ct_CC
4835if test -n "$ac_ct_CC"; then
4836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4837printf "%s\n" "$ac_ct_CC" >&6; }
4838else
4839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840printf "%s\n" "no" >&6; }
4841fi
4842
4843  if test "x$ac_ct_CC" = x; then
4844    CC=""
4845  else
4846    case $cross_compiling:$ac_tool_warned in
4847yes:)
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850ac_tool_warned=yes ;;
4851esac
4852    CC=$ac_ct_CC
4853  fi
4854else
4855  CC="$ac_cv_prog_CC"
4856fi
4857
4858fi
4859
4860
4861test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4863as_fn_error $? "no acceptable C compiler found in \$PATH
4864See \`config.log' for more details" "$LINENO" 5; }
4865
4866# Provide some information about the compiler.
4867printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4868set X $ac_compile
4869ac_compiler=$2
4870for ac_option in --version -v -V -qversion -version; do
4871  { { ac_try="$ac_compiler $ac_option >&5"
4872case "(($ac_try" in
4873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874  *) ac_try_echo=$ac_try;;
4875esac
4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877printf "%s\n" "$ac_try_echo"; } >&5
4878  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4879  ac_status=$?
4880  if test -s conftest.err; then
4881    sed '10a\
4882... rest of stderr output deleted ...
4883         10q' conftest.err >conftest.er1
4884    cat conftest.er1 >&5
4885  fi
4886  rm -f conftest.er1 conftest.err
4887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888  test $ac_status = 0; }
4889done
4890
4891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893
4894int main (void)
4895{
4896
4897 ;
4898 return 0;
4899}
4900_ACEOF
4901ac_clean_files_save=$ac_clean_files
4902ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4903# Try to create an executable without -o first, disregard a.out.
4904# It will help us diagnose broken compilers, and finding out an intuition
4905# of exeext.
4906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4907printf %s "checking whether the C compiler works... " >&6; }
4908ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4909
4910# The possible output files:
4911ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4912
4913ac_rmfiles=
4914for ac_file in $ac_files
4915do
4916  case $ac_file in
4917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4918    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4919  esac
4920done
4921rm -f $ac_rmfiles
4922
4923if { { ac_try="$ac_link_default"
4924case "(($ac_try" in
4925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926  *) ac_try_echo=$ac_try;;
4927esac
4928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929printf "%s\n" "$ac_try_echo"; } >&5
4930  (eval "$ac_link_default") 2>&5
4931  ac_status=$?
4932  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933  test $ac_status = 0; }
4934then :
4935  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4936# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4937# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4938# so that the user can short-circuit this test for compilers unknown to
4939# Autoconf.
4940for ac_file in $ac_files ''
4941do
4942  test -f "$ac_file" || continue
4943  case $ac_file in
4944    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4945	;;
4946    [ab].out )
4947	# We found the default executable, but exeext='' is most
4948	# certainly right.
4949	break;;
4950    *.* )
4951	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4952	then :; else
4953	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4954	fi
4955	# We set ac_cv_exeext here because the later test for it is not
4956	# safe: cross compilers may not add the suffix if given an `-o'
4957	# argument, so we may need to know it at that point already.
4958	# Even if this section looks crufty: it has the advantage of
4959	# actually working.
4960	break;;
4961    * )
4962	break;;
4963  esac
4964done
4965test "$ac_cv_exeext" = no && ac_cv_exeext=
4966
4967else $as_nop
4968  ac_file=''
4969fi
4970if test -z "$ac_file"
4971then :
4972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973printf "%s\n" "no" >&6; }
4974printf "%s\n" "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4979as_fn_error 77 "C compiler cannot create executables
4980See \`config.log' for more details" "$LINENO" 5; }
4981else $as_nop
4982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983printf "%s\n" "yes" >&6; }
4984fi
4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4986printf %s "checking for C compiler default output file name... " >&6; }
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4988printf "%s\n" "$ac_file" >&6; }
4989ac_exeext=$ac_cv_exeext
4990
4991rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4992ac_clean_files=$ac_clean_files_save
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4994printf %s "checking for suffix of executables... " >&6; }
4995if { { ac_try="$ac_link"
4996case "(($ac_try" in
4997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998  *) ac_try_echo=$ac_try;;
4999esac
5000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5001printf "%s\n" "$ac_try_echo"; } >&5
5002  (eval "$ac_link") 2>&5
5003  ac_status=$?
5004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5005  test $ac_status = 0; }
5006then :
5007  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5008# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5009# work properly (i.e., refer to `conftest.exe'), while it won't with
5010# `rm'.
5011for ac_file in conftest.exe conftest conftest.*; do
5012  test -f "$ac_file" || continue
5013  case $ac_file in
5014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5015    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5016	  break;;
5017    * ) break;;
5018  esac
5019done
5020else $as_nop
5021  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5023as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5024See \`config.log' for more details" "$LINENO" 5; }
5025fi
5026rm -f conftest conftest$ac_cv_exeext
5027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5028printf "%s\n" "$ac_cv_exeext" >&6; }
5029
5030rm -f conftest.$ac_ext
5031EXEEXT=$ac_cv_exeext
5032ac_exeext=$EXEEXT
5033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035#include <stdio.h>
5036int main (void)
5037{
5038FILE *f = fopen ("conftest.out", "w");
5039 return ferror (f) || fclose (f) != 0;
5040
5041 ;
5042 return 0;
5043}
5044_ACEOF
5045ac_clean_files="$ac_clean_files conftest.out"
5046# Check that the compiler produces executables we can run.  If not, either
5047# the compiler is broken, or we cross compile.
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5049printf %s "checking whether we are cross compiling... " >&6; }
5050if test "$cross_compiling" != yes; then
5051  { { ac_try="$ac_link"
5052case "(($ac_try" in
5053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054  *) ac_try_echo=$ac_try;;
5055esac
5056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5057printf "%s\n" "$ac_try_echo"; } >&5
5058  (eval "$ac_link") 2>&5
5059  ac_status=$?
5060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061  test $ac_status = 0; }
5062  if { ac_try='./conftest$ac_cv_exeext'
5063  { { case "(($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_try") 2>&5
5070  ac_status=$?
5071  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072  test $ac_status = 0; }; }; then
5073    cross_compiling=no
5074  else
5075    if test "$cross_compiling" = maybe; then
5076	cross_compiling=yes
5077    else
5078	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5079printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5080as_fn_error 77 "cannot run C compiled programs.
5081If you meant to cross compile, use \`--host'.
5082See \`config.log' for more details" "$LINENO" 5; }
5083    fi
5084  fi
5085fi
5086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5087printf "%s\n" "$cross_compiling" >&6; }
5088
5089rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5090ac_clean_files=$ac_clean_files_save
5091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5092printf %s "checking for suffix of object files... " >&6; }
5093if test ${ac_cv_objext+y}
5094then :
5095  printf %s "(cached) " >&6
5096else $as_nop
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099
5100int main (void)
5101{
5102
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107rm -f conftest.o conftest.obj
5108if { { ac_try="$ac_compile"
5109case "(($ac_try" in
5110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111  *) ac_try_echo=$ac_try;;
5112esac
5113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114printf "%s\n" "$ac_try_echo"; } >&5
5115  (eval "$ac_compile") 2>&5
5116  ac_status=$?
5117  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118  test $ac_status = 0; }
5119then :
5120  for ac_file in conftest.o conftest.obj conftest.*; do
5121  test -f "$ac_file" || continue;
5122  case $ac_file in
5123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5124    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5125       break;;
5126  esac
5127done
5128else $as_nop
5129  printf "%s\n" "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5134as_fn_error $? "cannot compute suffix of object files: cannot compile
5135See \`config.log' for more details" "$LINENO" 5; }
5136fi
5137rm -f conftest.$ac_cv_objext conftest.$ac_ext
5138fi
5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5140printf "%s\n" "$ac_cv_objext" >&6; }
5141OBJEXT=$ac_cv_objext
5142ac_objext=$OBJEXT
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5144printf %s "checking whether the compiler supports GNU C... " >&6; }
5145if test ${ac_cv_c_compiler_gnu+y}
5146then :
5147  printf %s "(cached) " >&6
5148else $as_nop
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151
5152int main (void)
5153{
5154#ifndef __GNUC__
5155       choke me
5156#endif
5157
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"
5163then :
5164  ac_compiler_gnu=yes
5165else $as_nop
5166  ac_compiler_gnu=no
5167fi
5168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5169ac_cv_c_compiler_gnu=$ac_compiler_gnu
5170
5171fi
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5173printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176if test $ac_compiler_gnu = yes; then
5177  GCC=yes
5178else
5179  GCC=
5180fi
5181ac_test_CFLAGS=${CFLAGS+y}
5182ac_save_CFLAGS=$CFLAGS
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5184printf %s "checking whether $CC accepts -g... " >&6; }
5185if test ${ac_cv_prog_cc_g+y}
5186then :
5187  printf %s "(cached) " >&6
5188else $as_nop
5189  ac_save_c_werror_flag=$ac_c_werror_flag
5190   ac_c_werror_flag=yes
5191   ac_cv_prog_cc_g=no
5192   CFLAGS="-g"
5193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195
5196int main (void)
5197{
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"
5204then :
5205  ac_cv_prog_cc_g=yes
5206else $as_nop
5207  CFLAGS=""
5208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210
5211int main (void)
5212{
5213
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"
5219then :
5220
5221else $as_nop
5222  ac_c_werror_flag=$ac_save_c_werror_flag
5223	 CFLAGS="-g"
5224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226
5227int main (void)
5228{
5229
5230 ;
5231 return 0;
5232}
5233_ACEOF
5234if ac_fn_c_try_compile "$LINENO"
5235then :
5236  ac_cv_prog_cc_g=yes
5237fi
5238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5239fi
5240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5241fi
5242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5243   ac_c_werror_flag=$ac_save_c_werror_flag
5244fi
5245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5246printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5247if test $ac_test_CFLAGS; then
5248  CFLAGS=$ac_save_CFLAGS
5249elif test $ac_cv_prog_cc_g = yes; then
5250  if test "$GCC" = yes; then
5251    CFLAGS="-g -O2"
5252  else
5253    CFLAGS="-g"
5254  fi
5255else
5256  if test "$GCC" = yes; then
5257    CFLAGS="-O2"
5258  else
5259    CFLAGS=
5260  fi
5261fi
5262ac_prog_cc_stdc=no
5263if test x$ac_prog_cc_stdc = xno
5264then :
5265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5266printf %s "checking for $CC option to enable C11 features... " >&6; }
5267if test ${ac_cv_prog_cc_c11+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  ac_cv_prog_cc_c11=no
5272ac_save_CC=$CC
5273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275$ac_c_conftest_c11_program
5276_ACEOF
5277for ac_arg in '' -std=gnu11
5278do
5279  CC="$ac_save_CC $ac_arg"
5280  if ac_fn_c_try_compile "$LINENO"
5281then :
5282  ac_cv_prog_cc_c11=$ac_arg
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.beam
5285  test "x$ac_cv_prog_cc_c11" != "xno" && break
5286done
5287rm -f conftest.$ac_ext
5288CC=$ac_save_CC
5289fi
5290
5291if test "x$ac_cv_prog_cc_c11" = xno
5292then :
5293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5294printf "%s\n" "unsupported" >&6; }
5295else $as_nop
5296  if test "x$ac_cv_prog_cc_c11" = x
5297then :
5298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5299printf "%s\n" "none needed" >&6; }
5300else $as_nop
5301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5302printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5303     CC="$CC $ac_cv_prog_cc_c11"
5304fi
5305  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5306  ac_prog_cc_stdc=c11
5307fi
5308fi
5309if test x$ac_prog_cc_stdc = xno
5310then :
5311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5312printf %s "checking for $CC option to enable C99 features... " >&6; }
5313if test ${ac_cv_prog_cc_c99+y}
5314then :
5315  printf %s "(cached) " >&6
5316else $as_nop
5317  ac_cv_prog_cc_c99=no
5318ac_save_CC=$CC
5319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321$ac_c_conftest_c99_program
5322_ACEOF
5323for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5324do
5325  CC="$ac_save_CC $ac_arg"
5326  if ac_fn_c_try_compile "$LINENO"
5327then :
5328  ac_cv_prog_cc_c99=$ac_arg
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.beam
5331  test "x$ac_cv_prog_cc_c99" != "xno" && break
5332done
5333rm -f conftest.$ac_ext
5334CC=$ac_save_CC
5335fi
5336
5337if test "x$ac_cv_prog_cc_c99" = xno
5338then :
5339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5340printf "%s\n" "unsupported" >&6; }
5341else $as_nop
5342  if test "x$ac_cv_prog_cc_c99" = x
5343then :
5344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5345printf "%s\n" "none needed" >&6; }
5346else $as_nop
5347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5348printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5349     CC="$CC $ac_cv_prog_cc_c99"
5350fi
5351  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5352  ac_prog_cc_stdc=c99
5353fi
5354fi
5355if test x$ac_prog_cc_stdc = xno
5356then :
5357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5358printf %s "checking for $CC option to enable C89 features... " >&6; }
5359if test ${ac_cv_prog_cc_c89+y}
5360then :
5361  printf %s "(cached) " >&6
5362else $as_nop
5363  ac_cv_prog_cc_c89=no
5364ac_save_CC=$CC
5365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h.  */
5367$ac_c_conftest_c89_program
5368_ACEOF
5369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5370do
5371  CC="$ac_save_CC $ac_arg"
5372  if ac_fn_c_try_compile "$LINENO"
5373then :
5374  ac_cv_prog_cc_c89=$ac_arg
5375fi
5376rm -f core conftest.err conftest.$ac_objext conftest.beam
5377  test "x$ac_cv_prog_cc_c89" != "xno" && break
5378done
5379rm -f conftest.$ac_ext
5380CC=$ac_save_CC
5381fi
5382
5383if test "x$ac_cv_prog_cc_c89" = xno
5384then :
5385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5386printf "%s\n" "unsupported" >&6; }
5387else $as_nop
5388  if test "x$ac_cv_prog_cc_c89" = x
5389then :
5390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5391printf "%s\n" "none needed" >&6; }
5392else $as_nop
5393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5394printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5395     CC="$CC $ac_cv_prog_cc_c89"
5396fi
5397  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5398  ac_prog_cc_stdc=c89
5399fi
5400fi
5401
5402ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408
5409  ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5415printf %s "checking whether $CC understands -c and -o together... " >&6; }
5416if test ${am_cv_prog_cc_c_o+y}
5417then :
5418  printf %s "(cached) " >&6
5419else $as_nop
5420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422
5423int main (void)
5424{
5425
5426 ;
5427 return 0;
5428}
5429_ACEOF
5430  # Make sure it works both with $CC and with simple cc.
5431  # Following AC_PROG_CC_C_O, we do the test twice because some
5432  # compilers refuse to overwrite an existing .o file with -o,
5433  # though they will create one.
5434  am_cv_prog_cc_c_o=yes
5435  for am_i in 1 2; do
5436    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5437   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } \
5441         && test -f conftest2.$ac_objext; then
5442      : OK
5443    else
5444      am_cv_prog_cc_c_o=no
5445      break
5446    fi
5447  done
5448  rm -f core conftest*
5449  unset am_i
5450fi
5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5452printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5453if test "$am_cv_prog_cc_c_o" != yes; then
5454   # Losing compiler, so override with the script.
5455   # FIXME: It is wrong to rewrite CC.
5456   # But if we don't then we get into trouble of one sort or another.
5457   # A longer-term fix would be to have automake use am__CC in this case,
5458   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5459   CC="$am_aux_dir/compile $CC"
5460fi
5461ac_ext=c
5462ac_cpp='$CPP $CPPFLAGS'
5463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466
5467
5468
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5475printf %s "checking how to run the C preprocessor... " >&6; }
5476# On Suns, sometimes $CPP names a directory.
5477if test -n "$CPP" && test -d "$CPP"; then
5478  CPP=
5479fi
5480if test -z "$CPP"; then
5481  if test ${ac_cv_prog_CPP+y}
5482then :
5483  printf %s "(cached) " >&6
5484else $as_nop
5485      # Double quotes because $CC needs to be expanded
5486    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5487    do
5488      ac_preproc_ok=false
5489for ac_c_preproc_warn_flag in '' yes
5490do
5491  # Use a header file that comes with gcc, so configuring glibc
5492  # with a fresh cross-compiler works.
5493  # On the NeXT, cc -E runs the code through the compiler's parser,
5494  # not just through cpp. "Syntax error" is here to catch this case.
5495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497#include <limits.h>
5498		     Syntax error
5499_ACEOF
5500if ac_fn_c_try_cpp "$LINENO"
5501then :
5502
5503else $as_nop
5504  # Broken: fails on valid input.
5505continue
5506fi
5507rm -f conftest.err conftest.i conftest.$ac_ext
5508
5509  # OK, works on sane cases.  Now check whether nonexistent headers
5510  # can be detected and how.
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513#include <ac_nonexistent.h>
5514_ACEOF
5515if ac_fn_c_try_cpp "$LINENO"
5516then :
5517  # Broken: success on invalid input.
5518continue
5519else $as_nop
5520  # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
5524rm -f conftest.err conftest.i conftest.$ac_ext
5525
5526done
5527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5528rm -f conftest.i conftest.err conftest.$ac_ext
5529if $ac_preproc_ok
5530then :
5531  break
5532fi
5533
5534    done
5535    ac_cv_prog_CPP=$CPP
5536
5537fi
5538  CPP=$ac_cv_prog_CPP
5539else
5540  ac_cv_prog_CPP=$CPP
5541fi
5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5543printf "%s\n" "$CPP" >&6; }
5544ac_preproc_ok=false
5545for ac_c_preproc_warn_flag in '' yes
5546do
5547  # Use a header file that comes with gcc, so configuring glibc
5548  # with a fresh cross-compiler works.
5549  # On the NeXT, cc -E runs the code through the compiler's parser,
5550  # not just through cpp. "Syntax error" is here to catch this case.
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553#include <limits.h>
5554		     Syntax error
5555_ACEOF
5556if ac_fn_c_try_cpp "$LINENO"
5557then :
5558
5559else $as_nop
5560  # Broken: fails on valid input.
5561continue
5562fi
5563rm -f conftest.err conftest.i conftest.$ac_ext
5564
5565  # OK, works on sane cases.  Now check whether nonexistent headers
5566  # can be detected and how.
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569#include <ac_nonexistent.h>
5570_ACEOF
5571if ac_fn_c_try_cpp "$LINENO"
5572then :
5573  # Broken: success on invalid input.
5574continue
5575else $as_nop
5576  # Passes both tests.
5577ac_preproc_ok=:
5578break
5579fi
5580rm -f conftest.err conftest.i conftest.$ac_ext
5581
5582done
5583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5584rm -f conftest.i conftest.err conftest.$ac_ext
5585if $ac_preproc_ok
5586then :
5587
5588else $as_nop
5589  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5590printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5591as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5592See \`config.log' for more details" "$LINENO" 5; }
5593fi
5594
5595ac_ext=c
5596ac_cpp='$CPP $CPPFLAGS'
5597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601
5602  IFS=$xc_prog_cc_prev_IFS
5603  LIBS=$xc_prog_cc_prev_LIBS
5604  CFLAGS=$xc_prog_cc_prev_CFLAGS
5605  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5606  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5607
5608
5609
5610
5611
5612
5613ac_header= ac_cache=
5614for ac_item in $ac_header_c_list
5615do
5616  if test $ac_cache; then
5617    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5618    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5619      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5620    fi
5621    ac_header= ac_cache=
5622  elif test $ac_header; then
5623    ac_cache=$ac_item
5624  else
5625    ac_header=$ac_item
5626  fi
5627done
5628
5629
5630
5631
5632
5633
5634
5635
5636if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5637then :
5638
5639printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5640
5641fi
5642
5643         for ac_header in stdatomic.h
5644do :
5645  ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5646if test "x$ac_cv_header_stdatomic_h" = xyes
5647then :
5648  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5649
5650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5651printf %s "checking if _Atomic is available... " >&6; }
5652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654
5655
5656        $curl_includes_unistd
5657
5658int main (void)
5659{
5660
5661        _Atomic int i = 0;
5662        i = 4;  // Force an atomic-write operation.
5663
5664 ;
5665 return 0;
5666}
5667
5668_ACEOF
5669if ac_fn_c_try_link "$LINENO"
5670then :
5671
5672      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673printf "%s\n" "yes" >&6; }
5674
5675printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5676
5677      tst_atomic="yes"
5678
5679else $as_nop
5680
5681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682printf "%s\n" "no" >&6; }
5683      tst_atomic="no"
5684
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.beam \
5687    conftest$ac_exeext conftest.$ac_ext
5688
5689fi
5690
5691done
5692
5693
5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5695printf %s "checking for a sed that does not truncate output... " >&6; }
5696if test ${ac_cv_path_SED+y}
5697then :
5698  printf %s "(cached) " >&6
5699else $as_nop
5700            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5701     for ac_i in 1 2 3 4 5 6 7; do
5702       ac_script="$ac_script$as_nl$ac_script"
5703     done
5704     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5705     { ac_script=; unset ac_script;}
5706     if test -z "$SED"; then
5707  ac_path_SED_found=false
5708  # Loop through the user's path and test for each of PROGNAME-LIST
5709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  case $as_dir in #(((
5714    '') as_dir=./ ;;
5715    */) ;;
5716    *) as_dir=$as_dir/ ;;
5717  esac
5718    for ac_prog in sed gsed
5719   do
5720    for ac_exec_ext in '' $ac_executable_extensions; do
5721      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5722      as_fn_executable_p "$ac_path_SED" || continue
5723# Check for GNU ac_path_SED and select it if it is found.
5724  # Check for GNU $ac_path_SED
5725case `"$ac_path_SED" --version 2>&1` in
5726*GNU*)
5727  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5728*)
5729  ac_count=0
5730  printf %s 0123456789 >"conftest.in"
5731  while :
5732  do
5733    cat "conftest.in" "conftest.in" >"conftest.tmp"
5734    mv "conftest.tmp" "conftest.in"
5735    cp "conftest.in" "conftest.nl"
5736    printf "%s\n" '' >> "conftest.nl"
5737    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739    as_fn_arith $ac_count + 1 && ac_count=$as_val
5740    if test $ac_count -gt ${ac_path_SED_max-0}; then
5741      # Best one so far, save it but keep looking for a better one
5742      ac_cv_path_SED="$ac_path_SED"
5743      ac_path_SED_max=$ac_count
5744    fi
5745    # 10*(2^10) chars as input seems more than enough
5746    test $ac_count -gt 10 && break
5747  done
5748  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749esac
5750
5751      $ac_path_SED_found && break 3
5752    done
5753  done
5754  done
5755IFS=$as_save_IFS
5756  if test -z "$ac_cv_path_SED"; then
5757    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5758  fi
5759else
5760  ac_cv_path_SED=$SED
5761fi
5762
5763fi
5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5765printf "%s\n" "$ac_cv_path_SED" >&6; }
5766 SED="$ac_cv_path_SED"
5767  rm -f conftest.sed
5768
5769
5770
5771
5772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5773printf %s "checking for code coverage support... " >&6; }
5774  coverage="no"
5775  curl_coverage_msg="disabled"
5776
5777    # Check whether --enable-code-coverage was given.
5778if test ${enable_code_coverage+y}
5779then :
5780  enableval=$enable_code_coverage; coverage="$enableval"
5781fi
5782
5783
5784    if  test "$GCC" != "yes"
5785then :
5786  coverage="no"
5787fi
5788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5789printf "%s\n" "$coverage" >&6; }
5790
5791  if test "x$coverage" = "xyes"; then
5792    curl_coverage_msg="enabled"
5793
5794    if test -n "$ac_tool_prefix"; then
5795  # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5796set dummy ${ac_tool_prefix}gcov; ac_word=$2
5797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798printf %s "checking for $ac_word... " >&6; }
5799if test ${ac_cv_prog_GCOV+y}
5800then :
5801  printf %s "(cached) " >&6
5802else $as_nop
5803  if test -n "$GCOV"; then
5804  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  case $as_dir in #(((
5811    '') as_dir=./ ;;
5812    */) ;;
5813    *) as_dir=$as_dir/ ;;
5814  esac
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827GCOV=$ac_cv_prog_GCOV
5828if test -n "$GCOV"; then
5829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5830printf "%s\n" "$GCOV" >&6; }
5831else
5832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833printf "%s\n" "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_prog_GCOV"; then
5839  ac_ct_GCOV=$GCOV
5840  # Extract the first word of "gcov", so it can be a program name with args.
5841set dummy gcov; ac_word=$2
5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843printf %s "checking for $ac_word... " >&6; }
5844if test ${ac_cv_prog_ac_ct_GCOV+y}
5845then :
5846  printf %s "(cached) " >&6
5847else $as_nop
5848  if test -n "$ac_ct_GCOV"; then
5849  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854  IFS=$as_save_IFS
5855  case $as_dir in #(((
5856    '') as_dir=./ ;;
5857    */) ;;
5858    *) as_dir=$as_dir/ ;;
5859  esac
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5862    ac_cv_prog_ac_ct_GCOV="gcov"
5863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5873if test -n "$ac_ct_GCOV"; then
5874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5875printf "%s\n" "$ac_ct_GCOV" >&6; }
5876else
5877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878printf "%s\n" "no" >&6; }
5879fi
5880
5881  if test "x$ac_ct_GCOV" = x; then
5882    GCOV="gcov"
5883  else
5884    case $cross_compiling:$ac_tool_warned in
5885yes:)
5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888ac_tool_warned=yes ;;
5889esac
5890    GCOV=$ac_ct_GCOV
5891  fi
5892else
5893  GCOV="$ac_cv_prog_GCOV"
5894fi
5895
5896    if test -z "$GCOV"; then
5897      as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5898    fi
5899    # Extract the first word of "lcov", so it can be a program name with args.
5900set dummy lcov; ac_word=$2
5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902printf %s "checking for $ac_word... " >&6; }
5903if test ${ac_cv_prog_LCOV+y}
5904then :
5905  printf %s "(cached) " >&6
5906else $as_nop
5907  if test -n "$LCOV"; then
5908  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  case $as_dir in #(((
5915    '') as_dir=./ ;;
5916    */) ;;
5917    *) as_dir=$as_dir/ ;;
5918  esac
5919    for ac_exec_ext in '' $ac_executable_extensions; do
5920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5921    ac_cv_prog_LCOV="lcov"
5922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926  done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931LCOV=$ac_cv_prog_LCOV
5932if test -n "$LCOV"; then
5933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5934printf "%s\n" "$LCOV" >&6; }
5935else
5936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937printf "%s\n" "no" >&6; }
5938fi
5939
5940
5941    if test -z "$LCOV"; then
5942      as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5943    fi
5944
5945    CPPFLAGS="$CPPFLAGS -DNDEBUG"
5946    CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5947    LIBS="$LIBS -lgcov"
5948  fi
5949
5950
5951am__api_version='1.16'
5952
5953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5954printf %s "checking whether build environment is sane... " >&6; }
5955# Reject unsafe characters in $srcdir or the absolute working directory
5956# name.  Accept space and tab only in the latter.
5957am_lf='
5958'
5959case `pwd` in
5960  *[\\\"\#\$\&\'\`$am_lf]*)
5961    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5962esac
5963case $srcdir in
5964  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5965    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5966esac
5967
5968# Do 'set' in a subshell so we don't clobber the current shell's
5969# arguments.  Must try -L first in case configure is actually a
5970# symlink; some systems play weird games with the mod time of symlinks
5971# (eg FreeBSD returns the mod time of the symlink's containing
5972# directory).
5973if (
5974   am_has_slept=no
5975   for am_try in 1 2; do
5976     echo "timestamp, slept: $am_has_slept" > conftest.file
5977     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5978     if test "$*" = "X"; then
5979	# -L didn't work.
5980	set X `ls -t "$srcdir/configure" conftest.file`
5981     fi
5982     if test "$*" != "X $srcdir/configure conftest.file" \
5983	&& test "$*" != "X conftest.file $srcdir/configure"; then
5984
5985	# If neither matched, then we have a broken ls.  This can happen
5986	# if, for instance, CONFIG_SHELL is bash and it inherits a
5987	# broken ls alias from the environment.  This has actually
5988	# happened.  Such a system could not be considered "sane".
5989	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5990  alias in your environment" "$LINENO" 5
5991     fi
5992     if test "$2" = conftest.file || test $am_try -eq 2; then
5993       break
5994     fi
5995     # Just in case.
5996     sleep 1
5997     am_has_slept=yes
5998   done
5999   test "$2" = conftest.file
6000   )
6001then
6002   # Ok.
6003   :
6004else
6005   as_fn_error $? "newly created file is older than distributed files!
6006Check your system clock" "$LINENO" 5
6007fi
6008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009printf "%s\n" "yes" >&6; }
6010# If we didn't sleep, we still need to ensure time stamps of config.status and
6011# generated files are strictly newer.
6012am_sleep_pid=
6013if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6014  ( sleep 1 ) &
6015  am_sleep_pid=$!
6016fi
6017
6018rm -f conftest.file
6019
6020test "$program_prefix" != NONE &&
6021  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6022# Use a double $ so make ignores it.
6023test "$program_suffix" != NONE &&
6024  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6025# Double any \ or $.
6026# By default was `s,x,x', remove it if useless.
6027ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6028program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6029
6030
6031  if test x"${MISSING+set}" != xset; then
6032  MISSING="\${SHELL} '$am_aux_dir/missing'"
6033fi
6034# Use eval to expand $SHELL
6035if eval "$MISSING --is-lightweight"; then
6036  am_missing_run="$MISSING "
6037else
6038  am_missing_run=
6039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6040printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6041fi
6042
6043if test x"${install_sh+set}" != xset; then
6044  case $am_aux_dir in
6045  *\ * | *\	*)
6046    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6047  *)
6048    install_sh="\${SHELL} $am_aux_dir/install-sh"
6049  esac
6050fi
6051
6052# Installed binaries are usually stripped using 'strip' when the user
6053# run "make install-strip".  However 'strip' might not be the right
6054# tool to use in cross-compilation environments, therefore Automake
6055# will honor the 'STRIP' environment variable to overrule this program.
6056if test "$cross_compiling" != no; then
6057  if test -n "$ac_tool_prefix"; then
6058  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6059set dummy ${ac_tool_prefix}strip; ac_word=$2
6060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061printf %s "checking for $ac_word... " >&6; }
6062if test ${ac_cv_prog_STRIP+y}
6063then :
6064  printf %s "(cached) " >&6
6065else $as_nop
6066  if test -n "$STRIP"; then
6067  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  case $as_dir in #(((
6074    '') as_dir=./ ;;
6075    */) ;;
6076    *) as_dir=$as_dir/ ;;
6077  esac
6078    for ac_exec_ext in '' $ac_executable_extensions; do
6079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6080    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6082    break 2
6083  fi
6084done
6085  done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090STRIP=$ac_cv_prog_STRIP
6091if test -n "$STRIP"; then
6092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6093printf "%s\n" "$STRIP" >&6; }
6094else
6095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096printf "%s\n" "no" >&6; }
6097fi
6098
6099
6100fi
6101if test -z "$ac_cv_prog_STRIP"; then
6102  ac_ct_STRIP=$STRIP
6103  # Extract the first word of "strip", so it can be a program name with args.
6104set dummy strip; ac_word=$2
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106printf %s "checking for $ac_word... " >&6; }
6107if test ${ac_cv_prog_ac_ct_STRIP+y}
6108then :
6109  printf %s "(cached) " >&6
6110else $as_nop
6111  if test -n "$ac_ct_STRIP"; then
6112  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  case $as_dir in #(((
6119    '') as_dir=./ ;;
6120    */) ;;
6121    *) as_dir=$as_dir/ ;;
6122  esac
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125    ac_cv_prog_ac_ct_STRIP="strip"
6126    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6136if test -n "$ac_ct_STRIP"; then
6137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6138printf "%s\n" "$ac_ct_STRIP" >&6; }
6139else
6140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141printf "%s\n" "no" >&6; }
6142fi
6143
6144  if test "x$ac_ct_STRIP" = x; then
6145    STRIP=":"
6146  else
6147    case $cross_compiling:$ac_tool_warned in
6148yes:)
6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153    STRIP=$ac_ct_STRIP
6154  fi
6155else
6156  STRIP="$ac_cv_prog_STRIP"
6157fi
6158
6159fi
6160INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6161
6162
6163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6164printf %s "checking for a race-free mkdir -p... " >&6; }
6165if test -z "$MKDIR_P"; then
6166  if test ${ac_cv_path_mkdir+y}
6167then :
6168  printf %s "(cached) " >&6
6169else $as_nop
6170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6172do
6173  IFS=$as_save_IFS
6174  case $as_dir in #(((
6175    '') as_dir=./ ;;
6176    */) ;;
6177    *) as_dir=$as_dir/ ;;
6178  esac
6179    for ac_prog in mkdir gmkdir; do
6180	 for ac_exec_ext in '' $ac_executable_extensions; do
6181	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6182	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6183	     'mkdir ('*'coreutils) '* | \
6184	     'BusyBox '* | \
6185	     'mkdir (fileutils) '4.1*)
6186	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6187	       break 3;;
6188	   esac
6189	 done
6190       done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195
6196  test -d ./--version && rmdir ./--version
6197  if test ${ac_cv_path_mkdir+y}; then
6198    MKDIR_P="$ac_cv_path_mkdir -p"
6199  else
6200    # As a last resort, use the slow shell script.  Don't cache a
6201    # value for MKDIR_P within a source directory, because that will
6202    # break other packages using the cache if that directory is
6203    # removed, or if the value is a relative name.
6204    MKDIR_P="$ac_install_sh -d"
6205  fi
6206fi
6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6208printf "%s\n" "$MKDIR_P" >&6; }
6209
6210for ac_prog in gawk mawk nawk awk
6211do
6212  # Extract the first word of "$ac_prog", so it can be a program name with args.
6213set dummy $ac_prog; ac_word=$2
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215printf %s "checking for $ac_word... " >&6; }
6216if test ${ac_cv_prog_AWK+y}
6217then :
6218  printf %s "(cached) " >&6
6219else $as_nop
6220  if test -n "$AWK"; then
6221  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226  IFS=$as_save_IFS
6227  case $as_dir in #(((
6228    '') as_dir=./ ;;
6229    */) ;;
6230    *) as_dir=$as_dir/ ;;
6231  esac
6232    for ac_exec_ext in '' $ac_executable_extensions; do
6233  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6234    ac_cv_prog_AWK="$ac_prog"
6235    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6236    break 2
6237  fi
6238done
6239  done
6240IFS=$as_save_IFS
6241
6242fi
6243fi
6244AWK=$ac_cv_prog_AWK
6245if test -n "$AWK"; then
6246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6247printf "%s\n" "$AWK" >&6; }
6248else
6249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250printf "%s\n" "no" >&6; }
6251fi
6252
6253
6254  test -n "$AWK" && break
6255done
6256
6257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6258printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6259set x ${MAKE-make}
6260ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6261if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6262then :
6263  printf %s "(cached) " >&6
6264else $as_nop
6265  cat >conftest.make <<\_ACEOF
6266SHELL = /bin/sh
6267all:
6268	@echo '@@@%%%=$(MAKE)=@@@%%%'
6269_ACEOF
6270# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6271case `${MAKE-make} -f conftest.make 2>/dev/null` in
6272  *@@@%%%=?*=@@@%%%*)
6273    eval ac_cv_prog_make_${ac_make}_set=yes;;
6274  *)
6275    eval ac_cv_prog_make_${ac_make}_set=no;;
6276esac
6277rm -f conftest.make
6278fi
6279if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281printf "%s\n" "yes" >&6; }
6282  SET_MAKE=
6283else
6284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285printf "%s\n" "no" >&6; }
6286  SET_MAKE="MAKE=${MAKE-make}"
6287fi
6288
6289rm -rf .tst 2>/dev/null
6290mkdir .tst 2>/dev/null
6291if test -d .tst; then
6292  am__leading_dot=.
6293else
6294  am__leading_dot=_
6295fi
6296rmdir .tst 2>/dev/null
6297
6298DEPDIR="${am__leading_dot}deps"
6299
6300ac_config_commands="$ac_config_commands depfiles"
6301
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6303printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6304cat > confinc.mk << 'END'
6305am__doit:
6306	@echo this is the am__doit target >confinc.out
6307.PHONY: am__doit
6308END
6309am__include="#"
6310am__quote=
6311# BSD make does it like this.
6312echo '.include "confinc.mk" # ignored' > confmf.BSD
6313# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6314echo 'include confinc.mk # ignored' > confmf.GNU
6315_am_result=no
6316for s in GNU BSD; do
6317  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6318   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }
6322  case $?:`cat confinc.out 2>/dev/null` in #(
6323  '0:this is the am__doit target') :
6324    case $s in #(
6325  BSD) :
6326    am__include='.include' am__quote='"' ;; #(
6327  *) :
6328    am__include='include' am__quote='' ;;
6329esac ;; #(
6330  *) :
6331     ;;
6332esac
6333  if test "$am__include" != "#"; then
6334    _am_result="yes ($s style)"
6335    break
6336  fi
6337done
6338rm -f confinc.* confmf.*
6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6340printf "%s\n" "${_am_result}" >&6; }
6341
6342# Check whether --enable-dependency-tracking was given.
6343if test ${enable_dependency_tracking+y}
6344then :
6345  enableval=$enable_dependency_tracking;
6346fi
6347
6348if test "x$enable_dependency_tracking" != xno; then
6349  am_depcomp="$ac_aux_dir/depcomp"
6350  AMDEPBACKSLASH='\'
6351  am__nodep='_no'
6352fi
6353 if test "x$enable_dependency_tracking" != xno; then
6354  AMDEP_TRUE=
6355  AMDEP_FALSE='#'
6356else
6357  AMDEP_TRUE='#'
6358  AMDEP_FALSE=
6359fi
6360
6361
6362## --------------------------------------- ##
6363##  Start of automake initialization code  ##
6364## --------------------------------------- ##
6365
6366if test "`cd $srcdir && pwd`" != "`pwd`"; then
6367  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6368  # is not polluted with repeated "-I."
6369  am__isrc=' -I$(srcdir)'
6370  # test to see if srcdir already configured
6371  if test -f $srcdir/config.status; then
6372    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6373  fi
6374fi
6375
6376# test whether we have cygpath
6377if test -z "$CYGPATH_W"; then
6378  if (cygpath --version) >/dev/null 2>/dev/null; then
6379    CYGPATH_W='cygpath -w'
6380  else
6381    CYGPATH_W=echo
6382  fi
6383fi
6384
6385
6386# Define the identity of the package.
6387 PACKAGE='curl'
6388 VERSION='-'
6389
6390
6391printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6392
6393
6394printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6395
6396# Some tools Automake needs.
6397
6398ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6399
6400
6401AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6402
6403
6404AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6405
6406
6407AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6408
6409
6410MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6411
6412# For better backward compatibility.  To be removed once Automake 1.9.x
6413# dies out for good.  For more background, see:
6414# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6415# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6416mkdir_p='$(MKDIR_P)'
6417
6418# We need awk for the "check" target (and possibly the TAP driver).  The
6419# system "awk" is bad on some platforms.
6420# Always define AMTAR for backward compatibility.  Yes, it's still used
6421# in the wild :-(  We should find a proper way to deprecate it ...
6422AMTAR='$${TAR-tar}'
6423
6424
6425# We'll loop over all known methods to create a tar archive until one works.
6426_am_tools='gnutar  pax cpio none'
6427
6428am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6429
6430
6431
6432
6433
6434depcc="$CC"   am_compiler_list=
6435
6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6437printf %s "checking dependency style of $depcc... " >&6; }
6438if test ${am_cv_CC_dependencies_compiler_type+y}
6439then :
6440  printf %s "(cached) " >&6
6441else $as_nop
6442  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6443  # We make a subdir and do the tests there.  Otherwise we can end up
6444  # making bogus files that we don't know about and never remove.  For
6445  # instance it was reported that on HP-UX the gcc test will end up
6446  # making a dummy file named 'D' -- because '-MD' means "put the output
6447  # in D".
6448  rm -rf conftest.dir
6449  mkdir conftest.dir
6450  # Copy depcomp to subdir because otherwise we won't find it if we're
6451  # using a relative directory.
6452  cp "$am_depcomp" conftest.dir
6453  cd conftest.dir
6454  # We will build objects and dependencies in a subdirectory because
6455  # it helps to detect inapplicable dependency modes.  For instance
6456  # both Tru64's cc and ICC support -MD to output dependencies as a
6457  # side effect of compilation, but ICC will put the dependencies in
6458  # the current directory while Tru64 will put them in the object
6459  # directory.
6460  mkdir sub
6461
6462  am_cv_CC_dependencies_compiler_type=none
6463  if test "$am_compiler_list" = ""; then
6464     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6465  fi
6466  am__universal=false
6467  case " $depcc " in #(
6468     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6469     esac
6470
6471  for depmode in $am_compiler_list; do
6472    # Setup a source with many dependencies, because some compilers
6473    # like to wrap large dependency lists on column 80 (with \), and
6474    # we should not choose a depcomp mode which is confused by this.
6475    #
6476    # We need to recreate these files for each test, as the compiler may
6477    # overwrite some of them when testing with obscure command lines.
6478    # This happens at least with the AIX C compiler.
6479    : > sub/conftest.c
6480    for i in 1 2 3 4 5 6; do
6481      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6482      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6483      # Solaris 10 /bin/sh.
6484      echo '/* dummy */' > sub/conftst$i.h
6485    done
6486    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6487
6488    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6489    # mode.  It turns out that the SunPro C++ compiler does not properly
6490    # handle '-M -o', and we need to detect this.  Also, some Intel
6491    # versions had trouble with output in subdirs.
6492    am__obj=sub/conftest.${OBJEXT-o}
6493    am__minus_obj="-o $am__obj"
6494    case $depmode in
6495    gcc)
6496      # This depmode causes a compiler race in universal mode.
6497      test "$am__universal" = false || continue
6498      ;;
6499    nosideeffect)
6500      # After this tag, mechanisms are not by side-effect, so they'll
6501      # only be used when explicitly requested.
6502      if test "x$enable_dependency_tracking" = xyes; then
6503	continue
6504      else
6505	break
6506      fi
6507      ;;
6508    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6509      # This compiler won't grok '-c -o', but also, the minuso test has
6510      # not run yet.  These depmodes are late enough in the game, and
6511      # so weak that their functioning should not be impacted.
6512      am__obj=conftest.${OBJEXT-o}
6513      am__minus_obj=
6514      ;;
6515    none) break ;;
6516    esac
6517    if depmode=$depmode \
6518       source=sub/conftest.c object=$am__obj \
6519       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6520       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6521         >/dev/null 2>conftest.err &&
6522       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6523       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6524       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6525       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6526      # icc doesn't choke on unknown options, it will just issue warnings
6527      # or remarks (even with -Werror).  So we grep stderr for any message
6528      # that says an option was ignored or not supported.
6529      # When given -MP, icc 7.0 and 7.1 complain thusly:
6530      #   icc: Command line warning: ignoring option '-M'; no argument required
6531      # The diagnosis changed in icc 8.0:
6532      #   icc: Command line remark: option '-MP' not supported
6533      if (grep 'ignoring option' conftest.err ||
6534          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6535        am_cv_CC_dependencies_compiler_type=$depmode
6536        break
6537      fi
6538    fi
6539  done
6540
6541  cd ..
6542  rm -rf conftest.dir
6543else
6544  am_cv_CC_dependencies_compiler_type=none
6545fi
6546
6547fi
6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6549printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6550CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6551
6552 if
6553  test "x$enable_dependency_tracking" != xno \
6554  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6555  am__fastdepCC_TRUE=
6556  am__fastdepCC_FALSE='#'
6557else
6558  am__fastdepCC_TRUE='#'
6559  am__fastdepCC_FALSE=
6560fi
6561
6562
6563# Variables for tags utilities; see am/tags.am
6564if test -z "$CTAGS"; then
6565  CTAGS=ctags
6566fi
6567
6568if test -z "$ETAGS"; then
6569  ETAGS=etags
6570fi
6571
6572if test -z "$CSCOPE"; then
6573  CSCOPE=cscope
6574fi
6575
6576
6577
6578# POSIX will say in a future version that running "rm -f" with no argument
6579# is OK; and we want to be able to make that assumption in our Makefile
6580# recipes.  So use an aggressive probe to check that the usage we want is
6581# actually supported "in the wild" to an acceptable degree.
6582# See automake bug#10828.
6583# To make any issue more visible, cause the running configure to be aborted
6584# by default if the 'rm' program in use doesn't match our expectations; the
6585# user can still override this though.
6586if rm -f && rm -fr && rm -rf; then : OK; else
6587  cat >&2 <<'END'
6588Oops!
6589
6590Your 'rm' program seems unable to run without file operands specified
6591on the command line, even when the '-f' option is present.  This is contrary
6592to the behaviour of most rm programs out there, and not conforming with
6593the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6594
6595Please tell bug-automake@gnu.org about your system, including the value
6596of your $PATH and any error possibly output before this message.  This
6597can help us improve future automake versions.
6598
6599END
6600  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6601    echo 'Configuration will proceed anyway, since you have set the' >&2
6602    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6603    echo >&2
6604  else
6605    cat >&2 <<'END'
6606Aborting the configuration process, to ensure you take notice of the issue.
6607
6608You can download and install GNU coreutils to get an 'rm' implementation
6609that behaves properly: <https://www.gnu.org/software/coreutils/>.
6610
6611If you want to complete the configuration process using your problematic
6612'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6613to "yes", and re-run configure.
6614
6615END
6616    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6617  fi
6618fi
6619
6620## ------------------------------------- ##
6621##  End of automake initialization code  ##
6622## ------------------------------------- ##
6623
6624
6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6626printf %s "checking curl version... " >&6; }
6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6628printf "%s\n" "$CURLVERSION" >&6; }
6629
6630
6631
6632VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6633
6634
6635PKGADD_PKG="HAXXcurl"
6636PKGADD_NAME="curl - a client that groks URLs"
6637PKGADD_VENDOR="curl.se"
6638
6639
6640
6641
6642    curl_ssl_msg="no      (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6643    curl_ssh_msg="no      (--with-{libssh,libssh2})"
6644   curl_zlib_msg="no      (--with-zlib)"
6645 curl_brotli_msg="no      (--with-brotli)"
6646   curl_zstd_msg="no      (--with-zstd)"
6647    curl_gss_msg="no      (--with-gssapi)"
6648  curl_gsasl_msg="no      (--with-gsasl)"
6649curl_tls_srp_msg="no      (--enable-tls-srp)"
6650    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6651   curl_ipv6_msg="no      (--enable-ipv6)"
6652curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6653    curl_idn_msg="no      (--with-{libidn2,winidn})"
6654 curl_manual_msg="no      (--enable-manual)"
6655curl_libcurl_msg="enabled (--disable-libcurl-option)"
6656curl_verbose_msg="enabled (--disable-verbose)"
6657   curl_sspi_msg="no      (--enable-sspi)"
6658   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6659  curl_ldaps_msg="no      (--enable-ldaps)"
6660   curl_rtsp_msg="no      (--enable-rtsp)"
6661   curl_rtmp_msg="no      (--with-librtmp)"
6662    curl_psl_msg="no      (--with-libpsl)"
6663 curl_altsvc_msg="enabled (--disable-alt-svc)"
6664curl_headers_msg="enabled (--disable-headers-api)"
6665   curl_hsts_msg="enabled (--disable-hsts)"
6666     curl_ws_msg="no      (--enable-websockets)"
6667    ssl_backends=
6668     curl_h1_msg="enabled (internal)"
6669     curl_h2_msg="no      (--with-nghttp2, --with-hyper)"
6670     curl_h3_msg="no      (--with-ngtcp2, --with-quiche --with-msh3)"
6671
6672enable_altsvc="yes"
6673hsts="yes"
6674
6675INITIAL_LDFLAGS=$LDFLAGS
6676INITIAL_LIBS=$LIBS
6677
6678OPT_SCHANNEL=no
6679
6680# Check whether --with-schannel was given.
6681if test ${with_schannel+y}
6682then :
6683  withval=$with_schannel; OPT_SCHANNEL=$withval
6684  TLSCHOICE="schannel"
6685fi
6686
6687
6688OPT_SECURETRANSPORT=no
6689
6690# Check whether --with-secure-transport was given.
6691if test ${with_secure_transport+y}
6692then :
6693  withval=$with_secure_transport;
6694  OPT_SECURETRANSPORT=$withval
6695  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6696
6697fi
6698
6699
6700OPT_AMISSL=no
6701
6702# Check whether --with-amissl was given.
6703if test ${with_amissl+y}
6704then :
6705  withval=$with_amissl;
6706  OPT_AMISSL=$withval
6707  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6708
6709fi
6710
6711
6712OPT_OPENSSL=no
6713ca="no"
6714
6715# Check whether --with-ssl was given.
6716if test ${with_ssl+y}
6717then :
6718  withval=$with_ssl;
6719  OPT_SSL=$withval
6720  OPT_OPENSSL=$withval
6721  if test X"$withval" != Xno; then
6722    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6723  else
6724    SSL_DISABLED="D"
6725  fi
6726
6727fi
6728
6729
6730
6731# Check whether --with-openssl was given.
6732if test ${with_openssl+y}
6733then :
6734  withval=$with_openssl;
6735  OPT_OPENSSL=$withval
6736  if test X"$withval" != Xno; then
6737    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6738  fi
6739
6740fi
6741
6742
6743OPT_GNUTLS=no
6744
6745# Check whether --with-gnutls was given.
6746if test ${with_gnutls+y}
6747then :
6748  withval=$with_gnutls;
6749  OPT_GNUTLS=$withval
6750  if test X"$withval" != Xno; then
6751    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6752  fi
6753
6754fi
6755
6756
6757OPT_MBEDTLS=no
6758
6759# Check whether --with-mbedtls was given.
6760if test ${with_mbedtls+y}
6761then :
6762  withval=$with_mbedtls;
6763  OPT_MBEDTLS=$withval
6764  if test X"$withval" != Xno; then
6765    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6766  fi
6767
6768fi
6769
6770
6771OPT_WOLFSSL=no
6772
6773# Check whether --with-wolfssl was given.
6774if test ${with_wolfssl+y}
6775then :
6776  withval=$with_wolfssl;
6777  OPT_WOLFSSL=$withval
6778  if test X"$withval" != Xno; then
6779    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6780  fi
6781
6782fi
6783
6784
6785OPT_BEARSSL=no
6786
6787# Check whether --with-bearssl was given.
6788if test ${with_bearssl+y}
6789then :
6790  withval=$with_bearssl;
6791  OPT_BEARSSL=$withval
6792  if test X"$withval" != Xno; then
6793    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6794  fi
6795
6796fi
6797
6798
6799OPT_RUSTLS=no
6800
6801# Check whether --with-rustls was given.
6802if test ${with_rustls+y}
6803then :
6804  withval=$with_rustls;
6805  OPT_RUSTLS=$withval
6806  if test X"$withval" != Xno; then
6807    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6808    experimental="$experimental rustls"
6809  fi
6810
6811fi
6812
6813
6814OPT_NSS_AWARE=no
6815
6816# Check whether --with-nss-deprecated was given.
6817if test ${with_nss_deprecated+y}
6818then :
6819  withval=$with_nss_deprecated; if test X"$withval" != Xno; then
6820    OPT_NSS_AWARE=$withval
6821  fi
6822
6823fi
6824
6825
6826OPT_NSS=no
6827
6828# Check whether --with-nss was given.
6829if test ${with_nss+y}
6830then :
6831  withval=$with_nss; OPT_NSS=$withval
6832  if test X"$withval" != Xno; then
6833
6834    if test X"$OPT_NSS_AWARE" = "Xno" ; then
6835      as_fn_error $? "NSS use must be confirmed using --with-nss-deprecated. NSS support will be dropped from curl in August 2022. See docs/DEPRECATE.md" "$LINENO" 5
6836    fi
6837
6838    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }NSS"
6839  fi
6840
6841fi
6842
6843
6844TEST_NGHTTPX=nghttpx
6845
6846# Check whether --with-test-nghttpx was given.
6847if test ${with_test_nghttpx+y}
6848then :
6849  withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6850  if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6851      TEST_NGHTTPX=""
6852  fi
6853
6854fi
6855
6856
6857
6858CADDY=caddy
6859
6860# Check whether --with-test-caddy was given.
6861if test ${with_test_caddy+y}
6862then :
6863  withval=$with_test_caddy; CADDY=$withval
6864  if test X"$OPT_CADDY" = "Xno" ; then
6865      CADDY=""
6866  fi
6867
6868fi
6869
6870
6871
6872
6873# Check whether --with-test-httpd was given.
6874if test ${with_test_httpd+y}
6875then :
6876  withval=$with_test_httpd; request_httpd=$withval
6877else $as_nop
6878  request_httpd=check
6879fi
6880
6881if test x"$request_httpd" = "xcheck"; then
6882  if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6883    # common location on distros (debian/ubuntu)
6884    HTTPD="/usr/sbin/apache2"
6885    APACHECTL="/usr/sbin/apache2ctl"
6886    # Extract the first word of "apxs", so it can be a program name with args.
6887set dummy apxs; ac_word=$2
6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889printf %s "checking for $ac_word... " >&6; }
6890if test ${ac_cv_path_APXS+y}
6891then :
6892  printf %s "(cached) " >&6
6893else $as_nop
6894  case $APXS in
6895  [\\/]* | ?:[\\/]*)
6896  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6897  ;;
6898  *)
6899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902  IFS=$as_save_IFS
6903  case $as_dir in #(((
6904    '') as_dir=./ ;;
6905    */) ;;
6906    *) as_dir=$as_dir/ ;;
6907  esac
6908    for ac_exec_ext in '' $ac_executable_extensions; do
6909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6910    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6912    break 2
6913  fi
6914done
6915  done
6916IFS=$as_save_IFS
6917
6918  ;;
6919esac
6920fi
6921APXS=$ac_cv_path_APXS
6922if test -n "$APXS"; then
6923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6924printf "%s\n" "$APXS" >&6; }
6925else
6926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927printf "%s\n" "no" >&6; }
6928fi
6929
6930
6931    if test "x$APXS" != "x"; then
6932      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6933printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6934    fi
6935  else
6936    # Extract the first word of "httpd", so it can be a program name with args.
6937set dummy httpd; ac_word=$2
6938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939printf %s "checking for $ac_word... " >&6; }
6940if test ${ac_cv_path_HTTPD+y}
6941then :
6942  printf %s "(cached) " >&6
6943else $as_nop
6944  case $HTTPD in
6945  [\\/]* | ?:[\\/]*)
6946  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6947  ;;
6948  *)
6949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952  IFS=$as_save_IFS
6953  case $as_dir in #(((
6954    '') as_dir=./ ;;
6955    */) ;;
6956    *) as_dir=$as_dir/ ;;
6957  esac
6958    for ac_exec_ext in '' $ac_executable_extensions; do
6959  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6960    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
6961    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6962    break 2
6963  fi
6964done
6965  done
6966IFS=$as_save_IFS
6967
6968  ;;
6969esac
6970fi
6971HTTPD=$ac_cv_path_HTTPD
6972if test -n "$HTTPD"; then
6973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
6974printf "%s\n" "$HTTPD" >&6; }
6975else
6976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977printf "%s\n" "no" >&6; }
6978fi
6979
6980
6981    if test "x$HTTPD" = "x"; then
6982      # Extract the first word of "apache2", so it can be a program name with args.
6983set dummy apache2; ac_word=$2
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985printf %s "checking for $ac_word... " >&6; }
6986if test ${ac_cv_path_HTTPD+y}
6987then :
6988  printf %s "(cached) " >&6
6989else $as_nop
6990  case $HTTPD in
6991  [\\/]* | ?:[\\/]*)
6992  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6993  ;;
6994  *)
6995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998  IFS=$as_save_IFS
6999  case $as_dir in #(((
7000    '') as_dir=./ ;;
7001    */) ;;
7002    *) as_dir=$as_dir/ ;;
7003  esac
7004    for ac_exec_ext in '' $ac_executable_extensions; do
7005  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7006    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7007    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7008    break 2
7009  fi
7010done
7011  done
7012IFS=$as_save_IFS
7013
7014  ;;
7015esac
7016fi
7017HTTPD=$ac_cv_path_HTTPD
7018if test -n "$HTTPD"; then
7019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7020printf "%s\n" "$HTTPD" >&6; }
7021else
7022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023printf "%s\n" "no" >&6; }
7024fi
7025
7026
7027    fi
7028    # Extract the first word of "apachectl", so it can be a program name with args.
7029set dummy apachectl; ac_word=$2
7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031printf %s "checking for $ac_word... " >&6; }
7032if test ${ac_cv_path_APACHECTL+y}
7033then :
7034  printf %s "(cached) " >&6
7035else $as_nop
7036  case $APACHECTL in
7037  [\\/]* | ?:[\\/]*)
7038  ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7039  ;;
7040  *)
7041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044  IFS=$as_save_IFS
7045  case $as_dir in #(((
7046    '') as_dir=./ ;;
7047    */) ;;
7048    *) as_dir=$as_dir/ ;;
7049  esac
7050    for ac_exec_ext in '' $ac_executable_extensions; do
7051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7052    ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057  done
7058IFS=$as_save_IFS
7059
7060  ;;
7061esac
7062fi
7063APACHECTL=$ac_cv_path_APACHECTL
7064if test -n "$APACHECTL"; then
7065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7066printf "%s\n" "$APACHECTL" >&6; }
7067else
7068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069printf "%s\n" "no" >&6; }
7070fi
7071
7072
7073    # Extract the first word of "apxs", so it can be a program name with args.
7074set dummy apxs; ac_word=$2
7075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076printf %s "checking for $ac_word... " >&6; }
7077if test ${ac_cv_path_APXS+y}
7078then :
7079  printf %s "(cached) " >&6
7080else $as_nop
7081  case $APXS in
7082  [\\/]* | ?:[\\/]*)
7083  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7084  ;;
7085  *)
7086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089  IFS=$as_save_IFS
7090  case $as_dir in #(((
7091    '') as_dir=./ ;;
7092    */) ;;
7093    *) as_dir=$as_dir/ ;;
7094  esac
7095    for ac_exec_ext in '' $ac_executable_extensions; do
7096  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7097    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7098    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7099    break 2
7100  fi
7101done
7102  done
7103IFS=$as_save_IFS
7104
7105  ;;
7106esac
7107fi
7108APXS=$ac_cv_path_APXS
7109if test -n "$APXS"; then
7110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7111printf "%s\n" "$APXS" >&6; }
7112else
7113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114printf "%s\n" "no" >&6; }
7115fi
7116
7117
7118    if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7119      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, httpd tests disabled" >&5
7120printf "%s\n" "$as_me: httpd/apache2 not in PATH, httpd tests disabled" >&6;}
7121    fi
7122    if test "x$APXS" = "x"; then
7123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, httpd tests disabled" >&5
7124printf "%s\n" "$as_me: apxs not in PATH, httpd tests disabled" >&6;}
7125    fi
7126  fi
7127else
7128  HTTPD="${request_httpd}/bin/httpd"
7129  APACHECTL="${request_httpd}/bin/apachectl"
7130  APXS="${request_httpd}/bin/apxs"
7131  if test ! -x "${HTTPD}"; then
7132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, httpd tests disabled" >&5
7133printf "%s\n" "$as_me: httpd not found as ${HTTPD}, httpd tests disabled" >&6;}
7134  elif test ! -x "${APACHECTL}"; then
7135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, httpd tests disabled" >&5
7136printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, httpd tests disabled" >&6;}
7137  elif test ! -x "${APXS}"; then
7138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, httpd tests disabled" >&5
7139printf "%s\n" "$as_me: apxs not found as ${APXS}, httpd tests disabled" >&6;}
7140  else
7141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7142printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7143  fi
7144fi
7145
7146
7147
7148
7149if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7150  HTTPD_NGHTTPX="$TEST_NGHTTPX"
7151else
7152  # Extract the first word of "nghttpx", so it can be a program name with args.
7153set dummy nghttpx; ac_word=$2
7154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155printf %s "checking for $ac_word... " >&6; }
7156if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7157then :
7158  printf %s "(cached) " >&6
7159else $as_nop
7160  case $HTTPD_NGHTTPX in
7161  [\\/]* | ?:[\\/]*)
7162  ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7163  ;;
7164  *)
7165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166as_dummy="$PATH:/usr/bin:/usr/local/bin"
7167for as_dir in $as_dummy
7168do
7169  IFS=$as_save_IFS
7170  case $as_dir in #(((
7171    '') as_dir=./ ;;
7172    */) ;;
7173    *) as_dir=$as_dir/ ;;
7174  esac
7175    for ac_exec_ext in '' $ac_executable_extensions; do
7176  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7177    ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7178    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7179    break 2
7180  fi
7181done
7182  done
7183IFS=$as_save_IFS
7184
7185  ;;
7186esac
7187fi
7188HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7189if test -n "$HTTPD_NGHTTPX"; then
7190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7191printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7192else
7193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194printf "%s\n" "no" >&6; }
7195fi
7196
7197
7198fi
7199
7200
7201if test "x$TEST_CADDY" != "x"; then
7202  CADDY="$TEST_CADDY"
7203else
7204  # Extract the first word of "caddy", so it can be a program name with args.
7205set dummy caddy; ac_word=$2
7206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207printf %s "checking for $ac_word... " >&6; }
7208if test ${ac_cv_path_CADDY+y}
7209then :
7210  printf %s "(cached) " >&6
7211else $as_nop
7212  case $CADDY in
7213  [\\/]* | ?:[\\/]*)
7214  ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7215  ;;
7216  *)
7217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  case $as_dir in #(((
7222    '') as_dir=./ ;;
7223    */) ;;
7224    *) as_dir=$as_dir/ ;;
7225  esac
7226    for ac_exec_ext in '' $ac_executable_extensions; do
7227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7228    ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7230    break 2
7231  fi
7232done
7233  done
7234IFS=$as_save_IFS
7235
7236  ;;
7237esac
7238fi
7239CADDY=$ac_cv_path_CADDY
7240if test -n "$CADDY"; then
7241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7242printf "%s\n" "$CADDY" >&6; }
7243else
7244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245printf "%s\n" "no" >&6; }
7246fi
7247
7248
7249fi
7250
7251
7252if test -z "$TLSCHOICE"; then
7253  if test "x$OPT_SSL" != "xno"; then
7254    as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7255
7256Select from these:
7257
7258  --with-amissl
7259  --with-bearssl
7260  --with-gnutls
7261  --with-mbedtls
7262  --with-nss
7263  --with-openssl (also works for BoringSSL and libressl)
7264  --with-rustls
7265  --with-schannel
7266  --with-secure-transport
7267  --with-wolfssl
7268" "$LINENO" 5
7269  fi
7270fi
7271
7272
7273# Check whether --with-darwinssl was given.
7274if test ${with_darwinssl+y}
7275then :
7276  withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
7277fi
7278
7279
7280
7281
7282
7283  # Make sure we can run config.sub.
7284$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7285  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7286
7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7288printf %s "checking build system type... " >&6; }
7289if test ${ac_cv_build+y}
7290then :
7291  printf %s "(cached) " >&6
7292else $as_nop
7293  ac_build_alias=$build_alias
7294test "x$ac_build_alias" = x &&
7295  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7296test "x$ac_build_alias" = x &&
7297  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7298ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7299  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7300
7301fi
7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7303printf "%s\n" "$ac_cv_build" >&6; }
7304case $ac_cv_build in
7305*-*-*) ;;
7306*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7307esac
7308build=$ac_cv_build
7309ac_save_IFS=$IFS; IFS='-'
7310set x $ac_cv_build
7311shift
7312build_cpu=$1
7313build_vendor=$2
7314shift; shift
7315# Remember, the first character of IFS is used to create $*,
7316# except with old shells:
7317build_os=$*
7318IFS=$ac_save_IFS
7319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7320
7321
7322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7323printf %s "checking host system type... " >&6; }
7324if test ${ac_cv_host+y}
7325then :
7326  printf %s "(cached) " >&6
7327else $as_nop
7328  if test "x$host_alias" = x; then
7329  ac_cv_host=$ac_cv_build
7330else
7331  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7332    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7333fi
7334
7335fi
7336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7337printf "%s\n" "$ac_cv_host" >&6; }
7338case $ac_cv_host in
7339*-*-*) ;;
7340*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7341esac
7342host=$ac_cv_host
7343ac_save_IFS=$IFS; IFS='-'
7344set x $ac_cv_host
7345shift
7346host_cpu=$1
7347host_vendor=$2
7348shift; shift
7349# Remember, the first character of IFS is used to create $*,
7350# except with old shells:
7351host_os=$*
7352IFS=$ac_save_IFS
7353case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7354
7355
7356
7357printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7358
7359
7360# Silence warning: ar: 'u' modifier ignored since 'D' is the default
7361AR_FLAGS=cr
7362
7363
7364
7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7366printf %s "checking for grep that handles long lines and -e... " >&6; }
7367if test ${ac_cv_path_GREP+y}
7368then :
7369  printf %s "(cached) " >&6
7370else $as_nop
7371  if test -z "$GREP"; then
7372  ac_path_GREP_found=false
7373  # Loop through the user's path and test for each of PROGNAME-LIST
7374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7376do
7377  IFS=$as_save_IFS
7378  case $as_dir in #(((
7379    '') as_dir=./ ;;
7380    */) ;;
7381    *) as_dir=$as_dir/ ;;
7382  esac
7383    for ac_prog in grep ggrep
7384   do
7385    for ac_exec_ext in '' $ac_executable_extensions; do
7386      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7387      as_fn_executable_p "$ac_path_GREP" || continue
7388# Check for GNU ac_path_GREP and select it if it is found.
7389  # Check for GNU $ac_path_GREP
7390case `"$ac_path_GREP" --version 2>&1` in
7391*GNU*)
7392  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7393*)
7394  ac_count=0
7395  printf %s 0123456789 >"conftest.in"
7396  while :
7397  do
7398    cat "conftest.in" "conftest.in" >"conftest.tmp"
7399    mv "conftest.tmp" "conftest.in"
7400    cp "conftest.in" "conftest.nl"
7401    printf "%s\n" 'GREP' >> "conftest.nl"
7402    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7403    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7404    as_fn_arith $ac_count + 1 && ac_count=$as_val
7405    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7406      # Best one so far, save it but keep looking for a better one
7407      ac_cv_path_GREP="$ac_path_GREP"
7408      ac_path_GREP_max=$ac_count
7409    fi
7410    # 10*(2^10) chars as input seems more than enough
7411    test $ac_count -gt 10 && break
7412  done
7413  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7414esac
7415
7416      $ac_path_GREP_found && break 3
7417    done
7418  done
7419  done
7420IFS=$as_save_IFS
7421  if test -z "$ac_cv_path_GREP"; then
7422    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7423  fi
7424else
7425  ac_cv_path_GREP=$GREP
7426fi
7427
7428fi
7429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7430printf "%s\n" "$ac_cv_path_GREP" >&6; }
7431 GREP="$ac_cv_path_GREP"
7432
7433
7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7435printf %s "checking for egrep... " >&6; }
7436if test ${ac_cv_path_EGREP+y}
7437then :
7438  printf %s "(cached) " >&6
7439else $as_nop
7440  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7441   then ac_cv_path_EGREP="$GREP -E"
7442   else
7443     if test -z "$EGREP"; then
7444  ac_path_EGREP_found=false
7445  # Loop through the user's path and test for each of PROGNAME-LIST
7446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7448do
7449  IFS=$as_save_IFS
7450  case $as_dir in #(((
7451    '') as_dir=./ ;;
7452    */) ;;
7453    *) as_dir=$as_dir/ ;;
7454  esac
7455    for ac_prog in egrep
7456   do
7457    for ac_exec_ext in '' $ac_executable_extensions; do
7458      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7459      as_fn_executable_p "$ac_path_EGREP" || continue
7460# Check for GNU ac_path_EGREP and select it if it is found.
7461  # Check for GNU $ac_path_EGREP
7462case `"$ac_path_EGREP" --version 2>&1` in
7463*GNU*)
7464  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7465*)
7466  ac_count=0
7467  printf %s 0123456789 >"conftest.in"
7468  while :
7469  do
7470    cat "conftest.in" "conftest.in" >"conftest.tmp"
7471    mv "conftest.tmp" "conftest.in"
7472    cp "conftest.in" "conftest.nl"
7473    printf "%s\n" 'EGREP' >> "conftest.nl"
7474    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7475    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7476    as_fn_arith $ac_count + 1 && ac_count=$as_val
7477    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7478      # Best one so far, save it but keep looking for a better one
7479      ac_cv_path_EGREP="$ac_path_EGREP"
7480      ac_path_EGREP_max=$ac_count
7481    fi
7482    # 10*(2^10) chars as input seems more than enough
7483    test $ac_count -gt 10 && break
7484  done
7485  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7486esac
7487
7488      $ac_path_EGREP_found && break 3
7489    done
7490  done
7491  done
7492IFS=$as_save_IFS
7493  if test -z "$ac_cv_path_EGREP"; then
7494    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7495  fi
7496else
7497  ac_cv_path_EGREP=$EGREP
7498fi
7499
7500   fi
7501fi
7502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7503printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7504 EGREP="$ac_cv_path_EGREP"
7505
7506
7507
7508
7509        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7510printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513
7514#ifdef _AIX
7515   yes_this_is_aix
7516#endif
7517
7518_ACEOF
7519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520  $EGREP "yes_this_is_aix" >/dev/null 2>&1
7521then :
7522
7523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7524printf "%s\n" "yes" >&6; }
7525    printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7526
7527
7528else $as_nop
7529
7530    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531printf "%s\n" "no" >&6; }
7532
7533fi
7534rm -rf conftest*
7535
7536
7537
7538
7539    #
7540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7541printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544
7545
7546
7547int main (void)
7548{
7549
7550#ifdef _THREAD_SAFE
7551      int dummy=1;
7552#else
7553      force compilation error
7554#endif
7555
7556 ;
7557 return 0;
7558}
7559
7560_ACEOF
7561if ac_fn_c_try_compile "$LINENO"
7562then :
7563
7564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565printf "%s\n" "yes" >&6; }
7566    tmp_thread_safe_initially_defined="yes"
7567
7568else $as_nop
7569
7570    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571printf "%s\n" "no" >&6; }
7572    tmp_thread_safe_initially_defined="no"
7573
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7576  #
7577  if test "$tmp_thread_safe_initially_defined" = "no"; then
7578    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7579printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7580
7581  case $host_os in
7582    aix[123].* | aix4.[012].*)
7583            tmp_need_thread_safe="no"
7584      ;;
7585    aix*)
7586            tmp_need_thread_safe="yes"
7587      ;;
7588    *)
7589      tmp_need_thread_safe="no"
7590      ;;
7591  esac
7592
7593    if test "$tmp_need_thread_safe" = "yes"; then
7594      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7595printf "%s\n" "yes" >&6; }
7596    else
7597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598printf "%s\n" "no" >&6; }
7599    fi
7600  fi
7601  #
7602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7603printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7604  if test "$tmp_thread_safe_initially_defined" = "yes" ||
7605    test "$tmp_need_thread_safe" = "yes"; then
7606
7607
7608printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7609
7610cat >>confdefs.h <<_EOF
7611#ifndef _THREAD_SAFE
7612#  define _THREAD_SAFE
7613#endif
7614_EOF
7615
7616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617printf "%s\n" "yes" >&6; }
7618  else
7619    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620printf "%s\n" "no" >&6; }
7621  fi
7622  #
7623
7624
7625    #
7626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7627printf %s "checking if _REENTRANT is already defined... " >&6; }
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630
7631
7632
7633int main (void)
7634{
7635
7636#ifdef _REENTRANT
7637      int dummy=1;
7638#else
7639      force compilation error
7640#endif
7641
7642 ;
7643 return 0;
7644}
7645
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"
7648then :
7649
7650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7651printf "%s\n" "yes" >&6; }
7652    tmp_reentrant_initially_defined="yes"
7653
7654else $as_nop
7655
7656    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657printf "%s\n" "no" >&6; }
7658    tmp_reentrant_initially_defined="no"
7659
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7662  #
7663  if test "$tmp_reentrant_initially_defined" = "no"; then
7664    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7665printf %s "checking if _REENTRANT is actually needed... " >&6; }
7666
7667  case $host_os in
7668    solaris*)
7669      tmp_need_reentrant="yes"
7670      ;;
7671    *)
7672      tmp_need_reentrant="no"
7673      ;;
7674  esac
7675
7676    if test "$tmp_need_reentrant" = "no"; then
7677
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680
7681
7682#include <errno.h>
7683
7684int main (void)
7685{
7686
7687      if(0 != errno)
7688        return 1;
7689
7690 ;
7691 return 0;
7692}
7693
7694_ACEOF
7695if ac_fn_c_try_compile "$LINENO"
7696then :
7697
7698    tmp_errno="yes"
7699
7700else $as_nop
7701
7702    tmp_errno="no"
7703
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706  if test "$tmp_errno" = "yes"; then
7707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h.  */
7709
7710
7711#include <errno.h>
7712
7713int main (void)
7714{
7715
7716#ifdef errno
7717        int dummy=1;
7718#else
7719        force compilation error
7720#endif
7721
7722 ;
7723 return 0;
7724}
7725
7726_ACEOF
7727if ac_fn_c_try_compile "$LINENO"
7728then :
7729
7730      tmp_errno="errno_macro_defined"
7731
7732else $as_nop
7733
7734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h.  */
7736
7737
7738#define _REENTRANT
7739#include <errno.h>
7740
7741int main (void)
7742{
7743
7744#ifdef errno
7745          int dummy=1;
7746#else
7747          force compilation error
7748#endif
7749
7750 ;
7751 return 0;
7752}
7753
7754_ACEOF
7755if ac_fn_c_try_compile "$LINENO"
7756then :
7757
7758        tmp_errno="errno_macro_needs_reentrant"
7759        tmp_need_reentrant="yes"
7760
7761fi
7762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7763
7764fi
7765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7766  fi
7767
7768    fi
7769    if test "$tmp_need_reentrant" = "no"; then
7770
7771  if test "$tmp_need_reentrant" = "no"; then
7772
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775
7776
7777#define gmtime_r innocuous_gmtime_r
7778#ifdef __STDC__
7779# include <limits.h>
7780#else
7781# include <assert.h>
7782#endif
7783#undef gmtime_r
7784#ifdef __cplusplus
7785extern "C"
7786#endif
7787char gmtime_r ();
7788#if defined __stub_gmtime_r || defined __stub___gmtime_r
7789choke me
7790#endif
7791
7792int main (void)
7793{
7794return gmtime_r ();
7795 ;
7796 return 0;
7797}
7798
7799_ACEOF
7800if ac_fn_c_try_link "$LINENO"
7801then :
7802
7803    tmp_gmtime_r="yes"
7804
7805else $as_nop
7806
7807    tmp_gmtime_r="no"
7808
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.beam \
7811    conftest$ac_exeext conftest.$ac_ext
7812  if test "$tmp_gmtime_r" = "yes"; then
7813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815
7816#include <sys/types.h>
7817#include <time.h>
7818
7819_ACEOF
7820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821  $EGREP "gmtime_r" >/dev/null 2>&1
7822then :
7823
7824      tmp_gmtime_r="proto_declared"
7825
7826else $as_nop
7827
7828      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h.  */
7830
7831#define _REENTRANT
7832#include <sys/types.h>
7833#include <time.h>
7834
7835_ACEOF
7836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837  $EGREP "gmtime_r" >/dev/null 2>&1
7838then :
7839
7840        tmp_gmtime_r="proto_needs_reentrant"
7841        tmp_need_reentrant="yes"
7842
7843fi
7844rm -rf conftest*
7845
7846
7847fi
7848rm -rf conftest*
7849
7850  fi
7851
7852  fi
7853  if test "$tmp_need_reentrant" = "no"; then
7854
7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857
7858
7859#define localtime_r innocuous_localtime_r
7860#ifdef __STDC__
7861# include <limits.h>
7862#else
7863# include <assert.h>
7864#endif
7865#undef localtime_r
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869char localtime_r ();
7870#if defined __stub_localtime_r || defined __stub___localtime_r
7871choke me
7872#endif
7873
7874int main (void)
7875{
7876return localtime_r ();
7877 ;
7878 return 0;
7879}
7880
7881_ACEOF
7882if ac_fn_c_try_link "$LINENO"
7883then :
7884
7885    tmp_localtime_r="yes"
7886
7887else $as_nop
7888
7889    tmp_localtime_r="no"
7890
7891fi
7892rm -f core conftest.err conftest.$ac_objext conftest.beam \
7893    conftest$ac_exeext conftest.$ac_ext
7894  if test "$tmp_localtime_r" = "yes"; then
7895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897
7898#include <sys/types.h>
7899#include <time.h>
7900
7901_ACEOF
7902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903  $EGREP "localtime_r" >/dev/null 2>&1
7904then :
7905
7906      tmp_localtime_r="proto_declared"
7907
7908else $as_nop
7909
7910      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h.  */
7912
7913#define _REENTRANT
7914#include <sys/types.h>
7915#include <time.h>
7916
7917_ACEOF
7918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919  $EGREP "localtime_r" >/dev/null 2>&1
7920then :
7921
7922        tmp_localtime_r="proto_needs_reentrant"
7923        tmp_need_reentrant="yes"
7924
7925fi
7926rm -rf conftest*
7927
7928
7929fi
7930rm -rf conftest*
7931
7932  fi
7933
7934  fi
7935  if test "$tmp_need_reentrant" = "no"; then
7936
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939
7940
7941#define strerror_r innocuous_strerror_r
7942#ifdef __STDC__
7943# include <limits.h>
7944#else
7945# include <assert.h>
7946#endif
7947#undef strerror_r
7948#ifdef __cplusplus
7949extern "C"
7950#endif
7951char strerror_r ();
7952#if defined __stub_strerror_r || defined __stub___strerror_r
7953choke me
7954#endif
7955
7956int main (void)
7957{
7958return strerror_r ();
7959 ;
7960 return 0;
7961}
7962
7963_ACEOF
7964if ac_fn_c_try_link "$LINENO"
7965then :
7966
7967    tmp_strerror_r="yes"
7968
7969else $as_nop
7970
7971    tmp_strerror_r="no"
7972
7973fi
7974rm -f core conftest.err conftest.$ac_objext conftest.beam \
7975    conftest$ac_exeext conftest.$ac_ext
7976  if test "$tmp_strerror_r" = "yes"; then
7977    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979
7980#include <sys/types.h>
7981#include <string.h>
7982
7983_ACEOF
7984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985  $EGREP "strerror_r" >/dev/null 2>&1
7986then :
7987
7988      tmp_strerror_r="proto_declared"
7989
7990else $as_nop
7991
7992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994
7995#define _REENTRANT
7996#include <sys/types.h>
7997#include <string.h>
7998
7999_ACEOF
8000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001  $EGREP "strerror_r" >/dev/null 2>&1
8002then :
8003
8004        tmp_strerror_r="proto_needs_reentrant"
8005        tmp_need_reentrant="yes"
8006
8007fi
8008rm -rf conftest*
8009
8010
8011fi
8012rm -rf conftest*
8013
8014  fi
8015
8016  fi
8017  if test "$tmp_need_reentrant" = "no"; then
8018
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021
8022
8023#define strtok_r innocuous_strtok_r
8024#ifdef __STDC__
8025# include <limits.h>
8026#else
8027# include <assert.h>
8028#endif
8029#undef strtok_r
8030#ifdef __cplusplus
8031extern "C"
8032#endif
8033char strtok_r ();
8034#if defined __stub_strtok_r || defined __stub___strtok_r
8035choke me
8036#endif
8037
8038int main (void)
8039{
8040return strtok_r ();
8041 ;
8042 return 0;
8043}
8044
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"
8047then :
8048
8049    tmp_strtok_r="yes"
8050
8051else $as_nop
8052
8053    tmp_strtok_r="no"
8054
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.beam \
8057    conftest$ac_exeext conftest.$ac_ext
8058  if test "$tmp_strtok_r" = "yes"; then
8059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061
8062#include <sys/types.h>
8063#include <string.h>
8064
8065_ACEOF
8066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067  $EGREP "strtok_r" >/dev/null 2>&1
8068then :
8069
8070      tmp_strtok_r="proto_declared"
8071
8072else $as_nop
8073
8074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076
8077#define _REENTRANT
8078#include <sys/types.h>
8079#include <string.h>
8080
8081_ACEOF
8082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083  $EGREP "strtok_r" >/dev/null 2>&1
8084then :
8085
8086        tmp_strtok_r="proto_needs_reentrant"
8087        tmp_need_reentrant="yes"
8088
8089fi
8090rm -rf conftest*
8091
8092
8093fi
8094rm -rf conftest*
8095
8096  fi
8097
8098  fi
8099  if test "$tmp_need_reentrant" = "no"; then
8100
8101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103
8104
8105#define gethostbyname_r innocuous_gethostbyname_r
8106#ifdef __STDC__
8107# include <limits.h>
8108#else
8109# include <assert.h>
8110#endif
8111#undef gethostbyname_r
8112#ifdef __cplusplus
8113extern "C"
8114#endif
8115char gethostbyname_r ();
8116#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8117choke me
8118#endif
8119
8120int main (void)
8121{
8122return gethostbyname_r ();
8123 ;
8124 return 0;
8125}
8126
8127_ACEOF
8128if ac_fn_c_try_link "$LINENO"
8129then :
8130
8131    tmp_gethostbyname_r="yes"
8132
8133else $as_nop
8134
8135    tmp_gethostbyname_r="no"
8136
8137fi
8138rm -f core conftest.err conftest.$ac_objext conftest.beam \
8139    conftest$ac_exeext conftest.$ac_ext
8140  if test "$tmp_gethostbyname_r" = "yes"; then
8141    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143
8144#include <sys/types.h>
8145#include <netdb.h>
8146
8147_ACEOF
8148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8149  $EGREP "gethostbyname_r" >/dev/null 2>&1
8150then :
8151
8152      tmp_gethostbyname_r="proto_declared"
8153
8154else $as_nop
8155
8156      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158
8159#define _REENTRANT
8160#include <sys/types.h>
8161#include <netdb.h>
8162
8163_ACEOF
8164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8165  $EGREP "gethostbyname_r" >/dev/null 2>&1
8166then :
8167
8168        tmp_gethostbyname_r="proto_needs_reentrant"
8169        tmp_need_reentrant="yes"
8170
8171fi
8172rm -rf conftest*
8173
8174
8175fi
8176rm -rf conftest*
8177
8178  fi
8179
8180  fi
8181  if test "$tmp_need_reentrant" = "no"; then
8182
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185
8186
8187#define getprotobyname_r innocuous_getprotobyname_r
8188#ifdef __STDC__
8189# include <limits.h>
8190#else
8191# include <assert.h>
8192#endif
8193#undef getprotobyname_r
8194#ifdef __cplusplus
8195extern "C"
8196#endif
8197char getprotobyname_r ();
8198#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8199choke me
8200#endif
8201
8202int main (void)
8203{
8204return getprotobyname_r ();
8205 ;
8206 return 0;
8207}
8208
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"
8211then :
8212
8213    tmp_getprotobyname_r="yes"
8214
8215else $as_nop
8216
8217    tmp_getprotobyname_r="no"
8218
8219fi
8220rm -f core conftest.err conftest.$ac_objext conftest.beam \
8221    conftest$ac_exeext conftest.$ac_ext
8222  if test "$tmp_getprotobyname_r" = "yes"; then
8223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225
8226#include <sys/types.h>
8227#include <netdb.h>
8228
8229_ACEOF
8230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8231  $EGREP "getprotobyname_r" >/dev/null 2>&1
8232then :
8233
8234      tmp_getprotobyname_r="proto_declared"
8235
8236else $as_nop
8237
8238      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h.  */
8240
8241#define _REENTRANT
8242#include <sys/types.h>
8243#include <netdb.h>
8244
8245_ACEOF
8246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8247  $EGREP "getprotobyname_r" >/dev/null 2>&1
8248then :
8249
8250        tmp_getprotobyname_r="proto_needs_reentrant"
8251        tmp_need_reentrant="yes"
8252
8253fi
8254rm -rf conftest*
8255
8256
8257fi
8258rm -rf conftest*
8259
8260  fi
8261
8262  fi
8263
8264    fi
8265    if test "$tmp_need_reentrant" = "yes"; then
8266      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8267printf "%s\n" "yes" >&6; }
8268    else
8269      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270printf "%s\n" "no" >&6; }
8271    fi
8272  fi
8273  #
8274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8275printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8276  if test "$tmp_reentrant_initially_defined" = "yes" ||
8277    test "$tmp_need_reentrant" = "yes"; then
8278
8279
8280printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8281
8282cat >>confdefs.h <<_EOF
8283#ifndef _REENTRANT
8284#  define _REENTRANT
8285#endif
8286_EOF
8287
8288    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289printf "%s\n" "yes" >&6; }
8290  else
8291    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292printf "%s\n" "no" >&6; }
8293  fi
8294  #
8295
8296
8297# Check whether --enable-largefile was given.
8298if test ${enable_largefile+y}
8299then :
8300  enableval=$enable_largefile;
8301fi
8302
8303if test "$enable_largefile" != no; then
8304
8305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8306printf %s "checking for special C compiler options needed for large files... " >&6; }
8307if test ${ac_cv_sys_largefile_CC+y}
8308then :
8309  printf %s "(cached) " >&6
8310else $as_nop
8311  ac_cv_sys_largefile_CC=no
8312     if test "$GCC" != yes; then
8313       ac_save_CC=$CC
8314       while :; do
8315	 # IRIX 6.2 and later do not support large files by default,
8316	 # so use the C compiler's -n32 option if that helps.
8317	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319#include <sys/types.h>
8320 /* Check that off_t can represent 2**63 - 1 correctly.
8321    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8322    since some C++ compilers masquerading as C compilers
8323    incorrectly reject 9223372036854775807.  */
8324#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8325  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8326		       && LARGE_OFF_T % 2147483647 == 1)
8327		      ? 1 : -1];
8328int main (void)
8329{
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335	 if ac_fn_c_try_compile "$LINENO"
8336then :
8337  break
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.beam
8340	 CC="$CC -n32"
8341	 if ac_fn_c_try_compile "$LINENO"
8342then :
8343  ac_cv_sys_largefile_CC=' -n32'; break
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.beam
8346	 break
8347       done
8348       CC=$ac_save_CC
8349       rm -f conftest.$ac_ext
8350    fi
8351fi
8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8353printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8354  if test "$ac_cv_sys_largefile_CC" != no; then
8355    CC=$CC$ac_cv_sys_largefile_CC
8356  fi
8357
8358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8359printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8360if test ${ac_cv_sys_file_offset_bits+y}
8361then :
8362  printf %s "(cached) " >&6
8363else $as_nop
8364  while :; do
8365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366/* end confdefs.h.  */
8367#include <sys/types.h>
8368 /* Check that off_t can represent 2**63 - 1 correctly.
8369    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8370    since some C++ compilers masquerading as C compilers
8371    incorrectly reject 9223372036854775807.  */
8372#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8373  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8374		       && LARGE_OFF_T % 2147483647 == 1)
8375		      ? 1 : -1];
8376int main (void)
8377{
8378
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383if ac_fn_c_try_compile "$LINENO"
8384then :
8385  ac_cv_sys_file_offset_bits=no; break
8386fi
8387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390#define _FILE_OFFSET_BITS 64
8391#include <sys/types.h>
8392 /* Check that off_t can represent 2**63 - 1 correctly.
8393    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8394    since some C++ compilers masquerading as C compilers
8395    incorrectly reject 9223372036854775807.  */
8396#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8397  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8398		       && LARGE_OFF_T % 2147483647 == 1)
8399		      ? 1 : -1];
8400int main (void)
8401{
8402
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_compile "$LINENO"
8408then :
8409  ac_cv_sys_file_offset_bits=64; break
8410fi
8411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8412  ac_cv_sys_file_offset_bits=unknown
8413  break
8414done
8415fi
8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8417printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8418case $ac_cv_sys_file_offset_bits in #(
8419  no | unknown) ;;
8420  *)
8421printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8422;;
8423esac
8424rm -rf conftest*
8425  if test $ac_cv_sys_file_offset_bits = unknown; then
8426    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8427printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8428if test ${ac_cv_sys_large_files+y}
8429then :
8430  printf %s "(cached) " >&6
8431else $as_nop
8432  while :; do
8433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435#include <sys/types.h>
8436 /* Check that off_t can represent 2**63 - 1 correctly.
8437    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8438    since some C++ compilers masquerading as C compilers
8439    incorrectly reject 9223372036854775807.  */
8440#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8441  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8442		       && LARGE_OFF_T % 2147483647 == 1)
8443		      ? 1 : -1];
8444int main (void)
8445{
8446
8447 ;
8448 return 0;
8449}
8450_ACEOF
8451if ac_fn_c_try_compile "$LINENO"
8452then :
8453  ac_cv_sys_large_files=no; break
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458#define _LARGE_FILES 1
8459#include <sys/types.h>
8460 /* Check that off_t can represent 2**63 - 1 correctly.
8461    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8462    since some C++ compilers masquerading as C compilers
8463    incorrectly reject 9223372036854775807.  */
8464#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8465  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8466		       && LARGE_OFF_T % 2147483647 == 1)
8467		      ? 1 : -1];
8468int main (void)
8469{
8470
8471 ;
8472 return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"
8476then :
8477  ac_cv_sys_large_files=1; break
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480  ac_cv_sys_large_files=unknown
8481  break
8482done
8483fi
8484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8485printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8486case $ac_cv_sys_large_files in #(
8487  no | unknown) ;;
8488  *)
8489printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8490;;
8491esac
8492rm -rf conftest*
8493  fi
8494fi
8495
8496
8497case `pwd` in
8498  *\ * | *\	*)
8499    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8500printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8501esac
8502
8503
8504
8505macro_version='2.4.7'
8506macro_revision='2.4.7'
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521ltmain=$ac_aux_dir/ltmain.sh
8522
8523# Backslashify metacharacters that are still active within
8524# double-quoted strings.
8525sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8526
8527# Same as above, but do not quote variable references.
8528double_quote_subst='s/\(["`\\]\)/\\\1/g'
8529
8530# Sed substitution to delay expansion of an escaped shell variable in a
8531# double_quote_subst'ed string.
8532delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8533
8534# Sed substitution to delay expansion of an escaped single quote.
8535delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8536
8537# Sed substitution to avoid accidental globbing in evaled expressions
8538no_glob_subst='s/\*/\\\*/g'
8539
8540ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8541ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8542ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8543
8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8545printf %s "checking how to print strings... " >&6; }
8546# Test print first, because it will be a builtin if present.
8547if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8548   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8549  ECHO='print -r --'
8550elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8551  ECHO='printf %s\n'
8552else
8553  # Use this function as a fallback that always works.
8554  func_fallback_echo ()
8555  {
8556    eval 'cat <<_LTECHO_EOF
8557$1
8558_LTECHO_EOF'
8559  }
8560  ECHO='func_fallback_echo'
8561fi
8562
8563# func_echo_all arg...
8564# Invoke $ECHO with all args, space-separated.
8565func_echo_all ()
8566{
8567    $ECHO ""
8568}
8569
8570case $ECHO in
8571  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8572printf "%s\n" "printf" >&6; } ;;
8573  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8574printf "%s\n" "print -r" >&6; } ;;
8575  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8576printf "%s\n" "cat" >&6; } ;;
8577esac
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8593printf %s "checking for a sed that does not truncate output... " >&6; }
8594if test ${ac_cv_path_SED+y}
8595then :
8596  printf %s "(cached) " >&6
8597else $as_nop
8598            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8599     for ac_i in 1 2 3 4 5 6 7; do
8600       ac_script="$ac_script$as_nl$ac_script"
8601     done
8602     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8603     { ac_script=; unset ac_script;}
8604     if test -z "$SED"; then
8605  ac_path_SED_found=false
8606  # Loop through the user's path and test for each of PROGNAME-LIST
8607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608for as_dir in $PATH
8609do
8610  IFS=$as_save_IFS
8611  case $as_dir in #(((
8612    '') as_dir=./ ;;
8613    */) ;;
8614    *) as_dir=$as_dir/ ;;
8615  esac
8616    for ac_prog in sed gsed
8617   do
8618    for ac_exec_ext in '' $ac_executable_extensions; do
8619      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8620      as_fn_executable_p "$ac_path_SED" || continue
8621# Check for GNU ac_path_SED and select it if it is found.
8622  # Check for GNU $ac_path_SED
8623case `"$ac_path_SED" --version 2>&1` in
8624*GNU*)
8625  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8626*)
8627  ac_count=0
8628  printf %s 0123456789 >"conftest.in"
8629  while :
8630  do
8631    cat "conftest.in" "conftest.in" >"conftest.tmp"
8632    mv "conftest.tmp" "conftest.in"
8633    cp "conftest.in" "conftest.nl"
8634    printf "%s\n" '' >> "conftest.nl"
8635    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8637    as_fn_arith $ac_count + 1 && ac_count=$as_val
8638    if test $ac_count -gt ${ac_path_SED_max-0}; then
8639      # Best one so far, save it but keep looking for a better one
8640      ac_cv_path_SED="$ac_path_SED"
8641      ac_path_SED_max=$ac_count
8642    fi
8643    # 10*(2^10) chars as input seems more than enough
8644    test $ac_count -gt 10 && break
8645  done
8646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8647esac
8648
8649      $ac_path_SED_found && break 3
8650    done
8651  done
8652  done
8653IFS=$as_save_IFS
8654  if test -z "$ac_cv_path_SED"; then
8655    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8656  fi
8657else
8658  ac_cv_path_SED=$SED
8659fi
8660
8661fi
8662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8663printf "%s\n" "$ac_cv_path_SED" >&6; }
8664 SED="$ac_cv_path_SED"
8665  rm -f conftest.sed
8666
8667test -z "$SED" && SED=sed
8668Xsed="$SED -e 1s/^X//"
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8681printf %s "checking for fgrep... " >&6; }
8682if test ${ac_cv_path_FGREP+y}
8683then :
8684  printf %s "(cached) " >&6
8685else $as_nop
8686  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8687   then ac_cv_path_FGREP="$GREP -F"
8688   else
8689     if test -z "$FGREP"; then
8690  ac_path_FGREP_found=false
8691  # Loop through the user's path and test for each of PROGNAME-LIST
8692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8694do
8695  IFS=$as_save_IFS
8696  case $as_dir in #(((
8697    '') as_dir=./ ;;
8698    */) ;;
8699    *) as_dir=$as_dir/ ;;
8700  esac
8701    for ac_prog in fgrep
8702   do
8703    for ac_exec_ext in '' $ac_executable_extensions; do
8704      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8705      as_fn_executable_p "$ac_path_FGREP" || continue
8706# Check for GNU ac_path_FGREP and select it if it is found.
8707  # Check for GNU $ac_path_FGREP
8708case `"$ac_path_FGREP" --version 2>&1` in
8709*GNU*)
8710  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8711*)
8712  ac_count=0
8713  printf %s 0123456789 >"conftest.in"
8714  while :
8715  do
8716    cat "conftest.in" "conftest.in" >"conftest.tmp"
8717    mv "conftest.tmp" "conftest.in"
8718    cp "conftest.in" "conftest.nl"
8719    printf "%s\n" 'FGREP' >> "conftest.nl"
8720    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8721    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8722    as_fn_arith $ac_count + 1 && ac_count=$as_val
8723    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8724      # Best one so far, save it but keep looking for a better one
8725      ac_cv_path_FGREP="$ac_path_FGREP"
8726      ac_path_FGREP_max=$ac_count
8727    fi
8728    # 10*(2^10) chars as input seems more than enough
8729    test $ac_count -gt 10 && break
8730  done
8731  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8732esac
8733
8734      $ac_path_FGREP_found && break 3
8735    done
8736  done
8737  done
8738IFS=$as_save_IFS
8739  if test -z "$ac_cv_path_FGREP"; then
8740    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8741  fi
8742else
8743  ac_cv_path_FGREP=$FGREP
8744fi
8745
8746   fi
8747fi
8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8749printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8750 FGREP="$ac_cv_path_FGREP"
8751
8752
8753test -z "$GREP" && GREP=grep
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773# Check whether --with-gnu-ld was given.
8774if test ${with_gnu_ld+y}
8775then :
8776  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8777else $as_nop
8778  with_gnu_ld=no
8779fi
8780
8781ac_prog=ld
8782if test yes = "$GCC"; then
8783  # Check if gcc -print-prog-name=ld gives a path.
8784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8785printf %s "checking for ld used by $CC... " >&6; }
8786  case $host in
8787  *-*-mingw*)
8788    # gcc leaves a trailing carriage return, which upsets mingw
8789    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8790  *)
8791    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8792  esac
8793  case $ac_prog in
8794    # Accept absolute paths.
8795    [\\/]* | ?:[\\/]*)
8796      re_direlt='/[^/][^/]*/\.\./'
8797      # Canonicalize the pathname of ld
8798      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8799      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8800	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8801      done
8802      test -z "$LD" && LD=$ac_prog
8803      ;;
8804  "")
8805    # If it fails, then pretend we aren't using GCC.
8806    ac_prog=ld
8807    ;;
8808  *)
8809    # If it is relative, then search for the first ld in PATH.
8810    with_gnu_ld=unknown
8811    ;;
8812  esac
8813elif test yes = "$with_gnu_ld"; then
8814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8815printf %s "checking for GNU ld... " >&6; }
8816else
8817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8818printf %s "checking for non-GNU ld... " >&6; }
8819fi
8820if test ${lt_cv_path_LD+y}
8821then :
8822  printf %s "(cached) " >&6
8823else $as_nop
8824  if test -z "$LD"; then
8825  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8826  for ac_dir in $PATH; do
8827    IFS=$lt_save_ifs
8828    test -z "$ac_dir" && ac_dir=.
8829    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8830      lt_cv_path_LD=$ac_dir/$ac_prog
8831      # Check to see if the program is GNU ld.  I'd rather use --version,
8832      # but apparently some variants of GNU ld only accept -v.
8833      # Break only if it was the GNU/non-GNU ld that we prefer.
8834      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8835      *GNU* | *'with BFD'*)
8836	test no != "$with_gnu_ld" && break
8837	;;
8838      *)
8839	test yes != "$with_gnu_ld" && break
8840	;;
8841      esac
8842    fi
8843  done
8844  IFS=$lt_save_ifs
8845else
8846  lt_cv_path_LD=$LD # Let the user override the test with a path.
8847fi
8848fi
8849
8850LD=$lt_cv_path_LD
8851if test -n "$LD"; then
8852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8853printf "%s\n" "$LD" >&6; }
8854else
8855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856printf "%s\n" "no" >&6; }
8857fi
8858test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8860printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8861if test ${lt_cv_prog_gnu_ld+y}
8862then :
8863  printf %s "(cached) " >&6
8864else $as_nop
8865  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8866case `$LD -v 2>&1 </dev/null` in
8867*GNU* | *'with BFD'*)
8868  lt_cv_prog_gnu_ld=yes
8869  ;;
8870*)
8871  lt_cv_prog_gnu_ld=no
8872  ;;
8873esac
8874fi
8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8876printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8877with_gnu_ld=$lt_cv_prog_gnu_ld
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8888printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8889if test ${lt_cv_path_NM+y}
8890then :
8891  printf %s "(cached) " >&6
8892else $as_nop
8893  if test -n "$NM"; then
8894  # Let the user override the test.
8895  lt_cv_path_NM=$NM
8896else
8897  lt_nm_to_check=${ac_tool_prefix}nm
8898  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8899    lt_nm_to_check="$lt_nm_to_check nm"
8900  fi
8901  for lt_tmp_nm in $lt_nm_to_check; do
8902    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8903    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8904      IFS=$lt_save_ifs
8905      test -z "$ac_dir" && ac_dir=.
8906      tmp_nm=$ac_dir/$lt_tmp_nm
8907      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8908	# Check to see if the nm accepts a BSD-compat flag.
8909	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8910	#   nm: unknown option "B" ignored
8911	# Tru64's nm complains that /dev/null is an invalid object file
8912	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8913	case $build_os in
8914	mingw*) lt_bad_file=conftest.nm/nofile ;;
8915	*) lt_bad_file=/dev/null ;;
8916	esac
8917	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8918	*$lt_bad_file* | *'Invalid file or object type'*)
8919	  lt_cv_path_NM="$tmp_nm -B"
8920	  break 2
8921	  ;;
8922	*)
8923	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8924	  */dev/null*)
8925	    lt_cv_path_NM="$tmp_nm -p"
8926	    break 2
8927	    ;;
8928	  *)
8929	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8930	    continue # so that we can try to find one that supports BSD flags
8931	    ;;
8932	  esac
8933	  ;;
8934	esac
8935      fi
8936    done
8937    IFS=$lt_save_ifs
8938  done
8939  : ${lt_cv_path_NM=no}
8940fi
8941fi
8942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8943printf "%s\n" "$lt_cv_path_NM" >&6; }
8944if test no != "$lt_cv_path_NM"; then
8945  NM=$lt_cv_path_NM
8946else
8947  # Didn't find any BSD compatible name lister, look for dumpbin.
8948  if test -n "$DUMPBIN"; then :
8949    # Let the user override the test.
8950  else
8951    if test -n "$ac_tool_prefix"; then
8952  for ac_prog in dumpbin "link -dump"
8953  do
8954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957printf %s "checking for $ac_word... " >&6; }
8958if test ${ac_cv_prog_DUMPBIN+y}
8959then :
8960  printf %s "(cached) " >&6
8961else $as_nop
8962  if test -n "$DUMPBIN"; then
8963  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968  IFS=$as_save_IFS
8969  case $as_dir in #(((
8970    '') as_dir=./ ;;
8971    */) ;;
8972    *) as_dir=$as_dir/ ;;
8973  esac
8974    for ac_exec_ext in '' $ac_executable_extensions; do
8975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8976    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8978    break 2
8979  fi
8980done
8981  done
8982IFS=$as_save_IFS
8983
8984fi
8985fi
8986DUMPBIN=$ac_cv_prog_DUMPBIN
8987if test -n "$DUMPBIN"; then
8988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8989printf "%s\n" "$DUMPBIN" >&6; }
8990else
8991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992printf "%s\n" "no" >&6; }
8993fi
8994
8995
8996    test -n "$DUMPBIN" && break
8997  done
8998fi
8999if test -z "$DUMPBIN"; then
9000  ac_ct_DUMPBIN=$DUMPBIN
9001  for ac_prog in dumpbin "link -dump"
9002do
9003  # Extract the first word of "$ac_prog", so it can be a program name with args.
9004set dummy $ac_prog; ac_word=$2
9005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006printf %s "checking for $ac_word... " >&6; }
9007if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9008then :
9009  printf %s "(cached) " >&6
9010else $as_nop
9011  if test -n "$ac_ct_DUMPBIN"; then
9012  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017  IFS=$as_save_IFS
9018  case $as_dir in #(((
9019    '') as_dir=./ ;;
9020    */) ;;
9021    *) as_dir=$as_dir/ ;;
9022  esac
9023    for ac_exec_ext in '' $ac_executable_extensions; do
9024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9025    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9027    break 2
9028  fi
9029done
9030  done
9031IFS=$as_save_IFS
9032
9033fi
9034fi
9035ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9036if test -n "$ac_ct_DUMPBIN"; then
9037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9038printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9039else
9040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041printf "%s\n" "no" >&6; }
9042fi
9043
9044
9045  test -n "$ac_ct_DUMPBIN" && break
9046done
9047
9048  if test "x$ac_ct_DUMPBIN" = x; then
9049    DUMPBIN=":"
9050  else
9051    case $cross_compiling:$ac_tool_warned in
9052yes:)
9053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9054printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9055ac_tool_warned=yes ;;
9056esac
9057    DUMPBIN=$ac_ct_DUMPBIN
9058  fi
9059fi
9060
9061    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9062    *COFF*)
9063      DUMPBIN="$DUMPBIN -symbols -headers"
9064      ;;
9065    *)
9066      DUMPBIN=:
9067      ;;
9068    esac
9069  fi
9070
9071  if test : != "$DUMPBIN"; then
9072    NM=$DUMPBIN
9073  fi
9074fi
9075test -z "$NM" && NM=nm
9076
9077
9078
9079
9080
9081
9082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9083printf %s "checking the name lister ($NM) interface... " >&6; }
9084if test ${lt_cv_nm_interface+y}
9085then :
9086  printf %s "(cached) " >&6
9087else $as_nop
9088  lt_cv_nm_interface="BSD nm"
9089  echo "int some_variable = 0;" > conftest.$ac_ext
9090  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9091  (eval "$ac_compile" 2>conftest.err)
9092  cat conftest.err >&5
9093  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9094  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9095  cat conftest.err >&5
9096  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9097  cat conftest.out >&5
9098  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9099    lt_cv_nm_interface="MS dumpbin"
9100  fi
9101  rm -f conftest*
9102fi
9103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9104printf "%s\n" "$lt_cv_nm_interface" >&6; }
9105
9106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9107printf %s "checking whether ln -s works... " >&6; }
9108LN_S=$as_ln_s
9109if test "$LN_S" = "ln -s"; then
9110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9111printf "%s\n" "yes" >&6; }
9112else
9113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9114printf "%s\n" "no, using $LN_S" >&6; }
9115fi
9116
9117# find the maximum length of command line arguments
9118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9119printf %s "checking the maximum length of command line arguments... " >&6; }
9120if test ${lt_cv_sys_max_cmd_len+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124    i=0
9125  teststring=ABCD
9126
9127  case $build_os in
9128  msdosdjgpp*)
9129    # On DJGPP, this test can blow up pretty badly due to problems in libc
9130    # (any single argument exceeding 2000 bytes causes a buffer overrun
9131    # during glob expansion).  Even if it were fixed, the result of this
9132    # check would be larger than it should be.
9133    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9134    ;;
9135
9136  gnu*)
9137    # Under GNU Hurd, this test is not required because there is
9138    # no limit to the length of command line arguments.
9139    # Libtool will interpret -1 as no limit whatsoever
9140    lt_cv_sys_max_cmd_len=-1;
9141    ;;
9142
9143  cygwin* | mingw* | cegcc*)
9144    # On Win9x/ME, this test blows up -- it succeeds, but takes
9145    # about 5 minutes as the teststring grows exponentially.
9146    # Worse, since 9x/ME are not pre-emptively multitasking,
9147    # you end up with a "frozen" computer, even though with patience
9148    # the test eventually succeeds (with a max line length of 256k).
9149    # Instead, let's just punt: use the minimum linelength reported by
9150    # all of the supported platforms: 8192 (on NT/2K/XP).
9151    lt_cv_sys_max_cmd_len=8192;
9152    ;;
9153
9154  mint*)
9155    # On MiNT this can take a long time and run out of memory.
9156    lt_cv_sys_max_cmd_len=8192;
9157    ;;
9158
9159  amigaos*)
9160    # On AmigaOS with pdksh, this test takes hours, literally.
9161    # So we just punt and use a minimum line length of 8192.
9162    lt_cv_sys_max_cmd_len=8192;
9163    ;;
9164
9165  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9166    # This has been around since 386BSD, at least.  Likely further.
9167    if test -x /sbin/sysctl; then
9168      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9169    elif test -x /usr/sbin/sysctl; then
9170      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9171    else
9172      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9173    fi
9174    # And add a safety zone
9175    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9176    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9177    ;;
9178
9179  interix*)
9180    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9181    lt_cv_sys_max_cmd_len=196608
9182    ;;
9183
9184  os2*)
9185    # The test takes a long time on OS/2.
9186    lt_cv_sys_max_cmd_len=8192
9187    ;;
9188
9189  osf*)
9190    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9191    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9192    # nice to cause kernel panics so lets avoid the loop below.
9193    # First set a reasonable default.
9194    lt_cv_sys_max_cmd_len=16384
9195    #
9196    if test -x /sbin/sysconfig; then
9197      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9198        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9199      esac
9200    fi
9201    ;;
9202  sco3.2v5*)
9203    lt_cv_sys_max_cmd_len=102400
9204    ;;
9205  sysv5* | sco5v6* | sysv4.2uw2*)
9206    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9207    if test -n "$kargmax"; then
9208      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
9209    else
9210      lt_cv_sys_max_cmd_len=32768
9211    fi
9212    ;;
9213  *)
9214    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9215    if test -n "$lt_cv_sys_max_cmd_len" && \
9216       test undefined != "$lt_cv_sys_max_cmd_len"; then
9217      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9218      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9219    else
9220      # Make teststring a little bigger before we do anything with it.
9221      # a 1K string should be a reasonable start.
9222      for i in 1 2 3 4 5 6 7 8; do
9223        teststring=$teststring$teststring
9224      done
9225      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9226      # If test is not a shell built-in, we'll probably end up computing a
9227      # maximum length that is only half of the actual maximum length, but
9228      # we can't tell.
9229      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9230	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9231	      test 17 != "$i" # 1/2 MB should be enough
9232      do
9233        i=`expr $i + 1`
9234        teststring=$teststring$teststring
9235      done
9236      # Only check the string length outside the loop.
9237      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9238      teststring=
9239      # Add a significant safety factor because C++ compilers can tack on
9240      # massive amounts of additional arguments before passing them to the
9241      # linker.  It appears as though 1/2 is a usable value.
9242      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9243    fi
9244    ;;
9245  esac
9246
9247fi
9248
9249if test -n "$lt_cv_sys_max_cmd_len"; then
9250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9251printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9252else
9253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9254printf "%s\n" "none" >&6; }
9255fi
9256max_cmd_len=$lt_cv_sys_max_cmd_len
9257
9258
9259
9260
9261
9262
9263: ${CP="cp -f"}
9264: ${MV="mv -f"}
9265: ${RM="rm -f"}
9266
9267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9268  lt_unset=unset
9269else
9270  lt_unset=false
9271fi
9272
9273
9274
9275
9276
9277# test EBCDIC or ASCII
9278case `echo X|tr X '\101'` in
9279 A) # ASCII based system
9280    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9281  lt_SP2NL='tr \040 \012'
9282  lt_NL2SP='tr \015\012 \040\040'
9283  ;;
9284 *) # EBCDIC based system
9285  lt_SP2NL='tr \100 \n'
9286  lt_NL2SP='tr \r\n \100\100'
9287  ;;
9288esac
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9299printf %s "checking how to convert $build file names to $host format... " >&6; }
9300if test ${lt_cv_to_host_file_cmd+y}
9301then :
9302  printf %s "(cached) " >&6
9303else $as_nop
9304  case $host in
9305  *-*-mingw* )
9306    case $build in
9307      *-*-mingw* ) # actually msys
9308        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9309        ;;
9310      *-*-cygwin* )
9311        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9312        ;;
9313      * ) # otherwise, assume *nix
9314        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9315        ;;
9316    esac
9317    ;;
9318  *-*-cygwin* )
9319    case $build in
9320      *-*-mingw* ) # actually msys
9321        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9322        ;;
9323      *-*-cygwin* )
9324        lt_cv_to_host_file_cmd=func_convert_file_noop
9325        ;;
9326      * ) # otherwise, assume *nix
9327        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9328        ;;
9329    esac
9330    ;;
9331  * ) # unhandled hosts (and "normal" native builds)
9332    lt_cv_to_host_file_cmd=func_convert_file_noop
9333    ;;
9334esac
9335
9336fi
9337
9338to_host_file_cmd=$lt_cv_to_host_file_cmd
9339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9340printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9341
9342
9343
9344
9345
9346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9347printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9348if test ${lt_cv_to_tool_file_cmd+y}
9349then :
9350  printf %s "(cached) " >&6
9351else $as_nop
9352  #assume ordinary cross tools, or native build.
9353lt_cv_to_tool_file_cmd=func_convert_file_noop
9354case $host in
9355  *-*-mingw* )
9356    case $build in
9357      *-*-mingw* ) # actually msys
9358        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9359        ;;
9360    esac
9361    ;;
9362esac
9363
9364fi
9365
9366to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9368printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9369
9370
9371
9372
9373
9374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9375printf %s "checking for $LD option to reload object files... " >&6; }
9376if test ${lt_cv_ld_reload_flag+y}
9377then :
9378  printf %s "(cached) " >&6
9379else $as_nop
9380  lt_cv_ld_reload_flag='-r'
9381fi
9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9383printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9384reload_flag=$lt_cv_ld_reload_flag
9385case $reload_flag in
9386"" | " "*) ;;
9387*) reload_flag=" $reload_flag" ;;
9388esac
9389reload_cmds='$LD$reload_flag -o $output$reload_objs'
9390case $host_os in
9391  cygwin* | mingw* | pw32* | cegcc*)
9392    if test yes != "$GCC"; then
9393      reload_cmds=false
9394    fi
9395    ;;
9396  darwin*)
9397    if test yes = "$GCC"; then
9398      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9399    else
9400      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9401    fi
9402    ;;
9403esac
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413if test -n "$ac_tool_prefix"; then
9414  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9415set dummy ${ac_tool_prefix}file; ac_word=$2
9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417printf %s "checking for $ac_word... " >&6; }
9418if test ${ac_cv_prog_FILECMD+y}
9419then :
9420  printf %s "(cached) " >&6
9421else $as_nop
9422  if test -n "$FILECMD"; then
9423  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428  IFS=$as_save_IFS
9429  case $as_dir in #(((
9430    '') as_dir=./ ;;
9431    */) ;;
9432    *) as_dir=$as_dir/ ;;
9433  esac
9434    for ac_exec_ext in '' $ac_executable_extensions; do
9435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9436    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9438    break 2
9439  fi
9440done
9441  done
9442IFS=$as_save_IFS
9443
9444fi
9445fi
9446FILECMD=$ac_cv_prog_FILECMD
9447if test -n "$FILECMD"; then
9448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9449printf "%s\n" "$FILECMD" >&6; }
9450else
9451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452printf "%s\n" "no" >&6; }
9453fi
9454
9455
9456fi
9457if test -z "$ac_cv_prog_FILECMD"; then
9458  ac_ct_FILECMD=$FILECMD
9459  # Extract the first word of "file", so it can be a program name with args.
9460set dummy file; ac_word=$2
9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462printf %s "checking for $ac_word... " >&6; }
9463if test ${ac_cv_prog_ac_ct_FILECMD+y}
9464then :
9465  printf %s "(cached) " >&6
9466else $as_nop
9467  if test -n "$ac_ct_FILECMD"; then
9468  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473  IFS=$as_save_IFS
9474  case $as_dir in #(((
9475    '') as_dir=./ ;;
9476    */) ;;
9477    *) as_dir=$as_dir/ ;;
9478  esac
9479    for ac_exec_ext in '' $ac_executable_extensions; do
9480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9481    ac_cv_prog_ac_ct_FILECMD="file"
9482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9483    break 2
9484  fi
9485done
9486  done
9487IFS=$as_save_IFS
9488
9489fi
9490fi
9491ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9492if test -n "$ac_ct_FILECMD"; then
9493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9494printf "%s\n" "$ac_ct_FILECMD" >&6; }
9495else
9496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497printf "%s\n" "no" >&6; }
9498fi
9499
9500  if test "x$ac_ct_FILECMD" = x; then
9501    FILECMD=":"
9502  else
9503    case $cross_compiling:$ac_tool_warned in
9504yes:)
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507ac_tool_warned=yes ;;
9508esac
9509    FILECMD=$ac_ct_FILECMD
9510  fi
9511else
9512  FILECMD="$ac_cv_prog_FILECMD"
9513fi
9514
9515
9516
9517
9518
9519
9520
9521if test -n "$ac_tool_prefix"; then
9522  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9523set dummy ${ac_tool_prefix}objdump; ac_word=$2
9524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525printf %s "checking for $ac_word... " >&6; }
9526if test ${ac_cv_prog_OBJDUMP+y}
9527then :
9528  printf %s "(cached) " >&6
9529else $as_nop
9530  if test -n "$OBJDUMP"; then
9531  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536  IFS=$as_save_IFS
9537  case $as_dir in #(((
9538    '') as_dir=./ ;;
9539    */) ;;
9540    *) as_dir=$as_dir/ ;;
9541  esac
9542    for ac_exec_ext in '' $ac_executable_extensions; do
9543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9544    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9546    break 2
9547  fi
9548done
9549  done
9550IFS=$as_save_IFS
9551
9552fi
9553fi
9554OBJDUMP=$ac_cv_prog_OBJDUMP
9555if test -n "$OBJDUMP"; then
9556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557printf "%s\n" "$OBJDUMP" >&6; }
9558else
9559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560printf "%s\n" "no" >&6; }
9561fi
9562
9563
9564fi
9565if test -z "$ac_cv_prog_OBJDUMP"; then
9566  ac_ct_OBJDUMP=$OBJDUMP
9567  # Extract the first word of "objdump", so it can be a program name with args.
9568set dummy objdump; ac_word=$2
9569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570printf %s "checking for $ac_word... " >&6; }
9571if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9572then :
9573  printf %s "(cached) " >&6
9574else $as_nop
9575  if test -n "$ac_ct_OBJDUMP"; then
9576  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9577else
9578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581  IFS=$as_save_IFS
9582  case $as_dir in #(((
9583    '') as_dir=./ ;;
9584    */) ;;
9585    *) as_dir=$as_dir/ ;;
9586  esac
9587    for ac_exec_ext in '' $ac_executable_extensions; do
9588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9589    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9591    break 2
9592  fi
9593done
9594  done
9595IFS=$as_save_IFS
9596
9597fi
9598fi
9599ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9600if test -n "$ac_ct_OBJDUMP"; then
9601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9602printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9603else
9604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605printf "%s\n" "no" >&6; }
9606fi
9607
9608  if test "x$ac_ct_OBJDUMP" = x; then
9609    OBJDUMP="false"
9610  else
9611    case $cross_compiling:$ac_tool_warned in
9612yes:)
9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9614printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9615ac_tool_warned=yes ;;
9616esac
9617    OBJDUMP=$ac_ct_OBJDUMP
9618  fi
9619else
9620  OBJDUMP="$ac_cv_prog_OBJDUMP"
9621fi
9622
9623test -z "$OBJDUMP" && OBJDUMP=objdump
9624
9625
9626
9627
9628
9629
9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9631printf %s "checking how to recognize dependent libraries... " >&6; }
9632if test ${lt_cv_deplibs_check_method+y}
9633then :
9634  printf %s "(cached) " >&6
9635else $as_nop
9636  lt_cv_file_magic_cmd='$MAGIC_CMD'
9637lt_cv_file_magic_test_file=
9638lt_cv_deplibs_check_method='unknown'
9639# Need to set the preceding variable on all platforms that support
9640# interlibrary dependencies.
9641# 'none' -- dependencies not supported.
9642# 'unknown' -- same as none, but documents that we really don't know.
9643# 'pass_all' -- all dependencies passed with no checks.
9644# 'test_compile' -- check by making test program.
9645# 'file_magic [[regex]]' -- check by looking for files in library path
9646# that responds to the $file_magic_cmd with a given extended regex.
9647# If you have 'file' or equivalent on your system and you're not sure
9648# whether 'pass_all' will *always* work, you probably want this one.
9649
9650case $host_os in
9651aix[4-9]*)
9652  lt_cv_deplibs_check_method=pass_all
9653  ;;
9654
9655beos*)
9656  lt_cv_deplibs_check_method=pass_all
9657  ;;
9658
9659bsdi[45]*)
9660  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9661  lt_cv_file_magic_cmd='$FILECMD -L'
9662  lt_cv_file_magic_test_file=/shlib/libc.so
9663  ;;
9664
9665cygwin*)
9666  # func_win32_libid is a shell function defined in ltmain.sh
9667  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9668  lt_cv_file_magic_cmd='func_win32_libid'
9669  ;;
9670
9671mingw* | pw32*)
9672  # Base MSYS/MinGW do not provide the 'file' command needed by
9673  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9674  # unless we find 'file', for example because we are cross-compiling.
9675  if ( file / ) >/dev/null 2>&1; then
9676    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9677    lt_cv_file_magic_cmd='func_win32_libid'
9678  else
9679    # Keep this pattern in sync with the one in func_win32_libid.
9680    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9681    lt_cv_file_magic_cmd='$OBJDUMP -f'
9682  fi
9683  ;;
9684
9685cegcc*)
9686  # use the weaker test based on 'objdump'. See mingw*.
9687  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9688  lt_cv_file_magic_cmd='$OBJDUMP -f'
9689  ;;
9690
9691darwin* | rhapsody*)
9692  lt_cv_deplibs_check_method=pass_all
9693  ;;
9694
9695freebsd* | dragonfly* | midnightbsd*)
9696  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9697    case $host_cpu in
9698    i*86 )
9699      # Not sure whether the presence of OpenBSD here was a mistake.
9700      # Let's accept both of them until this is cleared up.
9701      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9702      lt_cv_file_magic_cmd=$FILECMD
9703      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9704      ;;
9705    esac
9706  else
9707    lt_cv_deplibs_check_method=pass_all
9708  fi
9709  ;;
9710
9711haiku*)
9712  lt_cv_deplibs_check_method=pass_all
9713  ;;
9714
9715hpux10.20* | hpux11*)
9716  lt_cv_file_magic_cmd=$FILECMD
9717  case $host_cpu in
9718  ia64*)
9719    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9720    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9721    ;;
9722  hppa*64*)
9723    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]'
9724    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9725    ;;
9726  *)
9727    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9728    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9729    ;;
9730  esac
9731  ;;
9732
9733interix[3-9]*)
9734  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9735  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9736  ;;
9737
9738irix5* | irix6* | nonstopux*)
9739  case $LD in
9740  *-32|*"-32 ") libmagic=32-bit;;
9741  *-n32|*"-n32 ") libmagic=N32;;
9742  *-64|*"-64 ") libmagic=64-bit;;
9743  *) libmagic=never-match;;
9744  esac
9745  lt_cv_deplibs_check_method=pass_all
9746  ;;
9747
9748# This must be glibc/ELF.
9749linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9750  lt_cv_deplibs_check_method=pass_all
9751  ;;
9752
9753netbsd* | netbsdelf*-gnu)
9754  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9755    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9756  else
9757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9758  fi
9759  ;;
9760
9761newos6*)
9762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9763  lt_cv_file_magic_cmd=$FILECMD
9764  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9765  ;;
9766
9767*nto* | *qnx*)
9768  lt_cv_deplibs_check_method=pass_all
9769  ;;
9770
9771openbsd* | bitrig*)
9772  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9774  else
9775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9776  fi
9777  ;;
9778
9779osf3* | osf4* | osf5*)
9780  lt_cv_deplibs_check_method=pass_all
9781  ;;
9782
9783rdos*)
9784  lt_cv_deplibs_check_method=pass_all
9785  ;;
9786
9787solaris*)
9788  lt_cv_deplibs_check_method=pass_all
9789  ;;
9790
9791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9792  lt_cv_deplibs_check_method=pass_all
9793  ;;
9794
9795sysv4 | sysv4.3*)
9796  case $host_vendor in
9797  motorola)
9798    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]'
9799    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9800    ;;
9801  ncr)
9802    lt_cv_deplibs_check_method=pass_all
9803    ;;
9804  sequent)
9805    lt_cv_file_magic_cmd='/bin/file'
9806    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9807    ;;
9808  sni)
9809    lt_cv_file_magic_cmd='/bin/file'
9810    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9811    lt_cv_file_magic_test_file=/lib/libc.so
9812    ;;
9813  siemens)
9814    lt_cv_deplibs_check_method=pass_all
9815    ;;
9816  pc)
9817    lt_cv_deplibs_check_method=pass_all
9818    ;;
9819  esac
9820  ;;
9821
9822tpf*)
9823  lt_cv_deplibs_check_method=pass_all
9824  ;;
9825os2*)
9826  lt_cv_deplibs_check_method=pass_all
9827  ;;
9828esac
9829
9830fi
9831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9832printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9833
9834file_magic_glob=
9835want_nocaseglob=no
9836if test "$build" = "$host"; then
9837  case $host_os in
9838  mingw* | pw32*)
9839    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9840      want_nocaseglob=yes
9841    else
9842      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9843    fi
9844    ;;
9845  esac
9846fi
9847
9848file_magic_cmd=$lt_cv_file_magic_cmd
9849deplibs_check_method=$lt_cv_deplibs_check_method
9850test -z "$deplibs_check_method" && deplibs_check_method=unknown
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873if test -n "$ac_tool_prefix"; then
9874  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9875set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877printf %s "checking for $ac_word... " >&6; }
9878if test ${ac_cv_prog_DLLTOOL+y}
9879then :
9880  printf %s "(cached) " >&6
9881else $as_nop
9882  if test -n "$DLLTOOL"; then
9883  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9884else
9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888  IFS=$as_save_IFS
9889  case $as_dir in #(((
9890    '') as_dir=./ ;;
9891    */) ;;
9892    *) as_dir=$as_dir/ ;;
9893  esac
9894    for ac_exec_ext in '' $ac_executable_extensions; do
9895  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9896    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9897    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9898    break 2
9899  fi
9900done
9901  done
9902IFS=$as_save_IFS
9903
9904fi
9905fi
9906DLLTOOL=$ac_cv_prog_DLLTOOL
9907if test -n "$DLLTOOL"; then
9908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9909printf "%s\n" "$DLLTOOL" >&6; }
9910else
9911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912printf "%s\n" "no" >&6; }
9913fi
9914
9915
9916fi
9917if test -z "$ac_cv_prog_DLLTOOL"; then
9918  ac_ct_DLLTOOL=$DLLTOOL
9919  # Extract the first word of "dlltool", so it can be a program name with args.
9920set dummy dlltool; ac_word=$2
9921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922printf %s "checking for $ac_word... " >&6; }
9923if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9924then :
9925  printf %s "(cached) " >&6
9926else $as_nop
9927  if test -n "$ac_ct_DLLTOOL"; then
9928  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9929else
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933  IFS=$as_save_IFS
9934  case $as_dir in #(((
9935    '') as_dir=./ ;;
9936    */) ;;
9937    *) as_dir=$as_dir/ ;;
9938  esac
9939    for ac_exec_ext in '' $ac_executable_extensions; do
9940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9941    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9943    break 2
9944  fi
9945done
9946  done
9947IFS=$as_save_IFS
9948
9949fi
9950fi
9951ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9952if test -n "$ac_ct_DLLTOOL"; then
9953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9954printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9955else
9956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957printf "%s\n" "no" >&6; }
9958fi
9959
9960  if test "x$ac_ct_DLLTOOL" = x; then
9961    DLLTOOL="false"
9962  else
9963    case $cross_compiling:$ac_tool_warned in
9964yes:)
9965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9966printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9967ac_tool_warned=yes ;;
9968esac
9969    DLLTOOL=$ac_ct_DLLTOOL
9970  fi
9971else
9972  DLLTOOL="$ac_cv_prog_DLLTOOL"
9973fi
9974
9975test -z "$DLLTOOL" && DLLTOOL=dlltool
9976
9977
9978
9979
9980
9981
9982
9983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9984printf %s "checking how to associate runtime and link libraries... " >&6; }
9985if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9986then :
9987  printf %s "(cached) " >&6
9988else $as_nop
9989  lt_cv_sharedlib_from_linklib_cmd='unknown'
9990
9991case $host_os in
9992cygwin* | mingw* | pw32* | cegcc*)
9993  # two different shell functions defined in ltmain.sh;
9994  # decide which one to use based on capabilities of $DLLTOOL
9995  case `$DLLTOOL --help 2>&1` in
9996  *--identify-strict*)
9997    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9998    ;;
9999  *)
10000    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10001    ;;
10002  esac
10003  ;;
10004*)
10005  # fallback: assume linklib IS sharedlib
10006  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10007  ;;
10008esac
10009
10010fi
10011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10012printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10013sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10014test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10015
10016
10017
10018
10019
10020
10021
10022if test -n "$ac_tool_prefix"; then
10023  for ac_prog in ar
10024  do
10025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028printf %s "checking for $ac_word... " >&6; }
10029if test ${ac_cv_prog_AR+y}
10030then :
10031  printf %s "(cached) " >&6
10032else $as_nop
10033  if test -n "$AR"; then
10034  ac_cv_prog_AR="$AR" # Let the user override the test.
10035else
10036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037for as_dir in $PATH
10038do
10039  IFS=$as_save_IFS
10040  case $as_dir in #(((
10041    '') as_dir=./ ;;
10042    */) ;;
10043    *) as_dir=$as_dir/ ;;
10044  esac
10045    for ac_exec_ext in '' $ac_executable_extensions; do
10046  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10047    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10048    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10049    break 2
10050  fi
10051done
10052  done
10053IFS=$as_save_IFS
10054
10055fi
10056fi
10057AR=$ac_cv_prog_AR
10058if test -n "$AR"; then
10059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10060printf "%s\n" "$AR" >&6; }
10061else
10062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063printf "%s\n" "no" >&6; }
10064fi
10065
10066
10067    test -n "$AR" && break
10068  done
10069fi
10070if test -z "$AR"; then
10071  ac_ct_AR=$AR
10072  for ac_prog in ar
10073do
10074  # Extract the first word of "$ac_prog", so it can be a program name with args.
10075set dummy $ac_prog; ac_word=$2
10076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077printf %s "checking for $ac_word... " >&6; }
10078if test ${ac_cv_prog_ac_ct_AR+y}
10079then :
10080  printf %s "(cached) " >&6
10081else $as_nop
10082  if test -n "$ac_ct_AR"; then
10083  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10084else
10085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086for as_dir in $PATH
10087do
10088  IFS=$as_save_IFS
10089  case $as_dir in #(((
10090    '') as_dir=./ ;;
10091    */) ;;
10092    *) as_dir=$as_dir/ ;;
10093  esac
10094    for ac_exec_ext in '' $ac_executable_extensions; do
10095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10096    ac_cv_prog_ac_ct_AR="$ac_prog"
10097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10098    break 2
10099  fi
10100done
10101  done
10102IFS=$as_save_IFS
10103
10104fi
10105fi
10106ac_ct_AR=$ac_cv_prog_ac_ct_AR
10107if test -n "$ac_ct_AR"; then
10108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10109printf "%s\n" "$ac_ct_AR" >&6; }
10110else
10111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112printf "%s\n" "no" >&6; }
10113fi
10114
10115
10116  test -n "$ac_ct_AR" && break
10117done
10118
10119  if test "x$ac_ct_AR" = x; then
10120    AR="false"
10121  else
10122    case $cross_compiling:$ac_tool_warned in
10123yes:)
10124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126ac_tool_warned=yes ;;
10127esac
10128    AR=$ac_ct_AR
10129  fi
10130fi
10131
10132: ${AR=ar}
10133
10134
10135
10136
10137
10138
10139# Use ARFLAGS variable as AR's operation code to sync the variable naming with
10140# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10141# higher priority because thats what people were doing historically (setting
10142# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10143# variable obsoleted/removed.
10144
10145test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10146lt_ar_flags=$AR_FLAGS
10147
10148
10149
10150
10151
10152
10153# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10154# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10155
10156
10157
10158
10159
10160
10161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10162printf %s "checking for archiver @FILE support... " >&6; }
10163if test ${lt_cv_ar_at_file+y}
10164then :
10165  printf %s "(cached) " >&6
10166else $as_nop
10167  lt_cv_ar_at_file=no
10168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170
10171int main (void)
10172{
10173
10174 ;
10175 return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_compile "$LINENO"
10179then :
10180  echo conftest.$ac_objext > conftest.lst
10181      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10182      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10183  (eval $lt_ar_try) 2>&5
10184  ac_status=$?
10185  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10186  test $ac_status = 0; }
10187      if test 0 -eq "$ac_status"; then
10188	# Ensure the archiver fails upon bogus file names.
10189	rm -f conftest.$ac_objext libconftest.a
10190	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10191  (eval $lt_ar_try) 2>&5
10192  ac_status=$?
10193  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194  test $ac_status = 0; }
10195	if test 0 -ne "$ac_status"; then
10196          lt_cv_ar_at_file=@
10197        fi
10198      fi
10199      rm -f conftest.* libconftest.a
10200
10201fi
10202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10203
10204fi
10205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10206printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10207
10208if test no = "$lt_cv_ar_at_file"; then
10209  archiver_list_spec=
10210else
10211  archiver_list_spec=$lt_cv_ar_at_file
10212fi
10213
10214
10215
10216
10217
10218
10219
10220if test -n "$ac_tool_prefix"; then
10221  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10222set dummy ${ac_tool_prefix}strip; ac_word=$2
10223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224printf %s "checking for $ac_word... " >&6; }
10225if test ${ac_cv_prog_STRIP+y}
10226then :
10227  printf %s "(cached) " >&6
10228else $as_nop
10229  if test -n "$STRIP"; then
10230  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235  IFS=$as_save_IFS
10236  case $as_dir in #(((
10237    '') as_dir=./ ;;
10238    */) ;;
10239    *) as_dir=$as_dir/ ;;
10240  esac
10241    for ac_exec_ext in '' $ac_executable_extensions; do
10242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10243    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10245    break 2
10246  fi
10247done
10248  done
10249IFS=$as_save_IFS
10250
10251fi
10252fi
10253STRIP=$ac_cv_prog_STRIP
10254if test -n "$STRIP"; then
10255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10256printf "%s\n" "$STRIP" >&6; }
10257else
10258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259printf "%s\n" "no" >&6; }
10260fi
10261
10262
10263fi
10264if test -z "$ac_cv_prog_STRIP"; then
10265  ac_ct_STRIP=$STRIP
10266  # Extract the first word of "strip", so it can be a program name with args.
10267set dummy strip; ac_word=$2
10268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269printf %s "checking for $ac_word... " >&6; }
10270if test ${ac_cv_prog_ac_ct_STRIP+y}
10271then :
10272  printf %s "(cached) " >&6
10273else $as_nop
10274  if test -n "$ac_ct_STRIP"; then
10275  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280  IFS=$as_save_IFS
10281  case $as_dir in #(((
10282    '') as_dir=./ ;;
10283    */) ;;
10284    *) as_dir=$as_dir/ ;;
10285  esac
10286    for ac_exec_ext in '' $ac_executable_extensions; do
10287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10288    ac_cv_prog_ac_ct_STRIP="strip"
10289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10290    break 2
10291  fi
10292done
10293  done
10294IFS=$as_save_IFS
10295
10296fi
10297fi
10298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10299if test -n "$ac_ct_STRIP"; then
10300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10301printf "%s\n" "$ac_ct_STRIP" >&6; }
10302else
10303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304printf "%s\n" "no" >&6; }
10305fi
10306
10307  if test "x$ac_ct_STRIP" = x; then
10308    STRIP=":"
10309  else
10310    case $cross_compiling:$ac_tool_warned in
10311yes:)
10312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10313printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10314ac_tool_warned=yes ;;
10315esac
10316    STRIP=$ac_ct_STRIP
10317  fi
10318else
10319  STRIP="$ac_cv_prog_STRIP"
10320fi
10321
10322test -z "$STRIP" && STRIP=:
10323
10324
10325
10326
10327
10328
10329if test -n "$ac_tool_prefix"; then
10330  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333printf %s "checking for $ac_word... " >&6; }
10334if test ${ac_cv_prog_RANLIB+y}
10335then :
10336  printf %s "(cached) " >&6
10337else $as_nop
10338  if test -n "$RANLIB"; then
10339  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344  IFS=$as_save_IFS
10345  case $as_dir in #(((
10346    '') as_dir=./ ;;
10347    */) ;;
10348    *) as_dir=$as_dir/ ;;
10349  esac
10350    for ac_exec_ext in '' $ac_executable_extensions; do
10351  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10352    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10353    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10354    break 2
10355  fi
10356done
10357  done
10358IFS=$as_save_IFS
10359
10360fi
10361fi
10362RANLIB=$ac_cv_prog_RANLIB
10363if test -n "$RANLIB"; then
10364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10365printf "%s\n" "$RANLIB" >&6; }
10366else
10367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368printf "%s\n" "no" >&6; }
10369fi
10370
10371
10372fi
10373if test -z "$ac_cv_prog_RANLIB"; then
10374  ac_ct_RANLIB=$RANLIB
10375  # Extract the first word of "ranlib", so it can be a program name with args.
10376set dummy ranlib; ac_word=$2
10377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378printf %s "checking for $ac_word... " >&6; }
10379if test ${ac_cv_prog_ac_ct_RANLIB+y}
10380then :
10381  printf %s "(cached) " >&6
10382else $as_nop
10383  if test -n "$ac_ct_RANLIB"; then
10384  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10385else
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389  IFS=$as_save_IFS
10390  case $as_dir in #(((
10391    '') as_dir=./ ;;
10392    */) ;;
10393    *) as_dir=$as_dir/ ;;
10394  esac
10395    for ac_exec_ext in '' $ac_executable_extensions; do
10396  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10397    ac_cv_prog_ac_ct_RANLIB="ranlib"
10398    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10399    break 2
10400  fi
10401done
10402  done
10403IFS=$as_save_IFS
10404
10405fi
10406fi
10407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10408if test -n "$ac_ct_RANLIB"; then
10409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10410printf "%s\n" "$ac_ct_RANLIB" >&6; }
10411else
10412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413printf "%s\n" "no" >&6; }
10414fi
10415
10416  if test "x$ac_ct_RANLIB" = x; then
10417    RANLIB=":"
10418  else
10419    case $cross_compiling:$ac_tool_warned in
10420yes:)
10421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10422printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10423ac_tool_warned=yes ;;
10424esac
10425    RANLIB=$ac_ct_RANLIB
10426  fi
10427else
10428  RANLIB="$ac_cv_prog_RANLIB"
10429fi
10430
10431test -z "$RANLIB" && RANLIB=:
10432
10433
10434
10435
10436
10437
10438# Determine commands to create old-style static archives.
10439old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10440old_postinstall_cmds='chmod 644 $oldlib'
10441old_postuninstall_cmds=
10442
10443if test -n "$RANLIB"; then
10444  case $host_os in
10445  bitrig* | openbsd*)
10446    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10447    ;;
10448  *)
10449    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10450    ;;
10451  esac
10452  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10453fi
10454
10455case $host_os in
10456  darwin*)
10457    lock_old_archive_extraction=yes ;;
10458  *)
10459    lock_old_archive_extraction=no ;;
10460esac
10461
10462
10463
10464
10465
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# If no C compiler was specified, use CC.
10501LTCC=${LTCC-"$CC"}
10502
10503# If no C compiler flags were specified, use CFLAGS.
10504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10505
10506# Allow CC to be a program name with arguments.
10507compiler=$CC
10508
10509
10510# Check for command to grab the raw symbol name followed by C symbol from nm.
10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10512printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10513if test ${lt_cv_sys_global_symbol_pipe+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517
10518# These are sane defaults that work on at least a few old systems.
10519# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10520
10521# Character class describing NM global symbol codes.
10522symcode='[BCDEGRST]'
10523
10524# Regexp to match symbols that can be accessed directly from C.
10525sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10526
10527# Define system-specific variables.
10528case $host_os in
10529aix*)
10530  symcode='[BCDT]'
10531  ;;
10532cygwin* | mingw* | pw32* | cegcc*)
10533  symcode='[ABCDGISTW]'
10534  ;;
10535hpux*)
10536  if test ia64 = "$host_cpu"; then
10537    symcode='[ABCDEGRST]'
10538  fi
10539  ;;
10540irix* | nonstopux*)
10541  symcode='[BCDEGRST]'
10542  ;;
10543osf*)
10544  symcode='[BCDEGQRST]'
10545  ;;
10546solaris*)
10547  symcode='[BDRT]'
10548  ;;
10549sco3.2v5*)
10550  symcode='[DT]'
10551  ;;
10552sysv4.2uw2*)
10553  symcode='[DT]'
10554  ;;
10555sysv5* | sco5v6* | unixware* | OpenUNIX*)
10556  symcode='[ABDT]'
10557  ;;
10558sysv4)
10559  symcode='[DFNSTU]'
10560  ;;
10561esac
10562
10563# If we're using GNU nm, then use its standard symbol codes.
10564case `$NM -V 2>&1` in
10565*GNU* | *'with BFD'*)
10566  symcode='[ABCDGIRSTW]' ;;
10567esac
10568
10569if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10570  # Gets list of data symbols to import.
10571  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10572  # Adjust the below global symbol transforms to fixup imported variables.
10573  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10574  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10575  lt_c_name_lib_hook="\
10576  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10577  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10578else
10579  # Disable hooks by default.
10580  lt_cv_sys_global_symbol_to_import=
10581  lt_cdecl_hook=
10582  lt_c_name_hook=
10583  lt_c_name_lib_hook=
10584fi
10585
10586# Transform an extracted symbol line into a proper C declaration.
10587# Some systems (esp. on ia64) link data and code symbols differently,
10588# so use this general approach.
10589lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10590$lt_cdecl_hook\
10591" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10592" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10593
10594# Transform an extracted symbol line into symbol name and symbol address
10595lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10596$lt_c_name_hook\
10597" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10598" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10599
10600# Transform an extracted symbol line into symbol name with lib prefix and
10601# symbol address.
10602lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10603$lt_c_name_lib_hook\
10604" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10605" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10606" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10607
10608# Handle CRLF in mingw tool chain
10609opt_cr=
10610case $build_os in
10611mingw*)
10612  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10613  ;;
10614esac
10615
10616# Try without a prefix underscore, then with it.
10617for ac_symprfx in "" "_"; do
10618
10619  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10620  symxfrm="\\1 $ac_symprfx\\2 \\2"
10621
10622  # Write the raw and C identifiers.
10623  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10624    # Fake it for dumpbin and say T for any non-static function,
10625    # D for any global variable and I for any imported variable.
10626    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10627    # which start with @ or ?.
10628    lt_cv_sys_global_symbol_pipe="$AWK '"\
10629"     {last_section=section; section=\$ 3};"\
10630"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10631"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10632"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10633"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10634"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10635"     \$ 0!~/External *\|/{next};"\
10636"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10637"     {if(hide[section]) next};"\
10638"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10639"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10640"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10641"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10642"     ' prfx=^$ac_symprfx"
10643  else
10644    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10645  fi
10646  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10647
10648  # Check to see that the pipe works correctly.
10649  pipe_works=no
10650
10651  rm -f conftest*
10652  cat > conftest.$ac_ext <<_LT_EOF
10653#ifdef __cplusplus
10654extern "C" {
10655#endif
10656char nm_test_var;
10657void nm_test_func(void);
10658void nm_test_func(void){}
10659#ifdef __cplusplus
10660}
10661#endif
10662int main(){nm_test_var='a';nm_test_func();return(0);}
10663_LT_EOF
10664
10665  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10666  (eval $ac_compile) 2>&5
10667  ac_status=$?
10668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669  test $ac_status = 0; }; then
10670    # Now try to grab the symbols.
10671    nlist=conftest.nm
10672    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10673    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10674      # Try sorting and uniquifying the output.
10675      if sort "$nlist" | uniq > "$nlist"T; then
10676	mv -f "$nlist"T "$nlist"
10677      else
10678	rm -f "$nlist"T
10679      fi
10680
10681      # Make sure that we snagged all the symbols we need.
10682      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10683	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10684	  cat <<_LT_EOF > conftest.$ac_ext
10685/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10686#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10687/* DATA imports from DLLs on WIN32 can't be const, because runtime
10688   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10689# define LT_DLSYM_CONST
10690#elif defined __osf__
10691/* This system does not cope well with relocations in const data.  */
10692# define LT_DLSYM_CONST
10693#else
10694# define LT_DLSYM_CONST const
10695#endif
10696
10697#ifdef __cplusplus
10698extern "C" {
10699#endif
10700
10701_LT_EOF
10702	  # Now generate the symbol file.
10703	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10704
10705	  cat <<_LT_EOF >> conftest.$ac_ext
10706
10707/* The mapping between symbol names and symbols.  */
10708LT_DLSYM_CONST struct {
10709  const char *name;
10710  void       *address;
10711}
10712lt__PROGRAM__LTX_preloaded_symbols[] =
10713{
10714  { "@PROGRAM@", (void *) 0 },
10715_LT_EOF
10716	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10717	  cat <<\_LT_EOF >> conftest.$ac_ext
10718  {0, (void *) 0}
10719};
10720
10721/* This works around a problem in FreeBSD linker */
10722#ifdef FREEBSD_WORKAROUND
10723static const void *lt_preloaded_setup() {
10724  return lt__PROGRAM__LTX_preloaded_symbols;
10725}
10726#endif
10727
10728#ifdef __cplusplus
10729}
10730#endif
10731_LT_EOF
10732	  # Now try linking the two files.
10733	  mv conftest.$ac_objext conftstm.$ac_objext
10734	  lt_globsym_save_LIBS=$LIBS
10735	  lt_globsym_save_CFLAGS=$CFLAGS
10736	  LIBS=conftstm.$ac_objext
10737	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10738	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10739  (eval $ac_link) 2>&5
10740  ac_status=$?
10741  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10743	    pipe_works=yes
10744	  fi
10745	  LIBS=$lt_globsym_save_LIBS
10746	  CFLAGS=$lt_globsym_save_CFLAGS
10747	else
10748	  echo "cannot find nm_test_func in $nlist" >&5
10749	fi
10750      else
10751	echo "cannot find nm_test_var in $nlist" >&5
10752      fi
10753    else
10754      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10755    fi
10756  else
10757    echo "$progname: failed program was:" >&5
10758    cat conftest.$ac_ext >&5
10759  fi
10760  rm -rf conftest* conftst*
10761
10762  # Do not use the global_symbol_pipe unless it works.
10763  if test yes = "$pipe_works"; then
10764    break
10765  else
10766    lt_cv_sys_global_symbol_pipe=
10767  fi
10768done
10769
10770fi
10771
10772if test -z "$lt_cv_sys_global_symbol_pipe"; then
10773  lt_cv_sys_global_symbol_to_cdecl=
10774fi
10775if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10777printf "%s\n" "failed" >&6; }
10778else
10779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10780printf "%s\n" "ok" >&6; }
10781fi
10782
10783# Response file support.
10784if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10785  nm_file_list_spec='@'
10786elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10787  nm_file_list_spec='@'
10788fi
10789
10790
10791
10792
10793
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10827printf %s "checking for sysroot... " >&6; }
10828
10829# Check whether --with-sysroot was given.
10830if test ${with_sysroot+y}
10831then :
10832  withval=$with_sysroot;
10833else $as_nop
10834  with_sysroot=no
10835fi
10836
10837
10838lt_sysroot=
10839case $with_sysroot in #(
10840 yes)
10841   if test yes = "$GCC"; then
10842     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10843   fi
10844   ;; #(
10845 /*)
10846   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10847   ;; #(
10848 no|'')
10849   ;; #(
10850 *)
10851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10852printf "%s\n" "$with_sysroot" >&6; }
10853   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10854   ;;
10855esac
10856
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10858printf "%s\n" "${lt_sysroot:-no}" >&6; }
10859
10860
10861
10862
10863
10864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10865printf %s "checking for a working dd... " >&6; }
10866if test ${ac_cv_path_lt_DD+y}
10867then :
10868  printf %s "(cached) " >&6
10869else $as_nop
10870  printf 0123456789abcdef0123456789abcdef >conftest.i
10871cat conftest.i conftest.i >conftest2.i
10872: ${lt_DD:=$DD}
10873if test -z "$lt_DD"; then
10874  ac_path_lt_DD_found=false
10875  # Loop through the user's path and test for each of PROGNAME-LIST
10876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879  IFS=$as_save_IFS
10880  case $as_dir in #(((
10881    '') as_dir=./ ;;
10882    */) ;;
10883    *) as_dir=$as_dir/ ;;
10884  esac
10885    for ac_prog in dd
10886   do
10887    for ac_exec_ext in '' $ac_executable_extensions; do
10888      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10889      as_fn_executable_p "$ac_path_lt_DD" || continue
10890if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10891  cmp -s conftest.i conftest.out \
10892  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10893fi
10894      $ac_path_lt_DD_found && break 3
10895    done
10896  done
10897  done
10898IFS=$as_save_IFS
10899  if test -z "$ac_cv_path_lt_DD"; then
10900    :
10901  fi
10902else
10903  ac_cv_path_lt_DD=$lt_DD
10904fi
10905
10906rm -f conftest.i conftest2.i conftest.out
10907fi
10908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10909printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10910
10911
10912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10913printf %s "checking how to truncate binary pipes... " >&6; }
10914if test ${lt_cv_truncate_bin+y}
10915then :
10916  printf %s "(cached) " >&6
10917else $as_nop
10918  printf 0123456789abcdef0123456789abcdef >conftest.i
10919cat conftest.i conftest.i >conftest2.i
10920lt_cv_truncate_bin=
10921if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10922  cmp -s conftest.i conftest.out \
10923  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10924fi
10925rm -f conftest.i conftest2.i conftest.out
10926test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10927fi
10928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10929printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10930
10931
10932
10933
10934
10935
10936
10937# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10938func_cc_basename ()
10939{
10940    for cc_temp in $*""; do
10941      case $cc_temp in
10942        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10943        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10944        \-*) ;;
10945        *) break;;
10946      esac
10947    done
10948    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10949}
10950
10951# Check whether --enable-libtool-lock was given.
10952if test ${enable_libtool_lock+y}
10953then :
10954  enableval=$enable_libtool_lock;
10955fi
10956
10957test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10958
10959# Some flags need to be propagated to the compiler or linker for good
10960# libtool support.
10961case $host in
10962ia64-*-hpux*)
10963  # Find out what ABI is being produced by ac_compile, and set mode
10964  # options accordingly.
10965  echo 'int i;' > conftest.$ac_ext
10966  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10967  (eval $ac_compile) 2>&5
10968  ac_status=$?
10969  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970  test $ac_status = 0; }; then
10971    case `$FILECMD conftest.$ac_objext` in
10972      *ELF-32*)
10973	HPUX_IA64_MODE=32
10974	;;
10975      *ELF-64*)
10976	HPUX_IA64_MODE=64
10977	;;
10978    esac
10979  fi
10980  rm -rf conftest*
10981  ;;
10982*-*-irix6*)
10983  # Find out what ABI is being produced by ac_compile, and set linker
10984  # options accordingly.
10985  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10986  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10987  (eval $ac_compile) 2>&5
10988  ac_status=$?
10989  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10990  test $ac_status = 0; }; then
10991    if test yes = "$lt_cv_prog_gnu_ld"; then
10992      case `$FILECMD conftest.$ac_objext` in
10993	*32-bit*)
10994	  LD="${LD-ld} -melf32bsmip"
10995	  ;;
10996	*N32*)
10997	  LD="${LD-ld} -melf32bmipn32"
10998	  ;;
10999	*64-bit*)
11000	  LD="${LD-ld} -melf64bmip"
11001	;;
11002      esac
11003    else
11004      case `$FILECMD conftest.$ac_objext` in
11005	*32-bit*)
11006	  LD="${LD-ld} -32"
11007	  ;;
11008	*N32*)
11009	  LD="${LD-ld} -n32"
11010	  ;;
11011	*64-bit*)
11012	  LD="${LD-ld} -64"
11013	  ;;
11014      esac
11015    fi
11016  fi
11017  rm -rf conftest*
11018  ;;
11019
11020mips64*-*linux*)
11021  # Find out what ABI is being produced by ac_compile, and set linker
11022  # options accordingly.
11023  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11025  (eval $ac_compile) 2>&5
11026  ac_status=$?
11027  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028  test $ac_status = 0; }; then
11029    emul=elf
11030    case `$FILECMD conftest.$ac_objext` in
11031      *32-bit*)
11032	emul="${emul}32"
11033	;;
11034      *64-bit*)
11035	emul="${emul}64"
11036	;;
11037    esac
11038    case `$FILECMD conftest.$ac_objext` in
11039      *MSB*)
11040	emul="${emul}btsmip"
11041	;;
11042      *LSB*)
11043	emul="${emul}ltsmip"
11044	;;
11045    esac
11046    case `$FILECMD conftest.$ac_objext` in
11047      *N32*)
11048	emul="${emul}n32"
11049	;;
11050    esac
11051    LD="${LD-ld} -m $emul"
11052  fi
11053  rm -rf conftest*
11054  ;;
11055
11056x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11057s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11058  # Find out what ABI is being produced by ac_compile, and set linker
11059  # options accordingly.  Note that the listed cases only cover the
11060  # situations where additional linker options are needed (such as when
11061  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11062  # vice versa); the common cases where no linker options are needed do
11063  # not appear in the list.
11064  echo 'int i;' > conftest.$ac_ext
11065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11066  (eval $ac_compile) 2>&5
11067  ac_status=$?
11068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11069  test $ac_status = 0; }; then
11070    case `$FILECMD conftest.o` in
11071      *32-bit*)
11072	case $host in
11073	  x86_64-*kfreebsd*-gnu)
11074	    LD="${LD-ld} -m elf_i386_fbsd"
11075	    ;;
11076	  x86_64-*linux*)
11077	    case `$FILECMD conftest.o` in
11078	      *x86-64*)
11079		LD="${LD-ld} -m elf32_x86_64"
11080		;;
11081	      *)
11082		LD="${LD-ld} -m elf_i386"
11083		;;
11084	    esac
11085	    ;;
11086	  powerpc64le-*linux*)
11087	    LD="${LD-ld} -m elf32lppclinux"
11088	    ;;
11089	  powerpc64-*linux*)
11090	    LD="${LD-ld} -m elf32ppclinux"
11091	    ;;
11092	  s390x-*linux*)
11093	    LD="${LD-ld} -m elf_s390"
11094	    ;;
11095	  sparc64-*linux*)
11096	    LD="${LD-ld} -m elf32_sparc"
11097	    ;;
11098	esac
11099	;;
11100      *64-bit*)
11101	case $host in
11102	  x86_64-*kfreebsd*-gnu)
11103	    LD="${LD-ld} -m elf_x86_64_fbsd"
11104	    ;;
11105	  x86_64-*linux*)
11106	    LD="${LD-ld} -m elf_x86_64"
11107	    ;;
11108	  powerpcle-*linux*)
11109	    LD="${LD-ld} -m elf64lppc"
11110	    ;;
11111	  powerpc-*linux*)
11112	    LD="${LD-ld} -m elf64ppc"
11113	    ;;
11114	  s390*-*linux*|s390*-*tpf*)
11115	    LD="${LD-ld} -m elf64_s390"
11116	    ;;
11117	  sparc*-*linux*)
11118	    LD="${LD-ld} -m elf64_sparc"
11119	    ;;
11120	esac
11121	;;
11122    esac
11123  fi
11124  rm -rf conftest*
11125  ;;
11126
11127*-*-sco3.2v5*)
11128  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11129  SAVE_CFLAGS=$CFLAGS
11130  CFLAGS="$CFLAGS -belf"
11131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11132printf %s "checking whether the C compiler needs -belf... " >&6; }
11133if test ${lt_cv_cc_needs_belf+y}
11134then :
11135  printf %s "(cached) " >&6
11136else $as_nop
11137  ac_ext=c
11138ac_cpp='$CPP $CPPFLAGS'
11139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141ac_compiler_gnu=$ac_cv_c_compiler_gnu
11142
11143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145
11146int main (void)
11147{
11148
11149 ;
11150 return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_link "$LINENO"
11154then :
11155  lt_cv_cc_needs_belf=yes
11156else $as_nop
11157  lt_cv_cc_needs_belf=no
11158fi
11159rm -f core conftest.err conftest.$ac_objext conftest.beam \
11160    conftest$ac_exeext conftest.$ac_ext
11161     ac_ext=c
11162ac_cpp='$CPP $CPPFLAGS'
11163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167fi
11168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11169printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11170  if test yes != "$lt_cv_cc_needs_belf"; then
11171    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11172    CFLAGS=$SAVE_CFLAGS
11173  fi
11174  ;;
11175*-*solaris*)
11176  # Find out what ABI is being produced by ac_compile, and set linker
11177  # options accordingly.
11178  echo 'int i;' > conftest.$ac_ext
11179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11180  (eval $ac_compile) 2>&5
11181  ac_status=$?
11182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183  test $ac_status = 0; }; then
11184    case `$FILECMD conftest.o` in
11185    *64-bit*)
11186      case $lt_cv_prog_gnu_ld in
11187      yes*)
11188        case $host in
11189        i?86-*-solaris*|x86_64-*-solaris*)
11190          LD="${LD-ld} -m elf_x86_64"
11191          ;;
11192        sparc*-*-solaris*)
11193          LD="${LD-ld} -m elf64_sparc"
11194          ;;
11195        esac
11196        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11197        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11198          LD=${LD-ld}_sol2
11199        fi
11200        ;;
11201      *)
11202	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11203	  LD="${LD-ld} -64"
11204	fi
11205	;;
11206      esac
11207      ;;
11208    esac
11209  fi
11210  rm -rf conftest*
11211  ;;
11212esac
11213
11214need_locks=$enable_libtool_lock
11215
11216if test -n "$ac_tool_prefix"; then
11217  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11218set dummy ${ac_tool_prefix}mt; ac_word=$2
11219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220printf %s "checking for $ac_word... " >&6; }
11221if test ${ac_cv_prog_MANIFEST_TOOL+y}
11222then :
11223  printf %s "(cached) " >&6
11224else $as_nop
11225  if test -n "$MANIFEST_TOOL"; then
11226  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11227else
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231  IFS=$as_save_IFS
11232  case $as_dir in #(((
11233    '') as_dir=./ ;;
11234    */) ;;
11235    *) as_dir=$as_dir/ ;;
11236  esac
11237    for ac_exec_ext in '' $ac_executable_extensions; do
11238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11239    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11241    break 2
11242  fi
11243done
11244  done
11245IFS=$as_save_IFS
11246
11247fi
11248fi
11249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11250if test -n "$MANIFEST_TOOL"; then
11251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11252printf "%s\n" "$MANIFEST_TOOL" >&6; }
11253else
11254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255printf "%s\n" "no" >&6; }
11256fi
11257
11258
11259fi
11260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11261  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11262  # Extract the first word of "mt", so it can be a program name with args.
11263set dummy mt; ac_word=$2
11264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265printf %s "checking for $ac_word... " >&6; }
11266if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11267then :
11268  printf %s "(cached) " >&6
11269else $as_nop
11270  if test -n "$ac_ct_MANIFEST_TOOL"; then
11271  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11272else
11273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274for as_dir in $PATH
11275do
11276  IFS=$as_save_IFS
11277  case $as_dir in #(((
11278    '') as_dir=./ ;;
11279    */) ;;
11280    *) as_dir=$as_dir/ ;;
11281  esac
11282    for ac_exec_ext in '' $ac_executable_extensions; do
11283  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11284    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11285    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11286    break 2
11287  fi
11288done
11289  done
11290IFS=$as_save_IFS
11291
11292fi
11293fi
11294ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11295if test -n "$ac_ct_MANIFEST_TOOL"; then
11296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11297printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11298else
11299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300printf "%s\n" "no" >&6; }
11301fi
11302
11303  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11304    MANIFEST_TOOL=":"
11305  else
11306    case $cross_compiling:$ac_tool_warned in
11307yes:)
11308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11310ac_tool_warned=yes ;;
11311esac
11312    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11313  fi
11314else
11315  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11316fi
11317
11318test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11320printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11321if test ${lt_cv_path_mainfest_tool+y}
11322then :
11323  printf %s "(cached) " >&6
11324else $as_nop
11325  lt_cv_path_mainfest_tool=no
11326  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11327  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11328  cat conftest.err >&5
11329  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11330    lt_cv_path_mainfest_tool=yes
11331  fi
11332  rm -f conftest*
11333fi
11334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11335printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11336if test yes != "$lt_cv_path_mainfest_tool"; then
11337  MANIFEST_TOOL=:
11338fi
11339
11340
11341
11342
11343
11344
11345  case $host_os in
11346    rhapsody* | darwin*)
11347    if test -n "$ac_tool_prefix"; then
11348  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11349set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351printf %s "checking for $ac_word... " >&6; }
11352if test ${ac_cv_prog_DSYMUTIL+y}
11353then :
11354  printf %s "(cached) " >&6
11355else $as_nop
11356  if test -n "$DSYMUTIL"; then
11357  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11358else
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362  IFS=$as_save_IFS
11363  case $as_dir in #(((
11364    '') as_dir=./ ;;
11365    */) ;;
11366    *) as_dir=$as_dir/ ;;
11367  esac
11368    for ac_exec_ext in '' $ac_executable_extensions; do
11369  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11370    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11371    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11372    break 2
11373  fi
11374done
11375  done
11376IFS=$as_save_IFS
11377
11378fi
11379fi
11380DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381if test -n "$DSYMUTIL"; then
11382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11383printf "%s\n" "$DSYMUTIL" >&6; }
11384else
11385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386printf "%s\n" "no" >&6; }
11387fi
11388
11389
11390fi
11391if test -z "$ac_cv_prog_DSYMUTIL"; then
11392  ac_ct_DSYMUTIL=$DSYMUTIL
11393  # Extract the first word of "dsymutil", so it can be a program name with args.
11394set dummy dsymutil; ac_word=$2
11395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396printf %s "checking for $ac_word... " >&6; }
11397if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11398then :
11399  printf %s "(cached) " >&6
11400else $as_nop
11401  if test -n "$ac_ct_DSYMUTIL"; then
11402  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11403else
11404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407  IFS=$as_save_IFS
11408  case $as_dir in #(((
11409    '') as_dir=./ ;;
11410    */) ;;
11411    *) as_dir=$as_dir/ ;;
11412  esac
11413    for ac_exec_ext in '' $ac_executable_extensions; do
11414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11415    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11417    break 2
11418  fi
11419done
11420  done
11421IFS=$as_save_IFS
11422
11423fi
11424fi
11425ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11426if test -n "$ac_ct_DSYMUTIL"; then
11427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11428printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11429else
11430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431printf "%s\n" "no" >&6; }
11432fi
11433
11434  if test "x$ac_ct_DSYMUTIL" = x; then
11435    DSYMUTIL=":"
11436  else
11437    case $cross_compiling:$ac_tool_warned in
11438yes:)
11439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11440printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11441ac_tool_warned=yes ;;
11442esac
11443    DSYMUTIL=$ac_ct_DSYMUTIL
11444  fi
11445else
11446  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11447fi
11448
11449    if test -n "$ac_tool_prefix"; then
11450  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11451set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453printf %s "checking for $ac_word... " >&6; }
11454if test ${ac_cv_prog_NMEDIT+y}
11455then :
11456  printf %s "(cached) " >&6
11457else $as_nop
11458  if test -n "$NMEDIT"; then
11459  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464  IFS=$as_save_IFS
11465  case $as_dir in #(((
11466    '') as_dir=./ ;;
11467    */) ;;
11468    *) as_dir=$as_dir/ ;;
11469  esac
11470    for ac_exec_ext in '' $ac_executable_extensions; do
11471  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11472    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11473    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11474    break 2
11475  fi
11476done
11477  done
11478IFS=$as_save_IFS
11479
11480fi
11481fi
11482NMEDIT=$ac_cv_prog_NMEDIT
11483if test -n "$NMEDIT"; then
11484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11485printf "%s\n" "$NMEDIT" >&6; }
11486else
11487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488printf "%s\n" "no" >&6; }
11489fi
11490
11491
11492fi
11493if test -z "$ac_cv_prog_NMEDIT"; then
11494  ac_ct_NMEDIT=$NMEDIT
11495  # Extract the first word of "nmedit", so it can be a program name with args.
11496set dummy nmedit; ac_word=$2
11497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498printf %s "checking for $ac_word... " >&6; }
11499if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11500then :
11501  printf %s "(cached) " >&6
11502else $as_nop
11503  if test -n "$ac_ct_NMEDIT"; then
11504  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11505else
11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509  IFS=$as_save_IFS
11510  case $as_dir in #(((
11511    '') as_dir=./ ;;
11512    */) ;;
11513    *) as_dir=$as_dir/ ;;
11514  esac
11515    for ac_exec_ext in '' $ac_executable_extensions; do
11516  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11517    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11518    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11519    break 2
11520  fi
11521done
11522  done
11523IFS=$as_save_IFS
11524
11525fi
11526fi
11527ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11528if test -n "$ac_ct_NMEDIT"; then
11529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11530printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11531else
11532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533printf "%s\n" "no" >&6; }
11534fi
11535
11536  if test "x$ac_ct_NMEDIT" = x; then
11537    NMEDIT=":"
11538  else
11539    case $cross_compiling:$ac_tool_warned in
11540yes:)
11541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543ac_tool_warned=yes ;;
11544esac
11545    NMEDIT=$ac_ct_NMEDIT
11546  fi
11547else
11548  NMEDIT="$ac_cv_prog_NMEDIT"
11549fi
11550
11551    if test -n "$ac_tool_prefix"; then
11552  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11553set dummy ${ac_tool_prefix}lipo; ac_word=$2
11554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555printf %s "checking for $ac_word... " >&6; }
11556if test ${ac_cv_prog_LIPO+y}
11557then :
11558  printf %s "(cached) " >&6
11559else $as_nop
11560  if test -n "$LIPO"; then
11561  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566  IFS=$as_save_IFS
11567  case $as_dir in #(((
11568    '') as_dir=./ ;;
11569    */) ;;
11570    *) as_dir=$as_dir/ ;;
11571  esac
11572    for ac_exec_ext in '' $ac_executable_extensions; do
11573  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11574    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11575    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11576    break 2
11577  fi
11578done
11579  done
11580IFS=$as_save_IFS
11581
11582fi
11583fi
11584LIPO=$ac_cv_prog_LIPO
11585if test -n "$LIPO"; then
11586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11587printf "%s\n" "$LIPO" >&6; }
11588else
11589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590printf "%s\n" "no" >&6; }
11591fi
11592
11593
11594fi
11595if test -z "$ac_cv_prog_LIPO"; then
11596  ac_ct_LIPO=$LIPO
11597  # Extract the first word of "lipo", so it can be a program name with args.
11598set dummy lipo; ac_word=$2
11599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600printf %s "checking for $ac_word... " >&6; }
11601if test ${ac_cv_prog_ac_ct_LIPO+y}
11602then :
11603  printf %s "(cached) " >&6
11604else $as_nop
11605  if test -n "$ac_ct_LIPO"; then
11606  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611  IFS=$as_save_IFS
11612  case $as_dir in #(((
11613    '') as_dir=./ ;;
11614    */) ;;
11615    *) as_dir=$as_dir/ ;;
11616  esac
11617    for ac_exec_ext in '' $ac_executable_extensions; do
11618  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11619    ac_cv_prog_ac_ct_LIPO="lipo"
11620    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11621    break 2
11622  fi
11623done
11624  done
11625IFS=$as_save_IFS
11626
11627fi
11628fi
11629ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11630if test -n "$ac_ct_LIPO"; then
11631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11632printf "%s\n" "$ac_ct_LIPO" >&6; }
11633else
11634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635printf "%s\n" "no" >&6; }
11636fi
11637
11638  if test "x$ac_ct_LIPO" = x; then
11639    LIPO=":"
11640  else
11641    case $cross_compiling:$ac_tool_warned in
11642yes:)
11643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11644printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11645ac_tool_warned=yes ;;
11646esac
11647    LIPO=$ac_ct_LIPO
11648  fi
11649else
11650  LIPO="$ac_cv_prog_LIPO"
11651fi
11652
11653    if test -n "$ac_tool_prefix"; then
11654  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11655set dummy ${ac_tool_prefix}otool; ac_word=$2
11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657printf %s "checking for $ac_word... " >&6; }
11658if test ${ac_cv_prog_OTOOL+y}
11659then :
11660  printf %s "(cached) " >&6
11661else $as_nop
11662  if test -n "$OTOOL"; then
11663  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11664else
11665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668  IFS=$as_save_IFS
11669  case $as_dir in #(((
11670    '') as_dir=./ ;;
11671    */) ;;
11672    *) as_dir=$as_dir/ ;;
11673  esac
11674    for ac_exec_ext in '' $ac_executable_extensions; do
11675  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11676    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11677    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11678    break 2
11679  fi
11680done
11681  done
11682IFS=$as_save_IFS
11683
11684fi
11685fi
11686OTOOL=$ac_cv_prog_OTOOL
11687if test -n "$OTOOL"; then
11688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11689printf "%s\n" "$OTOOL" >&6; }
11690else
11691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692printf "%s\n" "no" >&6; }
11693fi
11694
11695
11696fi
11697if test -z "$ac_cv_prog_OTOOL"; then
11698  ac_ct_OTOOL=$OTOOL
11699  # Extract the first word of "otool", so it can be a program name with args.
11700set dummy otool; ac_word=$2
11701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702printf %s "checking for $ac_word... " >&6; }
11703if test ${ac_cv_prog_ac_ct_OTOOL+y}
11704then :
11705  printf %s "(cached) " >&6
11706else $as_nop
11707  if test -n "$ac_ct_OTOOL"; then
11708  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11709else
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713  IFS=$as_save_IFS
11714  case $as_dir in #(((
11715    '') as_dir=./ ;;
11716    */) ;;
11717    *) as_dir=$as_dir/ ;;
11718  esac
11719    for ac_exec_ext in '' $ac_executable_extensions; do
11720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11721    ac_cv_prog_ac_ct_OTOOL="otool"
11722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11723    break 2
11724  fi
11725done
11726  done
11727IFS=$as_save_IFS
11728
11729fi
11730fi
11731ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11732if test -n "$ac_ct_OTOOL"; then
11733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11734printf "%s\n" "$ac_ct_OTOOL" >&6; }
11735else
11736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737printf "%s\n" "no" >&6; }
11738fi
11739
11740  if test "x$ac_ct_OTOOL" = x; then
11741    OTOOL=":"
11742  else
11743    case $cross_compiling:$ac_tool_warned in
11744yes:)
11745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11747ac_tool_warned=yes ;;
11748esac
11749    OTOOL=$ac_ct_OTOOL
11750  fi
11751else
11752  OTOOL="$ac_cv_prog_OTOOL"
11753fi
11754
11755    if test -n "$ac_tool_prefix"; then
11756  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11757set dummy ${ac_tool_prefix}otool64; ac_word=$2
11758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759printf %s "checking for $ac_word... " >&6; }
11760if test ${ac_cv_prog_OTOOL64+y}
11761then :
11762  printf %s "(cached) " >&6
11763else $as_nop
11764  if test -n "$OTOOL64"; then
11765  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770  IFS=$as_save_IFS
11771  case $as_dir in #(((
11772    '') as_dir=./ ;;
11773    */) ;;
11774    *) as_dir=$as_dir/ ;;
11775  esac
11776    for ac_exec_ext in '' $ac_executable_extensions; do
11777  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11778    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11779    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11780    break 2
11781  fi
11782done
11783  done
11784IFS=$as_save_IFS
11785
11786fi
11787fi
11788OTOOL64=$ac_cv_prog_OTOOL64
11789if test -n "$OTOOL64"; then
11790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11791printf "%s\n" "$OTOOL64" >&6; }
11792else
11793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794printf "%s\n" "no" >&6; }
11795fi
11796
11797
11798fi
11799if test -z "$ac_cv_prog_OTOOL64"; then
11800  ac_ct_OTOOL64=$OTOOL64
11801  # Extract the first word of "otool64", so it can be a program name with args.
11802set dummy otool64; ac_word=$2
11803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804printf %s "checking for $ac_word... " >&6; }
11805if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11806then :
11807  printf %s "(cached) " >&6
11808else $as_nop
11809  if test -n "$ac_ct_OTOOL64"; then
11810  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11811else
11812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $PATH
11814do
11815  IFS=$as_save_IFS
11816  case $as_dir in #(((
11817    '') as_dir=./ ;;
11818    */) ;;
11819    *) as_dir=$as_dir/ ;;
11820  esac
11821    for ac_exec_ext in '' $ac_executable_extensions; do
11822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11823    ac_cv_prog_ac_ct_OTOOL64="otool64"
11824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11825    break 2
11826  fi
11827done
11828  done
11829IFS=$as_save_IFS
11830
11831fi
11832fi
11833ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11834if test -n "$ac_ct_OTOOL64"; then
11835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11836printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11837else
11838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839printf "%s\n" "no" >&6; }
11840fi
11841
11842  if test "x$ac_ct_OTOOL64" = x; then
11843    OTOOL64=":"
11844  else
11845    case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851    OTOOL64=$ac_ct_OTOOL64
11852  fi
11853else
11854  OTOOL64="$ac_cv_prog_OTOOL64"
11855fi
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11884printf %s "checking for -single_module linker flag... " >&6; }
11885if test ${lt_cv_apple_cc_single_mod+y}
11886then :
11887  printf %s "(cached) " >&6
11888else $as_nop
11889  lt_cv_apple_cc_single_mod=no
11890      if test -z "$LT_MULTI_MODULE"; then
11891	# By default we will add the -single_module flag. You can override
11892	# by either setting the environment variable LT_MULTI_MODULE
11893	# non-empty at configure time, or by adding -multi_module to the
11894	# link flags.
11895	rm -rf libconftest.dylib*
11896	echo "int foo(void){return 1;}" > conftest.c
11897	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11898-dynamiclib -Wl,-single_module conftest.c" >&5
11899	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11900	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11901        _lt_result=$?
11902	# If there is a non-empty error log, and "single_module"
11903	# appears in it, assume the flag caused a linker warning
11904        if test -s conftest.err && $GREP single_module conftest.err; then
11905	  cat conftest.err >&5
11906	# Otherwise, if the output was created with a 0 exit code from
11907	# the compiler, it worked.
11908	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11909	  lt_cv_apple_cc_single_mod=yes
11910	else
11911	  cat conftest.err >&5
11912	fi
11913	rm -rf libconftest.dylib*
11914	rm -f conftest.*
11915      fi
11916fi
11917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11918printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11919
11920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11921printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11922if test ${lt_cv_ld_exported_symbols_list+y}
11923then :
11924  printf %s "(cached) " >&6
11925else $as_nop
11926  lt_cv_ld_exported_symbols_list=no
11927      save_LDFLAGS=$LDFLAGS
11928      echo "_main" > conftest.sym
11929      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932
11933int main (void)
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_link "$LINENO"
11941then :
11942  lt_cv_ld_exported_symbols_list=yes
11943else $as_nop
11944  lt_cv_ld_exported_symbols_list=no
11945fi
11946rm -f core conftest.err conftest.$ac_objext conftest.beam \
11947    conftest$ac_exeext conftest.$ac_ext
11948	LDFLAGS=$save_LDFLAGS
11949
11950fi
11951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11952printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11953
11954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11955printf %s "checking for -force_load linker flag... " >&6; }
11956if test ${lt_cv_ld_force_load+y}
11957then :
11958  printf %s "(cached) " >&6
11959else $as_nop
11960  lt_cv_ld_force_load=no
11961      cat > conftest.c << _LT_EOF
11962int forced_loaded() { return 2;}
11963_LT_EOF
11964      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11965      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11966      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11967      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11968      echo "$RANLIB libconftest.a" >&5
11969      $RANLIB libconftest.a 2>&5
11970      cat > conftest.c << _LT_EOF
11971int main() { return 0;}
11972_LT_EOF
11973      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11974      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11975      _lt_result=$?
11976      if test -s conftest.err && $GREP force_load conftest.err; then
11977	cat conftest.err >&5
11978      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11979	lt_cv_ld_force_load=yes
11980      else
11981	cat conftest.err >&5
11982      fi
11983        rm -f conftest.err libconftest.a conftest conftest.c
11984        rm -rf conftest.dSYM
11985
11986fi
11987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11988printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11989    case $host_os in
11990    rhapsody* | darwin1.[012])
11991      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11992    darwin1.*)
11993      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11994    darwin*)
11995      case $MACOSX_DEPLOYMENT_TARGET,$host in
11996        10.[012],*|,*powerpc*-darwin[5-8]*)
11997          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11998        *)
11999          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12000      esac
12001    ;;
12002  esac
12003    if test yes = "$lt_cv_apple_cc_single_mod"; then
12004      _lt_dar_single_mod='$single_module'
12005    fi
12006    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12007      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12008    else
12009      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12010    fi
12011    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12012      _lt_dsymutil='~$DSYMUTIL $lib || :'
12013    else
12014      _lt_dsymutil=
12015    fi
12016    ;;
12017  esac
12018
12019# func_munge_path_list VARIABLE PATH
12020# -----------------------------------
12021# VARIABLE is name of variable containing _space_ separated list of
12022# directories to be munged by the contents of PATH, which is string
12023# having a format:
12024# "DIR[:DIR]:"
12025#       string "DIR[ DIR]" will be prepended to VARIABLE
12026# ":DIR[:DIR]"
12027#       string "DIR[ DIR]" will be appended to VARIABLE
12028# "DIRP[:DIRP]::[DIRA:]DIRA"
12029#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12030#       "DIRA[ DIRA]" will be appended to VARIABLE
12031# "DIR[:DIR]"
12032#       VARIABLE will be replaced by "DIR[ DIR]"
12033func_munge_path_list ()
12034{
12035    case x$2 in
12036    x)
12037        ;;
12038    *:)
12039        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12040        ;;
12041    x:*)
12042        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12043        ;;
12044    *::*)
12045        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12046        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12047        ;;
12048    *)
12049        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12050        ;;
12051    esac
12052}
12053
12054ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12055"
12056if test "x$ac_cv_header_dlfcn_h" = xyes
12057then :
12058  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12059
12060fi
12061
12062# ------------------------------------ #
12063#  Determine libtool default behavior  #
12064# ------------------------------------ #
12065
12066#
12067# Default behavior is to enable shared and static libraries on systems
12068# where libtool knows how to build both library versions, and does not
12069# require separate configuration and build runs for each flavor.
12070#
12071
12072xc_lt_want_enable_shared='yes'
12073xc_lt_want_enable_static='yes'
12074
12075#
12076# User may have disabled shared or static libraries.
12077#
12078case "x$enable_shared" in # (
12079  xno)
12080    xc_lt_want_enable_shared='no'
12081    ;;
12082esac
12083case "x$enable_static" in # (
12084  xno)
12085    xc_lt_want_enable_static='no'
12086    ;;
12087esac
12088if test "x$xc_lt_want_enable_shared" = 'xno' &&
12089  test "x$xc_lt_want_enable_static" = 'xno'; then
12090  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12091fi
12092
12093#
12094# Default behavior on systems that require independent configuration
12095# and build runs for shared and static is to enable shared libraries
12096# and disable static ones. On these systems option '--disable-shared'
12097# must be used in order to build a proper static library.
12098#
12099
12100if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12101  test "x$xc_lt_want_enable_static" = 'xyes'; then
12102  case $host_os in # (
12103    pw32* | cegcc* | os2* | aix*)
12104      xc_lt_want_enable_static='no'
12105      ;;
12106  esac
12107fi
12108
12109#
12110# Make libtool aware of current shared and static library preferences
12111# taking in account that, depending on host characteristics, libtool
12112# may modify these option preferences later in this configure script.
12113#
12114
12115enable_shared=$xc_lt_want_enable_shared
12116enable_static=$xc_lt_want_enable_static
12117
12118#
12119# Default behavior is to build PIC objects for shared libraries and
12120# non-PIC objects for static libraries.
12121#
12122
12123xc_lt_want_with_pic='default'
12124
12125#
12126# User may have specified PIC preference.
12127#
12128
12129case "x$with_pic" in # ((
12130  xno)
12131    xc_lt_want_with_pic='no'
12132    ;;
12133  xyes)
12134    xc_lt_want_with_pic='yes'
12135    ;;
12136esac
12137
12138#
12139# Default behavior on some systems where building a shared library out
12140# of non-PIC compiled objects will fail with following linker error
12141# "relocation R_X86_64_32 can not be used when making a shared object"
12142# is to build PIC objects even for static libraries. This behavior may
12143# be overridden using 'configure --disable-shared --without-pic'.
12144#
12145
12146if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12147  case $host_cpu in # (
12148    x86_64 | amd64 | ia64)
12149      case $host_os in # (
12150        linux* | freebsd* | midnightbsd*)
12151          xc_lt_want_with_pic='yes'
12152          ;;
12153      esac
12154      ;;
12155  esac
12156fi
12157
12158#
12159# Make libtool aware of current PIC preference taking in account that,
12160# depending on host characteristics, libtool may modify PIC default
12161# behavior to fit host system idiosyncrasies later in this script.
12162#
12163
12164with_pic=$xc_lt_want_with_pic
12165
12166## ----------------------- ##
12167##  Start of libtool code  ##
12168## ----------------------- ##
12169
12170
12171
12172
12173# Set options
12174enable_win32_dll=yes
12175
12176case $host in
12177*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12178  if test -n "$ac_tool_prefix"; then
12179  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}as; ac_word=$2
12181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182printf %s "checking for $ac_word... " >&6; }
12183if test ${ac_cv_prog_AS+y}
12184then :
12185  printf %s "(cached) " >&6
12186else $as_nop
12187  if test -n "$AS"; then
12188  ac_cv_prog_AS="$AS" # Let the user override the test.
12189else
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193  IFS=$as_save_IFS
12194  case $as_dir in #(((
12195    '') as_dir=./ ;;
12196    */) ;;
12197    *) as_dir=$as_dir/ ;;
12198  esac
12199    for ac_exec_ext in '' $ac_executable_extensions; do
12200  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12201    ac_cv_prog_AS="${ac_tool_prefix}as"
12202    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12203    break 2
12204  fi
12205done
12206  done
12207IFS=$as_save_IFS
12208
12209fi
12210fi
12211AS=$ac_cv_prog_AS
12212if test -n "$AS"; then
12213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12214printf "%s\n" "$AS" >&6; }
12215else
12216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217printf "%s\n" "no" >&6; }
12218fi
12219
12220
12221fi
12222if test -z "$ac_cv_prog_AS"; then
12223  ac_ct_AS=$AS
12224  # Extract the first word of "as", so it can be a program name with args.
12225set dummy as; ac_word=$2
12226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227printf %s "checking for $ac_word... " >&6; }
12228if test ${ac_cv_prog_ac_ct_AS+y}
12229then :
12230  printf %s "(cached) " >&6
12231else $as_nop
12232  if test -n "$ac_ct_AS"; then
12233  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238  IFS=$as_save_IFS
12239  case $as_dir in #(((
12240    '') as_dir=./ ;;
12241    */) ;;
12242    *) as_dir=$as_dir/ ;;
12243  esac
12244    for ac_exec_ext in '' $ac_executable_extensions; do
12245  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12246    ac_cv_prog_ac_ct_AS="as"
12247    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251  done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256ac_ct_AS=$ac_cv_prog_ac_ct_AS
12257if test -n "$ac_ct_AS"; then
12258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12259printf "%s\n" "$ac_ct_AS" >&6; }
12260else
12261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262printf "%s\n" "no" >&6; }
12263fi
12264
12265  if test "x$ac_ct_AS" = x; then
12266    AS="false"
12267  else
12268    case $cross_compiling:$ac_tool_warned in
12269yes:)
12270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12271printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12272ac_tool_warned=yes ;;
12273esac
12274    AS=$ac_ct_AS
12275  fi
12276else
12277  AS="$ac_cv_prog_AS"
12278fi
12279
12280  if test -n "$ac_tool_prefix"; then
12281  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12282set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284printf %s "checking for $ac_word... " >&6; }
12285if test ${ac_cv_prog_DLLTOOL+y}
12286then :
12287  printf %s "(cached) " >&6
12288else $as_nop
12289  if test -n "$DLLTOOL"; then
12290  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295  IFS=$as_save_IFS
12296  case $as_dir in #(((
12297    '') as_dir=./ ;;
12298    */) ;;
12299    *) as_dir=$as_dir/ ;;
12300  esac
12301    for ac_exec_ext in '' $ac_executable_extensions; do
12302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12303    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12305    break 2
12306  fi
12307done
12308  done
12309IFS=$as_save_IFS
12310
12311fi
12312fi
12313DLLTOOL=$ac_cv_prog_DLLTOOL
12314if test -n "$DLLTOOL"; then
12315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12316printf "%s\n" "$DLLTOOL" >&6; }
12317else
12318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319printf "%s\n" "no" >&6; }
12320fi
12321
12322
12323fi
12324if test -z "$ac_cv_prog_DLLTOOL"; then
12325  ac_ct_DLLTOOL=$DLLTOOL
12326  # Extract the first word of "dlltool", so it can be a program name with args.
12327set dummy dlltool; ac_word=$2
12328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329printf %s "checking for $ac_word... " >&6; }
12330if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12331then :
12332  printf %s "(cached) " >&6
12333else $as_nop
12334  if test -n "$ac_ct_DLLTOOL"; then
12335  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12336else
12337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340  IFS=$as_save_IFS
12341  case $as_dir in #(((
12342    '') as_dir=./ ;;
12343    */) ;;
12344    *) as_dir=$as_dir/ ;;
12345  esac
12346    for ac_exec_ext in '' $ac_executable_extensions; do
12347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12348    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12350    break 2
12351  fi
12352done
12353  done
12354IFS=$as_save_IFS
12355
12356fi
12357fi
12358ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12359if test -n "$ac_ct_DLLTOOL"; then
12360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12361printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12362else
12363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364printf "%s\n" "no" >&6; }
12365fi
12366
12367  if test "x$ac_ct_DLLTOOL" = x; then
12368    DLLTOOL="false"
12369  else
12370    case $cross_compiling:$ac_tool_warned in
12371yes:)
12372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12373printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12374ac_tool_warned=yes ;;
12375esac
12376    DLLTOOL=$ac_ct_DLLTOOL
12377  fi
12378else
12379  DLLTOOL="$ac_cv_prog_DLLTOOL"
12380fi
12381
12382  if test -n "$ac_tool_prefix"; then
12383  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12384set dummy ${ac_tool_prefix}objdump; ac_word=$2
12385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386printf %s "checking for $ac_word... " >&6; }
12387if test ${ac_cv_prog_OBJDUMP+y}
12388then :
12389  printf %s "(cached) " >&6
12390else $as_nop
12391  if test -n "$OBJDUMP"; then
12392  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12393else
12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395for as_dir in $PATH
12396do
12397  IFS=$as_save_IFS
12398  case $as_dir in #(((
12399    '') as_dir=./ ;;
12400    */) ;;
12401    *) as_dir=$as_dir/ ;;
12402  esac
12403    for ac_exec_ext in '' $ac_executable_extensions; do
12404  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12405    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12406    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12407    break 2
12408  fi
12409done
12410  done
12411IFS=$as_save_IFS
12412
12413fi
12414fi
12415OBJDUMP=$ac_cv_prog_OBJDUMP
12416if test -n "$OBJDUMP"; then
12417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12418printf "%s\n" "$OBJDUMP" >&6; }
12419else
12420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421printf "%s\n" "no" >&6; }
12422fi
12423
12424
12425fi
12426if test -z "$ac_cv_prog_OBJDUMP"; then
12427  ac_ct_OBJDUMP=$OBJDUMP
12428  # Extract the first word of "objdump", so it can be a program name with args.
12429set dummy objdump; ac_word=$2
12430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431printf %s "checking for $ac_word... " >&6; }
12432if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12433then :
12434  printf %s "(cached) " >&6
12435else $as_nop
12436  if test -n "$ac_ct_OBJDUMP"; then
12437  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12438else
12439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440for as_dir in $PATH
12441do
12442  IFS=$as_save_IFS
12443  case $as_dir in #(((
12444    '') as_dir=./ ;;
12445    */) ;;
12446    *) as_dir=$as_dir/ ;;
12447  esac
12448    for ac_exec_ext in '' $ac_executable_extensions; do
12449  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12450    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12451    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12452    break 2
12453  fi
12454done
12455  done
12456IFS=$as_save_IFS
12457
12458fi
12459fi
12460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12461if test -n "$ac_ct_OBJDUMP"; then
12462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12463printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12464else
12465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466printf "%s\n" "no" >&6; }
12467fi
12468
12469  if test "x$ac_ct_OBJDUMP" = x; then
12470    OBJDUMP="false"
12471  else
12472    case $cross_compiling:$ac_tool_warned in
12473yes:)
12474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12475printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12476ac_tool_warned=yes ;;
12477esac
12478    OBJDUMP=$ac_ct_OBJDUMP
12479  fi
12480else
12481  OBJDUMP="$ac_cv_prog_OBJDUMP"
12482fi
12483
12484  ;;
12485esac
12486
12487test -z "$AS" && AS=as
12488
12489
12490
12491
12492
12493test -z "$DLLTOOL" && DLLTOOL=dlltool
12494
12495
12496
12497
12498
12499test -z "$OBJDUMP" && OBJDUMP=objdump
12500
12501
12502
12503
12504
12505
12506
12507        enable_dlopen=no
12508
12509
12510
12511            # Check whether --enable-shared was given.
12512if test ${enable_shared+y}
12513then :
12514  enableval=$enable_shared; p=${PACKAGE-default}
12515    case $enableval in
12516    yes) enable_shared=yes ;;
12517    no) enable_shared=no ;;
12518    *)
12519      enable_shared=no
12520      # Look at the argument we got.  We use all the common list separators.
12521      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12522      for pkg in $enableval; do
12523	IFS=$lt_save_ifs
12524	if test "X$pkg" = "X$p"; then
12525	  enable_shared=yes
12526	fi
12527      done
12528      IFS=$lt_save_ifs
12529      ;;
12530    esac
12531else $as_nop
12532  enable_shared=yes
12533fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543  # Check whether --enable-static was given.
12544if test ${enable_static+y}
12545then :
12546  enableval=$enable_static; p=${PACKAGE-default}
12547    case $enableval in
12548    yes) enable_static=yes ;;
12549    no) enable_static=no ;;
12550    *)
12551     enable_static=no
12552      # Look at the argument we got.  We use all the common list separators.
12553      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12554      for pkg in $enableval; do
12555	IFS=$lt_save_ifs
12556	if test "X$pkg" = "X$p"; then
12557	  enable_static=yes
12558	fi
12559      done
12560      IFS=$lt_save_ifs
12561      ;;
12562    esac
12563else $as_nop
12564  enable_static=yes
12565fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576# Check whether --with-pic was given.
12577if test ${with_pic+y}
12578then :
12579  withval=$with_pic; lt_p=${PACKAGE-default}
12580    case $withval in
12581    yes|no) pic_mode=$withval ;;
12582    *)
12583      pic_mode=default
12584      # Look at the argument we got.  We use all the common list separators.
12585      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12586      for lt_pkg in $withval; do
12587	IFS=$lt_save_ifs
12588	if test "X$lt_pkg" = "X$lt_p"; then
12589	  pic_mode=yes
12590	fi
12591      done
12592      IFS=$lt_save_ifs
12593      ;;
12594    esac
12595else $as_nop
12596  pic_mode=default
12597fi
12598
12599
12600
12601
12602
12603
12604
12605
12606  # Check whether --enable-fast-install was given.
12607if test ${enable_fast_install+y}
12608then :
12609  enableval=$enable_fast_install; p=${PACKAGE-default}
12610    case $enableval in
12611    yes) enable_fast_install=yes ;;
12612    no) enable_fast_install=no ;;
12613    *)
12614      enable_fast_install=no
12615      # Look at the argument we got.  We use all the common list separators.
12616      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12617      for pkg in $enableval; do
12618	IFS=$lt_save_ifs
12619	if test "X$pkg" = "X$p"; then
12620	  enable_fast_install=yes
12621	fi
12622      done
12623      IFS=$lt_save_ifs
12624      ;;
12625    esac
12626else $as_nop
12627  enable_fast_install=yes
12628fi
12629
12630
12631
12632
12633
12634
12635
12636
12637  shared_archive_member_spec=
12638case $host,$enable_shared in
12639power*-*-aix[5-9]*,yes)
12640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12641printf %s "checking which variant of shared library versioning to provide... " >&6; }
12642
12643# Check whether --with-aix-soname was given.
12644if test ${with_aix_soname+y}
12645then :
12646  withval=$with_aix_soname; case $withval in
12647    aix|svr4|both)
12648      ;;
12649    *)
12650      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12651      ;;
12652    esac
12653    lt_cv_with_aix_soname=$with_aix_soname
12654else $as_nop
12655  if test ${lt_cv_with_aix_soname+y}
12656then :
12657  printf %s "(cached) " >&6
12658else $as_nop
12659  lt_cv_with_aix_soname=aix
12660fi
12661
12662    with_aix_soname=$lt_cv_with_aix_soname
12663fi
12664
12665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12666printf "%s\n" "$with_aix_soname" >&6; }
12667  if test aix != "$with_aix_soname"; then
12668    # For the AIX way of multilib, we name the shared archive member
12669    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12670    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12671    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12672    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12673    if test 64 = "${OBJECT_MODE-32}"; then
12674      shared_archive_member_spec=shr_64
12675    else
12676      shared_archive_member_spec=shr
12677    fi
12678  fi
12679  ;;
12680*)
12681  with_aix_soname=aix
12682  ;;
12683esac
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694# This can be used to rebuild libtool when needed
12695LIBTOOL_DEPS=$ltmain
12696
12697# Always use our own libtool.
12698LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12699
12700
12701
12702
12703
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
12729test -z "$LN_S" && LN_S="ln -s"
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744if test -n "${ZSH_VERSION+set}"; then
12745   setopt NO_GLOB_SUBST
12746fi
12747
12748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12749printf %s "checking for objdir... " >&6; }
12750if test ${lt_cv_objdir+y}
12751then :
12752  printf %s "(cached) " >&6
12753else $as_nop
12754  rm -f .libs 2>/dev/null
12755mkdir .libs 2>/dev/null
12756if test -d .libs; then
12757  lt_cv_objdir=.libs
12758else
12759  # MS-DOS does not allow filenames that begin with a dot.
12760  lt_cv_objdir=_libs
12761fi
12762rmdir .libs 2>/dev/null
12763fi
12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12765printf "%s\n" "$lt_cv_objdir" >&6; }
12766objdir=$lt_cv_objdir
12767
12768
12769
12770
12771
12772printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12773
12774
12775
12776
12777case $host_os in
12778aix3*)
12779  # AIX sometimes has problems with the GCC collect2 program.  For some
12780  # reason, if we set the COLLECT_NAMES environment variable, the problems
12781  # vanish in a puff of smoke.
12782  if test set != "${COLLECT_NAMES+set}"; then
12783    COLLECT_NAMES=
12784    export COLLECT_NAMES
12785  fi
12786  ;;
12787esac
12788
12789# Global variables:
12790ofile=libtool
12791can_build_shared=yes
12792
12793# All known linkers require a '.a' archive for static linking (except MSVC and
12794# ICC, which need '.lib').
12795libext=a
12796
12797with_gnu_ld=$lt_cv_prog_gnu_ld
12798
12799old_CC=$CC
12800old_CFLAGS=$CFLAGS
12801
12802# Set sane defaults for various variables
12803test -z "$CC" && CC=cc
12804test -z "$LTCC" && LTCC=$CC
12805test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12806test -z "$LD" && LD=ld
12807test -z "$ac_objext" && ac_objext=o
12808
12809func_cc_basename $compiler
12810cc_basename=$func_cc_basename_result
12811
12812
12813# Only perform the check for file, if the check method requires it
12814test -z "$MAGIC_CMD" && MAGIC_CMD=file
12815case $deplibs_check_method in
12816file_magic*)
12817  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12818    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12819printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12820if test ${lt_cv_path_MAGIC_CMD+y}
12821then :
12822  printf %s "(cached) " >&6
12823else $as_nop
12824  case $MAGIC_CMD in
12825[\\/*] |  ?:[\\/]*)
12826  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12827  ;;
12828*)
12829  lt_save_MAGIC_CMD=$MAGIC_CMD
12830  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12831  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12832  for ac_dir in $ac_dummy; do
12833    IFS=$lt_save_ifs
12834    test -z "$ac_dir" && ac_dir=.
12835    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12836      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12837      if test -n "$file_magic_test_file"; then
12838	case $deplibs_check_method in
12839	"file_magic "*)
12840	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12841	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12842	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12843	    $EGREP "$file_magic_regex" > /dev/null; then
12844	    :
12845	  else
12846	    cat <<_LT_EOF 1>&2
12847
12848*** Warning: the command libtool uses to detect shared libraries,
12849*** $file_magic_cmd, produces output that libtool cannot recognize.
12850*** The result is that libtool may fail to recognize shared libraries
12851*** as such.  This will affect the creation of libtool libraries that
12852*** depend on shared libraries, but programs linked with such libtool
12853*** libraries will work regardless of this problem.  Nevertheless, you
12854*** may want to report the problem to your system manager and/or to
12855*** bug-libtool@gnu.org
12856
12857_LT_EOF
12858	  fi ;;
12859	esac
12860      fi
12861      break
12862    fi
12863  done
12864  IFS=$lt_save_ifs
12865  MAGIC_CMD=$lt_save_MAGIC_CMD
12866  ;;
12867esac
12868fi
12869
12870MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12871if test -n "$MAGIC_CMD"; then
12872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12873printf "%s\n" "$MAGIC_CMD" >&6; }
12874else
12875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876printf "%s\n" "no" >&6; }
12877fi
12878
12879
12880
12881
12882
12883if test -z "$lt_cv_path_MAGIC_CMD"; then
12884  if test -n "$ac_tool_prefix"; then
12885    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12886printf %s "checking for file... " >&6; }
12887if test ${lt_cv_path_MAGIC_CMD+y}
12888then :
12889  printf %s "(cached) " >&6
12890else $as_nop
12891  case $MAGIC_CMD in
12892[\\/*] |  ?:[\\/]*)
12893  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12894  ;;
12895*)
12896  lt_save_MAGIC_CMD=$MAGIC_CMD
12897  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12898  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12899  for ac_dir in $ac_dummy; do
12900    IFS=$lt_save_ifs
12901    test -z "$ac_dir" && ac_dir=.
12902    if test -f "$ac_dir/file"; then
12903      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12904      if test -n "$file_magic_test_file"; then
12905	case $deplibs_check_method in
12906	"file_magic "*)
12907	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12908	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12909	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12910	    $EGREP "$file_magic_regex" > /dev/null; then
12911	    :
12912	  else
12913	    cat <<_LT_EOF 1>&2
12914
12915*** Warning: the command libtool uses to detect shared libraries,
12916*** $file_magic_cmd, produces output that libtool cannot recognize.
12917*** The result is that libtool may fail to recognize shared libraries
12918*** as such.  This will affect the creation of libtool libraries that
12919*** depend on shared libraries, but programs linked with such libtool
12920*** libraries will work regardless of this problem.  Nevertheless, you
12921*** may want to report the problem to your system manager and/or to
12922*** bug-libtool@gnu.org
12923
12924_LT_EOF
12925	  fi ;;
12926	esac
12927      fi
12928      break
12929    fi
12930  done
12931  IFS=$lt_save_ifs
12932  MAGIC_CMD=$lt_save_MAGIC_CMD
12933  ;;
12934esac
12935fi
12936
12937MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12938if test -n "$MAGIC_CMD"; then
12939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12940printf "%s\n" "$MAGIC_CMD" >&6; }
12941else
12942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943printf "%s\n" "no" >&6; }
12944fi
12945
12946
12947  else
12948    MAGIC_CMD=:
12949  fi
12950fi
12951
12952  fi
12953  ;;
12954esac
12955
12956# Use C for the default configuration in the libtool script
12957
12958lt_save_CC=$CC
12959ac_ext=c
12960ac_cpp='$CPP $CPPFLAGS'
12961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965
12966# Source file extension for C test sources.
12967ac_ext=c
12968
12969# Object file extension for compiled C test sources.
12970objext=o
12971objext=$objext
12972
12973# Code to be used in simple compile tests
12974lt_simple_compile_test_code="int some_variable = 0;"
12975
12976# Code to be used in simple link tests
12977lt_simple_link_test_code='int main(){return(0);}'
12978
12979
12980
12981
12982
12983
12984
12985# If no C compiler was specified, use CC.
12986LTCC=${LTCC-"$CC"}
12987
12988# If no C compiler flags were specified, use CFLAGS.
12989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12990
12991# Allow CC to be a program name with arguments.
12992compiler=$CC
12993
12994# Save the default compiler, since it gets overwritten when the other
12995# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12996compiler_DEFAULT=$CC
12997
12998# save warnings/boilerplate of simple test code
12999ac_outfile=conftest.$ac_objext
13000echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13002_lt_compiler_boilerplate=`cat conftest.err`
13003$RM conftest*
13004
13005ac_outfile=conftest.$ac_objext
13006echo "$lt_simple_link_test_code" >conftest.$ac_ext
13007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13008_lt_linker_boilerplate=`cat conftest.err`
13009$RM -r conftest*
13010
13011
13012## CAVEAT EMPTOR:
13013## There is no encapsulation within the following macros, do not change
13014## the running order or otherwise move them around unless you know exactly
13015## what you are doing...
13016if test -n "$compiler"; then
13017
13018lt_prog_compiler_no_builtin_flag=
13019
13020if test yes = "$GCC"; then
13021  case $cc_basename in
13022  nvcc*)
13023    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13024  *)
13025    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13026  esac
13027
13028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13029printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13030if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13031then :
13032  printf %s "(cached) " >&6
13033else $as_nop
13034  lt_cv_prog_compiler_rtti_exceptions=no
13035   ac_outfile=conftest.$ac_objext
13036   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13037   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13038   # Insert the option either (1) after the last *FLAGS variable, or
13039   # (2) before a word containing "conftest.", or (3) at the end.
13040   # Note that $ac_compile itself does not contain backslashes and begins
13041   # with a dollar sign (not a hyphen), so the echo should work correctly.
13042   # The option is referenced via a variable to avoid confusing sed.
13043   lt_compile=`echo "$ac_compile" | $SED \
13044   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13045   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13046   -e 's:$: $lt_compiler_flag:'`
13047   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13048   (eval "$lt_compile" 2>conftest.err)
13049   ac_status=$?
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   if (exit $ac_status) && test -s "$ac_outfile"; then
13053     # The compiler can only warn and ignore the option if not recognized
13054     # So say no if there are warnings other than the usual output.
13055     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13056     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13057     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13058       lt_cv_prog_compiler_rtti_exceptions=yes
13059     fi
13060   fi
13061   $RM conftest*
13062
13063fi
13064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13065printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13066
13067if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13068    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13069else
13070    :
13071fi
13072
13073fi
13074
13075
13076
13077
13078
13079
13080  lt_prog_compiler_wl=
13081lt_prog_compiler_pic=
13082lt_prog_compiler_static=
13083
13084
13085  if test yes = "$GCC"; then
13086    lt_prog_compiler_wl='-Wl,'
13087    lt_prog_compiler_static='-static'
13088
13089    case $host_os in
13090      aix*)
13091      # All AIX code is PIC.
13092      if test ia64 = "$host_cpu"; then
13093	# AIX 5 now supports IA64 processor
13094	lt_prog_compiler_static='-Bstatic'
13095      fi
13096      lt_prog_compiler_pic='-fPIC'
13097      ;;
13098
13099    amigaos*)
13100      case $host_cpu in
13101      powerpc)
13102            # see comment about AmigaOS4 .so support
13103            lt_prog_compiler_pic='-fPIC'
13104        ;;
13105      m68k)
13106            # FIXME: we need at least 68020 code to build shared libraries, but
13107            # adding the '-m68020' flag to GCC prevents building anything better,
13108            # like '-m68040'.
13109            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13110        ;;
13111      esac
13112      ;;
13113
13114    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13115      # PIC is the default for these OSes.
13116      ;;
13117
13118    mingw* | cygwin* | pw32* | os2* | cegcc*)
13119      # This hack is so that the source file can tell whether it is being
13120      # built for inclusion in a dll (and should export symbols for example).
13121      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13122      # (--disable-auto-import) libraries
13123      lt_prog_compiler_pic='-DDLL_EXPORT'
13124      case $host_os in
13125      os2*)
13126	lt_prog_compiler_static='$wl-static'
13127	;;
13128      esac
13129      ;;
13130
13131    darwin* | rhapsody*)
13132      # PIC is the default on this platform
13133      # Common symbols not allowed in MH_DYLIB files
13134      lt_prog_compiler_pic='-fno-common'
13135      ;;
13136
13137    haiku*)
13138      # PIC is the default for Haiku.
13139      # The "-static" flag exists, but is broken.
13140      lt_prog_compiler_static=
13141      ;;
13142
13143    hpux*)
13144      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13145      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13146      # sets the default TLS model and affects inlining.
13147      case $host_cpu in
13148      hppa*64*)
13149	# +Z the default
13150	;;
13151      *)
13152	lt_prog_compiler_pic='-fPIC'
13153	;;
13154      esac
13155      ;;
13156
13157    interix[3-9]*)
13158      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13159      # Instead, we relocate shared libraries at runtime.
13160      ;;
13161
13162    msdosdjgpp*)
13163      # Just because we use GCC doesn't mean we suddenly get shared libraries
13164      # on systems that don't support them.
13165      lt_prog_compiler_can_build_shared=no
13166      enable_shared=no
13167      ;;
13168
13169    *nto* | *qnx*)
13170      # QNX uses GNU C++, but need to define -shared option too, otherwise
13171      # it will coredump.
13172      lt_prog_compiler_pic='-fPIC -shared'
13173      ;;
13174
13175    sysv4*MP*)
13176      if test -d /usr/nec; then
13177	lt_prog_compiler_pic=-Kconform_pic
13178      fi
13179      ;;
13180
13181    *)
13182      lt_prog_compiler_pic='-fPIC'
13183      ;;
13184    esac
13185
13186    case $cc_basename in
13187    nvcc*) # Cuda Compiler Driver 2.2
13188      lt_prog_compiler_wl='-Xlinker '
13189      if test -n "$lt_prog_compiler_pic"; then
13190        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13191      fi
13192      ;;
13193    esac
13194  else
13195    # PORTME Check for flag to pass linker flags through the system compiler.
13196    case $host_os in
13197    aix*)
13198      lt_prog_compiler_wl='-Wl,'
13199      if test ia64 = "$host_cpu"; then
13200	# AIX 5 now supports IA64 processor
13201	lt_prog_compiler_static='-Bstatic'
13202      else
13203	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13204      fi
13205      ;;
13206
13207    darwin* | rhapsody*)
13208      # PIC is the default on this platform
13209      # Common symbols not allowed in MH_DYLIB files
13210      lt_prog_compiler_pic='-fno-common'
13211      case $cc_basename in
13212      nagfor*)
13213        # NAG Fortran compiler
13214        lt_prog_compiler_wl='-Wl,-Wl,,'
13215        lt_prog_compiler_pic='-PIC'
13216        lt_prog_compiler_static='-Bstatic'
13217        ;;
13218      esac
13219      ;;
13220
13221    mingw* | cygwin* | pw32* | os2* | cegcc*)
13222      # This hack is so that the source file can tell whether it is being
13223      # built for inclusion in a dll (and should export symbols for example).
13224      lt_prog_compiler_pic='-DDLL_EXPORT'
13225      case $host_os in
13226      os2*)
13227	lt_prog_compiler_static='$wl-static'
13228	;;
13229      esac
13230      ;;
13231
13232    hpux9* | hpux10* | hpux11*)
13233      lt_prog_compiler_wl='-Wl,'
13234      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13235      # not for PA HP-UX.
13236      case $host_cpu in
13237      hppa*64*|ia64*)
13238	# +Z the default
13239	;;
13240      *)
13241	lt_prog_compiler_pic='+Z'
13242	;;
13243      esac
13244      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13245      lt_prog_compiler_static='$wl-a ${wl}archive'
13246      ;;
13247
13248    irix5* | irix6* | nonstopux*)
13249      lt_prog_compiler_wl='-Wl,'
13250      # PIC (with -KPIC) is the default.
13251      lt_prog_compiler_static='-non_shared'
13252      ;;
13253
13254    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13255      case $cc_basename in
13256      # old Intel for x86_64, which still supported -KPIC.
13257      ecc*)
13258	lt_prog_compiler_wl='-Wl,'
13259	lt_prog_compiler_pic='-KPIC'
13260	lt_prog_compiler_static='-static'
13261        ;;
13262      # flang / f18. f95 an alias for gfortran or flang on Debian
13263      flang* | f18* | f95*)
13264	lt_prog_compiler_wl='-Wl,'
13265	lt_prog_compiler_pic='-fPIC'
13266	lt_prog_compiler_static='-static'
13267        ;;
13268      # icc used to be incompatible with GCC.
13269      # ICC 10 doesn't accept -KPIC any more.
13270      icc* | ifort*)
13271	lt_prog_compiler_wl='-Wl,'
13272	lt_prog_compiler_pic='-fPIC'
13273	lt_prog_compiler_static='-static'
13274        ;;
13275      # Lahey Fortran 8.1.
13276      lf95*)
13277	lt_prog_compiler_wl='-Wl,'
13278	lt_prog_compiler_pic='--shared'
13279	lt_prog_compiler_static='--static'
13280	;;
13281      nagfor*)
13282	# NAG Fortran compiler
13283	lt_prog_compiler_wl='-Wl,-Wl,,'
13284	lt_prog_compiler_pic='-PIC'
13285	lt_prog_compiler_static='-Bstatic'
13286	;;
13287      tcc*)
13288	# Fabrice Bellard et al's Tiny C Compiler
13289	lt_prog_compiler_wl='-Wl,'
13290	lt_prog_compiler_pic='-fPIC'
13291	lt_prog_compiler_static='-static'
13292	;;
13293      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13294        # Portland Group compilers (*not* the Pentium gcc compiler,
13295	# which looks to be a dead project)
13296	lt_prog_compiler_wl='-Wl,'
13297	lt_prog_compiler_pic='-fpic'
13298	lt_prog_compiler_static='-Bstatic'
13299        ;;
13300      ccc*)
13301        lt_prog_compiler_wl='-Wl,'
13302        # All Alpha code is PIC.
13303        lt_prog_compiler_static='-non_shared'
13304        ;;
13305      xl* | bgxl* | bgf* | mpixl*)
13306	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13307	lt_prog_compiler_wl='-Wl,'
13308	lt_prog_compiler_pic='-qpic'
13309	lt_prog_compiler_static='-qstaticlink'
13310	;;
13311      *)
13312	case `$CC -V 2>&1 | $SED 5q` in
13313	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13314	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13315	  lt_prog_compiler_pic='-KPIC'
13316	  lt_prog_compiler_static='-Bstatic'
13317	  lt_prog_compiler_wl=''
13318	  ;;
13319	*Sun\ F* | *Sun*Fortran*)
13320	  lt_prog_compiler_pic='-KPIC'
13321	  lt_prog_compiler_static='-Bstatic'
13322	  lt_prog_compiler_wl='-Qoption ld '
13323	  ;;
13324	*Sun\ C*)
13325	  # Sun C 5.9
13326	  lt_prog_compiler_pic='-KPIC'
13327	  lt_prog_compiler_static='-Bstatic'
13328	  lt_prog_compiler_wl='-Wl,'
13329	  ;;
13330        *Intel*\ [CF]*Compiler*)
13331	  lt_prog_compiler_wl='-Wl,'
13332	  lt_prog_compiler_pic='-fPIC'
13333	  lt_prog_compiler_static='-static'
13334	  ;;
13335	*Portland\ Group*)
13336	  lt_prog_compiler_wl='-Wl,'
13337	  lt_prog_compiler_pic='-fpic'
13338	  lt_prog_compiler_static='-Bstatic'
13339	  ;;
13340	esac
13341	;;
13342      esac
13343      ;;
13344
13345    newsos6)
13346      lt_prog_compiler_pic='-KPIC'
13347      lt_prog_compiler_static='-Bstatic'
13348      ;;
13349
13350    *nto* | *qnx*)
13351      # QNX uses GNU C++, but need to define -shared option too, otherwise
13352      # it will coredump.
13353      lt_prog_compiler_pic='-fPIC -shared'
13354      ;;
13355
13356    osf3* | osf4* | osf5*)
13357      lt_prog_compiler_wl='-Wl,'
13358      # All OSF/1 code is PIC.
13359      lt_prog_compiler_static='-non_shared'
13360      ;;
13361
13362    rdos*)
13363      lt_prog_compiler_static='-non_shared'
13364      ;;
13365
13366    solaris*)
13367      lt_prog_compiler_pic='-KPIC'
13368      lt_prog_compiler_static='-Bstatic'
13369      case $cc_basename in
13370      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13371	lt_prog_compiler_wl='-Qoption ld ';;
13372      *)
13373	lt_prog_compiler_wl='-Wl,';;
13374      esac
13375      ;;
13376
13377    sunos4*)
13378      lt_prog_compiler_wl='-Qoption ld '
13379      lt_prog_compiler_pic='-PIC'
13380      lt_prog_compiler_static='-Bstatic'
13381      ;;
13382
13383    sysv4 | sysv4.2uw2* | sysv4.3*)
13384      lt_prog_compiler_wl='-Wl,'
13385      lt_prog_compiler_pic='-KPIC'
13386      lt_prog_compiler_static='-Bstatic'
13387      ;;
13388
13389    sysv4*MP*)
13390      if test -d /usr/nec; then
13391	lt_prog_compiler_pic='-Kconform_pic'
13392	lt_prog_compiler_static='-Bstatic'
13393      fi
13394      ;;
13395
13396    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13397      lt_prog_compiler_wl='-Wl,'
13398      lt_prog_compiler_pic='-KPIC'
13399      lt_prog_compiler_static='-Bstatic'
13400      ;;
13401
13402    unicos*)
13403      lt_prog_compiler_wl='-Wl,'
13404      lt_prog_compiler_can_build_shared=no
13405      ;;
13406
13407    uts4*)
13408      lt_prog_compiler_pic='-pic'
13409      lt_prog_compiler_static='-Bstatic'
13410      ;;
13411
13412    *)
13413      lt_prog_compiler_can_build_shared=no
13414      ;;
13415    esac
13416  fi
13417
13418case $host_os in
13419  # For platforms that do not support PIC, -DPIC is meaningless:
13420  *djgpp*)
13421    lt_prog_compiler_pic=
13422    ;;
13423  *)
13424    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13425    ;;
13426esac
13427
13428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13429printf %s "checking for $compiler option to produce PIC... " >&6; }
13430if test ${lt_cv_prog_compiler_pic+y}
13431then :
13432  printf %s "(cached) " >&6
13433else $as_nop
13434  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13435fi
13436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13437printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13438lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13439
13440#
13441# Check to make sure the PIC flag actually works.
13442#
13443if test -n "$lt_prog_compiler_pic"; then
13444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13445printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13446if test ${lt_cv_prog_compiler_pic_works+y}
13447then :
13448  printf %s "(cached) " >&6
13449else $as_nop
13450  lt_cv_prog_compiler_pic_works=no
13451   ac_outfile=conftest.$ac_objext
13452   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13454   # Insert the option either (1) after the last *FLAGS variable, or
13455   # (2) before a word containing "conftest.", or (3) at the end.
13456   # Note that $ac_compile itself does not contain backslashes and begins
13457   # with a dollar sign (not a hyphen), so the echo should work correctly.
13458   # The option is referenced via a variable to avoid confusing sed.
13459   lt_compile=`echo "$ac_compile" | $SED \
13460   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462   -e 's:$: $lt_compiler_flag:'`
13463   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13464   (eval "$lt_compile" 2>conftest.err)
13465   ac_status=$?
13466   cat conftest.err >&5
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   if (exit $ac_status) && test -s "$ac_outfile"; then
13469     # The compiler can only warn and ignore the option if not recognized
13470     # So say no if there are warnings other than the usual output.
13471     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13472     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13473     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13474       lt_cv_prog_compiler_pic_works=yes
13475     fi
13476   fi
13477   $RM conftest*
13478
13479fi
13480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13481printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13482
13483if test yes = "$lt_cv_prog_compiler_pic_works"; then
13484    case $lt_prog_compiler_pic in
13485     "" | " "*) ;;
13486     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13487     esac
13488else
13489    lt_prog_compiler_pic=
13490     lt_prog_compiler_can_build_shared=no
13491fi
13492
13493fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505#
13506# Check to make sure the static flag actually works.
13507#
13508wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13510printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13511if test ${lt_cv_prog_compiler_static_works+y}
13512then :
13513  printf %s "(cached) " >&6
13514else $as_nop
13515  lt_cv_prog_compiler_static_works=no
13516   save_LDFLAGS=$LDFLAGS
13517   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13518   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13519   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13520     # The linker can only warn and ignore the option if not recognized
13521     # So say no if there are warnings
13522     if test -s conftest.err; then
13523       # Append any errors to the config.log.
13524       cat conftest.err 1>&5
13525       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13526       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13527       if diff conftest.exp conftest.er2 >/dev/null; then
13528         lt_cv_prog_compiler_static_works=yes
13529       fi
13530     else
13531       lt_cv_prog_compiler_static_works=yes
13532     fi
13533   fi
13534   $RM -r conftest*
13535   LDFLAGS=$save_LDFLAGS
13536
13537fi
13538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13539printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13540
13541if test yes = "$lt_cv_prog_compiler_static_works"; then
13542    :
13543else
13544    lt_prog_compiler_static=
13545fi
13546
13547
13548
13549
13550
13551
13552
13553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13554printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13555if test ${lt_cv_prog_compiler_c_o+y}
13556then :
13557  printf %s "(cached) " >&6
13558else $as_nop
13559  lt_cv_prog_compiler_c_o=no
13560   $RM -r conftest 2>/dev/null
13561   mkdir conftest
13562   cd conftest
13563   mkdir out
13564   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13565
13566   lt_compiler_flag="-o out/conftest2.$ac_objext"
13567   # Insert the option either (1) after the last *FLAGS variable, or
13568   # (2) before a word containing "conftest.", or (3) at the end.
13569   # Note that $ac_compile itself does not contain backslashes and begins
13570   # with a dollar sign (not a hyphen), so the echo should work correctly.
13571   lt_compile=`echo "$ac_compile" | $SED \
13572   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574   -e 's:$: $lt_compiler_flag:'`
13575   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13576   (eval "$lt_compile" 2>out/conftest.err)
13577   ac_status=$?
13578   cat out/conftest.err >&5
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13581   then
13582     # The compiler can only warn and ignore the option if not recognized
13583     # So say no if there are warnings
13584     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13585     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13586     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13587       lt_cv_prog_compiler_c_o=yes
13588     fi
13589   fi
13590   chmod u+w . 2>&5
13591   $RM conftest*
13592   # SGI C++ compiler will create directory out/ii_files/ for
13593   # template instantiation
13594   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13595   $RM out/* && rmdir out
13596   cd ..
13597   $RM -r conftest
13598   $RM conftest*
13599
13600fi
13601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13602printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13603
13604
13605
13606
13607
13608
13609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13610printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13611if test ${lt_cv_prog_compiler_c_o+y}
13612then :
13613  printf %s "(cached) " >&6
13614else $as_nop
13615  lt_cv_prog_compiler_c_o=no
13616   $RM -r conftest 2>/dev/null
13617   mkdir conftest
13618   cd conftest
13619   mkdir out
13620   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13621
13622   lt_compiler_flag="-o out/conftest2.$ac_objext"
13623   # Insert the option either (1) after the last *FLAGS variable, or
13624   # (2) before a word containing "conftest.", or (3) at the end.
13625   # Note that $ac_compile itself does not contain backslashes and begins
13626   # with a dollar sign (not a hyphen), so the echo should work correctly.
13627   lt_compile=`echo "$ac_compile" | $SED \
13628   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13629   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13630   -e 's:$: $lt_compiler_flag:'`
13631   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13632   (eval "$lt_compile" 2>out/conftest.err)
13633   ac_status=$?
13634   cat out/conftest.err >&5
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13637   then
13638     # The compiler can only warn and ignore the option if not recognized
13639     # So say no if there are warnings
13640     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13641     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13642     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13643       lt_cv_prog_compiler_c_o=yes
13644     fi
13645   fi
13646   chmod u+w . 2>&5
13647   $RM conftest*
13648   # SGI C++ compiler will create directory out/ii_files/ for
13649   # template instantiation
13650   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13651   $RM out/* && rmdir out
13652   cd ..
13653   $RM -r conftest
13654   $RM conftest*
13655
13656fi
13657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13658printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13659
13660
13661
13662
13663hard_links=nottested
13664if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13665  # do not overwrite the value of need_locks provided by the user
13666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13667printf %s "checking if we can lock with hard links... " >&6; }
13668  hard_links=yes
13669  $RM conftest*
13670  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13671  touch conftest.a
13672  ln conftest.a conftest.b 2>&5 || hard_links=no
13673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13675printf "%s\n" "$hard_links" >&6; }
13676  if test no = "$hard_links"; then
13677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13678printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13679    need_locks=warn
13680  fi
13681else
13682  need_locks=no
13683fi
13684
13685
13686
13687
13688
13689
13690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13691printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13692
13693  runpath_var=
13694  allow_undefined_flag=
13695  always_export_symbols=no
13696  archive_cmds=
13697  archive_expsym_cmds=
13698  compiler_needs_object=no
13699  enable_shared_with_static_runtimes=no
13700  export_dynamic_flag_spec=
13701  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13702  hardcode_automatic=no
13703  hardcode_direct=no
13704  hardcode_direct_absolute=no
13705  hardcode_libdir_flag_spec=
13706  hardcode_libdir_separator=
13707  hardcode_minus_L=no
13708  hardcode_shlibpath_var=unsupported
13709  inherit_rpath=no
13710  link_all_deplibs=unknown
13711  module_cmds=
13712  module_expsym_cmds=
13713  old_archive_from_new_cmds=
13714  old_archive_from_expsyms_cmds=
13715  thread_safe_flag_spec=
13716  whole_archive_flag_spec=
13717  # include_expsyms should be a list of space-separated symbols to be *always*
13718  # included in the symbol list
13719  include_expsyms=
13720  # exclude_expsyms can be an extended regexp of symbols to exclude
13721  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13722  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13723  # as well as any symbol that contains 'd'.
13724  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13725  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13726  # platforms (ab)use it in PIC code, but their linkers get confused if
13727  # the symbol is explicitly referenced.  Since portable code cannot
13728  # rely on this symbol name, it's probably fine to never include it in
13729  # preloaded symbol tables.
13730  # Exclude shared library initialization/finalization symbols.
13731  extract_expsyms_cmds=
13732
13733  case $host_os in
13734  cygwin* | mingw* | pw32* | cegcc*)
13735    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13736    # When not using gcc, we currently assume that we are using
13737    # Microsoft Visual C++ or Intel C++ Compiler.
13738    if test yes != "$GCC"; then
13739      with_gnu_ld=no
13740    fi
13741    ;;
13742  interix*)
13743    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13744    with_gnu_ld=yes
13745    ;;
13746  openbsd* | bitrig*)
13747    with_gnu_ld=no
13748    ;;
13749  linux* | k*bsd*-gnu | gnu*)
13750    link_all_deplibs=no
13751    ;;
13752  esac
13753
13754  ld_shlibs=yes
13755
13756  # On some targets, GNU ld is compatible enough with the native linker
13757  # that we're better off using the native interface for both.
13758  lt_use_gnu_ld_interface=no
13759  if test yes = "$with_gnu_ld"; then
13760    case $host_os in
13761      aix*)
13762	# The AIX port of GNU ld has always aspired to compatibility
13763	# with the native linker.  However, as the warning in the GNU ld
13764	# block says, versions before 2.19.5* couldn't really create working
13765	# shared libraries, regardless of the interface used.
13766	case `$LD -v 2>&1` in
13767	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13768	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13769	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13770	  *)
13771	    lt_use_gnu_ld_interface=yes
13772	    ;;
13773	esac
13774	;;
13775      *)
13776	lt_use_gnu_ld_interface=yes
13777	;;
13778    esac
13779  fi
13780
13781  if test yes = "$lt_use_gnu_ld_interface"; then
13782    # If archive_cmds runs LD, not CC, wlarc should be empty
13783    wlarc='$wl'
13784
13785    # Set some defaults for GNU ld with shared library support. These
13786    # are reset later if shared libraries are not supported. Putting them
13787    # here allows them to be overridden if necessary.
13788    runpath_var=LD_RUN_PATH
13789    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13790    export_dynamic_flag_spec='$wl--export-dynamic'
13791    # ancient GNU ld didn't support --whole-archive et. al.
13792    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13793      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13794    else
13795      whole_archive_flag_spec=
13796    fi
13797    supports_anon_versioning=no
13798    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13799      *GNU\ gold*) supports_anon_versioning=yes ;;
13800      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13801      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13802      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13803      *\ 2.11.*) ;; # other 2.11 versions
13804      *) supports_anon_versioning=yes ;;
13805    esac
13806
13807    # See if GNU ld supports shared libraries.
13808    case $host_os in
13809    aix[3-9]*)
13810      # On AIX/PPC, the GNU linker is very broken
13811      if test ia64 != "$host_cpu"; then
13812	ld_shlibs=no
13813	cat <<_LT_EOF 1>&2
13814
13815*** Warning: the GNU linker, at least up to release 2.19, is reported
13816*** to be unable to reliably create shared libraries on AIX.
13817*** Therefore, libtool is disabling shared libraries support.  If you
13818*** really care for shared libraries, you may want to install binutils
13819*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13820*** You will then need to restart the configuration process.
13821
13822_LT_EOF
13823      fi
13824      ;;
13825
13826    amigaos*)
13827      case $host_cpu in
13828      powerpc)
13829            # see comment about AmigaOS4 .so support
13830            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13831            archive_expsym_cmds=''
13832        ;;
13833      m68k)
13834            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)'
13835            hardcode_libdir_flag_spec='-L$libdir'
13836            hardcode_minus_L=yes
13837        ;;
13838      esac
13839      ;;
13840
13841    beos*)
13842      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13843	allow_undefined_flag=unsupported
13844	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13845	# support --undefined.  This deserves some investigation.  FIXME
13846	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13847      else
13848	ld_shlibs=no
13849      fi
13850      ;;
13851
13852    cygwin* | mingw* | pw32* | cegcc*)
13853      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13854      # as there is no search path for DLLs.
13855      hardcode_libdir_flag_spec='-L$libdir'
13856      export_dynamic_flag_spec='$wl--export-all-symbols'
13857      allow_undefined_flag=unsupported
13858      always_export_symbols=no
13859      enable_shared_with_static_runtimes=yes
13860      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'
13861      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13862
13863      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13864        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13865	# If the export-symbols file already is a .def file, use it as
13866	# is; otherwise, prepend EXPORTS...
13867	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13868          cp $export_symbols $output_objdir/$soname.def;
13869        else
13870          echo EXPORTS > $output_objdir/$soname.def;
13871          cat $export_symbols >> $output_objdir/$soname.def;
13872        fi~
13873        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13874      else
13875	ld_shlibs=no
13876      fi
13877      ;;
13878
13879    haiku*)
13880      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13881      link_all_deplibs=yes
13882      ;;
13883
13884    os2*)
13885      hardcode_libdir_flag_spec='-L$libdir'
13886      hardcode_minus_L=yes
13887      allow_undefined_flag=unsupported
13888      shrext_cmds=.dll
13889      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13890	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13891	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13892	$ECHO EXPORTS >> $output_objdir/$libname.def~
13893	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13894	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13895	emximp -o $lib $output_objdir/$libname.def'
13896      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13897	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13898	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13899	$ECHO EXPORTS >> $output_objdir/$libname.def~
13900	prefix_cmds="$SED"~
13901	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13902	  prefix_cmds="$prefix_cmds -e 1d";
13903	fi~
13904	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13905	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13906	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13907	emximp -o $lib $output_objdir/$libname.def'
13908      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13909      enable_shared_with_static_runtimes=yes
13910      file_list_spec='@'
13911      ;;
13912
13913    interix[3-9]*)
13914      hardcode_direct=no
13915      hardcode_shlibpath_var=no
13916      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13917      export_dynamic_flag_spec='$wl-E'
13918      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13919      # Instead, shared libraries are loaded at an image base (0x10000000 by
13920      # default) and relocated if they conflict, which is a slow very memory
13921      # consuming and fragmenting process.  To avoid this, we pick a random,
13922      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13923      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13924      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13925      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'
13926      ;;
13927
13928    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13929      tmp_diet=no
13930      if test linux-dietlibc = "$host_os"; then
13931	case $cc_basename in
13932	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13933	esac
13934      fi
13935      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13936	 && test no = "$tmp_diet"
13937      then
13938	tmp_addflag=' $pic_flag'
13939	tmp_sharedflag='-shared'
13940	case $cc_basename,$host_cpu in
13941        pgcc*)				# Portland Group C compiler
13942	  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'
13943	  tmp_addflag=' $pic_flag'
13944	  ;;
13945	pgf77* | pgf90* | pgf95* | pgfortran*)
13946					# Portland Group f77 and f90 compilers
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 -Mnomain' ;;
13949	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13950	  tmp_addflag=' -i_dynamic' ;;
13951	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13952	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13953	ifc* | ifort*)			# Intel Fortran compiler
13954	  tmp_addflag=' -nofor_main' ;;
13955	lf95*)				# Lahey Fortran 8.1
13956	  whole_archive_flag_spec=
13957	  tmp_sharedflag='--shared' ;;
13958        nagfor*)                        # NAGFOR 5.3
13959          tmp_sharedflag='-Wl,-shared' ;;
13960	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13961	  tmp_sharedflag='-qmkshrobj'
13962	  tmp_addflag= ;;
13963	nvcc*)	# Cuda Compiler Driver 2.2
13964	  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'
13965	  compiler_needs_object=yes
13966	  ;;
13967	esac
13968	case `$CC -V 2>&1 | $SED 5q` in
13969	*Sun\ C*)			# Sun C 5.9
13970	  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'
13971	  compiler_needs_object=yes
13972	  tmp_sharedflag='-G' ;;
13973	*Sun\ F*)			# Sun Fortran 8.3
13974	  tmp_sharedflag='-G' ;;
13975	esac
13976	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13977
13978        if test yes = "$supports_anon_versioning"; then
13979          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13980            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13981            echo "local: *; };" >> $output_objdir/$libname.ver~
13982            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13983        fi
13984
13985	case $cc_basename in
13986	tcc*)
13987	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13988	  export_dynamic_flag_spec='-rdynamic'
13989	  ;;
13990	xlf* | bgf* | bgxlf* | mpixlf*)
13991	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13992	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13993	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13994	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13995	  if test yes = "$supports_anon_versioning"; then
13996	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13997              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13998              echo "local: *; };" >> $output_objdir/$libname.ver~
13999              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14000	  fi
14001	  ;;
14002	esac
14003      else
14004        ld_shlibs=no
14005      fi
14006      ;;
14007
14008    netbsd* | netbsdelf*-gnu)
14009      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14010	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14011	wlarc=
14012      else
14013	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14014	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14015      fi
14016      ;;
14017
14018    solaris*)
14019      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14020	ld_shlibs=no
14021	cat <<_LT_EOF 1>&2
14022
14023*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14024*** create shared libraries on Solaris systems.  Therefore, libtool
14025*** is disabling shared libraries support.  We urge you to upgrade GNU
14026*** binutils to release 2.9.1 or newer.  Another option is to modify
14027*** your PATH or compiler configuration so that the native linker is
14028*** used, and then restart.
14029
14030_LT_EOF
14031      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14032	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14033	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14034      else
14035	ld_shlibs=no
14036      fi
14037      ;;
14038
14039    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14040      case `$LD -v 2>&1` in
14041        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14042	ld_shlibs=no
14043	cat <<_LT_EOF 1>&2
14044
14045*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14046*** reliably create shared libraries on SCO systems.  Therefore, libtool
14047*** is disabling shared libraries support.  We urge you to upgrade GNU
14048*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14049*** your PATH or compiler configuration so that the native linker is
14050*** used, and then restart.
14051
14052_LT_EOF
14053	;;
14054	*)
14055	  # For security reasons, it is highly recommended that you always
14056	  # use absolute paths for naming shared libraries, and exclude the
14057	  # DT_RUNPATH tag from executables and libraries.  But doing so
14058	  # requires that you compile everything twice, which is a pain.
14059	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14060	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14061	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14062	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14063	  else
14064	    ld_shlibs=no
14065	  fi
14066	;;
14067      esac
14068      ;;
14069
14070    sunos4*)
14071      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14072      wlarc=
14073      hardcode_direct=yes
14074      hardcode_shlibpath_var=no
14075      ;;
14076
14077    *)
14078      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14079	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14080	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14081      else
14082	ld_shlibs=no
14083      fi
14084      ;;
14085    esac
14086
14087    if test no = "$ld_shlibs"; then
14088      runpath_var=
14089      hardcode_libdir_flag_spec=
14090      export_dynamic_flag_spec=
14091      whole_archive_flag_spec=
14092    fi
14093  else
14094    # PORTME fill in a description of your system's linker (not GNU ld)
14095    case $host_os in
14096    aix3*)
14097      allow_undefined_flag=unsupported
14098      always_export_symbols=yes
14099      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'
14100      # Note: this linker hardcodes the directories in LIBPATH if there
14101      # are no directories specified by -L.
14102      hardcode_minus_L=yes
14103      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14104	# Neither direct hardcoding nor static linking is supported with a
14105	# broken collect2.
14106	hardcode_direct=unsupported
14107      fi
14108      ;;
14109
14110    aix[4-9]*)
14111      if test ia64 = "$host_cpu"; then
14112	# On IA64, the linker does run time linking by default, so we don't
14113	# have to do anything special.
14114	aix_use_runtimelinking=no
14115	exp_sym_flag='-Bexport'
14116	no_entry_flag=
14117      else
14118	# If we're using GNU nm, then we don't want the "-C" option.
14119	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14120	# Without the "-l" option, or with the "-B" option, AIX nm treats
14121	# weak defined symbols like other global defined symbols, whereas
14122	# GNU nm marks them as "W".
14123	# While the 'weak' keyword is ignored in the Export File, we need
14124	# it in the Import File for the 'aix-soname' feature, so we have
14125	# to replace the "-B" option with "-P" for AIX nm.
14126	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14127	  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'
14128	else
14129	  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'
14130	fi
14131	aix_use_runtimelinking=no
14132
14133	# Test if we are trying to use run time linking or normal
14134	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14135	# have runtime linking enabled, and use it for executables.
14136	# For shared libraries, we enable/disable runtime linking
14137	# depending on the kind of the shared library created -
14138	# when "with_aix_soname,aix_use_runtimelinking" is:
14139	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14140	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14141	#            lib.a           static archive
14142	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14143	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14144	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14145	#            lib.a(lib.so.V) shared, rtl:no
14146	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14147	#            lib.a           static archive
14148	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14149	  for ld_flag in $LDFLAGS; do
14150	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14151	    aix_use_runtimelinking=yes
14152	    break
14153	  fi
14154	  done
14155	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14156	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14157	    # so we don't have lib.a shared libs to link our executables.
14158	    # We have to force runtime linking in this case.
14159	    aix_use_runtimelinking=yes
14160	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14161	  fi
14162	  ;;
14163	esac
14164
14165	exp_sym_flag='-bexport'
14166	no_entry_flag='-bnoentry'
14167      fi
14168
14169      # When large executables or shared objects are built, AIX ld can
14170      # have problems creating the table of contents.  If linking a library
14171      # or program results in "error TOC overflow" add -mminimal-toc to
14172      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14173      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14174
14175      archive_cmds=''
14176      hardcode_direct=yes
14177      hardcode_direct_absolute=yes
14178      hardcode_libdir_separator=':'
14179      link_all_deplibs=yes
14180      file_list_spec='$wl-f,'
14181      case $with_aix_soname,$aix_use_runtimelinking in
14182      aix,*) ;; # traditional, no import file
14183      svr4,* | *,yes) # use import file
14184	# The Import File defines what to hardcode.
14185	hardcode_direct=no
14186	hardcode_direct_absolute=no
14187	;;
14188      esac
14189
14190      if test yes = "$GCC"; then
14191	case $host_os in aix4.[012]|aix4.[012].*)
14192	# We only want to do this on AIX 4.2 and lower, the check
14193	# below for broken collect2 doesn't work under 4.3+
14194	  collect2name=`$CC -print-prog-name=collect2`
14195	  if test -f "$collect2name" &&
14196	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14197	  then
14198	  # We have reworked collect2
14199	  :
14200	  else
14201	  # We have old collect2
14202	  hardcode_direct=unsupported
14203	  # It fails to find uninstalled libraries when the uninstalled
14204	  # path is not listed in the libpath.  Setting hardcode_minus_L
14205	  # to unsupported forces relinking
14206	  hardcode_minus_L=yes
14207	  hardcode_libdir_flag_spec='-L$libdir'
14208	  hardcode_libdir_separator=
14209	  fi
14210	  ;;
14211	esac
14212	shared_flag='-shared'
14213	if test yes = "$aix_use_runtimelinking"; then
14214	  shared_flag="$shared_flag "'$wl-G'
14215	fi
14216	# Need to ensure runtime linking is disabled for the traditional
14217	# shared library, or the linker may eventually find shared libraries
14218	# /with/ Import File - we do not want to mix them.
14219	shared_flag_aix='-shared'
14220	shared_flag_svr4='-shared $wl-G'
14221      else
14222	# not using gcc
14223	if test ia64 = "$host_cpu"; then
14224	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14225	# chokes on -Wl,-G. The following line is correct:
14226	  shared_flag='-G'
14227	else
14228	  if test yes = "$aix_use_runtimelinking"; then
14229	    shared_flag='$wl-G'
14230	  else
14231	    shared_flag='$wl-bM:SRE'
14232	  fi
14233	  shared_flag_aix='$wl-bM:SRE'
14234	  shared_flag_svr4='$wl-G'
14235	fi
14236      fi
14237
14238      export_dynamic_flag_spec='$wl-bexpall'
14239      # It seems that -bexpall does not export symbols beginning with
14240      # underscore (_), so it is better to generate a list of symbols to export.
14241      always_export_symbols=yes
14242      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14243	# Warning - without using the other runtime loading flags (-brtl),
14244	# -berok will link without error, but may produce a broken library.
14245	allow_undefined_flag='-berok'
14246        # Determine the default libpath from the value encoded in an
14247        # empty executable.
14248        if test set = "${lt_cv_aix_libpath+set}"; then
14249  aix_libpath=$lt_cv_aix_libpath
14250else
14251  if test ${lt_cv_aix_libpath_+y}
14252then :
14253  printf %s "(cached) " >&6
14254else $as_nop
14255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256/* end confdefs.h.  */
14257
14258int main (void)
14259{
14260
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265if ac_fn_c_try_link "$LINENO"
14266then :
14267
14268  lt_aix_libpath_sed='
14269      /Import File Strings/,/^$/ {
14270	  /^0/ {
14271	      s/^0  *\([^ ]*\) *$/\1/
14272	      p
14273	  }
14274      }'
14275  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276  # Check for a 64-bit object if we didn't find anything.
14277  if test -z "$lt_cv_aix_libpath_"; then
14278    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14279  fi
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.beam \
14282    conftest$ac_exeext conftest.$ac_ext
14283  if test -z "$lt_cv_aix_libpath_"; then
14284    lt_cv_aix_libpath_=/usr/lib:/lib
14285  fi
14286
14287fi
14288
14289  aix_libpath=$lt_cv_aix_libpath_
14290fi
14291
14292        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14293        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
14294      else
14295	if test ia64 = "$host_cpu"; then
14296	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14297	  allow_undefined_flag="-z nodefs"
14298	  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"
14299	else
14300	 # Determine the default libpath from the value encoded in an
14301	 # empty executable.
14302	 if test set = "${lt_cv_aix_libpath+set}"; then
14303  aix_libpath=$lt_cv_aix_libpath
14304else
14305  if test ${lt_cv_aix_libpath_+y}
14306then :
14307  printf %s "(cached) " >&6
14308else $as_nop
14309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311
14312int main (void)
14313{
14314
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319if ac_fn_c_try_link "$LINENO"
14320then :
14321
14322  lt_aix_libpath_sed='
14323      /Import File Strings/,/^$/ {
14324	  /^0/ {
14325	      s/^0  *\([^ ]*\) *$/\1/
14326	      p
14327	  }
14328      }'
14329  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14330  # Check for a 64-bit object if we didn't find anything.
14331  if test -z "$lt_cv_aix_libpath_"; then
14332    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14333  fi
14334fi
14335rm -f core conftest.err conftest.$ac_objext conftest.beam \
14336    conftest$ac_exeext conftest.$ac_ext
14337  if test -z "$lt_cv_aix_libpath_"; then
14338    lt_cv_aix_libpath_=/usr/lib:/lib
14339  fi
14340
14341fi
14342
14343  aix_libpath=$lt_cv_aix_libpath_
14344fi
14345
14346	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14347	  # Warning - without using the other run time loading flags,
14348	  # -berok will link without error, but may produce a broken library.
14349	  no_undefined_flag=' $wl-bernotok'
14350	  allow_undefined_flag=' $wl-berok'
14351	  if test yes = "$with_gnu_ld"; then
14352	    # We only use this code for GNU lds that support --whole-archive.
14353	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14354	  else
14355	    # Exported symbols can be pulled into shared objects from archives
14356	    whole_archive_flag_spec='$convenience'
14357	  fi
14358	  archive_cmds_need_lc=yes
14359	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14360	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14361	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14362	  if test svr4 != "$with_aix_soname"; then
14363	    # This is similar to how AIX traditionally builds its shared libraries.
14364	    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'
14365	  fi
14366	  if test aix != "$with_aix_soname"; then
14367	    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'
14368	  else
14369	    # used by -dlpreopen to get the symbols
14370	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14371	  fi
14372	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14373	fi
14374      fi
14375      ;;
14376
14377    amigaos*)
14378      case $host_cpu in
14379      powerpc)
14380            # see comment about AmigaOS4 .so support
14381            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14382            archive_expsym_cmds=''
14383        ;;
14384      m68k)
14385            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)'
14386            hardcode_libdir_flag_spec='-L$libdir'
14387            hardcode_minus_L=yes
14388        ;;
14389      esac
14390      ;;
14391
14392    bsdi[45]*)
14393      export_dynamic_flag_spec=-rdynamic
14394      ;;
14395
14396    cygwin* | mingw* | pw32* | cegcc*)
14397      # When not using gcc, we currently assume that we are using
14398      # Microsoft Visual C++ or Intel C++ Compiler.
14399      # hardcode_libdir_flag_spec is actually meaningless, as there is
14400      # no search path for DLLs.
14401      case $cc_basename in
14402      cl* | icl*)
14403	# Native MSVC or ICC
14404	hardcode_libdir_flag_spec=' '
14405	allow_undefined_flag=unsupported
14406	always_export_symbols=yes
14407	file_list_spec='@'
14408	# Tell ltmain to make .lib files, not .a files.
14409	libext=lib
14410	# Tell ltmain to make .dll files, not .so files.
14411	shrext_cmds=.dll
14412	# FIXME: Setting linknames here is a bad hack.
14413	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14414	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14415            cp "$export_symbols" "$output_objdir/$soname.def";
14416            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14417          else
14418            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14419          fi~
14420          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14421          linknames='
14422	# The linker will not automatically build a static lib if we build a DLL.
14423	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14424	enable_shared_with_static_runtimes=yes
14425	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14426	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14427	# Don't use ranlib
14428	old_postinstall_cmds='chmod 644 $oldlib'
14429	postlink_cmds='lt_outputfile="@OUTPUT@"~
14430          lt_tool_outputfile="@TOOL_OUTPUT@"~
14431          case $lt_outputfile in
14432            *.exe|*.EXE) ;;
14433            *)
14434              lt_outputfile=$lt_outputfile.exe
14435              lt_tool_outputfile=$lt_tool_outputfile.exe
14436              ;;
14437          esac~
14438          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14439            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14440            $RM "$lt_outputfile.manifest";
14441          fi'
14442	;;
14443      *)
14444	# Assume MSVC and ICC wrapper
14445	hardcode_libdir_flag_spec=' '
14446	allow_undefined_flag=unsupported
14447	# Tell ltmain to make .lib files, not .a files.
14448	libext=lib
14449	# Tell ltmain to make .dll files, not .so files.
14450	shrext_cmds=.dll
14451	# FIXME: Setting linknames here is a bad hack.
14452	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14453	# The linker will automatically build a .lib file if we build a DLL.
14454	old_archive_from_new_cmds='true'
14455	# FIXME: Should let the user specify the lib program.
14456	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14457	enable_shared_with_static_runtimes=yes
14458	;;
14459      esac
14460      ;;
14461
14462    darwin* | rhapsody*)
14463
14464
14465  archive_cmds_need_lc=no
14466  hardcode_direct=no
14467  hardcode_automatic=yes
14468  hardcode_shlibpath_var=unsupported
14469  if test yes = "$lt_cv_ld_force_load"; then
14470    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\"`'
14471
14472  else
14473    whole_archive_flag_spec=''
14474  fi
14475  link_all_deplibs=yes
14476  allow_undefined_flag=$_lt_dar_allow_undefined
14477  case $cc_basename in
14478     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14479     *) _lt_dar_can_shared=$GCC ;;
14480  esac
14481  if test yes = "$_lt_dar_can_shared"; then
14482    output_verbose_link_cmd=func_echo_all
14483    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14484    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14485    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"
14486    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"
14487
14488  else
14489  ld_shlibs=no
14490  fi
14491
14492      ;;
14493
14494    dgux*)
14495      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496      hardcode_libdir_flag_spec='-L$libdir'
14497      hardcode_shlibpath_var=no
14498      ;;
14499
14500    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14501    # support.  Future versions do this automatically, but an explicit c++rt0.o
14502    # does not break anything, and helps significantly (at the cost of a little
14503    # extra space).
14504    freebsd2.2*)
14505      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14506      hardcode_libdir_flag_spec='-R$libdir'
14507      hardcode_direct=yes
14508      hardcode_shlibpath_var=no
14509      ;;
14510
14511    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14512    freebsd2.*)
14513      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14514      hardcode_direct=yes
14515      hardcode_minus_L=yes
14516      hardcode_shlibpath_var=no
14517      ;;
14518
14519    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14520    freebsd* | dragonfly* | midnightbsd*)
14521      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14522      hardcode_libdir_flag_spec='-R$libdir'
14523      hardcode_direct=yes
14524      hardcode_shlibpath_var=no
14525      ;;
14526
14527    hpux9*)
14528      if test yes = "$GCC"; then
14529	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'
14530      else
14531	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'
14532      fi
14533      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14534      hardcode_libdir_separator=:
14535      hardcode_direct=yes
14536
14537      # hardcode_minus_L: Not really in the search PATH,
14538      # but as the default location of the library.
14539      hardcode_minus_L=yes
14540      export_dynamic_flag_spec='$wl-E'
14541      ;;
14542
14543    hpux10*)
14544      if test yes,no = "$GCC,$with_gnu_ld"; then
14545	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14546      else
14547	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14548      fi
14549      if test no = "$with_gnu_ld"; then
14550	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14551	hardcode_libdir_separator=:
14552	hardcode_direct=yes
14553	hardcode_direct_absolute=yes
14554	export_dynamic_flag_spec='$wl-E'
14555	# hardcode_minus_L: Not really in the search PATH,
14556	# but as the default location of the library.
14557	hardcode_minus_L=yes
14558      fi
14559      ;;
14560
14561    hpux11*)
14562      if test yes,no = "$GCC,$with_gnu_ld"; then
14563	case $host_cpu in
14564	hppa*64*)
14565	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14566	  ;;
14567	ia64*)
14568	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14569	  ;;
14570	*)
14571	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14572	  ;;
14573	esac
14574      else
14575	case $host_cpu in
14576	hppa*64*)
14577	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14578	  ;;
14579	ia64*)
14580	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14581	  ;;
14582	*)
14583
14584	  # Older versions of the 11.00 compiler do not understand -b yet
14585	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14586	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14587printf %s "checking if $CC understands -b... " >&6; }
14588if test ${lt_cv_prog_compiler__b+y}
14589then :
14590  printf %s "(cached) " >&6
14591else $as_nop
14592  lt_cv_prog_compiler__b=no
14593   save_LDFLAGS=$LDFLAGS
14594   LDFLAGS="$LDFLAGS -b"
14595   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14596   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14597     # The linker can only warn and ignore the option if not recognized
14598     # So say no if there are warnings
14599     if test -s conftest.err; then
14600       # Append any errors to the config.log.
14601       cat conftest.err 1>&5
14602       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14603       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14604       if diff conftest.exp conftest.er2 >/dev/null; then
14605         lt_cv_prog_compiler__b=yes
14606       fi
14607     else
14608       lt_cv_prog_compiler__b=yes
14609     fi
14610   fi
14611   $RM -r conftest*
14612   LDFLAGS=$save_LDFLAGS
14613
14614fi
14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14616printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14617
14618if test yes = "$lt_cv_prog_compiler__b"; then
14619    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14620else
14621    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14622fi
14623
14624	  ;;
14625	esac
14626      fi
14627      if test no = "$with_gnu_ld"; then
14628	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14629	hardcode_libdir_separator=:
14630
14631	case $host_cpu in
14632	hppa*64*|ia64*)
14633	  hardcode_direct=no
14634	  hardcode_shlibpath_var=no
14635	  ;;
14636	*)
14637	  hardcode_direct=yes
14638	  hardcode_direct_absolute=yes
14639	  export_dynamic_flag_spec='$wl-E'
14640
14641	  # hardcode_minus_L: Not really in the search PATH,
14642	  # but as the default location of the library.
14643	  hardcode_minus_L=yes
14644	  ;;
14645	esac
14646      fi
14647      ;;
14648
14649    irix5* | irix6* | nonstopux*)
14650      if test yes = "$GCC"; then
14651	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'
14652	# Try to use the -exported_symbol ld option, if it does not
14653	# work, assume that -exports_file does not work either and
14654	# implicitly export all symbols.
14655	# This should be the same for all languages, so no per-tag cache variable.
14656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14657printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14658if test ${lt_cv_irix_exported_symbol+y}
14659then :
14660  printf %s "(cached) " >&6
14661else $as_nop
14662  save_LDFLAGS=$LDFLAGS
14663	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14664	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666int foo (void) { return 0; }
14667_ACEOF
14668if ac_fn_c_try_link "$LINENO"
14669then :
14670  lt_cv_irix_exported_symbol=yes
14671else $as_nop
14672  lt_cv_irix_exported_symbol=no
14673fi
14674rm -f core conftest.err conftest.$ac_objext conftest.beam \
14675    conftest$ac_exeext conftest.$ac_ext
14676           LDFLAGS=$save_LDFLAGS
14677fi
14678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14679printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14680	if test yes = "$lt_cv_irix_exported_symbol"; then
14681          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'
14682	fi
14683	link_all_deplibs=no
14684      else
14685	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'
14686	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'
14687      fi
14688      archive_cmds_need_lc='no'
14689      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14690      hardcode_libdir_separator=:
14691      inherit_rpath=yes
14692      link_all_deplibs=yes
14693      ;;
14694
14695    linux*)
14696      case $cc_basename in
14697      tcc*)
14698	# Fabrice Bellard et al's Tiny C Compiler
14699	ld_shlibs=yes
14700	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14701	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14702	;;
14703      esac
14704      ;;
14705
14706    netbsd* | netbsdelf*-gnu)
14707      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14708	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14709      else
14710	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14711      fi
14712      hardcode_libdir_flag_spec='-R$libdir'
14713      hardcode_direct=yes
14714      hardcode_shlibpath_var=no
14715      ;;
14716
14717    newsos6)
14718      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719      hardcode_direct=yes
14720      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14721      hardcode_libdir_separator=:
14722      hardcode_shlibpath_var=no
14723      ;;
14724
14725    *nto* | *qnx*)
14726      ;;
14727
14728    openbsd* | bitrig*)
14729      if test -f /usr/libexec/ld.so; then
14730	hardcode_direct=yes
14731	hardcode_shlibpath_var=no
14732	hardcode_direct_absolute=yes
14733	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14734	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14735	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14736	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14737	  export_dynamic_flag_spec='$wl-E'
14738	else
14739	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14741	fi
14742      else
14743	ld_shlibs=no
14744      fi
14745      ;;
14746
14747    os2*)
14748      hardcode_libdir_flag_spec='-L$libdir'
14749      hardcode_minus_L=yes
14750      allow_undefined_flag=unsupported
14751      shrext_cmds=.dll
14752      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14753	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14754	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14755	$ECHO EXPORTS >> $output_objdir/$libname.def~
14756	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14757	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14758	emximp -o $lib $output_objdir/$libname.def'
14759      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14760	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14761	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14762	$ECHO EXPORTS >> $output_objdir/$libname.def~
14763	prefix_cmds="$SED"~
14764	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14765	  prefix_cmds="$prefix_cmds -e 1d";
14766	fi~
14767	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14768	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14769	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14770	emximp -o $lib $output_objdir/$libname.def'
14771      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14772      enable_shared_with_static_runtimes=yes
14773      file_list_spec='@'
14774      ;;
14775
14776    osf3*)
14777      if test yes = "$GCC"; then
14778	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14779	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'
14780      else
14781	allow_undefined_flag=' -expect_unresolved \*'
14782	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'
14783      fi
14784      archive_cmds_need_lc='no'
14785      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14786      hardcode_libdir_separator=:
14787      ;;
14788
14789    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14790      if test yes = "$GCC"; then
14791	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14792	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'
14793	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14794      else
14795	allow_undefined_flag=' -expect_unresolved \*'
14796	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'
14797	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~
14798          $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'
14799
14800	# Both c and cxx compiler support -rpath directly
14801	hardcode_libdir_flag_spec='-rpath $libdir'
14802      fi
14803      archive_cmds_need_lc='no'
14804      hardcode_libdir_separator=:
14805      ;;
14806
14807    solaris*)
14808      no_undefined_flag=' -z defs'
14809      if test yes = "$GCC"; then
14810	wlarc='$wl'
14811	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14812	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14813          $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'
14814      else
14815	case `$CC -V 2>&1` in
14816	*"Compilers 5.0"*)
14817	  wlarc=''
14818	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14819	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14820            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14821	  ;;
14822	*)
14823	  wlarc='$wl'
14824	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14825	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14826            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14827	  ;;
14828	esac
14829      fi
14830      hardcode_libdir_flag_spec='-R$libdir'
14831      hardcode_shlibpath_var=no
14832      case $host_os in
14833      solaris2.[0-5] | solaris2.[0-5].*) ;;
14834      *)
14835	# The compiler driver will combine and reorder linker options,
14836	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14837	# but is careful enough not to reorder.
14838	# Supported since Solaris 2.6 (maybe 2.5.1?)
14839	if test yes = "$GCC"; then
14840	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14841	else
14842	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14843	fi
14844	;;
14845      esac
14846      link_all_deplibs=yes
14847      ;;
14848
14849    sunos4*)
14850      if test sequent = "$host_vendor"; then
14851	# Use $CC to link under sequent, because it throws in some extra .o
14852	# files that make .init and .fini sections work.
14853	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14854      else
14855	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14856      fi
14857      hardcode_libdir_flag_spec='-L$libdir'
14858      hardcode_direct=yes
14859      hardcode_minus_L=yes
14860      hardcode_shlibpath_var=no
14861      ;;
14862
14863    sysv4)
14864      case $host_vendor in
14865	sni)
14866	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867	  hardcode_direct=yes # is this really true???
14868	;;
14869	siemens)
14870	  ## LD is ld it makes a PLAMLIB
14871	  ## CC just makes a GrossModule.
14872	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14873	  reload_cmds='$CC -r -o $output$reload_objs'
14874	  hardcode_direct=no
14875        ;;
14876	motorola)
14877	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14879	;;
14880      esac
14881      runpath_var='LD_RUN_PATH'
14882      hardcode_shlibpath_var=no
14883      ;;
14884
14885    sysv4.3*)
14886      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887      hardcode_shlibpath_var=no
14888      export_dynamic_flag_spec='-Bexport'
14889      ;;
14890
14891    sysv4*MP*)
14892      if test -d /usr/nec; then
14893	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894	hardcode_shlibpath_var=no
14895	runpath_var=LD_RUN_PATH
14896	hardcode_runpath_var=yes
14897	ld_shlibs=yes
14898      fi
14899      ;;
14900
14901    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14902      no_undefined_flag='$wl-z,text'
14903      archive_cmds_need_lc=no
14904      hardcode_shlibpath_var=no
14905      runpath_var='LD_RUN_PATH'
14906
14907      if test yes = "$GCC"; then
14908	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14909	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14910      else
14911	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14912	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913      fi
14914      ;;
14915
14916    sysv5* | sco3.2v5* | sco5v6*)
14917      # Note: We CANNOT use -z defs as we might desire, because we do not
14918      # link with -lc, and that would cause any symbols used from libc to
14919      # always be unresolved, which means just about no library would
14920      # ever link correctly.  If we're not using GNU ld we use -z text
14921      # though, which does catch some bad symbols but isn't as heavy-handed
14922      # as -z defs.
14923      no_undefined_flag='$wl-z,text'
14924      allow_undefined_flag='$wl-z,nodefs'
14925      archive_cmds_need_lc=no
14926      hardcode_shlibpath_var=no
14927      hardcode_libdir_flag_spec='$wl-R,$libdir'
14928      hardcode_libdir_separator=':'
14929      link_all_deplibs=yes
14930      export_dynamic_flag_spec='$wl-Bexport'
14931      runpath_var='LD_RUN_PATH'
14932
14933      if test yes = "$GCC"; then
14934	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14936      else
14937	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939      fi
14940      ;;
14941
14942    uts4*)
14943      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944      hardcode_libdir_flag_spec='-L$libdir'
14945      hardcode_shlibpath_var=no
14946      ;;
14947
14948    *)
14949      ld_shlibs=no
14950      ;;
14951    esac
14952
14953    if test sni = "$host_vendor"; then
14954      case $host in
14955      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14956	export_dynamic_flag_spec='$wl-Blargedynsym'
14957	;;
14958      esac
14959    fi
14960  fi
14961
14962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14963printf "%s\n" "$ld_shlibs" >&6; }
14964test no = "$ld_shlibs" && can_build_shared=no
14965
14966with_gnu_ld=$with_gnu_ld
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982#
14983# Do we need to explicitly link libc?
14984#
14985case "x$archive_cmds_need_lc" in
14986x|xyes)
14987  # Assume -lc should be added
14988  archive_cmds_need_lc=yes
14989
14990  if test yes,yes = "$GCC,$enable_shared"; then
14991    case $archive_cmds in
14992    *'~'*)
14993      # FIXME: we may have to deal with multi-command sequences.
14994      ;;
14995    '$CC '*)
14996      # Test whether the compiler implicitly links with -lc since on some
14997      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14998      # to ld, don't add -lc before -lgcc.
14999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15000printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15001if test ${lt_cv_archive_cmds_need_lc+y}
15002then :
15003  printf %s "(cached) " >&6
15004else $as_nop
15005  $RM conftest*
15006	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007
15008	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15009  (eval $ac_compile) 2>&5
15010  ac_status=$?
15011  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012  test $ac_status = 0; } 2>conftest.err; then
15013	  soname=conftest
15014	  lib=conftest
15015	  libobjs=conftest.$ac_objext
15016	  deplibs=
15017	  wl=$lt_prog_compiler_wl
15018	  pic_flag=$lt_prog_compiler_pic
15019	  compiler_flags=-v
15020	  linker_flags=-v
15021	  verstring=
15022	  output_objdir=.
15023	  libname=conftest
15024	  lt_save_allow_undefined_flag=$allow_undefined_flag
15025	  allow_undefined_flag=
15026	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15027  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028  ac_status=$?
15029  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030  test $ac_status = 0; }
15031	  then
15032	    lt_cv_archive_cmds_need_lc=no
15033	  else
15034	    lt_cv_archive_cmds_need_lc=yes
15035	  fi
15036	  allow_undefined_flag=$lt_save_allow_undefined_flag
15037	else
15038	  cat conftest.err 1>&5
15039	fi
15040	$RM conftest*
15041
15042fi
15043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15044printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15045      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15046      ;;
15047    esac
15048  fi
15049  ;;
15050esac
15051
15052
15053
15054
15055
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15204printf %s "checking dynamic linker characteristics... " >&6; }
15205
15206if test yes = "$GCC"; then
15207  case $host_os in
15208    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15209    *) lt_awk_arg='/^libraries:/' ;;
15210  esac
15211  case $host_os in
15212    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15213    *) lt_sed_strip_eq='s|=/|/|g' ;;
15214  esac
15215  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15216  case $lt_search_path_spec in
15217  *\;*)
15218    # if the path contains ";" then we assume it to be the separator
15219    # otherwise default to the standard path separator (i.e. ":") - it is
15220    # assumed that no part of a normal pathname contains ";" but that should
15221    # okay in the real world where ";" in dirpaths is itself problematic.
15222    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15223    ;;
15224  *)
15225    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15226    ;;
15227  esac
15228  # Ok, now we have the path, separated by spaces, we can step through it
15229  # and add multilib dir if necessary...
15230  lt_tmp_lt_search_path_spec=
15231  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15232  # ...but if some path component already ends with the multilib dir we assume
15233  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15234  case "$lt_multi_os_dir; $lt_search_path_spec " in
15235  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15236    lt_multi_os_dir=
15237    ;;
15238  esac
15239  for lt_sys_path in $lt_search_path_spec; do
15240    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15241      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15242    elif test -n "$lt_multi_os_dir"; then
15243      test -d "$lt_sys_path" && \
15244	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15245    fi
15246  done
15247  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15248BEGIN {RS = " "; FS = "/|\n";} {
15249  lt_foo = "";
15250  lt_count = 0;
15251  for (lt_i = NF; lt_i > 0; lt_i--) {
15252    if ($lt_i != "" && $lt_i != ".") {
15253      if ($lt_i == "..") {
15254        lt_count++;
15255      } else {
15256        if (lt_count == 0) {
15257          lt_foo = "/" $lt_i lt_foo;
15258        } else {
15259          lt_count--;
15260        }
15261      }
15262    }
15263  }
15264  if (lt_foo != "") { lt_freq[lt_foo]++; }
15265  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15266}'`
15267  # AWK program above erroneously prepends '/' to C:/dos/paths
15268  # for these hosts.
15269  case $host_os in
15270    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15271      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15272  esac
15273  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15274else
15275  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15276fi
15277library_names_spec=
15278libname_spec='lib$name'
15279soname_spec=
15280shrext_cmds=.so
15281postinstall_cmds=
15282postuninstall_cmds=
15283finish_cmds=
15284finish_eval=
15285shlibpath_var=
15286shlibpath_overrides_runpath=unknown
15287version_type=none
15288dynamic_linker="$host_os ld.so"
15289sys_lib_dlsearch_path_spec="/lib /usr/lib"
15290need_lib_prefix=unknown
15291hardcode_into_libs=no
15292
15293# when you set need_version to no, make sure it does not cause -set_version
15294# flags to be left without arguments
15295need_version=unknown
15296
15297
15298
15299case $host_os in
15300aix3*)
15301  version_type=linux # correct to gnu/linux during the next big refactor
15302  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15303  shlibpath_var=LIBPATH
15304
15305  # AIX 3 has no versioning support, so we append a major version to the name.
15306  soname_spec='$libname$release$shared_ext$major'
15307  ;;
15308
15309aix[4-9]*)
15310  version_type=linux # correct to gnu/linux during the next big refactor
15311  need_lib_prefix=no
15312  need_version=no
15313  hardcode_into_libs=yes
15314  if test ia64 = "$host_cpu"; then
15315    # AIX 5 supports IA64
15316    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15317    shlibpath_var=LD_LIBRARY_PATH
15318  else
15319    # With GCC up to 2.95.x, collect2 would create an import file
15320    # for dependence libraries.  The import file would start with
15321    # the line '#! .'.  This would cause the generated library to
15322    # depend on '.', always an invalid library.  This was fixed in
15323    # development snapshots of GCC prior to 3.0.
15324    case $host_os in
15325      aix4 | aix4.[01] | aix4.[01].*)
15326      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15327	   echo ' yes '
15328	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15329	:
15330      else
15331	can_build_shared=no
15332      fi
15333      ;;
15334    esac
15335    # Using Import Files as archive members, it is possible to support
15336    # filename-based versioning of shared library archives on AIX. While
15337    # this would work for both with and without runtime linking, it will
15338    # prevent static linking of such archives. So we do filename-based
15339    # shared library versioning with .so extension only, which is used
15340    # when both runtime linking and shared linking is enabled.
15341    # Unfortunately, runtime linking may impact performance, so we do
15342    # not want this to be the default eventually. Also, we use the
15343    # versioned .so libs for executables only if there is the -brtl
15344    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15345    # To allow for filename-based versioning support, we need to create
15346    # libNAME.so.V as an archive file, containing:
15347    # *) an Import File, referring to the versioned filename of the
15348    #    archive as well as the shared archive member, telling the
15349    #    bitwidth (32 or 64) of that shared object, and providing the
15350    #    list of exported symbols of that shared object, eventually
15351    #    decorated with the 'weak' keyword
15352    # *) the shared object with the F_LOADONLY flag set, to really avoid
15353    #    it being seen by the linker.
15354    # At run time we better use the real file rather than another symlink,
15355    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15356
15357    case $with_aix_soname,$aix_use_runtimelinking in
15358    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15359    # soname into executable. Probably we can add versioning support to
15360    # collect2, so additional links can be useful in future.
15361    aix,yes) # traditional libtool
15362      dynamic_linker='AIX unversionable lib.so'
15363      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15364      # instead of lib<name>.a to let people know that these are not
15365      # typical AIX shared libraries.
15366      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15367      ;;
15368    aix,no) # traditional AIX only
15369      dynamic_linker='AIX lib.a(lib.so.V)'
15370      # We preserve .a as extension for shared libraries through AIX4.2
15371      # and later when we are not doing run time linking.
15372      library_names_spec='$libname$release.a $libname.a'
15373      soname_spec='$libname$release$shared_ext$major'
15374      ;;
15375    svr4,*) # full svr4 only
15376      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15377      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15378      # We do not specify a path in Import Files, so LIBPATH fires.
15379      shlibpath_overrides_runpath=yes
15380      ;;
15381    *,yes) # both, prefer svr4
15382      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15383      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15384      # unpreferred sharedlib libNAME.a needs extra handling
15385      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"'
15386      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"'
15387      # We do not specify a path in Import Files, so LIBPATH fires.
15388      shlibpath_overrides_runpath=yes
15389      ;;
15390    *,no) # both, prefer aix
15391      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15392      library_names_spec='$libname$release.a $libname.a'
15393      soname_spec='$libname$release$shared_ext$major'
15394      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15395      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)'
15396      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"'
15397      ;;
15398    esac
15399    shlibpath_var=LIBPATH
15400  fi
15401  ;;
15402
15403amigaos*)
15404  case $host_cpu in
15405  powerpc)
15406    # Since July 2007 AmigaOS4 officially supports .so libraries.
15407    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15408    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15409    ;;
15410  m68k)
15411    library_names_spec='$libname.ixlibrary $libname.a'
15412    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15413    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'
15414    ;;
15415  esac
15416  ;;
15417
15418beos*)
15419  library_names_spec='$libname$shared_ext'
15420  dynamic_linker="$host_os ld.so"
15421  shlibpath_var=LIBRARY_PATH
15422  ;;
15423
15424bsdi[45]*)
15425  version_type=linux # correct to gnu/linux during the next big refactor
15426  need_version=no
15427  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15428  soname_spec='$libname$release$shared_ext$major'
15429  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15430  shlibpath_var=LD_LIBRARY_PATH
15431  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15432  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15433  # the default ld.so.conf also contains /usr/contrib/lib and
15434  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15435  # libtool to hard-code these into programs
15436  ;;
15437
15438cygwin* | mingw* | pw32* | cegcc*)
15439  version_type=windows
15440  shrext_cmds=.dll
15441  need_version=no
15442  need_lib_prefix=no
15443
15444  case $GCC,$cc_basename in
15445  yes,*)
15446    # gcc
15447    library_names_spec='$libname.dll.a'
15448    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449    postinstall_cmds='base_file=`basename \$file`~
15450      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15451      dldir=$destdir/`dirname \$dlpath`~
15452      test -d \$dldir || mkdir -p \$dldir~
15453      $install_prog $dir/$dlname \$dldir/$dlname~
15454      chmod a+x \$dldir/$dlname~
15455      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15456        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15457      fi'
15458    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15459      dlpath=$dir/\$dldll~
15460       $RM \$dlpath'
15461    shlibpath_overrides_runpath=yes
15462
15463    case $host_os in
15464    cygwin*)
15465      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15466      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15467
15468      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15469      ;;
15470    mingw* | cegcc*)
15471      # MinGW DLLs use traditional 'lib' prefix
15472      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15473      ;;
15474    pw32*)
15475      # pw32 DLLs use 'pw' prefix rather than 'lib'
15476      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15477      ;;
15478    esac
15479    dynamic_linker='Win32 ld.exe'
15480    ;;
15481
15482  *,cl* | *,icl*)
15483    # Native MSVC or ICC
15484    libname_spec='$name'
15485    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15486    library_names_spec='$libname.dll.lib'
15487
15488    case $build_os in
15489    mingw*)
15490      sys_lib_search_path_spec=
15491      lt_save_ifs=$IFS
15492      IFS=';'
15493      for lt_path in $LIB
15494      do
15495        IFS=$lt_save_ifs
15496        # Let DOS variable expansion print the short 8.3 style file name.
15497        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15498        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15499      done
15500      IFS=$lt_save_ifs
15501      # Convert to MSYS style.
15502      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15503      ;;
15504    cygwin*)
15505      # Convert to unix form, then to dos form, then back to unix form
15506      # but this time dos style (no spaces!) so that the unix form looks
15507      # like /cygdrive/c/PROGRA~1:/cygdr...
15508      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15509      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15510      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15511      ;;
15512    *)
15513      sys_lib_search_path_spec=$LIB
15514      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15515        # It is most probably a Windows format PATH.
15516        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15517      else
15518        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15519      fi
15520      # FIXME: find the short name or the path components, as spaces are
15521      # common. (e.g. "Program Files" -> "PROGRA~1")
15522      ;;
15523    esac
15524
15525    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15526    postinstall_cmds='base_file=`basename \$file`~
15527      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15528      dldir=$destdir/`dirname \$dlpath`~
15529      test -d \$dldir || mkdir -p \$dldir~
15530      $install_prog $dir/$dlname \$dldir/$dlname'
15531    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15532      dlpath=$dir/\$dldll~
15533       $RM \$dlpath'
15534    shlibpath_overrides_runpath=yes
15535    dynamic_linker='Win32 link.exe'
15536    ;;
15537
15538  *)
15539    # Assume MSVC and ICC wrapper
15540    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15541    dynamic_linker='Win32 ld.exe'
15542    ;;
15543  esac
15544  # FIXME: first we should search . and the directory the executable is in
15545  shlibpath_var=PATH
15546  ;;
15547
15548darwin* | rhapsody*)
15549  dynamic_linker="$host_os dyld"
15550  version_type=darwin
15551  need_lib_prefix=no
15552  need_version=no
15553  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15554  soname_spec='$libname$release$major$shared_ext'
15555  shlibpath_overrides_runpath=yes
15556  shlibpath_var=DYLD_LIBRARY_PATH
15557  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15558
15559  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15560  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15561  ;;
15562
15563dgux*)
15564  version_type=linux # correct to gnu/linux during the next big refactor
15565  need_lib_prefix=no
15566  need_version=no
15567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568  soname_spec='$libname$release$shared_ext$major'
15569  shlibpath_var=LD_LIBRARY_PATH
15570  ;;
15571
15572freebsd* | dragonfly* | midnightbsd*)
15573  # DragonFly does not have aout.  When/if they implement a new
15574  # versioning mechanism, adjust this.
15575  if test -x /usr/bin/objformat; then
15576    objformat=`/usr/bin/objformat`
15577  else
15578    case $host_os in
15579    freebsd[23].*) objformat=aout ;;
15580    *) objformat=elf ;;
15581    esac
15582  fi
15583  version_type=freebsd-$objformat
15584  case $version_type in
15585    freebsd-elf*)
15586      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15587      soname_spec='$libname$release$shared_ext$major'
15588      need_version=no
15589      need_lib_prefix=no
15590      ;;
15591    freebsd-*)
15592      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15593      need_version=yes
15594      ;;
15595  esac
15596  shlibpath_var=LD_LIBRARY_PATH
15597  case $host_os in
15598  freebsd2.*)
15599    shlibpath_overrides_runpath=yes
15600    ;;
15601  freebsd3.[01]* | freebsdelf3.[01]*)
15602    shlibpath_overrides_runpath=yes
15603    hardcode_into_libs=yes
15604    ;;
15605  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15606  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15607    shlibpath_overrides_runpath=no
15608    hardcode_into_libs=yes
15609    ;;
15610  *) # from 4.6 on, and DragonFly
15611    shlibpath_overrides_runpath=yes
15612    hardcode_into_libs=yes
15613    ;;
15614  esac
15615  ;;
15616
15617haiku*)
15618  version_type=linux # correct to gnu/linux during the next big refactor
15619  need_lib_prefix=no
15620  need_version=no
15621  dynamic_linker="$host_os runtime_loader"
15622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15623  soname_spec='$libname$release$shared_ext$major'
15624  shlibpath_var=LIBRARY_PATH
15625  shlibpath_overrides_runpath=no
15626  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15627  hardcode_into_libs=yes
15628  ;;
15629
15630hpux9* | hpux10* | hpux11*)
15631  # Give a soname corresponding to the major version so that dld.sl refuses to
15632  # link against other versions.
15633  version_type=sunos
15634  need_lib_prefix=no
15635  need_version=no
15636  case $host_cpu in
15637  ia64*)
15638    shrext_cmds='.so'
15639    hardcode_into_libs=yes
15640    dynamic_linker="$host_os dld.so"
15641    shlibpath_var=LD_LIBRARY_PATH
15642    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15643    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15644    soname_spec='$libname$release$shared_ext$major'
15645    if test 32 = "$HPUX_IA64_MODE"; then
15646      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15647      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15648    else
15649      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15650      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15651    fi
15652    ;;
15653  hppa*64*)
15654    shrext_cmds='.sl'
15655    hardcode_into_libs=yes
15656    dynamic_linker="$host_os dld.sl"
15657    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15658    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15659    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15660    soname_spec='$libname$release$shared_ext$major'
15661    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15662    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15663    ;;
15664  *)
15665    shrext_cmds='.sl'
15666    dynamic_linker="$host_os dld.sl"
15667    shlibpath_var=SHLIB_PATH
15668    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15669    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15670    soname_spec='$libname$release$shared_ext$major'
15671    ;;
15672  esac
15673  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15674  postinstall_cmds='chmod 555 $lib'
15675  # or fails outright, so override atomically:
15676  install_override_mode=555
15677  ;;
15678
15679interix[3-9]*)
15680  version_type=linux # correct to gnu/linux during the next big refactor
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15684  soname_spec='$libname$release$shared_ext$major'
15685  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15686  shlibpath_var=LD_LIBRARY_PATH
15687  shlibpath_overrides_runpath=no
15688  hardcode_into_libs=yes
15689  ;;
15690
15691irix5* | irix6* | nonstopux*)
15692  case $host_os in
15693    nonstopux*) version_type=nonstopux ;;
15694    *)
15695	if test yes = "$lt_cv_prog_gnu_ld"; then
15696		version_type=linux # correct to gnu/linux during the next big refactor
15697	else
15698		version_type=irix
15699	fi ;;
15700  esac
15701  need_lib_prefix=no
15702  need_version=no
15703  soname_spec='$libname$release$shared_ext$major'
15704  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15705  case $host_os in
15706  irix5* | nonstopux*)
15707    libsuff= shlibsuff=
15708    ;;
15709  *)
15710    case $LD in # libtool.m4 will add one of these switches to LD
15711    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15712      libsuff= shlibsuff= libmagic=32-bit;;
15713    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15714      libsuff=32 shlibsuff=N32 libmagic=N32;;
15715    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15716      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15717    *) libsuff= shlibsuff= libmagic=never-match;;
15718    esac
15719    ;;
15720  esac
15721  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15722  shlibpath_overrides_runpath=no
15723  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15724  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15725  hardcode_into_libs=yes
15726  ;;
15727
15728# No shared lib support for Linux oldld, aout, or coff.
15729linux*oldld* | linux*aout* | linux*coff*)
15730  dynamic_linker=no
15731  ;;
15732
15733linux*android*)
15734  version_type=none # Android doesn't support versioned libraries.
15735  need_lib_prefix=no
15736  need_version=no
15737  library_names_spec='$libname$release$shared_ext'
15738  soname_spec='$libname$release$shared_ext'
15739  finish_cmds=
15740  shlibpath_var=LD_LIBRARY_PATH
15741  shlibpath_overrides_runpath=yes
15742
15743  # This implies no fast_install, which is unacceptable.
15744  # Some rework will be needed to allow for fast_install
15745  # before this can be enabled.
15746  hardcode_into_libs=yes
15747
15748  dynamic_linker='Android linker'
15749  # Don't embed -rpath directories since the linker doesn't support them.
15750  hardcode_libdir_flag_spec='-L$libdir'
15751  ;;
15752
15753# This must be glibc/ELF.
15754linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15755  version_type=linux # correct to gnu/linux during the next big refactor
15756  need_lib_prefix=no
15757  need_version=no
15758  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15759  soname_spec='$libname$release$shared_ext$major'
15760  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15761  shlibpath_var=LD_LIBRARY_PATH
15762  shlibpath_overrides_runpath=no
15763
15764  # Some binutils ld are patched to set DT_RUNPATH
15765  if test ${lt_cv_shlibpath_overrides_runpath+y}
15766then :
15767  printf %s "(cached) " >&6
15768else $as_nop
15769  lt_cv_shlibpath_overrides_runpath=no
15770    save_LDFLAGS=$LDFLAGS
15771    save_libdir=$libdir
15772    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15773	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776
15777int main (void)
15778{
15779
15780 ;
15781 return 0;
15782}
15783_ACEOF
15784if ac_fn_c_try_link "$LINENO"
15785then :
15786  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15787then :
15788  lt_cv_shlibpath_overrides_runpath=yes
15789fi
15790fi
15791rm -f core conftest.err conftest.$ac_objext conftest.beam \
15792    conftest$ac_exeext conftest.$ac_ext
15793    LDFLAGS=$save_LDFLAGS
15794    libdir=$save_libdir
15795
15796fi
15797
15798  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15799
15800  # This implies no fast_install, which is unacceptable.
15801  # Some rework will be needed to allow for fast_install
15802  # before this can be enabled.
15803  hardcode_into_libs=yes
15804
15805  # Ideally, we could use ldconfig to report *all* directores which are
15806  # searched for libraries, however this is still not possible.  Aside from not
15807  # being certain /sbin/ldconfig is available, command
15808  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15809  # even though it is searched at run-time.  Try to do the best guess by
15810  # appending ld.so.conf contents (and includes) to the search path.
15811  if test -f /etc/ld.so.conf; then
15812    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' ' '`
15813    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15814  fi
15815
15816  # We used to test for /lib/ld.so.1 and disable shared libraries on
15817  # powerpc, because MkLinux only supported shared libraries with the
15818  # GNU dynamic linker.  Since this was broken with cross compilers,
15819  # most powerpc-linux boxes support dynamic linking these days and
15820  # people can always --disable-shared, the test was removed, and we
15821  # assume the GNU/Linux dynamic linker is in use.
15822  dynamic_linker='GNU/Linux ld.so'
15823  ;;
15824
15825netbsdelf*-gnu)
15826  version_type=linux
15827  need_lib_prefix=no
15828  need_version=no
15829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15830  soname_spec='${libname}${release}${shared_ext}$major'
15831  shlibpath_var=LD_LIBRARY_PATH
15832  shlibpath_overrides_runpath=no
15833  hardcode_into_libs=yes
15834  dynamic_linker='NetBSD ld.elf_so'
15835  ;;
15836
15837netbsd*)
15838  version_type=sunos
15839  need_lib_prefix=no
15840  need_version=no
15841  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15842    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15843    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15844    dynamic_linker='NetBSD (a.out) ld.so'
15845  else
15846    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15847    soname_spec='$libname$release$shared_ext$major'
15848    dynamic_linker='NetBSD ld.elf_so'
15849  fi
15850  shlibpath_var=LD_LIBRARY_PATH
15851  shlibpath_overrides_runpath=yes
15852  hardcode_into_libs=yes
15853  ;;
15854
15855newsos6)
15856  version_type=linux # correct to gnu/linux during the next big refactor
15857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15858  shlibpath_var=LD_LIBRARY_PATH
15859  shlibpath_overrides_runpath=yes
15860  ;;
15861
15862*nto* | *qnx*)
15863  version_type=qnx
15864  need_lib_prefix=no
15865  need_version=no
15866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15867  soname_spec='$libname$release$shared_ext$major'
15868  shlibpath_var=LD_LIBRARY_PATH
15869  shlibpath_overrides_runpath=no
15870  hardcode_into_libs=yes
15871  dynamic_linker='ldqnx.so'
15872  ;;
15873
15874openbsd* | bitrig*)
15875  version_type=sunos
15876  sys_lib_dlsearch_path_spec=/usr/lib
15877  need_lib_prefix=no
15878  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15879    need_version=no
15880  else
15881    need_version=yes
15882  fi
15883  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15884  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15885  shlibpath_var=LD_LIBRARY_PATH
15886  shlibpath_overrides_runpath=yes
15887  ;;
15888
15889os2*)
15890  libname_spec='$name'
15891  version_type=windows
15892  shrext_cmds=.dll
15893  need_version=no
15894  need_lib_prefix=no
15895  # OS/2 can only load a DLL with a base name of 8 characters or less.
15896  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15897    v=$($ECHO $release$versuffix | tr -d .-);
15898    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15899    $ECHO $n$v`$shared_ext'
15900  library_names_spec='${libname}_dll.$libext'
15901  dynamic_linker='OS/2 ld.exe'
15902  shlibpath_var=BEGINLIBPATH
15903  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15904  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905  postinstall_cmds='base_file=`basename \$file`~
15906    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15907    dldir=$destdir/`dirname \$dlpath`~
15908    test -d \$dldir || mkdir -p \$dldir~
15909    $install_prog $dir/$dlname \$dldir/$dlname~
15910    chmod a+x \$dldir/$dlname~
15911    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15912      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15913    fi'
15914  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15915    dlpath=$dir/\$dldll~
15916    $RM \$dlpath'
15917  ;;
15918
15919osf3* | osf4* | osf5*)
15920  version_type=osf
15921  need_lib_prefix=no
15922  need_version=no
15923  soname_spec='$libname$release$shared_ext$major'
15924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15925  shlibpath_var=LD_LIBRARY_PATH
15926  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15927  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15928  ;;
15929
15930rdos*)
15931  dynamic_linker=no
15932  ;;
15933
15934solaris*)
15935  version_type=linux # correct to gnu/linux during the next big refactor
15936  need_lib_prefix=no
15937  need_version=no
15938  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15939  soname_spec='$libname$release$shared_ext$major'
15940  shlibpath_var=LD_LIBRARY_PATH
15941  shlibpath_overrides_runpath=yes
15942  hardcode_into_libs=yes
15943  # ldd complains unless libraries are executable
15944  postinstall_cmds='chmod +x $lib'
15945  ;;
15946
15947sunos4*)
15948  version_type=sunos
15949  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15950  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  shlibpath_overrides_runpath=yes
15953  if test yes = "$with_gnu_ld"; then
15954    need_lib_prefix=no
15955  fi
15956  need_version=yes
15957  ;;
15958
15959sysv4 | sysv4.3*)
15960  version_type=linux # correct to gnu/linux during the next big refactor
15961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15962  soname_spec='$libname$release$shared_ext$major'
15963  shlibpath_var=LD_LIBRARY_PATH
15964  case $host_vendor in
15965    sni)
15966      shlibpath_overrides_runpath=no
15967      need_lib_prefix=no
15968      runpath_var=LD_RUN_PATH
15969      ;;
15970    siemens)
15971      need_lib_prefix=no
15972      ;;
15973    motorola)
15974      need_lib_prefix=no
15975      need_version=no
15976      shlibpath_overrides_runpath=no
15977      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15978      ;;
15979  esac
15980  ;;
15981
15982sysv4*MP*)
15983  if test -d /usr/nec; then
15984    version_type=linux # correct to gnu/linux during the next big refactor
15985    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15986    soname_spec='$libname$shared_ext.$major'
15987    shlibpath_var=LD_LIBRARY_PATH
15988  fi
15989  ;;
15990
15991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15992  version_type=sco
15993  need_lib_prefix=no
15994  need_version=no
15995  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15996  soname_spec='$libname$release$shared_ext$major'
15997  shlibpath_var=LD_LIBRARY_PATH
15998  shlibpath_overrides_runpath=yes
15999  hardcode_into_libs=yes
16000  if test yes = "$with_gnu_ld"; then
16001    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16002  else
16003    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16004    case $host_os in
16005      sco3.2v5*)
16006        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16007	;;
16008    esac
16009  fi
16010  sys_lib_dlsearch_path_spec='/usr/lib'
16011  ;;
16012
16013tpf*)
16014  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16015  version_type=linux # correct to gnu/linux during the next big refactor
16016  need_lib_prefix=no
16017  need_version=no
16018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019  shlibpath_var=LD_LIBRARY_PATH
16020  shlibpath_overrides_runpath=no
16021  hardcode_into_libs=yes
16022  ;;
16023
16024uts4*)
16025  version_type=linux # correct to gnu/linux during the next big refactor
16026  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16027  soname_spec='$libname$release$shared_ext$major'
16028  shlibpath_var=LD_LIBRARY_PATH
16029  ;;
16030
16031*)
16032  dynamic_linker=no
16033  ;;
16034esac
16035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16036printf "%s\n" "$dynamic_linker" >&6; }
16037test no = "$dynamic_linker" && can_build_shared=no
16038
16039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16040if test yes = "$GCC"; then
16041  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16042fi
16043
16044if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16045  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16046fi
16047
16048if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16049  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16050fi
16051
16052# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16053configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16054
16055# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16056func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16057
16058# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16059configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16060
16061
16062
16063
16064
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16158printf %s "checking how to hardcode library paths into programs... " >&6; }
16159hardcode_action=
16160if test -n "$hardcode_libdir_flag_spec" ||
16161   test -n "$runpath_var" ||
16162   test yes = "$hardcode_automatic"; then
16163
16164  # We can hardcode non-existent directories.
16165  if test no != "$hardcode_direct" &&
16166     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16167     # have to relink, otherwise we might link with an installed library
16168     # when we should be linking with a yet-to-be-installed one
16169     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16170     test no != "$hardcode_minus_L"; then
16171    # Linking always hardcodes the temporary library directory.
16172    hardcode_action=relink
16173  else
16174    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16175    hardcode_action=immediate
16176  fi
16177else
16178  # We cannot hardcode anything, or else we can only hardcode existing
16179  # directories.
16180  hardcode_action=unsupported
16181fi
16182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16183printf "%s\n" "$hardcode_action" >&6; }
16184
16185if test relink = "$hardcode_action" ||
16186   test yes = "$inherit_rpath"; then
16187  # Fast installation is not supported
16188  enable_fast_install=no
16189elif test yes = "$shlibpath_overrides_runpath" ||
16190     test no = "$enable_shared"; then
16191  # Fast installation is not necessary
16192  enable_fast_install=needless
16193fi
16194
16195
16196
16197
16198
16199
16200  if test yes != "$enable_dlopen"; then
16201  enable_dlopen=unknown
16202  enable_dlopen_self=unknown
16203  enable_dlopen_self_static=unknown
16204else
16205  lt_cv_dlopen=no
16206  lt_cv_dlopen_libs=
16207
16208  case $host_os in
16209  beos*)
16210    lt_cv_dlopen=load_add_on
16211    lt_cv_dlopen_libs=
16212    lt_cv_dlopen_self=yes
16213    ;;
16214
16215  mingw* | pw32* | cegcc*)
16216    lt_cv_dlopen=LoadLibrary
16217    lt_cv_dlopen_libs=
16218    ;;
16219
16220  cygwin*)
16221    lt_cv_dlopen=dlopen
16222    lt_cv_dlopen_libs=
16223    ;;
16224
16225  darwin*)
16226    # if libdl is installed we need to link against it
16227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16228printf %s "checking for dlopen in -ldl... " >&6; }
16229if test ${ac_cv_lib_dl_dlopen+y}
16230then :
16231  printf %s "(cached) " >&6
16232else $as_nop
16233  ac_check_lib_save_LIBS=$LIBS
16234LIBS="-ldl  $LIBS"
16235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236/* end confdefs.h.  */
16237
16238
16239#ifdef __cplusplus
16240extern "C"
16241#endif
16242char dlopen ();
16243int main (void)
16244{
16245return dlopen ();
16246 ;
16247 return 0;
16248}
16249_ACEOF
16250if ac_fn_c_try_link "$LINENO"
16251then :
16252  ac_cv_lib_dl_dlopen=yes
16253else $as_nop
16254  ac_cv_lib_dl_dlopen=no
16255fi
16256rm -f core conftest.err conftest.$ac_objext conftest.beam \
16257    conftest$ac_exeext conftest.$ac_ext
16258LIBS=$ac_check_lib_save_LIBS
16259fi
16260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16261printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16262if test "x$ac_cv_lib_dl_dlopen" = xyes
16263then :
16264  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16265else $as_nop
16266
16267    lt_cv_dlopen=dyld
16268    lt_cv_dlopen_libs=
16269    lt_cv_dlopen_self=yes
16270
16271fi
16272
16273    ;;
16274
16275  tpf*)
16276    # Don't try to run any link tests for TPF.  We know it's impossible
16277    # because TPF is a cross-compiler, and we know how we open DSOs.
16278    lt_cv_dlopen=dlopen
16279    lt_cv_dlopen_libs=
16280    lt_cv_dlopen_self=no
16281    ;;
16282
16283  *)
16284    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16285if test "x$ac_cv_func_shl_load" = xyes
16286then :
16287  lt_cv_dlopen=shl_load
16288else $as_nop
16289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16290printf %s "checking for shl_load in -ldld... " >&6; }
16291if test ${ac_cv_lib_dld_shl_load+y}
16292then :
16293  printf %s "(cached) " >&6
16294else $as_nop
16295  ac_check_lib_save_LIBS=$LIBS
16296LIBS="-ldld  $LIBS"
16297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298/* end confdefs.h.  */
16299
16300
16301#ifdef __cplusplus
16302extern "C"
16303#endif
16304char shl_load ();
16305int main (void)
16306{
16307return shl_load ();
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312if ac_fn_c_try_link "$LINENO"
16313then :
16314  ac_cv_lib_dld_shl_load=yes
16315else $as_nop
16316  ac_cv_lib_dld_shl_load=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext conftest.beam \
16319    conftest$ac_exeext conftest.$ac_ext
16320LIBS=$ac_check_lib_save_LIBS
16321fi
16322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16323printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16324if test "x$ac_cv_lib_dld_shl_load" = xyes
16325then :
16326  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16327else $as_nop
16328  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16329if test "x$ac_cv_func_dlopen" = xyes
16330then :
16331  lt_cv_dlopen=dlopen
16332else $as_nop
16333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16334printf %s "checking for dlopen in -ldl... " >&6; }
16335if test ${ac_cv_lib_dl_dlopen+y}
16336then :
16337  printf %s "(cached) " >&6
16338else $as_nop
16339  ac_check_lib_save_LIBS=$LIBS
16340LIBS="-ldl  $LIBS"
16341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343
16344
16345#ifdef __cplusplus
16346extern "C"
16347#endif
16348char dlopen ();
16349int main (void)
16350{
16351return dlopen ();
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356if ac_fn_c_try_link "$LINENO"
16357then :
16358  ac_cv_lib_dl_dlopen=yes
16359else $as_nop
16360  ac_cv_lib_dl_dlopen=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.beam \
16363    conftest$ac_exeext conftest.$ac_ext
16364LIBS=$ac_check_lib_save_LIBS
16365fi
16366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16367printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16368if test "x$ac_cv_lib_dl_dlopen" = xyes
16369then :
16370  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16371else $as_nop
16372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16373printf %s "checking for dlopen in -lsvld... " >&6; }
16374if test ${ac_cv_lib_svld_dlopen+y}
16375then :
16376  printf %s "(cached) " >&6
16377else $as_nop
16378  ac_check_lib_save_LIBS=$LIBS
16379LIBS="-lsvld  $LIBS"
16380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382
16383
16384#ifdef __cplusplus
16385extern "C"
16386#endif
16387char dlopen ();
16388int main (void)
16389{
16390return dlopen ();
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395if ac_fn_c_try_link "$LINENO"
16396then :
16397  ac_cv_lib_svld_dlopen=yes
16398else $as_nop
16399  ac_cv_lib_svld_dlopen=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext conftest.beam \
16402    conftest$ac_exeext conftest.$ac_ext
16403LIBS=$ac_check_lib_save_LIBS
16404fi
16405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16406printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16407if test "x$ac_cv_lib_svld_dlopen" = xyes
16408then :
16409  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16410else $as_nop
16411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16412printf %s "checking for dld_link in -ldld... " >&6; }
16413if test ${ac_cv_lib_dld_dld_link+y}
16414then :
16415  printf %s "(cached) " >&6
16416else $as_nop
16417  ac_check_lib_save_LIBS=$LIBS
16418LIBS="-ldld  $LIBS"
16419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420/* end confdefs.h.  */
16421
16422
16423#ifdef __cplusplus
16424extern "C"
16425#endif
16426char dld_link ();
16427int main (void)
16428{
16429return dld_link ();
16430 ;
16431 return 0;
16432}
16433_ACEOF
16434if ac_fn_c_try_link "$LINENO"
16435then :
16436  ac_cv_lib_dld_dld_link=yes
16437else $as_nop
16438  ac_cv_lib_dld_dld_link=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext conftest.beam \
16441    conftest$ac_exeext conftest.$ac_ext
16442LIBS=$ac_check_lib_save_LIBS
16443fi
16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16445printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16446if test "x$ac_cv_lib_dld_dld_link" = xyes
16447then :
16448  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16449fi
16450
16451
16452fi
16453
16454
16455fi
16456
16457
16458fi
16459
16460
16461fi
16462
16463
16464fi
16465
16466    ;;
16467  esac
16468
16469  if test no = "$lt_cv_dlopen"; then
16470    enable_dlopen=no
16471  else
16472    enable_dlopen=yes
16473  fi
16474
16475  case $lt_cv_dlopen in
16476  dlopen)
16477    save_CPPFLAGS=$CPPFLAGS
16478    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16479
16480    save_LDFLAGS=$LDFLAGS
16481    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16482
16483    save_LIBS=$LIBS
16484    LIBS="$lt_cv_dlopen_libs $LIBS"
16485
16486    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16487printf %s "checking whether a program can dlopen itself... " >&6; }
16488if test ${lt_cv_dlopen_self+y}
16489then :
16490  printf %s "(cached) " >&6
16491else $as_nop
16492  	  if test yes = "$cross_compiling"; then :
16493  lt_cv_dlopen_self=cross
16494else
16495  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16496  lt_status=$lt_dlunknown
16497  cat > conftest.$ac_ext <<_LT_EOF
16498#line $LINENO "configure"
16499#include "confdefs.h"
16500
16501#if HAVE_DLFCN_H
16502#include <dlfcn.h>
16503#endif
16504
16505#include <stdio.h>
16506
16507#ifdef RTLD_GLOBAL
16508#  define LT_DLGLOBAL		RTLD_GLOBAL
16509#else
16510#  ifdef DL_GLOBAL
16511#    define LT_DLGLOBAL		DL_GLOBAL
16512#  else
16513#    define LT_DLGLOBAL		0
16514#  endif
16515#endif
16516
16517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16518   find out it does not work in some platform. */
16519#ifndef LT_DLLAZY_OR_NOW
16520#  ifdef RTLD_LAZY
16521#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16522#  else
16523#    ifdef DL_LAZY
16524#      define LT_DLLAZY_OR_NOW		DL_LAZY
16525#    else
16526#      ifdef RTLD_NOW
16527#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16528#      else
16529#        ifdef DL_NOW
16530#          define LT_DLLAZY_OR_NOW	DL_NOW
16531#        else
16532#          define LT_DLLAZY_OR_NOW	0
16533#        endif
16534#      endif
16535#    endif
16536#  endif
16537#endif
16538
16539/* When -fvisibility=hidden is used, assume the code has been annotated
16540   correspondingly for the symbols needed.  */
16541#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16542int fnord () __attribute__((visibility("default")));
16543#endif
16544
16545int fnord () { return 42; }
16546int main ()
16547{
16548  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16549  int status = $lt_dlunknown;
16550
16551  if (self)
16552    {
16553      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16554      else
16555        {
16556	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16557          else puts (dlerror ());
16558	}
16559      /* dlclose (self); */
16560    }
16561  else
16562    puts (dlerror ());
16563
16564  return status;
16565}
16566_LT_EOF
16567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16568  (eval $ac_link) 2>&5
16569  ac_status=$?
16570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16571  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16572    (./conftest; exit; ) >&5 2>/dev/null
16573    lt_status=$?
16574    case x$lt_status in
16575      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16576      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16577      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16578    esac
16579  else :
16580    # compilation failed
16581    lt_cv_dlopen_self=no
16582  fi
16583fi
16584rm -fr conftest*
16585
16586
16587fi
16588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16589printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16590
16591    if test yes = "$lt_cv_dlopen_self"; then
16592      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16594printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16595if test ${lt_cv_dlopen_self_static+y}
16596then :
16597  printf %s "(cached) " >&6
16598else $as_nop
16599  	  if test yes = "$cross_compiling"; then :
16600  lt_cv_dlopen_self_static=cross
16601else
16602  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16603  lt_status=$lt_dlunknown
16604  cat > conftest.$ac_ext <<_LT_EOF
16605#line $LINENO "configure"
16606#include "confdefs.h"
16607
16608#if HAVE_DLFCN_H
16609#include <dlfcn.h>
16610#endif
16611
16612#include <stdio.h>
16613
16614#ifdef RTLD_GLOBAL
16615#  define LT_DLGLOBAL		RTLD_GLOBAL
16616#else
16617#  ifdef DL_GLOBAL
16618#    define LT_DLGLOBAL		DL_GLOBAL
16619#  else
16620#    define LT_DLGLOBAL		0
16621#  endif
16622#endif
16623
16624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16625   find out it does not work in some platform. */
16626#ifndef LT_DLLAZY_OR_NOW
16627#  ifdef RTLD_LAZY
16628#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16629#  else
16630#    ifdef DL_LAZY
16631#      define LT_DLLAZY_OR_NOW		DL_LAZY
16632#    else
16633#      ifdef RTLD_NOW
16634#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16635#      else
16636#        ifdef DL_NOW
16637#          define LT_DLLAZY_OR_NOW	DL_NOW
16638#        else
16639#          define LT_DLLAZY_OR_NOW	0
16640#        endif
16641#      endif
16642#    endif
16643#  endif
16644#endif
16645
16646/* When -fvisibility=hidden is used, assume the code has been annotated
16647   correspondingly for the symbols needed.  */
16648#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16649int fnord () __attribute__((visibility("default")));
16650#endif
16651
16652int fnord () { return 42; }
16653int main ()
16654{
16655  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16656  int status = $lt_dlunknown;
16657
16658  if (self)
16659    {
16660      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16661      else
16662        {
16663	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16664          else puts (dlerror ());
16665	}
16666      /* dlclose (self); */
16667    }
16668  else
16669    puts (dlerror ());
16670
16671  return status;
16672}
16673_LT_EOF
16674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16675  (eval $ac_link) 2>&5
16676  ac_status=$?
16677  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16678  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16679    (./conftest; exit; ) >&5 2>/dev/null
16680    lt_status=$?
16681    case x$lt_status in
16682      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16683      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16684      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16685    esac
16686  else :
16687    # compilation failed
16688    lt_cv_dlopen_self_static=no
16689  fi
16690fi
16691rm -fr conftest*
16692
16693
16694fi
16695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16696printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16697    fi
16698
16699    CPPFLAGS=$save_CPPFLAGS
16700    LDFLAGS=$save_LDFLAGS
16701    LIBS=$save_LIBS
16702    ;;
16703  esac
16704
16705  case $lt_cv_dlopen_self in
16706  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16707  *) enable_dlopen_self=unknown ;;
16708  esac
16709
16710  case $lt_cv_dlopen_self_static in
16711  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16712  *) enable_dlopen_self_static=unknown ;;
16713  esac
16714fi
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732striplib=
16733old_striplib=
16734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16735printf %s "checking whether stripping libraries is possible... " >&6; }
16736if test -z "$STRIP"; then
16737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738printf "%s\n" "no" >&6; }
16739else
16740  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16741    old_striplib="$STRIP --strip-debug"
16742    striplib="$STRIP --strip-unneeded"
16743    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744printf "%s\n" "yes" >&6; }
16745  else
16746    case $host_os in
16747    darwin*)
16748      # FIXME - insert some real tests, host_os isn't really good enough
16749      striplib="$STRIP -x"
16750      old_striplib="$STRIP -S"
16751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16752printf "%s\n" "yes" >&6; }
16753      ;;
16754    freebsd*)
16755      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16756        old_striplib="$STRIP --strip-debug"
16757        striplib="$STRIP --strip-unneeded"
16758        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16759printf "%s\n" "yes" >&6; }
16760      else
16761        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762printf "%s\n" "no" >&6; }
16763      fi
16764      ;;
16765    *)
16766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767printf "%s\n" "no" >&6; }
16768      ;;
16769    esac
16770  fi
16771fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784  # Report what library types will actually be built
16785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16786printf %s "checking if libtool supports shared libraries... " >&6; }
16787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16788printf "%s\n" "$can_build_shared" >&6; }
16789
16790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16791printf %s "checking whether to build shared libraries... " >&6; }
16792  test no = "$can_build_shared" && enable_shared=no
16793
16794  # On AIX, shared libraries and static libraries use the same namespace, and
16795  # are all built from PIC.
16796  case $host_os in
16797  aix3*)
16798    test yes = "$enable_shared" && enable_static=no
16799    if test -n "$RANLIB"; then
16800      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16801      postinstall_cmds='$RANLIB $lib'
16802    fi
16803    ;;
16804
16805  aix[4-9]*)
16806    if test ia64 != "$host_cpu"; then
16807      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16808      yes,aix,yes) ;;			# shared object as lib.so file only
16809      yes,svr4,*) ;;			# shared object as lib.so archive member only
16810      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16811      esac
16812    fi
16813    ;;
16814  esac
16815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16816printf "%s\n" "$enable_shared" >&6; }
16817
16818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16819printf %s "checking whether to build static libraries... " >&6; }
16820  # Make sure either enable_shared or enable_static is yes.
16821  test yes = "$enable_shared" || enable_static=yes
16822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16823printf "%s\n" "$enable_static" >&6; }
16824
16825
16826
16827
16828fi
16829ac_ext=c
16830ac_cpp='$CPP $CPPFLAGS'
16831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16833ac_compiler_gnu=$ac_cv_c_compiler_gnu
16834
16835CC=$lt_save_CC
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851        ac_config_commands="$ac_config_commands libtool"
16852
16853
16854
16855
16856# Only expand once:
16857
16858
16859## --------------------- ##
16860##  End of libtool code  ##
16861## --------------------- ##
16862
16863#
16864# Verify if finally libtool shared libraries will be built
16865#
16866
16867case "x$enable_shared" in # ((
16868  xyes | xno)
16869    xc_lt_build_shared=$enable_shared
16870    ;;
16871  *)
16872    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16873    ;;
16874esac
16875
16876#
16877# Verify if finally libtool static libraries will be built
16878#
16879
16880case "x$enable_static" in # ((
16881  xyes | xno)
16882    xc_lt_build_static=$enable_static
16883    ;;
16884  *)
16885    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16886    ;;
16887esac
16888
16889#
16890# Verify if libtool shared libraries should be linked using flag -version-info
16891#
16892
16893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16894printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16895xc_lt_shlib_use_version_info='yes'
16896if test "x$version_type" = 'xnone'; then
16897  xc_lt_shlib_use_version_info='no'
16898fi
16899case $host_os in # (
16900  amigaos*)
16901    xc_lt_shlib_use_version_info='yes'
16902    ;;
16903esac
16904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16905printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16906
16907#
16908# Verify if libtool shared libraries should be linked using flag -no-undefined
16909#
16910
16911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16912printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16913xc_lt_shlib_use_no_undefined='no'
16914if test "x$allow_undefined" = 'xno'; then
16915  xc_lt_shlib_use_no_undefined='yes'
16916elif test "x$allow_undefined_flag" = 'xunsupported'; then
16917  xc_lt_shlib_use_no_undefined='yes'
16918fi
16919case $host_os in # (
16920  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16921    xc_lt_shlib_use_no_undefined='yes'
16922    ;;
16923esac
16924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16925printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16926
16927#
16928# Verify if libtool shared libraries should be linked using flag -mimpure-text
16929#
16930
16931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16932printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16933xc_lt_shlib_use_mimpure_text='no'
16934case $host_os in # (
16935  solaris2*)
16936    if test "x$GCC" = 'xyes'; then
16937      xc_lt_shlib_use_mimpure_text='yes'
16938    fi
16939    ;;
16940esac
16941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16942printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16943
16944#
16945# Find out whether libtool libraries would be built with PIC
16946#
16947
16948case "x$pic_mode" in # ((((
16949  xdefault)
16950    xc_lt_build_shared_with_pic='yes'
16951    xc_lt_build_static_with_pic='no'
16952    ;;
16953  xyes)
16954    xc_lt_build_shared_with_pic='yes'
16955    xc_lt_build_static_with_pic='yes'
16956    ;;
16957  xno)
16958    xc_lt_build_shared_with_pic='no'
16959    xc_lt_build_static_with_pic='no'
16960    ;;
16961  *)
16962    xc_lt_build_shared_with_pic='unknown'
16963    xc_lt_build_static_with_pic='unknown'
16964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16965printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16966    ;;
16967esac
16968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16969printf %s "checking whether to build shared libraries with PIC... " >&6; }
16970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16971printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16973printf %s "checking whether to build static libraries with PIC... " >&6; }
16974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16975printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16976
16977#
16978# Verify if libtool shared libraries will be built while static not built
16979#
16980
16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16982printf %s "checking whether to build shared libraries only... " >&6; }
16983if test "$xc_lt_build_shared" = 'yes' &&
16984  test "$xc_lt_build_static" = 'no'; then
16985  xc_lt_build_shared_only='yes'
16986else
16987  xc_lt_build_shared_only='no'
16988fi
16989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16990printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16991
16992#
16993# Verify if libtool static libraries will be built while shared not built
16994#
16995
16996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16997printf %s "checking whether to build static libraries only... " >&6; }
16998if test "$xc_lt_build_static" = 'yes' &&
16999  test "$xc_lt_build_shared" = 'no'; then
17000  xc_lt_build_static_only='yes'
17001else
17002  xc_lt_build_static_only='no'
17003fi
17004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17005printf "%s\n" "$xc_lt_build_static_only" >&6; }
17006
17007
17008
17009
17010if test -n "$ac_tool_prefix"; then
17011  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17012set dummy ${ac_tool_prefix}windres; ac_word=$2
17013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17014printf %s "checking for $ac_word... " >&6; }
17015if test ${ac_cv_prog_RC+y}
17016then :
17017  printf %s "(cached) " >&6
17018else $as_nop
17019  if test -n "$RC"; then
17020  ac_cv_prog_RC="$RC" # Let the user override the test.
17021else
17022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023for as_dir in $PATH
17024do
17025  IFS=$as_save_IFS
17026  case $as_dir in #(((
17027    '') as_dir=./ ;;
17028    */) ;;
17029    *) as_dir=$as_dir/ ;;
17030  esac
17031    for ac_exec_ext in '' $ac_executable_extensions; do
17032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17033    ac_cv_prog_RC="${ac_tool_prefix}windres"
17034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17035    break 2
17036  fi
17037done
17038  done
17039IFS=$as_save_IFS
17040
17041fi
17042fi
17043RC=$ac_cv_prog_RC
17044if test -n "$RC"; then
17045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17046printf "%s\n" "$RC" >&6; }
17047else
17048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049printf "%s\n" "no" >&6; }
17050fi
17051
17052
17053fi
17054if test -z "$ac_cv_prog_RC"; then
17055  ac_ct_RC=$RC
17056  # Extract the first word of "windres", so it can be a program name with args.
17057set dummy windres; ac_word=$2
17058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17059printf %s "checking for $ac_word... " >&6; }
17060if test ${ac_cv_prog_ac_ct_RC+y}
17061then :
17062  printf %s "(cached) " >&6
17063else $as_nop
17064  if test -n "$ac_ct_RC"; then
17065  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17066else
17067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068for as_dir in $PATH
17069do
17070  IFS=$as_save_IFS
17071  case $as_dir in #(((
17072    '') as_dir=./ ;;
17073    */) ;;
17074    *) as_dir=$as_dir/ ;;
17075  esac
17076    for ac_exec_ext in '' $ac_executable_extensions; do
17077  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17078    ac_cv_prog_ac_ct_RC="windres"
17079    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17080    break 2
17081  fi
17082done
17083  done
17084IFS=$as_save_IFS
17085
17086fi
17087fi
17088ac_ct_RC=$ac_cv_prog_ac_ct_RC
17089if test -n "$ac_ct_RC"; then
17090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17091printf "%s\n" "$ac_ct_RC" >&6; }
17092else
17093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094printf "%s\n" "no" >&6; }
17095fi
17096
17097  if test "x$ac_ct_RC" = x; then
17098    RC=""
17099  else
17100    case $cross_compiling:$ac_tool_warned in
17101yes:)
17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17103printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17104ac_tool_warned=yes ;;
17105esac
17106    RC=$ac_ct_RC
17107  fi
17108else
17109  RC="$ac_cv_prog_RC"
17110fi
17111
17112
17113
17114
17115# Source file extension for RC test sources.
17116ac_ext=rc
17117
17118# Object file extension for compiled RC test sources.
17119objext=o
17120objext_RC=$objext
17121
17122# Code to be used in simple compile tests
17123lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17124
17125# Code to be used in simple link tests
17126lt_simple_link_test_code=$lt_simple_compile_test_code
17127
17128# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17129
17130
17131
17132
17133
17134
17135# If no C compiler was specified, use CC.
17136LTCC=${LTCC-"$CC"}
17137
17138# If no C compiler flags were specified, use CFLAGS.
17139LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17140
17141# Allow CC to be a program name with arguments.
17142compiler=$CC
17143
17144
17145# save warnings/boilerplate of simple test code
17146ac_outfile=conftest.$ac_objext
17147echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17148eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17149_lt_compiler_boilerplate=`cat conftest.err`
17150$RM conftest*
17151
17152ac_outfile=conftest.$ac_objext
17153echo "$lt_simple_link_test_code" >conftest.$ac_ext
17154eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17155_lt_linker_boilerplate=`cat conftest.err`
17156$RM -r conftest*
17157
17158
17159# Allow CC to be a program name with arguments.
17160lt_save_CC=$CC
17161lt_save_CFLAGS=$CFLAGS
17162lt_save_GCC=$GCC
17163GCC=
17164CC=${RC-"windres"}
17165CFLAGS=
17166compiler=$CC
17167compiler_RC=$CC
17168func_cc_basename $compiler
17169cc_basename=$func_cc_basename_result
17170
17171lt_cv_prog_compiler_c_o_RC=yes
17172
17173if test -n "$compiler"; then
17174  :
17175
17176
17177
17178fi
17179
17180GCC=$lt_save_GCC
17181ac_ext=c
17182ac_cpp='$CPP $CPPFLAGS'
17183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17185ac_compiler_gnu=$ac_cv_c_compiler_gnu
17186
17187CC=$lt_save_CC
17188CFLAGS=$lt_save_CFLAGS
17189
17190
17191#
17192# Automake conditionals based on libtool related checks
17193#
17194
17195 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17196  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17197  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17198else
17199  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17200  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17201fi
17202
17203 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17204  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17205  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17206else
17207  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17208  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17209fi
17210
17211 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17212  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17213  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17214else
17215  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17216  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17217fi
17218
17219
17220#
17221# Due to libtool and automake machinery limitations of not allowing
17222# specifying separate CPPFLAGS or CFLAGS when compiling objects for
17223# inclusion of these in shared or static libraries, we are forced to
17224# build using separate configure runs for shared and static libraries
17225# on systems where different CPPFLAGS or CFLAGS are mandatory in order
17226# to compile objects for each kind of library. Notice that relying on
17227# the '-DPIC' CFLAG that libtool provides is not valid given that the
17228# user might for example choose to build static libraries with PIC.
17229#
17230
17231#
17232# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17233# targeting a static library and not building its shared counterpart.
17234#
17235
17236 if test "x$xc_lt_build_static_only" = 'xyes'; then
17237  USE_CPPFLAG_CURL_STATICLIB_TRUE=
17238  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17239else
17240  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17241  USE_CPPFLAG_CURL_STATICLIB_FALSE=
17242fi
17243
17244
17245#
17246# Make staticlib CPPFLAG variable and its definition visible in output
17247# files unconditionally, providing an empty definition unless strictly
17248# targeting a static library and not building its shared counterpart.
17249#
17250
17251CPPFLAG_CURL_STATICLIB=
17252if test "x$xc_lt_build_static_only" = 'xyes'; then
17253  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17254fi
17255
17256
17257
17258# Determine whether all dependent libraries must be specified when linking
17259if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17260then
17261    REQUIRE_LIB_DEPS=no
17262else
17263    REQUIRE_LIB_DEPS=yes
17264fi
17265
17266 if test x$REQUIRE_LIB_DEPS = xyes; then
17267  USE_EXPLICIT_LIB_DEPS_TRUE=
17268  USE_EXPLICIT_LIB_DEPS_FALSE='#'
17269else
17270  USE_EXPLICIT_LIB_DEPS_TRUE='#'
17271  USE_EXPLICIT_LIB_DEPS_FALSE=
17272fi
17273
17274
17275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17276printf %s "checking for inline... " >&6; }
17277if test ${ac_cv_c_inline+y}
17278then :
17279  printf %s "(cached) " >&6
17280else $as_nop
17281  ac_cv_c_inline=no
17282for ac_kw in inline __inline__ __inline; do
17283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285#ifndef __cplusplus
17286typedef int foo_t;
17287static $ac_kw foo_t static_foo (void) {return 0; }
17288$ac_kw foo_t foo (void) {return 0; }
17289#endif
17290
17291_ACEOF
17292if ac_fn_c_try_compile "$LINENO"
17293then :
17294  ac_cv_c_inline=$ac_kw
17295fi
17296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17297  test "$ac_cv_c_inline" != no && break
17298done
17299
17300fi
17301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17302printf "%s\n" "$ac_cv_c_inline" >&6; }
17303
17304case $ac_cv_c_inline in
17305  inline | yes) ;;
17306  *)
17307    case $ac_cv_c_inline in
17308      no) ac_val=;;
17309      *) ac_val=$ac_cv_c_inline;;
17310    esac
17311    cat >>confdefs.h <<_ACEOF
17312#ifndef __cplusplus
17313#define inline $ac_val
17314#endif
17315_ACEOF
17316    ;;
17317esac
17318
17319
17320
17321
17322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17323printf %s "checking if cpp -P is needed... " >&6; }
17324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325/* end confdefs.h.  */
17326
17327 #include <errno.h>
17328TEST EINVAL TEST
17329
17330_ACEOF
17331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17332  $EGREP "TEST.*TEST" >/dev/null 2>&1
17333then :
17334  cpp=no
17335else $as_nop
17336  cpp=yes
17337fi
17338rm -rf conftest*
17339
17340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17341printf "%s\n" "$cpp" >&6; }
17342
17343    if test "x$cpp" = "xyes"; then
17344    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17345printf %s "checking if cpp -P works... " >&6; }
17346    OLDCPPFLAGS=$CPPFLAGS
17347    CPPFLAGS="$CPPFLAGS -P"
17348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350
17351 #include <errno.h>
17352TEST EINVAL TEST
17353
17354_ACEOF
17355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17356  $EGREP "TEST.*TEST" >/dev/null 2>&1
17357then :
17358  cpp_p=yes
17359else $as_nop
17360  cpp_p=no
17361fi
17362rm -rf conftest*
17363
17364    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17365printf "%s\n" "$cpp_p" >&6; }
17366
17367    if test "x$cpp_p" = "xno"; then
17368      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17369printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17370      # without -P
17371      CPPPFLAG=""
17372    else
17373      # with -P
17374      CPPPFLAG="-P"
17375    fi
17376        CPPFLAGS=$OLDCPPFLAGS
17377  else
17378    # without -P
17379    CPPPFLAG=""
17380  fi
17381
17382
17383  #
17384  compiler_id="unknown"
17385  compiler_num="0"
17386  #
17387  flags_dbg_yes="unknown"
17388  flags_opt_all="unknown"
17389  flags_opt_yes="unknown"
17390  flags_opt_off="unknown"
17391  #
17392  flags_prefer_cppflags="no"
17393  #
17394
17395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17396printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17397
17398    OLDCPPFLAGS=$CPPFLAGS
17399  # CPPPFLAG comes from CURL_CPP_P
17400  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17401      if test -z "$SED"; then
17402    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17403  fi
17404  if test -z "$GREP"; then
17405    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17406  fi
17407
17408  tmp_exp=""
17409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h.  */
17411
17412
17413#ifdef __DECC
17414CURL_DEF_TOKEN __DECC
17415#endif
17416
17417
17418_ACEOF
17419if ac_fn_c_try_cpp "$LINENO"
17420then :
17421
17422    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17423      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17424      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17425      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17426    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17427      tmp_exp=""
17428    fi
17429
17430fi
17431rm -f conftest.err conftest.i conftest.$ac_ext
17432  if test -z "$tmp_exp"; then
17433    curl_cv_have_def___DECC=no
17434
17435  else
17436    curl_cv_have_def___DECC=yes
17437    curl_cv_def___DECC=$tmp_exp
17438
17439  fi
17440      CPPFLAGS=$OLDCPPFLAGS
17441
17442
17443    OLDCPPFLAGS=$CPPFLAGS
17444  # CPPPFLAG comes from CURL_CPP_P
17445  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17446      if test -z "$SED"; then
17447    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17448  fi
17449  if test -z "$GREP"; then
17450    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17451  fi
17452
17453  tmp_exp=""
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456
17457
17458#ifdef __DECC_VER
17459CURL_DEF_TOKEN __DECC_VER
17460#endif
17461
17462
17463_ACEOF
17464if ac_fn_c_try_cpp "$LINENO"
17465then :
17466
17467    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17468      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17469      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17470      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17471    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17472      tmp_exp=""
17473    fi
17474
17475fi
17476rm -f conftest.err conftest.i conftest.$ac_ext
17477  if test -z "$tmp_exp"; then
17478    curl_cv_have_def___DECC_VER=no
17479
17480  else
17481    curl_cv_have_def___DECC_VER=yes
17482    curl_cv_def___DECC_VER=$tmp_exp
17483
17484  fi
17485      CPPFLAGS=$OLDCPPFLAGS
17486
17487  if test "$curl_cv_have_def___DECC" = "yes" &&
17488    test "$curl_cv_have_def___DECC_VER" = "yes"; then
17489    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490printf "%s\n" "yes" >&6; }
17491    compiler_id="DEC_C"
17492    flags_dbg_yes="-g2"
17493    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17494    flags_opt_yes="-O1"
17495    flags_opt_off="-O0"
17496  else
17497    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17498printf "%s\n" "no" >&6; }
17499  fi
17500
17501
17502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17503printf %s "checking if compiler is HP-UX C... " >&6; }
17504
17505    OLDCPPFLAGS=$CPPFLAGS
17506  # CPPPFLAG comes from CURL_CPP_P
17507  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17508      if test -z "$SED"; then
17509    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17510  fi
17511  if test -z "$GREP"; then
17512    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17513  fi
17514
17515  tmp_exp=""
17516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517/* end confdefs.h.  */
17518
17519
17520#ifdef __HP_cc
17521CURL_DEF_TOKEN __HP_cc
17522#endif
17523
17524
17525_ACEOF
17526if ac_fn_c_try_cpp "$LINENO"
17527then :
17528
17529    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17530      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17531      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17532      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17533    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17534      tmp_exp=""
17535    fi
17536
17537fi
17538rm -f conftest.err conftest.i conftest.$ac_ext
17539  if test -z "$tmp_exp"; then
17540    curl_cv_have_def___HP_cc=no
17541
17542  else
17543    curl_cv_have_def___HP_cc=yes
17544    curl_cv_def___HP_cc=$tmp_exp
17545
17546  fi
17547      CPPFLAGS=$OLDCPPFLAGS
17548
17549  if test "$curl_cv_have_def___HP_cc" = "yes"; then
17550    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17551printf "%s\n" "yes" >&6; }
17552    compiler_id="HP_UX_C"
17553    flags_dbg_yes="-g"
17554    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17555    flags_opt_yes="+O2"
17556    flags_opt_off="+O0"
17557  else
17558    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17559printf "%s\n" "no" >&6; }
17560  fi
17561
17562
17563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17564printf %s "checking if compiler is IBM C... " >&6; }
17565
17566    OLDCPPFLAGS=$CPPFLAGS
17567  # CPPPFLAG comes from CURL_CPP_P
17568  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17569      if test -z "$SED"; then
17570    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17571  fi
17572  if test -z "$GREP"; then
17573    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17574  fi
17575
17576  tmp_exp=""
17577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h.  */
17579
17580
17581#ifdef __IBMC__
17582CURL_DEF_TOKEN __IBMC__
17583#endif
17584
17585
17586_ACEOF
17587if ac_fn_c_try_cpp "$LINENO"
17588then :
17589
17590    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17591      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17592      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17593      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17594    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17595      tmp_exp=""
17596    fi
17597
17598fi
17599rm -f conftest.err conftest.i conftest.$ac_ext
17600  if test -z "$tmp_exp"; then
17601    curl_cv_have_def___IBMC__=no
17602
17603  else
17604    curl_cv_have_def___IBMC__=yes
17605    curl_cv_def___IBMC__=$tmp_exp
17606
17607  fi
17608      CPPFLAGS=$OLDCPPFLAGS
17609
17610  if test "$curl_cv_have_def___IBMC__" = "yes"; then
17611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17612printf "%s\n" "yes" >&6; }
17613    compiler_id="IBM_C"
17614    flags_dbg_yes="-g"
17615    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17616    flags_opt_all="$flags_opt_all -qnooptimize"
17617    flags_opt_all="$flags_opt_all -qoptimize=0"
17618    flags_opt_all="$flags_opt_all -qoptimize=1"
17619    flags_opt_all="$flags_opt_all -qoptimize=2"
17620    flags_opt_all="$flags_opt_all -qoptimize=3"
17621    flags_opt_all="$flags_opt_all -qoptimize=4"
17622    flags_opt_all="$flags_opt_all -qoptimize=5"
17623    flags_opt_yes="-O2"
17624    flags_opt_off="-qnooptimize"
17625    flags_prefer_cppflags="yes"
17626  else
17627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628printf "%s\n" "no" >&6; }
17629  fi
17630
17631
17632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17633printf %s "checking if compiler is Intel C... " >&6; }
17634
17635    OLDCPPFLAGS=$CPPFLAGS
17636  # CPPPFLAG comes from CURL_CPP_P
17637  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17638      if test -z "$SED"; then
17639    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17640  fi
17641  if test -z "$GREP"; then
17642    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17643  fi
17644
17645  tmp_exp=""
17646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648
17649
17650#ifdef __INTEL_COMPILER
17651CURL_DEF_TOKEN __INTEL_COMPILER
17652#endif
17653
17654
17655_ACEOF
17656if ac_fn_c_try_cpp "$LINENO"
17657then :
17658
17659    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17660      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17661      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17662      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17663    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17664      tmp_exp=""
17665    fi
17666
17667fi
17668rm -f conftest.err conftest.i conftest.$ac_ext
17669  if test -z "$tmp_exp"; then
17670    curl_cv_have_def___INTEL_COMPILER=no
17671
17672  else
17673    curl_cv_have_def___INTEL_COMPILER=yes
17674    curl_cv_def___INTEL_COMPILER=$tmp_exp
17675
17676  fi
17677      CPPFLAGS=$OLDCPPFLAGS
17678
17679  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17680    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17681printf "%s\n" "yes" >&6; }
17682    compiler_num="$curl_cv_def___INTEL_COMPILER"
17683
17684    OLDCPPFLAGS=$CPPFLAGS
17685  # CPPPFLAG comes from CURL_CPP_P
17686  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17687      if test -z "$SED"; then
17688    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17689  fi
17690  if test -z "$GREP"; then
17691    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17692  fi
17693
17694  tmp_exp=""
17695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696/* end confdefs.h.  */
17697
17698
17699#ifdef __unix__
17700CURL_DEF_TOKEN __unix__
17701#endif
17702
17703
17704_ACEOF
17705if ac_fn_c_try_cpp "$LINENO"
17706then :
17707
17708    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17709      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17710      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17711      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17712    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17713      tmp_exp=""
17714    fi
17715
17716fi
17717rm -f conftest.err conftest.i conftest.$ac_ext
17718  if test -z "$tmp_exp"; then
17719    curl_cv_have_def___unix__=no
17720
17721  else
17722    curl_cv_have_def___unix__=yes
17723    curl_cv_def___unix__=$tmp_exp
17724
17725  fi
17726      CPPFLAGS=$OLDCPPFLAGS
17727
17728    if test "$curl_cv_have_def___unix__" = "yes"; then
17729      compiler_id="INTEL_UNIX_C"
17730      flags_dbg_yes="-g"
17731      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17732      flags_opt_yes="-O2"
17733      flags_opt_off="-O0"
17734    else
17735      compiler_id="INTEL_WINDOWS_C"
17736      flags_dbg_yes="/Zi /Oy-"
17737      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17738      flags_opt_yes="/O2"
17739      flags_opt_off="/Od"
17740    fi
17741  else
17742    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17743printf "%s\n" "no" >&6; }
17744  fi
17745
17746
17747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17748printf %s "checking if compiler is clang... " >&6; }
17749
17750    OLDCPPFLAGS=$CPPFLAGS
17751  # CPPPFLAG comes from CURL_CPP_P
17752  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17753      if test -z "$SED"; then
17754    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17755  fi
17756  if test -z "$GREP"; then
17757    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17758  fi
17759
17760  tmp_exp=""
17761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762/* end confdefs.h.  */
17763
17764
17765#ifdef __clang__
17766CURL_DEF_TOKEN __clang__
17767#endif
17768
17769
17770_ACEOF
17771if ac_fn_c_try_cpp "$LINENO"
17772then :
17773
17774    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17775      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17776      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17777      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17778    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17779      tmp_exp=""
17780    fi
17781
17782fi
17783rm -f conftest.err conftest.i conftest.$ac_ext
17784  if test -z "$tmp_exp"; then
17785    curl_cv_have_def___clang__=no
17786
17787  else
17788    curl_cv_have_def___clang__=yes
17789    curl_cv_def___clang__=$tmp_exp
17790
17791  fi
17792      CPPFLAGS=$OLDCPPFLAGS
17793
17794  if test "$curl_cv_have_def___clang__" = "yes"; then
17795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17796printf "%s\n" "yes" >&6; }
17797    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17798printf %s "checking if compiler is xlclang... " >&6; }
17799
17800    OLDCPPFLAGS=$CPPFLAGS
17801  # CPPPFLAG comes from CURL_CPP_P
17802  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17803      if test -z "$SED"; then
17804    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17805  fi
17806  if test -z "$GREP"; then
17807    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17808  fi
17809
17810  tmp_exp=""
17811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812/* end confdefs.h.  */
17813
17814
17815#ifdef __ibmxl__
17816CURL_DEF_TOKEN __ibmxl__
17817#endif
17818
17819
17820_ACEOF
17821if ac_fn_c_try_cpp "$LINENO"
17822then :
17823
17824    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17825      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17826      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17827      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17828    if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17829      tmp_exp=""
17830    fi
17831
17832fi
17833rm -f conftest.err conftest.i conftest.$ac_ext
17834  if test -z "$tmp_exp"; then
17835    curl_cv_have_def___ibmxl__=no
17836
17837  else
17838    curl_cv_have_def___ibmxl__=yes
17839    curl_cv_def___ibmxl__=$tmp_exp
17840
17841  fi
17842      CPPFLAGS=$OLDCPPFLAGS
17843
17844    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17845            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846printf "%s\n" "yes" >&6; }
17847      compiler_id="XLCLANG"
17848    else
17849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17850printf "%s\n" "no" >&6; }
17851      compiler_id="CLANG"
17852    fi
17853    fullclangver=`$CC -v 2>&1 | grep version`
17854    clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17855    if test -z "$clangver"; then
17856      if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17857                clangver="3.7"
17858      else
17859        clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17860      fi
17861    fi
17862    clangvhi=`echo $clangver | cut -d . -f1`
17863    clangvlo=`echo $clangver | cut -d . -f2`
17864    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17865    flags_dbg_yes="-g"
17866    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17867    flags_opt_yes="-O2"
17868    flags_opt_off="-O0"
17869  else
17870    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17871printf "%s\n" "no" >&6; }
17872  fi
17873
17874
17875      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17876printf %s "checking if compiler is GNU C... " >&6; }
17877
17878    OLDCPPFLAGS=$CPPFLAGS
17879  # CPPPFLAG comes from CURL_CPP_P
17880  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17881      if test -z "$SED"; then
17882    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17883  fi
17884  if test -z "$GREP"; then
17885    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17886  fi
17887
17888  tmp_exp=""
17889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891
17892
17893#ifdef __GNUC__
17894CURL_DEF_TOKEN __GNUC__
17895#endif
17896
17897
17898_ACEOF
17899if ac_fn_c_try_cpp "$LINENO"
17900then :
17901
17902    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17903      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17904      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17905      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17906    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17907      tmp_exp=""
17908    fi
17909
17910fi
17911rm -f conftest.err conftest.i conftest.$ac_ext
17912  if test -z "$tmp_exp"; then
17913    curl_cv_have_def___GNUC__=no
17914
17915  else
17916    curl_cv_have_def___GNUC__=yes
17917    curl_cv_def___GNUC__=$tmp_exp
17918
17919  fi
17920      CPPFLAGS=$OLDCPPFLAGS
17921
17922  if test "$curl_cv_have_def___GNUC__" = "yes" &&
17923    test "$compiler_id" = "unknown"; then
17924    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925printf "%s\n" "yes" >&6; }
17926    compiler_id="GNU_C"
17927    gccver=`$CC -dumpversion`
17928    gccvhi=`echo $gccver | cut -d . -f1`
17929    gccvlo=`echo $gccver | cut -d . -f2`
17930    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17931    flags_dbg_yes="-g"
17932    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17933    flags_opt_yes="-O2"
17934    flags_opt_off="-O0"
17935
17936    OLDCPPFLAGS=$CPPFLAGS
17937  # CPPPFLAG comes from CURL_CPP_P
17938  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17939      if test -z "$SED"; then
17940    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17941  fi
17942  if test -z "$GREP"; then
17943    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17944  fi
17945
17946  tmp_exp=""
17947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948/* end confdefs.h.  */
17949
17950
17951#ifdef _WIN32
17952CURL_DEF_TOKEN _WIN32
17953#endif
17954
17955
17956_ACEOF
17957if ac_fn_c_try_cpp "$LINENO"
17958then :
17959
17960    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17961      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17962      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17963      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17964    if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17965      tmp_exp=""
17966    fi
17967
17968fi
17969rm -f conftest.err conftest.i conftest.$ac_ext
17970  if test -z "$tmp_exp"; then
17971    curl_cv_have_def__WIN32=no
17972
17973  else
17974    curl_cv_have_def__WIN32=yes
17975    curl_cv_def__WIN32=$tmp_exp
17976
17977  fi
17978      CPPFLAGS=$OLDCPPFLAGS
17979
17980  else
17981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17982printf "%s\n" "no" >&6; }
17983  fi
17984
17985
17986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17987printf %s "checking if compiler is LCC... " >&6; }
17988
17989    OLDCPPFLAGS=$CPPFLAGS
17990  # CPPPFLAG comes from CURL_CPP_P
17991  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17992      if test -z "$SED"; then
17993    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17994  fi
17995  if test -z "$GREP"; then
17996    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17997  fi
17998
17999  tmp_exp=""
18000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001/* end confdefs.h.  */
18002
18003
18004#ifdef __LCC__
18005CURL_DEF_TOKEN __LCC__
18006#endif
18007
18008
18009_ACEOF
18010if ac_fn_c_try_cpp "$LINENO"
18011then :
18012
18013    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18014      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18015      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18016      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18017    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
18018      tmp_exp=""
18019    fi
18020
18021fi
18022rm -f conftest.err conftest.i conftest.$ac_ext
18023  if test -z "$tmp_exp"; then
18024    curl_cv_have_def___LCC__=no
18025
18026  else
18027    curl_cv_have_def___LCC__=yes
18028    curl_cv_def___LCC__=$tmp_exp
18029
18030  fi
18031      CPPFLAGS=$OLDCPPFLAGS
18032
18033  if test "$curl_cv_have_def___LCC__" = "yes"; then
18034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18035printf "%s\n" "yes" >&6; }
18036    compiler_id="LCC"
18037    flags_dbg_yes="-g"
18038    flags_opt_all=""
18039    flags_opt_yes=""
18040    flags_opt_off=""
18041  else
18042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043printf "%s\n" "no" >&6; }
18044  fi
18045
18046
18047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
18048printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
18049
18050    OLDCPPFLAGS=$CPPFLAGS
18051  # CPPPFLAG comes from CURL_CPP_P
18052  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18053      if test -z "$SED"; then
18054    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18055  fi
18056  if test -z "$GREP"; then
18057    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18058  fi
18059
18060  tmp_exp=""
18061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062/* end confdefs.h.  */
18063
18064
18065#ifdef __GNUC__
18066CURL_DEF_TOKEN __GNUC__
18067#endif
18068
18069
18070_ACEOF
18071if ac_fn_c_try_cpp "$LINENO"
18072then :
18073
18074    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18075      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18076      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18077      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18078    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18079      tmp_exp=""
18080    fi
18081
18082fi
18083rm -f conftest.err conftest.i conftest.$ac_ext
18084  if test -z "$tmp_exp"; then
18085    curl_cv_have_def___GNUC__=no
18086
18087  else
18088    curl_cv_have_def___GNUC__=yes
18089    curl_cv_def___GNUC__=$tmp_exp
18090
18091  fi
18092      CPPFLAGS=$OLDCPPFLAGS
18093
18094
18095    OLDCPPFLAGS=$CPPFLAGS
18096  # CPPPFLAG comes from CURL_CPP_P
18097  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18098      if test -z "$SED"; then
18099    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18100  fi
18101  if test -z "$GREP"; then
18102    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18103  fi
18104
18105  tmp_exp=""
18106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h.  */
18108
18109
18110#ifdef _COMPILER_VERSION
18111CURL_DEF_TOKEN _COMPILER_VERSION
18112#endif
18113
18114
18115_ACEOF
18116if ac_fn_c_try_cpp "$LINENO"
18117then :
18118
18119    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18120      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18121      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18122      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18123    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18124      tmp_exp=""
18125    fi
18126
18127fi
18128rm -f conftest.err conftest.i conftest.$ac_ext
18129  if test -z "$tmp_exp"; then
18130    curl_cv_have_def__COMPILER_VERSION=no
18131
18132  else
18133    curl_cv_have_def__COMPILER_VERSION=yes
18134    curl_cv_def__COMPILER_VERSION=$tmp_exp
18135
18136  fi
18137      CPPFLAGS=$OLDCPPFLAGS
18138
18139
18140    OLDCPPFLAGS=$CPPFLAGS
18141  # CPPPFLAG comes from CURL_CPP_P
18142  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18143      if test -z "$SED"; then
18144    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18145  fi
18146  if test -z "$GREP"; then
18147    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18148  fi
18149
18150  tmp_exp=""
18151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152/* end confdefs.h.  */
18153
18154
18155#ifdef _SGI_COMPILER_VERSION
18156CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18157#endif
18158
18159
18160_ACEOF
18161if ac_fn_c_try_cpp "$LINENO"
18162then :
18163
18164    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18165      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18166      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18167      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18168    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18169      tmp_exp=""
18170    fi
18171
18172fi
18173rm -f conftest.err conftest.i conftest.$ac_ext
18174  if test -z "$tmp_exp"; then
18175    curl_cv_have_def__SGI_COMPILER_VERSION=no
18176
18177  else
18178    curl_cv_have_def__SGI_COMPILER_VERSION=yes
18179    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18180
18181  fi
18182      CPPFLAGS=$OLDCPPFLAGS
18183
18184  if test "$curl_cv_have_def___GNUC__" = "no" &&
18185    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18186     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18187    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188printf "%s\n" "yes" >&6; }
18189    compiler_id="SGI_MIPSPRO_C"
18190    flags_dbg_yes="-g"
18191    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18192    flags_opt_yes="-O2"
18193    flags_opt_off="-O0"
18194  else
18195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18196printf "%s\n" "no" >&6; }
18197  fi
18198
18199
18200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18201printf %s "checking if compiler is SGI MIPS C... " >&6; }
18202
18203    OLDCPPFLAGS=$CPPFLAGS
18204  # CPPPFLAG comes from CURL_CPP_P
18205  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18206      if test -z "$SED"; then
18207    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18208  fi
18209  if test -z "$GREP"; then
18210    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18211  fi
18212
18213  tmp_exp=""
18214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215/* end confdefs.h.  */
18216
18217
18218#ifdef __GNUC__
18219CURL_DEF_TOKEN __GNUC__
18220#endif
18221
18222
18223_ACEOF
18224if ac_fn_c_try_cpp "$LINENO"
18225then :
18226
18227    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18228      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18229      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18230      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18231    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18232      tmp_exp=""
18233    fi
18234
18235fi
18236rm -f conftest.err conftest.i conftest.$ac_ext
18237  if test -z "$tmp_exp"; then
18238    curl_cv_have_def___GNUC__=no
18239
18240  else
18241    curl_cv_have_def___GNUC__=yes
18242    curl_cv_def___GNUC__=$tmp_exp
18243
18244  fi
18245      CPPFLAGS=$OLDCPPFLAGS
18246
18247
18248    OLDCPPFLAGS=$CPPFLAGS
18249  # CPPPFLAG comes from CURL_CPP_P
18250  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18251      if test -z "$SED"; then
18252    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18253  fi
18254  if test -z "$GREP"; then
18255    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18256  fi
18257
18258  tmp_exp=""
18259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260/* end confdefs.h.  */
18261
18262
18263#ifdef __sgi
18264CURL_DEF_TOKEN __sgi
18265#endif
18266
18267
18268_ACEOF
18269if ac_fn_c_try_cpp "$LINENO"
18270then :
18271
18272    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18273      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18274      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18275      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18276    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18277      tmp_exp=""
18278    fi
18279
18280fi
18281rm -f conftest.err conftest.i conftest.$ac_ext
18282  if test -z "$tmp_exp"; then
18283    curl_cv_have_def___sgi=no
18284
18285  else
18286    curl_cv_have_def___sgi=yes
18287    curl_cv_def___sgi=$tmp_exp
18288
18289  fi
18290      CPPFLAGS=$OLDCPPFLAGS
18291
18292  if test "$curl_cv_have_def___GNUC__" = "no" &&
18293    test "$curl_cv_have_def___sgi" = "yes" &&
18294    test "$compiler_id" = "unknown"; then
18295    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18296printf "%s\n" "yes" >&6; }
18297    compiler_id="SGI_MIPS_C"
18298    flags_dbg_yes="-g"
18299    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18300    flags_opt_yes="-O2"
18301    flags_opt_off="-O0"
18302  else
18303    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18304printf "%s\n" "no" >&6; }
18305  fi
18306
18307
18308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18309printf %s "checking if compiler is SunPro C... " >&6; }
18310
18311    OLDCPPFLAGS=$CPPFLAGS
18312  # CPPPFLAG comes from CURL_CPP_P
18313  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18314      if test -z "$SED"; then
18315    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18316  fi
18317  if test -z "$GREP"; then
18318    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18319  fi
18320
18321  tmp_exp=""
18322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h.  */
18324
18325
18326#ifdef __SUNPRO_C
18327CURL_DEF_TOKEN __SUNPRO_C
18328#endif
18329
18330
18331_ACEOF
18332if ac_fn_c_try_cpp "$LINENO"
18333then :
18334
18335    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18336      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18337      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18338      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18339    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18340      tmp_exp=""
18341    fi
18342
18343fi
18344rm -f conftest.err conftest.i conftest.$ac_ext
18345  if test -z "$tmp_exp"; then
18346    curl_cv_have_def___SUNPRO_C=no
18347
18348  else
18349    curl_cv_have_def___SUNPRO_C=yes
18350    curl_cv_def___SUNPRO_C=$tmp_exp
18351
18352  fi
18353      CPPFLAGS=$OLDCPPFLAGS
18354
18355  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18356    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357printf "%s\n" "yes" >&6; }
18358    compiler_id="SUNPRO_C"
18359    flags_dbg_yes="-g"
18360    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18361    flags_opt_yes="-xO2"
18362    flags_opt_off=""
18363  else
18364    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18365printf "%s\n" "no" >&6; }
18366  fi
18367
18368
18369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18370printf %s "checking if compiler is Tiny C... " >&6; }
18371
18372    OLDCPPFLAGS=$CPPFLAGS
18373  # CPPPFLAG comes from CURL_CPP_P
18374  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18375      if test -z "$SED"; then
18376    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18377  fi
18378  if test -z "$GREP"; then
18379    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18380  fi
18381
18382  tmp_exp=""
18383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385
18386
18387#ifdef __TINYC__
18388CURL_DEF_TOKEN __TINYC__
18389#endif
18390
18391
18392_ACEOF
18393if ac_fn_c_try_cpp "$LINENO"
18394then :
18395
18396    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18397      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18398      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18399      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18400    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18401      tmp_exp=""
18402    fi
18403
18404fi
18405rm -f conftest.err conftest.i conftest.$ac_ext
18406  if test -z "$tmp_exp"; then
18407    curl_cv_have_def___TINYC__=no
18408
18409  else
18410    curl_cv_have_def___TINYC__=yes
18411    curl_cv_def___TINYC__=$tmp_exp
18412
18413  fi
18414      CPPFLAGS=$OLDCPPFLAGS
18415
18416  if test "$curl_cv_have_def___TINYC__" = "yes"; then
18417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18418printf "%s\n" "yes" >&6; }
18419    compiler_id="TINY_C"
18420    flags_dbg_yes="-g"
18421    flags_opt_all=""
18422    flags_opt_yes=""
18423    flags_opt_off=""
18424  else
18425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426printf "%s\n" "no" >&6; }
18427  fi
18428
18429  #
18430  if test "$compiler_id" = "unknown"; then
18431  cat <<_EOF 1>&2
18432***
18433*** Warning: This configure script does not have information about the
18434*** compiler you are using, relative to the flags required to enable or
18435*** disable generation of debug info, optimization options or warnings.
18436***
18437*** Whatever settings are present in CFLAGS will be used for this run.
18438***
18439*** If you wish to help the curl project to better support your compiler
18440*** you can report this and the required info on the libcurl development
18441*** mailing list: https://lists.haxx.selistinfo/curl-library/
18442***
18443_EOF
18444  fi
18445
18446
18447squeeze() {
18448  _sqz_result=""
18449  eval _sqz_input=\$$1
18450  for _sqz_token in $_sqz_input; do
18451    if test -z "$_sqz_result"; then
18452      _sqz_result="$_sqz_token"
18453    else
18454      _sqz_result="$_sqz_result $_sqz_token"
18455    fi
18456  done
18457  eval $1=\$_sqz_result
18458  return 0
18459}
18460
18461
18462      #
18463  if test "$compiler_id" != "unknown"; then
18464    #
18465    tmp_save_CPPFLAGS="$CPPFLAGS"
18466    tmp_save_CFLAGS="$CFLAGS"
18467    tmp_CPPFLAGS=""
18468    tmp_CFLAGS=""
18469    #
18470    case "$compiler_id" in
18471        #
18472      CLANG)
18473        #
18474                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18475                        tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
18476        ;;
18477        #
18478      DEC_C)
18479        #
18480                tmp_CFLAGS="$tmp_CFLAGS -std1"
18481                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18482                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18483                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18484        ;;
18485        #
18486      GNU_C)
18487        #
18488                        if test "$compiler_num" -ge "295"; then
18489          tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18490        fi
18491        ;;
18492        #
18493      HP_UX_C)
18494        #
18495                tmp_CFLAGS="$tmp_CFLAGS -z"
18496                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18497        ;;
18498        #
18499      IBM_C)
18500        #
18501                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18502                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18503                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18504        ;;
18505        #
18506      INTEL_UNIX_C)
18507        #
18508                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18509                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18510                                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18511        ;;
18512        #
18513      INTEL_WINDOWS_C)
18514        #
18515                tmp_CFLAGS="$tmp_CFLAGS"
18516        ;;
18517        #
18518      LCC)
18519        #
18520                tmp_CFLAGS="$tmp_CFLAGS -n"
18521        ;;
18522        #
18523      SGI_MIPS_C)
18524        #
18525                tmp_CFLAGS="$tmp_CFLAGS"
18526        ;;
18527        #
18528      SGI_MIPSPRO_C)
18529        #
18530                tmp_CFLAGS="$tmp_CFLAGS"
18531        ;;
18532        #
18533      SUNPRO_C)
18534        #
18535                tmp_CFLAGS="$tmp_CFLAGS"
18536        ;;
18537        #
18538      TINY_C)
18539        #
18540                tmp_CFLAGS="$tmp_CFLAGS"
18541        ;;
18542        #
18543    esac
18544    #
18545    squeeze tmp_CPPFLAGS
18546    squeeze tmp_CFLAGS
18547    #
18548    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18549      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18550printf %s "checking if compiler accepts some basic options... " >&6; }
18551      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18552      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18553      squeeze CPPFLAGS
18554      squeeze CFLAGS
18555
18556    tmp_compiler_works="unknown"
18557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558/* end confdefs.h.  */
18559
18560
18561
18562int main (void)
18563{
18564
18565      int i = 1;
18566      return i;
18567
18568 ;
18569 return 0;
18570}
18571
18572_ACEOF
18573if ac_fn_c_try_compile "$LINENO"
18574then :
18575
18576    tmp_compiler_works="yes"
18577
18578else $as_nop
18579
18580    tmp_compiler_works="no"
18581    echo " " >&6
18582    sed 's/^/cc-fail: /' conftest.err >&6
18583    echo " " >&6
18584
18585fi
18586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18587    if test "$tmp_compiler_works" = "yes"; then
18588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589/* end confdefs.h.  */
18590
18591
18592
18593int main (void)
18594{
18595
18596        int i = 1;
18597        return i;
18598
18599 ;
18600 return 0;
18601}
18602
18603_ACEOF
18604if ac_fn_c_try_link "$LINENO"
18605then :
18606
18607      tmp_compiler_works="yes"
18608
18609else $as_nop
18610
18611      tmp_compiler_works="no"
18612      echo " " >&6
18613      sed 's/^/link-fail: /' conftest.err >&6
18614      echo " " >&6
18615
18616fi
18617rm -f core conftest.err conftest.$ac_objext conftest.beam \
18618    conftest$ac_exeext conftest.$ac_ext
18619  fi
18620    if test "x$cross_compiling" != "xyes" &&
18621    test "$tmp_compiler_works" = "yes"; then
18622
18623   case $host_os in
18624     darwin*)
18625      if test "$cross_compiling" = yes
18626then :
18627  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18628printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18629as_fn_error $? "cannot run test program while cross compiling
18630See \`config.log' for more details" "$LINENO" 5; }
18631else $as_nop
18632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633/* end confdefs.h.  */
18634
18635
18636#       ifdef __STDC__
18637#         include <stdlib.h>
18638#       endif
18639
18640int main (void)
18641{
18642
18643        int i = 0;
18644        exit(i);
18645
18646 ;
18647 return 0;
18648}
18649
18650_ACEOF
18651if ac_fn_c_try_run "$LINENO"
18652then :
18653  tmp_compiler_works="yes"
18654
18655else $as_nop
18656  tmp_compiler_works="no"
18657      echo " " >&6
18658      echo "run-fail: test program exited with status $ac_status" >&6
18659      echo " " >&6
18660
18661fi
18662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18663  conftest.$ac_objext conftest.beam conftest.$ac_ext
18664fi
18665
18666     ;;
18667     *)
18668      old=$LD_LIBRARY_PATH
18669      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18670      export LD_LIBRARY_PATH
18671      if test "$cross_compiling" = yes
18672then :
18673  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18675as_fn_error $? "cannot run test program while cross compiling
18676See \`config.log' for more details" "$LINENO" 5; }
18677else $as_nop
18678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680
18681
18682#       ifdef __STDC__
18683#         include <stdlib.h>
18684#       endif
18685
18686int main (void)
18687{
18688
18689        int i = 0;
18690        exit(i);
18691
18692 ;
18693 return 0;
18694}
18695
18696_ACEOF
18697if ac_fn_c_try_run "$LINENO"
18698then :
18699  tmp_compiler_works="yes"
18700
18701else $as_nop
18702  tmp_compiler_works="no"
18703      echo " " >&6
18704      echo "run-fail: test program exited with status $ac_status" >&6
18705      echo " " >&6
18706
18707fi
18708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18709  conftest.$ac_objext conftest.beam conftest.$ac_ext
18710fi
18711
18712      LD_LIBRARY_PATH=$old # restore
18713     ;;
18714   esac
18715
18716  fi
18717    if test "$tmp_compiler_works" = "yes"; then
18718
18719        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720printf "%s\n" "yes" >&6; }
18721        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18722printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18723
18724  else
18725
18726        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18727printf "%s\n" "no" >&6; }
18728        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18729printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18730                CPPFLAGS="$tmp_save_CPPFLAGS"
18731        CFLAGS="$tmp_save_CFLAGS"
18732
18733  fi
18734
18735    fi
18736    #
18737  fi
18738
18739
18740        #
18741  if test "$compiler_id" != "unknown"; then
18742    #
18743    tmp_save_CFLAGS="$CFLAGS"
18744    tmp_save_CPPFLAGS="$CPPFLAGS"
18745    #
18746    tmp_options=""
18747    tmp_CFLAGS="$CFLAGS"
18748    tmp_CPPFLAGS="$CPPFLAGS"
18749    #
18750    if test "$want_debug" = "yes"; then
18751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18752printf %s "checking if compiler accepts debug enabling options... " >&6; }
18753      tmp_options="$flags_dbg_yes"
18754    fi
18755    #
18756    if test "$flags_prefer_cppflags" = "yes"; then
18757      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18758      CFLAGS="$tmp_CFLAGS"
18759    else
18760      CPPFLAGS="$tmp_CPPFLAGS"
18761      CFLAGS="$tmp_CFLAGS $tmp_options"
18762    fi
18763    squeeze CPPFLAGS
18764    squeeze CFLAGS
18765  fi
18766
18767
18768        #
18769  if test "$compiler_id" != "unknown"; then
18770    #
18771    tmp_save_CFLAGS="$CFLAGS"
18772    tmp_save_CPPFLAGS="$CPPFLAGS"
18773    #
18774    tmp_options=""
18775    tmp_CFLAGS="$CFLAGS"
18776    tmp_CPPFLAGS="$CPPFLAGS"
18777    honor_optimize_option="yes"
18778    #
18779                        #
18780    if test "$want_optimize" = "assume_no" ||
18781       test "$want_optimize" = "assume_yes"; then
18782      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18783printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18784
18785
18786  ac_var_match_word="no"
18787  for word1 in $tmp_CFLAGS; do
18788    for word2 in $flags_opt_all; do
18789      if test "$word1" = "$word2"; then
18790        ac_var_match_word="yes"
18791      fi
18792    done
18793  done
18794
18795  if test "$ac_var_match_word" = "yes"; then
18796
18797        honor_optimize_option="no"
18798
18799
18800  fi
18801
18802
18803
18804  ac_var_match_word="no"
18805  for word1 in $tmp_CPPFLAGS; do
18806    for word2 in $flags_opt_all; do
18807      if test "$word1" = "$word2"; then
18808        ac_var_match_word="yes"
18809      fi
18810    done
18811  done
18812
18813  if test "$ac_var_match_word" = "yes"; then
18814
18815        honor_optimize_option="no"
18816
18817
18818  fi
18819
18820      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18821printf "%s\n" "$honor_optimize_option" >&6; }
18822      if test "$honor_optimize_option" = "yes"; then
18823        if test "$want_optimize" = "assume_yes"; then
18824          want_optimize="yes"
18825        fi
18826        if test "$want_optimize" = "assume_no"; then
18827          want_optimize="no"
18828        fi
18829      fi
18830    fi
18831    #
18832    if test "$honor_optimize_option" = "yes"; then
18833
18834    ac_var_stripped=""
18835  for word1 in $tmp_CFLAGS; do
18836    ac_var_strip_word="no"
18837    for word2 in $flags_opt_all; do
18838      if test "$word1" = "$word2"; then
18839        ac_var_strip_word="yes"
18840      fi
18841    done
18842    if test "$ac_var_strip_word" = "no"; then
18843      ac_var_stripped="$ac_var_stripped $word1"
18844    fi
18845  done
18846    tmp_CFLAGS="$ac_var_stripped"
18847  squeeze tmp_CFLAGS
18848
18849
18850    ac_var_stripped=""
18851  for word1 in $tmp_CPPFLAGS; do
18852    ac_var_strip_word="no"
18853    for word2 in $flags_opt_all; do
18854      if test "$word1" = "$word2"; then
18855        ac_var_strip_word="yes"
18856      fi
18857    done
18858    if test "$ac_var_strip_word" = "no"; then
18859      ac_var_stripped="$ac_var_stripped $word1"
18860    fi
18861  done
18862    tmp_CPPFLAGS="$ac_var_stripped"
18863  squeeze tmp_CPPFLAGS
18864
18865      if test "$want_optimize" = "yes"; then
18866        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18867printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18868        tmp_options="$flags_opt_yes"
18869      fi
18870      if test "$want_optimize" = "no"; then
18871        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18872printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18873        tmp_options="$flags_opt_off"
18874      fi
18875      if test "$flags_prefer_cppflags" = "yes"; then
18876        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18877        CFLAGS="$tmp_CFLAGS"
18878      else
18879        CPPFLAGS="$tmp_CPPFLAGS"
18880        CFLAGS="$tmp_CFLAGS $tmp_options"
18881      fi
18882      squeeze CPPFLAGS
18883      squeeze CFLAGS
18884
18885    tmp_compiler_works="unknown"
18886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888
18889
18890
18891int main (void)
18892{
18893
18894      int i = 1;
18895      return i;
18896
18897 ;
18898 return 0;
18899}
18900
18901_ACEOF
18902if ac_fn_c_try_compile "$LINENO"
18903then :
18904
18905    tmp_compiler_works="yes"
18906
18907else $as_nop
18908
18909    tmp_compiler_works="no"
18910    echo " " >&6
18911    sed 's/^/cc-fail: /' conftest.err >&6
18912    echo " " >&6
18913
18914fi
18915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18916    if test "$tmp_compiler_works" = "yes"; then
18917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h.  */
18919
18920
18921
18922int main (void)
18923{
18924
18925        int i = 1;
18926        return i;
18927
18928 ;
18929 return 0;
18930}
18931
18932_ACEOF
18933if ac_fn_c_try_link "$LINENO"
18934then :
18935
18936      tmp_compiler_works="yes"
18937
18938else $as_nop
18939
18940      tmp_compiler_works="no"
18941      echo " " >&6
18942      sed 's/^/link-fail: /' conftest.err >&6
18943      echo " " >&6
18944
18945fi
18946rm -f core conftest.err conftest.$ac_objext conftest.beam \
18947    conftest$ac_exeext conftest.$ac_ext
18948  fi
18949    if test "x$cross_compiling" != "xyes" &&
18950    test "$tmp_compiler_works" = "yes"; then
18951
18952   case $host_os in
18953     darwin*)
18954      if test "$cross_compiling" = yes
18955then :
18956  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18957printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18958as_fn_error $? "cannot run test program while cross compiling
18959See \`config.log' for more details" "$LINENO" 5; }
18960else $as_nop
18961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962/* end confdefs.h.  */
18963
18964
18965#       ifdef __STDC__
18966#         include <stdlib.h>
18967#       endif
18968
18969int main (void)
18970{
18971
18972        int i = 0;
18973        exit(i);
18974
18975 ;
18976 return 0;
18977}
18978
18979_ACEOF
18980if ac_fn_c_try_run "$LINENO"
18981then :
18982  tmp_compiler_works="yes"
18983
18984else $as_nop
18985  tmp_compiler_works="no"
18986      echo " " >&6
18987      echo "run-fail: test program exited with status $ac_status" >&6
18988      echo " " >&6
18989
18990fi
18991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18992  conftest.$ac_objext conftest.beam conftest.$ac_ext
18993fi
18994
18995     ;;
18996     *)
18997      old=$LD_LIBRARY_PATH
18998      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18999      export LD_LIBRARY_PATH
19000      if test "$cross_compiling" = yes
19001then :
19002  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19003printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19004as_fn_error $? "cannot run test program while cross compiling
19005See \`config.log' for more details" "$LINENO" 5; }
19006else $as_nop
19007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008/* end confdefs.h.  */
19009
19010
19011#       ifdef __STDC__
19012#         include <stdlib.h>
19013#       endif
19014
19015int main (void)
19016{
19017
19018        int i = 0;
19019        exit(i);
19020
19021 ;
19022 return 0;
19023}
19024
19025_ACEOF
19026if ac_fn_c_try_run "$LINENO"
19027then :
19028  tmp_compiler_works="yes"
19029
19030else $as_nop
19031  tmp_compiler_works="no"
19032      echo " " >&6
19033      echo "run-fail: test program exited with status $ac_status" >&6
19034      echo " " >&6
19035
19036fi
19037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19038  conftest.$ac_objext conftest.beam conftest.$ac_ext
19039fi
19040
19041      LD_LIBRARY_PATH=$old # restore
19042     ;;
19043   esac
19044
19045  fi
19046    if test "$tmp_compiler_works" = "yes"; then
19047
19048        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19049printf "%s\n" "yes" >&6; }
19050        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19051printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19052
19053  else
19054
19055        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056printf "%s\n" "no" >&6; }
19057        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19058printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19059                CPPFLAGS="$tmp_save_CPPFLAGS"
19060        CFLAGS="$tmp_save_CFLAGS"
19061
19062  fi
19063
19064    fi
19065    #
19066  fi
19067
19068
19069        #
19070  if test "$compiler_id" != "unknown"; then
19071    #
19072    tmp_save_CPPFLAGS="$CPPFLAGS"
19073    tmp_save_CFLAGS="$CFLAGS"
19074    tmp_CPPFLAGS=""
19075    tmp_CFLAGS=""
19076    #
19077    case "$compiler_id" in
19078        #
19079      CLANG)
19080        #
19081        if test "$want_warnings" = "yes"; then
19082          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19083
19084    ac_var_added_warnings=""
19085  for warning in all extra; do
19086
19087  ac_var_match_word="no"
19088  for word1 in $CFLAGS; do
19089    for word2 in -Wno-$warning -W$warning; do
19090      if test "$word1" = "$word2"; then
19091        ac_var_match_word="yes"
19092      fi
19093    done
19094  done
19095
19096    if test "$ac_var_match_word" = "no"; then
19097      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19098    fi
19099  done
19100    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19101  squeeze tmp_CFLAGS
19102
19103
19104    ac_var_added_warnings=""
19105  for warning in pointer-arith write-strings; do
19106
19107  ac_var_match_word="no"
19108  for word1 in $CFLAGS; do
19109    for word2 in -Wno-$warning -W$warning; do
19110      if test "$word1" = "$word2"; then
19111        ac_var_match_word="yes"
19112      fi
19113    done
19114  done
19115
19116    if test "$ac_var_match_word" = "no"; then
19117      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19118    fi
19119  done
19120    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19121  squeeze tmp_CFLAGS
19122
19123
19124    ac_var_added_warnings=""
19125  for warning in shadow; do
19126
19127  ac_var_match_word="no"
19128  for word1 in $CFLAGS; do
19129    for word2 in -Wno-$warning -W$warning; do
19130      if test "$word1" = "$word2"; then
19131        ac_var_match_word="yes"
19132      fi
19133    done
19134  done
19135
19136    if test "$ac_var_match_word" = "no"; then
19137      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19138    fi
19139  done
19140    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19141  squeeze tmp_CFLAGS
19142
19143
19144    ac_var_added_warnings=""
19145  for warning in inline nested-externs; do
19146
19147  ac_var_match_word="no"
19148  for word1 in $CFLAGS; do
19149    for word2 in -Wno-$warning -W$warning; do
19150      if test "$word1" = "$word2"; then
19151        ac_var_match_word="yes"
19152      fi
19153    done
19154  done
19155
19156    if test "$ac_var_match_word" = "no"; then
19157      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19158    fi
19159  done
19160    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19161  squeeze tmp_CFLAGS
19162
19163
19164    ac_var_added_warnings=""
19165  for warning in missing-declarations; do
19166
19167  ac_var_match_word="no"
19168  for word1 in $CFLAGS; do
19169    for word2 in -Wno-$warning -W$warning; do
19170      if test "$word1" = "$word2"; then
19171        ac_var_match_word="yes"
19172      fi
19173    done
19174  done
19175
19176    if test "$ac_var_match_word" = "no"; then
19177      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19178    fi
19179  done
19180    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19181  squeeze tmp_CFLAGS
19182
19183
19184    ac_var_added_warnings=""
19185  for warning in missing-prototypes; do
19186
19187  ac_var_match_word="no"
19188  for word1 in $CFLAGS; do
19189    for word2 in -Wno-$warning -W$warning; do
19190      if test "$word1" = "$word2"; then
19191        ac_var_match_word="yes"
19192      fi
19193    done
19194  done
19195
19196    if test "$ac_var_match_word" = "no"; then
19197      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19198    fi
19199  done
19200    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19201  squeeze tmp_CFLAGS
19202
19203          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19204
19205    ac_var_added_warnings=""
19206  for warning in float-equal; do
19207
19208  ac_var_match_word="no"
19209  for word1 in $CFLAGS; do
19210    for word2 in -Wno-$warning -W$warning; do
19211      if test "$word1" = "$word2"; then
19212        ac_var_match_word="yes"
19213      fi
19214    done
19215  done
19216
19217    if test "$ac_var_match_word" = "no"; then
19218      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19219    fi
19220  done
19221    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19222  squeeze tmp_CFLAGS
19223
19224
19225    ac_var_added_warnings=""
19226  for warning in no-multichar sign-compare; do
19227
19228  ac_var_match_word="no"
19229  for word1 in $CFLAGS; do
19230    for word2 in -Wno-$warning -W$warning; do
19231      if test "$word1" = "$word2"; then
19232        ac_var_match_word="yes"
19233      fi
19234    done
19235  done
19236
19237    if test "$ac_var_match_word" = "no"; then
19238      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19239    fi
19240  done
19241    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19242  squeeze tmp_CFLAGS
19243
19244
19245    ac_var_added_warnings=""
19246  for warning in undef; do
19247
19248  ac_var_match_word="no"
19249  for word1 in $CFLAGS; do
19250    for word2 in -Wno-$warning -W$warning; do
19251      if test "$word1" = "$word2"; then
19252        ac_var_match_word="yes"
19253      fi
19254    done
19255  done
19256
19257    if test "$ac_var_match_word" = "no"; then
19258      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19259    fi
19260  done
19261    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19262  squeeze tmp_CFLAGS
19263
19264          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19265
19266    ac_var_added_warnings=""
19267  for warning in endif-labels strict-prototypes; do
19268
19269  ac_var_match_word="no"
19270  for word1 in $CFLAGS; do
19271    for word2 in -Wno-$warning -W$warning; do
19272      if test "$word1" = "$word2"; then
19273        ac_var_match_word="yes"
19274      fi
19275    done
19276  done
19277
19278    if test "$ac_var_match_word" = "no"; then
19279      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19280    fi
19281  done
19282    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19283  squeeze tmp_CFLAGS
19284
19285
19286    ac_var_added_warnings=""
19287  for warning in declaration-after-statement; do
19288
19289  ac_var_match_word="no"
19290  for word1 in $CFLAGS; do
19291    for word2 in -Wno-$warning -W$warning; do
19292      if test "$word1" = "$word2"; then
19293        ac_var_match_word="yes"
19294      fi
19295    done
19296  done
19297
19298    if test "$ac_var_match_word" = "no"; then
19299      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19300    fi
19301  done
19302    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19303  squeeze tmp_CFLAGS
19304
19305
19306    ac_var_added_warnings=""
19307  for warning in cast-align; do
19308
19309  ac_var_match_word="no"
19310  for word1 in $CFLAGS; do
19311    for word2 in -Wno-$warning -W$warning; do
19312      if test "$word1" = "$word2"; then
19313        ac_var_match_word="yes"
19314      fi
19315    done
19316  done
19317
19318    if test "$ac_var_match_word" = "no"; then
19319      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19320    fi
19321  done
19322    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19323  squeeze tmp_CFLAGS
19324
19325          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19326
19327    ac_var_added_warnings=""
19328  for warning in shorten-64-to-32; do
19329
19330  ac_var_match_word="no"
19331  for word1 in $CFLAGS; do
19332    for word2 in -Wno-$warning -W$warning; do
19333      if test "$word1" = "$word2"; then
19334        ac_var_match_word="yes"
19335      fi
19336    done
19337  done
19338
19339    if test "$ac_var_match_word" = "no"; then
19340      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19341    fi
19342  done
19343    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19344  squeeze tmp_CFLAGS
19345
19346          #
19347                    if test "$compiler_num" -ge "101"; then
19348
19349    ac_var_added_warnings=""
19350  for warning in unused; do
19351
19352  ac_var_match_word="no"
19353  for word1 in $CFLAGS; do
19354    for word2 in -Wno-$warning -W$warning; do
19355      if test "$word1" = "$word2"; then
19356        ac_var_match_word="yes"
19357      fi
19358    done
19359  done
19360
19361    if test "$ac_var_match_word" = "no"; then
19362      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19363    fi
19364  done
19365    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19366  squeeze tmp_CFLAGS
19367
19368          fi
19369          #
19370                    if test "$compiler_num" -ge "208"; then
19371
19372    ac_var_added_warnings=""
19373  for warning in vla; do
19374
19375  ac_var_match_word="no"
19376  for word1 in $CFLAGS; do
19377    for word2 in -Wno-$warning -W$warning; do
19378      if test "$word1" = "$word2"; then
19379        ac_var_match_word="yes"
19380      fi
19381    done
19382  done
19383
19384    if test "$ac_var_match_word" = "no"; then
19385      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19386    fi
19387  done
19388    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19389  squeeze tmp_CFLAGS
19390
19391          fi
19392          #
19393                    if test "$compiler_num" -ge "209"; then
19394
19395    ac_var_added_warnings=""
19396  for warning in shift-sign-overflow; do
19397
19398  ac_var_match_word="no"
19399  for word1 in $CFLAGS; do
19400    for word2 in -Wno-$warning -W$warning; do
19401      if test "$word1" = "$word2"; then
19402        ac_var_match_word="yes"
19403      fi
19404    done
19405  done
19406
19407    if test "$ac_var_match_word" = "no"; then
19408      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19409    fi
19410  done
19411    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19412  squeeze tmp_CFLAGS
19413
19414          fi
19415          #
19416                    if test "$compiler_num" -ge "302"; then
19417            case $host_os in
19418            cygwin* | mingw*)
19419                                          ;;
19420            *)
19421
19422    ac_var_added_warnings=""
19423  for warning in missing-variable-declarations; do
19424
19425  ac_var_match_word="no"
19426  for word1 in $CFLAGS; do
19427    for word2 in -Wno-$warning -W$warning; do
19428      if test "$word1" = "$word2"; then
19429        ac_var_match_word="yes"
19430      fi
19431    done
19432  done
19433
19434    if test "$ac_var_match_word" = "no"; then
19435      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19436    fi
19437  done
19438    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19439  squeeze tmp_CFLAGS
19440
19441              ;;
19442            esac
19443          fi
19444          #
19445                    if test "$compiler_num" -ge "306"; then
19446
19447    ac_var_added_warnings=""
19448  for warning in double-promotion; do
19449
19450  ac_var_match_word="no"
19451  for word1 in $CFLAGS; do
19452    for word2 in -Wno-$warning -W$warning; do
19453      if test "$word1" = "$word2"; then
19454        ac_var_match_word="yes"
19455      fi
19456    done
19457  done
19458
19459    if test "$ac_var_match_word" = "no"; then
19460      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19461    fi
19462  done
19463    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19464  squeeze tmp_CFLAGS
19465
19466          fi
19467          #
19468                    if test "$compiler_num" -ge "309"; then
19469
19470    ac_var_added_warnings=""
19471  for warning in comma; do
19472
19473  ac_var_match_word="no"
19474  for word1 in $CFLAGS; do
19475    for word2 in -Wno-$warning -W$warning; do
19476      if test "$word1" = "$word2"; then
19477        ac_var_match_word="yes"
19478      fi
19479    done
19480  done
19481
19482    if test "$ac_var_match_word" = "no"; then
19483      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19484    fi
19485  done
19486    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19487  squeeze tmp_CFLAGS
19488
19489            # avoid the varargs warning, fixed in 4.0
19490            # https://bugs.llvm.org/show_bug.cgi?id=29140
19491            if test "$compiler_num" -lt "400"; then
19492              tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19493            fi
19494          fi
19495                    if test "$compiler_num" -ge "700"; then
19496
19497    ac_var_added_warnings=""
19498  for warning in assign-enum; do
19499
19500  ac_var_match_word="no"
19501  for word1 in $CFLAGS; do
19502    for word2 in -Wno-$warning -W$warning; do
19503      if test "$word1" = "$word2"; then
19504        ac_var_match_word="yes"
19505      fi
19506    done
19507  done
19508
19509    if test "$ac_var_match_word" = "no"; then
19510      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19511    fi
19512  done
19513    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19514  squeeze tmp_CFLAGS
19515
19516
19517    ac_var_added_warnings=""
19518  for warning in extra-semi-stmt; do
19519
19520  ac_var_match_word="no"
19521  for word1 in $CFLAGS; do
19522    for word2 in -Wno-$warning -W$warning; do
19523      if test "$word1" = "$word2"; then
19524        ac_var_match_word="yes"
19525      fi
19526    done
19527  done
19528
19529    if test "$ac_var_match_word" = "no"; then
19530      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19531    fi
19532  done
19533    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19534  squeeze tmp_CFLAGS
19535
19536          fi
19537        fi
19538        ;;
19539        #
19540      DEC_C)
19541        #
19542        if test "$want_warnings" = "yes"; then
19543                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19544        fi
19545        ;;
19546        #
19547      GNU_C)
19548        #
19549        if test "$want_warnings" = "yes"; then
19550          tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
19551          #
19552                              if test "x$cross_compiling" != "xyes" ||
19553            test "$compiler_num" -ge "300"; then
19554            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19555          fi
19556          #
19557
19558    ac_var_added_warnings=""
19559  for warning in all; do
19560
19561  ac_var_match_word="no"
19562  for word1 in $CFLAGS; do
19563    for word2 in -Wno-$warning -W$warning; do
19564      if test "$word1" = "$word2"; then
19565        ac_var_match_word="yes"
19566      fi
19567    done
19568  done
19569
19570    if test "$ac_var_match_word" = "no"; then
19571      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19572    fi
19573  done
19574    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19575  squeeze tmp_CFLAGS
19576
19577          tmp_CFLAGS="$tmp_CFLAGS -W"
19578          #
19579                    if test "$compiler_num" -ge "104"; then
19580
19581    ac_var_added_warnings=""
19582  for warning in pointer-arith write-strings; do
19583
19584  ac_var_match_word="no"
19585  for word1 in $CFLAGS; do
19586    for word2 in -Wno-$warning -W$warning; do
19587      if test "$word1" = "$word2"; then
19588        ac_var_match_word="yes"
19589      fi
19590    done
19591  done
19592
19593    if test "$ac_var_match_word" = "no"; then
19594      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19595    fi
19596  done
19597    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19598  squeeze tmp_CFLAGS
19599
19600                        if test "x$cross_compiling" != "xyes" ||
19601              test "$compiler_num" -ge "300"; then
19602
19603    ac_var_added_warnings=""
19604  for warning in unused shadow; do
19605
19606  ac_var_match_word="no"
19607  for word1 in $CFLAGS; do
19608    for word2 in -Wno-$warning -W$warning; do
19609      if test "$word1" = "$word2"; then
19610        ac_var_match_word="yes"
19611      fi
19612    done
19613  done
19614
19615    if test "$ac_var_match_word" = "no"; then
19616      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19617    fi
19618  done
19619    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19620  squeeze tmp_CFLAGS
19621
19622            fi
19623          fi
19624          #
19625                    if test "$compiler_num" -ge "207"; then
19626
19627    ac_var_added_warnings=""
19628  for warning in inline nested-externs; do
19629
19630  ac_var_match_word="no"
19631  for word1 in $CFLAGS; do
19632    for word2 in -Wno-$warning -W$warning; do
19633      if test "$word1" = "$word2"; then
19634        ac_var_match_word="yes"
19635      fi
19636    done
19637  done
19638
19639    if test "$ac_var_match_word" = "no"; then
19640      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19641    fi
19642  done
19643    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19644  squeeze tmp_CFLAGS
19645
19646                        if test "x$cross_compiling" != "xyes" ||
19647              test "$compiler_num" -ge "300"; then
19648
19649    ac_var_added_warnings=""
19650  for warning in missing-declarations; do
19651
19652  ac_var_match_word="no"
19653  for word1 in $CFLAGS; do
19654    for word2 in -Wno-$warning -W$warning; do
19655      if test "$word1" = "$word2"; then
19656        ac_var_match_word="yes"
19657      fi
19658    done
19659  done
19660
19661    if test "$ac_var_match_word" = "no"; then
19662      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19663    fi
19664  done
19665    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19666  squeeze tmp_CFLAGS
19667
19668
19669    ac_var_added_warnings=""
19670  for warning in missing-prototypes; do
19671
19672  ac_var_match_word="no"
19673  for word1 in $CFLAGS; do
19674    for word2 in -Wno-$warning -W$warning; do
19675      if test "$word1" = "$word2"; then
19676        ac_var_match_word="yes"
19677      fi
19678    done
19679  done
19680
19681    if test "$ac_var_match_word" = "no"; then
19682      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19683    fi
19684  done
19685    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19686  squeeze tmp_CFLAGS
19687
19688            fi
19689          fi
19690          #
19691                    if test "$compiler_num" -ge "295"; then
19692            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19693
19694    ac_var_added_warnings=""
19695  for warning in bad-function-cast; do
19696
19697  ac_var_match_word="no"
19698  for word1 in $CFLAGS; do
19699    for word2 in -Wno-$warning -W$warning; do
19700      if test "$word1" = "$word2"; then
19701        ac_var_match_word="yes"
19702      fi
19703    done
19704  done
19705
19706    if test "$ac_var_match_word" = "no"; then
19707      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19708    fi
19709  done
19710    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19711  squeeze tmp_CFLAGS
19712
19713          fi
19714          #
19715                    if test "$compiler_num" -ge "296"; then
19716
19717    ac_var_added_warnings=""
19718  for warning in float-equal; do
19719
19720  ac_var_match_word="no"
19721  for word1 in $CFLAGS; do
19722    for word2 in -Wno-$warning -W$warning; do
19723      if test "$word1" = "$word2"; then
19724        ac_var_match_word="yes"
19725      fi
19726    done
19727  done
19728
19729    if test "$ac_var_match_word" = "no"; then
19730      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19731    fi
19732  done
19733    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19734  squeeze tmp_CFLAGS
19735
19736            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19737
19738    ac_var_added_warnings=""
19739  for warning in sign-compare; do
19740
19741  ac_var_match_word="no"
19742  for word1 in $CFLAGS; do
19743    for word2 in -Wno-$warning -W$warning; do
19744      if test "$word1" = "$word2"; then
19745        ac_var_match_word="yes"
19746      fi
19747    done
19748  done
19749
19750    if test "$ac_var_match_word" = "no"; then
19751      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19752    fi
19753  done
19754    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19755  squeeze tmp_CFLAGS
19756
19757
19758    ac_var_added_warnings=""
19759  for warning in undef; 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          fi
19778          #
19779                    if test "$compiler_num" -ge "297"; then
19780            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19781          fi
19782          #
19783                    if test "$compiler_num" -ge "300"; then
19784                                                            tmp_CFLAGS="$tmp_CFLAGS"
19785          fi
19786          #
19787                    if test "$compiler_num" -ge "303"; then
19788
19789    ac_var_added_warnings=""
19790  for warning in endif-labels strict-prototypes; do
19791
19792  ac_var_match_word="no"
19793  for word1 in $CFLAGS; do
19794    for word2 in -Wno-$warning -W$warning; do
19795      if test "$word1" = "$word2"; then
19796        ac_var_match_word="yes"
19797      fi
19798    done
19799  done
19800
19801    if test "$ac_var_match_word" = "no"; then
19802      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19803    fi
19804  done
19805    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19806  squeeze tmp_CFLAGS
19807
19808          fi
19809          #
19810                    if test "$compiler_num" -ge "304"; then
19811
19812    ac_var_added_warnings=""
19813  for warning in declaration-after-statement; do
19814
19815  ac_var_match_word="no"
19816  for word1 in $CFLAGS; do
19817    for word2 in -Wno-$warning -W$warning; do
19818      if test "$word1" = "$word2"; then
19819        ac_var_match_word="yes"
19820      fi
19821    done
19822  done
19823
19824    if test "$ac_var_match_word" = "no"; then
19825      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19826    fi
19827  done
19828    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19829  squeeze tmp_CFLAGS
19830
19831
19832    ac_var_added_warnings=""
19833  for warning in old-style-definition; do
19834
19835  ac_var_match_word="no"
19836  for word1 in $CFLAGS; do
19837    for word2 in -Wno-$warning -W$warning; do
19838      if test "$word1" = "$word2"; then
19839        ac_var_match_word="yes"
19840      fi
19841    done
19842  done
19843
19844    if test "$ac_var_match_word" = "no"; then
19845      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19846    fi
19847  done
19848    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19849  squeeze tmp_CFLAGS
19850
19851          fi
19852          #
19853                    if test "$compiler_num" -ge "400"; then
19854            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19855          fi
19856          #
19857                    if test "$compiler_num" -ge "402"; then
19858
19859    ac_var_added_warnings=""
19860  for warning in cast-align; do
19861
19862  ac_var_match_word="no"
19863  for word1 in $CFLAGS; do
19864    for word2 in -Wno-$warning -W$warning; do
19865      if test "$word1" = "$word2"; then
19866        ac_var_match_word="yes"
19867      fi
19868    done
19869  done
19870
19871    if test "$ac_var_match_word" = "no"; then
19872      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19873    fi
19874  done
19875    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19876  squeeze tmp_CFLAGS
19877
19878          fi
19879          #
19880                    if test "$compiler_num" -ge "403"; then
19881
19882    ac_var_added_warnings=""
19883  for warning in type-limits old-style-declaration; do
19884
19885  ac_var_match_word="no"
19886  for word1 in $CFLAGS; do
19887    for word2 in -Wno-$warning -W$warning; do
19888      if test "$word1" = "$word2"; then
19889        ac_var_match_word="yes"
19890      fi
19891    done
19892  done
19893
19894    if test "$ac_var_match_word" = "no"; then
19895      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19896    fi
19897  done
19898    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19899  squeeze tmp_CFLAGS
19900
19901
19902    ac_var_added_warnings=""
19903  for warning in missing-parameter-type empty-body; do
19904
19905  ac_var_match_word="no"
19906  for word1 in $CFLAGS; do
19907    for word2 in -Wno-$warning -W$warning; do
19908      if test "$word1" = "$word2"; then
19909        ac_var_match_word="yes"
19910      fi
19911    done
19912  done
19913
19914    if test "$ac_var_match_word" = "no"; then
19915      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19916    fi
19917  done
19918    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19919  squeeze tmp_CFLAGS
19920
19921
19922    ac_var_added_warnings=""
19923  for warning in clobbered ignored-qualifiers; do
19924
19925  ac_var_match_word="no"
19926  for word1 in $CFLAGS; do
19927    for word2 in -Wno-$warning -W$warning; do
19928      if test "$word1" = "$word2"; then
19929        ac_var_match_word="yes"
19930      fi
19931    done
19932  done
19933
19934    if test "$ac_var_match_word" = "no"; then
19935      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19936    fi
19937  done
19938    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19939  squeeze tmp_CFLAGS
19940
19941
19942    ac_var_added_warnings=""
19943  for warning in conversion; do
19944
19945  ac_var_match_word="no"
19946  for word1 in $CFLAGS; do
19947    for word2 in -Wno-$warning -W$warning; do
19948      if test "$word1" = "$word2"; then
19949        ac_var_match_word="yes"
19950      fi
19951    done
19952  done
19953
19954    if test "$ac_var_match_word" = "no"; then
19955      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19956    fi
19957  done
19958    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19959  squeeze tmp_CFLAGS
19960
19961            tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19962
19963    ac_var_added_warnings=""
19964  for warning in vla; do
19965
19966  ac_var_match_word="no"
19967  for word1 in $CFLAGS; do
19968    for word2 in -Wno-$warning -W$warning; do
19969      if test "$word1" = "$word2"; then
19970        ac_var_match_word="yes"
19971      fi
19972    done
19973  done
19974
19975    if test "$ac_var_match_word" = "no"; then
19976      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19977    fi
19978  done
19979    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19980  squeeze tmp_CFLAGS
19981
19982                        tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19983          fi
19984          #
19985                    if test "$compiler_num" -ge "405"; then
19986                        if test "$curl_cv_have_def__WIN32" = "yes"; then
19987              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19988            fi
19989          fi
19990          #
19991                    if test "$compiler_num" -ge "406"; then
19992
19993    ac_var_added_warnings=""
19994  for warning in double-promotion; do
19995
19996  ac_var_match_word="no"
19997  for word1 in $CFLAGS; do
19998    for word2 in -Wno-$warning -W$warning; do
19999      if test "$word1" = "$word2"; then
20000        ac_var_match_word="yes"
20001      fi
20002    done
20003  done
20004
20005    if test "$ac_var_match_word" = "no"; then
20006      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20007    fi
20008  done
20009    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20010  squeeze tmp_CFLAGS
20011
20012          fi
20013          #
20014                    if test "$compiler_num" -ge "408"; then
20015            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20016          fi
20017          #
20018                    if test "$compiler_num" -ge "500"; then
20019            tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20020          fi
20021          #
20022                    if test "$compiler_num" -ge "600"; then
20023
20024    ac_var_added_warnings=""
20025  for warning in shift-negative-value; do
20026
20027  ac_var_match_word="no"
20028  for word1 in $CFLAGS; do
20029    for word2 in -Wno-$warning -W$warning; do
20030      if test "$word1" = "$word2"; then
20031        ac_var_match_word="yes"
20032      fi
20033    done
20034  done
20035
20036    if test "$ac_var_match_word" = "no"; then
20037      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20038    fi
20039  done
20040    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20041  squeeze tmp_CFLAGS
20042
20043            tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20044
20045    ac_var_added_warnings=""
20046  for warning in null-dereference; do
20047
20048  ac_var_match_word="no"
20049  for word1 in $CFLAGS; do
20050    for word2 in -Wno-$warning -W$warning; do
20051      if test "$word1" = "$word2"; then
20052        ac_var_match_word="yes"
20053      fi
20054    done
20055  done
20056
20057    if test "$ac_var_match_word" = "no"; then
20058      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20059    fi
20060  done
20061    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20062  squeeze tmp_CFLAGS
20063
20064            tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20065
20066    ac_var_added_warnings=""
20067  for warning in duplicated-cond; do
20068
20069  ac_var_match_word="no"
20070  for word1 in $CFLAGS; do
20071    for word2 in -Wno-$warning -W$warning; do
20072      if test "$word1" = "$word2"; then
20073        ac_var_match_word="yes"
20074      fi
20075    done
20076  done
20077
20078    if test "$ac_var_match_word" = "no"; then
20079      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20080    fi
20081  done
20082    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20083  squeeze tmp_CFLAGS
20084
20085
20086    ac_var_added_warnings=""
20087  for warning in unused-const-variable; do
20088
20089  ac_var_match_word="no"
20090  for word1 in $CFLAGS; do
20091    for word2 in -Wno-$warning -W$warning; do
20092      if test "$word1" = "$word2"; then
20093        ac_var_match_word="yes"
20094      fi
20095    done
20096  done
20097
20098    if test "$ac_var_match_word" = "no"; then
20099      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20100    fi
20101  done
20102    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20103  squeeze tmp_CFLAGS
20104
20105          fi
20106          #
20107                    if test "$compiler_num" -ge "700"; then
20108
20109    ac_var_added_warnings=""
20110  for warning in duplicated-branches; do
20111
20112  ac_var_match_word="no"
20113  for word1 in $CFLAGS; do
20114    for word2 in -Wno-$warning -W$warning; do
20115      if test "$word1" = "$word2"; then
20116        ac_var_match_word="yes"
20117      fi
20118    done
20119  done
20120
20121    if test "$ac_var_match_word" = "no"; then
20122      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20123    fi
20124  done
20125    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20126  squeeze tmp_CFLAGS
20127
20128
20129    ac_var_added_warnings=""
20130  for warning in restrict; do
20131
20132  ac_var_match_word="no"
20133  for word1 in $CFLAGS; do
20134    for word2 in -Wno-$warning -W$warning; do
20135      if test "$word1" = "$word2"; then
20136        ac_var_match_word="yes"
20137      fi
20138    done
20139  done
20140
20141    if test "$ac_var_match_word" = "no"; then
20142      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20143    fi
20144  done
20145    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20146  squeeze tmp_CFLAGS
20147
20148
20149    ac_var_added_warnings=""
20150  for warning in alloc-zero; do
20151
20152  ac_var_match_word="no"
20153  for word1 in $CFLAGS; do
20154    for word2 in -Wno-$warning -W$warning; do
20155      if test "$word1" = "$word2"; then
20156        ac_var_match_word="yes"
20157      fi
20158    done
20159  done
20160
20161    if test "$ac_var_match_word" = "no"; then
20162      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20163    fi
20164  done
20165    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20166  squeeze tmp_CFLAGS
20167
20168            tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20169            tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20170            if test "$compiler_num" -lt "1200"; then
20171                            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
20172            fi
20173          fi
20174          #
20175                    if test "$compiler_num" -ge "1000"; then
20176
20177    ac_var_added_warnings=""
20178  for warning in arith-conversion; do
20179
20180  ac_var_match_word="no"
20181  for word1 in $CFLAGS; do
20182    for word2 in -Wno-$warning -W$warning; do
20183      if test "$word1" = "$word2"; then
20184        ac_var_match_word="yes"
20185      fi
20186    done
20187  done
20188
20189    if test "$ac_var_match_word" = "no"; then
20190      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20191    fi
20192  done
20193    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20194  squeeze tmp_CFLAGS
20195
20196
20197    ac_var_added_warnings=""
20198  for warning in enum-conversion; do
20199
20200  ac_var_match_word="no"
20201  for word1 in $CFLAGS; do
20202    for word2 in -Wno-$warning -W$warning; do
20203      if test "$word1" = "$word2"; then
20204        ac_var_match_word="yes"
20205      fi
20206    done
20207  done
20208
20209    if test "$ac_var_match_word" = "no"; then
20210      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20211    fi
20212  done
20213    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20214  squeeze tmp_CFLAGS
20215
20216          fi
20217          #
20218        fi
20219        #
20220                if test "$compiler_num" -ge "300"; then
20221          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20222        else
20223                              if test "x$cross_compiling" = "xyes"; then
20224            if test "$compiler_num" -ge "104"; then
20225                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20226            fi
20227            if test "$compiler_num" -ge "207"; then
20228                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20229              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20230            fi
20231          fi
20232        fi
20233        ;;
20234        #
20235      HP_UX_C)
20236        #
20237        if test "$want_warnings" = "yes"; then
20238                    tmp_CFLAGS="$tmp_CFLAGS +w1"
20239        fi
20240        ;;
20241        #
20242      IBM_C)
20243        #
20244                tmp_CFLAGS="$tmp_CFLAGS"
20245        ;;
20246        #
20247      INTEL_UNIX_C)
20248        #
20249        if test "$want_warnings" = "yes"; then
20250          if test "$compiler_num" -gt "600"; then
20251                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20252                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20253                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20254                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20255                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20256                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20257                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20258                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20259                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20260                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20261                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20262          fi
20263        fi
20264                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20265                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20266                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20267        ;;
20268        #
20269      INTEL_WINDOWS_C)
20270        #
20271                tmp_CFLAGS="$tmp_CFLAGS"
20272        ;;
20273        #
20274      LCC)
20275        #
20276        if test "$want_warnings" = "yes"; then
20277                                                  tmp_CFLAGS="$tmp_CFLAGS"
20278        fi
20279        ;;
20280        #
20281      SGI_MIPS_C)
20282        #
20283        if test "$want_warnings" = "yes"; then
20284                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20285        fi
20286        ;;
20287        #
20288      SGI_MIPSPRO_C)
20289        #
20290        if test "$want_warnings" = "yes"; then
20291                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20292                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20293        fi
20294        ;;
20295        #
20296      SUNPRO_C)
20297        #
20298        if test "$want_warnings" = "yes"; then
20299                    tmp_CFLAGS="$tmp_CFLAGS -v"
20300        fi
20301        ;;
20302        #
20303      TINY_C)
20304        #
20305        if test "$want_warnings" = "yes"; then
20306
20307    ac_var_added_warnings=""
20308  for warning in all; do
20309
20310  ac_var_match_word="no"
20311  for word1 in $CFLAGS; do
20312    for word2 in -Wno-$warning -W$warning; do
20313      if test "$word1" = "$word2"; then
20314        ac_var_match_word="yes"
20315      fi
20316    done
20317  done
20318
20319    if test "$ac_var_match_word" = "no"; then
20320      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20321    fi
20322  done
20323    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20324  squeeze tmp_CFLAGS
20325
20326
20327    ac_var_added_warnings=""
20328  for warning in write-strings; do
20329
20330  ac_var_match_word="no"
20331  for word1 in $CFLAGS; do
20332    for word2 in -Wno-$warning -W$warning; do
20333      if test "$word1" = "$word2"; then
20334        ac_var_match_word="yes"
20335      fi
20336    done
20337  done
20338
20339    if test "$ac_var_match_word" = "no"; then
20340      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20341    fi
20342  done
20343    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20344  squeeze tmp_CFLAGS
20345
20346
20347    ac_var_added_warnings=""
20348  for warning in unsupported; do
20349
20350  ac_var_match_word="no"
20351  for word1 in $CFLAGS; do
20352    for word2 in -Wno-$warning -W$warning; do
20353      if test "$word1" = "$word2"; then
20354        ac_var_match_word="yes"
20355      fi
20356    done
20357  done
20358
20359    if test "$ac_var_match_word" = "no"; then
20360      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20361    fi
20362  done
20363    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20364  squeeze tmp_CFLAGS
20365
20366        fi
20367        ;;
20368        #
20369    esac
20370    #
20371    squeeze tmp_CPPFLAGS
20372    squeeze tmp_CFLAGS
20373    #
20374    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20375      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
20376printf %s "checking if compiler accepts strict warning options... " >&6; }
20377      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20378      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20379      squeeze CPPFLAGS
20380      squeeze CFLAGS
20381
20382    tmp_compiler_works="unknown"
20383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384/* end confdefs.h.  */
20385
20386
20387
20388int main (void)
20389{
20390
20391      int i = 1;
20392      return i;
20393
20394 ;
20395 return 0;
20396}
20397
20398_ACEOF
20399if ac_fn_c_try_compile "$LINENO"
20400then :
20401
20402    tmp_compiler_works="yes"
20403
20404else $as_nop
20405
20406    tmp_compiler_works="no"
20407    echo " " >&6
20408    sed 's/^/cc-fail: /' conftest.err >&6
20409    echo " " >&6
20410
20411fi
20412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20413    if test "$tmp_compiler_works" = "yes"; then
20414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415/* end confdefs.h.  */
20416
20417
20418
20419int main (void)
20420{
20421
20422        int i = 1;
20423        return i;
20424
20425 ;
20426 return 0;
20427}
20428
20429_ACEOF
20430if ac_fn_c_try_link "$LINENO"
20431then :
20432
20433      tmp_compiler_works="yes"
20434
20435else $as_nop
20436
20437      tmp_compiler_works="no"
20438      echo " " >&6
20439      sed 's/^/link-fail: /' conftest.err >&6
20440      echo " " >&6
20441
20442fi
20443rm -f core conftest.err conftest.$ac_objext conftest.beam \
20444    conftest$ac_exeext conftest.$ac_ext
20445  fi
20446    if test "x$cross_compiling" != "xyes" &&
20447    test "$tmp_compiler_works" = "yes"; then
20448
20449   case $host_os in
20450     darwin*)
20451      if test "$cross_compiling" = yes
20452then :
20453  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20454printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20455as_fn_error $? "cannot run test program while cross compiling
20456See \`config.log' for more details" "$LINENO" 5; }
20457else $as_nop
20458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459/* end confdefs.h.  */
20460
20461
20462#       ifdef __STDC__
20463#         include <stdlib.h>
20464#       endif
20465
20466int main (void)
20467{
20468
20469        int i = 0;
20470        exit(i);
20471
20472 ;
20473 return 0;
20474}
20475
20476_ACEOF
20477if ac_fn_c_try_run "$LINENO"
20478then :
20479  tmp_compiler_works="yes"
20480
20481else $as_nop
20482  tmp_compiler_works="no"
20483      echo " " >&6
20484      echo "run-fail: test program exited with status $ac_status" >&6
20485      echo " " >&6
20486
20487fi
20488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20489  conftest.$ac_objext conftest.beam conftest.$ac_ext
20490fi
20491
20492     ;;
20493     *)
20494      old=$LD_LIBRARY_PATH
20495      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20496      export LD_LIBRARY_PATH
20497      if test "$cross_compiling" = yes
20498then :
20499  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20500printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20501as_fn_error $? "cannot run test program while cross compiling
20502See \`config.log' for more details" "$LINENO" 5; }
20503else $as_nop
20504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505/* end confdefs.h.  */
20506
20507
20508#       ifdef __STDC__
20509#         include <stdlib.h>
20510#       endif
20511
20512int main (void)
20513{
20514
20515        int i = 0;
20516        exit(i);
20517
20518 ;
20519 return 0;
20520}
20521
20522_ACEOF
20523if ac_fn_c_try_run "$LINENO"
20524then :
20525  tmp_compiler_works="yes"
20526
20527else $as_nop
20528  tmp_compiler_works="no"
20529      echo " " >&6
20530      echo "run-fail: test program exited with status $ac_status" >&6
20531      echo " " >&6
20532
20533fi
20534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20535  conftest.$ac_objext conftest.beam conftest.$ac_ext
20536fi
20537
20538      LD_LIBRARY_PATH=$old # restore
20539     ;;
20540   esac
20541
20542  fi
20543    if test "$tmp_compiler_works" = "yes"; then
20544
20545        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20546printf "%s\n" "yes" >&6; }
20547        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20548printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20549
20550  else
20551
20552        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553printf "%s\n" "no" >&6; }
20554        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20555printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20556                CPPFLAGS="$tmp_save_CPPFLAGS"
20557        CFLAGS="$tmp_save_CFLAGS"
20558
20559  fi
20560
20561    fi
20562    #
20563  fi
20564
20565
20566if test "$compiler_id" = "INTEL_UNIX_C"; then
20567  #
20568  if test "$compiler_num" -ge "1000"; then
20569        CFLAGS="$CFLAGS -shared-intel"
20570  elif test "$compiler_num" -ge "900"; then
20571        CFLAGS="$CFLAGS -i-dynamic"
20572  fi
20573  #
20574fi
20575
20576CURL_CFLAG_EXTRAS=""
20577if test X"$want_werror" = Xyes; then
20578  CURL_CFLAG_EXTRAS="-Werror"
20579  if test "$compiler_id" = "GNU_C"; then
20580            if test "$compiler_num" -ge "500"; then
20581      CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
20582    fi
20583  fi
20584fi
20585
20586
20587
20588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
20589printf %s "checking if compiler halts on compilation errors... " >&6; }
20590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591/* end confdefs.h.  */
20592
20593
20594
20595int main (void)
20596{
20597
20598      force compilation error
20599
20600 ;
20601 return 0;
20602}
20603
20604_ACEOF
20605if ac_fn_c_try_compile "$LINENO"
20606then :
20607
20608    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609printf "%s\n" "no" >&6; }
20610    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
20611
20612else $as_nop
20613
20614    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615printf "%s\n" "yes" >&6; }
20616
20617fi
20618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20619
20620
20621    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
20622printf %s "checking if compiler halts on negative sized arrays... " >&6; }
20623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624/* end confdefs.h.  */
20625
20626
20627      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
20628
20629int main (void)
20630{
20631
20632      bad_t dummy;
20633
20634 ;
20635 return 0;
20636}
20637
20638_ACEOF
20639if ac_fn_c_try_compile "$LINENO"
20640then :
20641
20642    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643printf "%s\n" "no" >&6; }
20644    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
20645
20646else $as_nop
20647
20648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20649printf "%s\n" "yes" >&6; }
20650
20651fi
20652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20653
20654
20655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
20656printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
20657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658/* end confdefs.h.  */
20659
20660
20661#     include <stdlib.h>
20662      int rand(int n);
20663      int rand(int n)
20664      {
20665        if(n)
20666          return ++n;
20667        else
20668          return n;
20669      }
20670
20671int main (void)
20672{
20673
20674      int i[2]={0,0};
20675      int j = rand(i[0]);
20676      if(j)
20677        return j;
20678
20679 ;
20680 return 0;
20681}
20682
20683_ACEOF
20684if ac_fn_c_try_compile "$LINENO"
20685then :
20686
20687    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20688printf "%s\n" "no" >&6; }
20689    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
20690
20691else $as_nop
20692
20693    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20694printf "%s\n" "yes" >&6; }
20695
20696fi
20697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20698
20699
20700      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
20701printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
20702  supports_symbol_hiding="no"
20703  symbol_hiding_CFLAGS=""
20704  symbol_hiding_EXTERN=""
20705  tmp_CFLAGS=""
20706  tmp_EXTERN=""
20707  case "$compiler_id" in
20708    CLANG)
20709            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20710      tmp_CFLAGS="-fvisibility=hidden"
20711      supports_symbol_hiding="yes"
20712      ;;
20713    GNU_C)
20714            if test "$compiler_num" -ge "304"; then
20715        if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
20716          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20717          tmp_CFLAGS="-fvisibility=hidden"
20718          supports_symbol_hiding="yes"
20719        fi
20720      fi
20721      ;;
20722    INTEL_UNIX_C)
20723            if test "$compiler_num" -ge "900"; then
20724        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
20725          tmp_save_CFLAGS="$CFLAGS"
20726          CFLAGS="$CFLAGS -fvisibility=hidden"
20727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728/* end confdefs.h.  */
20729
20730
20731#             include <stdio.h>
20732
20733int main (void)
20734{
20735
20736              printf("icc fvisibility bug test");
20737
20738 ;
20739 return 0;
20740}
20741
20742_ACEOF
20743if ac_fn_c_try_link "$LINENO"
20744then :
20745
20746            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20747            tmp_CFLAGS="-fvisibility=hidden"
20748            supports_symbol_hiding="yes"
20749
20750fi
20751rm -f core conftest.err conftest.$ac_objext conftest.beam \
20752    conftest$ac_exeext conftest.$ac_ext
20753          CFLAGS="$tmp_save_CFLAGS"
20754        fi
20755      fi
20756      ;;
20757    SUNPRO_C)
20758      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
20759        tmp_EXTERN="__global"
20760        tmp_CFLAGS="-xldscope=hidden"
20761        supports_symbol_hiding="yes"
20762      fi
20763      ;;
20764  esac
20765  if test "$supports_symbol_hiding" = "yes"; then
20766    tmp_save_CFLAGS="$CFLAGS"
20767    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20768    squeeze CFLAGS
20769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770/* end confdefs.h.  */
20771
20772
20773        $tmp_EXTERN char *dummy(char *buff);
20774        char *dummy(char *buff)
20775        {
20776         if(buff)
20777           return ++buff;
20778         else
20779           return buff;
20780        }
20781
20782int main (void)
20783{
20784
20785        char b[16];
20786        char *r = dummy(&b[0]);
20787        if(r)
20788          return (int)*r;
20789
20790 ;
20791 return 0;
20792}
20793
20794_ACEOF
20795if ac_fn_c_try_compile "$LINENO"
20796then :
20797
20798      supports_symbol_hiding="yes"
20799      if test -f conftest.err; then
20800        grep 'visibility' conftest.err >/dev/null
20801        if test "$?" -eq "0"; then
20802          supports_symbol_hiding="no"
20803        fi
20804      fi
20805
20806else $as_nop
20807
20808      supports_symbol_hiding="no"
20809      echo " " >&6
20810      sed 's/^/cc-src: /' conftest.$ac_ext >&6
20811      sed 's/^/cc-err: /' conftest.err >&6
20812      echo " " >&6
20813
20814fi
20815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20816    CFLAGS="$tmp_save_CFLAGS"
20817  fi
20818  if test "$supports_symbol_hiding" = "yes"; then
20819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20820printf "%s\n" "yes" >&6; }
20821    symbol_hiding_CFLAGS="$tmp_CFLAGS"
20822    symbol_hiding_EXTERN="$tmp_EXTERN"
20823  else
20824    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825printf "%s\n" "no" >&6; }
20826  fi
20827
20828
20829
20830      supports_curldebug="unknown"
20831  if test "$want_curldebug" = "yes"; then
20832    if test "x$enable_shared" != "xno" &&
20833      test "x$enable_shared" != "xyes"; then
20834      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20835printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20836      supports_curldebug="no"
20837    fi
20838    if test "x$enable_static" != "xno" &&
20839      test "x$enable_static" != "xyes"; then
20840      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20841printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20842      supports_curldebug="no"
20843    fi
20844    if test "$supports_curldebug" != "no"; then
20845      if test "$enable_shared" = "yes" &&
20846        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20847        supports_curldebug="no"
20848        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20849printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20850      fi
20851    fi
20852  fi
20853  #
20854  if test "$want_curldebug" = "yes"; then
20855    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20856printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20857    test "$supports_curldebug" = "no" || supports_curldebug="yes"
20858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20859printf "%s\n" "$supports_curldebug" >&6; }
20860    if test "$supports_curldebug" = "no"; then
20861      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20862printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20863      want_curldebug="no"
20864    fi
20865  fi
20866
20867 if test x$want_curldebug = xyes; then
20868  CURLDEBUG_TRUE=
20869  CURLDEBUG_FALSE='#'
20870else
20871  CURLDEBUG_TRUE='#'
20872  CURLDEBUG_FALSE=
20873fi
20874
20875
20876supports_unittests=yes
20877# cross-compilation of unit tests static library/programs fails when
20878# libcurl shared library is built. This might be due to a libtool or
20879# automake issue. In this case we disable unit tests.
20880if test "x$cross_compiling" != "xno" &&
20881   test "x$enable_shared" != "xno"; then
20882  supports_unittests=no
20883fi
20884
20885# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20886# a problem related with OpenSSL headers and library versions not matching.
20887# Disable unit tests while time to further investigate this is found.
20888case $host in
20889  mips-sgi-irix6.5)
20890    if test "$compiler_id" = "GNU_C"; then
20891      supports_unittests=no
20892    fi
20893    ;;
20894esac
20895
20896# All AIX autobuilds fails unit tests linking against unittests library
20897# due to unittests library being built with no symbols or members. Libtool ?
20898# Disable unit tests while time to further investigate this is found.
20899case $host_os in
20900  aix*)
20901    supports_unittests=no
20902    ;;
20903esac
20904
20905if test "x$want_debug" = "xyes" &&
20906   test "x$supports_unittests" = "xyes"; then
20907  want_unittests=yes
20908else
20909  want_unittests=no
20910fi
20911 if test x$want_unittests = xyes; then
20912  BUILD_UNITTESTS_TRUE=
20913  BUILD_UNITTESTS_FALSE='#'
20914else
20915  BUILD_UNITTESTS_TRUE='#'
20916  BUILD_UNITTESTS_FALSE=
20917fi
20918
20919
20920# For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20921# version to Windows XP (0x501) if it hasn't already been defined by the user.
20922# Without this override original MinGW defaults the version to Windows NT 4.0.
20923# Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20924case $host in
20925  *-*-mingw32*)
20926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20927printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929/* end confdefs.h.  */
20930
20931
20932#include <_mingw.h>
20933
20934int main (void)
20935{
20936
20937#if defined(__MINGW64_VERSION_MAJOR) || \
20938    defined(WINVER) || \
20939    defined(_WIN32_WINNT)
20940#error
20941#endif
20942
20943 ;
20944 return 0;
20945}
20946
20947_ACEOF
20948if ac_fn_c_try_compile "$LINENO"
20949then :
20950
20951      CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20952      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20953printf "%s\n" "yes" >&6; }
20954
20955else $as_nop
20956
20957      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20958printf "%s\n" "no" >&6; }
20959
20960fi
20961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20962    ;;
20963esac
20964
20965# Detect original MinGW (not MinGW-w64)
20966curl_mingw_original=no
20967case $host in
20968  *-*-mingw32*)
20969    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking using original MinGW (not MinGW-w64)" >&5
20970printf %s "checking using original MinGW (not MinGW-w64)... " >&6; }
20971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972/* end confdefs.h.  */
20973
20974
20975#include <_mingw.h>
20976
20977int main (void)
20978{
20979
20980#if defined(__MINGW64_VERSION_MAJOR)
20981#error
20982#endif
20983
20984 ;
20985 return 0;
20986}
20987
20988_ACEOF
20989if ac_fn_c_try_compile "$LINENO"
20990then :
20991
20992      curl_mingw_original=yes
20993      curl_mingw_die=yes
20994      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995printf "%s\n" "yes" >&6; }
20996
20997else $as_nop
20998
20999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000printf "%s\n" "no" >&6; }
21001
21002fi
21003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21004    ;;
21005esac
21006
21007
21008
21009# Check whether --with-mingw1-deprecated was given.
21010if test ${with_mingw1_deprecated+y}
21011then :
21012  withval=$with_mingw1_deprecated; if test X"$withval" != Xno; then
21013    curl_mingw_die=
21014  fi
21015
21016fi
21017
21018
21019if test -n "$curl_mingw_die"; then
21020  as_fn_error $? "support for mingw v1 is going away, enable temporarily with --with-mingw1-deprecated" "$LINENO" 5
21021fi
21022
21023
21024
21025
21026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21027printf %s "checking for windows.h... " >&6; }
21028if test ${curl_cv_header_windows_h+y}
21029then :
21030  printf %s "(cached) " >&6
21031else $as_nop
21032
21033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034/* end confdefs.h.  */
21035
21036
21037#undef inline
21038#ifndef WIN32_LEAN_AND_MEAN
21039#define WIN32_LEAN_AND_MEAN
21040#endif
21041#include <windows.h>
21042
21043int main (void)
21044{
21045
21046#if defined(__CYGWIN__) || defined(__CEGCC__)
21047        HAVE_WINDOWS_H shall not be defined.
21048#else
21049        int dummy=2*WINVER;
21050#endif
21051
21052 ;
21053 return 0;
21054}
21055
21056_ACEOF
21057if ac_fn_c_try_compile "$LINENO"
21058then :
21059
21060      curl_cv_header_windows_h="yes"
21061
21062else $as_nop
21063
21064      curl_cv_header_windows_h="no"
21065
21066fi
21067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21068
21069fi
21070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21071printf "%s\n" "$curl_cv_header_windows_h" >&6; }
21072  case "$curl_cv_header_windows_h" in
21073    yes)
21074
21075printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21076
21077      ;;
21078  esac
21079
21080
21081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21082printf %s "checking whether build target is a native Windows one... " >&6; }
21083if test ${curl_cv_native_windows+y}
21084then :
21085  printf %s "(cached) " >&6
21086else $as_nop
21087
21088    if test "$curl_cv_header_windows_h" = "no"; then
21089      curl_cv_native_windows="no"
21090    else
21091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092/* end confdefs.h.  */
21093
21094
21095
21096int main (void)
21097{
21098
21099#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21100   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21101          int dummy=1;
21102#else
21103          Not a native Windows build target.
21104#endif
21105
21106 ;
21107 return 0;
21108}
21109
21110_ACEOF
21111if ac_fn_c_try_compile "$LINENO"
21112then :
21113
21114        curl_cv_native_windows="yes"
21115
21116else $as_nop
21117
21118        curl_cv_native_windows="no"
21119
21120fi
21121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21122    fi
21123
21124fi
21125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
21126printf "%s\n" "$curl_cv_native_windows" >&6; }
21127   if test "x$curl_cv_native_windows" = xyes; then
21128  DOING_NATIVE_WINDOWS_TRUE=
21129  DOING_NATIVE_WINDOWS_FALSE='#'
21130else
21131  DOING_NATIVE_WINDOWS_TRUE='#'
21132  DOING_NATIVE_WINDOWS_FALSE=
21133fi
21134
21135
21136case X-"$curl_cv_native_windows" in
21137  X-yes)
21138
21139    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21140printf %s "checking for winsock2.h... " >&6; }
21141if test ${curl_cv_header_winsock2_h+y}
21142then :
21143  printf %s "(cached) " >&6
21144else $as_nop
21145
21146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147/* end confdefs.h.  */
21148
21149
21150#undef inline
21151#ifndef WIN32_LEAN_AND_MEAN
21152#define WIN32_LEAN_AND_MEAN
21153#endif
21154#include <windows.h>
21155#include <winsock2.h>
21156
21157int main (void)
21158{
21159
21160#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21161        HAVE_WINSOCK2_H shall not be defined.
21162#else
21163        int dummy=2*IPPROTO_ESP;
21164#endif
21165
21166 ;
21167 return 0;
21168}
21169
21170_ACEOF
21171if ac_fn_c_try_compile "$LINENO"
21172then :
21173
21174      curl_cv_header_winsock2_h="yes"
21175
21176else $as_nop
21177
21178      curl_cv_header_winsock2_h="no"
21179
21180fi
21181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21182
21183fi
21184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21185printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
21186  case "$curl_cv_header_winsock2_h" in
21187    yes)
21188
21189printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21190
21191      ;;
21192  esac
21193
21194
21195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21196printf %s "checking for ws2tcpip.h... " >&6; }
21197if test ${curl_cv_header_ws2tcpip_h+y}
21198then :
21199  printf %s "(cached) " >&6
21200else $as_nop
21201
21202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203/* end confdefs.h.  */
21204
21205
21206#undef inline
21207#ifndef WIN32_LEAN_AND_MEAN
21208#define WIN32_LEAN_AND_MEAN
21209#endif
21210#include <windows.h>
21211#include <winsock2.h>
21212#include <ws2tcpip.h>
21213
21214int main (void)
21215{
21216
21217#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21218        HAVE_WS2TCPIP_H shall not be defined.
21219#else
21220        int dummy=2*IP_PKTINFO;
21221#endif
21222
21223 ;
21224 return 0;
21225}
21226
21227_ACEOF
21228if ac_fn_c_try_compile "$LINENO"
21229then :
21230
21231      curl_cv_header_ws2tcpip_h="yes"
21232
21233else $as_nop
21234
21235      curl_cv_header_ws2tcpip_h="no"
21236
21237fi
21238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21239
21240fi
21241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
21242printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
21243  case "$curl_cv_header_ws2tcpip_h" in
21244    yes)
21245
21246printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
21247
21248      ;;
21249  esac
21250
21251
21252    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
21253printf %s "checking for wincrypt.h... " >&6; }
21254if test ${curl_cv_header_wincrypt_h+y}
21255then :
21256  printf %s "(cached) " >&6
21257else $as_nop
21258
21259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21260/* end confdefs.h.  */
21261
21262
21263#undef inline
21264#ifndef WIN32_LEAN_AND_MEAN
21265#define WIN32_LEAN_AND_MEAN
21266#endif
21267#include <windows.h>
21268#include <wincrypt.h>
21269
21270int main (void)
21271{
21272
21273        int dummy=2*PROV_RSA_FULL;
21274
21275 ;
21276 return 0;
21277}
21278
21279_ACEOF
21280if ac_fn_c_try_compile "$LINENO"
21281then :
21282
21283      curl_cv_header_wincrypt_h="yes"
21284
21285else $as_nop
21286
21287      curl_cv_header_wincrypt_h="no"
21288
21289fi
21290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21291
21292fi
21293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
21294printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
21295  case "$curl_cv_header_wincrypt_h" in
21296    yes)
21297
21298printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
21299
21300      ;;
21301  esac
21302
21303
21304    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
21305printf %s "checking for winldap.h... " >&6; }
21306if test ${curl_cv_header_winldap_h+y}
21307then :
21308  printf %s "(cached) " >&6
21309else $as_nop
21310
21311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312/* end confdefs.h.  */
21313
21314
21315#undef inline
21316#ifdef HAVE_WINDOWS_H
21317#ifndef WIN32_LEAN_AND_MEAN
21318#define WIN32_LEAN_AND_MEAN
21319#endif
21320#include <windows.h>
21321#endif
21322#include <winldap.h>
21323
21324int main (void)
21325{
21326
21327#if defined(__CYGWIN__) || defined(__CEGCC__)
21328        HAVE_WINLDAP_H shall not be defined.
21329#else
21330        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21331        ULONG res = ldap_unbind(ldp);
21332#endif
21333
21334 ;
21335 return 0;
21336}
21337
21338_ACEOF
21339if ac_fn_c_try_compile "$LINENO"
21340then :
21341
21342      curl_cv_header_winldap_h="yes"
21343
21344else $as_nop
21345
21346      curl_cv_header_winldap_h="no"
21347
21348fi
21349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21350
21351fi
21352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
21353printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
21354  case "$curl_cv_header_winldap_h" in
21355    yes)
21356
21357printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
21358
21359      ;;
21360  esac
21361
21362    ;;
21363  *)
21364    curl_cv_header_winsock2_h="no"
21365    curl_cv_header_ws2tcpip_h="no"
21366    curl_cv_header_wincrypt_h="no"
21367    curl_cv_header_winldap_h="no"
21368    ;;
21369esac
21370
21371    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21372printf %s "checking whether build target supports WIN32 file API... " >&6; }
21373  curl_win32_file_api="no"
21374  if test "$curl_cv_header_windows_h" = "yes"; then
21375    if test x"$enable_largefile" != "xno"; then
21376      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21377/* end confdefs.h.  */
21378
21379
21380
21381int main (void)
21382{
21383
21384#if !defined(_WIN32_WCE) && \
21385    (defined(__MINGW32__) || \
21386    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
21387          int dummy=1;
21388#else
21389          WIN32 large file API not supported.
21390#endif
21391
21392 ;
21393 return 0;
21394}
21395
21396_ACEOF
21397if ac_fn_c_try_compile "$LINENO"
21398then :
21399
21400        curl_win32_file_api="win32_large_files"
21401
21402fi
21403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21404    fi
21405    if test "$curl_win32_file_api" = "no"; then
21406      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407/* end confdefs.h.  */
21408
21409
21410
21411int main (void)
21412{
21413
21414#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21415          int dummy=1;
21416#else
21417          WIN32 small file API not supported.
21418#endif
21419
21420 ;
21421 return 0;
21422}
21423
21424_ACEOF
21425if ac_fn_c_try_compile "$LINENO"
21426then :
21427
21428        curl_win32_file_api="win32_small_files"
21429
21430fi
21431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21432    fi
21433  fi
21434  case "$curl_win32_file_api" in
21435    win32_large_files)
21436      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21437printf "%s\n" "yes (large file enabled)" >&6; }
21438
21439printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21440
21441      USE_WIN32_LARGE_FILES=1
21442
21443      ;;
21444    win32_small_files)
21445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21446printf "%s\n" "yes (large file disabled)" >&6; }
21447
21448printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21449
21450      USE_WIN32_SMALL_FILES=1
21451
21452      ;;
21453    *)
21454      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21455printf "%s\n" "no" >&6; }
21456      ;;
21457  esac
21458
21459
21460    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21461printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21462  curl_win32_crypto_api="no"
21463  if test "$curl_cv_header_wincrypt_h" = "yes"; then
21464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465/* end confdefs.h.  */
21466
21467
21468#undef inline
21469#ifndef WIN32_LEAN_AND_MEAN
21470#define WIN32_LEAN_AND_MEAN
21471#endif
21472#include <windows.h>
21473#include <wincrypt.h>
21474
21475int main (void)
21476{
21477
21478        HCRYPTPROV hCryptProv;
21479        if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21480                               CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21481          CryptReleaseContext(hCryptProv, 0);
21482        }
21483
21484 ;
21485 return 0;
21486}
21487
21488_ACEOF
21489if ac_fn_c_try_compile "$LINENO"
21490then :
21491
21492      curl_win32_crypto_api="yes"
21493
21494fi
21495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21496  fi
21497  case "$curl_win32_crypto_api" in
21498    yes)
21499      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21500printf "%s\n" "yes" >&6; }
21501
21502printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21503
21504      USE_WIN32_CRYPTO=1
21505
21506      ;;
21507    *)
21508      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509printf "%s\n" "no" >&6; }
21510      ;;
21511  esac
21512
21513
21514
21515
21516  tst_cflags="no"
21517  case $host_os in
21518    darwin*)
21519      tst_cflags="yes"
21520      ;;
21521  esac
21522
21523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21524printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21526printf "%s\n" "$tst_cflags" >&6; };
21527
21528  if test "$tst_cflags" = "yes"; then
21529    old_CFLAGS=$CFLAGS
21530    CFLAGS="$CFLAGS -Werror=partial-availability"
21531    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21532printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534/* end confdefs.h.  */
21535
21536int main (void)
21537{
21538
21539 ;
21540 return 0;
21541}
21542_ACEOF
21543if ac_fn_c_try_compile "$LINENO"
21544then :
21545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21546printf "%s\n" "yes" >&6; }
21547else $as_nop
21548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21549printf "%s\n" "no" >&6; }
21550      CFLAGS=$old_CFLAGS
21551fi
21552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21553  fi
21554
21555
21556
21557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
21558printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
21559case $host_os in
21560  darwin*)
21561    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562/* end confdefs.h.  */
21563
21564
21565#include <TargetConditionals.h>
21566
21567int main (void)
21568{
21569
21570#if (TARGET_OS_OSX)
21571      return 0;
21572#else
21573#error Not a macOS
21574#endif
21575
21576 ;
21577 return 0;
21578}
21579
21580_ACEOF
21581if ac_fn_c_try_compile "$LINENO"
21582then :
21583
21584      build_for_macos="yes"
21585
21586else $as_nop
21587
21588      build_for_macos="no"
21589
21590fi
21591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21592    if test "x$build_for_macos" != xno; then
21593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21594printf "%s\n" "yes" >&6; }
21595      LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
21596    else
21597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598printf "%s\n" "no" >&6; }
21599    fi
21600    ;;
21601  *)
21602    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21603printf "%s\n" "no" >&6; }
21604esac
21605
21606
21607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21608printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610/* end confdefs.h.  */
21611
21612
21613#include <stdlib.h>
21614
21615int main (void)
21616{
21617
21618      if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21619
21620 ;
21621 return 0;
21622}
21623
21624_ACEOF
21625if ac_fn_c_try_compile "$LINENO"
21626then :
21627
21628    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21629printf "%s\n" "yes" >&6; }
21630
21631printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21632
21633
21634else $as_nop
21635
21636    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637printf "%s\n" "no" >&6; }
21638
21639fi
21640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21641
21642
21643 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21644  HAVE_WINDRES_TRUE=
21645  HAVE_WINDRES_FALSE='#'
21646else
21647  HAVE_WINDRES_TRUE='#'
21648  HAVE_WINDRES_FALSE=
21649fi
21650
21651
21652if test "$curl_cv_native_windows" = "yes"; then
21653  if test -z "$HAVE_WINDRES_TRUE"; then :
21654  else
21655  as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
21656fi
21657fi
21658
21659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21660printf %s "checking whether to support http... " >&6; }
21661# Check whether --enable-http was given.
21662if test ${enable_http+y}
21663then :
21664  enableval=$enable_http;  case "$enableval" in
21665  no)
21666       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21667printf "%s\n" "no" >&6; }
21668
21669printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21670
21671       disable_http="yes"
21672       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21673printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21674       CURL_DISABLE_HTTP=1
21675
21676
21677printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21678
21679       CURL_DISABLE_RTSP=1
21680
21681
21682printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21683
21684
21685printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21686
21687       curl_h1_msg="no      (--enable-http, --with-hyper)"
21688       curl_altsvc_msg="no";
21689       curl_hsts_msg="no      (--enable-hsts)";
21690       enable_altsvc="no"
21691       hsts="no"
21692       ;;
21693  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21694printf "%s\n" "yes" >&6; }
21695       ;;
21696  esac
21697else $as_nop
21698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21699printf "%s\n" "yes" >&6; }
21700
21701fi
21702
21703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21704printf %s "checking whether to support ftp... " >&6; }
21705# Check whether --enable-ftp was given.
21706if test ${enable_ftp+y}
21707then :
21708  enableval=$enable_ftp;  case "$enableval" in
21709  no)
21710       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21711printf "%s\n" "no" >&6; }
21712
21713printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21714
21715       CURL_DISABLE_FTP=1
21716
21717       ;;
21718  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21719printf "%s\n" "yes" >&6; }
21720       ;;
21721  esac
21722else $as_nop
21723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21724printf "%s\n" "yes" >&6; }
21725
21726fi
21727
21728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21729printf %s "checking whether to support file... " >&6; }
21730# Check whether --enable-file was given.
21731if test ${enable_file+y}
21732then :
21733  enableval=$enable_file;  case "$enableval" in
21734  no)
21735       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736printf "%s\n" "no" >&6; }
21737
21738printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21739
21740       CURL_DISABLE_FILE=1
21741
21742       ;;
21743  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21744printf "%s\n" "yes" >&6; }
21745       ;;
21746  esac
21747else $as_nop
21748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21749printf "%s\n" "yes" >&6; }
21750
21751fi
21752
21753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21754printf %s "checking whether to support ldap... " >&6; }
21755# Check whether --enable-ldap was given.
21756if test ${enable_ldap+y}
21757then :
21758  enableval=$enable_ldap;  case "$enableval" in
21759  no)
21760       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21761printf "%s\n" "no" >&6; }
21762
21763printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21764
21765       CURL_DISABLE_LDAP=1
21766
21767       ;;
21768  yes)
21769       ldap_askedfor="yes"
21770       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21771printf "%s\n" "yes" >&6; }
21772       ;;
21773  *)
21774       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21775printf "%s\n" "yes" >&6; }
21776       ;;
21777  esac
21778else $as_nop
21779
21780       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21781printf "%s\n" "yes" >&6; }
21782
21783fi
21784
21785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21786printf %s "checking whether to support ldaps... " >&6; }
21787# Check whether --enable-ldaps was given.
21788if test ${enable_ldaps+y}
21789then :
21790  enableval=$enable_ldaps;  case "$enableval" in
21791  no)
21792       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793printf "%s\n" "no" >&6; }
21794
21795printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21796
21797       CURL_DISABLE_LDAPS=1
21798
21799       ;;
21800  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21801         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21802printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21803
21804printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21805
21806         CURL_DISABLE_LDAPS=1
21807
21808       else
21809         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21810printf "%s\n" "yes" >&6; }
21811
21812printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21813
21814         HAVE_LDAP_SSL=1
21815
21816       fi
21817       ;;
21818  esac
21819else $as_nop
21820
21821       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21822         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823printf "%s\n" "no" >&6; }
21824
21825printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21826
21827         CURL_DISABLE_LDAPS=1
21828
21829       else
21830         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21831printf "%s\n" "yes" >&6; }
21832
21833printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21834
21835         HAVE_LDAP_SSL=1
21836
21837       fi
21838
21839fi
21840
21841
21842
21843OPT_HYPER="no"
21844
21845
21846# Check whether --with-hyper was given.
21847if test ${with_hyper+y}
21848then :
21849  withval=$with_hyper; OPT_HYPER=$withval
21850fi
21851
21852case "$OPT_HYPER" in
21853  no)
21854        want_hyper="no"
21855    ;;
21856  yes)
21857        want_hyper="default"
21858    want_hyper_path=""
21859    ;;
21860  *)
21861        want_hyper="yes"
21862    want_hyper_path="$withval"
21863    ;;
21864esac
21865
21866if test X"$want_hyper" != Xno; then
21867  if test "x$disable_http" = "xyes"; then
21868    as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21869  fi
21870
21871    CLEANLDFLAGS="$LDFLAGS"
21872  CLEANCPPFLAGS="$CPPFLAGS"
21873  CLEANLIBS="$LIBS"
21874
21875
21876    if test -n "$PKG_CONFIG"; then
21877      PKGCONFIG="$PKG_CONFIG"
21878    else
21879      if test -n "$ac_tool_prefix"; then
21880  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21881set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21883printf %s "checking for $ac_word... " >&6; }
21884if test ${ac_cv_path_PKGCONFIG+y}
21885then :
21886  printf %s "(cached) " >&6
21887else $as_nop
21888  case $PKGCONFIG in
21889  [\\/]* | ?:[\\/]*)
21890  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21891  ;;
21892  *)
21893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894as_dummy="$PATH:/usr/bin:/usr/local/bin"
21895for as_dir in $as_dummy
21896do
21897  IFS=$as_save_IFS
21898  case $as_dir in #(((
21899    '') as_dir=./ ;;
21900    */) ;;
21901    *) as_dir=$as_dir/ ;;
21902  esac
21903    for ac_exec_ext in '' $ac_executable_extensions; do
21904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21905    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21907    break 2
21908  fi
21909done
21910  done
21911IFS=$as_save_IFS
21912
21913  ;;
21914esac
21915fi
21916PKGCONFIG=$ac_cv_path_PKGCONFIG
21917if test -n "$PKGCONFIG"; then
21918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21919printf "%s\n" "$PKGCONFIG" >&6; }
21920else
21921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21922printf "%s\n" "no" >&6; }
21923fi
21924
21925
21926fi
21927if test -z "$ac_cv_path_PKGCONFIG"; then
21928  ac_pt_PKGCONFIG=$PKGCONFIG
21929  # Extract the first word of "pkg-config", so it can be a program name with args.
21930set dummy pkg-config; ac_word=$2
21931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21932printf %s "checking for $ac_word... " >&6; }
21933if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21934then :
21935  printf %s "(cached) " >&6
21936else $as_nop
21937  case $ac_pt_PKGCONFIG in
21938  [\\/]* | ?:[\\/]*)
21939  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21940  ;;
21941  *)
21942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21943as_dummy="$PATH:/usr/bin:/usr/local/bin"
21944for as_dir in $as_dummy
21945do
21946  IFS=$as_save_IFS
21947  case $as_dir in #(((
21948    '') as_dir=./ ;;
21949    */) ;;
21950    *) as_dir=$as_dir/ ;;
21951  esac
21952    for ac_exec_ext in '' $ac_executable_extensions; do
21953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21954    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21956    break 2
21957  fi
21958done
21959  done
21960IFS=$as_save_IFS
21961
21962  ;;
21963esac
21964fi
21965ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21966if test -n "$ac_pt_PKGCONFIG"; then
21967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21968printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21969else
21970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971printf "%s\n" "no" >&6; }
21972fi
21973
21974  if test "x$ac_pt_PKGCONFIG" = x; then
21975    PKGCONFIG="no"
21976  else
21977    case $cross_compiling:$ac_tool_warned in
21978yes:)
21979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21981ac_tool_warned=yes ;;
21982esac
21983    PKGCONFIG=$ac_pt_PKGCONFIG
21984  fi
21985else
21986  PKGCONFIG="$ac_cv_path_PKGCONFIG"
21987fi
21988
21989    fi
21990
21991    if test "x$PKGCONFIG" != "xno"; then
21992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21993printf %s "checking for hyper options with pkg-config... " >&6; }
21994            itexists=`
21995    if test -n "$want_hyper_path"; then
21996      PKG_CONFIG_LIBDIR="$want_hyper_path"
21997      export PKG_CONFIG_LIBDIR
21998    fi
21999         $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
22000
22001      if test -z "$itexists"; then
22002                        PKGCONFIG="no"
22003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22004printf "%s\n" "no" >&6; }
22005      else
22006        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22007printf "%s\n" "found" >&6; }
22008      fi
22009    fi
22010
22011
22012  if test "$PKGCONFIG" != "no" ; then
22013    LIB_HYPER=`
22014    if test -n "$want_hyper_path"; then
22015      PKG_CONFIG_LIBDIR="$want_hyper_path"
22016      export PKG_CONFIG_LIBDIR
22017    fi
22018
22019      $PKGCONFIG --libs-only-l hyper`
22020    CPP_HYPER=`
22021    if test -n "$want_hyper_path"; then
22022      PKG_CONFIG_LIBDIR="$want_hyper_path"
22023      export PKG_CONFIG_LIBDIR
22024    fi
22025       $PKGCONFIG --cflags-only-I hyper`
22026    LD_HYPER=`
22027    if test -n "$want_hyper_path"; then
22028      PKG_CONFIG_LIBDIR="$want_hyper_path"
22029      export PKG_CONFIG_LIBDIR
22030    fi
22031
22032      $PKGCONFIG --libs-only-L hyper`
22033  else
22034        LIB_HYPER="-lhyper -ldl -lpthread -lm"
22035    if test X"$want_hyper" != Xdefault; then
22036      CPP_HYPER=-I"$want_hyper_path/capi/include"
22037      LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22038    fi
22039  fi
22040  if test -n "$LIB_HYPER"; then
22041    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22042printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22044printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22045    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22046printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22047
22048    LDFLAGS="$LDFLAGS $LD_HYPER"
22049    CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22050    LIBS="$LIB_HYPER $LIBS"
22051
22052    if test "x$cross_compiling" != "xyes"; then
22053            DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22054    fi
22055
22056    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22057printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22058if test ${ac_cv_lib_hyper_hyper_io_new+y}
22059then :
22060  printf %s "(cached) " >&6
22061else $as_nop
22062  ac_check_lib_save_LIBS=$LIBS
22063LIBS="-lhyper  $LIBS"
22064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065/* end confdefs.h.  */
22066
22067
22068#ifdef __cplusplus
22069extern "C"
22070#endif
22071char hyper_io_new ();
22072int main (void)
22073{
22074return hyper_io_new ();
22075 ;
22076 return 0;
22077}
22078_ACEOF
22079if ac_fn_c_try_link "$LINENO"
22080then :
22081  ac_cv_lib_hyper_hyper_io_new=yes
22082else $as_nop
22083  ac_cv_lib_hyper_hyper_io_new=no
22084fi
22085rm -f core conftest.err conftest.$ac_objext conftest.beam \
22086    conftest$ac_exeext conftest.$ac_ext
22087LIBS=$ac_check_lib_save_LIBS
22088fi
22089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22090printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22091if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22092then :
22093
22094              for ac_header in hyper.h
22095do :
22096  ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22097if test "x$ac_cv_header_hyper_h" = xyes
22098then :
22099  printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22100 experimental="$experimental Hyper"
22101          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22102printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22103          curl_h1_msg="enabled (Hyper)"
22104          curl_h2_msg=$curl_h1_msg
22105          HYPER_ENABLED=1
22106
22107printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22108
22109          USE_HYPER=1
22110
22111          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22112          export CURL_LIBRARY_PATH
22113          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22114printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22115fi
22116
22117done
22118
22119else $as_nop
22120  for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22121        if test -f "$d/libhyper.a"; then
22122          as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22123        fi
22124      done
22125      as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22126
22127fi
22128
22129  fi
22130fi
22131
22132if test X"$want_hyper" != Xno; then
22133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22134printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22135
22136printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22137
22138  CURL_DISABLE_RTSP=1
22139
22140
22141else
22142
22143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22144printf %s "checking whether to support rtsp... " >&6; }
22145  # Check whether --enable-rtsp was given.
22146if test ${enable_rtsp+y}
22147then :
22148  enableval=$enable_rtsp;  case "$enableval" in
22149    no)
22150       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22151printf "%s\n" "no" >&6; }
22152
22153printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22154
22155       CURL_DISABLE_RTSP=1
22156
22157       ;;
22158    *)
22159       if test x$CURL_DISABLE_HTTP = x1 ; then
22160         as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22161       else
22162         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163printf "%s\n" "yes" >&6; }
22164         curl_rtsp_msg="enabled"
22165       fi
22166       ;;
22167    esac
22168else $as_nop
22169  if test "x$CURL_DISABLE_HTTP" != "x1"; then
22170          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22171printf "%s\n" "yes" >&6; }
22172          curl_rtsp_msg="enabled"
22173       else
22174          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175printf "%s\n" "no" >&6; }
22176       fi
22177
22178fi
22179
22180fi
22181
22182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22183printf %s "checking whether to support proxies... " >&6; }
22184# Check whether --enable-proxy was given.
22185if test ${enable_proxy+y}
22186then :
22187  enableval=$enable_proxy;  case "$enableval" in
22188  no)
22189       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22190printf "%s\n" "no" >&6; }
22191
22192printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22193
22194       CURL_DISABLE_PROXY=1
22195
22196       https_proxy="no"
22197       ;;
22198  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22199printf "%s\n" "yes" >&6; }
22200       ;;
22201  esac
22202else $as_nop
22203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22204printf "%s\n" "yes" >&6; }
22205
22206fi
22207
22208
22209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22210printf %s "checking whether to support dict... " >&6; }
22211# Check whether --enable-dict was given.
22212if test ${enable_dict+y}
22213then :
22214  enableval=$enable_dict;  case "$enableval" in
22215  no)
22216       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217printf "%s\n" "no" >&6; }
22218
22219printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22220
22221       CURL_DISABLE_DICT=1
22222
22223       ;;
22224  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22225printf "%s\n" "yes" >&6; }
22226       ;;
22227  esac
22228else $as_nop
22229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22230printf "%s\n" "yes" >&6; }
22231
22232fi
22233
22234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22235printf %s "checking whether to support telnet... " >&6; }
22236# Check whether --enable-telnet was given.
22237if test ${enable_telnet+y}
22238then :
22239  enableval=$enable_telnet;  case "$enableval" in
22240  no)
22241       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242printf "%s\n" "no" >&6; }
22243
22244printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22245
22246       CURL_DISABLE_TELNET=1
22247
22248       ;;
22249  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22250printf "%s\n" "yes" >&6; }
22251       ;;
22252  esac
22253else $as_nop
22254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22255printf "%s\n" "yes" >&6; }
22256
22257fi
22258
22259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22260printf %s "checking whether to support tftp... " >&6; }
22261# Check whether --enable-tftp was given.
22262if test ${enable_tftp+y}
22263then :
22264  enableval=$enable_tftp;  case "$enableval" in
22265  no)
22266       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22267printf "%s\n" "no" >&6; }
22268
22269printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22270
22271       CURL_DISABLE_TFTP=1
22272
22273       ;;
22274  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22275printf "%s\n" "yes" >&6; }
22276       ;;
22277  esac
22278else $as_nop
22279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22280printf "%s\n" "yes" >&6; }
22281
22282fi
22283
22284
22285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22286printf %s "checking whether to support pop3... " >&6; }
22287# Check whether --enable-pop3 was given.
22288if test ${enable_pop3+y}
22289then :
22290  enableval=$enable_pop3;  case "$enableval" in
22291  no)
22292       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22293printf "%s\n" "no" >&6; }
22294
22295printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22296
22297       CURL_DISABLE_POP3=1
22298
22299       ;;
22300  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22301printf "%s\n" "yes" >&6; }
22302       ;;
22303  esac
22304else $as_nop
22305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22306printf "%s\n" "yes" >&6; }
22307
22308fi
22309
22310
22311
22312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22313printf %s "checking whether to support imap... " >&6; }
22314# Check whether --enable-imap was given.
22315if test ${enable_imap+y}
22316then :
22317  enableval=$enable_imap;  case "$enableval" in
22318  no)
22319       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320printf "%s\n" "no" >&6; }
22321
22322printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22323
22324       CURL_DISABLE_IMAP=1
22325
22326       ;;
22327  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22328printf "%s\n" "yes" >&6; }
22329       ;;
22330  esac
22331else $as_nop
22332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22333printf "%s\n" "yes" >&6; }
22334
22335fi
22336
22337
22338
22339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22340printf %s "checking whether to support smb... " >&6; }
22341# Check whether --enable-smb was given.
22342if test ${enable_smb+y}
22343then :
22344  enableval=$enable_smb;  case "$enableval" in
22345  no)
22346       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22347printf "%s\n" "no" >&6; }
22348
22349printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22350
22351       CURL_DISABLE_SMB=1
22352
22353       ;;
22354  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22355printf "%s\n" "yes" >&6; }
22356       ;;
22357  esac
22358else $as_nop
22359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22360printf "%s\n" "yes" >&6; }
22361
22362fi
22363
22364
22365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22366printf %s "checking whether to support smtp... " >&6; }
22367# Check whether --enable-smtp was given.
22368if test ${enable_smtp+y}
22369then :
22370  enableval=$enable_smtp;  case "$enableval" in
22371  no)
22372       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22373printf "%s\n" "no" >&6; }
22374
22375printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22376
22377       CURL_DISABLE_SMTP=1
22378
22379       ;;
22380  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22381printf "%s\n" "yes" >&6; }
22382       ;;
22383  esac
22384else $as_nop
22385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22386printf "%s\n" "yes" >&6; }
22387
22388fi
22389
22390
22391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22392printf %s "checking whether to support gopher... " >&6; }
22393# Check whether --enable-gopher was given.
22394if test ${enable_gopher+y}
22395then :
22396  enableval=$enable_gopher;  case "$enableval" in
22397  no)
22398       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22399printf "%s\n" "no" >&6; }
22400
22401printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22402
22403       CURL_DISABLE_GOPHER=1
22404
22405       ;;
22406  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22407printf "%s\n" "yes" >&6; }
22408       ;;
22409  esac
22410else $as_nop
22411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22412printf "%s\n" "yes" >&6; }
22413
22414fi
22415
22416
22417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22418printf %s "checking whether to support mqtt... " >&6; }
22419# Check whether --enable-mqtt was given.
22420if test ${enable_mqtt+y}
22421then :
22422  enableval=$enable_mqtt;  case "$enableval" in
22423  no)
22424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22425printf "%s\n" "no" >&6; }
22426
22427printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22428
22429       CURL_DISABLE_MQTT=1
22430
22431       ;;
22432  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22433printf "%s\n" "yes" >&6; }
22434       ;;
22435  esac
22436else $as_nop
22437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438printf "%s\n" "no" >&6; }
22439
22440fi
22441
22442
22443
22444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22445printf %s "checking whether to provide built-in manual... " >&6; }
22446# Check whether --enable-manual was given.
22447if test ${enable_manual+y}
22448then :
22449  enableval=$enable_manual;  case "$enableval" in
22450  no)
22451       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22452printf "%s\n" "no" >&6; }
22453       ;;
22454  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22455printf "%s\n" "yes" >&6; }
22456       USE_MANUAL="1"
22457       ;;
22458  esac
22459else $as_nop
22460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22461printf "%s\n" "yes" >&6; }
22462       USE_MANUAL="1"
22463
22464fi
22465
22466
22467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22468printf %s "checking whether to enable generation of C code... " >&6; }
22469# Check whether --enable-libcurl_option was given.
22470if test ${enable_libcurl_option+y}
22471then :
22472  enableval=$enable_libcurl_option;  case "$enableval" in
22473  no)
22474       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22475printf "%s\n" "no" >&6; }
22476
22477printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22478
22479       curl_libcurl_msg="no"
22480       ;;
22481  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22482printf "%s\n" "yes" >&6; }
22483       ;;
22484  esac
22485else $as_nop
22486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22487printf "%s\n" "yes" >&6; }
22488
22489fi
22490
22491
22492
22493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22494printf %s "checking whether to use libgcc... " >&6; }
22495# Check whether --enable-libgcc was given.
22496if test ${enable_libgcc+y}
22497then :
22498  enableval=$enable_libgcc;  case "$enableval" in
22499  yes)
22500       LIBS="-lgcc $LIBS"
22501       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22502printf "%s\n" "yes" >&6; }
22503       ;;
22504  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22505printf "%s\n" "no" >&6; }
22506       ;;
22507  esac
22508else $as_nop
22509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22510printf "%s\n" "no" >&6; }
22511
22512fi
22513
22514
22515
22516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22517printf %s "checking if X/Open network library is required... " >&6; }
22518  tst_lib_xnet_required="no"
22519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520/* end confdefs.h.  */
22521
22522
22523int main (void)
22524{
22525#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22526  return 0;
22527#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22528  return 0;
22529#else
22530  force compilation error
22531#endif
22532}
22533
22534
22535_ACEOF
22536if ac_fn_c_try_compile "$LINENO"
22537then :
22538
22539    tst_lib_xnet_required="yes"
22540    LIBS="-lxnet $LIBS"
22541
22542fi
22543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22545printf "%s\n" "$tst_lib_xnet_required" >&6; }
22546
22547
22548ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22549if test "x$ac_cv_func_gethostbyname" = xyes
22550then :
22551  HAVE_GETHOSTBYNAME="1"
22552
22553else $as_nop
22554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22555printf %s "checking for gethostbyname in -lnsl... " >&6; }
22556if test ${ac_cv_lib_nsl_gethostbyname+y}
22557then :
22558  printf %s "(cached) " >&6
22559else $as_nop
22560  ac_check_lib_save_LIBS=$LIBS
22561LIBS="-lnsl  $LIBS"
22562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563/* end confdefs.h.  */
22564
22565
22566#ifdef __cplusplus
22567extern "C"
22568#endif
22569char gethostbyname ();
22570int main (void)
22571{
22572return gethostbyname ();
22573 ;
22574 return 0;
22575}
22576_ACEOF
22577if ac_fn_c_try_link "$LINENO"
22578then :
22579  ac_cv_lib_nsl_gethostbyname=yes
22580else $as_nop
22581  ac_cv_lib_nsl_gethostbyname=no
22582fi
22583rm -f core conftest.err conftest.$ac_objext conftest.beam \
22584    conftest$ac_exeext conftest.$ac_ext
22585LIBS=$ac_check_lib_save_LIBS
22586fi
22587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22588printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22589if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22590then :
22591  HAVE_GETHOSTBYNAME="1"
22592                             LIBS="-lnsl $LIBS"
22593
22594fi
22595
22596
22597fi
22598
22599
22600if test "$HAVE_GETHOSTBYNAME" != "1"
22601then
22602    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22603printf %s "checking for gethostbyname in -lsocket... " >&6; }
22604if test ${ac_cv_lib_socket_gethostbyname+y}
22605then :
22606  printf %s "(cached) " >&6
22607else $as_nop
22608  ac_check_lib_save_LIBS=$LIBS
22609LIBS="-lsocket  $LIBS"
22610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611/* end confdefs.h.  */
22612
22613
22614#ifdef __cplusplus
22615extern "C"
22616#endif
22617char gethostbyname ();
22618int main (void)
22619{
22620return gethostbyname ();
22621 ;
22622 return 0;
22623}
22624_ACEOF
22625if ac_fn_c_try_link "$LINENO"
22626then :
22627  ac_cv_lib_socket_gethostbyname=yes
22628else $as_nop
22629  ac_cv_lib_socket_gethostbyname=no
22630fi
22631rm -f core conftest.err conftest.$ac_objext conftest.beam \
22632    conftest$ac_exeext conftest.$ac_ext
22633LIBS=$ac_check_lib_save_LIBS
22634fi
22635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22636printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22637if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22638then :
22639  HAVE_GETHOSTBYNAME="1"
22640               LIBS="-lsocket $LIBS"
22641
22642fi
22643
22644fi
22645
22646if test "$HAVE_GETHOSTBYNAME" != "1"
22647then
22648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22649printf %s "checking for gethostbyname in -lwatt... " >&6; }
22650if test ${ac_cv_lib_watt_gethostbyname+y}
22651then :
22652  printf %s "(cached) " >&6
22653else $as_nop
22654  ac_check_lib_save_LIBS=$LIBS
22655LIBS="-lwatt  $LIBS"
22656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657/* end confdefs.h.  */
22658
22659
22660#ifdef __cplusplus
22661extern "C"
22662#endif
22663char gethostbyname ();
22664int main (void)
22665{
22666return gethostbyname ();
22667 ;
22668 return 0;
22669}
22670_ACEOF
22671if ac_fn_c_try_link "$LINENO"
22672then :
22673  ac_cv_lib_watt_gethostbyname=yes
22674else $as_nop
22675  ac_cv_lib_watt_gethostbyname=no
22676fi
22677rm -f core conftest.err conftest.$ac_objext conftest.beam \
22678    conftest$ac_exeext conftest.$ac_ext
22679LIBS=$ac_check_lib_save_LIBS
22680fi
22681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22682printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22683if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22684then :
22685  HAVE_GETHOSTBYNAME="1"
22686               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22687               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22688               LIBS="-lwatt $LIBS"
22689
22690fi
22691
22692fi
22693
22694if test "$HAVE_GETHOSTBYNAME" != "1"
22695then
22696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22697printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22698  my_ac_save_LIBS=$LIBS
22699  LIBS="-lnsl -lsocket $LIBS"
22700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701/* end confdefs.h.  */
22702
22703
22704
22705int main (void)
22706{
22707
22708      gethostbyname();
22709
22710 ;
22711 return 0;
22712}
22713
22714_ACEOF
22715if ac_fn_c_try_link "$LINENO"
22716then :
22717
22718    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22719printf "%s\n" "yes" >&6; }
22720    HAVE_GETHOSTBYNAME="1"
22721
22722else $as_nop
22723
22724    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725printf "%s\n" "no" >&6; }
22726    LIBS=$my_ac_save_LIBS
22727
22728fi
22729rm -f core conftest.err conftest.$ac_objext conftest.beam \
22730    conftest$ac_exeext conftest.$ac_ext
22731fi
22732
22733if test "$HAVE_GETHOSTBYNAME" != "1"
22734then
22735    if test "$curl_cv_header_windows_h" = "yes"; then
22736    if test "$curl_cv_header_winsock2_h" = "yes"; then
22737      winsock_LIB="-lws2_32"
22738    fi
22739    if test ! -z "$winsock_LIB"; then
22740      my_ac_save_LIBS=$LIBS
22741      LIBS="$winsock_LIB $LIBS"
22742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22743printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745/* end confdefs.h.  */
22746
22747
22748#ifdef HAVE_WINDOWS_H
22749#ifndef WIN32_LEAN_AND_MEAN
22750#define WIN32_LEAN_AND_MEAN
22751#endif
22752#include <windows.h>
22753#ifdef HAVE_WINSOCK2_H
22754#include <winsock2.h>
22755#endif
22756#endif
22757
22758int main (void)
22759{
22760
22761          gethostbyname("www.dummysite.com");
22762
22763 ;
22764 return 0;
22765}
22766
22767_ACEOF
22768if ac_fn_c_try_link "$LINENO"
22769then :
22770
22771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22772printf "%s\n" "yes" >&6; }
22773        HAVE_GETHOSTBYNAME="1"
22774
22775else $as_nop
22776
22777        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22778printf "%s\n" "no" >&6; }
22779        winsock_LIB=""
22780        LIBS=$my_ac_save_LIBS
22781
22782fi
22783rm -f core conftest.err conftest.$ac_objext conftest.beam \
22784    conftest$ac_exeext conftest.$ac_ext
22785    fi
22786  fi
22787fi
22788
22789if test "$HAVE_GETHOSTBYNAME" != "1"
22790then
22791    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22792printf %s "checking for gethostbyname for Minix 3... " >&6; }
22793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794/* end confdefs.h.  */
22795
22796
22797/* Older Minix versions may need <net/gen/netdb.h> here instead */
22798#include <netdb.h>
22799
22800int main (void)
22801{
22802
22803      gethostbyname("www.dummysite.com");
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"
22828then
22829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22830printf %s "checking for gethostbyname for eCos... " >&6; }
22831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832/* end confdefs.h.  */
22833
22834
22835#include <stdio.h>
22836#include <netdb.h>
22837
22838int main (void)
22839{
22840
22841      gethostbyname("www.dummysite.com");
22842
22843 ;
22844 return 0;
22845}
22846
22847_ACEOF
22848if ac_fn_c_try_link "$LINENO"
22849then :
22850
22851    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22852printf "%s\n" "yes" >&6; }
22853    HAVE_GETHOSTBYNAME="1"
22854
22855else $as_nop
22856
22857    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22858printf "%s\n" "no" >&6; }
22859
22860fi
22861rm -f core conftest.err conftest.$ac_objext conftest.beam \
22862    conftest$ac_exeext conftest.$ac_ext
22863fi
22864
22865if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22866then
22867    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22868printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870/* end confdefs.h.  */
22871
22872
22873  #define __USE_INLINE__
22874  #include <proto/bsdsocket.h>
22875  #ifdef __amigaos4__
22876  struct SocketIFace *ISocket = NULL;
22877  #else
22878  struct Library *SocketBase = NULL;
22879  #endif
22880
22881int main (void)
22882{
22883
22884      gethostbyname("www.dummysite.com");
22885
22886 ;
22887 return 0;
22888}
22889
22890_ACEOF
22891if ac_fn_c_try_link "$LINENO"
22892then :
22893
22894    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22895printf "%s\n" "yes" >&6; }
22896    HAVE_GETHOSTBYNAME="1"
22897    HAVE_PROTO_BSDSOCKET_H="1"
22898
22899printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22900
22901    HAVE_PROTO_BSDSOCKET_H=1
22902
22903
22904else $as_nop
22905
22906    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907printf "%s\n" "no" >&6; }
22908
22909fi
22910rm -f core conftest.err conftest.$ac_objext conftest.beam \
22911    conftest$ac_exeext conftest.$ac_ext
22912fi
22913
22914if test "$HAVE_GETHOSTBYNAME" != "1"
22915then
22916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22917printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22918if test ${ac_cv_lib_network_gethostbyname+y}
22919then :
22920  printf %s "(cached) " >&6
22921else $as_nop
22922  ac_check_lib_save_LIBS=$LIBS
22923LIBS="-lnetwork  $LIBS"
22924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22925/* end confdefs.h.  */
22926
22927
22928#ifdef __cplusplus
22929extern "C"
22930#endif
22931char gethostbyname ();
22932int main (void)
22933{
22934return gethostbyname ();
22935 ;
22936 return 0;
22937}
22938_ACEOF
22939if ac_fn_c_try_link "$LINENO"
22940then :
22941  ac_cv_lib_network_gethostbyname=yes
22942else $as_nop
22943  ac_cv_lib_network_gethostbyname=no
22944fi
22945rm -f core conftest.err conftest.$ac_objext conftest.beam \
22946    conftest$ac_exeext conftest.$ac_ext
22947LIBS=$ac_check_lib_save_LIBS
22948fi
22949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22950printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22951if test "x$ac_cv_lib_network_gethostbyname" = xyes
22952then :
22953  HAVE_GETHOSTBYNAME="1"
22954               LIBS="-lnetwork $LIBS"
22955
22956fi
22957
22958fi
22959
22960if test "$HAVE_GETHOSTBYNAME" != "1"; then
22961  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22962fi
22963
22964
22965curl_includes_winsock2="\
22966/* includes start */
22967#ifdef HAVE_WINDOWS_H
22968#  ifndef WIN32_LEAN_AND_MEAN
22969#    define WIN32_LEAN_AND_MEAN
22970#  endif
22971#  include <windows.h>
22972#  ifdef HAVE_WINSOCK2_H
22973#    include <winsock2.h>
22974#  endif
22975#endif
22976/* includes end */"
22977
22978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22979printf %s "checking for windows.h... " >&6; }
22980if test ${curl_cv_header_windows_h+y}
22981then :
22982  printf %s "(cached) " >&6
22983else $as_nop
22984
22985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22986/* end confdefs.h.  */
22987
22988
22989#undef inline
22990#ifndef WIN32_LEAN_AND_MEAN
22991#define WIN32_LEAN_AND_MEAN
22992#endif
22993#include <windows.h>
22994
22995int main (void)
22996{
22997
22998#if defined(__CYGWIN__) || defined(__CEGCC__)
22999        HAVE_WINDOWS_H shall not be defined.
23000#else
23001        int dummy=2*WINVER;
23002#endif
23003
23004 ;
23005 return 0;
23006}
23007
23008_ACEOF
23009if ac_fn_c_try_compile "$LINENO"
23010then :
23011
23012      curl_cv_header_windows_h="yes"
23013
23014else $as_nop
23015
23016      curl_cv_header_windows_h="no"
23017
23018fi
23019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23020
23021fi
23022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
23023printf "%s\n" "$curl_cv_header_windows_h" >&6; }
23024  case "$curl_cv_header_windows_h" in
23025    yes)
23026
23027printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23028
23029      ;;
23030  esac
23031
23032
23033    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23034printf %s "checking for winsock2.h... " >&6; }
23035if test ${curl_cv_header_winsock2_h+y}
23036then :
23037  printf %s "(cached) " >&6
23038else $as_nop
23039
23040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041/* end confdefs.h.  */
23042
23043
23044#undef inline
23045#ifndef WIN32_LEAN_AND_MEAN
23046#define WIN32_LEAN_AND_MEAN
23047#endif
23048#include <windows.h>
23049#include <winsock2.h>
23050
23051int main (void)
23052{
23053
23054#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23055        HAVE_WINSOCK2_H shall not be defined.
23056#else
23057        int dummy=2*IPPROTO_ESP;
23058#endif
23059
23060 ;
23061 return 0;
23062}
23063
23064_ACEOF
23065if ac_fn_c_try_compile "$LINENO"
23066then :
23067
23068      curl_cv_header_winsock2_h="yes"
23069
23070else $as_nop
23071
23072      curl_cv_header_winsock2_h="no"
23073
23074fi
23075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23076
23077fi
23078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
23079printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
23080  case "$curl_cv_header_winsock2_h" in
23081    yes)
23082
23083printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23084
23085      ;;
23086  esac
23087
23088
23089
23090curl_includes_bsdsocket="\
23091/* includes start */
23092#if defined(HAVE_PROTO_BSDSOCKET_H)
23093#  define __NO_NET_API
23094#  define __USE_INLINE__
23095#  include <proto/bsdsocket.h>
23096#  ifdef HAVE_SYS_IOCTL_H
23097#    include <sys/ioctl.h>
23098#  endif
23099#  ifdef __amigaos4__
23100struct SocketIFace *ISocket = NULL;
23101#  else
23102struct Library *SocketBase = NULL;
23103#  endif
23104#  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23105#endif
23106/* includes end */"
23107  ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23108"
23109if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23110then :
23111  printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23112
23113fi
23114
23115
23116
23117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23118printf %s "checking for connect in libraries... " >&6; }
23119  tst_connect_save_LIBS="$LIBS"
23120  tst_connect_need_LIBS="unknown"
23121  for tst_lib in '' '-lsocket' ; do
23122    if test "$tst_connect_need_LIBS" = "unknown"; then
23123      LIBS="$tst_lib $tst_connect_save_LIBS"
23124      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125/* end confdefs.h.  */
23126
23127
23128          $curl_includes_winsock2
23129          $curl_includes_bsdsocket
23130          #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
23131            int connect(int, void*, int);
23132          #endif
23133
23134int main (void)
23135{
23136
23137          if(0 != connect(0, 0, 0))
23138            return 1;
23139
23140 ;
23141 return 0;
23142}
23143
23144_ACEOF
23145if ac_fn_c_try_link "$LINENO"
23146then :
23147
23148        tst_connect_need_LIBS="$tst_lib"
23149
23150fi
23151rm -f core conftest.err conftest.$ac_objext conftest.beam \
23152    conftest$ac_exeext conftest.$ac_ext
23153    fi
23154  done
23155  LIBS="$tst_connect_save_LIBS"
23156  #
23157  case X-"$tst_connect_need_LIBS" in
23158    X-unknown)
23159      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23160printf "%s\n" "cannot find connect" >&6; }
23161      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23162      ;;
23163    X-)
23164      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23165printf "%s\n" "yes" >&6; }
23166      ;;
23167    *)
23168      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23169printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23170      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23171      ;;
23172  esac
23173
23174
23175CURL_NETWORK_LIBS=$LIBS
23176
23177
23178  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23179if test "x$ac_cv_header_sys_types_h" = xyes
23180then :
23181  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23182
23183fi
23184ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23185if test "x$ac_cv_header_sys_time_h" = xyes
23186then :
23187  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23188
23189fi
23190
23191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23192printf %s "checking for monotonic clock_gettime... " >&6; }
23193  #
23194  if test "x$dontwant_rt" = "xno" ; then
23195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196/* end confdefs.h.  */
23197
23198
23199#ifdef HAVE_SYS_TYPES_H
23200#include <sys/types.h>
23201#endif
23202#ifdef HAVE_SYS_TIME_H
23203#include <sys/time.h>
23204#endif
23205#include <time.h>
23206
23207int main (void)
23208{
23209
23210        struct timespec ts;
23211        (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23212
23213 ;
23214 return 0;
23215}
23216
23217_ACEOF
23218if ac_fn_c_try_compile "$LINENO"
23219then :
23220
23221      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23222printf "%s\n" "yes" >&6; }
23223      curl_func_clock_gettime="yes"
23224
23225else $as_nop
23226
23227      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23228printf "%s\n" "no" >&6; }
23229      curl_func_clock_gettime="no"
23230
23231fi
23232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23233  fi
23234
23235
23236    #
23237  if test "$curl_func_clock_gettime" = "yes"; then
23238    #
23239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23240printf %s "checking for clock_gettime in libraries... " >&6; }
23241    #
23242    curl_cv_save_LIBS="$LIBS"
23243    curl_cv_gclk_LIBS="unknown"
23244    #
23245    for x_xlibs in '' '-lrt' '-lposix4' ; do
23246      if test "$curl_cv_gclk_LIBS" = "unknown"; then
23247        if test -z "$x_xlibs"; then
23248          LIBS="$curl_cv_save_LIBS"
23249        else
23250          LIBS="$x_xlibs $curl_cv_save_LIBS"
23251        fi
23252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253/* end confdefs.h.  */
23254
23255
23256#ifdef HAVE_SYS_TYPES_H
23257#include <sys/types.h>
23258#endif
23259#ifdef HAVE_SYS_TIME_H
23260#include <sys/time.h>
23261#endif
23262#include <time.h>
23263
23264int main (void)
23265{
23266
23267            struct timespec ts;
23268            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23269
23270 ;
23271 return 0;
23272}
23273
23274_ACEOF
23275if ac_fn_c_try_link "$LINENO"
23276then :
23277
23278          curl_cv_gclk_LIBS="$x_xlibs"
23279
23280fi
23281rm -f core conftest.err conftest.$ac_objext conftest.beam \
23282    conftest$ac_exeext conftest.$ac_ext
23283      fi
23284    done
23285    #
23286    LIBS="$curl_cv_save_LIBS"
23287    #
23288    case X-"$curl_cv_gclk_LIBS" in
23289      X-unknown)
23290        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23291printf "%s\n" "cannot find clock_gettime" >&6; }
23292        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23293printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23294        curl_func_clock_gettime="no"
23295        ;;
23296      X-)
23297        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23298printf "%s\n" "no additional lib required" >&6; }
23299        curl_func_clock_gettime="yes"
23300        ;;
23301      *)
23302        if test -z "$curl_cv_save_LIBS"; then
23303          LIBS="$curl_cv_gclk_LIBS"
23304        else
23305          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23306        fi
23307        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23308printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23309        curl_func_clock_gettime="yes"
23310        ;;
23311    esac
23312    #
23313        if test "x$cross_compiling" != "xyes" &&
23314      test "$curl_func_clock_gettime" = "yes"; then
23315      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23316printf %s "checking if monotonic clock_gettime works... " >&6; }
23317
23318   case $host_os in
23319     darwin*)
23320      if test "$cross_compiling" = yes
23321then :
23322  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23323printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23324as_fn_error $? "cannot run test program while cross compiling
23325See \`config.log' for more details" "$LINENO" 5; }
23326else $as_nop
23327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328/* end confdefs.h.  */
23329
23330
23331#ifdef HAVE_STDLIB_H
23332#include <stdlib.h>
23333#endif
23334#ifdef HAVE_SYS_TYPES_H
23335#include <sys/types.h>
23336#endif
23337#ifdef HAVE_SYS_TIME_H
23338#include <sys/time.h>
23339#endif
23340#include <time.h>
23341
23342int main (void)
23343{
23344
23345          struct timespec ts;
23346          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23347            exit(0);
23348          else
23349            exit(1);
23350
23351 ;
23352 return 0;
23353}
23354
23355_ACEOF
23356if ac_fn_c_try_run "$LINENO"
23357then :
23358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23359printf "%s\n" "yes" >&6; }
23360
23361else $as_nop
23362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23363printf "%s\n" "no" >&6; }
23364        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23365printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23366        curl_func_clock_gettime="no"
23367        LIBS="$curl_cv_save_LIBS"
23368
23369fi
23370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23371  conftest.$ac_objext conftest.beam conftest.$ac_ext
23372fi
23373
23374     ;;
23375     *)
23376      old=$LD_LIBRARY_PATH
23377      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23378      export LD_LIBRARY_PATH
23379      if test "$cross_compiling" = yes
23380then :
23381  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23382printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23383as_fn_error $? "cannot run test program while cross compiling
23384See \`config.log' for more details" "$LINENO" 5; }
23385else $as_nop
23386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23387/* end confdefs.h.  */
23388
23389
23390#ifdef HAVE_STDLIB_H
23391#include <stdlib.h>
23392#endif
23393#ifdef HAVE_SYS_TYPES_H
23394#include <sys/types.h>
23395#endif
23396#ifdef HAVE_SYS_TIME_H
23397#include <sys/time.h>
23398#endif
23399#include <time.h>
23400
23401int main (void)
23402{
23403
23404          struct timespec ts;
23405          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23406            exit(0);
23407          else
23408            exit(1);
23409
23410 ;
23411 return 0;
23412}
23413
23414_ACEOF
23415if ac_fn_c_try_run "$LINENO"
23416then :
23417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23418printf "%s\n" "yes" >&6; }
23419
23420else $as_nop
23421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23422printf "%s\n" "no" >&6; }
23423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23424printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23425        curl_func_clock_gettime="no"
23426        LIBS="$curl_cv_save_LIBS"
23427
23428fi
23429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23430  conftest.$ac_objext conftest.beam conftest.$ac_ext
23431fi
23432
23433      LD_LIBRARY_PATH=$old # restore
23434     ;;
23435   esac
23436
23437    fi
23438    #
23439    case "$curl_func_clock_gettime" in
23440      yes)
23441
23442printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23443
23444        ;;
23445    esac
23446    #
23447  fi
23448  #
23449
23450
23451CURL_NETWORK_AND_TIME_LIBS=$LIBS
23452
23453
23454
23455clean_CPPFLAGS=$CPPFLAGS
23456clean_LDFLAGS=$LDFLAGS
23457clean_LIBS=$LIBS
23458ZLIB_LIBS=""
23459
23460# Check whether --with-zlib was given.
23461if test ${with_zlib+y}
23462then :
23463  withval=$with_zlib; OPT_ZLIB="$withval"
23464fi
23465
23466
23467if test "$OPT_ZLIB" = "no" ; then
23468    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23469printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23470else
23471  if test "$OPT_ZLIB" = "yes" ; then
23472    OPT_ZLIB=""
23473  fi
23474
23475  if test -z "$OPT_ZLIB" ; then
23476
23477    if test -n "$PKG_CONFIG"; then
23478      PKGCONFIG="$PKG_CONFIG"
23479    else
23480      if test -n "$ac_tool_prefix"; then
23481  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23482set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23484printf %s "checking for $ac_word... " >&6; }
23485if test ${ac_cv_path_PKGCONFIG+y}
23486then :
23487  printf %s "(cached) " >&6
23488else $as_nop
23489  case $PKGCONFIG in
23490  [\\/]* | ?:[\\/]*)
23491  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23492  ;;
23493  *)
23494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23495as_dummy="$PATH:/usr/bin:/usr/local/bin"
23496for as_dir in $as_dummy
23497do
23498  IFS=$as_save_IFS
23499  case $as_dir in #(((
23500    '') as_dir=./ ;;
23501    */) ;;
23502    *) as_dir=$as_dir/ ;;
23503  esac
23504    for ac_exec_ext in '' $ac_executable_extensions; do
23505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23506    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23508    break 2
23509  fi
23510done
23511  done
23512IFS=$as_save_IFS
23513
23514  ;;
23515esac
23516fi
23517PKGCONFIG=$ac_cv_path_PKGCONFIG
23518if test -n "$PKGCONFIG"; then
23519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23520printf "%s\n" "$PKGCONFIG" >&6; }
23521else
23522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23523printf "%s\n" "no" >&6; }
23524fi
23525
23526
23527fi
23528if test -z "$ac_cv_path_PKGCONFIG"; then
23529  ac_pt_PKGCONFIG=$PKGCONFIG
23530  # Extract the first word of "pkg-config", so it can be a program name with args.
23531set dummy pkg-config; ac_word=$2
23532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23533printf %s "checking for $ac_word... " >&6; }
23534if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23535then :
23536  printf %s "(cached) " >&6
23537else $as_nop
23538  case $ac_pt_PKGCONFIG in
23539  [\\/]* | ?:[\\/]*)
23540  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23541  ;;
23542  *)
23543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23544as_dummy="$PATH:/usr/bin:/usr/local/bin"
23545for as_dir in $as_dummy
23546do
23547  IFS=$as_save_IFS
23548  case $as_dir in #(((
23549    '') as_dir=./ ;;
23550    */) ;;
23551    *) as_dir=$as_dir/ ;;
23552  esac
23553    for ac_exec_ext in '' $ac_executable_extensions; do
23554  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23555    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23557    break 2
23558  fi
23559done
23560  done
23561IFS=$as_save_IFS
23562
23563  ;;
23564esac
23565fi
23566ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23567if test -n "$ac_pt_PKGCONFIG"; then
23568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23569printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23570else
23571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23572printf "%s\n" "no" >&6; }
23573fi
23574
23575  if test "x$ac_pt_PKGCONFIG" = x; then
23576    PKGCONFIG="no"
23577  else
23578    case $cross_compiling:$ac_tool_warned in
23579yes:)
23580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23582ac_tool_warned=yes ;;
23583esac
23584    PKGCONFIG=$ac_pt_PKGCONFIG
23585  fi
23586else
23587  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23588fi
23589
23590    fi
23591
23592    if test "x$PKGCONFIG" != "xno"; then
23593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23594printf %s "checking for zlib options with pkg-config... " >&6; }
23595            itexists=`
23596    if test -n ""; then
23597      PKG_CONFIG_LIBDIR=""
23598      export PKG_CONFIG_LIBDIR
23599    fi
23600         $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23601
23602      if test -z "$itexists"; then
23603                        PKGCONFIG="no"
23604        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23605printf "%s\n" "no" >&6; }
23606      else
23607        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23608printf "%s\n" "found" >&6; }
23609      fi
23610    fi
23611
23612
23613    if test "$PKGCONFIG" != "no" ; then
23614      LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
23615      LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23616      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
23617      OPT_ZLIB=""
23618      HAVE_LIBZ="1"
23619    fi
23620
23621    if test -z "$HAVE_LIBZ"; then
23622
23623
23624      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23625printf %s "checking for inflateEnd in -lz... " >&6; }
23626if test ${ac_cv_lib_z_inflateEnd+y}
23627then :
23628  printf %s "(cached) " >&6
23629else $as_nop
23630  ac_check_lib_save_LIBS=$LIBS
23631LIBS="-lz  $LIBS"
23632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23633/* end confdefs.h.  */
23634
23635
23636#ifdef __cplusplus
23637extern "C"
23638#endif
23639char inflateEnd ();
23640int main (void)
23641{
23642return inflateEnd ();
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_link "$LINENO"
23648then :
23649  ac_cv_lib_z_inflateEnd=yes
23650else $as_nop
23651  ac_cv_lib_z_inflateEnd=no
23652fi
23653rm -f core conftest.err conftest.$ac_objext conftest.beam \
23654    conftest$ac_exeext conftest.$ac_ext
23655LIBS=$ac_check_lib_save_LIBS
23656fi
23657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23658printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23659if test "x$ac_cv_lib_z_inflateEnd" = xyes
23660then :
23661                     HAVE_LIBZ="1"
23662                    LIBS="-lz $LIBS"
23663else $as_nop
23664                     OPT_ZLIB="/usr/local"
23665fi
23666
23667    fi
23668  fi
23669
23670    if test -n "$OPT_ZLIB"; then
23671     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23672     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23673  fi
23674
23675  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23676if test "x$ac_cv_header_zlib_h" = xyes
23677then :
23678
23679        HAVE_ZLIB_H="1"
23680        if test "$HAVE_LIBZ" != "1"; then
23681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23682printf %s "checking for gzread in -lz... " >&6; }
23683if test ${ac_cv_lib_z_gzread+y}
23684then :
23685  printf %s "(cached) " >&6
23686else $as_nop
23687  ac_check_lib_save_LIBS=$LIBS
23688LIBS="-lz  $LIBS"
23689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23690/* end confdefs.h.  */
23691
23692
23693#ifdef __cplusplus
23694extern "C"
23695#endif
23696char gzread ();
23697int main (void)
23698{
23699return gzread ();
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704if ac_fn_c_try_link "$LINENO"
23705then :
23706  ac_cv_lib_z_gzread=yes
23707else $as_nop
23708  ac_cv_lib_z_gzread=no
23709fi
23710rm -f core conftest.err conftest.$ac_objext conftest.beam \
23711    conftest$ac_exeext conftest.$ac_ext
23712LIBS=$ac_check_lib_save_LIBS
23713fi
23714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23715printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23716if test "x$ac_cv_lib_z_gzread" = xyes
23717then :
23718
23719                                      HAVE_LIBZ="1"
23720                   LIBS="-lz $LIBS"
23721
23722else $as_nop
23723   CPPFLAGS=$clean_CPPFLAGS
23724                   LDFLAGS=$clean_LDFLAGS
23725fi
23726
23727    fi
23728
23729else $as_nop
23730
23731            CPPFLAGS=$clean_CPPFLAGS
23732      LDFLAGS=$clean_LDFLAGS
23733
23734fi
23735
23736
23737  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23738  then
23739    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23740printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23741    HAVE_LIBZ=""
23742    CPPFLAGS=$clean_CPPFLAGS
23743    LDFLAGS=$clean_LDFLAGS
23744    LIBS=$clean_LIBS
23745  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23746  then
23747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23748printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23749    CPPFLAGS=$clean_CPPFLAGS
23750    LDFLAGS=$clean_LDFLAGS
23751    LIBS=$clean_LIBS
23752  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23753  then
23754
23755
23756printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23757
23758
23759    ZLIB_LIBS="-lz"
23760    LIBS="-lz $clean_LIBS"
23761
23762        AMFIXLIB="1"
23763    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23764printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23765    curl_zlib_msg="enabled"
23766  fi
23767fi
23768
23769 if test x"$AMFIXLIB" = x1; then
23770  HAVE_LIBZ_TRUE=
23771  HAVE_LIBZ_FALSE='#'
23772else
23773  HAVE_LIBZ_TRUE='#'
23774  HAVE_LIBZ_FALSE=
23775fi
23776
23777
23778
23779
23780
23781OPT_BROTLI=off
23782
23783# Check whether --with-brotli was given.
23784if test ${with_brotli+y}
23785then :
23786  withval=$with_brotli; OPT_BROTLI=$withval
23787fi
23788
23789
23790if test X"$OPT_BROTLI" != Xno; then
23791    CLEANLDFLAGS="$LDFLAGS"
23792  CLEANCPPFLAGS="$CPPFLAGS"
23793  CLEANLIBS="$LIBS"
23794
23795  case "$OPT_BROTLI" in
23796  yes)
23797
23798    if test -n "$PKG_CONFIG"; then
23799      PKGCONFIG="$PKG_CONFIG"
23800    else
23801      if test -n "$ac_tool_prefix"; then
23802  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23803set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23805printf %s "checking for $ac_word... " >&6; }
23806if test ${ac_cv_path_PKGCONFIG+y}
23807then :
23808  printf %s "(cached) " >&6
23809else $as_nop
23810  case $PKGCONFIG in
23811  [\\/]* | ?:[\\/]*)
23812  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23813  ;;
23814  *)
23815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23816as_dummy="$PATH:/usr/bin:/usr/local/bin"
23817for as_dir in $as_dummy
23818do
23819  IFS=$as_save_IFS
23820  case $as_dir in #(((
23821    '') as_dir=./ ;;
23822    */) ;;
23823    *) as_dir=$as_dir/ ;;
23824  esac
23825    for ac_exec_ext in '' $ac_executable_extensions; do
23826  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23827    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23828    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23829    break 2
23830  fi
23831done
23832  done
23833IFS=$as_save_IFS
23834
23835  ;;
23836esac
23837fi
23838PKGCONFIG=$ac_cv_path_PKGCONFIG
23839if test -n "$PKGCONFIG"; then
23840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23841printf "%s\n" "$PKGCONFIG" >&6; }
23842else
23843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23844printf "%s\n" "no" >&6; }
23845fi
23846
23847
23848fi
23849if test -z "$ac_cv_path_PKGCONFIG"; then
23850  ac_pt_PKGCONFIG=$PKGCONFIG
23851  # Extract the first word of "pkg-config", so it can be a program name with args.
23852set dummy pkg-config; ac_word=$2
23853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23854printf %s "checking for $ac_word... " >&6; }
23855if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23856then :
23857  printf %s "(cached) " >&6
23858else $as_nop
23859  case $ac_pt_PKGCONFIG in
23860  [\\/]* | ?:[\\/]*)
23861  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23862  ;;
23863  *)
23864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23865as_dummy="$PATH:/usr/bin:/usr/local/bin"
23866for as_dir in $as_dummy
23867do
23868  IFS=$as_save_IFS
23869  case $as_dir in #(((
23870    '') as_dir=./ ;;
23871    */) ;;
23872    *) as_dir=$as_dir/ ;;
23873  esac
23874    for ac_exec_ext in '' $ac_executable_extensions; do
23875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23876    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23878    break 2
23879  fi
23880done
23881  done
23882IFS=$as_save_IFS
23883
23884  ;;
23885esac
23886fi
23887ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23888if test -n "$ac_pt_PKGCONFIG"; then
23889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23890printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23891else
23892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23893printf "%s\n" "no" >&6; }
23894fi
23895
23896  if test "x$ac_pt_PKGCONFIG" = x; then
23897    PKGCONFIG="no"
23898  else
23899    case $cross_compiling:$ac_tool_warned in
23900yes:)
23901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23903ac_tool_warned=yes ;;
23904esac
23905    PKGCONFIG=$ac_pt_PKGCONFIG
23906  fi
23907else
23908  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23909fi
23910
23911    fi
23912
23913    if test "x$PKGCONFIG" != "xno"; then
23914      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23915printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23916            itexists=`
23917    if test -n ""; then
23918      PKG_CONFIG_LIBDIR=""
23919      export PKG_CONFIG_LIBDIR
23920    fi
23921         $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23922
23923      if test -z "$itexists"; then
23924                        PKGCONFIG="no"
23925        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23926printf "%s\n" "no" >&6; }
23927      else
23928        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23929printf "%s\n" "found" >&6; }
23930      fi
23931    fi
23932
23933
23934    if test "$PKGCONFIG" != "no" ; then
23935      LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23936      LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23937      CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23938      version=`$PKGCONFIG --modversion libbrotlidec`
23939      DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23940    fi
23941
23942    ;;
23943  off)
23944        ;;
23945  *)
23946        PREFIX_BROTLI=$OPT_BROTLI
23947    ;;
23948  esac
23949
23950    if test -n "$PREFIX_BROTLI"; then
23951    LIB_BROTLI="-lbrotlidec"
23952    LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23953    CPP_BROTLI=-I${PREFIX_BROTLI}/include
23954    DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23955  fi
23956
23957  LDFLAGS="$LDFLAGS $LD_BROTLI"
23958  CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23959  LIBS="$LIB_BROTLI $LIBS"
23960
23961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23962printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23963if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23964then :
23965  printf %s "(cached) " >&6
23966else $as_nop
23967  ac_check_lib_save_LIBS=$LIBS
23968LIBS="-lbrotlidec  $LIBS"
23969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970/* end confdefs.h.  */
23971
23972
23973#ifdef __cplusplus
23974extern "C"
23975#endif
23976char BrotliDecoderDecompress ();
23977int main (void)
23978{
23979return BrotliDecoderDecompress ();
23980 ;
23981 return 0;
23982}
23983_ACEOF
23984if ac_fn_c_try_link "$LINENO"
23985then :
23986  ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23987else $as_nop
23988  ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23989fi
23990rm -f core conftest.err conftest.$ac_objext conftest.beam \
23991    conftest$ac_exeext conftest.$ac_ext
23992LIBS=$ac_check_lib_save_LIBS
23993fi
23994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23995printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23996if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23997then :
23998  printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23999
24000  LIBS="-lbrotlidec $LIBS"
24001
24002fi
24003
24004
24005         for ac_header in brotli/decode.h
24006do :
24007  ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24008if test "x$ac_cv_header_brotli_decode_h" = xyes
24009then :
24010  printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24011 curl_brotli_msg="enabled (libbrotlidec)"
24012    HAVE_BROTLI=1
24013
24014printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24015
24016    HAVE_BROTLI=1
24017
24018
24019fi
24020
24021done
24022
24023  if test X"$OPT_BROTLI" != Xoff &&
24024     test "$HAVE_BROTLI" != "1"; then
24025    as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24026  fi
24027
24028  if test "$HAVE_BROTLI" = "1"; then
24029    if test -n "$DIR_BROTLI"; then
24030
24031       if test "x$cross_compiling" != "xyes"; then
24032         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24033         export CURL_LIBRARY_PATH
24034         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24035printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24036       fi
24037    fi
24038  else
24039        LDFLAGS=$CLEANLDFLAGS
24040    CPPFLAGS=$CLEANCPPFLAGS
24041    LIBS=$CLEANLIBS
24042  fi
24043fi
24044
24045
24046OPT_ZSTD=off
24047
24048# Check whether --with-zstd was given.
24049if test ${with_zstd+y}
24050then :
24051  withval=$with_zstd; OPT_ZSTD=$withval
24052fi
24053
24054
24055if test X"$OPT_ZSTD" != Xno; then
24056    CLEANLDFLAGS="$LDFLAGS"
24057  CLEANCPPFLAGS="$CPPFLAGS"
24058  CLEANLIBS="$LIBS"
24059
24060  case "$OPT_ZSTD" in
24061  yes)
24062
24063    if test -n "$PKG_CONFIG"; then
24064      PKGCONFIG="$PKG_CONFIG"
24065    else
24066      if test -n "$ac_tool_prefix"; then
24067  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24068set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24070printf %s "checking for $ac_word... " >&6; }
24071if test ${ac_cv_path_PKGCONFIG+y}
24072then :
24073  printf %s "(cached) " >&6
24074else $as_nop
24075  case $PKGCONFIG in
24076  [\\/]* | ?:[\\/]*)
24077  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24078  ;;
24079  *)
24080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24081as_dummy="$PATH:/usr/bin:/usr/local/bin"
24082for as_dir in $as_dummy
24083do
24084  IFS=$as_save_IFS
24085  case $as_dir in #(((
24086    '') as_dir=./ ;;
24087    */) ;;
24088    *) as_dir=$as_dir/ ;;
24089  esac
24090    for ac_exec_ext in '' $ac_executable_extensions; do
24091  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24092    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24093    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24094    break 2
24095  fi
24096done
24097  done
24098IFS=$as_save_IFS
24099
24100  ;;
24101esac
24102fi
24103PKGCONFIG=$ac_cv_path_PKGCONFIG
24104if test -n "$PKGCONFIG"; then
24105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24106printf "%s\n" "$PKGCONFIG" >&6; }
24107else
24108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109printf "%s\n" "no" >&6; }
24110fi
24111
24112
24113fi
24114if test -z "$ac_cv_path_PKGCONFIG"; then
24115  ac_pt_PKGCONFIG=$PKGCONFIG
24116  # Extract the first word of "pkg-config", so it can be a program name with args.
24117set dummy pkg-config; ac_word=$2
24118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24119printf %s "checking for $ac_word... " >&6; }
24120if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24121then :
24122  printf %s "(cached) " >&6
24123else $as_nop
24124  case $ac_pt_PKGCONFIG in
24125  [\\/]* | ?:[\\/]*)
24126  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24127  ;;
24128  *)
24129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24130as_dummy="$PATH:/usr/bin:/usr/local/bin"
24131for as_dir in $as_dummy
24132do
24133  IFS=$as_save_IFS
24134  case $as_dir in #(((
24135    '') as_dir=./ ;;
24136    */) ;;
24137    *) as_dir=$as_dir/ ;;
24138  esac
24139    for ac_exec_ext in '' $ac_executable_extensions; do
24140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24141    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24143    break 2
24144  fi
24145done
24146  done
24147IFS=$as_save_IFS
24148
24149  ;;
24150esac
24151fi
24152ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24153if test -n "$ac_pt_PKGCONFIG"; then
24154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24155printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24156else
24157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158printf "%s\n" "no" >&6; }
24159fi
24160
24161  if test "x$ac_pt_PKGCONFIG" = x; then
24162    PKGCONFIG="no"
24163  else
24164    case $cross_compiling:$ac_tool_warned in
24165yes:)
24166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24168ac_tool_warned=yes ;;
24169esac
24170    PKGCONFIG=$ac_pt_PKGCONFIG
24171  fi
24172else
24173  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24174fi
24175
24176    fi
24177
24178    if test "x$PKGCONFIG" != "xno"; then
24179      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24180printf %s "checking for libzstd options with pkg-config... " >&6; }
24181            itexists=`
24182    if test -n ""; then
24183      PKG_CONFIG_LIBDIR=""
24184      export PKG_CONFIG_LIBDIR
24185    fi
24186         $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24187
24188      if test -z "$itexists"; then
24189                        PKGCONFIG="no"
24190        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24191printf "%s\n" "no" >&6; }
24192      else
24193        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24194printf "%s\n" "found" >&6; }
24195      fi
24196    fi
24197
24198
24199    if test "$PKGCONFIG" != "no" ; then
24200      LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24201      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24202      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24203      version=`$PKGCONFIG --modversion libzstd`
24204      DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24205    fi
24206
24207    ;;
24208  off)
24209        ;;
24210  *)
24211        PREFIX_ZSTD=$OPT_ZSTD
24212    ;;
24213  esac
24214
24215    if test -n "$PREFIX_ZSTD"; then
24216    LIB_ZSTD="-lzstd"
24217    LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24218    CPP_ZSTD=-I${PREFIX_ZSTD}/include
24219    DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24220  fi
24221
24222  LDFLAGS="$LDFLAGS $LD_ZSTD"
24223  CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24224  LIBS="$LIB_ZSTD $LIBS"
24225
24226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24227printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24228if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24229then :
24230  printf %s "(cached) " >&6
24231else $as_nop
24232  ac_check_lib_save_LIBS=$LIBS
24233LIBS="-lzstd  $LIBS"
24234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235/* end confdefs.h.  */
24236
24237
24238#ifdef __cplusplus
24239extern "C"
24240#endif
24241char ZSTD_createDStream ();
24242int main (void)
24243{
24244return ZSTD_createDStream ();
24245 ;
24246 return 0;
24247}
24248_ACEOF
24249if ac_fn_c_try_link "$LINENO"
24250then :
24251  ac_cv_lib_zstd_ZSTD_createDStream=yes
24252else $as_nop
24253  ac_cv_lib_zstd_ZSTD_createDStream=no
24254fi
24255rm -f core conftest.err conftest.$ac_objext conftest.beam \
24256    conftest$ac_exeext conftest.$ac_ext
24257LIBS=$ac_check_lib_save_LIBS
24258fi
24259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24260printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24261if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24262then :
24263  printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24264
24265  LIBS="-lzstd $LIBS"
24266
24267fi
24268
24269
24270         for ac_header in zstd.h
24271do :
24272  ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24273if test "x$ac_cv_header_zstd_h" = xyes
24274then :
24275  printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24276 curl_zstd_msg="enabled (libzstd)"
24277    HAVE_ZSTD=1
24278
24279printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24280
24281    HAVE_ZSTD=1
24282
24283
24284fi
24285
24286done
24287
24288  if test X"$OPT_ZSTD" != Xoff &&
24289     test "$HAVE_ZSTD" != "1"; then
24290    as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24291  fi
24292
24293  if test "$HAVE_ZSTD" = "1"; then
24294    if test -n "$DIR_ZSTD"; then
24295
24296       if test "x$cross_compiling" != "xyes"; then
24297         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24298         export CURL_LIBRARY_PATH
24299         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24300printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24301       fi
24302    fi
24303  else
24304        LDFLAGS=$CLEANLDFLAGS
24305    CPPFLAGS=$CLEANCPPFLAGS
24306    LIBS=$CLEANLIBS
24307  fi
24308fi
24309
24310
24311LDAPLIBNAME=""
24312
24313# Check whether --with-ldap-lib was given.
24314if test ${with_ldap_lib+y}
24315then :
24316  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24317fi
24318
24319
24320LBERLIBNAME=""
24321
24322# Check whether --with-lber-lib was given.
24323if test ${with_lber_lib+y}
24324then :
24325  withval=$with_lber_lib; LBERLIBNAME="$withval"
24326fi
24327
24328
24329if test x$CURL_DISABLE_LDAP != x1 ; then
24330
24331
24332    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24333printf %s "checking for lber.h... " >&6; }
24334if test ${curl_cv_header_lber_h+y}
24335then :
24336  printf %s "(cached) " >&6
24337else $as_nop
24338
24339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340/* end confdefs.h.  */
24341
24342
24343#undef inline
24344#ifdef HAVE_WINDOWS_H
24345#ifndef WIN32_LEAN_AND_MEAN
24346#define WIN32_LEAN_AND_MEAN
24347#endif
24348#include <windows.h>
24349#else
24350#ifdef HAVE_SYS_TYPES_H
24351#include <sys/types.h>
24352#endif
24353#endif
24354#ifndef NULL
24355#define NULL (void *)0
24356#endif
24357#include <lber.h>
24358
24359int main (void)
24360{
24361
24362        BerValue *bvp = NULL;
24363        BerElement *bep = ber_init(bvp);
24364        ber_free(bep, 1);
24365
24366 ;
24367 return 0;
24368}
24369
24370_ACEOF
24371if ac_fn_c_try_compile "$LINENO"
24372then :
24373
24374      curl_cv_header_lber_h="yes"
24375
24376else $as_nop
24377
24378      curl_cv_header_lber_h="no"
24379
24380fi
24381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24382
24383fi
24384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24385printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24386  if test "$curl_cv_header_lber_h" = "yes"; then
24387
24388printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24389
24390    #
24391    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24392/* end confdefs.h.  */
24393
24394
24395#undef inline
24396#ifdef HAVE_WINDOWS_H
24397#ifndef WIN32_LEAN_AND_MEAN
24398#define WIN32_LEAN_AND_MEAN
24399#endif
24400#include <windows.h>
24401#else
24402#ifdef HAVE_SYS_TYPES_H
24403#include <sys/types.h>
24404#endif
24405#endif
24406#ifndef NULL
24407#define NULL (void *)0
24408#endif
24409#ifndef LDAP_DEPRECATED
24410#define LDAP_DEPRECATED 1
24411#endif
24412#include <ldap.h>
24413
24414int main (void)
24415{
24416
24417        BerValue *bvp = NULL;
24418        BerElement *bep = ber_init(bvp);
24419        ber_free(bep, 1);
24420
24421 ;
24422 return 0;
24423}
24424
24425_ACEOF
24426if ac_fn_c_try_compile "$LINENO"
24427then :
24428
24429      curl_cv_need_header_lber_h="no"
24430
24431else $as_nop
24432
24433      curl_cv_need_header_lber_h="yes"
24434
24435fi
24436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24437    #
24438    case "$curl_cv_need_header_lber_h" in
24439      yes)
24440
24441printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24442
24443        ;;
24444    esac
24445  fi
24446
24447
24448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24449printf %s "checking for ldap.h... " >&6; }
24450if test ${curl_cv_header_ldap_h+y}
24451then :
24452  printf %s "(cached) " >&6
24453else $as_nop
24454
24455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24456/* end confdefs.h.  */
24457
24458
24459#undef inline
24460#ifdef HAVE_WINDOWS_H
24461#ifndef WIN32_LEAN_AND_MEAN
24462#define WIN32_LEAN_AND_MEAN
24463#endif
24464#include <windows.h>
24465#else
24466#ifdef HAVE_SYS_TYPES_H
24467#include <sys/types.h>
24468#endif
24469#endif
24470#ifndef LDAP_DEPRECATED
24471#define LDAP_DEPRECATED 1
24472#endif
24473#ifdef NEED_LBER_H
24474#include <lber.h>
24475#endif
24476#include <ldap.h>
24477
24478int main (void)
24479{
24480
24481        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24482        int res = ldap_unbind(ldp);
24483
24484 ;
24485 return 0;
24486}
24487
24488_ACEOF
24489if ac_fn_c_try_compile "$LINENO"
24490then :
24491
24492      curl_cv_header_ldap_h="yes"
24493
24494else $as_nop
24495
24496      curl_cv_header_ldap_h="no"
24497
24498fi
24499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24500
24501fi
24502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24503printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24504  case "$curl_cv_header_ldap_h" in
24505    yes)
24506
24507printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24508
24509      ;;
24510  esac
24511
24512
24513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24514printf %s "checking for ldap_ssl.h... " >&6; }
24515if test ${curl_cv_header_ldap_ssl_h+y}
24516then :
24517  printf %s "(cached) " >&6
24518else $as_nop
24519
24520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521/* end confdefs.h.  */
24522
24523
24524#undef inline
24525#ifdef HAVE_WINDOWS_H
24526#ifndef WIN32_LEAN_AND_MEAN
24527#define WIN32_LEAN_AND_MEAN
24528#endif
24529#include <windows.h>
24530#else
24531#ifdef HAVE_SYS_TYPES_H
24532#include <sys/types.h>
24533#endif
24534#endif
24535#ifndef LDAP_DEPRECATED
24536#define LDAP_DEPRECATED 1
24537#endif
24538#ifdef NEED_LBER_H
24539#include <lber.h>
24540#endif
24541#ifdef HAVE_LDAP_H
24542#include <ldap.h>
24543#endif
24544#include <ldap_ssl.h>
24545
24546int main (void)
24547{
24548
24549        LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
24550
24551 ;
24552 return 0;
24553}
24554
24555_ACEOF
24556if ac_fn_c_try_compile "$LINENO"
24557then :
24558
24559      curl_cv_header_ldap_ssl_h="yes"
24560
24561else $as_nop
24562
24563      curl_cv_header_ldap_ssl_h="no"
24564
24565fi
24566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24567
24568fi
24569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24570printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24571  case "$curl_cv_header_ldap_ssl_h" in
24572    yes)
24573
24574printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24575
24576      ;;
24577  esac
24578
24579
24580  if test -z "$LDAPLIBNAME" ; then
24581    if test "$curl_cv_native_windows" = "yes"; then
24582            LDAPLIBNAME="wldap32"
24583      LBERLIBNAME="no"
24584    fi
24585  fi
24586
24587  if test "$LDAPLIBNAME" ; then
24588    as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24590printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24591if eval test \${$as_ac_Lib+y}
24592then :
24593  printf %s "(cached) " >&6
24594else $as_nop
24595  ac_check_lib_save_LIBS=$LIBS
24596LIBS="-l"$LDAPLIBNAME"  $LIBS"
24597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598/* end confdefs.h.  */
24599
24600
24601#ifdef __cplusplus
24602extern "C"
24603#endif
24604char ldap_init ();
24605int main (void)
24606{
24607return ldap_init ();
24608 ;
24609 return 0;
24610}
24611_ACEOF
24612if ac_fn_c_try_link "$LINENO"
24613then :
24614  eval "$as_ac_Lib=yes"
24615else $as_nop
24616  eval "$as_ac_Lib=no"
24617fi
24618rm -f core conftest.err conftest.$ac_objext conftest.beam \
24619    conftest$ac_exeext conftest.$ac_ext
24620LIBS=$ac_check_lib_save_LIBS
24621fi
24622eval ac_res=\$$as_ac_Lib
24623	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24624printf "%s\n" "$ac_res" >&6; }
24625if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24626then :
24627  cat >>confdefs.h <<_ACEOF
24628#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24629_ACEOF
24630
24631  LIBS="-l"$LDAPLIBNAME" $LIBS"
24632
24633else $as_nop
24634
24635      if test -n "$ldap_askedfor"; then
24636        as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24637      fi
24638      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24639printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24640
24641printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24642
24643      CURL_DISABLE_LDAP=1
24644
24645
24646printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24647
24648      CURL_DISABLE_LDAPS=1
24649
24650fi
24651
24652  else
24653
24654    #
24655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24656printf %s "checking for LDAP libraries... " >&6; }
24657  #
24658  u_libs=""
24659  #
24660
24661  #
24662  curl_cv_save_LIBS="$LIBS"
24663  curl_cv_ldap_LIBS="unknown"
24664  #
24665  for x_nlibs in '' "$u_libs" \
24666    '-lldap' \
24667    '-lldap -llber' \
24668    '-llber -lldap' \
24669    '-lldapssl -lldapx -lldapsdk' \
24670    '-lldapsdk -lldapx -lldapssl' \
24671    '-lldap -llber -lssl -lcrypto' ; do
24672
24673    if test "$curl_cv_ldap_LIBS" = "unknown"; then
24674      if test -z "$x_nlibs"; then
24675        LIBS="$curl_cv_save_LIBS"
24676      else
24677        LIBS="$x_nlibs $curl_cv_save_LIBS"
24678      fi
24679      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24680/* end confdefs.h.  */
24681
24682
24683#undef inline
24684#ifdef HAVE_WINDOWS_H
24685#ifndef WIN32_LEAN_AND_MEAN
24686#define WIN32_LEAN_AND_MEAN
24687#endif
24688#include <windows.h>
24689#else
24690#ifdef HAVE_SYS_TYPES_H
24691#include <sys/types.h>
24692#endif
24693#endif
24694#ifndef NULL
24695#define NULL (void *)0
24696#endif
24697#ifndef LDAP_DEPRECATED
24698#define LDAP_DEPRECATED 1
24699#endif
24700#ifdef NEED_LBER_H
24701#include <lber.h>
24702#endif
24703#ifdef HAVE_LDAP_H
24704#include <ldap.h>
24705#endif
24706
24707int main (void)
24708{
24709
24710          BerValue *bvp = NULL;
24711          BerElement *bep = ber_init(bvp);
24712          LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24713          int res = ldap_unbind(ldp);
24714          ber_free(bep, 1);
24715
24716 ;
24717 return 0;
24718}
24719
24720_ACEOF
24721if ac_fn_c_try_link "$LINENO"
24722then :
24723
24724        curl_cv_ldap_LIBS="$x_nlibs"
24725
24726fi
24727rm -f core conftest.err conftest.$ac_objext conftest.beam \
24728    conftest$ac_exeext conftest.$ac_ext
24729    fi
24730  done
24731  #
24732  LIBS="$curl_cv_save_LIBS"
24733  #
24734  case X-"$curl_cv_ldap_LIBS" in
24735    X-unknown)
24736      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24737printf "%s\n" "cannot find LDAP libraries" >&6; }
24738      ;;
24739    X-)
24740      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24741printf "%s\n" "no additional lib required" >&6; }
24742      ;;
24743    *)
24744      if test -z "$curl_cv_save_LIBS"; then
24745        LIBS="$curl_cv_ldap_LIBS"
24746      else
24747        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24748      fi
24749      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24750printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24751      ;;
24752  esac
24753  #
24754
24755    case X-"$curl_cv_ldap_LIBS" in
24756      X-unknown)
24757        if test -n "$ldap_askedfor"; then
24758          as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24759        fi
24760        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24761printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24762
24763printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24764
24765        CURL_DISABLE_LDAP=1
24766
24767
24768printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24769
24770        CURL_DISABLE_LDAPS=1
24771
24772        ;;
24773    esac
24774  fi
24775fi
24776
24777if test x$CURL_DISABLE_LDAP != x1 ; then
24778
24779  if test "$LBERLIBNAME" ; then
24780            if test "$LBERLIBNAME" != "no" ; then
24781      as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24783printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24784if eval test \${$as_ac_Lib+y}
24785then :
24786  printf %s "(cached) " >&6
24787else $as_nop
24788  ac_check_lib_save_LIBS=$LIBS
24789LIBS="-l"$LBERLIBNAME"  $LIBS"
24790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24791/* end confdefs.h.  */
24792
24793
24794#ifdef __cplusplus
24795extern "C"
24796#endif
24797char ber_free ();
24798int main (void)
24799{
24800return ber_free ();
24801 ;
24802 return 0;
24803}
24804_ACEOF
24805if ac_fn_c_try_link "$LINENO"
24806then :
24807  eval "$as_ac_Lib=yes"
24808else $as_nop
24809  eval "$as_ac_Lib=no"
24810fi
24811rm -f core conftest.err conftest.$ac_objext conftest.beam \
24812    conftest$ac_exeext conftest.$ac_ext
24813LIBS=$ac_check_lib_save_LIBS
24814fi
24815eval ac_res=\$$as_ac_Lib
24816	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24817printf "%s\n" "$ac_res" >&6; }
24818if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24819then :
24820  cat >>confdefs.h <<_ACEOF
24821#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24822_ACEOF
24823
24824  LIBS="-l"$LBERLIBNAME" $LIBS"
24825
24826else $as_nop
24827
24828        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24829printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24830
24831printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24832
24833        CURL_DISABLE_LDAP=1
24834
24835
24836printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24837
24838        CURL_DISABLE_LDAPS=1
24839
24840fi
24841
24842    fi
24843  fi
24844fi
24845
24846if test x$CURL_DISABLE_LDAP != x1 ; then
24847  ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24848if test "x$ac_cv_func_ldap_url_parse" = xyes
24849then :
24850  printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24851
24852fi
24853
24854
24855  if test "$LDAPLIBNAME" = "wldap32"; then
24856    curl_ldap_msg="enabled (winldap)"
24857
24858printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24859
24860  else
24861    curl_ldap_msg="enabled (OpenLDAP)"
24862    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24863
24864printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24865
24866      USE_OPENLDAP=1
24867
24868    fi
24869  fi
24870fi
24871
24872if test x$CURL_DISABLE_LDAPS != x1 ; then
24873    curl_ldaps_msg="enabled"
24874fi
24875
24876
24877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24878printf %s "checking whether to enable IPv6... " >&6; }
24879# Check whether --enable-ipv6 was given.
24880if test ${enable_ipv6+y}
24881then :
24882  enableval=$enable_ipv6;  case "$enableval" in
24883  no)
24884       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24885printf "%s\n" "no" >&6; }
24886       ipv6=no
24887       ;;
24888  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24889printf "%s\n" "yes" >&6; }
24890       ipv6=yes
24891       ;;
24892  esac
24893else $as_nop
24894  if test "$cross_compiling" = yes
24895then :
24896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24897printf "%s\n" "yes" >&6; }
24898  ipv6=yes
24899
24900else $as_nop
24901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24902/* end confdefs.h.  */
24903
24904/* are AF_INET6 and sockaddr_in6 available? */
24905#include <sys/types.h>
24906#ifdef HAVE_WINSOCK2_H
24907#include <winsock2.h>
24908#include <ws2tcpip.h>
24909#else
24910#include <sys/socket.h>
24911#include <netinet/in.h>
24912#if defined (__TANDEM)
24913# include <netinet/in6.h>
24914#endif
24915#endif
24916#include <stdlib.h> /* for exit() */
24917main()
24918{
24919 struct sockaddr_in6 s;
24920 (void)s;
24921 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24922   exit(1);
24923 else
24924   exit(0);
24925}
24926
24927
24928_ACEOF
24929if ac_fn_c_try_run "$LINENO"
24930then :
24931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24932printf "%s\n" "yes" >&6; }
24933  ipv6=yes
24934else $as_nop
24935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24936printf "%s\n" "no" >&6; }
24937  ipv6=no
24938fi
24939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24940  conftest.$ac_objext conftest.beam conftest.$ac_ext
24941fi
24942
24943fi
24944
24945
24946if test "$ipv6" = yes; then
24947  curl_ipv6_msg="enabled"
24948
24949printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24950
24951  IPV6_ENABLED=1
24952
24953
24954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24955printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957/* end confdefs.h.  */
24958
24959#include <sys/types.h>
24960#ifdef HAVE_WINSOCK2_H
24961#include <winsock2.h>
24962#include <ws2tcpip.h>
24963#else
24964#include <netinet/in.h>
24965#if defined (__TANDEM)
24966# include <netinet/in6.h>
24967#endif
24968#endif
24969
24970int main (void)
24971{
24972
24973  struct sockaddr_in6 s;
24974  s.sin6_scope_id = 0;
24975
24976 ;
24977 return 0;
24978}
24979_ACEOF
24980if ac_fn_c_try_compile "$LINENO"
24981then :
24982
24983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24984printf "%s\n" "yes" >&6; }
24985
24986printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24987
24988
24989else $as_nop
24990
24991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24992printf "%s\n" "no" >&6; }
24993
24994fi
24995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24996fi
24997
24998
24999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25000printf %s "checking if argv can be written to... " >&6; }
25001
25002   case $host_os in
25003     darwin*)
25004      if test "$cross_compiling" = yes
25005then :
25006  curl_cv_writable_argv=cross
25007
25008else $as_nop
25009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010/* end confdefs.h.  */
25011
25012int main(int argc, char **argv)
25013{
25014  (void)argc;
25015  argv[0][0] = ' ';
25016  return (argv[0][0] == ' ')?0:1;
25017}
25018
25019_ACEOF
25020if ac_fn_c_try_run "$LINENO"
25021then :
25022  curl_cv_writable_argv=yes
25023
25024else $as_nop
25025  curl_cv_writable_argv=no
25026
25027fi
25028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25029  conftest.$ac_objext conftest.beam conftest.$ac_ext
25030fi
25031
25032     ;;
25033     *)
25034      old=$LD_LIBRARY_PATH
25035      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25036      export LD_LIBRARY_PATH
25037      if test "$cross_compiling" = yes
25038then :
25039  curl_cv_writable_argv=cross
25040
25041else $as_nop
25042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043/* end confdefs.h.  */
25044
25045int main(int argc, char **argv)
25046{
25047  (void)argc;
25048  argv[0][0] = ' ';
25049  return (argv[0][0] == ' ')?0:1;
25050}
25051
25052_ACEOF
25053if ac_fn_c_try_run "$LINENO"
25054then :
25055  curl_cv_writable_argv=yes
25056
25057else $as_nop
25058  curl_cv_writable_argv=no
25059
25060fi
25061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25062  conftest.$ac_objext conftest.beam conftest.$ac_ext
25063fi
25064
25065      LD_LIBRARY_PATH=$old # restore
25066     ;;
25067   esac
25068
25069case $curl_cv_writable_argv in
25070yes)
25071
25072printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25073
25074        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25075printf "%s\n" "yes" >&6; }
25076        ;;
25077no)
25078        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25079printf "%s\n" "no" >&6; }
25080        ;;
25081*)
25082        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25083printf "%s\n" "no" >&6; }
25084        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25085printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25086        ;;
25087esac
25088
25089
25090
25091GSSAPI_ROOT="/usr"
25092
25093# Check whether --with-gssapi-includes was given.
25094if test ${with_gssapi_includes+y}
25095then :
25096  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
25097    want_gss="yes"
25098
25099fi
25100
25101
25102
25103# Check whether --with-gssapi-libs was given.
25104if test ${with_gssapi_libs+y}
25105then :
25106  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
25107    want_gss="yes"
25108
25109fi
25110
25111
25112
25113# Check whether --with-gssapi was given.
25114if test ${with_gssapi+y}
25115then :
25116  withval=$with_gssapi;
25117  GSSAPI_ROOT="$withval"
25118  if test x"$GSSAPI_ROOT" != xno; then
25119    want_gss="yes"
25120    if test x"$GSSAPI_ROOT" = xyes; then
25121            GSSAPI_ROOT="/usr"
25122    fi
25123  fi
25124
25125fi
25126
25127
25128: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25129
25130save_CPPFLAGS="$CPPFLAGS"
25131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25132printf %s "checking if GSS-API support is requested... " >&6; }
25133if test x"$want_gss" = xyes; then
25134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25135printf "%s\n" "yes" >&6; }
25136
25137  if test $GSSAPI_ROOT != "/usr"; then
25138
25139    if test -n "$PKG_CONFIG"; then
25140      PKGCONFIG="$PKG_CONFIG"
25141    else
25142      if test -n "$ac_tool_prefix"; then
25143  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25146printf %s "checking for $ac_word... " >&6; }
25147if test ${ac_cv_path_PKGCONFIG+y}
25148then :
25149  printf %s "(cached) " >&6
25150else $as_nop
25151  case $PKGCONFIG in
25152  [\\/]* | ?:[\\/]*)
25153  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25154  ;;
25155  *)
25156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157as_dummy="$PATH:/usr/bin:/usr/local/bin"
25158for as_dir in $as_dummy
25159do
25160  IFS=$as_save_IFS
25161  case $as_dir in #(((
25162    '') as_dir=./ ;;
25163    */) ;;
25164    *) as_dir=$as_dir/ ;;
25165  esac
25166    for ac_exec_ext in '' $ac_executable_extensions; do
25167  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25168    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25169    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25170    break 2
25171  fi
25172done
25173  done
25174IFS=$as_save_IFS
25175
25176  ;;
25177esac
25178fi
25179PKGCONFIG=$ac_cv_path_PKGCONFIG
25180if test -n "$PKGCONFIG"; then
25181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25182printf "%s\n" "$PKGCONFIG" >&6; }
25183else
25184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25185printf "%s\n" "no" >&6; }
25186fi
25187
25188
25189fi
25190if test -z "$ac_cv_path_PKGCONFIG"; then
25191  ac_pt_PKGCONFIG=$PKGCONFIG
25192  # Extract the first word of "pkg-config", so it can be a program name with args.
25193set dummy pkg-config; ac_word=$2
25194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25195printf %s "checking for $ac_word... " >&6; }
25196if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25197then :
25198  printf %s "(cached) " >&6
25199else $as_nop
25200  case $ac_pt_PKGCONFIG in
25201  [\\/]* | ?:[\\/]*)
25202  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25203  ;;
25204  *)
25205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25206as_dummy="$PATH:/usr/bin:/usr/local/bin"
25207for as_dir in $as_dummy
25208do
25209  IFS=$as_save_IFS
25210  case $as_dir in #(((
25211    '') as_dir=./ ;;
25212    */) ;;
25213    *) as_dir=$as_dir/ ;;
25214  esac
25215    for ac_exec_ext in '' $ac_executable_extensions; do
25216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25217    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25219    break 2
25220  fi
25221done
25222  done
25223IFS=$as_save_IFS
25224
25225  ;;
25226esac
25227fi
25228ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25229if test -n "$ac_pt_PKGCONFIG"; then
25230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25231printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25232else
25233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25234printf "%s\n" "no" >&6; }
25235fi
25236
25237  if test "x$ac_pt_PKGCONFIG" = x; then
25238    PKGCONFIG="no"
25239  else
25240    case $cross_compiling:$ac_tool_warned in
25241yes:)
25242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25244ac_tool_warned=yes ;;
25245esac
25246    PKGCONFIG=$ac_pt_PKGCONFIG
25247  fi
25248else
25249  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25250fi
25251
25252    fi
25253
25254    if test "x$PKGCONFIG" != "xno"; then
25255      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25256printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25257            itexists=`
25258    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25259      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25260      export PKG_CONFIG_LIBDIR
25261    fi
25262         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25263
25264      if test -z "$itexists"; then
25265                        PKGCONFIG="no"
25266        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25267printf "%s\n" "no" >&6; }
25268      else
25269        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25270printf "%s\n" "found" >&6; }
25271      fi
25272    fi
25273
25274  else
25275
25276    if test -n "$PKG_CONFIG"; then
25277      PKGCONFIG="$PKG_CONFIG"
25278    else
25279      if test -n "$ac_tool_prefix"; then
25280  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25281set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25283printf %s "checking for $ac_word... " >&6; }
25284if test ${ac_cv_path_PKGCONFIG+y}
25285then :
25286  printf %s "(cached) " >&6
25287else $as_nop
25288  case $PKGCONFIG in
25289  [\\/]* | ?:[\\/]*)
25290  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25291  ;;
25292  *)
25293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25294as_dummy="$PATH:/usr/bin:/usr/local/bin"
25295for as_dir in $as_dummy
25296do
25297  IFS=$as_save_IFS
25298  case $as_dir in #(((
25299    '') as_dir=./ ;;
25300    */) ;;
25301    *) as_dir=$as_dir/ ;;
25302  esac
25303    for ac_exec_ext in '' $ac_executable_extensions; do
25304  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25305    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25306    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25307    break 2
25308  fi
25309done
25310  done
25311IFS=$as_save_IFS
25312
25313  ;;
25314esac
25315fi
25316PKGCONFIG=$ac_cv_path_PKGCONFIG
25317if test -n "$PKGCONFIG"; then
25318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25319printf "%s\n" "$PKGCONFIG" >&6; }
25320else
25321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322printf "%s\n" "no" >&6; }
25323fi
25324
25325
25326fi
25327if test -z "$ac_cv_path_PKGCONFIG"; then
25328  ac_pt_PKGCONFIG=$PKGCONFIG
25329  # Extract the first word of "pkg-config", so it can be a program name with args.
25330set dummy pkg-config; ac_word=$2
25331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25332printf %s "checking for $ac_word... " >&6; }
25333if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25334then :
25335  printf %s "(cached) " >&6
25336else $as_nop
25337  case $ac_pt_PKGCONFIG in
25338  [\\/]* | ?:[\\/]*)
25339  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25340  ;;
25341  *)
25342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25343as_dummy="$PATH:/usr/bin:/usr/local/bin"
25344for as_dir in $as_dummy
25345do
25346  IFS=$as_save_IFS
25347  case $as_dir in #(((
25348    '') as_dir=./ ;;
25349    */) ;;
25350    *) as_dir=$as_dir/ ;;
25351  esac
25352    for ac_exec_ext in '' $ac_executable_extensions; do
25353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25354    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25356    break 2
25357  fi
25358done
25359  done
25360IFS=$as_save_IFS
25361
25362  ;;
25363esac
25364fi
25365ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25366if test -n "$ac_pt_PKGCONFIG"; then
25367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25368printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25369else
25370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25371printf "%s\n" "no" >&6; }
25372fi
25373
25374  if test "x$ac_pt_PKGCONFIG" = x; then
25375    PKGCONFIG="no"
25376  else
25377    case $cross_compiling:$ac_tool_warned in
25378yes:)
25379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25381ac_tool_warned=yes ;;
25382esac
25383    PKGCONFIG=$ac_pt_PKGCONFIG
25384  fi
25385else
25386  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25387fi
25388
25389    fi
25390
25391    if test "x$PKGCONFIG" != "xno"; then
25392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25393printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25394            itexists=`
25395    if test -n ""; then
25396      PKG_CONFIG_LIBDIR=""
25397      export PKG_CONFIG_LIBDIR
25398    fi
25399         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25400
25401      if test -z "$itexists"; then
25402                        PKGCONFIG="no"
25403        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25404printf "%s\n" "no" >&6; }
25405      else
25406        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25407printf "%s\n" "found" >&6; }
25408      fi
25409    fi
25410
25411  fi
25412  if test -z "$GSSAPI_INCS"; then
25413     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25414        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25415     elif test "$PKGCONFIG" != "no" ; then
25416        GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25417     elif test -f "$KRB5CONFIG"; then
25418        GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25419     elif test "$GSSAPI_ROOT" != "yes"; then
25420        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25421     fi
25422  fi
25423
25424  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25425
25426  ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25427if test "x$ac_cv_header_gss_h" = xyes
25428then :
25429
25430
25431printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25432
25433      gnu_gss=yes
25434
25435else $as_nop
25436
25437                   for ac_header in gssapi/gssapi.h
25438do :
25439  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25440if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25441then :
25442  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25443
25444else $as_nop
25445  not_mit=1
25446fi
25447
25448done
25449             for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25450do :
25451  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25453$ac_includes_default
25454#ifdef HAVE_GSSAPI_GSSAPI_H
25455#include <gssapi/gssapi.h>
25456#endif
25457
25458"
25459if eval test \"x\$"$as_ac_Header"\" = x"yes"
25460then :
25461  cat >>confdefs.h <<_ACEOF
25462#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25463_ACEOF
25464
25465else $as_nop
25466  not_mit=1
25467fi
25468
25469done
25470      if test "x$not_mit" = "x1"; then
25471                ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25472if test "x$ac_cv_header_gssapi_h" = xyes
25473then :
25474
25475
25476printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25477
25478
25479else $as_nop
25480
25481                            want_gss=no
25482              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25483printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25484
25485
25486fi
25487
25488      else
25489
25490printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25491
25492                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25493printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25494        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495/* end confdefs.h.  */
25496
25497
25498#include <gssapi/gssapi.h>
25499#include <gssapi/gssapi_generic.h>
25500#include <gssapi/gssapi_krb5.h>
25501
25502int main (void)
25503{
25504
25505            gss_import_name(
25506                            (OM_uint32 *)0,
25507                            (gss_buffer_t)0,
25508                            GSS_C_NT_HOSTBASED_SERVICE,
25509                            (gss_name_t *)0);
25510
25511 ;
25512 return 0;
25513}
25514
25515_ACEOF
25516if ac_fn_c_try_compile "$LINENO"
25517then :
25518
25519          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25520printf "%s\n" "yes" >&6; }
25521
25522else $as_nop
25523
25524          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25525printf "%s\n" "no" >&6; }
25526
25527printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25528
25529
25530fi
25531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25532      fi
25533
25534
25535fi
25536
25537else
25538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25539printf "%s\n" "no" >&6; }
25540fi
25541if test x"$want_gss" = xyes; then
25542
25543printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25544
25545  HAVE_GSSAPI=1
25546  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25547
25548  if test -n "$gnu_gss"; then
25549    curl_gss_msg="enabled (GNU GSS)"
25550    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25551    LIBS="-lgss $LIBS"
25552  elif test -z "$GSSAPI_LIB_DIR"; then
25553     case $host in
25554     *-*-darwin*)
25555        LIBS="-lgssapi_krb5 -lresolv $LIBS"
25556        ;;
25557     *)
25558        if test $GSSAPI_ROOT != "/usr"; then
25559
25560    if test -n "$PKG_CONFIG"; then
25561      PKGCONFIG="$PKG_CONFIG"
25562    else
25563      if test -n "$ac_tool_prefix"; then
25564  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25565set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25567printf %s "checking for $ac_word... " >&6; }
25568if test ${ac_cv_path_PKGCONFIG+y}
25569then :
25570  printf %s "(cached) " >&6
25571else $as_nop
25572  case $PKGCONFIG in
25573  [\\/]* | ?:[\\/]*)
25574  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25575  ;;
25576  *)
25577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25578as_dummy="$PATH:/usr/bin:/usr/local/bin"
25579for as_dir in $as_dummy
25580do
25581  IFS=$as_save_IFS
25582  case $as_dir in #(((
25583    '') as_dir=./ ;;
25584    */) ;;
25585    *) as_dir=$as_dir/ ;;
25586  esac
25587    for ac_exec_ext in '' $ac_executable_extensions; do
25588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25589    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25591    break 2
25592  fi
25593done
25594  done
25595IFS=$as_save_IFS
25596
25597  ;;
25598esac
25599fi
25600PKGCONFIG=$ac_cv_path_PKGCONFIG
25601if test -n "$PKGCONFIG"; then
25602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25603printf "%s\n" "$PKGCONFIG" >&6; }
25604else
25605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25606printf "%s\n" "no" >&6; }
25607fi
25608
25609
25610fi
25611if test -z "$ac_cv_path_PKGCONFIG"; then
25612  ac_pt_PKGCONFIG=$PKGCONFIG
25613  # Extract the first word of "pkg-config", so it can be a program name with args.
25614set dummy pkg-config; ac_word=$2
25615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25616printf %s "checking for $ac_word... " >&6; }
25617if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25618then :
25619  printf %s "(cached) " >&6
25620else $as_nop
25621  case $ac_pt_PKGCONFIG in
25622  [\\/]* | ?:[\\/]*)
25623  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25624  ;;
25625  *)
25626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25627as_dummy="$PATH:/usr/bin:/usr/local/bin"
25628for as_dir in $as_dummy
25629do
25630  IFS=$as_save_IFS
25631  case $as_dir in #(((
25632    '') as_dir=./ ;;
25633    */) ;;
25634    *) as_dir=$as_dir/ ;;
25635  esac
25636    for ac_exec_ext in '' $ac_executable_extensions; do
25637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25638    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25640    break 2
25641  fi
25642done
25643  done
25644IFS=$as_save_IFS
25645
25646  ;;
25647esac
25648fi
25649ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25650if test -n "$ac_pt_PKGCONFIG"; then
25651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25652printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25653else
25654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25655printf "%s\n" "no" >&6; }
25656fi
25657
25658  if test "x$ac_pt_PKGCONFIG" = x; then
25659    PKGCONFIG="no"
25660  else
25661    case $cross_compiling:$ac_tool_warned in
25662yes:)
25663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25665ac_tool_warned=yes ;;
25666esac
25667    PKGCONFIG=$ac_pt_PKGCONFIG
25668  fi
25669else
25670  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25671fi
25672
25673    fi
25674
25675    if test "x$PKGCONFIG" != "xno"; then
25676      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25677printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25678            itexists=`
25679    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25680      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25681      export PKG_CONFIG_LIBDIR
25682    fi
25683         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25684
25685      if test -z "$itexists"; then
25686                        PKGCONFIG="no"
25687        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25688printf "%s\n" "no" >&6; }
25689      else
25690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25691printf "%s\n" "found" >&6; }
25692      fi
25693    fi
25694
25695        else
25696
25697    if test -n "$PKG_CONFIG"; then
25698      PKGCONFIG="$PKG_CONFIG"
25699    else
25700      if test -n "$ac_tool_prefix"; then
25701  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25702set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25704printf %s "checking for $ac_word... " >&6; }
25705if test ${ac_cv_path_PKGCONFIG+y}
25706then :
25707  printf %s "(cached) " >&6
25708else $as_nop
25709  case $PKGCONFIG in
25710  [\\/]* | ?:[\\/]*)
25711  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25712  ;;
25713  *)
25714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25715as_dummy="$PATH:/usr/bin:/usr/local/bin"
25716for as_dir in $as_dummy
25717do
25718  IFS=$as_save_IFS
25719  case $as_dir in #(((
25720    '') as_dir=./ ;;
25721    */) ;;
25722    *) as_dir=$as_dir/ ;;
25723  esac
25724    for ac_exec_ext in '' $ac_executable_extensions; do
25725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25726    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25728    break 2
25729  fi
25730done
25731  done
25732IFS=$as_save_IFS
25733
25734  ;;
25735esac
25736fi
25737PKGCONFIG=$ac_cv_path_PKGCONFIG
25738if test -n "$PKGCONFIG"; then
25739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25740printf "%s\n" "$PKGCONFIG" >&6; }
25741else
25742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25743printf "%s\n" "no" >&6; }
25744fi
25745
25746
25747fi
25748if test -z "$ac_cv_path_PKGCONFIG"; then
25749  ac_pt_PKGCONFIG=$PKGCONFIG
25750  # Extract the first word of "pkg-config", so it can be a program name with args.
25751set dummy pkg-config; ac_word=$2
25752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25753printf %s "checking for $ac_word... " >&6; }
25754if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25755then :
25756  printf %s "(cached) " >&6
25757else $as_nop
25758  case $ac_pt_PKGCONFIG in
25759  [\\/]* | ?:[\\/]*)
25760  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25761  ;;
25762  *)
25763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25764as_dummy="$PATH:/usr/bin:/usr/local/bin"
25765for as_dir in $as_dummy
25766do
25767  IFS=$as_save_IFS
25768  case $as_dir in #(((
25769    '') as_dir=./ ;;
25770    */) ;;
25771    *) as_dir=$as_dir/ ;;
25772  esac
25773    for ac_exec_ext in '' $ac_executable_extensions; do
25774  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25775    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25776    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25777    break 2
25778  fi
25779done
25780  done
25781IFS=$as_save_IFS
25782
25783  ;;
25784esac
25785fi
25786ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25787if test -n "$ac_pt_PKGCONFIG"; then
25788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25789printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25790else
25791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25792printf "%s\n" "no" >&6; }
25793fi
25794
25795  if test "x$ac_pt_PKGCONFIG" = x; then
25796    PKGCONFIG="no"
25797  else
25798    case $cross_compiling:$ac_tool_warned in
25799yes:)
25800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25801printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25802ac_tool_warned=yes ;;
25803esac
25804    PKGCONFIG=$ac_pt_PKGCONFIG
25805  fi
25806else
25807  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25808fi
25809
25810    fi
25811
25812    if test "x$PKGCONFIG" != "xno"; then
25813      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25814printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25815            itexists=`
25816    if test -n ""; then
25817      PKG_CONFIG_LIBDIR=""
25818      export PKG_CONFIG_LIBDIR
25819    fi
25820         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25821
25822      if test -z "$itexists"; then
25823                        PKGCONFIG="no"
25824        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25825printf "%s\n" "no" >&6; }
25826      else
25827        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25828printf "%s\n" "found" >&6; }
25829      fi
25830    fi
25831
25832        fi
25833        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25834                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
25835           LIBS="$gss_libs $LIBS"
25836        elif test "$PKGCONFIG" != "no" ; then
25837           gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
25838           LIBS="$gss_libs $LIBS"
25839        elif test -f "$KRB5CONFIG"; then
25840                                 gss_libs=`$KRB5CONFIG --libs gssapi`
25841           LIBS="$gss_libs $LIBS"
25842        else
25843           case $host in
25844           *-hp-hpux*)
25845              gss_libname="gss"
25846              ;;
25847           *)
25848              gss_libname="gssapi"
25849              ;;
25850           esac
25851
25852           if test "$GSSAPI_ROOT" != "yes"; then
25853              LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
25854              LIBS="-l$gss_libname $LIBS"
25855           else
25856              LIBS="-l$gss_libname $LIBS"
25857           fi
25858        fi
25859        ;;
25860     esac
25861  else
25862     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25863     case $host in
25864     *-hp-hpux*)
25865        LIBS="-lgss $LIBS"
25866        ;;
25867     *)
25868        LIBS="-lgssapi $LIBS"
25869        ;;
25870     esac
25871  fi
25872else
25873  CPPFLAGS="$save_CPPFLAGS"
25874fi
25875
25876if test x"$want_gss" = xyes; then
25877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
25878printf %s "checking if we can link against GSS-API library... " >&6; }
25879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25880/* end confdefs.h.  */
25881
25882
25883#define gss_init_sec_context innocuous_gss_init_sec_context
25884#ifdef __STDC__
25885# include <limits.h>
25886#else
25887# include <assert.h>
25888#endif
25889#undef gss_init_sec_context
25890#ifdef __cplusplus
25891extern "C"
25892#endif
25893char gss_init_sec_context ();
25894#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
25895choke me
25896#endif
25897
25898int main (void)
25899{
25900return gss_init_sec_context ();
25901 ;
25902 return 0;
25903}
25904
25905_ACEOF
25906if ac_fn_c_try_link "$LINENO"
25907then :
25908
25909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25910printf "%s\n" "yes" >&6; }
25911
25912else $as_nop
25913
25914    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25915printf "%s\n" "no" >&6; }
25916    as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
25917
25918fi
25919rm -f core conftest.err conftest.$ac_objext conftest.beam \
25920    conftest$ac_exeext conftest.$ac_ext
25921fi
25922
25923build_libstubgss=no
25924if test x"$want_gss" = "xyes"; then
25925  build_libstubgss=yes
25926fi
25927
25928 if test "x$build_libstubgss" = "xyes"; then
25929  BUILD_STUB_GSS_TRUE=
25930  BUILD_STUB_GSS_FALSE='#'
25931else
25932  BUILD_STUB_GSS_TRUE='#'
25933  BUILD_STUB_GSS_FALSE=
25934fi
25935
25936
25937
25938DEFAULT_SSL_BACKEND=no
25939VALID_DEFAULT_SSL_BACKEND=
25940
25941# Check whether --with-default-ssl-backend was given.
25942if test ${with_default_ssl_backend+y}
25943then :
25944  withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
25945fi
25946
25947case "$DEFAULT_SSL_BACKEND" in
25948  no)
25949        ;;
25950  default|yes)
25951        as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
25952    ;;
25953  *)
25954
25955        VALID_DEFAULT_SSL_BACKEND=no
25956    ;;
25957esac
25958
25959
25960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
25961printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
25962if test "x$OPT_SCHANNEL" != xno; then
25963  ssl_msg=
25964  if test "x$OPT_SCHANNEL" != "xno"  &&
25965     test "x$curl_cv_native_windows" = "xyes"; then
25966    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25967printf "%s\n" "yes" >&6; }
25968
25969printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
25970
25971    USE_SCHANNEL=1
25972
25973    ssl_msg="Schannel"
25974    test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25975    SCHANNEL_ENABLED=1
25976    # --with-schannel implies --enable-sspi
25977
25978printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
25979
25980    USE_WINDOWS_SSPI=1
25981
25982    curl_sspi_msg="enabled"
25983  else
25984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25985printf "%s\n" "no" >&6; }
25986  fi
25987  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25988else
25989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25990printf "%s\n" "no" >&6; }
25991fi
25992
25993
25994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
25995printf %s "checking whether to enable Secure Transport... " >&6; }
25996if test "x$OPT_SECURETRANSPORT" != xno; then
25997  if test "x$OPT_SECURETRANSPORT" != "xno" &&
25998     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
25999    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26000printf "%s\n" "yes" >&6; }
26001
26002printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26003
26004    USE_SECTRANSP=1
26005
26006    ssl_msg="Secure Transport"
26007    test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26008    SECURETRANSPORT_ENABLED=1
26009    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
26010  else
26011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26012printf "%s\n" "no" >&6; }
26013  fi
26014  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26015else
26016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017printf "%s\n" "no" >&6; }
26018fi
26019
26020
26021
26022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26023printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26024if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26025  if test "x$OPT_AMISSL" != xno; then
26026    ssl_msg=
26027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028/* end confdefs.h.  */
26029
26030
26031        #include <libraries/amisslmaster.h>
26032        #include <openssl/opensslv.h>
26033
26034int main (void)
26035{
26036
26037        #if defined(AMISSL_CURRENT_VERSION) && (AMISSL_CURRENT_VERSION >= AMISSL_V303) && \
26038            defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
26039            defined(PROTO_AMISSL_H)
26040        return 0;
26041        #else
26042        #error not AmiSSL v5 / OpenSSL 3
26043        #endif
26044
26045 ;
26046 return 0;
26047}
26048
26049_ACEOF
26050if ac_fn_c_try_compile "$LINENO"
26051then :
26052
26053      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26054printf "%s\n" "yes" >&6; }
26055      ssl_msg="AmiSSL"
26056      test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26057      AMISSL_ENABLED=1
26058      OPENSSL_ENABLED=1
26059      # Use AmiSSL's built-in ca bundle
26060      check_for_ca_bundle=1
26061      with_ca_fallback=yes
26062      LIBS="-lamisslstubs -lamisslauto $LIBS"
26063
26064printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26065
26066
26067printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26068
26069
26070printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26071
26072      ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26073if test "x$ac_cv_header_openssl_x509_h" = xyes
26074then :
26075  printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26076
26077fi
26078ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26079if test "x$ac_cv_header_openssl_rsa_h" = xyes
26080then :
26081  printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26082
26083fi
26084ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26085if test "x$ac_cv_header_openssl_crypto_h" = xyes
26086then :
26087  printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26088
26089fi
26090ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26091if test "x$ac_cv_header_openssl_pem_h" = xyes
26092then :
26093  printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26094
26095fi
26096ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26097if test "x$ac_cv_header_openssl_ssl_h" = xyes
26098then :
26099  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26100
26101fi
26102ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26103if test "x$ac_cv_header_openssl_err_h" = xyes
26104then :
26105  printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26106
26107fi
26108
26109
26110else $as_nop
26111
26112      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26113printf "%s\n" "no" >&6; }
26114
26115fi
26116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26117    test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26118  else
26119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26120printf "%s\n" "no" >&6; }
26121  fi
26122else
26123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26124printf "%s\n" "no" >&6; }
26125fi
26126
26127
26128
26129if test "x$OPT_OPENSSL" != xno; then
26130  ssl_msg=
26131
26132    CLEANLDFLAGS="$LDFLAGS"
26133  CLEANCPPFLAGS="$CPPFLAGS"
26134  CLEANLIBS="$LIBS"
26135
26136    case $host in
26137    *-*-msys* | *-*-mingw*)
26138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26139printf %s "checking for gdi32... " >&6; }
26140      my_ac_save_LIBS=$LIBS
26141      LIBS="-lgdi32 $LIBS"
26142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143/* end confdefs.h.  */
26144
26145        #include <windef.h>
26146        #include <wingdi.h>
26147
26148int main (void)
26149{
26150
26151          GdiFlush();
26152
26153 ;
26154 return 0;
26155}
26156_ACEOF
26157if ac_fn_c_try_link "$LINENO"
26158then :
26159           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26160printf "%s\n" "yes" >&6; }
26161else $as_nop
26162           LIBS=$my_ac_save_LIBS
26163        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26164printf "%s\n" "no" >&6; }
26165
26166fi
26167rm -f core conftest.err conftest.$ac_objext conftest.beam \
26168    conftest$ac_exeext conftest.$ac_ext
26169      ;;
26170  esac
26171
26172  case "$OPT_OPENSSL" in
26173  yes)
26174        PKGTEST="yes"
26175    PREFIX_OPENSSL=
26176    ;;
26177  *)
26178        PKGTEST="no"
26179    PREFIX_OPENSSL=$OPT_OPENSSL
26180
26181                OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26182    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26183      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26184printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26185      PKGTEST="yes"
26186    fi
26187
26188    if test "$PKGTEST" != "yes"; then
26189      # try lib64 instead
26190      OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26191      if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26193printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26194        PKGTEST="yes"
26195      fi
26196    fi
26197
26198    if test "$PKGTEST" != "yes"; then
26199      if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26200        as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26201      fi
26202    fi
26203
26204            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26205    if test "$PREFIX_OPENSSL" != "/usr" ; then
26206      SSL_LDFLAGS="-L$LIB_OPENSSL"
26207      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26208    fi
26209    ;;
26210  esac
26211
26212  if test "$PKGTEST" = "yes"; then
26213
26214
26215    if test -n "$PKG_CONFIG"; then
26216      PKGCONFIG="$PKG_CONFIG"
26217    else
26218      if test -n "$ac_tool_prefix"; then
26219  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26220set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26222printf %s "checking for $ac_word... " >&6; }
26223if test ${ac_cv_path_PKGCONFIG+y}
26224then :
26225  printf %s "(cached) " >&6
26226else $as_nop
26227  case $PKGCONFIG in
26228  [\\/]* | ?:[\\/]*)
26229  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26230  ;;
26231  *)
26232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26233as_dummy="$PATH:/usr/bin:/usr/local/bin"
26234for as_dir in $as_dummy
26235do
26236  IFS=$as_save_IFS
26237  case $as_dir in #(((
26238    '') as_dir=./ ;;
26239    */) ;;
26240    *) as_dir=$as_dir/ ;;
26241  esac
26242    for ac_exec_ext in '' $ac_executable_extensions; do
26243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26244    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26246    break 2
26247  fi
26248done
26249  done
26250IFS=$as_save_IFS
26251
26252  ;;
26253esac
26254fi
26255PKGCONFIG=$ac_cv_path_PKGCONFIG
26256if test -n "$PKGCONFIG"; then
26257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26258printf "%s\n" "$PKGCONFIG" >&6; }
26259else
26260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26261printf "%s\n" "no" >&6; }
26262fi
26263
26264
26265fi
26266if test -z "$ac_cv_path_PKGCONFIG"; then
26267  ac_pt_PKGCONFIG=$PKGCONFIG
26268  # Extract the first word of "pkg-config", so it can be a program name with args.
26269set dummy pkg-config; ac_word=$2
26270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26271printf %s "checking for $ac_word... " >&6; }
26272if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26273then :
26274  printf %s "(cached) " >&6
26275else $as_nop
26276  case $ac_pt_PKGCONFIG in
26277  [\\/]* | ?:[\\/]*)
26278  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26279  ;;
26280  *)
26281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26282as_dummy="$PATH:/usr/bin:/usr/local/bin"
26283for as_dir in $as_dummy
26284do
26285  IFS=$as_save_IFS
26286  case $as_dir in #(((
26287    '') as_dir=./ ;;
26288    */) ;;
26289    *) as_dir=$as_dir/ ;;
26290  esac
26291    for ac_exec_ext in '' $ac_executable_extensions; do
26292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26293    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26295    break 2
26296  fi
26297done
26298  done
26299IFS=$as_save_IFS
26300
26301  ;;
26302esac
26303fi
26304ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26305if test -n "$ac_pt_PKGCONFIG"; then
26306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26307printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26308else
26309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26310printf "%s\n" "no" >&6; }
26311fi
26312
26313  if test "x$ac_pt_PKGCONFIG" = x; then
26314    PKGCONFIG="no"
26315  else
26316    case $cross_compiling:$ac_tool_warned in
26317yes:)
26318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26319printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26320ac_tool_warned=yes ;;
26321esac
26322    PKGCONFIG=$ac_pt_PKGCONFIG
26323  fi
26324else
26325  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26326fi
26327
26328    fi
26329
26330    if test "x$PKGCONFIG" != "xno"; then
26331      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26332printf %s "checking for openssl options with pkg-config... " >&6; }
26333            itexists=`
26334    if test -n "$OPENSSL_PCDIR"; then
26335      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26336      export PKG_CONFIG_LIBDIR
26337    fi
26338         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26339
26340      if test -z "$itexists"; then
26341                        PKGCONFIG="no"
26342        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26343printf "%s\n" "no" >&6; }
26344      else
26345        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26346printf "%s\n" "found" >&6; }
26347      fi
26348    fi
26349
26350
26351    if test "$PKGCONFIG" != "no" ; then
26352      SSL_LIBS=`
26353    if test -n "$OPENSSL_PCDIR"; then
26354      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26355      export PKG_CONFIG_LIBDIR
26356    fi
26357         $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26358
26359      SSL_LDFLAGS=`
26360    if test -n "$OPENSSL_PCDIR"; then
26361      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26362      export PKG_CONFIG_LIBDIR
26363    fi
26364         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26365
26366      SSL_CPPFLAGS=`
26367    if test -n "$OPENSSL_PCDIR"; then
26368      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26369      export PKG_CONFIG_LIBDIR
26370    fi
26371         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26372
26373
26374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26375printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26376      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26377printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26378      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26379printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26380
26381      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26382
26383                                          LIBS="$SSL_LIBS $LIBS"
26384    fi
26385  fi
26386
26387    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26388  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26389
26390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26391printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26392if test ${ac_cv_lib_crypto_HMAC_Update+y}
26393then :
26394  printf %s "(cached) " >&6
26395else $as_nop
26396  ac_check_lib_save_LIBS=$LIBS
26397LIBS="-lcrypto  $LIBS"
26398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26399/* end confdefs.h.  */
26400
26401
26402#ifdef __cplusplus
26403extern "C"
26404#endif
26405char HMAC_Update ();
26406int main (void)
26407{
26408return HMAC_Update ();
26409 ;
26410 return 0;
26411}
26412_ACEOF
26413if ac_fn_c_try_link "$LINENO"
26414then :
26415  ac_cv_lib_crypto_HMAC_Update=yes
26416else $as_nop
26417  ac_cv_lib_crypto_HMAC_Update=no
26418fi
26419rm -f core conftest.err conftest.$ac_objext conftest.beam \
26420    conftest$ac_exeext conftest.$ac_ext
26421LIBS=$ac_check_lib_save_LIBS
26422fi
26423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26424printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26425if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26426then :
26427
26428     HAVECRYPTO="yes"
26429     LIBS="-lcrypto $LIBS"
26430
26431else $as_nop
26432
26433     if test -n "$LIB_OPENSSL" ; then
26434       LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26435     fi
26436     if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26437       # only set this if pkg-config wasn't used
26438       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26439     fi
26440     # Linking previously failed, try extra paths from --with-openssl or
26441     # pkg-config.  Use a different function name to avoid reusing the earlier
26442     # cached result.
26443     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26444printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26445if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26446then :
26447  printf %s "(cached) " >&6
26448else $as_nop
26449  ac_check_lib_save_LIBS=$LIBS
26450LIBS="-lcrypto  $LIBS"
26451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452/* end confdefs.h.  */
26453
26454
26455#ifdef __cplusplus
26456extern "C"
26457#endif
26458char HMAC_Init_ex ();
26459int main (void)
26460{
26461return HMAC_Init_ex ();
26462 ;
26463 return 0;
26464}
26465_ACEOF
26466if ac_fn_c_try_link "$LINENO"
26467then :
26468  ac_cv_lib_crypto_HMAC_Init_ex=yes
26469else $as_nop
26470  ac_cv_lib_crypto_HMAC_Init_ex=no
26471fi
26472rm -f core conftest.err conftest.$ac_objext conftest.beam \
26473    conftest$ac_exeext conftest.$ac_ext
26474LIBS=$ac_check_lib_save_LIBS
26475fi
26476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26477printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26478if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26479then :
26480
26481       HAVECRYPTO="yes"
26482       LIBS="-lcrypto $LIBS"
26483else $as_nop
26484
26485
26486              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26487printf %s "checking OpenSSL linking with -ldl... " >&6; }
26488       LIBS="-lcrypto $CLEANLIBS -ldl"
26489       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26490/* end confdefs.h.  */
26491
26492         #include <openssl/err.h>
26493
26494int main (void)
26495{
26496
26497         ERR_clear_error();
26498
26499 ;
26500 return 0;
26501}
26502_ACEOF
26503if ac_fn_c_try_link "$LINENO"
26504then :
26505
26506         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26507printf "%s\n" "yes" >&6; }
26508         HAVECRYPTO="yes"
26509
26510else $as_nop
26511
26512         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26513printf "%s\n" "no" >&6; }
26514
26515         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26516printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26517         LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26519/* end confdefs.h.  */
26520
26521
26522           #include <openssl/err.h>
26523
26524int main (void)
26525{
26526
26527           ERR_clear_error();
26528
26529 ;
26530 return 0;
26531}
26532_ACEOF
26533if ac_fn_c_try_link "$LINENO"
26534then :
26535
26536           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26537printf "%s\n" "yes" >&6; }
26538           HAVECRYPTO="yes"
26539
26540else $as_nop
26541
26542           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26543printf "%s\n" "no" >&6; }
26544           LDFLAGS="$CLEANLDFLAGS"
26545           CPPFLAGS="$CLEANCPPFLAGS"
26546           LIBS="$CLEANLIBS"
26547
26548
26549fi
26550rm -f core conftest.err conftest.$ac_objext conftest.beam \
26551    conftest$ac_exeext conftest.$ac_ext
26552
26553
26554fi
26555rm -f core conftest.err conftest.$ac_objext conftest.beam \
26556    conftest$ac_exeext conftest.$ac_ext
26557
26558
26559fi
26560
26561
26562fi
26563
26564
26565  if test X"$HAVECRYPTO" = X"yes"; then
26566
26567    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26568printf %s "checking for SSL_connect in -lssl... " >&6; }
26569if test ${ac_cv_lib_ssl_SSL_connect+y}
26570then :
26571  printf %s "(cached) " >&6
26572else $as_nop
26573  ac_check_lib_save_LIBS=$LIBS
26574LIBS="-lssl  $LIBS"
26575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576/* end confdefs.h.  */
26577
26578
26579#ifdef __cplusplus
26580extern "C"
26581#endif
26582char SSL_connect ();
26583int main (void)
26584{
26585return SSL_connect ();
26586 ;
26587 return 0;
26588}
26589_ACEOF
26590if ac_fn_c_try_link "$LINENO"
26591then :
26592  ac_cv_lib_ssl_SSL_connect=yes
26593else $as_nop
26594  ac_cv_lib_ssl_SSL_connect=no
26595fi
26596rm -f core conftest.err conftest.$ac_objext conftest.beam \
26597    conftest$ac_exeext conftest.$ac_ext
26598LIBS=$ac_check_lib_save_LIBS
26599fi
26600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26601printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26602if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26603then :
26604  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26605
26606  LIBS="-lssl $LIBS"
26607
26608fi
26609
26610
26611    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26612                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26613printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26614        OLIBS=$LIBS
26615        LIBS="-lRSAglue -lrsaref $LIBS"
26616        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26617printf %s "checking for SSL_connect in -lssl... " >&6; }
26618if test ${ac_cv_lib_ssl_SSL_connect+y}
26619then :
26620  printf %s "(cached) " >&6
26621else $as_nop
26622  ac_check_lib_save_LIBS=$LIBS
26623LIBS="-lssl  $LIBS"
26624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26625/* end confdefs.h.  */
26626
26627
26628#ifdef __cplusplus
26629extern "C"
26630#endif
26631char SSL_connect ();
26632int main (void)
26633{
26634return SSL_connect ();
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639if ac_fn_c_try_link "$LINENO"
26640then :
26641  ac_cv_lib_ssl_SSL_connect=yes
26642else $as_nop
26643  ac_cv_lib_ssl_SSL_connect=no
26644fi
26645rm -f core conftest.err conftest.$ac_objext conftest.beam \
26646    conftest$ac_exeext conftest.$ac_ext
26647LIBS=$ac_check_lib_save_LIBS
26648fi
26649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26650printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26651if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26652then :
26653  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26654
26655  LIBS="-lssl $LIBS"
26656
26657fi
26658
26659        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26660                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26661printf "%s\n" "no" >&6; }
26662            LIBS=$OLIBS
26663        else
26664            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26665printf "%s\n" "yes" >&6; }
26666        fi
26667
26668    else
26669
26670                   for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26671do :
26672  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26673ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26674if eval test \"x\$"$as_ac_Header"\" = x"yes"
26675then :
26676  cat >>confdefs.h <<_ACEOF
26677#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26678_ACEOF
26679 ssl_msg="OpenSSL"
26680	test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26681        OPENSSL_ENABLED=1
26682
26683printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26684
26685fi
26686
26687done
26688
26689      if test $ac_cv_header_openssl_x509_h = no; then
26690                                ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26691if test "x$ac_cv_header_x509_h" = xyes
26692then :
26693  printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26694
26695fi
26696ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26697if test "x$ac_cv_header_rsa_h" = xyes
26698then :
26699  printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26700
26701fi
26702ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26703if test "x$ac_cv_header_crypto_h" = xyes
26704then :
26705  printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26706
26707fi
26708ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26709if test "x$ac_cv_header_pem_h" = xyes
26710then :
26711  printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26712
26713fi
26714ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26715if test "x$ac_cv_header_ssl_h" = xyes
26716then :
26717  printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26718
26719fi
26720ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26721if test "x$ac_cv_header_err_h" = xyes
26722then :
26723  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26724
26725fi
26726
26727
26728        if test $ac_cv_header_x509_h = yes &&
26729           test $ac_cv_header_crypto_h = yes &&
26730           test $ac_cv_header_ssl_h = yes; then
26731                    ssl_msg="OpenSSL"
26732          OPENSSL_ENABLED=1
26733        fi
26734      fi
26735    fi
26736
26737    if test X"$OPENSSL_ENABLED" != X"1"; then
26738       LIBS="$CLEANLIBS"
26739    fi
26740
26741    if test X"$OPT_OPENSSL" != Xoff &&
26742       test "$OPENSSL_ENABLED" != "1"; then
26743      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26744    fi
26745  fi
26746
26747  if test X"$OPENSSL_ENABLED" = X"1"; then
26748
26749    ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
26750if test "x$ac_cv_func_RAND_egd" = xyes
26751then :
26752  printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
26753
26754fi
26755
26756
26757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26758printf %s "checking for BoringSSL... " >&6; }
26759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760/* end confdefs.h.  */
26761
26762
26763                #include <openssl/base.h>
26764
26765int main (void)
26766{
26767
26768                #ifndef OPENSSL_IS_BORINGSSL
26769                #error not boringssl
26770                #endif
26771
26772 ;
26773 return 0;
26774}
26775
26776_ACEOF
26777if ac_fn_c_try_compile "$LINENO"
26778then :
26779
26780        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26781printf "%s\n" "yes" >&6; }
26782
26783printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
26784
26785        ssl_msg="BoringSSL"
26786
26787else $as_nop
26788
26789        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26790printf "%s\n" "no" >&6; }
26791
26792fi
26793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26794
26795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
26796printf %s "checking for libressl... " >&6; }
26797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26798/* end confdefs.h.  */
26799
26800
26801#include <openssl/opensslv.h>
26802
26803int main (void)
26804{
26805
26806        int dummy = LIBRESSL_VERSION_NUMBER;
26807
26808 ;
26809 return 0;
26810}
26811
26812_ACEOF
26813if ac_fn_c_try_compile "$LINENO"
26814then :
26815
26816      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26817printf "%s\n" "yes" >&6; }
26818
26819printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
26820
26821      ssl_msg="libressl"
26822
26823else $as_nop
26824
26825      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26826printf "%s\n" "no" >&6; }
26827
26828fi
26829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26830
26831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
26832printf %s "checking for OpenSSL >= v3... " >&6; }
26833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26834/* end confdefs.h.  */
26835
26836
26837#include <openssl/opensslv.h>
26838
26839int main (void)
26840{
26841
26842        #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
26843        return 0;
26844        #else
26845        #error older than 3
26846        #endif
26847
26848 ;
26849 return 0;
26850}
26851
26852_ACEOF
26853if ac_fn_c_try_compile "$LINENO"
26854then :
26855
26856      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26857printf "%s\n" "yes" >&6; }
26858
26859printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26860
26861      ssl_msg="OpenSSL v3+"
26862
26863else $as_nop
26864
26865      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866printf "%s\n" "no" >&6; }
26867
26868fi
26869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26870  fi
26871
26872  if test "$OPENSSL_ENABLED" = "1"; then
26873    if test -n "$LIB_OPENSSL"; then
26874                            if test "x$cross_compiling" != "xyes"; then
26875         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
26876         export CURL_LIBRARY_PATH
26877         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
26878printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
26879       fi
26880    fi
26881    check_for_ca_bundle=1
26882  fi
26883
26884  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26885fi
26886
26887if test X"$OPT_OPENSSL" != Xno &&
26888  test "$OPENSSL_ENABLED" != "1"; then
26889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26890printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26892printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26893  as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26894fi
26895
26896
26897if test X"$OPENSSL_ENABLED" = X"1"; then
26898
26899# Check whether --with-egd-socket was given.
26900if test ${with_egd_socket+y}
26901then :
26902  withval=$with_egd_socket;  EGD_SOCKET="$withval"
26903
26904fi
26905
26906  if test -n "$EGD_SOCKET" ; then
26907
26908printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26909
26910  fi
26911
26912
26913# Check whether --with-random was given.
26914if test ${with_random+y}
26915then :
26916  withval=$with_random;  RANDOM_FILE="$withval"
26917else $as_nop
26918
26919          if test x$cross_compiling != xyes; then
26920                        as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26922printf %s "checking for \"/dev/urandom\"... " >&6; }
26923if eval test \${$as_ac_File+y}
26924then :
26925  printf %s "(cached) " >&6
26926else $as_nop
26927  test "$cross_compiling" = yes &&
26928  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26929if test -r ""/dev/urandom""; then
26930  eval "$as_ac_File=yes"
26931else
26932  eval "$as_ac_File=no"
26933fi
26934fi
26935eval ac_res=\$$as_ac_File
26936	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26937printf "%s\n" "$ac_res" >&6; }
26938if eval test \"x\$"$as_ac_File"\" = x"yes"
26939then :
26940   RANDOM_FILE="/dev/urandom"
26941fi
26942
26943          else
26944            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26945printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26946          fi
26947
26948
26949fi
26950
26951  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26952
26953
26954printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26955
26956  fi
26957fi
26958
26959if test "$OPENSSL_ENABLED" = "1"; then
26960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
26961printf %s "checking for SRP support in OpenSSL... " >&6; }
26962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26963/* end confdefs.h.  */
26964
26965
26966#include <openssl/ssl.h>
26967
26968int main (void)
26969{
26970
26971      SSL_CTX_set_srp_username(NULL, "");
26972      SSL_CTX_set_srp_password(NULL, "");
26973
26974 ;
26975 return 0;
26976}
26977
26978_ACEOF
26979if ac_fn_c_try_link "$LINENO"
26980then :
26981
26982    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26983printf "%s\n" "yes" >&6; }
26984
26985printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26986
26987    HAVE_OPENSSL_SRP=1
26988
26989
26990else $as_nop
26991
26992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26993printf "%s\n" "no" >&6; }
26994
26995fi
26996rm -f core conftest.err conftest.$ac_objext conftest.beam \
26997    conftest$ac_exeext conftest.$ac_ext
26998fi
26999
27000if test X"$OPENSSL_ENABLED" = X"1"; then
27001# Check whether --enable-openssl-auto-load-config was given.
27002if test ${enable_openssl_auto_load_config+y}
27003then :
27004  enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
27005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27006printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27007
27008printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27009
27010  fi
27011
27012fi
27013
27014fi
27015
27016
27017
27018if test "x$OPT_GNUTLS" != xno; then
27019  ssl_msg=
27020
27021  if test X"$OPT_GNUTLS" != Xno; then
27022
27023    addld=""
27024    addlib=""
27025    gtlslib=""
27026    version=""
27027    addcflags=""
27028
27029    if test "x$OPT_GNUTLS" = "xyes"; then
27030
27031    if test -n "$PKG_CONFIG"; then
27032      PKGCONFIG="$PKG_CONFIG"
27033    else
27034      if test -n "$ac_tool_prefix"; then
27035  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27036set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27038printf %s "checking for $ac_word... " >&6; }
27039if test ${ac_cv_path_PKGCONFIG+y}
27040then :
27041  printf %s "(cached) " >&6
27042else $as_nop
27043  case $PKGCONFIG in
27044  [\\/]* | ?:[\\/]*)
27045  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27046  ;;
27047  *)
27048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27049as_dummy="$PATH:/usr/bin:/usr/local/bin"
27050for as_dir in $as_dummy
27051do
27052  IFS=$as_save_IFS
27053  case $as_dir in #(((
27054    '') as_dir=./ ;;
27055    */) ;;
27056    *) as_dir=$as_dir/ ;;
27057  esac
27058    for ac_exec_ext in '' $ac_executable_extensions; do
27059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27060    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27062    break 2
27063  fi
27064done
27065  done
27066IFS=$as_save_IFS
27067
27068  ;;
27069esac
27070fi
27071PKGCONFIG=$ac_cv_path_PKGCONFIG
27072if test -n "$PKGCONFIG"; then
27073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27074printf "%s\n" "$PKGCONFIG" >&6; }
27075else
27076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27077printf "%s\n" "no" >&6; }
27078fi
27079
27080
27081fi
27082if test -z "$ac_cv_path_PKGCONFIG"; then
27083  ac_pt_PKGCONFIG=$PKGCONFIG
27084  # Extract the first word of "pkg-config", so it can be a program name with args.
27085set dummy pkg-config; ac_word=$2
27086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27087printf %s "checking for $ac_word... " >&6; }
27088if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27089then :
27090  printf %s "(cached) " >&6
27091else $as_nop
27092  case $ac_pt_PKGCONFIG in
27093  [\\/]* | ?:[\\/]*)
27094  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27095  ;;
27096  *)
27097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098as_dummy="$PATH:/usr/bin:/usr/local/bin"
27099for as_dir in $as_dummy
27100do
27101  IFS=$as_save_IFS
27102  case $as_dir in #(((
27103    '') as_dir=./ ;;
27104    */) ;;
27105    *) as_dir=$as_dir/ ;;
27106  esac
27107    for ac_exec_ext in '' $ac_executable_extensions; do
27108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27109    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27111    break 2
27112  fi
27113done
27114  done
27115IFS=$as_save_IFS
27116
27117  ;;
27118esac
27119fi
27120ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27121if test -n "$ac_pt_PKGCONFIG"; then
27122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27123printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27124else
27125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27126printf "%s\n" "no" >&6; }
27127fi
27128
27129  if test "x$ac_pt_PKGCONFIG" = x; then
27130    PKGCONFIG="no"
27131  else
27132    case $cross_compiling:$ac_tool_warned in
27133yes:)
27134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27135printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27136ac_tool_warned=yes ;;
27137esac
27138    PKGCONFIG=$ac_pt_PKGCONFIG
27139  fi
27140else
27141  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27142fi
27143
27144    fi
27145
27146    if test "x$PKGCONFIG" != "xno"; then
27147      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27148printf %s "checking for gnutls options with pkg-config... " >&6; }
27149            itexists=`
27150    if test -n ""; then
27151      PKG_CONFIG_LIBDIR=""
27152      export PKG_CONFIG_LIBDIR
27153    fi
27154         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27155
27156      if test -z "$itexists"; then
27157                        PKGCONFIG="no"
27158        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27159printf "%s\n" "no" >&6; }
27160      else
27161        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27162printf "%s\n" "found" >&6; }
27163      fi
27164    fi
27165
27166
27167      if test "$PKGCONFIG" != "no" ; then
27168        addlib=`$PKGCONFIG --libs-only-l gnutls`
27169        addld=`$PKGCONFIG --libs-only-L gnutls`
27170        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27171        version=`$PKGCONFIG --modversion gnutls`
27172        gtlslib=`echo $addld | $SED -e 's/^-L//'`
27173      else
27174                        check=`libgnutls-config --version 2>/dev/null`
27175        if test -n "$check"; then
27176          addlib=`libgnutls-config --libs`
27177          addcflags=`libgnutls-config --cflags`
27178          version=`libgnutls-config --version`
27179          gtlslib=`libgnutls-config --prefix`/lib$libsuff
27180        fi
27181      fi
27182    else
27183                  cfg=$OPT_GNUTLS/bin/libgnutls-config
27184      check=`$cfg --version 2>/dev/null`
27185      if test -n "$check"; then
27186        addlib=`$cfg --libs`
27187        addcflags=`$cfg --cflags`
27188        version=`$cfg --version`
27189        gtlslib=`$cfg --prefix`/lib$libsuff
27190      else
27191                addlib=-lgnutls
27192        addld=-L$OPT_GNUTLS/lib$libsuff
27193        addcflags=-I$OPT_GNUTLS/include
27194        version="" # we just don't know
27195        gtlslib=$OPT_GNUTLS/lib$libsuff
27196      fi
27197    fi
27198
27199    if test -z "$version"; then
27200            version="unknown"
27201    fi
27202
27203    if test -n "$addlib"; then
27204
27205      CLEANLIBS="$LIBS"
27206      CLEANCPPFLAGS="$CPPFLAGS"
27207      CLEANLDFLAGS="$LDFLAGS"
27208
27209      LIBS="$addlib $LIBS"
27210      LDFLAGS="$LDFLAGS $addld"
27211      if test "$addcflags" != "-I/usr/include"; then
27212         CPPFLAGS="$CPPFLAGS $addcflags"
27213      fi
27214
27215            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27216printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27217if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27218then :
27219  printf %s "(cached) " >&6
27220else $as_nop
27221  ac_check_lib_save_LIBS=$LIBS
27222LIBS="-lgnutls  $LIBS"
27223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27224/* end confdefs.h.  */
27225
27226
27227#ifdef __cplusplus
27228extern "C"
27229#endif
27230char gnutls_x509_crt_get_dn2 ();
27231int main (void)
27232{
27233return gnutls_x509_crt_get_dn2 ();
27234 ;
27235 return 0;
27236}
27237_ACEOF
27238if ac_fn_c_try_link "$LINENO"
27239then :
27240  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27241else $as_nop
27242  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27243fi
27244rm -f core conftest.err conftest.$ac_objext conftest.beam \
27245    conftest$ac_exeext conftest.$ac_ext
27246LIBS=$ac_check_lib_save_LIBS
27247fi
27248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27249printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27250if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27251then :
27252
27253
27254printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27255
27256       USE_GNUTLS=1
27257
27258       GNUTLS_ENABLED=1
27259       USE_GNUTLS="yes"
27260       ssl_msg="GnuTLS"
27261       test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27262
27263else $as_nop
27264
27265         LIBS="$CLEANLIBS"
27266         CPPFLAGS="$CLEANCPPFLAGS"
27267
27268fi
27269
27270
27271      if test "x$USE_GNUTLS" = "xyes"; then
27272        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27273printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27274        check_for_ca_bundle=1
27275        if test -n "$gtlslib"; then
27276                                                  if test "x$cross_compiling" != "xyes"; then
27277            CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27278            export CURL_LIBRARY_PATH
27279            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27280printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27281          fi
27282        fi
27283      fi
27284
27285    fi
27286
27287  fi
27288  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27289fi
27290
27291
27292if test "$GNUTLS_ENABLED" = "1"; then
27293  USE_GNUTLS_NETTLE=
27294  # First check if we can detect either crypto library via transitive linking
27295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27296printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27297if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27298then :
27299  printf %s "(cached) " >&6
27300else $as_nop
27301  ac_check_lib_save_LIBS=$LIBS
27302LIBS="-lgnutls  $LIBS"
27303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304/* end confdefs.h.  */
27305
27306
27307#ifdef __cplusplus
27308extern "C"
27309#endif
27310char nettle_MD5Init ();
27311int main (void)
27312{
27313return nettle_MD5Init ();
27314 ;
27315 return 0;
27316}
27317_ACEOF
27318if ac_fn_c_try_link "$LINENO"
27319then :
27320  ac_cv_lib_gnutls_nettle_MD5Init=yes
27321else $as_nop
27322  ac_cv_lib_gnutls_nettle_MD5Init=no
27323fi
27324rm -f core conftest.err conftest.$ac_objext conftest.beam \
27325    conftest$ac_exeext conftest.$ac_ext
27326LIBS=$ac_check_lib_save_LIBS
27327fi
27328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27329printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27330if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27331then :
27332   USE_GNUTLS_NETTLE=1
27333fi
27334
27335
27336  # If not, try linking directly to both of them to see if they are available
27337  if test "$USE_GNUTLS_NETTLE" = ""; then
27338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27339printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27340if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27341then :
27342  printf %s "(cached) " >&6
27343else $as_nop
27344  ac_check_lib_save_LIBS=$LIBS
27345LIBS="-lnettle  $LIBS"
27346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27347/* end confdefs.h.  */
27348
27349
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353char nettle_MD5Init ();
27354int main (void)
27355{
27356return nettle_MD5Init ();
27357 ;
27358 return 0;
27359}
27360_ACEOF
27361if ac_fn_c_try_link "$LINENO"
27362then :
27363  ac_cv_lib_nettle_nettle_MD5Init=yes
27364else $as_nop
27365  ac_cv_lib_nettle_nettle_MD5Init=no
27366fi
27367rm -f core conftest.err conftest.$ac_objext conftest.beam \
27368    conftest$ac_exeext conftest.$ac_ext
27369LIBS=$ac_check_lib_save_LIBS
27370fi
27371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27372printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27373if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27374then :
27375   USE_GNUTLS_NETTLE=1
27376fi
27377
27378  fi
27379  if test "$USE_GNUTLS_NETTLE" = ""; then
27380    as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27381  fi
27382  LIBS="-lnettle $LIBS"
27383fi
27384
27385if test "$GNUTLS_ENABLED" = "1"; then
27386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27387printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27388if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27389then :
27390  printf %s "(cached) " >&6
27391else $as_nop
27392  ac_check_lib_save_LIBS=$LIBS
27393LIBS="-lgnutls  $LIBS"
27394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27395/* end confdefs.h.  */
27396
27397
27398#ifdef __cplusplus
27399extern "C"
27400#endif
27401char gnutls_srp_verifier ();
27402int main (void)
27403{
27404return gnutls_srp_verifier ();
27405 ;
27406 return 0;
27407}
27408_ACEOF
27409if ac_fn_c_try_link "$LINENO"
27410then :
27411  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27412else $as_nop
27413  ac_cv_lib_gnutls_gnutls_srp_verifier=no
27414fi
27415rm -f core conftest.err conftest.$ac_objext conftest.beam \
27416    conftest$ac_exeext conftest.$ac_ext
27417LIBS=$ac_check_lib_save_LIBS
27418fi
27419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27420printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27421if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27422then :
27423
27424
27425printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27426
27427     HAVE_GNUTLS_SRP=1
27428
27429
27430fi
27431
27432fi
27433
27434
27435
27436
27437if test "x$OPT_MBEDTLS" != xno; then
27438  _cppflags=$CPPFLAGS
27439  _ldflags=$LDFLAGS
27440  ssl_msg=
27441
27442  if test X"$OPT_MBEDTLS" != Xno; then
27443
27444    if test "$OPT_MBEDTLS" = "yes"; then
27445      OPT_MBEDTLS=""
27446    fi
27447
27448    if test -z "$OPT_MBEDTLS" ; then
27449
27450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27451printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27452if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27453then :
27454  printf %s "(cached) " >&6
27455else $as_nop
27456  ac_check_lib_save_LIBS=$LIBS
27457LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459/* end confdefs.h.  */
27460
27461
27462#ifdef __cplusplus
27463extern "C"
27464#endif
27465char mbedtls_havege_init ();
27466int main (void)
27467{
27468return mbedtls_havege_init ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473if ac_fn_c_try_link "$LINENO"
27474then :
27475  ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27476else $as_nop
27477  ac_cv_lib_mbedtls_mbedtls_havege_init=no
27478fi
27479rm -f core conftest.err conftest.$ac_objext conftest.beam \
27480    conftest$ac_exeext conftest.$ac_ext
27481LIBS=$ac_check_lib_save_LIBS
27482fi
27483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27484printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27485if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27486then :
27487
27488
27489printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27490
27491         USE_MBEDTLS=1
27492
27493         MBEDTLS_ENABLED=1
27494         USE_MBEDTLS="yes"
27495         ssl_msg="mbedTLS"
27496	 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27497
27498fi
27499
27500    fi
27501
27502    addld=""
27503    addlib=""
27504    addcflags=""
27505    mbedtlslib=""
27506
27507    if test "x$USE_MBEDTLS" != "xyes"; then
27508            addld=-L$OPT_MBEDTLS/lib$libsuff
27509      addcflags=-I$OPT_MBEDTLS/include
27510      mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27511
27512      LDFLAGS="$LDFLAGS $addld"
27513      if test "$addcflags" != "-I/usr/include"; then
27514         CPPFLAGS="$CPPFLAGS $addcflags"
27515      fi
27516
27517      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27518printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27519if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27520then :
27521  printf %s "(cached) " >&6
27522else $as_nop
27523  ac_check_lib_save_LIBS=$LIBS
27524LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27526/* end confdefs.h.  */
27527
27528
27529#ifdef __cplusplus
27530extern "C"
27531#endif
27532char mbedtls_ssl_init ();
27533int main (void)
27534{
27535return mbedtls_ssl_init ();
27536 ;
27537 return 0;
27538}
27539_ACEOF
27540if ac_fn_c_try_link "$LINENO"
27541then :
27542  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27543else $as_nop
27544  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27545fi
27546rm -f core conftest.err conftest.$ac_objext conftest.beam \
27547    conftest$ac_exeext conftest.$ac_ext
27548LIBS=$ac_check_lib_save_LIBS
27549fi
27550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27551printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27552if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27553then :
27554
27555
27556printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27557
27558       USE_MBEDTLS=1
27559
27560       MBEDTLS_ENABLED=1
27561       USE_MBEDTLS="yes"
27562       ssl_msg="mbedTLS"
27563       test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27564
27565else $as_nop
27566
27567         CPPFLAGS=$_cppflags
27568         LDFLAGS=$_ldflags
27569
27570fi
27571
27572    fi
27573
27574    if test "x$USE_MBEDTLS" = "xyes"; then
27575      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27576printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27577      check_for_ca_bundle=1
27578
27579      LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27580
27581      if test -n "$mbedtlslib"; then
27582                                        if test "x$cross_compiling" != "xyes"; then
27583          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27584          export CURL_LIBRARY_PATH
27585          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27586printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27587        fi
27588      fi
27589    fi
27590
27591  fi
27592  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27593fi
27594
27595
27596
27597
27598case "$OPT_WOLFSSL" in
27599  yes|no)
27600    wolfpkg=""
27601    ;;
27602  *)
27603    wolfpkg="$withval/lib/pkgconfig"
27604    ;;
27605esac
27606
27607if test "x$OPT_WOLFSSL" != xno; then
27608  _cppflags=$CPPFLAGS
27609  _ldflags=$LDFLAGS
27610
27611  ssl_msg=
27612
27613  if test X"$OPT_WOLFSSL" != Xno; then
27614
27615    if test "$OPT_WOLFSSL" = "yes"; then
27616      OPT_WOLFSSL=""
27617    fi
27618
27619
27620    if test -n "$PKG_CONFIG"; then
27621      PKGCONFIG="$PKG_CONFIG"
27622    else
27623      if test -n "$ac_tool_prefix"; then
27624  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27625set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27627printf %s "checking for $ac_word... " >&6; }
27628if test ${ac_cv_path_PKGCONFIG+y}
27629then :
27630  printf %s "(cached) " >&6
27631else $as_nop
27632  case $PKGCONFIG in
27633  [\\/]* | ?:[\\/]*)
27634  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27635  ;;
27636  *)
27637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27638as_dummy="$PATH:/usr/bin:/usr/local/bin"
27639for as_dir in $as_dummy
27640do
27641  IFS=$as_save_IFS
27642  case $as_dir in #(((
27643    '') as_dir=./ ;;
27644    */) ;;
27645    *) as_dir=$as_dir/ ;;
27646  esac
27647    for ac_exec_ext in '' $ac_executable_extensions; do
27648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27649    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27651    break 2
27652  fi
27653done
27654  done
27655IFS=$as_save_IFS
27656
27657  ;;
27658esac
27659fi
27660PKGCONFIG=$ac_cv_path_PKGCONFIG
27661if test -n "$PKGCONFIG"; then
27662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27663printf "%s\n" "$PKGCONFIG" >&6; }
27664else
27665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27666printf "%s\n" "no" >&6; }
27667fi
27668
27669
27670fi
27671if test -z "$ac_cv_path_PKGCONFIG"; then
27672  ac_pt_PKGCONFIG=$PKGCONFIG
27673  # Extract the first word of "pkg-config", so it can be a program name with args.
27674set dummy pkg-config; ac_word=$2
27675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27676printf %s "checking for $ac_word... " >&6; }
27677if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27678then :
27679  printf %s "(cached) " >&6
27680else $as_nop
27681  case $ac_pt_PKGCONFIG in
27682  [\\/]* | ?:[\\/]*)
27683  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27684  ;;
27685  *)
27686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27687as_dummy="$PATH:/usr/bin:/usr/local/bin"
27688for as_dir in $as_dummy
27689do
27690  IFS=$as_save_IFS
27691  case $as_dir in #(((
27692    '') as_dir=./ ;;
27693    */) ;;
27694    *) as_dir=$as_dir/ ;;
27695  esac
27696    for ac_exec_ext in '' $ac_executable_extensions; do
27697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27698    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27700    break 2
27701  fi
27702done
27703  done
27704IFS=$as_save_IFS
27705
27706  ;;
27707esac
27708fi
27709ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27710if test -n "$ac_pt_PKGCONFIG"; then
27711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27712printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27713else
27714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27715printf "%s\n" "no" >&6; }
27716fi
27717
27718  if test "x$ac_pt_PKGCONFIG" = x; then
27719    PKGCONFIG="no"
27720  else
27721    case $cross_compiling:$ac_tool_warned in
27722yes:)
27723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27725ac_tool_warned=yes ;;
27726esac
27727    PKGCONFIG=$ac_pt_PKGCONFIG
27728  fi
27729else
27730  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27731fi
27732
27733    fi
27734
27735    if test "x$PKGCONFIG" != "xno"; then
27736      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27737printf %s "checking for wolfssl options with pkg-config... " >&6; }
27738            itexists=`
27739    if test -n "$wolfpkg"; then
27740      PKG_CONFIG_LIBDIR="$wolfpkg"
27741      export PKG_CONFIG_LIBDIR
27742    fi
27743         $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27744
27745      if test -z "$itexists"; then
27746                        PKGCONFIG="no"
27747        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27748printf "%s\n" "no" >&6; }
27749      else
27750        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27751printf "%s\n" "found" >&6; }
27752      fi
27753    fi
27754
27755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27756printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27757
27758    addld=""
27759    addlib=""
27760    addcflags=""
27761    if test "$PKGCONFIG" != "no" ; then
27762      addlib=`
27763    if test -n "$wolfpkg"; then
27764      PKG_CONFIG_LIBDIR="$wolfpkg"
27765      export PKG_CONFIG_LIBDIR
27766    fi
27767
27768        $PKGCONFIG --libs-only-l wolfssl`
27769      addld=`
27770    if test -n "$wolfpkg"; then
27771      PKG_CONFIG_LIBDIR="$wolfpkg"
27772      export PKG_CONFIG_LIBDIR
27773    fi
27774
27775        $PKGCONFIG --libs-only-L wolfssl`
27776      addcflags=`
27777    if test -n "$wolfpkg"; then
27778      PKG_CONFIG_LIBDIR="$wolfpkg"
27779      export PKG_CONFIG_LIBDIR
27780    fi
27781
27782        $PKGCONFIG --cflags-only-I wolfssl`
27783      version=`
27784    if test -n "$wolfpkg"; then
27785      PKG_CONFIG_LIBDIR="$wolfpkg"
27786      export PKG_CONFIG_LIBDIR
27787    fi
27788
27789        $PKGCONFIG --modversion wolfssl`
27790      wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27791    else
27792      addlib=-lwolfssl
27793            if test -n "$OPT_WOLFSSL"; then
27794        addld=-L$OPT_WOLFSSL/lib$libsuff
27795        addcflags=-I$OPT_WOLFSSL/include
27796        wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27797      fi
27798    fi
27799
27800    if test "x$USE_WOLFSSL" != "xyes"; then
27801
27802      LDFLAGS="$LDFLAGS $addld"
27803      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27804printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27805      if test "$addcflags" != "-I/usr/include"; then
27806         CPPFLAGS="$CPPFLAGS $addcflags"
27807         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27808printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27809      fi
27810
27811      my_ac_save_LIBS="$LIBS"
27812      LIBS="$addlib $LIBS"
27813      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27814printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27815
27816      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27817printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27818      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819/* end confdefs.h.  */
27820
27821
27822/* These aren't needed for detection and confuse WolfSSL.
27823   They are set up properly later if it is detected.  */
27824#undef SIZEOF_LONG
27825#undef SIZEOF_LONG_LONG
27826#include <wolfssl/options.h>
27827#include <wolfssl/ssl.h>
27828
27829int main (void)
27830{
27831
27832	  return wolfSSL_Init();
27833
27834 ;
27835 return 0;
27836}
27837
27838_ACEOF
27839if ac_fn_c_try_link "$LINENO"
27840then :
27841
27842         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843printf "%s\n" "yes" >&6; }
27844
27845printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27846
27847         USE_WOLFSSL=1
27848
27849         WOLFSSL_ENABLED=1
27850         USE_WOLFSSL="yes"
27851         ssl_msg="WolfSSL"
27852	 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27853
27854else $as_nop
27855
27856         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27857printf "%s\n" "no" >&6; }
27858         CPPFLAGS=$_cppflags
27859         LDFLAGS=$_ldflags
27860         wolfssllibpath=""
27861
27862fi
27863rm -f core conftest.err conftest.$ac_objext conftest.beam \
27864    conftest$ac_exeext conftest.$ac_ext
27865      LIBS="$my_ac_save_LIBS"
27866    fi
27867
27868    if test "x$USE_WOLFSSL" = "xyes"; then
27869      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27870printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27871      check_for_ca_bundle=1
27872
27873
27874
27875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27876printf %s "checking size of long long... " >&6; }
27877  r=0
27878    for typesize in 8 4 2 16 1; do
27879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27880/* end confdefs.h.  */
27881
27882#include <sys/types.h>
27883
27884
27885int main (void)
27886{
27887switch(0) {
27888       case 0:
27889       case (sizeof(long long) == $typesize):;
27890     }
27891
27892 ;
27893 return 0;
27894}
27895_ACEOF
27896if ac_fn_c_try_compile "$LINENO"
27897then :
27898
27899       r=$typesize
27900else $as_nop
27901
27902       r=0
27903fi
27904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27905        if test $r -gt 0; then
27906      break;
27907    fi
27908  done
27909  if test $r -eq 0; then
27910    as_fn_error $? "Failed to find size of long long" "$LINENO" 5
27911  fi
27912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
27913printf "%s\n" "$r" >&6; }
27914    tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
27915  eval "$tname=$r"
27916
27917
27918printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
27919
27920
27921
27922
27923      LIBS="$addlib -lm $LIBS"
27924
27925                        ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27926if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27927then :
27928  printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27929
27930fi
27931ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27932if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27933then :
27934  printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27935
27936fi
27937
27938
27939                  ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27940if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27941then :
27942
27943
27944printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27945
27946            WOLFSSL_NTLM=1
27947
27948
27949fi
27950
27951
27952            ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
27953if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
27954then :
27955
27956
27957printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
27958
27959            WOLFSSL_FULL_BIO=1
27960
27961
27962fi
27963
27964
27965      if test -n "$wolfssllibpath"; then
27966                                        if test "x$cross_compiling" != "xyes"; then
27967          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27968          export CURL_LIBRARY_PATH
27969          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27970printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27971        fi
27972      fi
27973    else
27974        as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
27975    fi
27976
27977  fi
27978  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27979fi
27980
27981
27982
27983
27984if test "x$OPT_BEARSSL" != xno; then
27985  _cppflags=$CPPFLAGS
27986  _ldflags=$LDFLAGS
27987  ssl_msg=
27988
27989  if test X"$OPT_BEARSSL" != Xno; then
27990
27991    if test "$OPT_BEARSSL" = "yes"; then
27992      OPT_BEARSSL=""
27993    fi
27994
27995    if test -z "$OPT_BEARSSL" ; then
27996
27997      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27998printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27999if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28000then :
28001  printf %s "(cached) " >&6
28002else $as_nop
28003  ac_check_lib_save_LIBS=$LIBS
28004LIBS="-lbearssl -lbearssl $LIBS"
28005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006/* end confdefs.h.  */
28007
28008
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012char br_ssl_client_init_full ();
28013int main (void)
28014{
28015return br_ssl_client_init_full ();
28016 ;
28017 return 0;
28018}
28019_ACEOF
28020if ac_fn_c_try_link "$LINENO"
28021then :
28022  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28023else $as_nop
28024  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28025fi
28026rm -f core conftest.err conftest.$ac_objext conftest.beam \
28027    conftest$ac_exeext conftest.$ac_ext
28028LIBS=$ac_check_lib_save_LIBS
28029fi
28030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28031printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28032if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28033then :
28034
28035
28036printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28037
28038         USE_BEARSSL=1
28039
28040         BEARSSL_ENABLED=1
28041         USE_BEARSSL="yes"
28042         ssl_msg="BearSSL"
28043	 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28044
28045fi
28046
28047    fi
28048
28049    addld=""
28050    addlib=""
28051    addcflags=""
28052    bearssllib=""
28053
28054    if test "x$USE_BEARSSL" != "xyes"; then
28055            addld=-L$OPT_BEARSSL/lib$libsuff
28056      addcflags=-I$OPT_BEARSSL/include
28057      bearssllib=$OPT_BEARSSL/lib$libsuff
28058
28059      LDFLAGS="$LDFLAGS $addld"
28060      if test "$addcflags" != "-I/usr/include"; then
28061         CPPFLAGS="$CPPFLAGS $addcflags"
28062      fi
28063
28064      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28065printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28066if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28067then :
28068  printf %s "(cached) " >&6
28069else $as_nop
28070  ac_check_lib_save_LIBS=$LIBS
28071LIBS="-lbearssl -lbearssl $LIBS"
28072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073/* end confdefs.h.  */
28074
28075
28076#ifdef __cplusplus
28077extern "C"
28078#endif
28079char br_ssl_client_init_full ();
28080int main (void)
28081{
28082return br_ssl_client_init_full ();
28083 ;
28084 return 0;
28085}
28086_ACEOF
28087if ac_fn_c_try_link "$LINENO"
28088then :
28089  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28090else $as_nop
28091  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28092fi
28093rm -f core conftest.err conftest.$ac_objext conftest.beam \
28094    conftest$ac_exeext conftest.$ac_ext
28095LIBS=$ac_check_lib_save_LIBS
28096fi
28097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28098printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28099if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28100then :
28101
28102
28103printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28104
28105       USE_BEARSSL=1
28106
28107       BEARSSL_ENABLED=1
28108       USE_BEARSSL="yes"
28109       ssl_msg="BearSSL"
28110       test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28111
28112else $as_nop
28113
28114         CPPFLAGS=$_cppflags
28115         LDFLAGS=$_ldflags
28116
28117fi
28118
28119    fi
28120
28121    if test "x$USE_BEARSSL" = "xyes"; then
28122      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28123printf "%s\n" "$as_me: detected BearSSL" >&6;}
28124      check_for_ca_bundle=1
28125
28126      LIBS="-lbearssl $LIBS"
28127
28128      if test -n "$bearssllib"; then
28129                                        if test "x$cross_compiling" != "xyes"; then
28130          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28131          export CURL_LIBRARY_PATH
28132          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28133printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28134        fi
28135      fi
28136    fi
28137
28138  fi
28139  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28140fi
28141
28142
28143
28144if test "x$OPT_RUSTLS" != xno; then
28145  _cppflags=$CPPFLAGS
28146  _ldflags=$LDFLAGS
28147  ssl_msg=
28148
28149  if test X"$OPT_RUSTLS" != Xno; then
28150
28151    if test "$OPT_RUSTLS" = "yes"; then
28152      OPT_RUSTLS=""
28153    fi
28154
28155    case $host_os in
28156      darwin*)
28157        LDFLAGS="$LDFLAGS -framework Security"
28158        ;;
28159      *)
28160        ;;
28161    esac
28162
28163    if test -z "$OPT_RUSTLS" ; then
28164
28165      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
28166printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
28167if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
28168then :
28169  printf %s "(cached) " >&6
28170else $as_nop
28171  ac_check_lib_save_LIBS=$LIBS
28172LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28174/* end confdefs.h.  */
28175
28176
28177#ifdef __cplusplus
28178extern "C"
28179#endif
28180char rustls_client_session_read ();
28181int main (void)
28182{
28183return rustls_client_session_read ();
28184 ;
28185 return 0;
28186}
28187_ACEOF
28188if ac_fn_c_try_link "$LINENO"
28189then :
28190  ac_cv_lib_rustls_rustls_client_session_read=yes
28191else $as_nop
28192  ac_cv_lib_rustls_rustls_client_session_read=no
28193fi
28194rm -f core conftest.err conftest.$ac_objext conftest.beam \
28195    conftest$ac_exeext conftest.$ac_ext
28196LIBS=$ac_check_lib_save_LIBS
28197fi
28198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
28199printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
28200if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
28201then :
28202
28203
28204printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28205
28206         USE_RUSTLS=1
28207
28208         RUSTLS_ENABLED=1
28209         USE_RUSTLS="yes"
28210         ssl_msg="rustls"
28211	 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28212
28213fi
28214
28215    fi
28216
28217    if test "x$USE_RUSTLS" != "xyes"; then
28218            addld=-L$OPT_RUSTLS/lib$libsuff
28219      addcflags=-I$OPT_RUSTLS/include
28220      rustlslib=$OPT_RUSTLS/lib$libsuff
28221
28222      LDFLAGS="$LDFLAGS $addld"
28223      if test "$addcflags" != "-I/usr/include"; then
28224         CPPFLAGS="$CPPFLAGS $addcflags"
28225      fi
28226
28227      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28228printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28229if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28230then :
28231  printf %s "(cached) " >&6
28232else $as_nop
28233  ac_check_lib_save_LIBS=$LIBS
28234LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28236/* end confdefs.h.  */
28237
28238
28239#ifdef __cplusplus
28240extern "C"
28241#endif
28242char rustls_connection_read ();
28243int main (void)
28244{
28245return rustls_connection_read ();
28246 ;
28247 return 0;
28248}
28249_ACEOF
28250if ac_fn_c_try_link "$LINENO"
28251then :
28252  ac_cv_lib_rustls_rustls_connection_read=yes
28253else $as_nop
28254  ac_cv_lib_rustls_rustls_connection_read=no
28255fi
28256rm -f core conftest.err conftest.$ac_objext conftest.beam \
28257    conftest$ac_exeext conftest.$ac_ext
28258LIBS=$ac_check_lib_save_LIBS
28259fi
28260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28261printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28262if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28263then :
28264
28265
28266printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28267
28268       USE_RUSTLS=1
28269
28270       RUSTLS_ENABLED=1
28271       USE_RUSTLS="yes"
28272       ssl_msg="rustls"
28273       test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28274
28275else $as_nop
28276  as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28277fi
28278
28279    fi
28280
28281    if test "x$USE_RUSTLS" = "xyes"; then
28282      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28283printf "%s\n" "$as_me: detected rustls" >&6;}
28284      check_for_ca_bundle=1
28285
28286      LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28287
28288      if test -n "$rustlslib"; then
28289                                        if test "x$cross_compiling" != "xyes"; then
28290          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28291          export CURL_LIBRARY_PATH
28292          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28293printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28294        fi
28295      fi
28296    fi
28297
28298  fi
28299  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28300fi
28301
28302
28303if test "x$OPT_NSS" != xno; then
28304  ssl_msg=
28305
28306  if test X"$OPT_NSS" != Xno; then
28307
28308    addld=""
28309    addlib=""
28310    addcflags=""
28311    nssprefix=""
28312    version=""
28313
28314    if test "x$OPT_NSS" = "xyes"; then
28315
28316
28317    if test -n "$PKG_CONFIG"; then
28318      PKGCONFIG="$PKG_CONFIG"
28319    else
28320      if test -n "$ac_tool_prefix"; then
28321  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28322set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28324printf %s "checking for $ac_word... " >&6; }
28325if test ${ac_cv_path_PKGCONFIG+y}
28326then :
28327  printf %s "(cached) " >&6
28328else $as_nop
28329  case $PKGCONFIG in
28330  [\\/]* | ?:[\\/]*)
28331  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28332  ;;
28333  *)
28334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28335as_dummy="$PATH:/usr/bin:/usr/local/bin"
28336for as_dir in $as_dummy
28337do
28338  IFS=$as_save_IFS
28339  case $as_dir in #(((
28340    '') as_dir=./ ;;
28341    */) ;;
28342    *) as_dir=$as_dir/ ;;
28343  esac
28344    for ac_exec_ext in '' $ac_executable_extensions; do
28345  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28346    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28347    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28348    break 2
28349  fi
28350done
28351  done
28352IFS=$as_save_IFS
28353
28354  ;;
28355esac
28356fi
28357PKGCONFIG=$ac_cv_path_PKGCONFIG
28358if test -n "$PKGCONFIG"; then
28359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28360printf "%s\n" "$PKGCONFIG" >&6; }
28361else
28362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28363printf "%s\n" "no" >&6; }
28364fi
28365
28366
28367fi
28368if test -z "$ac_cv_path_PKGCONFIG"; then
28369  ac_pt_PKGCONFIG=$PKGCONFIG
28370  # Extract the first word of "pkg-config", so it can be a program name with args.
28371set dummy pkg-config; ac_word=$2
28372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28373printf %s "checking for $ac_word... " >&6; }
28374if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28375then :
28376  printf %s "(cached) " >&6
28377else $as_nop
28378  case $ac_pt_PKGCONFIG in
28379  [\\/]* | ?:[\\/]*)
28380  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28381  ;;
28382  *)
28383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28384as_dummy="$PATH:/usr/bin:/usr/local/bin"
28385for as_dir in $as_dummy
28386do
28387  IFS=$as_save_IFS
28388  case $as_dir in #(((
28389    '') as_dir=./ ;;
28390    */) ;;
28391    *) as_dir=$as_dir/ ;;
28392  esac
28393    for ac_exec_ext in '' $ac_executable_extensions; do
28394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28395    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28397    break 2
28398  fi
28399done
28400  done
28401IFS=$as_save_IFS
28402
28403  ;;
28404esac
28405fi
28406ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28407if test -n "$ac_pt_PKGCONFIG"; then
28408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28409printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28410else
28411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28412printf "%s\n" "no" >&6; }
28413fi
28414
28415  if test "x$ac_pt_PKGCONFIG" = x; then
28416    PKGCONFIG="no"
28417  else
28418    case $cross_compiling:$ac_tool_warned in
28419yes:)
28420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28421printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28422ac_tool_warned=yes ;;
28423esac
28424    PKGCONFIG=$ac_pt_PKGCONFIG
28425  fi
28426else
28427  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28428fi
28429
28430    fi
28431
28432    if test "x$PKGCONFIG" != "xno"; then
28433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28434printf %s "checking for nss options with pkg-config... " >&6; }
28435            itexists=`
28436    if test -n ""; then
28437      PKG_CONFIG_LIBDIR=""
28438      export PKG_CONFIG_LIBDIR
28439    fi
28440         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28441
28442      if test -z "$itexists"; then
28443                        PKGCONFIG="no"
28444        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28445printf "%s\n" "no" >&6; }
28446      else
28447        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28448printf "%s\n" "found" >&6; }
28449      fi
28450    fi
28451
28452
28453      if test "$PKGCONFIG" != "no" ; then
28454        addlib=`$PKGCONFIG --libs nss`
28455        addcflags=`$PKGCONFIG --cflags nss`
28456        version=`$PKGCONFIG --modversion nss`
28457        nssprefix=`$PKGCONFIG --variable=prefix nss`
28458      else
28459
28460        check=`nss-config --version 2>/dev/null`
28461        if test -n "$check"; then
28462          addlib=`nss-config --libs`
28463          addcflags=`nss-config --cflags`
28464          version=`nss-config --version`
28465          nssprefix=`nss-config --prefix`
28466        else
28467          addlib="-lnss3"
28468          addcflags=""
28469          version="unknown"
28470        fi
28471      fi
28472    else
28473      NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28474      if test -f "$NSS_PCDIR/nss.pc"; then
28475
28476    if test -n "$PKG_CONFIG"; then
28477      PKGCONFIG="$PKG_CONFIG"
28478    else
28479      if test -n "$ac_tool_prefix"; then
28480  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28481set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28483printf %s "checking for $ac_word... " >&6; }
28484if test ${ac_cv_path_PKGCONFIG+y}
28485then :
28486  printf %s "(cached) " >&6
28487else $as_nop
28488  case $PKGCONFIG in
28489  [\\/]* | ?:[\\/]*)
28490  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28491  ;;
28492  *)
28493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28494as_dummy="$PATH:/usr/bin:/usr/local/bin"
28495for as_dir in $as_dummy
28496do
28497  IFS=$as_save_IFS
28498  case $as_dir in #(((
28499    '') as_dir=./ ;;
28500    */) ;;
28501    *) as_dir=$as_dir/ ;;
28502  esac
28503    for ac_exec_ext in '' $ac_executable_extensions; do
28504  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28505    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28506    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28507    break 2
28508  fi
28509done
28510  done
28511IFS=$as_save_IFS
28512
28513  ;;
28514esac
28515fi
28516PKGCONFIG=$ac_cv_path_PKGCONFIG
28517if test -n "$PKGCONFIG"; then
28518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28519printf "%s\n" "$PKGCONFIG" >&6; }
28520else
28521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28522printf "%s\n" "no" >&6; }
28523fi
28524
28525
28526fi
28527if test -z "$ac_cv_path_PKGCONFIG"; then
28528  ac_pt_PKGCONFIG=$PKGCONFIG
28529  # Extract the first word of "pkg-config", so it can be a program name with args.
28530set dummy pkg-config; ac_word=$2
28531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28532printf %s "checking for $ac_word... " >&6; }
28533if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28534then :
28535  printf %s "(cached) " >&6
28536else $as_nop
28537  case $ac_pt_PKGCONFIG in
28538  [\\/]* | ?:[\\/]*)
28539  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28540  ;;
28541  *)
28542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28543as_dummy="$PATH:/usr/bin:/usr/local/bin"
28544for as_dir in $as_dummy
28545do
28546  IFS=$as_save_IFS
28547  case $as_dir in #(((
28548    '') as_dir=./ ;;
28549    */) ;;
28550    *) as_dir=$as_dir/ ;;
28551  esac
28552    for ac_exec_ext in '' $ac_executable_extensions; do
28553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28554    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28556    break 2
28557  fi
28558done
28559  done
28560IFS=$as_save_IFS
28561
28562  ;;
28563esac
28564fi
28565ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28566if test -n "$ac_pt_PKGCONFIG"; then
28567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28568printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28569else
28570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571printf "%s\n" "no" >&6; }
28572fi
28573
28574  if test "x$ac_pt_PKGCONFIG" = x; then
28575    PKGCONFIG="no"
28576  else
28577    case $cross_compiling:$ac_tool_warned in
28578yes:)
28579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28580printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28581ac_tool_warned=yes ;;
28582esac
28583    PKGCONFIG=$ac_pt_PKGCONFIG
28584  fi
28585else
28586  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28587fi
28588
28589    fi
28590
28591    if test "x$PKGCONFIG" != "xno"; then
28592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28593printf %s "checking for nss options with pkg-config... " >&6; }
28594            itexists=`
28595    if test -n "$NSS_PCDIR"; then
28596      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28597      export PKG_CONFIG_LIBDIR
28598    fi
28599         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28600
28601      if test -z "$itexists"; then
28602                        PKGCONFIG="no"
28603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28604printf "%s\n" "no" >&6; }
28605      else
28606        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28607printf "%s\n" "found" >&6; }
28608      fi
28609    fi
28610
28611        if test "$PKGCONFIG" != "no" ; then
28612          addld=`
28613    if test -n "$NSS_PCDIR"; then
28614      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28615      export PKG_CONFIG_LIBDIR
28616    fi
28617 $PKGCONFIG --libs-only-L nss`
28618          addlib=`
28619    if test -n "$NSS_PCDIR"; then
28620      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28621      export PKG_CONFIG_LIBDIR
28622    fi
28623 $PKGCONFIG --libs-only-l nss`
28624          addcflags=`
28625    if test -n "$NSS_PCDIR"; then
28626      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28627      export PKG_CONFIG_LIBDIR
28628    fi
28629 $PKGCONFIG --cflags nss`
28630          version=`
28631    if test -n "$NSS_PCDIR"; then
28632      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28633      export PKG_CONFIG_LIBDIR
28634    fi
28635 $PKGCONFIG --modversion nss`
28636          nssprefix=`
28637    if test -n "$NSS_PCDIR"; then
28638      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28639      export PKG_CONFIG_LIBDIR
28640    fi
28641 $PKGCONFIG --variable=prefix nss`
28642        fi
28643      fi
28644    fi
28645
28646    if test -z "$addlib"; then
28647      # Without pkg-config, we'll kludge in some defaults
28648      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28649printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28650      addld="-L$OPT_NSS/lib"
28651      addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28652      addcflags="-I$OPT_NSS/include"
28653      version="unknown"
28654      nssprefix=$OPT_NSS
28655    fi
28656
28657    CLEANLDFLAGS="$LDFLAGS"
28658    CLEANLIBS="$LIBS"
28659    CLEANCPPFLAGS="$CPPFLAGS"
28660
28661    LDFLAGS="$addld $LDFLAGS"
28662    LIBS="$addlib $LIBS"
28663    if test "$addcflags" != "-I/usr/include"; then
28664       CPPFLAGS="$CPPFLAGS $addcflags"
28665    fi
28666
28667        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28668printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28669if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28670then :
28671  printf %s "(cached) " >&6
28672else $as_nop
28673  ac_check_lib_save_LIBS=$LIBS
28674LIBS="-lnss3  $LIBS"
28675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28676/* end confdefs.h.  */
28677
28678
28679#ifdef __cplusplus
28680extern "C"
28681#endif
28682char SSL_VersionRangeSet ();
28683int main (void)
28684{
28685return SSL_VersionRangeSet ();
28686 ;
28687 return 0;
28688}
28689_ACEOF
28690if ac_fn_c_try_link "$LINENO"
28691then :
28692  ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28693else $as_nop
28694  ac_cv_lib_nss3_SSL_VersionRangeSet=no
28695fi
28696rm -f core conftest.err conftest.$ac_objext conftest.beam \
28697    conftest$ac_exeext conftest.$ac_ext
28698LIBS=$ac_check_lib_save_LIBS
28699fi
28700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28701printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28702if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28703then :
28704
28705
28706printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28707
28708     USE_NSS=1
28709
28710     USE_NSS="yes"
28711     NSS_ENABLED=1
28712     ssl_msg="NSS"
28713     test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28714
28715else $as_nop
28716
28717       LDFLAGS="$CLEANLDFLAGS"
28718       LIBS="$CLEANLIBS"
28719       CPPFLAGS="$CLEANCPPFLAGS"
28720
28721fi
28722
28723
28724    if test "x$USE_NSS" = "xyes"; then
28725      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28726printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28727
28728                        ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28729if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28730then :
28731
28732
28733printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28734
28735
28736fi
28737
28738
28739            NSS_LIBS=$addlib
28740
28741
28742                              if test "x$cross_compiling" != "xyes"; then
28743        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28744        export CURL_LIBRARY_PATH
28745        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28746printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28747      fi
28748
28749    fi
28750  fi
28751  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28752fi
28753
28754
28755
28756if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28757  LIBS="-ladvapi32 -lcrypt32 $LIBS"
28758fi
28759
28760if test "x$curl_cv_native_windows" = "xyes" &&
28761   test "x$curl_mingw_original" = "xno"; then
28762  LIBS="-lbcrypt $LIBS"
28763fi
28764
28765case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28766in
28767x)
28768  as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28769Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28770  ;;
28771x1)
28772  # one SSL backend is enabled
28773
28774  SSL_ENABLED="1"
28775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28776printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28777  ;;
28778xD)
28779  # explicitly built without TLS
28780  ;;
28781xD*)
28782  as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28783(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28784Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28785  ;;
28786*)
28787  # more than one SSL backend is enabled
28788
28789  SSL_ENABLED="1"
28790
28791  CURL_WITH_MULTI_SSL="1"
28792
28793printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28794
28795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28796printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28797  ;;
28798esac
28799
28800if test -n "$ssl_backends"; then
28801  curl_ssl_msg="enabled ($ssl_backends)"
28802fi
28803
28804if test no = "$VALID_DEFAULT_SSL_BACKEND"
28805then
28806  if test -n "$SSL_ENABLED"
28807  then
28808    as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28809  else
28810    as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28811  fi
28812elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28813then
28814
28815printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28816
28817fi
28818
28819
28820if test -n "$check_for_ca_bundle"; then
28821
28822
28823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28824printf %s "checking default CA cert bundle/path... " >&6; }
28825
28826
28827# Check whether --with-ca-bundle was given.
28828if test ${with_ca_bundle+y}
28829then :
28830  withval=$with_ca_bundle;
28831    want_ca="$withval"
28832    if test "x$want_ca" = "xyes"; then
28833      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28834    fi
28835
28836else $as_nop
28837   want_ca="unset"
28838fi
28839
28840
28841# Check whether --with-ca-path was given.
28842if test ${with_ca_path+y}
28843then :
28844  withval=$with_ca_path;
28845    want_capath="$withval"
28846    if test "x$want_capath" = "xyes"; then
28847      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28848    fi
28849
28850else $as_nop
28851   want_capath="unset"
28852fi
28853
28854
28855  ca_warning="   (warning: certs not found)"
28856  capath_warning="   (warning: certs not found)"
28857  check_capath=""
28858
28859  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28860          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28861        ca="$want_ca"
28862    capath="$want_capath"
28863  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28864        ca="$want_ca"
28865    capath="no"
28866  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28867        if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28868      as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28869    fi
28870    capath="$want_capath"
28871    ca="no"
28872  else
28873            ca="no"
28874    capath="no"
28875    if test "x$cross_compiling" != "xyes"; then
28876                  if test "x$want_ca" = "xunset"; then
28877                                if test "x$prefix" != xNONE; then
28878          cac="${prefix}/share/curl/curl-ca-bundle.crt"
28879        else
28880          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28881        fi
28882
28883        for a in /etc/ssl/certs/ca-certificates.crt \
28884                 /etc/pki/tls/certs/ca-bundle.crt \
28885                 /usr/share/ssl/certs/ca-bundle.crt \
28886                 /usr/local/share/certs/ca-root-nss.crt \
28887                 /etc/ssl/cert.pem \
28888                 "$cac"; do
28889          if test -f "$a"; then
28890            ca="$a"
28891            break
28892          fi
28893        done
28894      fi
28895      if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28896              "x$OPENSSL_ENABLED" = "x1"; then
28897        check_capath="/etc/ssl/certs/"
28898      fi
28899    else
28900            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28901printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28902    fi
28903  fi
28904
28905  if test "x$ca" = "xno" || test -f "$ca"; then
28906    ca_warning=""
28907  fi
28908
28909  if test "x$capath" != "xno"; then
28910    check_capath="$capath"
28911  fi
28912
28913  if test ! -z "$check_capath"; then
28914    for a in "$check_capath"; do
28915      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
28916        if test "x$capath" = "xno"; then
28917          capath="$a"
28918        fi
28919        capath_warning=""
28920        break
28921      fi
28922    done
28923  fi
28924
28925  if test "x$capath" = "xno"; then
28926    capath_warning=""
28927  fi
28928
28929  if test "x$ca" != "xno"; then
28930    CURL_CA_BUNDLE='"'$ca'"'
28931
28932printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28933
28934
28935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28936printf "%s\n" "$ca" >&6; }
28937  fi
28938  if test "x$capath" != "xno"; then
28939    CURL_CA_PATH="\"$capath\""
28940
28941printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28942
28943    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28944printf "%s\n" "$capath (capath)" >&6; }
28945  fi
28946  if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28948printf "%s\n" "no" >&6; }
28949  fi
28950
28951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28952printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28953
28954# Check whether --with-ca-fallback was given.
28955if test ${with_ca_fallback+y}
28956then :
28957  withval=$with_ca_fallback;
28958    if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28959      as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28960    fi
28961
28962else $as_nop
28963   with_ca_fallback="no"
28964fi
28965
28966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28967printf "%s\n" "$with_ca_fallback" >&6; }
28968  if test "x$with_ca_fallback" = "xyes"; then
28969    if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28970      as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28971    fi
28972
28973printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28974
28975  fi
28976
28977fi
28978
28979
28980
28981# Check whether --with-libpsl was given.
28982if test ${with_libpsl+y}
28983then :
28984  withval=$with_libpsl; with_libpsl=$withval
28985else $as_nop
28986  with_libpsl=yes
28987fi
28988
28989if test $with_libpsl != "no"; then
28990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28991printf %s "checking for library containing psl_builtin... " >&6; }
28992if test ${ac_cv_search_psl_builtin+y}
28993then :
28994  printf %s "(cached) " >&6
28995else $as_nop
28996  ac_func_search_save_LIBS=$LIBS
28997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998/* end confdefs.h.  */
28999
29000
29001#ifdef __cplusplus
29002extern "C"
29003#endif
29004char psl_builtin ();
29005int main (void)
29006{
29007return psl_builtin ();
29008 ;
29009 return 0;
29010}
29011_ACEOF
29012for ac_lib in '' psl
29013do
29014  if test -z "$ac_lib"; then
29015    ac_res="none required"
29016  else
29017    ac_res=-l$ac_lib
29018    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29019  fi
29020  if ac_fn_c_try_link "$LINENO"
29021then :
29022  ac_cv_search_psl_builtin=$ac_res
29023fi
29024rm -f core conftest.err conftest.$ac_objext conftest.beam \
29025    conftest$ac_exeext
29026  if test ${ac_cv_search_psl_builtin+y}
29027then :
29028  break
29029fi
29030done
29031if test ${ac_cv_search_psl_builtin+y}
29032then :
29033
29034else $as_nop
29035  ac_cv_search_psl_builtin=no
29036fi
29037rm conftest.$ac_ext
29038LIBS=$ac_func_search_save_LIBS
29039fi
29040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
29041printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
29042ac_res=$ac_cv_search_psl_builtin
29043if test "$ac_res" != no
29044then :
29045  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29046  curl_psl_msg="enabled";
29047
29048printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
29049
29050
29051else $as_nop
29052  curl_psl_msg="no      (libpsl not found)";
29053     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
29054printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
29055
29056
29057fi
29058
29059fi
29060 if test "$curl_psl_msg" = "enabled"; then
29061  USE_LIBPSL_TRUE=
29062  USE_LIBPSL_FALSE='#'
29063else
29064  USE_LIBPSL_TRUE='#'
29065  USE_LIBPSL_FALSE=
29066fi
29067
29068
29069
29070
29071
29072# Check whether --with-libgsasl was given.
29073if test ${with_libgsasl+y}
29074then :
29075  withval=$with_libgsasl; with_libgsasl=$withval
29076else $as_nop
29077  with_libgsasl=yes
29078fi
29079
29080if test $with_libgsasl != "no"; then
29081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
29082printf %s "checking for library containing gsasl_init... " >&6; }
29083if test ${ac_cv_search_gsasl_init+y}
29084then :
29085  printf %s "(cached) " >&6
29086else $as_nop
29087  ac_func_search_save_LIBS=$LIBS
29088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089/* end confdefs.h.  */
29090
29091
29092#ifdef __cplusplus
29093extern "C"
29094#endif
29095char gsasl_init ();
29096int main (void)
29097{
29098return gsasl_init ();
29099 ;
29100 return 0;
29101}
29102_ACEOF
29103for ac_lib in '' gsasl
29104do
29105  if test -z "$ac_lib"; then
29106    ac_res="none required"
29107  else
29108    ac_res=-l$ac_lib
29109    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29110  fi
29111  if ac_fn_c_try_link "$LINENO"
29112then :
29113  ac_cv_search_gsasl_init=$ac_res
29114fi
29115rm -f core conftest.err conftest.$ac_objext conftest.beam \
29116    conftest$ac_exeext
29117  if test ${ac_cv_search_gsasl_init+y}
29118then :
29119  break
29120fi
29121done
29122if test ${ac_cv_search_gsasl_init+y}
29123then :
29124
29125else $as_nop
29126  ac_cv_search_gsasl_init=no
29127fi
29128rm conftest.$ac_ext
29129LIBS=$ac_func_search_save_LIBS
29130fi
29131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
29132printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
29133ac_res=$ac_cv_search_gsasl_init
29134if test "$ac_res" != no
29135then :
29136  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29137  curl_gsasl_msg="enabled";
29138
29139printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
29140
29141
29142else $as_nop
29143  curl_gsasl_msg="no      (libgsasl not found)";
29144     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
29145printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
29146
29147
29148fi
29149
29150fi
29151 if test "$curl_gsasl_msg" = "enabled"; then
29152  USE_GSASL_TRUE=
29153  USE_GSASL_FALSE='#'
29154else
29155  USE_GSASL_TRUE='#'
29156  USE_GSASL_FALSE=
29157fi
29158
29159
29160
29161# Check whether --with-libmetalink was given.
29162if test ${with_libmetalink+y}
29163then :
29164  withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
29165fi
29166
29167
29168
29169OPT_LIBSSH2=off
29170
29171# Check whether --with-libssh2 was given.
29172if test ${with_libssh2+y}
29173then :
29174  withval=$with_libssh2; OPT_LIBSSH2=$withval
29175else $as_nop
29176  OPT_LIBSSH2=no
29177fi
29178
29179
29180
29181OPT_LIBSSH=off
29182
29183# Check whether --with-libssh was given.
29184if test ${with_libssh+y}
29185then :
29186  withval=$with_libssh; OPT_LIBSSH=$withval
29187else $as_nop
29188  OPT_LIBSSH=no
29189fi
29190
29191
29192OPT_WOLFSSH=off
29193
29194# Check whether --with-wolfssh was given.
29195if test ${with_wolfssh+y}
29196then :
29197  withval=$with_wolfssh; OPT_WOLFSSH=$withval
29198else $as_nop
29199  OPT_WOLFSSH=no
29200fi
29201
29202
29203if test X"$OPT_LIBSSH2" != Xno; then
29204    CLEANLDFLAGS="$LDFLAGS"
29205  CLEANCPPFLAGS="$CPPFLAGS"
29206  CLEANLIBS="$LIBS"
29207
29208  case "$OPT_LIBSSH2" in
29209  yes)
29210
29211    if test -n "$PKG_CONFIG"; then
29212      PKGCONFIG="$PKG_CONFIG"
29213    else
29214      if test -n "$ac_tool_prefix"; then
29215  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29216set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29218printf %s "checking for $ac_word... " >&6; }
29219if test ${ac_cv_path_PKGCONFIG+y}
29220then :
29221  printf %s "(cached) " >&6
29222else $as_nop
29223  case $PKGCONFIG in
29224  [\\/]* | ?:[\\/]*)
29225  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29226  ;;
29227  *)
29228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29229as_dummy="$PATH:/usr/bin:/usr/local/bin"
29230for as_dir in $as_dummy
29231do
29232  IFS=$as_save_IFS
29233  case $as_dir in #(((
29234    '') as_dir=./ ;;
29235    */) ;;
29236    *) as_dir=$as_dir/ ;;
29237  esac
29238    for ac_exec_ext in '' $ac_executable_extensions; do
29239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29240    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29242    break 2
29243  fi
29244done
29245  done
29246IFS=$as_save_IFS
29247
29248  ;;
29249esac
29250fi
29251PKGCONFIG=$ac_cv_path_PKGCONFIG
29252if test -n "$PKGCONFIG"; then
29253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29254printf "%s\n" "$PKGCONFIG" >&6; }
29255else
29256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29257printf "%s\n" "no" >&6; }
29258fi
29259
29260
29261fi
29262if test -z "$ac_cv_path_PKGCONFIG"; then
29263  ac_pt_PKGCONFIG=$PKGCONFIG
29264  # Extract the first word of "pkg-config", so it can be a program name with args.
29265set dummy pkg-config; ac_word=$2
29266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29267printf %s "checking for $ac_word... " >&6; }
29268if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29269then :
29270  printf %s "(cached) " >&6
29271else $as_nop
29272  case $ac_pt_PKGCONFIG in
29273  [\\/]* | ?:[\\/]*)
29274  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29275  ;;
29276  *)
29277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29278as_dummy="$PATH:/usr/bin:/usr/local/bin"
29279for as_dir in $as_dummy
29280do
29281  IFS=$as_save_IFS
29282  case $as_dir in #(((
29283    '') as_dir=./ ;;
29284    */) ;;
29285    *) as_dir=$as_dir/ ;;
29286  esac
29287    for ac_exec_ext in '' $ac_executable_extensions; do
29288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29289    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29291    break 2
29292  fi
29293done
29294  done
29295IFS=$as_save_IFS
29296
29297  ;;
29298esac
29299fi
29300ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29301if test -n "$ac_pt_PKGCONFIG"; then
29302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29303printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29304else
29305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29306printf "%s\n" "no" >&6; }
29307fi
29308
29309  if test "x$ac_pt_PKGCONFIG" = x; then
29310    PKGCONFIG="no"
29311  else
29312    case $cross_compiling:$ac_tool_warned in
29313yes:)
29314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29315printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29316ac_tool_warned=yes ;;
29317esac
29318    PKGCONFIG=$ac_pt_PKGCONFIG
29319  fi
29320else
29321  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29322fi
29323
29324    fi
29325
29326    if test "x$PKGCONFIG" != "xno"; then
29327      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29328printf %s "checking for libssh2 options with pkg-config... " >&6; }
29329            itexists=`
29330    if test -n ""; then
29331      PKG_CONFIG_LIBDIR=""
29332      export PKG_CONFIG_LIBDIR
29333    fi
29334         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29335
29336      if test -z "$itexists"; then
29337                        PKGCONFIG="no"
29338        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29339printf "%s\n" "no" >&6; }
29340      else
29341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29342printf "%s\n" "found" >&6; }
29343      fi
29344    fi
29345
29346
29347    if test "$PKGCONFIG" != "no" ; then
29348      LIB_SSH2=`$PKGCONFIG --libs libssh2`
29349      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29350      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29351      version=`$PKGCONFIG --modversion libssh2`
29352      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29353    fi
29354
29355    ;;
29356  off)
29357        ;;
29358  *)
29359        PREFIX_SSH2=$OPT_LIBSSH2
29360    ;;
29361  esac
29362
29363    if test -n "$PREFIX_SSH2"; then
29364    LIB_SSH2="-lssh2"
29365    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29366    CPP_SSH2=-I${PREFIX_SSH2}/include
29367    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29368  fi
29369
29370  LDFLAGS="$LDFLAGS $LD_SSH2"
29371  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29372  LIBS="$LIB_SSH2 $LIBS"
29373
29374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29375printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29376if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29377then :
29378  printf %s "(cached) " >&6
29379else $as_nop
29380  ac_check_lib_save_LIBS=$LIBS
29381LIBS="-lssh2  $LIBS"
29382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29383/* end confdefs.h.  */
29384
29385
29386#ifdef __cplusplus
29387extern "C"
29388#endif
29389char libssh2_session_block_directions ();
29390int main (void)
29391{
29392return libssh2_session_block_directions ();
29393 ;
29394 return 0;
29395}
29396_ACEOF
29397if ac_fn_c_try_link "$LINENO"
29398then :
29399  ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29400else $as_nop
29401  ac_cv_lib_ssh2_libssh2_session_block_directions=no
29402fi
29403rm -f core conftest.err conftest.$ac_objext conftest.beam \
29404    conftest$ac_exeext conftest.$ac_ext
29405LIBS=$ac_check_lib_save_LIBS
29406fi
29407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29408printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29409if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29410then :
29411  printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29412
29413  LIBS="-lssh2 $LIBS"
29414
29415fi
29416
29417
29418  ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29419if test "x$ac_cv_header_libssh2_h" = xyes
29420then :
29421  curl_ssh_msg="enabled (libSSH2)"
29422    LIBSSH2_ENABLED=1
29423
29424printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29425
29426    USE_LIBSSH2=1
29427
29428
29429fi
29430
29431
29432  if test X"$OPT_LIBSSH2" != Xoff &&
29433     test "$LIBSSH2_ENABLED" != "1"; then
29434    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29435  fi
29436
29437  if test "$LIBSSH2_ENABLED" = "1"; then
29438    if test -n "$DIR_SSH2"; then
29439
29440       if test "x$cross_compiling" != "xyes"; then
29441         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29442         export CURL_LIBRARY_PATH
29443         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29444printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29445       fi
29446    fi
29447  else
29448        LDFLAGS=$CLEANLDFLAGS
29449    CPPFLAGS=$CLEANCPPFLAGS
29450    LIBS=$CLEANLIBS
29451  fi
29452elif test X"$OPT_LIBSSH" != Xno; then
29453    CLEANLDFLAGS="$LDFLAGS"
29454  CLEANCPPFLAGS="$CPPFLAGS"
29455  CLEANLIBS="$LIBS"
29456
29457  case "$OPT_LIBSSH" in
29458  yes)
29459
29460    if test -n "$PKG_CONFIG"; then
29461      PKGCONFIG="$PKG_CONFIG"
29462    else
29463      if test -n "$ac_tool_prefix"; then
29464  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29465set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29467printf %s "checking for $ac_word... " >&6; }
29468if test ${ac_cv_path_PKGCONFIG+y}
29469then :
29470  printf %s "(cached) " >&6
29471else $as_nop
29472  case $PKGCONFIG in
29473  [\\/]* | ?:[\\/]*)
29474  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29475  ;;
29476  *)
29477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29478as_dummy="$PATH:/usr/bin:/usr/local/bin"
29479for as_dir in $as_dummy
29480do
29481  IFS=$as_save_IFS
29482  case $as_dir in #(((
29483    '') as_dir=./ ;;
29484    */) ;;
29485    *) as_dir=$as_dir/ ;;
29486  esac
29487    for ac_exec_ext in '' $ac_executable_extensions; do
29488  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29489    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29490    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29491    break 2
29492  fi
29493done
29494  done
29495IFS=$as_save_IFS
29496
29497  ;;
29498esac
29499fi
29500PKGCONFIG=$ac_cv_path_PKGCONFIG
29501if test -n "$PKGCONFIG"; then
29502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29503printf "%s\n" "$PKGCONFIG" >&6; }
29504else
29505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29506printf "%s\n" "no" >&6; }
29507fi
29508
29509
29510fi
29511if test -z "$ac_cv_path_PKGCONFIG"; then
29512  ac_pt_PKGCONFIG=$PKGCONFIG
29513  # Extract the first word of "pkg-config", so it can be a program name with args.
29514set dummy pkg-config; ac_word=$2
29515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29516printf %s "checking for $ac_word... " >&6; }
29517if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29518then :
29519  printf %s "(cached) " >&6
29520else $as_nop
29521  case $ac_pt_PKGCONFIG in
29522  [\\/]* | ?:[\\/]*)
29523  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29524  ;;
29525  *)
29526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29527as_dummy="$PATH:/usr/bin:/usr/local/bin"
29528for as_dir in $as_dummy
29529do
29530  IFS=$as_save_IFS
29531  case $as_dir in #(((
29532    '') as_dir=./ ;;
29533    */) ;;
29534    *) as_dir=$as_dir/ ;;
29535  esac
29536    for ac_exec_ext in '' $ac_executable_extensions; do
29537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29538    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29540    break 2
29541  fi
29542done
29543  done
29544IFS=$as_save_IFS
29545
29546  ;;
29547esac
29548fi
29549ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29550if test -n "$ac_pt_PKGCONFIG"; then
29551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29552printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29553else
29554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29555printf "%s\n" "no" >&6; }
29556fi
29557
29558  if test "x$ac_pt_PKGCONFIG" = x; then
29559    PKGCONFIG="no"
29560  else
29561    case $cross_compiling:$ac_tool_warned in
29562yes:)
29563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29564printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29565ac_tool_warned=yes ;;
29566esac
29567    PKGCONFIG=$ac_pt_PKGCONFIG
29568  fi
29569else
29570  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29571fi
29572
29573    fi
29574
29575    if test "x$PKGCONFIG" != "xno"; then
29576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29577printf %s "checking for libssh options with pkg-config... " >&6; }
29578            itexists=`
29579    if test -n ""; then
29580      PKG_CONFIG_LIBDIR=""
29581      export PKG_CONFIG_LIBDIR
29582    fi
29583         $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29584
29585      if test -z "$itexists"; then
29586                        PKGCONFIG="no"
29587        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29588printf "%s\n" "no" >&6; }
29589      else
29590        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29591printf "%s\n" "found" >&6; }
29592      fi
29593    fi
29594
29595
29596    if test "$PKGCONFIG" != "no" ; then
29597      LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29598      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29599      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29600      version=`$PKGCONFIG --modversion libssh`
29601      DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29602    fi
29603
29604    ;;
29605  off)
29606        ;;
29607  *)
29608        PREFIX_SSH=$OPT_LIBSSH
29609    ;;
29610  esac
29611
29612    if test -n "$PREFIX_SSH"; then
29613    LIB_SSH="-lssh"
29614    LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29615    CPP_SSH=-I${PREFIX_SSH}/include
29616    DIR_SSH=${PREFIX_SSH}/lib$libsuff
29617  fi
29618
29619  LDFLAGS="$LDFLAGS $LD_SSH"
29620  CPPFLAGS="$CPPFLAGS $CPP_SSH"
29621  LIBS="$LIB_SSH $LIBS"
29622
29623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29624printf %s "checking for ssh_new in -lssh... " >&6; }
29625if test ${ac_cv_lib_ssh_ssh_new+y}
29626then :
29627  printf %s "(cached) " >&6
29628else $as_nop
29629  ac_check_lib_save_LIBS=$LIBS
29630LIBS="-lssh  $LIBS"
29631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29632/* end confdefs.h.  */
29633
29634
29635#ifdef __cplusplus
29636extern "C"
29637#endif
29638char ssh_new ();
29639int main (void)
29640{
29641return ssh_new ();
29642 ;
29643 return 0;
29644}
29645_ACEOF
29646if ac_fn_c_try_link "$LINENO"
29647then :
29648  ac_cv_lib_ssh_ssh_new=yes
29649else $as_nop
29650  ac_cv_lib_ssh_ssh_new=no
29651fi
29652rm -f core conftest.err conftest.$ac_objext conftest.beam \
29653    conftest$ac_exeext conftest.$ac_ext
29654LIBS=$ac_check_lib_save_LIBS
29655fi
29656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29657printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29658if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29659then :
29660  printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29661
29662  LIBS="-lssh $LIBS"
29663
29664fi
29665
29666
29667  ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29668if test "x$ac_cv_header_libssh_libssh_h" = xyes
29669then :
29670  curl_ssh_msg="enabled (libSSH)"
29671    LIBSSH_ENABLED=1
29672
29673printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29674
29675    USE_LIBSSH=1
29676
29677
29678fi
29679
29680
29681  if test X"$OPT_LIBSSH" != Xoff &&
29682     test "$LIBSSH_ENABLED" != "1"; then
29683    as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29684  fi
29685
29686  if test "$LIBSSH_ENABLED" = "1"; then
29687    if test -n "$DIR_SSH"; then
29688
29689       if test "x$cross_compiling" != "xyes"; then
29690         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29691         export CURL_LIBRARY_PATH
29692         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29693printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29694       fi
29695    fi
29696  else
29697        LDFLAGS=$CLEANLDFLAGS
29698    CPPFLAGS=$CLEANCPPFLAGS
29699    LIBS=$CLEANLIBS
29700  fi
29701elif test X"$OPT_WOLFSSH" != Xno; then
29702    CLEANLDFLAGS="$LDFLAGS"
29703  CLEANCPPFLAGS="$CPPFLAGS"
29704  CLEANLIBS="$LIBS"
29705
29706
29707  if test "$OPT_WOLFSSH" != yes; then
29708     WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29709     LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29710     CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29711  fi
29712
29713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29714printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29715if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29716then :
29717  printf %s "(cached) " >&6
29718else $as_nop
29719  ac_check_lib_save_LIBS=$LIBS
29720LIBS="-lwolfssh  $LIBS"
29721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722/* end confdefs.h.  */
29723
29724
29725#ifdef __cplusplus
29726extern "C"
29727#endif
29728char wolfSSH_Init ();
29729int main (void)
29730{
29731return wolfSSH_Init ();
29732 ;
29733 return 0;
29734}
29735_ACEOF
29736if ac_fn_c_try_link "$LINENO"
29737then :
29738  ac_cv_lib_wolfssh_wolfSSH_Init=yes
29739else $as_nop
29740  ac_cv_lib_wolfssh_wolfSSH_Init=no
29741fi
29742rm -f core conftest.err conftest.$ac_objext conftest.beam \
29743    conftest$ac_exeext conftest.$ac_ext
29744LIBS=$ac_check_lib_save_LIBS
29745fi
29746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29747printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29748if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29749then :
29750  printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29751
29752  LIBS="-lwolfssh $LIBS"
29753
29754fi
29755
29756
29757         for ac_header in wolfssh/ssh.h
29758do :
29759  ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29760if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29761then :
29762  printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29763 curl_ssh_msg="enabled (wolfSSH)"
29764    WOLFSSH_ENABLED=1
29765
29766printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29767
29768    USE_WOLFSSH=1
29769
29770
29771fi
29772
29773done
29774
29775fi
29776
29777
29778OPT_LIBRTMP=off
29779
29780# Check whether --with-librtmp was given.
29781if test ${with_librtmp+y}
29782then :
29783  withval=$with_librtmp; OPT_LIBRTMP=$withval
29784fi
29785
29786
29787if test X"$OPT_LIBRTMP" != Xno; then
29788    CLEANLDFLAGS="$LDFLAGS"
29789  CLEANCPPFLAGS="$CPPFLAGS"
29790  CLEANLIBS="$LIBS"
29791
29792  case "$OPT_LIBRTMP" in
29793  yes)
29794
29795    if test -n "$PKG_CONFIG"; then
29796      PKGCONFIG="$PKG_CONFIG"
29797    else
29798      if test -n "$ac_tool_prefix"; then
29799  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29800set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29802printf %s "checking for $ac_word... " >&6; }
29803if test ${ac_cv_path_PKGCONFIG+y}
29804then :
29805  printf %s "(cached) " >&6
29806else $as_nop
29807  case $PKGCONFIG in
29808  [\\/]* | ?:[\\/]*)
29809  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29810  ;;
29811  *)
29812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29813as_dummy="$PATH:/usr/bin:/usr/local/bin"
29814for as_dir in $as_dummy
29815do
29816  IFS=$as_save_IFS
29817  case $as_dir in #(((
29818    '') as_dir=./ ;;
29819    */) ;;
29820    *) as_dir=$as_dir/ ;;
29821  esac
29822    for ac_exec_ext in '' $ac_executable_extensions; do
29823  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29824    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29826    break 2
29827  fi
29828done
29829  done
29830IFS=$as_save_IFS
29831
29832  ;;
29833esac
29834fi
29835PKGCONFIG=$ac_cv_path_PKGCONFIG
29836if test -n "$PKGCONFIG"; then
29837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29838printf "%s\n" "$PKGCONFIG" >&6; }
29839else
29840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29841printf "%s\n" "no" >&6; }
29842fi
29843
29844
29845fi
29846if test -z "$ac_cv_path_PKGCONFIG"; then
29847  ac_pt_PKGCONFIG=$PKGCONFIG
29848  # Extract the first word of "pkg-config", so it can be a program name with args.
29849set dummy pkg-config; ac_word=$2
29850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29851printf %s "checking for $ac_word... " >&6; }
29852if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29853then :
29854  printf %s "(cached) " >&6
29855else $as_nop
29856  case $ac_pt_PKGCONFIG in
29857  [\\/]* | ?:[\\/]*)
29858  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29859  ;;
29860  *)
29861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29862as_dummy="$PATH:/usr/bin:/usr/local/bin"
29863for as_dir in $as_dummy
29864do
29865  IFS=$as_save_IFS
29866  case $as_dir in #(((
29867    '') as_dir=./ ;;
29868    */) ;;
29869    *) as_dir=$as_dir/ ;;
29870  esac
29871    for ac_exec_ext in '' $ac_executable_extensions; do
29872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29873    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29875    break 2
29876  fi
29877done
29878  done
29879IFS=$as_save_IFS
29880
29881  ;;
29882esac
29883fi
29884ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29885if test -n "$ac_pt_PKGCONFIG"; then
29886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29887printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29888else
29889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29890printf "%s\n" "no" >&6; }
29891fi
29892
29893  if test "x$ac_pt_PKGCONFIG" = x; then
29894    PKGCONFIG="no"
29895  else
29896    case $cross_compiling:$ac_tool_warned in
29897yes:)
29898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29900ac_tool_warned=yes ;;
29901esac
29902    PKGCONFIG=$ac_pt_PKGCONFIG
29903  fi
29904else
29905  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29906fi
29907
29908    fi
29909
29910    if test "x$PKGCONFIG" != "xno"; then
29911      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29912printf %s "checking for librtmp options with pkg-config... " >&6; }
29913            itexists=`
29914    if test -n ""; then
29915      PKG_CONFIG_LIBDIR=""
29916      export PKG_CONFIG_LIBDIR
29917    fi
29918         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29919
29920      if test -z "$itexists"; then
29921                        PKGCONFIG="no"
29922        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923printf "%s\n" "no" >&6; }
29924      else
29925        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29926printf "%s\n" "found" >&6; }
29927      fi
29928    fi
29929
29930
29931    if test "$PKGCONFIG" != "no" ; then
29932      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29933      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29934      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29935      version=`$PKGCONFIG --modversion librtmp`
29936      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29937    else
29938                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29939    fi
29940
29941    ;;
29942  off)
29943        LIB_RTMP="-lrtmp"
29944    ;;
29945  *)
29946        LIB_RTMP="-lrtmp"
29947    PREFIX_RTMP=$OPT_LIBRTMP
29948    ;;
29949  esac
29950
29951    if test -n "$PREFIX_RTMP"; then
29952    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29953    CPP_RTMP=-I${PREFIX_RTMP}/include
29954    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29955  fi
29956
29957  LDFLAGS="$LDFLAGS $LD_RTMP"
29958  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29959  LIBS="$LIB_RTMP $LIBS"
29960
29961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29962printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29963if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29964then :
29965  printf %s "(cached) " >&6
29966else $as_nop
29967  ac_check_lib_save_LIBS=$LIBS
29968LIBS="-lrtmp  $LIBS"
29969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29970/* end confdefs.h.  */
29971
29972
29973#ifdef __cplusplus
29974extern "C"
29975#endif
29976char RTMP_Init ();
29977int main (void)
29978{
29979return RTMP_Init ();
29980 ;
29981 return 0;
29982}
29983_ACEOF
29984if ac_fn_c_try_link "$LINENO"
29985then :
29986  ac_cv_lib_rtmp_RTMP_Init=yes
29987else $as_nop
29988  ac_cv_lib_rtmp_RTMP_Init=no
29989fi
29990rm -f core conftest.err conftest.$ac_objext conftest.beam \
29991    conftest$ac_exeext conftest.$ac_ext
29992LIBS=$ac_check_lib_save_LIBS
29993fi
29994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29995printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29996if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29997then :
29998
29999            for ac_header in librtmp/rtmp.h
30000do :
30001  ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
30002if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
30003then :
30004  printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
30005 curl_rtmp_msg="enabled (librtmp)"
30006        LIBRTMP_ENABLED=1
30007
30008printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
30009
30010        USE_LIBRTMP=1
30011
30012
30013fi
30014
30015done
30016
30017else $as_nop
30018        LDFLAGS=$CLEANLDFLAGS
30019      CPPFLAGS=$CLEANCPPFLAGS
30020      LIBS=$CLEANLIBS
30021
30022fi
30023
30024
30025  if test X"$OPT_LIBRTMP" != Xoff &&
30026     test "$LIBRTMP_ENABLED" != "1"; then
30027    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
30028  fi
30029
30030fi
30031
30032
30033versioned_symbols_flavour=
30034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
30035printf %s "checking whether versioned symbols are wanted... " >&6; }
30036# Check whether --enable-versioned-symbols was given.
30037if test ${enable_versioned_symbols+y}
30038then :
30039  enableval=$enable_versioned_symbols;  case "$enableval" in
30040  yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041printf "%s\n" "yes" >&6; }
30042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
30043printf %s "checking if libraries can be versioned... " >&6; }
30044    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
30045    if test -z "$GLD"; then
30046        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047printf "%s\n" "no" >&6; }
30048        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
30049printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
30050    else
30051        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30052printf "%s\n" "yes" >&6; }
30053        if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
30054          versioned_symbols_flavour="MULTISSL_"
30055        elif test "x$OPENSSL_ENABLED" = "x1"; then
30056          versioned_symbols_flavour="OPENSSL_"
30057        elif test "x$GNUTLS_ENABLED" = "x1"; then
30058          versioned_symbols_flavour="GNUTLS_"
30059        elif test "x$NSS_ENABLED" = "x1"; then
30060          versioned_symbols_flavour="NSS_"
30061        elif test "x$WOLFSSL_ENABLED" = "x1"; then
30062          versioned_symbols_flavour="WOLFSSL_"
30063        elif test "x$SCHANNEL_ENABLED" = "x1"; then
30064          versioned_symbols_flavour="SCHANNEL_"
30065        elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
30066          versioned_symbols_flavour="SECURE_TRANSPORT_"
30067        else
30068          versioned_symbols_flavour=""
30069        fi
30070        versioned_symbols="yes"
30071    fi
30072    ;;
30073
30074  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30075printf "%s\n" "no" >&6; }
30076    ;;
30077  esac
30078
30079else $as_nop
30080
30081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30082printf "%s\n" "no" >&6; }
30083
30084
30085fi
30086
30087
30088CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
30089
30090 if test "x$versioned_symbols" = 'xyes'; then
30091  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
30092  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
30093else
30094  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
30095  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
30096fi
30097
30098
30099CURL_PLIST_VERSION="$CURLVERSION"
30100
30101
30102
30103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
30104printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
30105OPT_WINIDN="default"
30106
30107# Check whether --with-winidn was given.
30108if test ${with_winidn+y}
30109then :
30110  withval=$with_winidn; OPT_WINIDN=$withval
30111fi
30112
30113case "$OPT_WINIDN" in
30114  no|default)
30115        want_winidn="no"
30116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30117printf "%s\n" "no" >&6; }
30118    ;;
30119  yes)
30120        want_winidn="yes"
30121    want_winidn_path="default"
30122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30123printf "%s\n" "yes" >&6; }
30124    ;;
30125  *)
30126        want_winidn="yes"
30127    want_winidn_path="$withval"
30128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30129printf "%s\n" "yes ($withval)" >&6; }
30130    ;;
30131esac
30132
30133if test "$want_winidn" = "yes"; then
30134    clean_CFLAGS="$CFLAGS"
30135  clean_CPPFLAGS="$CPPFLAGS"
30136  clean_LDFLAGS="$LDFLAGS"
30137  clean_LIBS="$LIBS"
30138  WINIDN_LIBS="-lnormaliz"
30139  WINIDN_CPPFLAGS=""
30140  #
30141  if test "$want_winidn_path" != "default"; then
30142            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
30143    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
30144    WINIDN_DIR="$want_winidn_path/lib$libsuff"
30145  fi
30146  #
30147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30148/* end confdefs.h.  */
30149
30150
30151      #include <windows.h>
30152
30153int main (void)
30154{
30155
30156      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
30157      #error
30158      #endif
30159
30160 ;
30161 return 0;
30162}
30163
30164_ACEOF
30165if ac_fn_c_try_compile "$LINENO"
30166then :
30167
30168
30169else $as_nop
30170
30171     CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30172     CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30173     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30174     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30175     WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
30176
30177fi
30178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30179  #
30180  CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
30181  LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
30182  LIBS="$WINIDN_LIBS $LIBS"
30183  #
30184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
30185printf %s "checking if IdnToUnicode can be linked... " >&6; }
30186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30187/* end confdefs.h.  */
30188
30189
30190      #include <windows.h>
30191
30192int main (void)
30193{
30194
30195      IdnToUnicode(0, NULL, 0, NULL, 0);
30196
30197 ;
30198 return 0;
30199}
30200
30201_ACEOF
30202if ac_fn_c_try_link "$LINENO"
30203then :
30204
30205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30206printf "%s\n" "yes" >&6; }
30207    tst_links_winidn="yes"
30208
30209else $as_nop
30210
30211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212printf "%s\n" "no" >&6; }
30213    tst_links_winidn="no"
30214
30215fi
30216rm -f core conftest.err conftest.$ac_objext conftest.beam \
30217    conftest$ac_exeext conftest.$ac_ext
30218  #
30219  if test "$tst_links_winidn" = "yes"; then
30220
30221printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
30222
30223    IDN_ENABLED=1
30224
30225    curl_idn_msg="enabled (Windows-native)"
30226  else
30227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30228printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30229    CFLAGS="$clean_CFLAGS"
30230    CPPFLAGS="$clean_CPPFLAGS"
30231    LDFLAGS="$clean_LDFLAGS"
30232    LIBS="$clean_LIBS"
30233  fi
30234fi
30235
30236
30237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
30238printf %s "checking whether to build with libidn2... " >&6; }
30239OPT_IDN="default"
30240
30241# Check whether --with-libidn2 was given.
30242if test ${with_libidn2+y}
30243then :
30244  withval=$with_libidn2; OPT_IDN=$withval
30245fi
30246
30247if test "x$tst_links_winidn" = "xyes"; then
30248  want_idn="no"
30249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
30250printf "%s\n" "no (using winidn instead)" >&6; }
30251else
30252  case "$OPT_IDN" in
30253    no)
30254            want_idn="no"
30255      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30256printf "%s\n" "no" >&6; }
30257      ;;
30258    default)
30259            want_idn="yes"
30260      want_idn_path="default"
30261      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
30262printf "%s\n" "(assumed) yes" >&6; }
30263      ;;
30264    yes)
30265            want_idn="yes"
30266      want_idn_path="default"
30267      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268printf "%s\n" "yes" >&6; }
30269      ;;
30270    *)
30271            want_idn="yes"
30272      want_idn_path="$withval"
30273      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30274printf "%s\n" "yes ($withval)" >&6; }
30275      ;;
30276  esac
30277fi
30278
30279if test "$want_idn" = "yes"; then
30280    clean_CPPFLAGS="$CPPFLAGS"
30281  clean_LDFLAGS="$LDFLAGS"
30282  clean_LIBS="$LIBS"
30283  PKGCONFIG="no"
30284  #
30285  if test "$want_idn_path" != "default"; then
30286        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
30287
30288    if test -n "$PKG_CONFIG"; then
30289      PKGCONFIG="$PKG_CONFIG"
30290    else
30291      if test -n "$ac_tool_prefix"; then
30292  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30293set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30295printf %s "checking for $ac_word... " >&6; }
30296if test ${ac_cv_path_PKGCONFIG+y}
30297then :
30298  printf %s "(cached) " >&6
30299else $as_nop
30300  case $PKGCONFIG in
30301  [\\/]* | ?:[\\/]*)
30302  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30303  ;;
30304  *)
30305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30306as_dummy="$PATH:/usr/bin:/usr/local/bin"
30307for as_dir in $as_dummy
30308do
30309  IFS=$as_save_IFS
30310  case $as_dir in #(((
30311    '') as_dir=./ ;;
30312    */) ;;
30313    *) as_dir=$as_dir/ ;;
30314  esac
30315    for ac_exec_ext in '' $ac_executable_extensions; do
30316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30317    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30319    break 2
30320  fi
30321done
30322  done
30323IFS=$as_save_IFS
30324
30325  ;;
30326esac
30327fi
30328PKGCONFIG=$ac_cv_path_PKGCONFIG
30329if test -n "$PKGCONFIG"; then
30330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30331printf "%s\n" "$PKGCONFIG" >&6; }
30332else
30333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30334printf "%s\n" "no" >&6; }
30335fi
30336
30337
30338fi
30339if test -z "$ac_cv_path_PKGCONFIG"; then
30340  ac_pt_PKGCONFIG=$PKGCONFIG
30341  # Extract the first word of "pkg-config", so it can be a program name with args.
30342set dummy pkg-config; ac_word=$2
30343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30344printf %s "checking for $ac_word... " >&6; }
30345if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30346then :
30347  printf %s "(cached) " >&6
30348else $as_nop
30349  case $ac_pt_PKGCONFIG in
30350  [\\/]* | ?:[\\/]*)
30351  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30352  ;;
30353  *)
30354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30355as_dummy="$PATH:/usr/bin:/usr/local/bin"
30356for as_dir in $as_dummy
30357do
30358  IFS=$as_save_IFS
30359  case $as_dir in #(((
30360    '') as_dir=./ ;;
30361    */) ;;
30362    *) as_dir=$as_dir/ ;;
30363  esac
30364    for ac_exec_ext in '' $ac_executable_extensions; do
30365  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30366    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30367    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30368    break 2
30369  fi
30370done
30371  done
30372IFS=$as_save_IFS
30373
30374  ;;
30375esac
30376fi
30377ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30378if test -n "$ac_pt_PKGCONFIG"; then
30379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30380printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30381else
30382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30383printf "%s\n" "no" >&6; }
30384fi
30385
30386  if test "x$ac_pt_PKGCONFIG" = x; then
30387    PKGCONFIG="no"
30388  else
30389    case $cross_compiling:$ac_tool_warned in
30390yes:)
30391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30393ac_tool_warned=yes ;;
30394esac
30395    PKGCONFIG=$ac_pt_PKGCONFIG
30396  fi
30397else
30398  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30399fi
30400
30401    fi
30402
30403    if test "x$PKGCONFIG" != "xno"; then
30404      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30405printf %s "checking for libidn2 options with pkg-config... " >&6; }
30406            itexists=`
30407    if test -n "$IDN_PCDIR"; then
30408      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30409      export PKG_CONFIG_LIBDIR
30410    fi
30411         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30412
30413      if test -z "$itexists"; then
30414                        PKGCONFIG="no"
30415        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30416printf "%s\n" "no" >&6; }
30417      else
30418        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30419printf "%s\n" "found" >&6; }
30420      fi
30421    fi
30422
30423    if test "$PKGCONFIG" != "no"; then
30424      IDN_LIBS=`
30425    if test -n "$IDN_PCDIR"; then
30426      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30427      export PKG_CONFIG_LIBDIR
30428    fi
30429         $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30430      IDN_LDFLAGS=`
30431    if test -n "$IDN_PCDIR"; then
30432      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30433      export PKG_CONFIG_LIBDIR
30434    fi
30435         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30436      IDN_CPPFLAGS=`
30437    if test -n "$IDN_PCDIR"; then
30438      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30439      export PKG_CONFIG_LIBDIR
30440    fi
30441         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30442      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30443    else
30444            IDN_LIBS="-lidn2"
30445      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30446      IDN_CPPFLAGS="-I$want_idn_path/include"
30447      IDN_DIR="$want_idn_path/lib$libsuff"
30448    fi
30449  else
30450
30451    if test -n "$PKG_CONFIG"; then
30452      PKGCONFIG="$PKG_CONFIG"
30453    else
30454      if test -n "$ac_tool_prefix"; then
30455  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30456set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30458printf %s "checking for $ac_word... " >&6; }
30459if test ${ac_cv_path_PKGCONFIG+y}
30460then :
30461  printf %s "(cached) " >&6
30462else $as_nop
30463  case $PKGCONFIG in
30464  [\\/]* | ?:[\\/]*)
30465  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30466  ;;
30467  *)
30468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30469as_dummy="$PATH:/usr/bin:/usr/local/bin"
30470for as_dir in $as_dummy
30471do
30472  IFS=$as_save_IFS
30473  case $as_dir in #(((
30474    '') as_dir=./ ;;
30475    */) ;;
30476    *) as_dir=$as_dir/ ;;
30477  esac
30478    for ac_exec_ext in '' $ac_executable_extensions; do
30479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30480    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30482    break 2
30483  fi
30484done
30485  done
30486IFS=$as_save_IFS
30487
30488  ;;
30489esac
30490fi
30491PKGCONFIG=$ac_cv_path_PKGCONFIG
30492if test -n "$PKGCONFIG"; then
30493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30494printf "%s\n" "$PKGCONFIG" >&6; }
30495else
30496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497printf "%s\n" "no" >&6; }
30498fi
30499
30500
30501fi
30502if test -z "$ac_cv_path_PKGCONFIG"; then
30503  ac_pt_PKGCONFIG=$PKGCONFIG
30504  # Extract the first word of "pkg-config", so it can be a program name with args.
30505set dummy pkg-config; ac_word=$2
30506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30507printf %s "checking for $ac_word... " >&6; }
30508if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30509then :
30510  printf %s "(cached) " >&6
30511else $as_nop
30512  case $ac_pt_PKGCONFIG in
30513  [\\/]* | ?:[\\/]*)
30514  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30515  ;;
30516  *)
30517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30518as_dummy="$PATH:/usr/bin:/usr/local/bin"
30519for as_dir in $as_dummy
30520do
30521  IFS=$as_save_IFS
30522  case $as_dir in #(((
30523    '') as_dir=./ ;;
30524    */) ;;
30525    *) as_dir=$as_dir/ ;;
30526  esac
30527    for ac_exec_ext in '' $ac_executable_extensions; do
30528  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30529    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30530    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30531    break 2
30532  fi
30533done
30534  done
30535IFS=$as_save_IFS
30536
30537  ;;
30538esac
30539fi
30540ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30541if test -n "$ac_pt_PKGCONFIG"; then
30542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30543printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30544else
30545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30546printf "%s\n" "no" >&6; }
30547fi
30548
30549  if test "x$ac_pt_PKGCONFIG" = x; then
30550    PKGCONFIG="no"
30551  else
30552    case $cross_compiling:$ac_tool_warned in
30553yes:)
30554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30555printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30556ac_tool_warned=yes ;;
30557esac
30558    PKGCONFIG=$ac_pt_PKGCONFIG
30559  fi
30560else
30561  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30562fi
30563
30564    fi
30565
30566    if test "x$PKGCONFIG" != "xno"; then
30567      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30568printf %s "checking for libidn2 options with pkg-config... " >&6; }
30569            itexists=`
30570    if test -n ""; then
30571      PKG_CONFIG_LIBDIR=""
30572      export PKG_CONFIG_LIBDIR
30573    fi
30574         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30575
30576      if test -z "$itexists"; then
30577                        PKGCONFIG="no"
30578        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30579printf "%s\n" "no" >&6; }
30580      else
30581        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30582printf "%s\n" "found" >&6; }
30583      fi
30584    fi
30585
30586    if test "$PKGCONFIG" != "no"; then
30587      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30588      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30589      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30590      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30591    else
30592            IDN_LIBS="-lidn2"
30593    fi
30594  fi
30595  #
30596  if test "$PKGCONFIG" != "no"; then
30597    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30598printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30600printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30602printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30604printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30605  else
30606    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30607printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30608    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30609printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30611printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30612    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30613printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30614  fi
30615  #
30616  CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30617  LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30618  LIBS="$IDN_LIBS $LIBS"
30619  #
30620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30621printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30623/* end confdefs.h.  */
30624
30625
30626#define idn2_lookup_ul innocuous_idn2_lookup_ul
30627#ifdef __STDC__
30628# include <limits.h>
30629#else
30630# include <assert.h>
30631#endif
30632#undef idn2_lookup_ul
30633#ifdef __cplusplus
30634extern "C"
30635#endif
30636char idn2_lookup_ul ();
30637#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30638choke me
30639#endif
30640
30641int main (void)
30642{
30643return idn2_lookup_ul ();
30644 ;
30645 return 0;
30646}
30647
30648_ACEOF
30649if ac_fn_c_try_link "$LINENO"
30650then :
30651
30652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30653printf "%s\n" "yes" >&6; }
30654    tst_links_libidn="yes"
30655
30656else $as_nop
30657
30658    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30659printf "%s\n" "no" >&6; }
30660    tst_links_libidn="no"
30661
30662fi
30663rm -f core conftest.err conftest.$ac_objext conftest.beam \
30664    conftest$ac_exeext conftest.$ac_ext
30665  #
30666  ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30667if test "x$ac_cv_header_idn2_h" = xyes
30668then :
30669  printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30670
30671fi
30672
30673
30674  if test "$tst_links_libidn" = "yes"; then
30675
30676printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30677
30678
30679    IDN_ENABLED=1
30680
30681    curl_idn_msg="enabled (libidn2)"
30682    if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30683      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30684      export CURL_LIBRARY_PATH
30685      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30686printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30687    fi
30688  else
30689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30690printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30691    CPPFLAGS="$clean_CPPFLAGS"
30692    LDFLAGS="$clean_LDFLAGS"
30693    LIBS="$clean_LIBS"
30694  fi
30695fi
30696
30697
30698OPT_H2="yes"
30699
30700if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30701  # without HTTP or with Hyper, nghttp2 is no use
30702  OPT_H2="no"
30703fi
30704
30705
30706# Check whether --with-nghttp2 was given.
30707if test ${with_nghttp2+y}
30708then :
30709  withval=$with_nghttp2; OPT_H2=$withval
30710fi
30711
30712case "$OPT_H2" in
30713  no)
30714        want_nghttp2="no"
30715    ;;
30716  yes)
30717        want_nghttp2="default"
30718    want_nghttp2_path=""
30719    want_nghttp2_pkg_config_path=""
30720    ;;
30721  *)
30722        want_nghttp2="yes"
30723    want_nghttp2_path="$withval"
30724    want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30725    ;;
30726esac
30727
30728if test X"$want_nghttp2" != Xno; then
30729    CLEANLDFLAGS="$LDFLAGS"
30730  CLEANCPPFLAGS="$CPPFLAGS"
30731  CLEANLIBS="$LIBS"
30732
30733
30734    if test -n "$PKG_CONFIG"; then
30735      PKGCONFIG="$PKG_CONFIG"
30736    else
30737      if test -n "$ac_tool_prefix"; then
30738  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30739set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30741printf %s "checking for $ac_word... " >&6; }
30742if test ${ac_cv_path_PKGCONFIG+y}
30743then :
30744  printf %s "(cached) " >&6
30745else $as_nop
30746  case $PKGCONFIG in
30747  [\\/]* | ?:[\\/]*)
30748  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30749  ;;
30750  *)
30751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30752as_dummy="$PATH:/usr/bin:/usr/local/bin"
30753for as_dir in $as_dummy
30754do
30755  IFS=$as_save_IFS
30756  case $as_dir in #(((
30757    '') as_dir=./ ;;
30758    */) ;;
30759    *) as_dir=$as_dir/ ;;
30760  esac
30761    for ac_exec_ext in '' $ac_executable_extensions; do
30762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30763    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30765    break 2
30766  fi
30767done
30768  done
30769IFS=$as_save_IFS
30770
30771  ;;
30772esac
30773fi
30774PKGCONFIG=$ac_cv_path_PKGCONFIG
30775if test -n "$PKGCONFIG"; then
30776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30777printf "%s\n" "$PKGCONFIG" >&6; }
30778else
30779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30780printf "%s\n" "no" >&6; }
30781fi
30782
30783
30784fi
30785if test -z "$ac_cv_path_PKGCONFIG"; then
30786  ac_pt_PKGCONFIG=$PKGCONFIG
30787  # Extract the first word of "pkg-config", so it can be a program name with args.
30788set dummy pkg-config; ac_word=$2
30789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30790printf %s "checking for $ac_word... " >&6; }
30791if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30792then :
30793  printf %s "(cached) " >&6
30794else $as_nop
30795  case $ac_pt_PKGCONFIG in
30796  [\\/]* | ?:[\\/]*)
30797  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30798  ;;
30799  *)
30800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30801as_dummy="$PATH:/usr/bin:/usr/local/bin"
30802for as_dir in $as_dummy
30803do
30804  IFS=$as_save_IFS
30805  case $as_dir in #(((
30806    '') as_dir=./ ;;
30807    */) ;;
30808    *) as_dir=$as_dir/ ;;
30809  esac
30810    for ac_exec_ext in '' $ac_executable_extensions; do
30811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30812    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30814    break 2
30815  fi
30816done
30817  done
30818IFS=$as_save_IFS
30819
30820  ;;
30821esac
30822fi
30823ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30824if test -n "$ac_pt_PKGCONFIG"; then
30825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30826printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30827else
30828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30829printf "%s\n" "no" >&6; }
30830fi
30831
30832  if test "x$ac_pt_PKGCONFIG" = x; then
30833    PKGCONFIG="no"
30834  else
30835    case $cross_compiling:$ac_tool_warned in
30836yes:)
30837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30839ac_tool_warned=yes ;;
30840esac
30841    PKGCONFIG=$ac_pt_PKGCONFIG
30842  fi
30843else
30844  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30845fi
30846
30847    fi
30848
30849    if test "x$PKGCONFIG" != "xno"; then
30850      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30851printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30852            itexists=`
30853    if test -n "$want_nghttp2_pkg_config_path"; then
30854      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30855      export PKG_CONFIG_LIBDIR
30856    fi
30857         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30858
30859      if test -z "$itexists"; then
30860                        PKGCONFIG="no"
30861        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862printf "%s\n" "no" >&6; }
30863      else
30864        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30865printf "%s\n" "found" >&6; }
30866      fi
30867    fi
30868
30869
30870  if test "$PKGCONFIG" != "no" ; then
30871    LIB_H2=`
30872    if test -n "$want_nghttp2_pkg_config_path"; then
30873      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30874      export PKG_CONFIG_LIBDIR
30875    fi
30876
30877      $PKGCONFIG --libs-only-l libnghttp2`
30878    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30879printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30880
30881    CPP_H2=`
30882    if test -n "$want_nghttp2_pkg_config_path"; then
30883      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30884      export PKG_CONFIG_LIBDIR
30885    fi
30886       $PKGCONFIG --cflags-only-I libnghttp2`
30887    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30888printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30889
30890    LD_H2=`
30891    if test -n "$want_nghttp2_pkg_config_path"; then
30892      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30893      export PKG_CONFIG_LIBDIR
30894    fi
30895
30896      $PKGCONFIG --libs-only-L libnghttp2`
30897    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30898printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30899
30900    DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30901  elif test x"$want_nghttp2_path" != x; then
30902    LIB_H2="-lnghttp2"
30903    LD_H2=-L${want_nghttp2_path}/lib$libsuff
30904    CPP_H2=-I${want_nghttp2_path}/include
30905    DIR_H2=${want_nghttp2_path}/lib$libsuff
30906  elif test X"$want_nghttp2" != Xdefault; then
30907            as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30908  fi
30909
30910  LDFLAGS="$LDFLAGS $LD_H2"
30911  CPPFLAGS="$CPPFLAGS $CPP_H2"
30912  LIBS="$LIB_H2 $LIBS"
30913
30914  # use nghttp2_session_set_local_window_size to require nghttp2
30915  # >= 1.12.0
30916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30917printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30918if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30919then :
30920  printf %s "(cached) " >&6
30921else $as_nop
30922  ac_check_lib_save_LIBS=$LIBS
30923LIBS="-lnghttp2  $LIBS"
30924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30925/* end confdefs.h.  */
30926
30927
30928#ifdef __cplusplus
30929extern "C"
30930#endif
30931char nghttp2_session_set_local_window_size ();
30932int main (void)
30933{
30934return nghttp2_session_set_local_window_size ();
30935 ;
30936 return 0;
30937}
30938_ACEOF
30939if ac_fn_c_try_link "$LINENO"
30940then :
30941  ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30942else $as_nop
30943  ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30944fi
30945rm -f core conftest.err conftest.$ac_objext conftest.beam \
30946    conftest$ac_exeext conftest.$ac_ext
30947LIBS=$ac_check_lib_save_LIBS
30948fi
30949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30950printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30951if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30952then :
30953
30954            for ac_header in nghttp2/nghttp2.h
30955do :
30956  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30957if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30958then :
30959  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30960 curl_h2_msg="enabled (nghttp2)"
30961        NGHTTP2_ENABLED=1
30962
30963printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30964
30965        USE_NGHTTP2=1
30966
30967
30968fi
30969
30970done
30971
30972     CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30973     export CURL_LIBRARY_PATH
30974     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30975printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30976
30977else $as_nop
30978        LDFLAGS=$CLEANLDFLAGS
30979      CPPFLAGS=$CLEANCPPFLAGS
30980      LIBS=$CLEANLIBS
30981
30982fi
30983
30984fi
30985
30986
30987OPT_TCP2="no"
30988
30989if test "x$disable_http" = "xyes"; then
30990  # without HTTP, ngtcp2 is no use
30991  OPT_TCP2="no"
30992fi
30993
30994
30995# Check whether --with-ngtcp2 was given.
30996if test ${with_ngtcp2+y}
30997then :
30998  withval=$with_ngtcp2; OPT_TCP2=$withval
30999fi
31000
31001case "$OPT_TCP2" in
31002  no)
31003        want_tcp2="no"
31004    ;;
31005  yes)
31006        want_tcp2="default"
31007    want_tcp2_path=""
31008    ;;
31009  *)
31010        want_tcp2="yes"
31011    want_tcp2_path="$withval/lib/pkgconfig"
31012    ;;
31013esac
31014
31015curl_tcp2_msg="no      (--with-ngtcp2)"
31016if test X"$want_tcp2" != Xno; then
31017    CLEANLDFLAGS="$LDFLAGS"
31018  CLEANCPPFLAGS="$CPPFLAGS"
31019  CLEANLIBS="$LIBS"
31020
31021
31022    if test -n "$PKG_CONFIG"; then
31023      PKGCONFIG="$PKG_CONFIG"
31024    else
31025      if test -n "$ac_tool_prefix"; then
31026  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31027set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31029printf %s "checking for $ac_word... " >&6; }
31030if test ${ac_cv_path_PKGCONFIG+y}
31031then :
31032  printf %s "(cached) " >&6
31033else $as_nop
31034  case $PKGCONFIG in
31035  [\\/]* | ?:[\\/]*)
31036  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31037  ;;
31038  *)
31039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31040as_dummy="$PATH:/usr/bin:/usr/local/bin"
31041for as_dir in $as_dummy
31042do
31043  IFS=$as_save_IFS
31044  case $as_dir in #(((
31045    '') as_dir=./ ;;
31046    */) ;;
31047    *) as_dir=$as_dir/ ;;
31048  esac
31049    for ac_exec_ext in '' $ac_executable_extensions; do
31050  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31051    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31052    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31053    break 2
31054  fi
31055done
31056  done
31057IFS=$as_save_IFS
31058
31059  ;;
31060esac
31061fi
31062PKGCONFIG=$ac_cv_path_PKGCONFIG
31063if test -n "$PKGCONFIG"; then
31064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31065printf "%s\n" "$PKGCONFIG" >&6; }
31066else
31067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068printf "%s\n" "no" >&6; }
31069fi
31070
31071
31072fi
31073if test -z "$ac_cv_path_PKGCONFIG"; then
31074  ac_pt_PKGCONFIG=$PKGCONFIG
31075  # Extract the first word of "pkg-config", so it can be a program name with args.
31076set dummy pkg-config; ac_word=$2
31077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31078printf %s "checking for $ac_word... " >&6; }
31079if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31080then :
31081  printf %s "(cached) " >&6
31082else $as_nop
31083  case $ac_pt_PKGCONFIG in
31084  [\\/]* | ?:[\\/]*)
31085  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31086  ;;
31087  *)
31088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31089as_dummy="$PATH:/usr/bin:/usr/local/bin"
31090for as_dir in $as_dummy
31091do
31092  IFS=$as_save_IFS
31093  case $as_dir in #(((
31094    '') as_dir=./ ;;
31095    */) ;;
31096    *) as_dir=$as_dir/ ;;
31097  esac
31098    for ac_exec_ext in '' $ac_executable_extensions; do
31099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31100    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31102    break 2
31103  fi
31104done
31105  done
31106IFS=$as_save_IFS
31107
31108  ;;
31109esac
31110fi
31111ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31112if test -n "$ac_pt_PKGCONFIG"; then
31113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31114printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31115else
31116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31117printf "%s\n" "no" >&6; }
31118fi
31119
31120  if test "x$ac_pt_PKGCONFIG" = x; then
31121    PKGCONFIG="no"
31122  else
31123    case $cross_compiling:$ac_tool_warned in
31124yes:)
31125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31126printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31127ac_tool_warned=yes ;;
31128esac
31129    PKGCONFIG=$ac_pt_PKGCONFIG
31130  fi
31131else
31132  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31133fi
31134
31135    fi
31136
31137    if test "x$PKGCONFIG" != "xno"; then
31138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
31139printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
31140            itexists=`
31141    if test -n "$want_tcp2_path"; then
31142      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31143      export PKG_CONFIG_LIBDIR
31144    fi
31145         $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
31146
31147      if test -z "$itexists"; then
31148                        PKGCONFIG="no"
31149        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31150printf "%s\n" "no" >&6; }
31151      else
31152        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31153printf "%s\n" "found" >&6; }
31154      fi
31155    fi
31156
31157
31158  if test "$PKGCONFIG" != "no" ; then
31159    LIB_TCP2=`
31160    if test -n "$want_tcp2_path"; then
31161      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31162      export PKG_CONFIG_LIBDIR
31163    fi
31164
31165      $PKGCONFIG --libs-only-l libngtcp2`
31166    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
31167printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
31168
31169    CPP_TCP2=`
31170    if test -n "$want_tcp2_path"; then
31171      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31172      export PKG_CONFIG_LIBDIR
31173    fi
31174       $PKGCONFIG --cflags-only-I libngtcp2`
31175    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
31176printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
31177
31178    LD_TCP2=`
31179    if test -n "$want_tcp2_path"; then
31180      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31181      export PKG_CONFIG_LIBDIR
31182    fi
31183
31184      $PKGCONFIG --libs-only-L libngtcp2`
31185    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
31186printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
31187
31188    LDFLAGS="$LDFLAGS $LD_TCP2"
31189    CPPFLAGS="$CPPFLAGS $CPP_TCP2"
31190    LIBS="$LIB_TCP2 $LIBS"
31191
31192    if test "x$cross_compiling" != "xyes"; then
31193      DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
31194    fi
31195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
31196printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
31197if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
31198then :
31199  printf %s "(cached) " >&6
31200else $as_nop
31201  ac_check_lib_save_LIBS=$LIBS
31202LIBS="-lngtcp2  $LIBS"
31203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31204/* end confdefs.h.  */
31205
31206
31207#ifdef __cplusplus
31208extern "C"
31209#endif
31210char ngtcp2_conn_client_new_versioned ();
31211int main (void)
31212{
31213return ngtcp2_conn_client_new_versioned ();
31214 ;
31215 return 0;
31216}
31217_ACEOF
31218if ac_fn_c_try_link "$LINENO"
31219then :
31220  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
31221else $as_nop
31222  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
31223fi
31224rm -f core conftest.err conftest.$ac_objext conftest.beam \
31225    conftest$ac_exeext conftest.$ac_ext
31226LIBS=$ac_check_lib_save_LIBS
31227fi
31228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
31229printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
31230if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
31231then :
31232
31233              for ac_header in ngtcp2/ngtcp2.h
31234do :
31235  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
31236if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
31237then :
31238  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
31239 NGTCP2_ENABLED=1
31240
31241printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
31242
31243          USE_NGTCP2=1
31244
31245          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
31246          export CURL_LIBRARY_PATH
31247          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
31248printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
31249
31250fi
31251
31252done
31253
31254else $as_nop
31255          LDFLAGS=$CLEANLDFLAGS
31256        CPPFLAGS=$CLEANCPPFLAGS
31257        LIBS=$CLEANLIBS
31258
31259fi
31260
31261
31262  else
31263        if test X"$want_tcp2" != Xdefault; then
31264                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
31265    fi
31266  fi
31267
31268fi
31269
31270if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
31271    CLEANLDFLAGS="$LDFLAGS"
31272  CLEANCPPFLAGS="$CPPFLAGS"
31273  CLEANLIBS="$LIBS"
31274
31275
31276    if test -n "$PKG_CONFIG"; then
31277      PKGCONFIG="$PKG_CONFIG"
31278    else
31279      if test -n "$ac_tool_prefix"; then
31280  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31281set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31283printf %s "checking for $ac_word... " >&6; }
31284if test ${ac_cv_path_PKGCONFIG+y}
31285then :
31286  printf %s "(cached) " >&6
31287else $as_nop
31288  case $PKGCONFIG in
31289  [\\/]* | ?:[\\/]*)
31290  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31291  ;;
31292  *)
31293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31294as_dummy="$PATH:/usr/bin:/usr/local/bin"
31295for as_dir in $as_dummy
31296do
31297  IFS=$as_save_IFS
31298  case $as_dir in #(((
31299    '') as_dir=./ ;;
31300    */) ;;
31301    *) as_dir=$as_dir/ ;;
31302  esac
31303    for ac_exec_ext in '' $ac_executable_extensions; do
31304  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31305    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31306    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31307    break 2
31308  fi
31309done
31310  done
31311IFS=$as_save_IFS
31312
31313  ;;
31314esac
31315fi
31316PKGCONFIG=$ac_cv_path_PKGCONFIG
31317if test -n "$PKGCONFIG"; then
31318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31319printf "%s\n" "$PKGCONFIG" >&6; }
31320else
31321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31322printf "%s\n" "no" >&6; }
31323fi
31324
31325
31326fi
31327if test -z "$ac_cv_path_PKGCONFIG"; then
31328  ac_pt_PKGCONFIG=$PKGCONFIG
31329  # Extract the first word of "pkg-config", so it can be a program name with args.
31330set dummy pkg-config; ac_word=$2
31331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31332printf %s "checking for $ac_word... " >&6; }
31333if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31334then :
31335  printf %s "(cached) " >&6
31336else $as_nop
31337  case $ac_pt_PKGCONFIG in
31338  [\\/]* | ?:[\\/]*)
31339  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31340  ;;
31341  *)
31342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31343as_dummy="$PATH:/usr/bin:/usr/local/bin"
31344for as_dir in $as_dummy
31345do
31346  IFS=$as_save_IFS
31347  case $as_dir in #(((
31348    '') as_dir=./ ;;
31349    */) ;;
31350    *) as_dir=$as_dir/ ;;
31351  esac
31352    for ac_exec_ext in '' $ac_executable_extensions; do
31353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31354    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31356    break 2
31357  fi
31358done
31359  done
31360IFS=$as_save_IFS
31361
31362  ;;
31363esac
31364fi
31365ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31366if test -n "$ac_pt_PKGCONFIG"; then
31367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31368printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31369else
31370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371printf "%s\n" "no" >&6; }
31372fi
31373
31374  if test "x$ac_pt_PKGCONFIG" = x; then
31375    PKGCONFIG="no"
31376  else
31377    case $cross_compiling:$ac_tool_warned in
31378yes:)
31379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31381ac_tool_warned=yes ;;
31382esac
31383    PKGCONFIG=$ac_pt_PKGCONFIG
31384  fi
31385else
31386  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31387fi
31388
31389    fi
31390
31391    if test "x$PKGCONFIG" != "xno"; then
31392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
31393printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
31394            itexists=`
31395    if test -n "$want_tcp2_path"; then
31396      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31397      export PKG_CONFIG_LIBDIR
31398    fi
31399         $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
31400
31401      if test -z "$itexists"; then
31402                        PKGCONFIG="no"
31403        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31404printf "%s\n" "no" >&6; }
31405      else
31406        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31407printf "%s\n" "found" >&6; }
31408      fi
31409    fi
31410
31411
31412  if test "$PKGCONFIG" != "no" ; then
31413    LIB_NGTCP2_CRYPTO_OPENSSL=`
31414    if test -n "$want_tcp2_path"; then
31415      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31416      export PKG_CONFIG_LIBDIR
31417    fi
31418
31419      $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
31420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
31421printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
31422
31423    CPP_NGTCP2_CRYPTO_OPENSSL=`
31424    if test -n "$want_tcp2_path"; then
31425      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31426      export PKG_CONFIG_LIBDIR
31427    fi
31428       $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
31429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
31430printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
31431
31432    LD_NGTCP2_CRYPTO_OPENSSL=`
31433    if test -n "$want_tcp2_path"; then
31434      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31435      export PKG_CONFIG_LIBDIR
31436    fi
31437
31438      $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
31439    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
31440printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
31441
31442    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
31443    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
31444    LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
31445
31446    if test "x$cross_compiling" != "xyes"; then
31447      DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
31448    fi
31449    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl" >&5
31450printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl... " >&6; }
31451if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb+y}
31452then :
31453  printf %s "(cached) " >&6
31454else $as_nop
31455  ac_check_lib_save_LIBS=$LIBS
31456LIBS="-lngtcp2_crypto_openssl  $LIBS"
31457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31458/* end confdefs.h.  */
31459
31460
31461#ifdef __cplusplus
31462extern "C"
31463#endif
31464char ngtcp2_crypto_recv_client_initial_cb ();
31465int main (void)
31466{
31467return ngtcp2_crypto_recv_client_initial_cb ();
31468 ;
31469 return 0;
31470}
31471_ACEOF
31472if ac_fn_c_try_link "$LINENO"
31473then :
31474  ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=yes
31475else $as_nop
31476  ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=no
31477fi
31478rm -f core conftest.err conftest.$ac_objext conftest.beam \
31479    conftest$ac_exeext conftest.$ac_ext
31480LIBS=$ac_check_lib_save_LIBS
31481fi
31482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31483printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31484if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31485then :
31486
31487              for ac_header in ngtcp2/ngtcp2_crypto.h
31488do :
31489  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31490if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31491then :
31492  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31493 NGTCP2_ENABLED=1
31494
31495printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31496
31497          USE_NGTCP2_CRYPTO_OPENSSL=1
31498
31499          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31500          export CURL_LIBRARY_PATH
31501          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31502printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31503
31504fi
31505
31506done
31507
31508else $as_nop
31509          LDFLAGS=$CLEANLDFLAGS
31510        CPPFLAGS=$CLEANCPPFLAGS
31511        LIBS=$CLEANLIBS
31512
31513fi
31514
31515
31516  else
31517        if test X"$want_tcp2" != Xdefault; then
31518                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31519    fi
31520  fi
31521fi
31522
31523if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31524    CLEANLDFLAGS="$LDFLAGS"
31525  CLEANCPPFLAGS="$CPPFLAGS"
31526  CLEANLIBS="$LIBS"
31527
31528
31529    if test -n "$PKG_CONFIG"; then
31530      PKGCONFIG="$PKG_CONFIG"
31531    else
31532      if test -n "$ac_tool_prefix"; then
31533  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31534set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31536printf %s "checking for $ac_word... " >&6; }
31537if test ${ac_cv_path_PKGCONFIG+y}
31538then :
31539  printf %s "(cached) " >&6
31540else $as_nop
31541  case $PKGCONFIG in
31542  [\\/]* | ?:[\\/]*)
31543  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31544  ;;
31545  *)
31546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31547as_dummy="$PATH:/usr/bin:/usr/local/bin"
31548for as_dir in $as_dummy
31549do
31550  IFS=$as_save_IFS
31551  case $as_dir in #(((
31552    '') as_dir=./ ;;
31553    */) ;;
31554    *) as_dir=$as_dir/ ;;
31555  esac
31556    for ac_exec_ext in '' $ac_executable_extensions; do
31557  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31558    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31559    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31560    break 2
31561  fi
31562done
31563  done
31564IFS=$as_save_IFS
31565
31566  ;;
31567esac
31568fi
31569PKGCONFIG=$ac_cv_path_PKGCONFIG
31570if test -n "$PKGCONFIG"; then
31571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31572printf "%s\n" "$PKGCONFIG" >&6; }
31573else
31574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31575printf "%s\n" "no" >&6; }
31576fi
31577
31578
31579fi
31580if test -z "$ac_cv_path_PKGCONFIG"; then
31581  ac_pt_PKGCONFIG=$PKGCONFIG
31582  # Extract the first word of "pkg-config", so it can be a program name with args.
31583set dummy pkg-config; ac_word=$2
31584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31585printf %s "checking for $ac_word... " >&6; }
31586if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31587then :
31588  printf %s "(cached) " >&6
31589else $as_nop
31590  case $ac_pt_PKGCONFIG in
31591  [\\/]* | ?:[\\/]*)
31592  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31593  ;;
31594  *)
31595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31596as_dummy="$PATH:/usr/bin:/usr/local/bin"
31597for as_dir in $as_dummy
31598do
31599  IFS=$as_save_IFS
31600  case $as_dir in #(((
31601    '') as_dir=./ ;;
31602    */) ;;
31603    *) as_dir=$as_dir/ ;;
31604  esac
31605    for ac_exec_ext in '' $ac_executable_extensions; do
31606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31607    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31609    break 2
31610  fi
31611done
31612  done
31613IFS=$as_save_IFS
31614
31615  ;;
31616esac
31617fi
31618ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31619if test -n "$ac_pt_PKGCONFIG"; then
31620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31621printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31622else
31623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31624printf "%s\n" "no" >&6; }
31625fi
31626
31627  if test "x$ac_pt_PKGCONFIG" = x; then
31628    PKGCONFIG="no"
31629  else
31630    case $cross_compiling:$ac_tool_warned in
31631yes:)
31632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31634ac_tool_warned=yes ;;
31635esac
31636    PKGCONFIG=$ac_pt_PKGCONFIG
31637  fi
31638else
31639  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31640fi
31641
31642    fi
31643
31644    if test "x$PKGCONFIG" != "xno"; then
31645      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31646printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31647            itexists=`
31648    if test -n "$want_tcp2_path"; then
31649      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31650      export PKG_CONFIG_LIBDIR
31651    fi
31652         $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31653
31654      if test -z "$itexists"; then
31655                        PKGCONFIG="no"
31656        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31657printf "%s\n" "no" >&6; }
31658      else
31659        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31660printf "%s\n" "found" >&6; }
31661      fi
31662    fi
31663
31664
31665  if test "$PKGCONFIG" != "no" ; then
31666    LIB_NGTCP2_CRYPTO_GNUTLS=`
31667    if test -n "$want_tcp2_path"; then
31668      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31669      export PKG_CONFIG_LIBDIR
31670    fi
31671
31672      $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31673    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31674printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31675
31676    CPP_NGTCP2_CRYPTO_GNUTLS=`
31677    if test -n "$want_tcp2_path"; then
31678      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31679      export PKG_CONFIG_LIBDIR
31680    fi
31681       $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31682    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31683printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31684
31685    LD_NGTCP2_CRYPTO_GNUTLS=`
31686    if test -n "$want_tcp2_path"; then
31687      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31688      export PKG_CONFIG_LIBDIR
31689    fi
31690
31691      $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31693printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31694
31695    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31696    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31697    LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31698
31699    if test "x$cross_compiling" != "xyes"; then
31700      DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31701    fi
31702    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31703printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31704if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31705then :
31706  printf %s "(cached) " >&6
31707else $as_nop
31708  ac_check_lib_save_LIBS=$LIBS
31709LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31711/* end confdefs.h.  */
31712
31713
31714#ifdef __cplusplus
31715extern "C"
31716#endif
31717char ngtcp2_crypto_recv_client_initial_cb ();
31718int main (void)
31719{
31720return ngtcp2_crypto_recv_client_initial_cb ();
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725if ac_fn_c_try_link "$LINENO"
31726then :
31727  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31728else $as_nop
31729  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31730fi
31731rm -f core conftest.err conftest.$ac_objext conftest.beam \
31732    conftest$ac_exeext conftest.$ac_ext
31733LIBS=$ac_check_lib_save_LIBS
31734fi
31735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31736printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31737if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31738then :
31739
31740              for ac_header in ngtcp2/ngtcp2_crypto.h
31741do :
31742  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31743if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31744then :
31745  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31746 NGTCP2_ENABLED=1
31747
31748printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31749
31750          USE_NGTCP2_CRYPTO_GNUTLS=1
31751
31752          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31753          export CURL_LIBRARY_PATH
31754          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31755printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31756
31757fi
31758
31759done
31760
31761else $as_nop
31762          LDFLAGS=$CLEANLDFLAGS
31763        CPPFLAGS=$CLEANCPPFLAGS
31764        LIBS=$CLEANLIBS
31765
31766fi
31767
31768
31769  else
31770        if test X"$want_tcp2" != Xdefault; then
31771                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31772    fi
31773  fi
31774fi
31775
31776if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31777    CLEANLDFLAGS="$LDFLAGS"
31778  CLEANCPPFLAGS="$CPPFLAGS"
31779  CLEANLIBS="$LIBS"
31780
31781
31782    if test -n "$PKG_CONFIG"; then
31783      PKGCONFIG="$PKG_CONFIG"
31784    else
31785      if test -n "$ac_tool_prefix"; then
31786  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31789printf %s "checking for $ac_word... " >&6; }
31790if test ${ac_cv_path_PKGCONFIG+y}
31791then :
31792  printf %s "(cached) " >&6
31793else $as_nop
31794  case $PKGCONFIG in
31795  [\\/]* | ?:[\\/]*)
31796  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31797  ;;
31798  *)
31799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31800as_dummy="$PATH:/usr/bin:/usr/local/bin"
31801for as_dir in $as_dummy
31802do
31803  IFS=$as_save_IFS
31804  case $as_dir in #(((
31805    '') as_dir=./ ;;
31806    */) ;;
31807    *) as_dir=$as_dir/ ;;
31808  esac
31809    for ac_exec_ext in '' $ac_executable_extensions; do
31810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31811    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31813    break 2
31814  fi
31815done
31816  done
31817IFS=$as_save_IFS
31818
31819  ;;
31820esac
31821fi
31822PKGCONFIG=$ac_cv_path_PKGCONFIG
31823if test -n "$PKGCONFIG"; then
31824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31825printf "%s\n" "$PKGCONFIG" >&6; }
31826else
31827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828printf "%s\n" "no" >&6; }
31829fi
31830
31831
31832fi
31833if test -z "$ac_cv_path_PKGCONFIG"; then
31834  ac_pt_PKGCONFIG=$PKGCONFIG
31835  # Extract the first word of "pkg-config", so it can be a program name with args.
31836set dummy pkg-config; ac_word=$2
31837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31838printf %s "checking for $ac_word... " >&6; }
31839if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31840then :
31841  printf %s "(cached) " >&6
31842else $as_nop
31843  case $ac_pt_PKGCONFIG in
31844  [\\/]* | ?:[\\/]*)
31845  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31846  ;;
31847  *)
31848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31849as_dummy="$PATH:/usr/bin:/usr/local/bin"
31850for as_dir in $as_dummy
31851do
31852  IFS=$as_save_IFS
31853  case $as_dir in #(((
31854    '') as_dir=./ ;;
31855    */) ;;
31856    *) as_dir=$as_dir/ ;;
31857  esac
31858    for ac_exec_ext in '' $ac_executable_extensions; do
31859  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31860    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31861    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31862    break 2
31863  fi
31864done
31865  done
31866IFS=$as_save_IFS
31867
31868  ;;
31869esac
31870fi
31871ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31872if test -n "$ac_pt_PKGCONFIG"; then
31873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31874printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31875else
31876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31877printf "%s\n" "no" >&6; }
31878fi
31879
31880  if test "x$ac_pt_PKGCONFIG" = x; then
31881    PKGCONFIG="no"
31882  else
31883    case $cross_compiling:$ac_tool_warned in
31884yes:)
31885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31886printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31887ac_tool_warned=yes ;;
31888esac
31889    PKGCONFIG=$ac_pt_PKGCONFIG
31890  fi
31891else
31892  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31893fi
31894
31895    fi
31896
31897    if test "x$PKGCONFIG" != "xno"; then
31898      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31899printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31900            itexists=`
31901    if test -n "$want_tcp2_path"; then
31902      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31903      export PKG_CONFIG_LIBDIR
31904    fi
31905         $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31906
31907      if test -z "$itexists"; then
31908                        PKGCONFIG="no"
31909        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31910printf "%s\n" "no" >&6; }
31911      else
31912        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31913printf "%s\n" "found" >&6; }
31914      fi
31915    fi
31916
31917
31918  if test "$PKGCONFIG" != "no" ; then
31919    LIB_NGTCP2_CRYPTO_WOLFSSL=`
31920    if test -n "$want_tcp2_path"; then
31921      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31922      export PKG_CONFIG_LIBDIR
31923    fi
31924
31925      $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31927printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31928
31929    CPP_NGTCP2_CRYPTO_WOLFSSL=`
31930    if test -n "$want_tcp2_path"; then
31931      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31932      export PKG_CONFIG_LIBDIR
31933    fi
31934       $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31936printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31937
31938    LD_NGTCP2_CRYPTO_WOLFSSL=`
31939    if test -n "$want_tcp2_path"; then
31940      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31941      export PKG_CONFIG_LIBDIR
31942    fi
31943
31944      $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31946printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31947
31948    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31949    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31950    LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31951
31952    if test "x$cross_compiling" != "xyes"; then
31953      DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31954    fi
31955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31956printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31957if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31958then :
31959  printf %s "(cached) " >&6
31960else $as_nop
31961  ac_check_lib_save_LIBS=$LIBS
31962LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
31963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31964/* end confdefs.h.  */
31965
31966
31967#ifdef __cplusplus
31968extern "C"
31969#endif
31970char ngtcp2_crypto_recv_client_initial_cb ();
31971int main (void)
31972{
31973return ngtcp2_crypto_recv_client_initial_cb ();
31974 ;
31975 return 0;
31976}
31977_ACEOF
31978if ac_fn_c_try_link "$LINENO"
31979then :
31980  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31981else $as_nop
31982  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31983fi
31984rm -f core conftest.err conftest.$ac_objext conftest.beam \
31985    conftest$ac_exeext conftest.$ac_ext
31986LIBS=$ac_check_lib_save_LIBS
31987fi
31988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31989printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31990if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31991then :
31992
31993              for ac_header in ngtcp2/ngtcp2_crypto.h
31994do :
31995  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31996if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31997then :
31998  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31999 NGTCP2_ENABLED=1
32000
32001printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
32002
32003          USE_NGTCP2_CRYPTO_WOLFSSL=1
32004
32005          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
32006          export CURL_LIBRARY_PATH
32007          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
32008printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
32009
32010fi
32011
32012done
32013
32014else $as_nop
32015          LDFLAGS=$CLEANLDFLAGS
32016        CPPFLAGS=$CLEANCPPFLAGS
32017        LIBS=$CLEANLIBS
32018
32019fi
32020
32021
32022  else
32023        if test X"$want_tcp2" != Xdefault; then
32024                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
32025    fi
32026  fi
32027fi
32028
32029
32030OPT_NGHTTP3="yes"
32031
32032if test "x$NGTCP2_ENABLED" = "x"; then
32033  # without ngtcp2, nghttp3 is of no use for us
32034  OPT_NGHTTP3="no"
32035fi
32036
32037
32038# Check whether --with-nghttp3 was given.
32039if test ${with_nghttp3+y}
32040then :
32041  withval=$with_nghttp3; OPT_NGHTTP3=$withval
32042fi
32043
32044case "$OPT_NGHTTP3" in
32045  no)
32046        want_nghttp3="no"
32047    ;;
32048  yes)
32049        want_nghttp3="default"
32050    want_nghttp3_path=""
32051    ;;
32052  *)
32053        want_nghttp3="yes"
32054    want_nghttp3_path="$withval/lib/pkgconfig"
32055    ;;
32056esac
32057
32058curl_http3_msg="no      (--with-nghttp3)"
32059if test X"$want_nghttp3" != Xno; then
32060    CLEANLDFLAGS="$LDFLAGS"
32061  CLEANCPPFLAGS="$CPPFLAGS"
32062  CLEANLIBS="$LIBS"
32063
32064
32065    if test -n "$PKG_CONFIG"; then
32066      PKGCONFIG="$PKG_CONFIG"
32067    else
32068      if test -n "$ac_tool_prefix"; then
32069  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32070set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32072printf %s "checking for $ac_word... " >&6; }
32073if test ${ac_cv_path_PKGCONFIG+y}
32074then :
32075  printf %s "(cached) " >&6
32076else $as_nop
32077  case $PKGCONFIG in
32078  [\\/]* | ?:[\\/]*)
32079  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32080  ;;
32081  *)
32082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32083as_dummy="$PATH:/usr/bin:/usr/local/bin"
32084for as_dir in $as_dummy
32085do
32086  IFS=$as_save_IFS
32087  case $as_dir in #(((
32088    '') as_dir=./ ;;
32089    */) ;;
32090    *) as_dir=$as_dir/ ;;
32091  esac
32092    for ac_exec_ext in '' $ac_executable_extensions; do
32093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32094    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32096    break 2
32097  fi
32098done
32099  done
32100IFS=$as_save_IFS
32101
32102  ;;
32103esac
32104fi
32105PKGCONFIG=$ac_cv_path_PKGCONFIG
32106if test -n "$PKGCONFIG"; then
32107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32108printf "%s\n" "$PKGCONFIG" >&6; }
32109else
32110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32111printf "%s\n" "no" >&6; }
32112fi
32113
32114
32115fi
32116if test -z "$ac_cv_path_PKGCONFIG"; then
32117  ac_pt_PKGCONFIG=$PKGCONFIG
32118  # Extract the first word of "pkg-config", so it can be a program name with args.
32119set dummy pkg-config; ac_word=$2
32120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32121printf %s "checking for $ac_word... " >&6; }
32122if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32123then :
32124  printf %s "(cached) " >&6
32125else $as_nop
32126  case $ac_pt_PKGCONFIG in
32127  [\\/]* | ?:[\\/]*)
32128  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32129  ;;
32130  *)
32131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32132as_dummy="$PATH:/usr/bin:/usr/local/bin"
32133for as_dir in $as_dummy
32134do
32135  IFS=$as_save_IFS
32136  case $as_dir in #(((
32137    '') as_dir=./ ;;
32138    */) ;;
32139    *) as_dir=$as_dir/ ;;
32140  esac
32141    for ac_exec_ext in '' $ac_executable_extensions; do
32142  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32143    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32144    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32145    break 2
32146  fi
32147done
32148  done
32149IFS=$as_save_IFS
32150
32151  ;;
32152esac
32153fi
32154ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32155if test -n "$ac_pt_PKGCONFIG"; then
32156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32157printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32158else
32159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32160printf "%s\n" "no" >&6; }
32161fi
32162
32163  if test "x$ac_pt_PKGCONFIG" = x; then
32164    PKGCONFIG="no"
32165  else
32166    case $cross_compiling:$ac_tool_warned in
32167yes:)
32168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32170ac_tool_warned=yes ;;
32171esac
32172    PKGCONFIG=$ac_pt_PKGCONFIG
32173  fi
32174else
32175  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32176fi
32177
32178    fi
32179
32180    if test "x$PKGCONFIG" != "xno"; then
32181      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
32182printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
32183            itexists=`
32184    if test -n "$want_nghttp3_path"; then
32185      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32186      export PKG_CONFIG_LIBDIR
32187    fi
32188         $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
32189
32190      if test -z "$itexists"; then
32191                        PKGCONFIG="no"
32192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32193printf "%s\n" "no" >&6; }
32194      else
32195        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32196printf "%s\n" "found" >&6; }
32197      fi
32198    fi
32199
32200
32201  if test "$PKGCONFIG" != "no" ; then
32202    LIB_NGHTTP3=`
32203    if test -n "$want_nghttp3_path"; then
32204      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32205      export PKG_CONFIG_LIBDIR
32206    fi
32207
32208      $PKGCONFIG --libs-only-l libnghttp3`
32209    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
32210printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
32211
32212    CPP_NGHTTP3=`
32213    if test -n "$want_nghttp3_path"; then
32214      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32215      export PKG_CONFIG_LIBDIR
32216    fi
32217       $PKGCONFIG --cflags-only-I libnghttp3`
32218    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
32219printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
32220
32221    LD_NGHTTP3=`
32222    if test -n "$want_nghttp3_path"; then
32223      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32224      export PKG_CONFIG_LIBDIR
32225    fi
32226
32227      $PKGCONFIG --libs-only-L libnghttp3`
32228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
32229printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
32230
32231    LDFLAGS="$LDFLAGS $LD_NGHTTP3"
32232    CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
32233    LIBS="$LIB_NGHTTP3 $LIBS"
32234
32235    if test "x$cross_compiling" != "xyes"; then
32236      DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
32237    fi
32238    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
32239printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
32240if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
32241then :
32242  printf %s "(cached) " >&6
32243else $as_nop
32244  ac_check_lib_save_LIBS=$LIBS
32245LIBS="-lnghttp3  $LIBS"
32246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32247/* end confdefs.h.  */
32248
32249
32250#ifdef __cplusplus
32251extern "C"
32252#endif
32253char nghttp3_conn_client_new_versioned ();
32254int main (void)
32255{
32256return nghttp3_conn_client_new_versioned ();
32257 ;
32258 return 0;
32259}
32260_ACEOF
32261if ac_fn_c_try_link "$LINENO"
32262then :
32263  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
32264else $as_nop
32265  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
32266fi
32267rm -f core conftest.err conftest.$ac_objext conftest.beam \
32268    conftest$ac_exeext conftest.$ac_ext
32269LIBS=$ac_check_lib_save_LIBS
32270fi
32271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
32272printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
32273if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
32274then :
32275
32276              for ac_header in nghttp3/nghttp3.h
32277do :
32278  ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
32279if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
32280then :
32281  printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
32282 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
32283          NGHTTP3_ENABLED=1
32284
32285printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
32286
32287          USE_NGHTTP3=1
32288
32289          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
32290          export CURL_LIBRARY_PATH
32291          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
32292printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
32293          experimental="$experimental HTTP3"
32294
32295fi
32296
32297done
32298
32299else $as_nop
32300          LDFLAGS=$CLEANLDFLAGS
32301        CPPFLAGS=$CLEANCPPFLAGS
32302        LIBS=$CLEANLIBS
32303
32304fi
32305
32306
32307  else
32308        if test X"$want_nghttp3" != Xdefault; then
32309                  as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
32310    fi
32311  fi
32312
32313fi
32314
32315
32316OPT_QUICHE="no"
32317
32318if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32319  # without HTTP or with ngtcp2, quiche is no use
32320  OPT_QUICHE="no"
32321fi
32322
32323
32324# Check whether --with-quiche was given.
32325if test ${with_quiche+y}
32326then :
32327  withval=$with_quiche; OPT_QUICHE=$withval
32328fi
32329
32330case "$OPT_QUICHE" in
32331  no)
32332        want_quiche="no"
32333    ;;
32334  yes)
32335        want_quiche="default"
32336    want_quiche_path=""
32337    ;;
32338  *)
32339        want_quiche="yes"
32340    want_quiche_path="$withval"
32341    ;;
32342esac
32343
32344if test X"$want_quiche" != Xno; then
32345
32346  if test "$NGHTTP3_ENABLED" = 1; then
32347    as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32348  fi
32349
32350    CLEANLDFLAGS="$LDFLAGS"
32351  CLEANCPPFLAGS="$CPPFLAGS"
32352  CLEANLIBS="$LIBS"
32353
32354
32355    if test -n "$PKG_CONFIG"; then
32356      PKGCONFIG="$PKG_CONFIG"
32357    else
32358      if test -n "$ac_tool_prefix"; then
32359  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32360set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32362printf %s "checking for $ac_word... " >&6; }
32363if test ${ac_cv_path_PKGCONFIG+y}
32364then :
32365  printf %s "(cached) " >&6
32366else $as_nop
32367  case $PKGCONFIG in
32368  [\\/]* | ?:[\\/]*)
32369  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32370  ;;
32371  *)
32372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32373as_dummy="$PATH:/usr/bin:/usr/local/bin"
32374for as_dir in $as_dummy
32375do
32376  IFS=$as_save_IFS
32377  case $as_dir in #(((
32378    '') as_dir=./ ;;
32379    */) ;;
32380    *) as_dir=$as_dir/ ;;
32381  esac
32382    for ac_exec_ext in '' $ac_executable_extensions; do
32383  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32384    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32385    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32386    break 2
32387  fi
32388done
32389  done
32390IFS=$as_save_IFS
32391
32392  ;;
32393esac
32394fi
32395PKGCONFIG=$ac_cv_path_PKGCONFIG
32396if test -n "$PKGCONFIG"; then
32397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32398printf "%s\n" "$PKGCONFIG" >&6; }
32399else
32400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32401printf "%s\n" "no" >&6; }
32402fi
32403
32404
32405fi
32406if test -z "$ac_cv_path_PKGCONFIG"; then
32407  ac_pt_PKGCONFIG=$PKGCONFIG
32408  # Extract the first word of "pkg-config", so it can be a program name with args.
32409set dummy pkg-config; ac_word=$2
32410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32411printf %s "checking for $ac_word... " >&6; }
32412if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32413then :
32414  printf %s "(cached) " >&6
32415else $as_nop
32416  case $ac_pt_PKGCONFIG in
32417  [\\/]* | ?:[\\/]*)
32418  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32419  ;;
32420  *)
32421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32422as_dummy="$PATH:/usr/bin:/usr/local/bin"
32423for as_dir in $as_dummy
32424do
32425  IFS=$as_save_IFS
32426  case $as_dir in #(((
32427    '') as_dir=./ ;;
32428    */) ;;
32429    *) as_dir=$as_dir/ ;;
32430  esac
32431    for ac_exec_ext in '' $ac_executable_extensions; do
32432  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32433    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32434    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32435    break 2
32436  fi
32437done
32438  done
32439IFS=$as_save_IFS
32440
32441  ;;
32442esac
32443fi
32444ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32445if test -n "$ac_pt_PKGCONFIG"; then
32446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32447printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32448else
32449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32450printf "%s\n" "no" >&6; }
32451fi
32452
32453  if test "x$ac_pt_PKGCONFIG" = x; then
32454    PKGCONFIG="no"
32455  else
32456    case $cross_compiling:$ac_tool_warned in
32457yes:)
32458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32460ac_tool_warned=yes ;;
32461esac
32462    PKGCONFIG=$ac_pt_PKGCONFIG
32463  fi
32464else
32465  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32466fi
32467
32468    fi
32469
32470    if test "x$PKGCONFIG" != "xno"; then
32471      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32472printf %s "checking for quiche options with pkg-config... " >&6; }
32473            itexists=`
32474    if test -n "$want_quiche_path"; then
32475      PKG_CONFIG_LIBDIR="$want_quiche_path"
32476      export PKG_CONFIG_LIBDIR
32477    fi
32478         $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32479
32480      if test -z "$itexists"; then
32481                        PKGCONFIG="no"
32482        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32483printf "%s\n" "no" >&6; }
32484      else
32485        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32486printf "%s\n" "found" >&6; }
32487      fi
32488    fi
32489
32490
32491  if test "$PKGCONFIG" != "no" ; then
32492    LIB_QUICHE=`
32493    if test -n "$want_quiche_path"; then
32494      PKG_CONFIG_LIBDIR="$want_quiche_path"
32495      export PKG_CONFIG_LIBDIR
32496    fi
32497
32498      $PKGCONFIG --libs-only-l quiche`
32499    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32500printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32501
32502    CPP_QUICHE=`
32503    if test -n "$want_quiche_path"; then
32504      PKG_CONFIG_LIBDIR="$want_quiche_path"
32505      export PKG_CONFIG_LIBDIR
32506    fi
32507       $PKGCONFIG --cflags-only-I quiche`
32508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32509printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32510
32511    LD_QUICHE=`
32512    if test -n "$want_quiche_path"; then
32513      PKG_CONFIG_LIBDIR="$want_quiche_path"
32514      export PKG_CONFIG_LIBDIR
32515    fi
32516
32517      $PKGCONFIG --libs-only-L quiche`
32518    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32519printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32520
32521    LDFLAGS="$LDFLAGS $LD_QUICHE"
32522    CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32523    LIBS="$LIB_QUICHE $LIBS"
32524
32525    if test "x$cross_compiling" != "xyes"; then
32526      DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32527    fi
32528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
32529printf %s "checking for quiche_connect in -lquiche... " >&6; }
32530if test ${ac_cv_lib_quiche_quiche_connect+y}
32531then :
32532  printf %s "(cached) " >&6
32533else $as_nop
32534  ac_check_lib_save_LIBS=$LIBS
32535LIBS="-lquiche  $LIBS"
32536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32537/* end confdefs.h.  */
32538
32539
32540#ifdef __cplusplus
32541extern "C"
32542#endif
32543char quiche_connect ();
32544int main (void)
32545{
32546return quiche_connect ();
32547 ;
32548 return 0;
32549}
32550_ACEOF
32551if ac_fn_c_try_link "$LINENO"
32552then :
32553  ac_cv_lib_quiche_quiche_connect=yes
32554else $as_nop
32555  ac_cv_lib_quiche_quiche_connect=no
32556fi
32557rm -f core conftest.err conftest.$ac_objext conftest.beam \
32558    conftest$ac_exeext conftest.$ac_ext
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32562printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32563if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32564then :
32565
32566              for ac_header in quiche.h
32567do :
32568  ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32569$ac_includes_default
32570#include <sys/socket.h>
32571
32572
32573"
32574if test "x$ac_cv_header_quiche_h" = xyes
32575then :
32576  printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32577 experimental="$experimental HTTP3"
32578          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32579printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32580          curl_h3_msg="enabled (quiche)"
32581          QUICHE_ENABLED=1
32582
32583printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32584
32585          USE_QUICHE=1
32586
32587          ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32588if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32589then :
32590  printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32591
32592fi
32593
32594          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32595          export CURL_LIBRARY_PATH
32596          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32597printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32598fi
32599
32600done
32601
32602else $as_nop
32603          as_fn_error $? "couldn't use quiche" "$LINENO" 5
32604
32605fi
32606
32607  else
32608        if test X"$want_quiche" != Xdefault; then
32609                  as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32610    fi
32611  fi
32612fi
32613
32614
32615OPT_MSH3="no"
32616
32617if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32618  # without HTTP or with ngtcp2, msh3 is no use
32619  OPT_MSH3="no"
32620fi
32621
32622
32623# Check whether --with-msh3 was given.
32624if test ${with_msh3+y}
32625then :
32626  withval=$with_msh3; OPT_MSH3=$withval
32627fi
32628
32629case "$OPT_MSH3" in
32630  no)
32631        want_msh3="no"
32632    ;;
32633  yes)
32634        want_msh3="default"
32635    want_msh3_path=""
32636    ;;
32637  *)
32638        want_msh3="yes"
32639    want_msh3_path="$withval"
32640    ;;
32641esac
32642
32643if test X"$want_msh3" != Xno; then
32644
32645  if test "$NGHTTP3_ENABLED" = 1; then
32646    as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32647  fi
32648
32649    CLEANLDFLAGS="$LDFLAGS"
32650  CLEANCPPFLAGS="$CPPFLAGS"
32651  CLEANLIBS="$LIBS"
32652
32653  if test -n "$want_msh3_path"; then
32654    LD_MSH3="-L$want_msh3_path/lib"
32655    CPP_MSH3="-I$want_msh3_path/include"
32656    DIR_MSH3="$want_msh3_path/lib"
32657    LDFLAGS="$LDFLAGS $LD_MSH3"
32658    CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32659  fi
32660  LIBS="-lmsh3 $LIBS"
32661
32662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32663printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32664if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32665then :
32666  printf %s "(cached) " >&6
32667else $as_nop
32668  ac_check_lib_save_LIBS=$LIBS
32669LIBS="-lmsh3  $LIBS"
32670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32671/* end confdefs.h.  */
32672
32673
32674#ifdef __cplusplus
32675extern "C"
32676#endif
32677char MsH3ApiOpen ();
32678int main (void)
32679{
32680return MsH3ApiOpen ();
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685if ac_fn_c_try_link "$LINENO"
32686then :
32687  ac_cv_lib_msh3_MsH3ApiOpen=yes
32688else $as_nop
32689  ac_cv_lib_msh3_MsH3ApiOpen=no
32690fi
32691rm -f core conftest.err conftest.$ac_objext conftest.beam \
32692    conftest$ac_exeext conftest.$ac_ext
32693LIBS=$ac_check_lib_save_LIBS
32694fi
32695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32696printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32697if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32698then :
32699
32700           for ac_header in msh3.h
32701do :
32702  ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32703if test "x$ac_cv_header_msh3_h" = xyes
32704then :
32705  printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32706 curl_h3_msg="enabled (msh3)"
32707        MSH3_ENABLED=1
32708
32709printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32710
32711        USE_MSH3=1
32712
32713        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32714        export CURL_LIBRARY_PATH
32715        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32716printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32717else $as_nop
32718  experimental="$experimental HTTP3"
32719
32720fi
32721
32722done
32723
32724else $as_nop
32725        LDFLAGS=$CLEANLDFLAGS
32726      CPPFLAGS=$CLEANCPPFLAGS
32727      LIBS=$CLEANLIBS
32728
32729fi
32730
32731fi
32732
32733
32734OPT_ZSH_FPATH=default
32735
32736# Check whether --with-zsh-functions-dir was given.
32737if test ${with_zsh_functions_dir+y}
32738then :
32739  withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32740fi
32741
32742case "$OPT_ZSH_FPATH" in
32743  no)
32744        ;;
32745  default|yes)
32746        ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32747
32748    ;;
32749  *)
32750        ZSH_FUNCTIONS_DIR="$withval"
32751
32752    ;;
32753esac
32754
32755
32756OPT_FISH_FPATH=default
32757
32758# Check whether --with-fish-functions-dir was given.
32759if test ${with_fish_functions_dir+y}
32760then :
32761  withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32762fi
32763
32764case "$OPT_FISH_FPATH" in
32765  no)
32766        ;;
32767  default|yes)
32768
32769    if test -n "$PKG_CONFIG"; then
32770      PKGCONFIG="$PKG_CONFIG"
32771    else
32772      if test -n "$ac_tool_prefix"; then
32773  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32774set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32776printf %s "checking for $ac_word... " >&6; }
32777if test ${ac_cv_path_PKGCONFIG+y}
32778then :
32779  printf %s "(cached) " >&6
32780else $as_nop
32781  case $PKGCONFIG in
32782  [\\/]* | ?:[\\/]*)
32783  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32784  ;;
32785  *)
32786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32787as_dummy="$PATH:/usr/bin:/usr/local/bin"
32788for as_dir in $as_dummy
32789do
32790  IFS=$as_save_IFS
32791  case $as_dir in #(((
32792    '') as_dir=./ ;;
32793    */) ;;
32794    *) as_dir=$as_dir/ ;;
32795  esac
32796    for ac_exec_ext in '' $ac_executable_extensions; do
32797  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32798    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32799    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32800    break 2
32801  fi
32802done
32803  done
32804IFS=$as_save_IFS
32805
32806  ;;
32807esac
32808fi
32809PKGCONFIG=$ac_cv_path_PKGCONFIG
32810if test -n "$PKGCONFIG"; then
32811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32812printf "%s\n" "$PKGCONFIG" >&6; }
32813else
32814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32815printf "%s\n" "no" >&6; }
32816fi
32817
32818
32819fi
32820if test -z "$ac_cv_path_PKGCONFIG"; then
32821  ac_pt_PKGCONFIG=$PKGCONFIG
32822  # Extract the first word of "pkg-config", so it can be a program name with args.
32823set dummy pkg-config; ac_word=$2
32824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32825printf %s "checking for $ac_word... " >&6; }
32826if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32827then :
32828  printf %s "(cached) " >&6
32829else $as_nop
32830  case $ac_pt_PKGCONFIG in
32831  [\\/]* | ?:[\\/]*)
32832  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32833  ;;
32834  *)
32835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32836as_dummy="$PATH:/usr/bin:/usr/local/bin"
32837for as_dir in $as_dummy
32838do
32839  IFS=$as_save_IFS
32840  case $as_dir in #(((
32841    '') as_dir=./ ;;
32842    */) ;;
32843    *) as_dir=$as_dir/ ;;
32844  esac
32845    for ac_exec_ext in '' $ac_executable_extensions; do
32846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32847    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32849    break 2
32850  fi
32851done
32852  done
32853IFS=$as_save_IFS
32854
32855  ;;
32856esac
32857fi
32858ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32859if test -n "$ac_pt_PKGCONFIG"; then
32860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32861printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32862else
32863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32864printf "%s\n" "no" >&6; }
32865fi
32866
32867  if test "x$ac_pt_PKGCONFIG" = x; then
32868    PKGCONFIG="no"
32869  else
32870    case $cross_compiling:$ac_tool_warned in
32871yes:)
32872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32873printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32874ac_tool_warned=yes ;;
32875esac
32876    PKGCONFIG=$ac_pt_PKGCONFIG
32877  fi
32878else
32879  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32880fi
32881
32882    fi
32883
32884    if test "x$PKGCONFIG" != "xno"; then
32885      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32886printf %s "checking for fish options with pkg-config... " >&6; }
32887            itexists=`
32888    if test -n ""; then
32889      PKG_CONFIG_LIBDIR=""
32890      export PKG_CONFIG_LIBDIR
32891    fi
32892         $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32893
32894      if test -z "$itexists"; then
32895                        PKGCONFIG="no"
32896        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32897printf "%s\n" "no" >&6; }
32898      else
32899        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32900printf "%s\n" "found" >&6; }
32901      fi
32902    fi
32903
32904    if test "$PKGCONFIG" != "no" ; then
32905      FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32906    else
32907      FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32908    fi
32909
32910    ;;
32911  *)
32912        FISH_FUNCTIONS_DIR="$withval"
32913
32914    ;;
32915esac
32916
32917ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32918#ifdef HAVE_SYS_TYPES_H
32919#include <sys/types.h>
32920#endif
32921#ifdef HAVE_SYS_TIME_H
32922#include <sys/time.h>
32923#endif
32924#ifdef HAVE_SYS_SELECT_H
32925#include <sys/select.h>
32926#elif defined(HAVE_UNISTD_H)
32927#include <unistd.h>
32928#endif
32929#ifdef HAVE_SYS_SOCKET_H
32930#include <sys/socket.h>
32931#endif
32932#ifdef HAVE_NETINET_IN_H
32933#include <netinet/in.h>
32934#endif
32935#ifdef HAVE_NETINET_IN6_H
32936#include <netinet/in6.h>
32937#endif
32938#ifdef HAVE_SYS_UN_H
32939#include <sys/un.h>
32940#endif
32941
32942
32943"
32944if test "x$ac_cv_header_sys_types_h" = xyes
32945then :
32946  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32947
32948fi
32949ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32950#ifdef HAVE_SYS_TYPES_H
32951#include <sys/types.h>
32952#endif
32953#ifdef HAVE_SYS_TIME_H
32954#include <sys/time.h>
32955#endif
32956#ifdef HAVE_SYS_SELECT_H
32957#include <sys/select.h>
32958#elif defined(HAVE_UNISTD_H)
32959#include <unistd.h>
32960#endif
32961#ifdef HAVE_SYS_SOCKET_H
32962#include <sys/socket.h>
32963#endif
32964#ifdef HAVE_NETINET_IN_H
32965#include <netinet/in.h>
32966#endif
32967#ifdef HAVE_NETINET_IN6_H
32968#include <netinet/in6.h>
32969#endif
32970#ifdef HAVE_SYS_UN_H
32971#include <sys/un.h>
32972#endif
32973
32974
32975"
32976if test "x$ac_cv_header_sys_time_h" = xyes
32977then :
32978  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32979
32980fi
32981ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32982#ifdef HAVE_SYS_TYPES_H
32983#include <sys/types.h>
32984#endif
32985#ifdef HAVE_SYS_TIME_H
32986#include <sys/time.h>
32987#endif
32988#ifdef HAVE_SYS_SELECT_H
32989#include <sys/select.h>
32990#elif defined(HAVE_UNISTD_H)
32991#include <unistd.h>
32992#endif
32993#ifdef HAVE_SYS_SOCKET_H
32994#include <sys/socket.h>
32995#endif
32996#ifdef HAVE_NETINET_IN_H
32997#include <netinet/in.h>
32998#endif
32999#ifdef HAVE_NETINET_IN6_H
33000#include <netinet/in6.h>
33001#endif
33002#ifdef HAVE_SYS_UN_H
33003#include <sys/un.h>
33004#endif
33005
33006
33007"
33008if test "x$ac_cv_header_sys_select_h" = xyes
33009then :
33010  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
33011
33012fi
33013ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
33014#ifdef HAVE_SYS_TYPES_H
33015#include <sys/types.h>
33016#endif
33017#ifdef HAVE_SYS_TIME_H
33018#include <sys/time.h>
33019#endif
33020#ifdef HAVE_SYS_SELECT_H
33021#include <sys/select.h>
33022#elif defined(HAVE_UNISTD_H)
33023#include <unistd.h>
33024#endif
33025#ifdef HAVE_SYS_SOCKET_H
33026#include <sys/socket.h>
33027#endif
33028#ifdef HAVE_NETINET_IN_H
33029#include <netinet/in.h>
33030#endif
33031#ifdef HAVE_NETINET_IN6_H
33032#include <netinet/in6.h>
33033#endif
33034#ifdef HAVE_SYS_UN_H
33035#include <sys/un.h>
33036#endif
33037
33038
33039"
33040if test "x$ac_cv_header_sys_socket_h" = xyes
33041then :
33042  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33043
33044fi
33045ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
33046#ifdef HAVE_SYS_TYPES_H
33047#include <sys/types.h>
33048#endif
33049#ifdef HAVE_SYS_TIME_H
33050#include <sys/time.h>
33051#endif
33052#ifdef HAVE_SYS_SELECT_H
33053#include <sys/select.h>
33054#elif defined(HAVE_UNISTD_H)
33055#include <unistd.h>
33056#endif
33057#ifdef HAVE_SYS_SOCKET_H
33058#include <sys/socket.h>
33059#endif
33060#ifdef HAVE_NETINET_IN_H
33061#include <netinet/in.h>
33062#endif
33063#ifdef HAVE_NETINET_IN6_H
33064#include <netinet/in6.h>
33065#endif
33066#ifdef HAVE_SYS_UN_H
33067#include <sys/un.h>
33068#endif
33069
33070
33071"
33072if test "x$ac_cv_header_sys_ioctl_h" = xyes
33073then :
33074  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
33075
33076fi
33077ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
33078#ifdef HAVE_SYS_TYPES_H
33079#include <sys/types.h>
33080#endif
33081#ifdef HAVE_SYS_TIME_H
33082#include <sys/time.h>
33083#endif
33084#ifdef HAVE_SYS_SELECT_H
33085#include <sys/select.h>
33086#elif defined(HAVE_UNISTD_H)
33087#include <unistd.h>
33088#endif
33089#ifdef HAVE_SYS_SOCKET_H
33090#include <sys/socket.h>
33091#endif
33092#ifdef HAVE_NETINET_IN_H
33093#include <netinet/in.h>
33094#endif
33095#ifdef HAVE_NETINET_IN6_H
33096#include <netinet/in6.h>
33097#endif
33098#ifdef HAVE_SYS_UN_H
33099#include <sys/un.h>
33100#endif
33101
33102
33103"
33104if test "x$ac_cv_header_sys_uio_h" = xyes
33105then :
33106  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
33107
33108fi
33109ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
33110#ifdef HAVE_SYS_TYPES_H
33111#include <sys/types.h>
33112#endif
33113#ifdef HAVE_SYS_TIME_H
33114#include <sys/time.h>
33115#endif
33116#ifdef HAVE_SYS_SELECT_H
33117#include <sys/select.h>
33118#elif defined(HAVE_UNISTD_H)
33119#include <unistd.h>
33120#endif
33121#ifdef HAVE_SYS_SOCKET_H
33122#include <sys/socket.h>
33123#endif
33124#ifdef HAVE_NETINET_IN_H
33125#include <netinet/in.h>
33126#endif
33127#ifdef HAVE_NETINET_IN6_H
33128#include <netinet/in6.h>
33129#endif
33130#ifdef HAVE_SYS_UN_H
33131#include <sys/un.h>
33132#endif
33133
33134
33135"
33136if test "x$ac_cv_header_unistd_h" = xyes
33137then :
33138  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
33139
33140fi
33141ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
33142#ifdef HAVE_SYS_TYPES_H
33143#include <sys/types.h>
33144#endif
33145#ifdef HAVE_SYS_TIME_H
33146#include <sys/time.h>
33147#endif
33148#ifdef HAVE_SYS_SELECT_H
33149#include <sys/select.h>
33150#elif defined(HAVE_UNISTD_H)
33151#include <unistd.h>
33152#endif
33153#ifdef HAVE_SYS_SOCKET_H
33154#include <sys/socket.h>
33155#endif
33156#ifdef HAVE_NETINET_IN_H
33157#include <netinet/in.h>
33158#endif
33159#ifdef HAVE_NETINET_IN6_H
33160#include <netinet/in6.h>
33161#endif
33162#ifdef HAVE_SYS_UN_H
33163#include <sys/un.h>
33164#endif
33165
33166
33167"
33168if test "x$ac_cv_header_stdlib_h" = xyes
33169then :
33170  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
33171
33172fi
33173ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
33174#ifdef HAVE_SYS_TYPES_H
33175#include <sys/types.h>
33176#endif
33177#ifdef HAVE_SYS_TIME_H
33178#include <sys/time.h>
33179#endif
33180#ifdef HAVE_SYS_SELECT_H
33181#include <sys/select.h>
33182#elif defined(HAVE_UNISTD_H)
33183#include <unistd.h>
33184#endif
33185#ifdef HAVE_SYS_SOCKET_H
33186#include <sys/socket.h>
33187#endif
33188#ifdef HAVE_NETINET_IN_H
33189#include <netinet/in.h>
33190#endif
33191#ifdef HAVE_NETINET_IN6_H
33192#include <netinet/in6.h>
33193#endif
33194#ifdef HAVE_SYS_UN_H
33195#include <sys/un.h>
33196#endif
33197
33198
33199"
33200if test "x$ac_cv_header_arpa_inet_h" = xyes
33201then :
33202  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
33203
33204fi
33205ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
33206#ifdef HAVE_SYS_TYPES_H
33207#include <sys/types.h>
33208#endif
33209#ifdef HAVE_SYS_TIME_H
33210#include <sys/time.h>
33211#endif
33212#ifdef HAVE_SYS_SELECT_H
33213#include <sys/select.h>
33214#elif defined(HAVE_UNISTD_H)
33215#include <unistd.h>
33216#endif
33217#ifdef HAVE_SYS_SOCKET_H
33218#include <sys/socket.h>
33219#endif
33220#ifdef HAVE_NETINET_IN_H
33221#include <netinet/in.h>
33222#endif
33223#ifdef HAVE_NETINET_IN6_H
33224#include <netinet/in6.h>
33225#endif
33226#ifdef HAVE_SYS_UN_H
33227#include <sys/un.h>
33228#endif
33229
33230
33231"
33232if test "x$ac_cv_header_net_if_h" = xyes
33233then :
33234  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
33235
33236fi
33237ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
33238#ifdef HAVE_SYS_TYPES_H
33239#include <sys/types.h>
33240#endif
33241#ifdef HAVE_SYS_TIME_H
33242#include <sys/time.h>
33243#endif
33244#ifdef HAVE_SYS_SELECT_H
33245#include <sys/select.h>
33246#elif defined(HAVE_UNISTD_H)
33247#include <unistd.h>
33248#endif
33249#ifdef HAVE_SYS_SOCKET_H
33250#include <sys/socket.h>
33251#endif
33252#ifdef HAVE_NETINET_IN_H
33253#include <netinet/in.h>
33254#endif
33255#ifdef HAVE_NETINET_IN6_H
33256#include <netinet/in6.h>
33257#endif
33258#ifdef HAVE_SYS_UN_H
33259#include <sys/un.h>
33260#endif
33261
33262
33263"
33264if test "x$ac_cv_header_netinet_in_h" = xyes
33265then :
33266  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
33267
33268fi
33269ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
33270#ifdef HAVE_SYS_TYPES_H
33271#include <sys/types.h>
33272#endif
33273#ifdef HAVE_SYS_TIME_H
33274#include <sys/time.h>
33275#endif
33276#ifdef HAVE_SYS_SELECT_H
33277#include <sys/select.h>
33278#elif defined(HAVE_UNISTD_H)
33279#include <unistd.h>
33280#endif
33281#ifdef HAVE_SYS_SOCKET_H
33282#include <sys/socket.h>
33283#endif
33284#ifdef HAVE_NETINET_IN_H
33285#include <netinet/in.h>
33286#endif
33287#ifdef HAVE_NETINET_IN6_H
33288#include <netinet/in6.h>
33289#endif
33290#ifdef HAVE_SYS_UN_H
33291#include <sys/un.h>
33292#endif
33293
33294
33295"
33296if test "x$ac_cv_header_netinet_in6_h" = xyes
33297then :
33298  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
33299
33300fi
33301ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
33302#ifdef HAVE_SYS_TYPES_H
33303#include <sys/types.h>
33304#endif
33305#ifdef HAVE_SYS_TIME_H
33306#include <sys/time.h>
33307#endif
33308#ifdef HAVE_SYS_SELECT_H
33309#include <sys/select.h>
33310#elif defined(HAVE_UNISTD_H)
33311#include <unistd.h>
33312#endif
33313#ifdef HAVE_SYS_SOCKET_H
33314#include <sys/socket.h>
33315#endif
33316#ifdef HAVE_NETINET_IN_H
33317#include <netinet/in.h>
33318#endif
33319#ifdef HAVE_NETINET_IN6_H
33320#include <netinet/in6.h>
33321#endif
33322#ifdef HAVE_SYS_UN_H
33323#include <sys/un.h>
33324#endif
33325
33326
33327"
33328if test "x$ac_cv_header_sys_un_h" = xyes
33329then :
33330  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
33331
33332fi
33333ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
33334#ifdef HAVE_SYS_TYPES_H
33335#include <sys/types.h>
33336#endif
33337#ifdef HAVE_SYS_TIME_H
33338#include <sys/time.h>
33339#endif
33340#ifdef HAVE_SYS_SELECT_H
33341#include <sys/select.h>
33342#elif defined(HAVE_UNISTD_H)
33343#include <unistd.h>
33344#endif
33345#ifdef HAVE_SYS_SOCKET_H
33346#include <sys/socket.h>
33347#endif
33348#ifdef HAVE_NETINET_IN_H
33349#include <netinet/in.h>
33350#endif
33351#ifdef HAVE_NETINET_IN6_H
33352#include <netinet/in6.h>
33353#endif
33354#ifdef HAVE_SYS_UN_H
33355#include <sys/un.h>
33356#endif
33357
33358
33359"
33360if test "x$ac_cv_header_linux_tcp_h" = xyes
33361then :
33362  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
33363
33364fi
33365ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
33366#ifdef HAVE_SYS_TYPES_H
33367#include <sys/types.h>
33368#endif
33369#ifdef HAVE_SYS_TIME_H
33370#include <sys/time.h>
33371#endif
33372#ifdef HAVE_SYS_SELECT_H
33373#include <sys/select.h>
33374#elif defined(HAVE_UNISTD_H)
33375#include <unistd.h>
33376#endif
33377#ifdef HAVE_SYS_SOCKET_H
33378#include <sys/socket.h>
33379#endif
33380#ifdef HAVE_NETINET_IN_H
33381#include <netinet/in.h>
33382#endif
33383#ifdef HAVE_NETINET_IN6_H
33384#include <netinet/in6.h>
33385#endif
33386#ifdef HAVE_SYS_UN_H
33387#include <sys/un.h>
33388#endif
33389
33390
33391"
33392if test "x$ac_cv_header_netinet_tcp_h" = xyes
33393then :
33394  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
33395
33396fi
33397ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
33398#ifdef HAVE_SYS_TYPES_H
33399#include <sys/types.h>
33400#endif
33401#ifdef HAVE_SYS_TIME_H
33402#include <sys/time.h>
33403#endif
33404#ifdef HAVE_SYS_SELECT_H
33405#include <sys/select.h>
33406#elif defined(HAVE_UNISTD_H)
33407#include <unistd.h>
33408#endif
33409#ifdef HAVE_SYS_SOCKET_H
33410#include <sys/socket.h>
33411#endif
33412#ifdef HAVE_NETINET_IN_H
33413#include <netinet/in.h>
33414#endif
33415#ifdef HAVE_NETINET_IN6_H
33416#include <netinet/in6.h>
33417#endif
33418#ifdef HAVE_SYS_UN_H
33419#include <sys/un.h>
33420#endif
33421
33422
33423"
33424if test "x$ac_cv_header_netinet_udp_h" = xyes
33425then :
33426  printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33427
33428fi
33429ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33430#ifdef HAVE_SYS_TYPES_H
33431#include <sys/types.h>
33432#endif
33433#ifdef HAVE_SYS_TIME_H
33434#include <sys/time.h>
33435#endif
33436#ifdef HAVE_SYS_SELECT_H
33437#include <sys/select.h>
33438#elif defined(HAVE_UNISTD_H)
33439#include <unistd.h>
33440#endif
33441#ifdef HAVE_SYS_SOCKET_H
33442#include <sys/socket.h>
33443#endif
33444#ifdef HAVE_NETINET_IN_H
33445#include <netinet/in.h>
33446#endif
33447#ifdef HAVE_NETINET_IN6_H
33448#include <netinet/in6.h>
33449#endif
33450#ifdef HAVE_SYS_UN_H
33451#include <sys/un.h>
33452#endif
33453
33454
33455"
33456if test "x$ac_cv_header_netdb_h" = xyes
33457then :
33458  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33459
33460fi
33461ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33462#ifdef HAVE_SYS_TYPES_H
33463#include <sys/types.h>
33464#endif
33465#ifdef HAVE_SYS_TIME_H
33466#include <sys/time.h>
33467#endif
33468#ifdef HAVE_SYS_SELECT_H
33469#include <sys/select.h>
33470#elif defined(HAVE_UNISTD_H)
33471#include <unistd.h>
33472#endif
33473#ifdef HAVE_SYS_SOCKET_H
33474#include <sys/socket.h>
33475#endif
33476#ifdef HAVE_NETINET_IN_H
33477#include <netinet/in.h>
33478#endif
33479#ifdef HAVE_NETINET_IN6_H
33480#include <netinet/in6.h>
33481#endif
33482#ifdef HAVE_SYS_UN_H
33483#include <sys/un.h>
33484#endif
33485
33486
33487"
33488if test "x$ac_cv_header_sys_sockio_h" = xyes
33489then :
33490  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33491
33492fi
33493ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33494#ifdef HAVE_SYS_TYPES_H
33495#include <sys/types.h>
33496#endif
33497#ifdef HAVE_SYS_TIME_H
33498#include <sys/time.h>
33499#endif
33500#ifdef HAVE_SYS_SELECT_H
33501#include <sys/select.h>
33502#elif defined(HAVE_UNISTD_H)
33503#include <unistd.h>
33504#endif
33505#ifdef HAVE_SYS_SOCKET_H
33506#include <sys/socket.h>
33507#endif
33508#ifdef HAVE_NETINET_IN_H
33509#include <netinet/in.h>
33510#endif
33511#ifdef HAVE_NETINET_IN6_H
33512#include <netinet/in6.h>
33513#endif
33514#ifdef HAVE_SYS_UN_H
33515#include <sys/un.h>
33516#endif
33517
33518
33519"
33520if test "x$ac_cv_header_sys_stat_h" = xyes
33521then :
33522  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33523
33524fi
33525ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33526#ifdef HAVE_SYS_TYPES_H
33527#include <sys/types.h>
33528#endif
33529#ifdef HAVE_SYS_TIME_H
33530#include <sys/time.h>
33531#endif
33532#ifdef HAVE_SYS_SELECT_H
33533#include <sys/select.h>
33534#elif defined(HAVE_UNISTD_H)
33535#include <unistd.h>
33536#endif
33537#ifdef HAVE_SYS_SOCKET_H
33538#include <sys/socket.h>
33539#endif
33540#ifdef HAVE_NETINET_IN_H
33541#include <netinet/in.h>
33542#endif
33543#ifdef HAVE_NETINET_IN6_H
33544#include <netinet/in6.h>
33545#endif
33546#ifdef HAVE_SYS_UN_H
33547#include <sys/un.h>
33548#endif
33549
33550
33551"
33552if test "x$ac_cv_header_sys_param_h" = xyes
33553then :
33554  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33555
33556fi
33557ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33558#ifdef HAVE_SYS_TYPES_H
33559#include <sys/types.h>
33560#endif
33561#ifdef HAVE_SYS_TIME_H
33562#include <sys/time.h>
33563#endif
33564#ifdef HAVE_SYS_SELECT_H
33565#include <sys/select.h>
33566#elif defined(HAVE_UNISTD_H)
33567#include <unistd.h>
33568#endif
33569#ifdef HAVE_SYS_SOCKET_H
33570#include <sys/socket.h>
33571#endif
33572#ifdef HAVE_NETINET_IN_H
33573#include <netinet/in.h>
33574#endif
33575#ifdef HAVE_NETINET_IN6_H
33576#include <netinet/in6.h>
33577#endif
33578#ifdef HAVE_SYS_UN_H
33579#include <sys/un.h>
33580#endif
33581
33582
33583"
33584if test "x$ac_cv_header_termios_h" = xyes
33585then :
33586  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33587
33588fi
33589ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33590#ifdef HAVE_SYS_TYPES_H
33591#include <sys/types.h>
33592#endif
33593#ifdef HAVE_SYS_TIME_H
33594#include <sys/time.h>
33595#endif
33596#ifdef HAVE_SYS_SELECT_H
33597#include <sys/select.h>
33598#elif defined(HAVE_UNISTD_H)
33599#include <unistd.h>
33600#endif
33601#ifdef HAVE_SYS_SOCKET_H
33602#include <sys/socket.h>
33603#endif
33604#ifdef HAVE_NETINET_IN_H
33605#include <netinet/in.h>
33606#endif
33607#ifdef HAVE_NETINET_IN6_H
33608#include <netinet/in6.h>
33609#endif
33610#ifdef HAVE_SYS_UN_H
33611#include <sys/un.h>
33612#endif
33613
33614
33615"
33616if test "x$ac_cv_header_termio_h" = xyes
33617then :
33618  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33619
33620fi
33621ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33622#ifdef HAVE_SYS_TYPES_H
33623#include <sys/types.h>
33624#endif
33625#ifdef HAVE_SYS_TIME_H
33626#include <sys/time.h>
33627#endif
33628#ifdef HAVE_SYS_SELECT_H
33629#include <sys/select.h>
33630#elif defined(HAVE_UNISTD_H)
33631#include <unistd.h>
33632#endif
33633#ifdef HAVE_SYS_SOCKET_H
33634#include <sys/socket.h>
33635#endif
33636#ifdef HAVE_NETINET_IN_H
33637#include <netinet/in.h>
33638#endif
33639#ifdef HAVE_NETINET_IN6_H
33640#include <netinet/in6.h>
33641#endif
33642#ifdef HAVE_SYS_UN_H
33643#include <sys/un.h>
33644#endif
33645
33646
33647"
33648if test "x$ac_cv_header_fcntl_h" = xyes
33649then :
33650  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33651
33652fi
33653ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33654#ifdef HAVE_SYS_TYPES_H
33655#include <sys/types.h>
33656#endif
33657#ifdef HAVE_SYS_TIME_H
33658#include <sys/time.h>
33659#endif
33660#ifdef HAVE_SYS_SELECT_H
33661#include <sys/select.h>
33662#elif defined(HAVE_UNISTD_H)
33663#include <unistd.h>
33664#endif
33665#ifdef HAVE_SYS_SOCKET_H
33666#include <sys/socket.h>
33667#endif
33668#ifdef HAVE_NETINET_IN_H
33669#include <netinet/in.h>
33670#endif
33671#ifdef HAVE_NETINET_IN6_H
33672#include <netinet/in6.h>
33673#endif
33674#ifdef HAVE_SYS_UN_H
33675#include <sys/un.h>
33676#endif
33677
33678
33679"
33680if test "x$ac_cv_header_io_h" = xyes
33681then :
33682  printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33683
33684fi
33685ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33686#ifdef HAVE_SYS_TYPES_H
33687#include <sys/types.h>
33688#endif
33689#ifdef HAVE_SYS_TIME_H
33690#include <sys/time.h>
33691#endif
33692#ifdef HAVE_SYS_SELECT_H
33693#include <sys/select.h>
33694#elif defined(HAVE_UNISTD_H)
33695#include <unistd.h>
33696#endif
33697#ifdef HAVE_SYS_SOCKET_H
33698#include <sys/socket.h>
33699#endif
33700#ifdef HAVE_NETINET_IN_H
33701#include <netinet/in.h>
33702#endif
33703#ifdef HAVE_NETINET_IN6_H
33704#include <netinet/in6.h>
33705#endif
33706#ifdef HAVE_SYS_UN_H
33707#include <sys/un.h>
33708#endif
33709
33710
33711"
33712if test "x$ac_cv_header_pwd_h" = xyes
33713then :
33714  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33715
33716fi
33717ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33718#ifdef HAVE_SYS_TYPES_H
33719#include <sys/types.h>
33720#endif
33721#ifdef HAVE_SYS_TIME_H
33722#include <sys/time.h>
33723#endif
33724#ifdef HAVE_SYS_SELECT_H
33725#include <sys/select.h>
33726#elif defined(HAVE_UNISTD_H)
33727#include <unistd.h>
33728#endif
33729#ifdef HAVE_SYS_SOCKET_H
33730#include <sys/socket.h>
33731#endif
33732#ifdef HAVE_NETINET_IN_H
33733#include <netinet/in.h>
33734#endif
33735#ifdef HAVE_NETINET_IN6_H
33736#include <netinet/in6.h>
33737#endif
33738#ifdef HAVE_SYS_UN_H
33739#include <sys/un.h>
33740#endif
33741
33742
33743"
33744if test "x$ac_cv_header_utime_h" = xyes
33745then :
33746  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33747
33748fi
33749ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33750#ifdef HAVE_SYS_TYPES_H
33751#include <sys/types.h>
33752#endif
33753#ifdef HAVE_SYS_TIME_H
33754#include <sys/time.h>
33755#endif
33756#ifdef HAVE_SYS_SELECT_H
33757#include <sys/select.h>
33758#elif defined(HAVE_UNISTD_H)
33759#include <unistd.h>
33760#endif
33761#ifdef HAVE_SYS_SOCKET_H
33762#include <sys/socket.h>
33763#endif
33764#ifdef HAVE_NETINET_IN_H
33765#include <netinet/in.h>
33766#endif
33767#ifdef HAVE_NETINET_IN6_H
33768#include <netinet/in6.h>
33769#endif
33770#ifdef HAVE_SYS_UN_H
33771#include <sys/un.h>
33772#endif
33773
33774
33775"
33776if test "x$ac_cv_header_sys_utime_h" = xyes
33777then :
33778  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33779
33780fi
33781ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33782#ifdef HAVE_SYS_TYPES_H
33783#include <sys/types.h>
33784#endif
33785#ifdef HAVE_SYS_TIME_H
33786#include <sys/time.h>
33787#endif
33788#ifdef HAVE_SYS_SELECT_H
33789#include <sys/select.h>
33790#elif defined(HAVE_UNISTD_H)
33791#include <unistd.h>
33792#endif
33793#ifdef HAVE_SYS_SOCKET_H
33794#include <sys/socket.h>
33795#endif
33796#ifdef HAVE_NETINET_IN_H
33797#include <netinet/in.h>
33798#endif
33799#ifdef HAVE_NETINET_IN6_H
33800#include <netinet/in6.h>
33801#endif
33802#ifdef HAVE_SYS_UN_H
33803#include <sys/un.h>
33804#endif
33805
33806
33807"
33808if test "x$ac_cv_header_sys_poll_h" = xyes
33809then :
33810  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33811
33812fi
33813ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33814#ifdef HAVE_SYS_TYPES_H
33815#include <sys/types.h>
33816#endif
33817#ifdef HAVE_SYS_TIME_H
33818#include <sys/time.h>
33819#endif
33820#ifdef HAVE_SYS_SELECT_H
33821#include <sys/select.h>
33822#elif defined(HAVE_UNISTD_H)
33823#include <unistd.h>
33824#endif
33825#ifdef HAVE_SYS_SOCKET_H
33826#include <sys/socket.h>
33827#endif
33828#ifdef HAVE_NETINET_IN_H
33829#include <netinet/in.h>
33830#endif
33831#ifdef HAVE_NETINET_IN6_H
33832#include <netinet/in6.h>
33833#endif
33834#ifdef HAVE_SYS_UN_H
33835#include <sys/un.h>
33836#endif
33837
33838
33839"
33840if test "x$ac_cv_header_poll_h" = xyes
33841then :
33842  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33843
33844fi
33845ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33846#ifdef HAVE_SYS_TYPES_H
33847#include <sys/types.h>
33848#endif
33849#ifdef HAVE_SYS_TIME_H
33850#include <sys/time.h>
33851#endif
33852#ifdef HAVE_SYS_SELECT_H
33853#include <sys/select.h>
33854#elif defined(HAVE_UNISTD_H)
33855#include <unistd.h>
33856#endif
33857#ifdef HAVE_SYS_SOCKET_H
33858#include <sys/socket.h>
33859#endif
33860#ifdef HAVE_NETINET_IN_H
33861#include <netinet/in.h>
33862#endif
33863#ifdef HAVE_NETINET_IN6_H
33864#include <netinet/in6.h>
33865#endif
33866#ifdef HAVE_SYS_UN_H
33867#include <sys/un.h>
33868#endif
33869
33870
33871"
33872if test "x$ac_cv_header_socket_h" = xyes
33873then :
33874  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33875
33876fi
33877ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33878#ifdef HAVE_SYS_TYPES_H
33879#include <sys/types.h>
33880#endif
33881#ifdef HAVE_SYS_TIME_H
33882#include <sys/time.h>
33883#endif
33884#ifdef HAVE_SYS_SELECT_H
33885#include <sys/select.h>
33886#elif defined(HAVE_UNISTD_H)
33887#include <unistd.h>
33888#endif
33889#ifdef HAVE_SYS_SOCKET_H
33890#include <sys/socket.h>
33891#endif
33892#ifdef HAVE_NETINET_IN_H
33893#include <netinet/in.h>
33894#endif
33895#ifdef HAVE_NETINET_IN6_H
33896#include <netinet/in6.h>
33897#endif
33898#ifdef HAVE_SYS_UN_H
33899#include <sys/un.h>
33900#endif
33901
33902
33903"
33904if test "x$ac_cv_header_sys_resource_h" = xyes
33905then :
33906  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33907
33908fi
33909ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33910#ifdef HAVE_SYS_TYPES_H
33911#include <sys/types.h>
33912#endif
33913#ifdef HAVE_SYS_TIME_H
33914#include <sys/time.h>
33915#endif
33916#ifdef HAVE_SYS_SELECT_H
33917#include <sys/select.h>
33918#elif defined(HAVE_UNISTD_H)
33919#include <unistd.h>
33920#endif
33921#ifdef HAVE_SYS_SOCKET_H
33922#include <sys/socket.h>
33923#endif
33924#ifdef HAVE_NETINET_IN_H
33925#include <netinet/in.h>
33926#endif
33927#ifdef HAVE_NETINET_IN6_H
33928#include <netinet/in6.h>
33929#endif
33930#ifdef HAVE_SYS_UN_H
33931#include <sys/un.h>
33932#endif
33933
33934
33935"
33936if test "x$ac_cv_header_libgen_h" = xyes
33937then :
33938  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33939
33940fi
33941ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33942#ifdef HAVE_SYS_TYPES_H
33943#include <sys/types.h>
33944#endif
33945#ifdef HAVE_SYS_TIME_H
33946#include <sys/time.h>
33947#endif
33948#ifdef HAVE_SYS_SELECT_H
33949#include <sys/select.h>
33950#elif defined(HAVE_UNISTD_H)
33951#include <unistd.h>
33952#endif
33953#ifdef HAVE_SYS_SOCKET_H
33954#include <sys/socket.h>
33955#endif
33956#ifdef HAVE_NETINET_IN_H
33957#include <netinet/in.h>
33958#endif
33959#ifdef HAVE_NETINET_IN6_H
33960#include <netinet/in6.h>
33961#endif
33962#ifdef HAVE_SYS_UN_H
33963#include <sys/un.h>
33964#endif
33965
33966
33967"
33968if test "x$ac_cv_header_locale_h" = xyes
33969then :
33970  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33971
33972fi
33973ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33974#ifdef HAVE_SYS_TYPES_H
33975#include <sys/types.h>
33976#endif
33977#ifdef HAVE_SYS_TIME_H
33978#include <sys/time.h>
33979#endif
33980#ifdef HAVE_SYS_SELECT_H
33981#include <sys/select.h>
33982#elif defined(HAVE_UNISTD_H)
33983#include <unistd.h>
33984#endif
33985#ifdef HAVE_SYS_SOCKET_H
33986#include <sys/socket.h>
33987#endif
33988#ifdef HAVE_NETINET_IN_H
33989#include <netinet/in.h>
33990#endif
33991#ifdef HAVE_NETINET_IN6_H
33992#include <netinet/in6.h>
33993#endif
33994#ifdef HAVE_SYS_UN_H
33995#include <sys/un.h>
33996#endif
33997
33998
33999"
34000if test "x$ac_cv_header_stdbool_h" = xyes
34001then :
34002  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
34003
34004fi
34005ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
34006#ifdef HAVE_SYS_TYPES_H
34007#include <sys/types.h>
34008#endif
34009#ifdef HAVE_SYS_TIME_H
34010#include <sys/time.h>
34011#endif
34012#ifdef HAVE_SYS_SELECT_H
34013#include <sys/select.h>
34014#elif defined(HAVE_UNISTD_H)
34015#include <unistd.h>
34016#endif
34017#ifdef HAVE_SYS_SOCKET_H
34018#include <sys/socket.h>
34019#endif
34020#ifdef HAVE_NETINET_IN_H
34021#include <netinet/in.h>
34022#endif
34023#ifdef HAVE_NETINET_IN6_H
34024#include <netinet/in6.h>
34025#endif
34026#ifdef HAVE_SYS_UN_H
34027#include <sys/un.h>
34028#endif
34029
34030
34031"
34032if test "x$ac_cv_header_arpa_tftp_h" = xyes
34033then :
34034  printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
34035
34036fi
34037ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
34038#ifdef HAVE_SYS_TYPES_H
34039#include <sys/types.h>
34040#endif
34041#ifdef HAVE_SYS_TIME_H
34042#include <sys/time.h>
34043#endif
34044#ifdef HAVE_SYS_SELECT_H
34045#include <sys/select.h>
34046#elif defined(HAVE_UNISTD_H)
34047#include <unistd.h>
34048#endif
34049#ifdef HAVE_SYS_SOCKET_H
34050#include <sys/socket.h>
34051#endif
34052#ifdef HAVE_NETINET_IN_H
34053#include <netinet/in.h>
34054#endif
34055#ifdef HAVE_NETINET_IN6_H
34056#include <netinet/in6.h>
34057#endif
34058#ifdef HAVE_SYS_UN_H
34059#include <sys/un.h>
34060#endif
34061
34062
34063"
34064if test "x$ac_cv_header_sys_filio_h" = xyes
34065then :
34066  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
34067
34068fi
34069ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
34070#ifdef HAVE_SYS_TYPES_H
34071#include <sys/types.h>
34072#endif
34073#ifdef HAVE_SYS_TIME_H
34074#include <sys/time.h>
34075#endif
34076#ifdef HAVE_SYS_SELECT_H
34077#include <sys/select.h>
34078#elif defined(HAVE_UNISTD_H)
34079#include <unistd.h>
34080#endif
34081#ifdef HAVE_SYS_SOCKET_H
34082#include <sys/socket.h>
34083#endif
34084#ifdef HAVE_NETINET_IN_H
34085#include <netinet/in.h>
34086#endif
34087#ifdef HAVE_NETINET_IN6_H
34088#include <netinet/in6.h>
34089#endif
34090#ifdef HAVE_SYS_UN_H
34091#include <sys/un.h>
34092#endif
34093
34094
34095"
34096if test "x$ac_cv_header_sys_wait_h" = xyes
34097then :
34098  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
34099
34100fi
34101ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
34102#ifdef HAVE_SYS_TYPES_H
34103#include <sys/types.h>
34104#endif
34105#ifdef HAVE_SYS_TIME_H
34106#include <sys/time.h>
34107#endif
34108#ifdef HAVE_SYS_SELECT_H
34109#include <sys/select.h>
34110#elif defined(HAVE_UNISTD_H)
34111#include <unistd.h>
34112#endif
34113#ifdef HAVE_SYS_SOCKET_H
34114#include <sys/socket.h>
34115#endif
34116#ifdef HAVE_NETINET_IN_H
34117#include <netinet/in.h>
34118#endif
34119#ifdef HAVE_NETINET_IN6_H
34120#include <netinet/in6.h>
34121#endif
34122#ifdef HAVE_SYS_UN_H
34123#include <sys/un.h>
34124#endif
34125
34126
34127"
34128if test "x$ac_cv_header_setjmp_h" = xyes
34129then :
34130  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
34131
34132fi
34133
34134
34135
34136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34137printf %s "checking for an ANSI C-conforming const... " >&6; }
34138if test ${ac_cv_c_const+y}
34139then :
34140  printf %s "(cached) " >&6
34141else $as_nop
34142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34143/* end confdefs.h.  */
34144
34145int main (void)
34146{
34147
34148#ifndef __cplusplus
34149  /* Ultrix mips cc rejects this sort of thing.  */
34150  typedef int charset[2];
34151  const charset cs = { 0, 0 };
34152  /* SunOS 4.1.1 cc rejects this.  */
34153  char const *const *pcpcc;
34154  char **ppc;
34155  /* NEC SVR4.0.2 mips cc rejects this.  */
34156  struct point {int x, y;};
34157  static struct point const zero = {0,0};
34158  /* IBM XL C 1.02.0.0 rejects this.
34159     It does not let you subtract one const X* pointer from another in
34160     an arm of an if-expression whose if-part is not a constant
34161     expression */
34162  const char *g = "string";
34163  pcpcc = &g + (g ? g-g : 0);
34164  /* HPUX 7.0 cc rejects these. */
34165  ++pcpcc;
34166  ppc = (char**) pcpcc;
34167  pcpcc = (char const *const *) ppc;
34168  { /* SCO 3.2v4 cc rejects this sort of thing.  */
34169    char tx;
34170    char *t = &tx;
34171    char const *s = 0 ? (char *) 0 : (char const *) 0;
34172
34173    *t++ = 0;
34174    if (s) return 0;
34175  }
34176  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34177    int x[] = {25, 17};
34178    const int *foo = &x[0];
34179    ++foo;
34180  }
34181  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34182    typedef const int *iptr;
34183    iptr p = 0;
34184    ++p;
34185  }
34186  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
34187       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34188    struct s { int j; const int *ap[3]; } bx;
34189    struct s *b = &bx; b->j = 5;
34190  }
34191  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34192    const int foo = 10;
34193    if (!foo) return 0;
34194  }
34195  return !cs[0] && !zero.x;
34196#endif
34197
34198 ;
34199 return 0;
34200}
34201_ACEOF
34202if ac_fn_c_try_compile "$LINENO"
34203then :
34204  ac_cv_c_const=yes
34205else $as_nop
34206  ac_cv_c_const=no
34207fi
34208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34209fi
34210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34211printf "%s\n" "$ac_cv_c_const" >&6; }
34212if test $ac_cv_c_const = no; then
34213
34214printf "%s\n" "#define const /**/" >>confdefs.h
34215
34216fi
34217
34218
34219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
34220printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
34221if test ${curl_cv_variadic_macros_c99+y}
34222then :
34223  printf %s "(cached) " >&6
34224else $as_nop
34225
34226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34227/* end confdefs.h.  */
34228
34229
34230#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
34231#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
34232        int fun3(int arg1, int arg2, int arg3);
34233        int fun2(int arg1, int arg2);
34234        int fun3(int arg1, int arg2, int arg3)
34235        { return arg1 + arg2 + arg3; }
34236        int fun2(int arg1, int arg2)
34237        { return arg1 + arg2; }
34238
34239int main (void)
34240{
34241
34242        int res3 = c99_vmacro3(1, 2, 3);
34243        int res2 = c99_vmacro2(1, 2);
34244
34245 ;
34246 return 0;
34247}
34248
34249_ACEOF
34250if ac_fn_c_try_compile "$LINENO"
34251then :
34252
34253      curl_cv_variadic_macros_c99="yes"
34254
34255else $as_nop
34256
34257      curl_cv_variadic_macros_c99="no"
34258
34259fi
34260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34261
34262fi
34263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
34264printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
34265  case "$curl_cv_variadic_macros_c99" in
34266    yes)
34267
34268printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
34269
34270      ;;
34271  esac
34272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
34273printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
34274if test ${curl_cv_variadic_macros_gcc+y}
34275then :
34276  printf %s "(cached) " >&6
34277else $as_nop
34278
34279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34280/* end confdefs.h.  */
34281
34282
34283#define gcc_vmacro3(first, args...) fun3(first, args)
34284#define gcc_vmacro2(first, args...) fun2(first, args)
34285        int fun3(int arg1, int arg2, int arg3);
34286        int fun2(int arg1, int arg2);
34287        int fun3(int arg1, int arg2, int arg3)
34288        { return arg1 + arg2 + arg3; }
34289        int fun2(int arg1, int arg2)
34290        { return arg1 + arg2; }
34291
34292int main (void)
34293{
34294
34295        int res3 = gcc_vmacro3(1, 2, 3);
34296        int res2 = gcc_vmacro2(1, 2);
34297
34298 ;
34299 return 0;
34300}
34301
34302_ACEOF
34303if ac_fn_c_try_compile "$LINENO"
34304then :
34305
34306      curl_cv_variadic_macros_gcc="yes"
34307
34308else $as_nop
34309
34310      curl_cv_variadic_macros_gcc="no"
34311
34312fi
34313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34314
34315fi
34316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
34317printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
34318  case "$curl_cv_variadic_macros_gcc" in
34319    yes)
34320
34321printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
34322
34323      ;;
34324  esac
34325
34326ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
34327if test "x$ac_cv_type_size_t" = xyes
34328then :
34329
34330else $as_nop
34331
34332printf "%s\n" "#define size_t unsigned int" >>confdefs.h
34333
34334fi
34335
34336
34337
34338    ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34339if test "x$ac_cv_header_sys_types_h" = xyes
34340then :
34341  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34342
34343fi
34344ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
34345if test "x$ac_cv_header_sys_time_h" = xyes
34346then :
34347  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
34348
34349fi
34350ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34351if test "x$ac_cv_header_sys_socket_h" = xyes
34352then :
34353  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34354
34355fi
34356
34357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
34358printf %s "checking for struct timeval... " >&6; }
34359if test ${curl_cv_struct_timeval+y}
34360then :
34361  printf %s "(cached) " >&6
34362else $as_nop
34363
34364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365/* end confdefs.h.  */
34366
34367
34368#undef inline
34369#ifdef HAVE_WINDOWS_H
34370#ifndef WIN32_LEAN_AND_MEAN
34371#define WIN32_LEAN_AND_MEAN
34372#endif
34373#include <windows.h>
34374#ifdef HAVE_WINSOCK2_H
34375#include <winsock2.h>
34376#endif
34377#endif
34378#ifdef HAVE_SYS_TYPES_H
34379#include <sys/types.h>
34380#endif
34381#ifdef HAVE_SYS_TIME_H
34382#include <sys/time.h>
34383#endif
34384#include <time.h>
34385#ifdef HAVE_SYS_SOCKET_H
34386#include <sys/socket.h>
34387#endif
34388
34389int main (void)
34390{
34391
34392        struct timeval ts;
34393        ts.tv_sec  = 0;
34394        ts.tv_usec = 0;
34395
34396 ;
34397 return 0;
34398}
34399
34400_ACEOF
34401if ac_fn_c_try_compile "$LINENO"
34402then :
34403
34404      curl_cv_struct_timeval="yes"
34405
34406else $as_nop
34407
34408      curl_cv_struct_timeval="no"
34409
34410fi
34411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34412
34413fi
34414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34415printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34416  case "$curl_cv_struct_timeval" in
34417    yes)
34418
34419printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34420
34421      ;;
34422  esac
34423
34424
34425
34426    if test "x$cross_compiling" != xyes; then
34427
34428            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34429printf %s "checking run-time libs availability... " >&6; }
34430
34431   case $host_os in
34432     darwin*)
34433      if test "$cross_compiling" = yes
34434then :
34435  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34436printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34437as_fn_error $? "cannot run test program while cross compiling
34438See \`config.log' for more details" "$LINENO" 5; }
34439else $as_nop
34440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34441/* end confdefs.h.  */
34442
34443int main()
34444{
34445  return 0;
34446}
34447
34448_ACEOF
34449if ac_fn_c_try_run "$LINENO"
34450then :
34451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34452printf "%s\n" "fine" >&6; }
34453else $as_nop
34454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34455printf "%s\n" "failed" >&6; }
34456    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34457
34458fi
34459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34460  conftest.$ac_objext conftest.beam conftest.$ac_ext
34461fi
34462
34463     ;;
34464     *)
34465      old=$LD_LIBRARY_PATH
34466      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34467      export LD_LIBRARY_PATH
34468      if test "$cross_compiling" = yes
34469then :
34470  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34471printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34472as_fn_error $? "cannot run test program while cross compiling
34473See \`config.log' for more details" "$LINENO" 5; }
34474else $as_nop
34475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476/* end confdefs.h.  */
34477
34478int main()
34479{
34480  return 0;
34481}
34482
34483_ACEOF
34484if ac_fn_c_try_run "$LINENO"
34485then :
34486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34487printf "%s\n" "fine" >&6; }
34488else $as_nop
34489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34490printf "%s\n" "failed" >&6; }
34491    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34492
34493fi
34494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34495  conftest.$ac_objext conftest.beam conftest.$ac_ext
34496fi
34497
34498      LD_LIBRARY_PATH=$old # restore
34499     ;;
34500   esac
34501
34502
34503      fi
34504
34505
34506
34507
34508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34509printf %s "checking size of size_t... " >&6; }
34510  r=0
34511    for typesize in 8 4 2 16 1; do
34512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34513/* end confdefs.h.  */
34514
34515#include <sys/types.h>
34516
34517
34518int main (void)
34519{
34520switch(0) {
34521       case 0:
34522       case (sizeof(size_t) == $typesize):;
34523     }
34524
34525 ;
34526 return 0;
34527}
34528_ACEOF
34529if ac_fn_c_try_compile "$LINENO"
34530then :
34531
34532       r=$typesize
34533else $as_nop
34534
34535       r=0
34536fi
34537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34538        if test $r -gt 0; then
34539      break;
34540    fi
34541  done
34542  if test $r -eq 0; then
34543    as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34544  fi
34545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34546printf "%s\n" "$r" >&6; }
34547    tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34548  eval "$tname=$r"
34549
34550
34551printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34552
34553
34554
34555
34556
34557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34558printf %s "checking size of long... " >&6; }
34559  r=0
34560    for typesize in 8 4 2 16 1; do
34561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34562/* end confdefs.h.  */
34563
34564#include <sys/types.h>
34565
34566
34567int main (void)
34568{
34569switch(0) {
34570       case 0:
34571       case (sizeof(long) == $typesize):;
34572     }
34573
34574 ;
34575 return 0;
34576}
34577_ACEOF
34578if ac_fn_c_try_compile "$LINENO"
34579then :
34580
34581       r=$typesize
34582else $as_nop
34583
34584       r=0
34585fi
34586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34587        if test $r -gt 0; then
34588      break;
34589    fi
34590  done
34591  if test $r -eq 0; then
34592    as_fn_error $? "Failed to find size of long" "$LINENO" 5
34593  fi
34594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34595printf "%s\n" "$r" >&6; }
34596    tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34597  eval "$tname=$r"
34598
34599
34600printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34601
34602
34603
34604
34605
34606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34607printf %s "checking size of int... " >&6; }
34608  r=0
34609    for typesize in 8 4 2 16 1; do
34610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34611/* end confdefs.h.  */
34612
34613#include <sys/types.h>
34614
34615
34616int main (void)
34617{
34618switch(0) {
34619       case 0:
34620       case (sizeof(int) == $typesize):;
34621     }
34622
34623 ;
34624 return 0;
34625}
34626_ACEOF
34627if ac_fn_c_try_compile "$LINENO"
34628then :
34629
34630       r=$typesize
34631else $as_nop
34632
34633       r=0
34634fi
34635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34636        if test $r -gt 0; then
34637      break;
34638    fi
34639  done
34640  if test $r -eq 0; then
34641    as_fn_error $? "Failed to find size of int" "$LINENO" 5
34642  fi
34643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34644printf "%s\n" "$r" >&6; }
34645    tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34646  eval "$tname=$r"
34647
34648
34649printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34650
34651
34652
34653
34654
34655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34656printf %s "checking size of time_t... " >&6; }
34657  r=0
34658    for typesize in 8 4 2 16 1; do
34659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34660/* end confdefs.h.  */
34661
34662#include <sys/types.h>
34663
34664
34665int main (void)
34666{
34667switch(0) {
34668       case 0:
34669       case (sizeof(time_t) == $typesize):;
34670     }
34671
34672 ;
34673 return 0;
34674}
34675_ACEOF
34676if ac_fn_c_try_compile "$LINENO"
34677then :
34678
34679       r=$typesize
34680else $as_nop
34681
34682       r=0
34683fi
34684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34685        if test $r -gt 0; then
34686      break;
34687    fi
34688  done
34689  if test $r -eq 0; then
34690    as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34691  fi
34692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34693printf "%s\n" "$r" >&6; }
34694    tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34695  eval "$tname=$r"
34696
34697
34698printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34699
34700
34701
34702
34703
34704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34705printf %s "checking size of off_t... " >&6; }
34706  r=0
34707    for typesize in 8 4 2 16 1; do
34708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34709/* end confdefs.h.  */
34710
34711#include <sys/types.h>
34712
34713
34714int main (void)
34715{
34716switch(0) {
34717       case 0:
34718       case (sizeof(off_t) == $typesize):;
34719     }
34720
34721 ;
34722 return 0;
34723}
34724_ACEOF
34725if ac_fn_c_try_compile "$LINENO"
34726then :
34727
34728       r=$typesize
34729else $as_nop
34730
34731       r=0
34732fi
34733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34734        if test $r -gt 0; then
34735      break;
34736    fi
34737  done
34738  if test $r -eq 0; then
34739    as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34740  fi
34741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34742printf "%s\n" "$r" >&6; }
34743    tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34744  eval "$tname=$r"
34745
34746
34747printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34748
34749
34750
34751
34752o=$CPPFLAGS
34753CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34754
34755
34756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34757printf %s "checking size of curl_off_t... " >&6; }
34758  r=0
34759    for typesize in 8 4 2 16 1; do
34760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34761/* end confdefs.h.  */
34762
34763#include <sys/types.h>
34764
34765#include <curl/system.h>
34766
34767
34768int main (void)
34769{
34770switch(0) {
34771       case 0:
34772       case (sizeof(curl_off_t) == $typesize):;
34773     }
34774
34775 ;
34776 return 0;
34777}
34778_ACEOF
34779if ac_fn_c_try_compile "$LINENO"
34780then :
34781
34782       r=$typesize
34783else $as_nop
34784
34785       r=0
34786fi
34787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34788        if test $r -gt 0; then
34789      break;
34790    fi
34791  done
34792  if test $r -eq 0; then
34793    as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34794  fi
34795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34796printf "%s\n" "$r" >&6; }
34797    tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34798  eval "$tname=$r"
34799
34800
34801printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34802
34803
34804
34805CPPFLAGS=$o
34806
34807ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34808if test "x$ac_cv_type_long_long" = xyes
34809then :
34810
34811printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34812
34813   longlong="yes"
34814
34815fi
34816
34817
34818if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34819  as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
34820fi
34821
34822# check for ssize_t
34823ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34824if test "x$ac_cv_type_ssize_t" = xyes
34825then :
34826
34827else $as_nop
34828
34829printf "%s\n" "#define ssize_t int" >>confdefs.h
34830
34831fi
34832
34833
34834# check for bool type
34835ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34836#ifdef HAVE_SYS_TYPES_H
34837#include <sys/types.h>
34838#endif
34839#ifdef HAVE_STDBOOL_H
34840#include <stdbool.h>
34841#endif
34842
34843"
34844if test "x$ac_cv_type_bool" = xyes
34845then :
34846
34847
34848printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34849
34850
34851fi
34852
34853
34854# check for sa_family_t
34855ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34856#ifdef HAVE_SYS_SOCKET_H
34857#include <sys/socket.h>
34858#endif
34859
34860"
34861if test "x$ac_cv_type_sa_family_t" = xyes
34862then :
34863
34864printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34865
34866else $as_nop
34867
34868   # The windows name?
34869   ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34870#ifdef HAVE_SYS_SOCKET_H
34871#include <sys/socket.h>
34872#endif
34873
34874"
34875if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34876then :
34877
34878printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34879
34880else $as_nop
34881
34882printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34883
34884fi
34885
34886
34887fi
34888
34889
34890# check for suseconds_t
34891ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34892#ifdef HAVE_SYS_TYPES_H
34893#include <sys/types.h>
34894#endif
34895#ifdef HAVE_SYS_TIME_H
34896#include <sys/time.h>
34897#endif
34898
34899"
34900if test "x$ac_cv_type_suseconds_t" = xyes
34901then :
34902
34903
34904printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34905
34906
34907fi
34908
34909
34910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34911printf %s "checking if time_t is unsigned... " >&6; }
34912
34913   case $host_os in
34914     darwin*)
34915      if test "$cross_compiling" = yes
34916then :
34917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34918printf "%s\n" "no" >&6; }
34919
34920else $as_nop
34921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34922/* end confdefs.h.  */
34923
34924  #include <time.h>
34925  #include <limits.h>
34926  time_t t = -1;
34927  return (t > 0);
34928
34929_ACEOF
34930if ac_fn_c_try_run "$LINENO"
34931then :
34932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34933printf "%s\n" "yes" >&6; }
34934
34935printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34936
34937
34938else $as_nop
34939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34940printf "%s\n" "no" >&6; }
34941
34942fi
34943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34944  conftest.$ac_objext conftest.beam conftest.$ac_ext
34945fi
34946
34947     ;;
34948     *)
34949      old=$LD_LIBRARY_PATH
34950      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34951      export LD_LIBRARY_PATH
34952      if test "$cross_compiling" = yes
34953then :
34954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34955printf "%s\n" "no" >&6; }
34956
34957else $as_nop
34958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34959/* end confdefs.h.  */
34960
34961  #include <time.h>
34962  #include <limits.h>
34963  time_t t = -1;
34964  return (t > 0);
34965
34966_ACEOF
34967if ac_fn_c_try_run "$LINENO"
34968then :
34969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34970printf "%s\n" "yes" >&6; }
34971
34972printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34973
34974
34975else $as_nop
34976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34977printf "%s\n" "no" >&6; }
34978
34979fi
34980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34981  conftest.$ac_objext conftest.beam conftest.$ac_ext
34982fi
34983
34984      LD_LIBRARY_PATH=$old # restore
34985     ;;
34986   esac
34987
34988
34989
34990curl_includes_poll="\
34991/* includes start */
34992#ifdef HAVE_SYS_TYPES_H
34993#  include <sys/types.h>
34994#endif
34995#ifdef HAVE_POLL_H
34996#  include <poll.h>
34997#endif
34998#ifdef HAVE_SYS_POLL_H
34999#  include <sys/poll.h>
35000#endif
35001/* includes end */"
35002  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
35003"
35004if test "x$ac_cv_header_sys_types_h" = xyes
35005then :
35006  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35007
35008fi
35009ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
35010"
35011if test "x$ac_cv_header_poll_h" = xyes
35012then :
35013  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
35014
35015fi
35016ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
35017"
35018if test "x$ac_cv_header_sys_poll_h" = xyes
35019then :
35020  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
35021
35022fi
35023
35024
35025
35026    #
35027  tst_poll_events_macro_defined="unknown"
35028  #
35029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35030/* end confdefs.h.  */
35031
35032
35033      $curl_includes_poll
35034
35035int main (void)
35036{
35037
35038#if defined(events) || defined(revents)
35039      return 0;
35040#else
35041      force compilation error
35042#endif
35043
35044 ;
35045 return 0;
35046}
35047
35048_ACEOF
35049if ac_fn_c_try_compile "$LINENO"
35050then :
35051
35052    tst_poll_events_macro_defined="yes"
35053
35054else $as_nop
35055
35056    tst_poll_events_macro_defined="no"
35057
35058fi
35059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35060  #
35061  if test "$tst_poll_events_macro_defined" = "yes"; then
35062    if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
35063
35064cat >>confdefs.h <<_EOF
35065#define CURL_PULL_SYS_POLL_H 1
35066_EOF
35067
35068    fi
35069  fi
35070  #
35071
35072
35073
35074  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
35075#undef inline
35076#ifdef HAVE_WINDOWS_H
35077#ifndef WIN32_LEAN_AND_MEAN
35078#define WIN32_LEAN_AND_MEAN
35079#endif
35080#include <windows.h>
35081#ifdef HAVE_WINSOCK2_H
35082#include <winsock2.h>
35083#endif
35084#else
35085#ifdef HAVE_SYS_TYPES_H
35086#include <sys/types.h>
35087#endif
35088#ifdef HAVE_SYS_SOCKET_H
35089#include <sys/socket.h>
35090#endif
35091#ifdef HAVE_NETINET_IN_H
35092#include <netinet/in.h>
35093#endif
35094#ifdef HAVE_ARPA_INET_H
35095#include <arpa/inet.h>
35096#endif
35097#endif
35098
35099"
35100if test "x$ac_cv_type_in_addr_t" = xyes
35101then :
35102
35103else $as_nop
35104
35105        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
35106printf %s "checking for in_addr_t equivalent... " >&6; }
35107if test ${curl_cv_in_addr_t_equiv+y}
35108then :
35109  printf %s "(cached) " >&6
35110else $as_nop
35111
35112      curl_cv_in_addr_t_equiv="unknown"
35113      for t in "unsigned long" int size_t unsigned long; do
35114        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
35115          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35116/* end confdefs.h.  */
35117
35118
35119#undef inline
35120#ifdef HAVE_WINDOWS_H
35121#ifndef WIN32_LEAN_AND_MEAN
35122#define WIN32_LEAN_AND_MEAN
35123#endif
35124#include <windows.h>
35125#ifdef HAVE_WINSOCK2_H
35126#include <winsock2.h>
35127#endif
35128#else
35129#ifdef HAVE_SYS_TYPES_H
35130#include <sys/types.h>
35131#endif
35132#ifdef HAVE_SYS_SOCKET_H
35133#include <sys/socket.h>
35134#endif
35135#ifdef HAVE_NETINET_IN_H
35136#include <netinet/in.h>
35137#endif
35138#ifdef HAVE_ARPA_INET_H
35139#include <arpa/inet.h>
35140#endif
35141#endif
35142
35143int main (void)
35144{
35145
35146              $t data = inet_addr ("1.2.3.4");
35147
35148 ;
35149 return 0;
35150}
35151
35152_ACEOF
35153if ac_fn_c_try_link "$LINENO"
35154then :
35155
35156            curl_cv_in_addr_t_equiv="$t"
35157
35158fi
35159rm -f core conftest.err conftest.$ac_objext conftest.beam \
35160    conftest$ac_exeext conftest.$ac_ext
35161        fi
35162      done
35163
35164fi
35165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
35166printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
35167    case "$curl_cv_in_addr_t_equiv" in
35168      unknown)
35169        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
35170        ;;
35171      *)
35172
35173printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
35174
35175        ;;
35176    esac
35177
35178fi
35179
35180
35181
35182
35183   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35184#undef inline
35185#ifdef HAVE_WINDOWS_H
35186#ifndef WIN32_LEAN_AND_MEAN
35187#define WIN32_LEAN_AND_MEAN
35188#endif
35189#include <windows.h>
35190#ifdef HAVE_WINSOCK2_H
35191#include <winsock2.h>
35192#endif
35193#else
35194#ifdef HAVE_SYS_TYPES_H
35195#include <sys/types.h>
35196#endif
35197#ifdef HAVE_SYS_SOCKET_H
35198#include <sys/socket.h>
35199#endif
35200#ifdef HAVE_NETINET_IN_H
35201#include <netinet/in.h>
35202#endif
35203#ifdef HAVE_ARPA_INET_H
35204#include <arpa/inet.h>
35205#endif
35206#endif
35207
35208"
35209if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
35210then :
35211
35212printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35213
35214fi
35215
35216
35217
35218
35219      ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
35220if test "x$ac_cv_header_sys_select_h" = xyes
35221then :
35222  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
35223
35224fi
35225ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35226if test "x$ac_cv_header_sys_socket_h" = xyes
35227then :
35228  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35229
35230fi
35231
35232  #
35233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
35234printf %s "checking for select... " >&6; }
35235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35236/* end confdefs.h.  */
35237
35238
35239#undef inline
35240#ifdef HAVE_WINDOWS_H
35241#ifndef WIN32_LEAN_AND_MEAN
35242#define WIN32_LEAN_AND_MEAN
35243#endif
35244#include <windows.h>
35245#ifdef HAVE_WINSOCK2_H
35246#include <winsock2.h>
35247#endif
35248#endif
35249#ifdef HAVE_SYS_TYPES_H
35250#include <sys/types.h>
35251#endif
35252#ifdef HAVE_SYS_TIME_H
35253#include <sys/time.h>
35254#endif
35255#include <time.h>
35256#ifndef HAVE_WINDOWS_H
35257#ifdef HAVE_SYS_SELECT_H
35258#include <sys/select.h>
35259#elif defined(HAVE_UNISTD_H)
35260#include <unistd.h>
35261#endif
35262#ifdef HAVE_SYS_SOCKET_H
35263#include <sys/socket.h>
35264#endif
35265$curl_includes_bsdsocket
35266#endif
35267
35268int main (void)
35269{
35270
35271      select(0, 0, 0, 0, 0);
35272
35273 ;
35274 return 0;
35275}
35276
35277_ACEOF
35278if ac_fn_c_try_link "$LINENO"
35279then :
35280
35281    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35282printf "%s\n" "yes" >&6; }
35283    curl_cv_select="yes"
35284
35285else $as_nop
35286
35287    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35288printf "%s\n" "no" >&6; }
35289    curl_cv_select="no"
35290
35291fi
35292rm -f core conftest.err conftest.$ac_objext conftest.beam \
35293    conftest$ac_exeext conftest.$ac_ext
35294  #
35295  if test "$curl_cv_select" = "yes"; then
35296
35297printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
35298
35299    curl_cv_func_select="yes"
35300  fi
35301
35302
35303
35304      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35305if test "x$ac_cv_header_sys_types_h" = xyes
35306then :
35307  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35308
35309fi
35310ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35311if test "x$ac_cv_header_sys_socket_h" = xyes
35312then :
35313  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35314
35315fi
35316
35317  #
35318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
35319printf %s "checking for recv... " >&6; }
35320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35321/* end confdefs.h.  */
35322
35323
35324#undef inline
35325#ifdef HAVE_WINDOWS_H
35326#ifndef WIN32_LEAN_AND_MEAN
35327#define WIN32_LEAN_AND_MEAN
35328#endif
35329#include <windows.h>
35330#ifdef HAVE_WINSOCK2_H
35331#include <winsock2.h>
35332#endif
35333#else
35334$curl_includes_bsdsocket
35335#ifdef HAVE_SYS_TYPES_H
35336#include <sys/types.h>
35337#endif
35338#ifdef HAVE_SYS_SOCKET_H
35339#include <sys/socket.h>
35340#endif
35341#endif
35342
35343int main (void)
35344{
35345
35346      recv(0, 0, 0, 0);
35347
35348 ;
35349 return 0;
35350}
35351
35352_ACEOF
35353if ac_fn_c_try_link "$LINENO"
35354then :
35355
35356    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35357printf "%s\n" "yes" >&6; }
35358    curl_cv_recv="yes"
35359
35360else $as_nop
35361
35362    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35363printf "%s\n" "no" >&6; }
35364    curl_cv_recv="no"
35365
35366fi
35367rm -f core conftest.err conftest.$ac_objext conftest.beam \
35368    conftest$ac_exeext conftest.$ac_ext
35369  #
35370  if test "$curl_cv_recv" = "yes"; then
35371
35372printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35373
35374      curl_cv_func_recv="yes"
35375  else
35376    as_fn_error $? "Unable to link function recv" "$LINENO" 5
35377  fi
35378
35379
35380      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35381if test "x$ac_cv_header_sys_types_h" = xyes
35382then :
35383  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35384
35385fi
35386ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35387if test "x$ac_cv_header_sys_socket_h" = xyes
35388then :
35389  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35390
35391fi
35392
35393  #
35394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35395printf %s "checking for send... " >&6; }
35396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397/* end confdefs.h.  */
35398
35399
35400#undef inline
35401#ifdef HAVE_WINDOWS_H
35402#ifndef WIN32_LEAN_AND_MEAN
35403#define WIN32_LEAN_AND_MEAN
35404#endif
35405#include <windows.h>
35406#ifdef HAVE_WINSOCK2_H
35407#include <winsock2.h>
35408#endif
35409#else
35410$curl_includes_bsdsocket
35411#ifdef HAVE_SYS_TYPES_H
35412#include <sys/types.h>
35413#endif
35414#ifdef HAVE_SYS_SOCKET_H
35415#include <sys/socket.h>
35416#endif
35417#endif
35418
35419int main (void)
35420{
35421
35422      send(0, 0, 0, 0);
35423
35424 ;
35425 return 0;
35426}
35427
35428_ACEOF
35429if ac_fn_c_try_link "$LINENO"
35430then :
35431
35432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35433printf "%s\n" "yes" >&6; }
35434    curl_cv_send="yes"
35435
35436else $as_nop
35437
35438    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35439printf "%s\n" "no" >&6; }
35440    curl_cv_send="no"
35441
35442fi
35443rm -f core conftest.err conftest.$ac_objext conftest.beam \
35444    conftest$ac_exeext conftest.$ac_ext
35445  #
35446  if test "$curl_cv_send" = "yes"; then
35447
35448printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35449
35450    curl_cv_func_send="yes"
35451  else
35452    as_fn_error $? "Unable to link function send" "$LINENO" 5
35453  fi
35454
35455
35456  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35457if test "x$ac_cv_header_sys_types_h" = xyes
35458then :
35459  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35460
35461fi
35462ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35463if test "x$ac_cv_header_sys_socket_h" = xyes
35464then :
35465  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35466
35467fi
35468
35469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35470printf %s "checking for MSG_NOSIGNAL... " >&6; }
35471if test ${curl_cv_msg_nosignal+y}
35472then :
35473  printf %s "(cached) " >&6
35474else $as_nop
35475
35476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35477/* end confdefs.h.  */
35478
35479
35480#undef inline
35481#ifdef HAVE_WINDOWS_H
35482#ifndef WIN32_LEAN_AND_MEAN
35483#define WIN32_LEAN_AND_MEAN
35484#endif
35485#include <windows.h>
35486#ifdef HAVE_WINSOCK2_H
35487#include <winsock2.h>
35488#endif
35489#else
35490#ifdef HAVE_SYS_TYPES_H
35491#include <sys/types.h>
35492#endif
35493#ifdef HAVE_SYS_SOCKET_H
35494#include <sys/socket.h>
35495#endif
35496#endif
35497
35498int main (void)
35499{
35500
35501        int flag=MSG_NOSIGNAL;
35502
35503 ;
35504 return 0;
35505}
35506
35507_ACEOF
35508if ac_fn_c_try_compile "$LINENO"
35509then :
35510
35511      curl_cv_msg_nosignal="yes"
35512
35513else $as_nop
35514
35515      curl_cv_msg_nosignal="no"
35516
35517fi
35518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35519
35520fi
35521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35522printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35523  case "$curl_cv_msg_nosignal" in
35524    yes)
35525
35526printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35527
35528      ;;
35529  esac
35530
35531
35532
35533curl_includes_unistd="\
35534/* includes start */
35535#ifdef HAVE_SYS_TYPES_H
35536#  include <sys/types.h>
35537#endif
35538#ifdef HAVE_UNISTD_H
35539#  include <unistd.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_unistd
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" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35550"
35551if test "x$ac_cv_header_unistd_h" = xyes
35552then :
35553  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35554
35555fi
35556
35557
35558
35559    #
35560  tst_links_alarm="unknown"
35561  tst_proto_alarm="unknown"
35562  tst_compi_alarm="unknown"
35563  tst_allow_alarm="unknown"
35564  #
35565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35566printf %s "checking if alarm can be linked... " >&6; }
35567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35568/* end confdefs.h.  */
35569
35570
35571#define alarm innocuous_alarm
35572#ifdef __STDC__
35573# include <limits.h>
35574#else
35575# include <assert.h>
35576#endif
35577#undef alarm
35578#ifdef __cplusplus
35579extern "C"
35580#endif
35581char alarm ();
35582#if defined __stub_alarm || defined __stub___alarm
35583choke me
35584#endif
35585
35586int main (void)
35587{
35588return alarm ();
35589 ;
35590 return 0;
35591}
35592
35593_ACEOF
35594if ac_fn_c_try_link "$LINENO"
35595then :
35596
35597    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598printf "%s\n" "yes" >&6; }
35599    tst_links_alarm="yes"
35600
35601else $as_nop
35602
35603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604printf "%s\n" "no" >&6; }
35605    tst_links_alarm="no"
35606
35607fi
35608rm -f core conftest.err conftest.$ac_objext conftest.beam \
35609    conftest$ac_exeext conftest.$ac_ext
35610  #
35611  if test "$tst_links_alarm" = "yes"; then
35612    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35613printf %s "checking if alarm is prototyped... " >&6; }
35614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615/* end confdefs.h.  */
35616
35617      $curl_includes_unistd
35618
35619_ACEOF
35620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35621  $EGREP "alarm" >/dev/null 2>&1
35622then :
35623
35624      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35625printf "%s\n" "yes" >&6; }
35626      tst_proto_alarm="yes"
35627
35628else $as_nop
35629
35630      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35631printf "%s\n" "no" >&6; }
35632      tst_proto_alarm="no"
35633
35634fi
35635rm -rf conftest*
35636
35637  fi
35638  #
35639  if test "$tst_proto_alarm" = "yes"; then
35640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35641printf %s "checking if alarm is compilable... " >&6; }
35642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35643/* end confdefs.h.  */
35644
35645
35646        $curl_includes_unistd
35647
35648int main (void)
35649{
35650
35651        if(0 != alarm(0))
35652          return 1;
35653
35654 ;
35655 return 0;
35656}
35657
35658_ACEOF
35659if ac_fn_c_try_compile "$LINENO"
35660then :
35661
35662      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663printf "%s\n" "yes" >&6; }
35664      tst_compi_alarm="yes"
35665
35666else $as_nop
35667
35668      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35669printf "%s\n" "no" >&6; }
35670      tst_compi_alarm="no"
35671
35672fi
35673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35674  fi
35675  #
35676  if test "$tst_compi_alarm" = "yes"; then
35677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35678printf %s "checking if alarm usage allowed... " >&6; }
35679    if test "x$curl_disallow_alarm" != "xyes"; then
35680      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35681printf "%s\n" "yes" >&6; }
35682      tst_allow_alarm="yes"
35683    else
35684      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35685printf "%s\n" "no" >&6; }
35686      tst_allow_alarm="no"
35687    fi
35688  fi
35689  #
35690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35691printf %s "checking if alarm might be used... " >&6; }
35692  if test "$tst_links_alarm" = "yes" &&
35693     test "$tst_proto_alarm" = "yes" &&
35694     test "$tst_compi_alarm" = "yes" &&
35695     test "$tst_allow_alarm" = "yes"; then
35696    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35697printf "%s\n" "yes" >&6; }
35698
35699printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35700
35701    curl_cv_func_alarm="yes"
35702  else
35703    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35704printf "%s\n" "no" >&6; }
35705    curl_cv_func_alarm="no"
35706  fi
35707
35708
35709curl_includes_string="\
35710/* includes start */
35711#ifdef HAVE_SYS_TYPES_H
35712#  include <sys/types.h>
35713#endif
35714#ifdef HAVE_STRING_H
35715#  include <string.h>
35716#endif
35717#ifdef HAVE_STRINGS_H
35718#  include <strings.h>
35719#endif
35720/* includes end */"
35721  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35722"
35723if test "x$ac_cv_header_sys_types_h" = xyes
35724then :
35725  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35726
35727fi
35728ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35729"
35730if test "x$ac_cv_header_string_h" = xyes
35731then :
35732  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35733
35734fi
35735ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35736"
35737if test "x$ac_cv_header_strings_h" = xyes
35738then :
35739  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35740
35741fi
35742
35743
35744
35745curl_includes_libgen="\
35746/* includes start */
35747#ifdef HAVE_SYS_TYPES_H
35748#  include <sys/types.h>
35749#endif
35750#ifdef HAVE_LIBGEN_H
35751#  include <libgen.h>
35752#endif
35753/* includes end */"
35754  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35755"
35756if test "x$ac_cv_header_sys_types_h" = xyes
35757then :
35758  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35759
35760fi
35761ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35762"
35763if test "x$ac_cv_header_libgen_h" = xyes
35764then :
35765  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35766
35767fi
35768
35769
35770
35771        #
35772  tst_links_basename="unknown"
35773  tst_proto_basename="unknown"
35774  tst_compi_basename="unknown"
35775  tst_allow_basename="unknown"
35776  #
35777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35778printf %s "checking if basename can be linked... " >&6; }
35779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35780/* end confdefs.h.  */
35781
35782
35783#define basename innocuous_basename
35784#ifdef __STDC__
35785# include <limits.h>
35786#else
35787# include <assert.h>
35788#endif
35789#undef basename
35790#ifdef __cplusplus
35791extern "C"
35792#endif
35793char basename ();
35794#if defined __stub_basename || defined __stub___basename
35795choke me
35796#endif
35797
35798int main (void)
35799{
35800return basename ();
35801 ;
35802 return 0;
35803}
35804
35805_ACEOF
35806if ac_fn_c_try_link "$LINENO"
35807then :
35808
35809    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35810printf "%s\n" "yes" >&6; }
35811    tst_links_basename="yes"
35812
35813else $as_nop
35814
35815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35816printf "%s\n" "no" >&6; }
35817    tst_links_basename="no"
35818
35819fi
35820rm -f core conftest.err conftest.$ac_objext conftest.beam \
35821    conftest$ac_exeext conftest.$ac_ext
35822  #
35823  if test "$tst_links_basename" = "yes"; then
35824    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35825printf %s "checking if basename is prototyped... " >&6; }
35826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35827/* end confdefs.h.  */
35828
35829      $curl_includes_string
35830      $curl_includes_libgen
35831      $curl_includes_unistd
35832
35833_ACEOF
35834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35835  $EGREP "basename" >/dev/null 2>&1
35836then :
35837
35838      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35839printf "%s\n" "yes" >&6; }
35840      tst_proto_basename="yes"
35841
35842else $as_nop
35843
35844      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845printf "%s\n" "no" >&6; }
35846      tst_proto_basename="no"
35847
35848fi
35849rm -rf conftest*
35850
35851  fi
35852  #
35853  if test "$tst_proto_basename" = "yes"; then
35854    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35855printf %s "checking if basename is compilable... " >&6; }
35856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35857/* end confdefs.h.  */
35858
35859
35860        $curl_includes_string
35861        $curl_includes_libgen
35862        $curl_includes_unistd
35863
35864int main (void)
35865{
35866
35867        if(0 != basename(0))
35868          return 1;
35869
35870 ;
35871 return 0;
35872}
35873
35874_ACEOF
35875if ac_fn_c_try_compile "$LINENO"
35876then :
35877
35878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35879printf "%s\n" "yes" >&6; }
35880      tst_compi_basename="yes"
35881
35882else $as_nop
35883
35884      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35885printf "%s\n" "no" >&6; }
35886      tst_compi_basename="no"
35887
35888fi
35889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35890  fi
35891  #
35892  if test "$tst_compi_basename" = "yes"; then
35893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35894printf %s "checking if basename usage allowed... " >&6; }
35895    if test "x$curl_disallow_basename" != "xyes"; then
35896      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35897printf "%s\n" "yes" >&6; }
35898      tst_allow_basename="yes"
35899    else
35900      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35901printf "%s\n" "no" >&6; }
35902      tst_allow_basename="no"
35903    fi
35904  fi
35905  #
35906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35907printf %s "checking if basename might be used... " >&6; }
35908  if test "$tst_links_basename" = "yes" &&
35909     test "$tst_proto_basename" = "yes" &&
35910     test "$tst_compi_basename" = "yes" &&
35911     test "$tst_allow_basename" = "yes"; then
35912    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35913printf "%s\n" "yes" >&6; }
35914
35915printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35916
35917    curl_cv_func_basename="yes"
35918  else
35919    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35920printf "%s\n" "no" >&6; }
35921    curl_cv_func_basename="no"
35922  fi
35923
35924
35925curl_includes_socket="\
35926/* includes start */
35927#ifdef HAVE_SYS_TYPES_H
35928#  include <sys/types.h>
35929#endif
35930#ifdef HAVE_SOCKET_H
35931#  include <socket.h>
35932#endif
35933/* includes end */"
35934  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35935"
35936if test "x$ac_cv_header_sys_types_h" = xyes
35937then :
35938  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35939
35940fi
35941ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35942"
35943if test "x$ac_cv_header_socket_h" = xyes
35944then :
35945  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35946
35947fi
35948
35949
35950
35951      #
35952  tst_links_closesocket="unknown"
35953  tst_proto_closesocket="unknown"
35954  tst_compi_closesocket="unknown"
35955  tst_allow_closesocket="unknown"
35956  #
35957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35958printf %s "checking if closesocket can be linked... " >&6; }
35959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35960/* end confdefs.h.  */
35961
35962
35963      $curl_includes_winsock2
35964      $curl_includes_socket
35965
35966int main (void)
35967{
35968
35969      if(0 != closesocket(0))
35970        return 1;
35971
35972 ;
35973 return 0;
35974}
35975
35976_ACEOF
35977if ac_fn_c_try_link "$LINENO"
35978then :
35979
35980    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35981printf "%s\n" "yes" >&6; }
35982    tst_links_closesocket="yes"
35983
35984else $as_nop
35985
35986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35987printf "%s\n" "no" >&6; }
35988    tst_links_closesocket="no"
35989
35990fi
35991rm -f core conftest.err conftest.$ac_objext conftest.beam \
35992    conftest$ac_exeext conftest.$ac_ext
35993  #
35994  if test "$tst_links_closesocket" = "yes"; then
35995    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35996printf %s "checking if closesocket is prototyped... " >&6; }
35997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35998/* end confdefs.h.  */
35999
36000      $curl_includes_winsock2
36001      $curl_includes_socket
36002
36003_ACEOF
36004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36005  $EGREP "closesocket" >/dev/null 2>&1
36006then :
36007
36008      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36009printf "%s\n" "yes" >&6; }
36010      tst_proto_closesocket="yes"
36011
36012else $as_nop
36013
36014      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36015printf "%s\n" "no" >&6; }
36016      tst_proto_closesocket="no"
36017
36018fi
36019rm -rf conftest*
36020
36021  fi
36022  #
36023  if test "$tst_proto_closesocket" = "yes"; then
36024    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
36025printf %s "checking if closesocket is compilable... " >&6; }
36026    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36027/* end confdefs.h.  */
36028
36029
36030        $curl_includes_winsock2
36031        $curl_includes_socket
36032
36033int main (void)
36034{
36035
36036        if(0 != closesocket(0))
36037          return 1;
36038
36039 ;
36040 return 0;
36041}
36042
36043_ACEOF
36044if ac_fn_c_try_compile "$LINENO"
36045then :
36046
36047      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36048printf "%s\n" "yes" >&6; }
36049      tst_compi_closesocket="yes"
36050
36051else $as_nop
36052
36053      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36054printf "%s\n" "no" >&6; }
36055      tst_compi_closesocket="no"
36056
36057fi
36058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36059  fi
36060  #
36061  if test "$tst_compi_closesocket" = "yes"; then
36062    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
36063printf %s "checking if closesocket usage allowed... " >&6; }
36064    if test "x$curl_disallow_closesocket" != "xyes"; then
36065      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36066printf "%s\n" "yes" >&6; }
36067      tst_allow_closesocket="yes"
36068    else
36069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36070printf "%s\n" "no" >&6; }
36071      tst_allow_closesocket="no"
36072    fi
36073  fi
36074  #
36075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
36076printf %s "checking if closesocket might be used... " >&6; }
36077  if test "$tst_links_closesocket" = "yes" &&
36078     test "$tst_proto_closesocket" = "yes" &&
36079     test "$tst_compi_closesocket" = "yes" &&
36080     test "$tst_allow_closesocket" = "yes"; then
36081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36082printf "%s\n" "yes" >&6; }
36083
36084printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
36085
36086    curl_cv_func_closesocket="yes"
36087  else
36088    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36089printf "%s\n" "no" >&6; }
36090    curl_cv_func_closesocket="no"
36091  fi
36092
36093
36094curl_includes_sys_socket="\
36095/* includes start */
36096#ifdef HAVE_SYS_TYPES_H
36097#  include <sys/types.h>
36098#endif
36099#ifdef HAVE_SYS_SOCKET_H
36100#  include <sys/socket.h>
36101#endif
36102/* includes end */"
36103  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
36104"
36105if test "x$ac_cv_header_sys_types_h" = xyes
36106then :
36107  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36108
36109fi
36110ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
36111"
36112if test "x$ac_cv_header_sys_socket_h" = xyes
36113then :
36114  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36115
36116fi
36117
36118
36119
36120      #
36121  tst_links_closesocket_camel="unknown"
36122  tst_proto_closesocket_camel="unknown"
36123  tst_compi_closesocket_camel="unknown"
36124  tst_allow_closesocket_camel="unknown"
36125  #
36126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36127printf %s "checking if CloseSocket can be linked... " >&6; }
36128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36129/* end confdefs.h.  */
36130
36131
36132      $curl_includes_bsdsocket
36133      $curl_includes_sys_socket
36134
36135int main (void)
36136{
36137
36138      if(0 != CloseSocket(0))
36139        return 1;
36140
36141 ;
36142 return 0;
36143}
36144
36145_ACEOF
36146if ac_fn_c_try_link "$LINENO"
36147then :
36148
36149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36150printf "%s\n" "yes" >&6; }
36151    tst_links_closesocket_camel="yes"
36152
36153else $as_nop
36154
36155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36156printf "%s\n" "no" >&6; }
36157    tst_links_closesocket_camel="no"
36158
36159fi
36160rm -f core conftest.err conftest.$ac_objext conftest.beam \
36161    conftest$ac_exeext conftest.$ac_ext
36162  #
36163  if test "$tst_links_closesocket_camel" = "yes"; then
36164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36165printf %s "checking if CloseSocket is prototyped... " >&6; }
36166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36167/* end confdefs.h.  */
36168
36169      $curl_includes_bsdsocket
36170      $curl_includes_sys_socket
36171
36172_ACEOF
36173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36174  $EGREP "CloseSocket" >/dev/null 2>&1
36175then :
36176
36177      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36178printf "%s\n" "yes" >&6; }
36179      tst_proto_closesocket_camel="yes"
36180
36181else $as_nop
36182
36183      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36184printf "%s\n" "no" >&6; }
36185      tst_proto_closesocket_camel="no"
36186
36187fi
36188rm -rf conftest*
36189
36190  fi
36191  #
36192  if test "$tst_proto_closesocket_camel" = "yes"; then
36193    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36194printf %s "checking if CloseSocket is compilable... " >&6; }
36195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36196/* end confdefs.h.  */
36197
36198
36199        $curl_includes_bsdsocket
36200        $curl_includes_sys_socket
36201
36202int main (void)
36203{
36204
36205        if(0 != CloseSocket(0))
36206          return 1;
36207
36208 ;
36209 return 0;
36210}
36211
36212_ACEOF
36213if ac_fn_c_try_compile "$LINENO"
36214then :
36215
36216      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36217printf "%s\n" "yes" >&6; }
36218      tst_compi_closesocket_camel="yes"
36219
36220else $as_nop
36221
36222      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36223printf "%s\n" "no" >&6; }
36224      tst_compi_closesocket_camel="no"
36225
36226fi
36227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36228  fi
36229  #
36230  if test "$tst_compi_closesocket_camel" = "yes"; then
36231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36232printf %s "checking if CloseSocket usage allowed... " >&6; }
36233    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36234      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36235printf "%s\n" "yes" >&6; }
36236      tst_allow_closesocket_camel="yes"
36237    else
36238      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36239printf "%s\n" "no" >&6; }
36240      tst_allow_closesocket_camel="no"
36241    fi
36242  fi
36243  #
36244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36245printf %s "checking if CloseSocket might be used... " >&6; }
36246  if test "$tst_links_closesocket_camel" = "yes" &&
36247     test "$tst_proto_closesocket_camel" = "yes" &&
36248     test "$tst_compi_closesocket_camel" = "yes" &&
36249     test "$tst_allow_closesocket_camel" = "yes"; then
36250    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36251printf "%s\n" "yes" >&6; }
36252
36253printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36254
36255    curl_cv_func_closesocket_camel="yes"
36256  else
36257    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36258printf "%s\n" "no" >&6; }
36259    curl_cv_func_closesocket_camel="no"
36260  fi
36261
36262
36263          #
36264  tst_links_connect="unknown"
36265  tst_proto_connect="unknown"
36266  tst_compi_connect="unknown"
36267  tst_allow_connect="unknown"
36268  #
36269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
36270printf %s "checking if connect can be linked... " >&6; }
36271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36272/* end confdefs.h.  */
36273
36274
36275      $curl_includes_winsock2
36276      $curl_includes_bsdsocket
36277      $curl_includes_sys_socket
36278      $curl_includes_socket
36279
36280int main (void)
36281{
36282
36283      if(0 != connect(0, 0, 0))
36284        return 1;
36285
36286 ;
36287 return 0;
36288}
36289
36290_ACEOF
36291if ac_fn_c_try_link "$LINENO"
36292then :
36293
36294    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36295printf "%s\n" "yes" >&6; }
36296    tst_links_connect="yes"
36297
36298else $as_nop
36299
36300    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36301printf "%s\n" "no" >&6; }
36302    tst_links_connect="no"
36303
36304fi
36305rm -f core conftest.err conftest.$ac_objext conftest.beam \
36306    conftest$ac_exeext conftest.$ac_ext
36307  #
36308  if test "$tst_links_connect" = "yes"; then
36309    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
36310printf %s "checking if connect is prototyped... " >&6; }
36311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36312/* end confdefs.h.  */
36313
36314      $curl_includes_winsock2
36315      $curl_includes_bsdsocket
36316      $curl_includes_sys_socket
36317      $curl_includes_socket
36318
36319_ACEOF
36320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36321  $EGREP "connect" >/dev/null 2>&1
36322then :
36323
36324      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36325printf "%s\n" "yes" >&6; }
36326      tst_proto_connect="yes"
36327
36328else $as_nop
36329
36330      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36331printf "%s\n" "no" >&6; }
36332      tst_proto_connect="no"
36333
36334fi
36335rm -rf conftest*
36336
36337  fi
36338  #
36339  if test "$tst_proto_connect" = "yes"; then
36340    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
36341printf %s "checking if connect is compilable... " >&6; }
36342    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36343/* end confdefs.h.  */
36344
36345
36346        $curl_includes_winsock2
36347        $curl_includes_bsdsocket
36348        $curl_includes_sys_socket
36349        $curl_includes_socket
36350
36351int main (void)
36352{
36353
36354        if(0 != connect(0, 0, 0))
36355          return 1;
36356
36357 ;
36358 return 0;
36359}
36360
36361_ACEOF
36362if ac_fn_c_try_compile "$LINENO"
36363then :
36364
36365      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36366printf "%s\n" "yes" >&6; }
36367      tst_compi_connect="yes"
36368
36369else $as_nop
36370
36371      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36372printf "%s\n" "no" >&6; }
36373      tst_compi_connect="no"
36374
36375fi
36376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36377  fi
36378  #
36379  if test "$tst_compi_connect" = "yes"; then
36380    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
36381printf %s "checking if connect usage allowed... " >&6; }
36382    if test "x$curl_disallow_connect" != "xyes"; then
36383      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36384printf "%s\n" "yes" >&6; }
36385      tst_allow_connect="yes"
36386    else
36387      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36388printf "%s\n" "no" >&6; }
36389      tst_allow_connect="no"
36390    fi
36391  fi
36392  #
36393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36394printf %s "checking if connect might be used... " >&6; }
36395  if test "$tst_links_connect" = "yes" &&
36396     test "$tst_proto_connect" = "yes" &&
36397     test "$tst_compi_connect" = "yes" &&
36398     test "$tst_allow_connect" = "yes"; then
36399    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36400printf "%s\n" "yes" >&6; }
36401
36402printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36403
36404    curl_cv_func_connect="yes"
36405  else
36406    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36407printf "%s\n" "no" >&6; }
36408    curl_cv_func_connect="no"
36409  fi
36410
36411
36412curl_includes_fcntl="\
36413/* includes start */
36414#ifdef HAVE_SYS_TYPES_H
36415#  include <sys/types.h>
36416#endif
36417#ifdef HAVE_UNISTD_H
36418#  include <unistd.h>
36419#endif
36420#ifdef HAVE_FCNTL_H
36421#  include <fcntl.h>
36422#endif
36423/* includes end */"
36424  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36425"
36426if test "x$ac_cv_header_sys_types_h" = xyes
36427then :
36428  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36429
36430fi
36431ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36432"
36433if test "x$ac_cv_header_unistd_h" = xyes
36434then :
36435  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36436
36437fi
36438ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36439"
36440if test "x$ac_cv_header_fcntl_h" = xyes
36441then :
36442  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36443
36444fi
36445
36446
36447
36448    #
36449  tst_links_fcntl="unknown"
36450  tst_proto_fcntl="unknown"
36451  tst_compi_fcntl="unknown"
36452  tst_allow_fcntl="unknown"
36453  #
36454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36455printf %s "checking if fcntl can be linked... " >&6; }
36456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36457/* end confdefs.h.  */
36458
36459
36460#define fcntl innocuous_fcntl
36461#ifdef __STDC__
36462# include <limits.h>
36463#else
36464# include <assert.h>
36465#endif
36466#undef fcntl
36467#ifdef __cplusplus
36468extern "C"
36469#endif
36470char fcntl ();
36471#if defined __stub_fcntl || defined __stub___fcntl
36472choke me
36473#endif
36474
36475int main (void)
36476{
36477return fcntl ();
36478 ;
36479 return 0;
36480}
36481
36482_ACEOF
36483if ac_fn_c_try_link "$LINENO"
36484then :
36485
36486    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36487printf "%s\n" "yes" >&6; }
36488    tst_links_fcntl="yes"
36489
36490else $as_nop
36491
36492    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36493printf "%s\n" "no" >&6; }
36494    tst_links_fcntl="no"
36495
36496fi
36497rm -f core conftest.err conftest.$ac_objext conftest.beam \
36498    conftest$ac_exeext conftest.$ac_ext
36499  #
36500  if test "$tst_links_fcntl" = "yes"; then
36501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36502printf %s "checking if fcntl is prototyped... " >&6; }
36503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36504/* end confdefs.h.  */
36505
36506      $curl_includes_fcntl
36507
36508_ACEOF
36509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36510  $EGREP "fcntl" >/dev/null 2>&1
36511then :
36512
36513      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36514printf "%s\n" "yes" >&6; }
36515      tst_proto_fcntl="yes"
36516
36517else $as_nop
36518
36519      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36520printf "%s\n" "no" >&6; }
36521      tst_proto_fcntl="no"
36522
36523fi
36524rm -rf conftest*
36525
36526  fi
36527  #
36528  if test "$tst_proto_fcntl" = "yes"; then
36529    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36530printf %s "checking if fcntl is compilable... " >&6; }
36531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36532/* end confdefs.h.  */
36533
36534
36535        $curl_includes_fcntl
36536
36537int main (void)
36538{
36539
36540        if(0 != fcntl(0, 0, 0))
36541          return 1;
36542
36543 ;
36544 return 0;
36545}
36546
36547_ACEOF
36548if ac_fn_c_try_compile "$LINENO"
36549then :
36550
36551      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36552printf "%s\n" "yes" >&6; }
36553      tst_compi_fcntl="yes"
36554
36555else $as_nop
36556
36557      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36558printf "%s\n" "no" >&6; }
36559      tst_compi_fcntl="no"
36560
36561fi
36562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36563  fi
36564  #
36565  if test "$tst_compi_fcntl" = "yes"; then
36566    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36567printf %s "checking if fcntl usage allowed... " >&6; }
36568    if test "x$curl_disallow_fcntl" != "xyes"; then
36569      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36570printf "%s\n" "yes" >&6; }
36571      tst_allow_fcntl="yes"
36572    else
36573      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36574printf "%s\n" "no" >&6; }
36575      tst_allow_fcntl="no"
36576    fi
36577  fi
36578  #
36579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36580printf %s "checking if fcntl might be used... " >&6; }
36581  if test "$tst_links_fcntl" = "yes" &&
36582     test "$tst_proto_fcntl" = "yes" &&
36583     test "$tst_compi_fcntl" = "yes" &&
36584     test "$tst_allow_fcntl" = "yes"; then
36585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36586printf "%s\n" "yes" >&6; }
36587
36588printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36589
36590    curl_cv_func_fcntl="yes"
36591
36592  #
36593  tst_compi_fcntl_o_nonblock="unknown"
36594  tst_allow_fcntl_o_nonblock="unknown"
36595  #
36596  case $host_os in
36597    sunos4* | aix3*)
36598            curl_disallow_fcntl_o_nonblock="yes"
36599      ;;
36600  esac
36601  #
36602  if test "$curl_cv_func_fcntl" = "yes"; then
36603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36604printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36606/* end confdefs.h.  */
36607
36608
36609        $curl_includes_fcntl
36610
36611int main (void)
36612{
36613
36614        int flags = 0;
36615        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36616          return 1;
36617
36618 ;
36619 return 0;
36620}
36621
36622_ACEOF
36623if ac_fn_c_try_compile "$LINENO"
36624then :
36625
36626      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36627printf "%s\n" "yes" >&6; }
36628      tst_compi_fcntl_o_nonblock="yes"
36629
36630else $as_nop
36631
36632      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36633printf "%s\n" "no" >&6; }
36634      tst_compi_fcntl_o_nonblock="no"
36635
36636fi
36637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36638  fi
36639  #
36640  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36641    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36642printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36643    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36644      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36645printf "%s\n" "yes" >&6; }
36646      tst_allow_fcntl_o_nonblock="yes"
36647    else
36648      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36649printf "%s\n" "no" >&6; }
36650      tst_allow_fcntl_o_nonblock="no"
36651    fi
36652  fi
36653  #
36654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36655printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36656  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36657     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36658    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36659printf "%s\n" "yes" >&6; }
36660
36661printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36662
36663    curl_cv_func_fcntl_o_nonblock="yes"
36664  else
36665    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36666printf "%s\n" "no" >&6; }
36667    curl_cv_func_fcntl_o_nonblock="no"
36668  fi
36669
36670  else
36671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36672printf "%s\n" "no" >&6; }
36673    curl_cv_func_fcntl="no"
36674  fi
36675
36676
36677curl_includes_ws2tcpip="\
36678/* includes start */
36679#ifdef HAVE_WINDOWS_H
36680#  ifndef WIN32_LEAN_AND_MEAN
36681#    define WIN32_LEAN_AND_MEAN
36682#  endif
36683#  include <windows.h>
36684#  ifdef HAVE_WINSOCK2_H
36685#    include <winsock2.h>
36686#    ifdef HAVE_WS2TCPIP_H
36687#       include <ws2tcpip.h>
36688#    endif
36689#  endif
36690#endif
36691/* includes end */"
36692
36693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36694printf %s "checking for windows.h... " >&6; }
36695if test ${curl_cv_header_windows_h+y}
36696then :
36697  printf %s "(cached) " >&6
36698else $as_nop
36699
36700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36701/* end confdefs.h.  */
36702
36703
36704#undef inline
36705#ifndef WIN32_LEAN_AND_MEAN
36706#define WIN32_LEAN_AND_MEAN
36707#endif
36708#include <windows.h>
36709
36710int main (void)
36711{
36712
36713#if defined(__CYGWIN__) || defined(__CEGCC__)
36714        HAVE_WINDOWS_H shall not be defined.
36715#else
36716        int dummy=2*WINVER;
36717#endif
36718
36719 ;
36720 return 0;
36721}
36722
36723_ACEOF
36724if ac_fn_c_try_compile "$LINENO"
36725then :
36726
36727      curl_cv_header_windows_h="yes"
36728
36729else $as_nop
36730
36731      curl_cv_header_windows_h="no"
36732
36733fi
36734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36735
36736fi
36737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36738printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36739  case "$curl_cv_header_windows_h" in
36740    yes)
36741
36742printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36743
36744      ;;
36745  esac
36746
36747
36748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36749printf %s "checking for winsock2.h... " >&6; }
36750if test ${curl_cv_header_winsock2_h+y}
36751then :
36752  printf %s "(cached) " >&6
36753else $as_nop
36754
36755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36756/* end confdefs.h.  */
36757
36758
36759#undef inline
36760#ifndef WIN32_LEAN_AND_MEAN
36761#define WIN32_LEAN_AND_MEAN
36762#endif
36763#include <windows.h>
36764#include <winsock2.h>
36765
36766int main (void)
36767{
36768
36769#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36770        HAVE_WINSOCK2_H shall not be defined.
36771#else
36772        int dummy=2*IPPROTO_ESP;
36773#endif
36774
36775 ;
36776 return 0;
36777}
36778
36779_ACEOF
36780if ac_fn_c_try_compile "$LINENO"
36781then :
36782
36783      curl_cv_header_winsock2_h="yes"
36784
36785else $as_nop
36786
36787      curl_cv_header_winsock2_h="no"
36788
36789fi
36790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36791
36792fi
36793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36794printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36795  case "$curl_cv_header_winsock2_h" in
36796    yes)
36797
36798printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36799
36800      ;;
36801  esac
36802
36803
36804    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36805printf %s "checking for ws2tcpip.h... " >&6; }
36806if test ${curl_cv_header_ws2tcpip_h+y}
36807then :
36808  printf %s "(cached) " >&6
36809else $as_nop
36810
36811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36812/* end confdefs.h.  */
36813
36814
36815#undef inline
36816#ifndef WIN32_LEAN_AND_MEAN
36817#define WIN32_LEAN_AND_MEAN
36818#endif
36819#include <windows.h>
36820#include <winsock2.h>
36821#include <ws2tcpip.h>
36822
36823int main (void)
36824{
36825
36826#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36827        HAVE_WS2TCPIP_H shall not be defined.
36828#else
36829        int dummy=2*IP_PKTINFO;
36830#endif
36831
36832 ;
36833 return 0;
36834}
36835
36836_ACEOF
36837if ac_fn_c_try_compile "$LINENO"
36838then :
36839
36840      curl_cv_header_ws2tcpip_h="yes"
36841
36842else $as_nop
36843
36844      curl_cv_header_ws2tcpip_h="no"
36845
36846fi
36847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36848
36849fi
36850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36851printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36852  case "$curl_cv_header_ws2tcpip_h" in
36853    yes)
36854
36855printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36856
36857      ;;
36858  esac
36859
36860
36861
36862curl_includes_netdb="\
36863/* includes start */
36864#ifdef HAVE_SYS_TYPES_H
36865#  include <sys/types.h>
36866#endif
36867#ifdef HAVE_NETDB_H
36868#  include <netdb.h>
36869#endif
36870/* includes end */"
36871  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36872"
36873if test "x$ac_cv_header_sys_types_h" = xyes
36874then :
36875  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36876
36877fi
36878ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36879"
36880if test "x$ac_cv_header_netdb_h" = xyes
36881then :
36882  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36883
36884fi
36885
36886
36887
36888        #
36889  tst_links_freeaddrinfo="unknown"
36890  tst_proto_freeaddrinfo="unknown"
36891  tst_compi_freeaddrinfo="unknown"
36892  tst_allow_freeaddrinfo="unknown"
36893  #
36894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36895printf %s "checking if freeaddrinfo can be linked... " >&6; }
36896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36897/* end confdefs.h.  */
36898
36899
36900      $curl_includes_ws2tcpip
36901      $curl_includes_sys_socket
36902      $curl_includes_netdb
36903
36904int main (void)
36905{
36906
36907      freeaddrinfo(0);
36908
36909 ;
36910 return 0;
36911}
36912
36913_ACEOF
36914if ac_fn_c_try_link "$LINENO"
36915then :
36916
36917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36918printf "%s\n" "yes" >&6; }
36919    tst_links_freeaddrinfo="yes"
36920
36921else $as_nop
36922
36923    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924printf "%s\n" "no" >&6; }
36925    tst_links_freeaddrinfo="no"
36926
36927fi
36928rm -f core conftest.err conftest.$ac_objext conftest.beam \
36929    conftest$ac_exeext conftest.$ac_ext
36930  #
36931  if test "$tst_links_freeaddrinfo" = "yes"; then
36932    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36933printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36934    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36935/* end confdefs.h.  */
36936
36937      $curl_includes_ws2tcpip
36938      $curl_includes_sys_socket
36939      $curl_includes_netdb
36940
36941_ACEOF
36942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36943  $EGREP "freeaddrinfo" >/dev/null 2>&1
36944then :
36945
36946      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36947printf "%s\n" "yes" >&6; }
36948      tst_proto_freeaddrinfo="yes"
36949
36950else $as_nop
36951
36952      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36953printf "%s\n" "no" >&6; }
36954      tst_proto_freeaddrinfo="no"
36955
36956fi
36957rm -rf conftest*
36958
36959  fi
36960  #
36961  if test "$tst_proto_freeaddrinfo" = "yes"; then
36962    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36963printf %s "checking if freeaddrinfo is compilable... " >&6; }
36964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36965/* end confdefs.h.  */
36966
36967
36968        $curl_includes_ws2tcpip
36969        $curl_includes_sys_socket
36970        $curl_includes_netdb
36971
36972int main (void)
36973{
36974
36975        freeaddrinfo(0);
36976
36977 ;
36978 return 0;
36979}
36980
36981_ACEOF
36982if ac_fn_c_try_compile "$LINENO"
36983then :
36984
36985      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36986printf "%s\n" "yes" >&6; }
36987      tst_compi_freeaddrinfo="yes"
36988
36989else $as_nop
36990
36991      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36992printf "%s\n" "no" >&6; }
36993      tst_compi_freeaddrinfo="no"
36994
36995fi
36996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36997  fi
36998  #
36999  if test "$tst_compi_freeaddrinfo" = "yes"; then
37000    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
37001printf %s "checking if freeaddrinfo usage allowed... " >&6; }
37002    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
37003      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37004printf "%s\n" "yes" >&6; }
37005      tst_allow_freeaddrinfo="yes"
37006    else
37007      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37008printf "%s\n" "no" >&6; }
37009      tst_allow_freeaddrinfo="no"
37010    fi
37011  fi
37012  #
37013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
37014printf %s "checking if freeaddrinfo might be used... " >&6; }
37015  if test "$tst_links_freeaddrinfo" = "yes" &&
37016     test "$tst_proto_freeaddrinfo" = "yes" &&
37017     test "$tst_compi_freeaddrinfo" = "yes" &&
37018     test "$tst_allow_freeaddrinfo" = "yes"; then
37019    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37020printf "%s\n" "yes" >&6; }
37021
37022printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
37023
37024    curl_cv_func_freeaddrinfo="yes"
37025  else
37026    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37027printf "%s\n" "no" >&6; }
37028    curl_cv_func_freeaddrinfo="no"
37029  fi
37030
37031
37032curl_includes_sys_xattr="\
37033/* includes start */
37034#ifdef HAVE_SYS_TYPES_H
37035#  include <sys/types.h>
37036#endif
37037#ifdef HAVE_SYS_XATTR_H
37038#  include <sys/xattr.h>
37039#endif
37040/* includes end */"
37041  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
37042"
37043if test "x$ac_cv_header_sys_types_h" = xyes
37044then :
37045  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37046
37047fi
37048ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
37049"
37050if test "x$ac_cv_header_sys_xattr_h" = xyes
37051then :
37052  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
37053
37054fi
37055
37056
37057
37058    #
37059  tst_links_fsetxattr="unknown"
37060  tst_proto_fsetxattr="unknown"
37061  tst_compi_fsetxattr="unknown"
37062  tst_allow_fsetxattr="unknown"
37063  tst_nargs_fsetxattr="unknown"
37064  #
37065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
37066printf %s "checking if fsetxattr can be linked... " >&6; }
37067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068/* end confdefs.h.  */
37069
37070
37071#define fsetxattr innocuous_fsetxattr
37072#ifdef __STDC__
37073# include <limits.h>
37074#else
37075# include <assert.h>
37076#endif
37077#undef fsetxattr
37078#ifdef __cplusplus
37079extern "C"
37080#endif
37081char fsetxattr ();
37082#if defined __stub_fsetxattr || defined __stub___fsetxattr
37083choke me
37084#endif
37085
37086int main (void)
37087{
37088return fsetxattr ();
37089 ;
37090 return 0;
37091}
37092
37093_ACEOF
37094if ac_fn_c_try_link "$LINENO"
37095then :
37096
37097    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37098printf "%s\n" "yes" >&6; }
37099    tst_links_fsetxattr="yes"
37100
37101else $as_nop
37102
37103    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37104printf "%s\n" "no" >&6; }
37105    tst_links_fsetxattr="no"
37106
37107fi
37108rm -f core conftest.err conftest.$ac_objext conftest.beam \
37109    conftest$ac_exeext conftest.$ac_ext
37110  #
37111  if test "$tst_links_fsetxattr" = "yes"; then
37112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
37113printf %s "checking if fsetxattr is prototyped... " >&6; }
37114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37115/* end confdefs.h.  */
37116
37117      $curl_includes_sys_xattr
37118
37119_ACEOF
37120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37121  $EGREP "fsetxattr" >/dev/null 2>&1
37122then :
37123
37124      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125printf "%s\n" "yes" >&6; }
37126      tst_proto_fsetxattr="yes"
37127
37128else $as_nop
37129
37130      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37131printf "%s\n" "no" >&6; }
37132      tst_proto_fsetxattr="no"
37133
37134fi
37135rm -rf conftest*
37136
37137  fi
37138  #
37139  if test "$tst_proto_fsetxattr" = "yes"; then
37140    if test "$tst_nargs_fsetxattr" = "unknown"; then
37141      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
37142printf %s "checking if fsetxattr takes 5 args.... " >&6; }
37143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37144/* end confdefs.h.  */
37145
37146
37147          $curl_includes_sys_xattr
37148
37149int main (void)
37150{
37151
37152          if(0 != fsetxattr(0, 0, 0, 0, 0))
37153            return 1;
37154
37155 ;
37156 return 0;
37157}
37158
37159_ACEOF
37160if ac_fn_c_try_compile "$LINENO"
37161then :
37162
37163        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37164printf "%s\n" "yes" >&6; }
37165        tst_compi_fsetxattr="yes"
37166        tst_nargs_fsetxattr="5"
37167
37168else $as_nop
37169
37170        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37171printf "%s\n" "no" >&6; }
37172        tst_compi_fsetxattr="no"
37173
37174fi
37175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37176    fi
37177    if test "$tst_nargs_fsetxattr" = "unknown"; then
37178      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
37179printf %s "checking if fsetxattr takes 6 args.... " >&6; }
37180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37181/* end confdefs.h.  */
37182
37183
37184          $curl_includes_sys_xattr
37185
37186int main (void)
37187{
37188
37189          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
37190            return 1;
37191
37192 ;
37193 return 0;
37194}
37195
37196_ACEOF
37197if ac_fn_c_try_compile "$LINENO"
37198then :
37199
37200        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37201printf "%s\n" "yes" >&6; }
37202        tst_compi_fsetxattr="yes"
37203        tst_nargs_fsetxattr="6"
37204
37205else $as_nop
37206
37207        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37208printf "%s\n" "no" >&6; }
37209        tst_compi_fsetxattr="no"
37210
37211fi
37212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37213    fi
37214    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
37215printf %s "checking if fsetxattr is compilable... " >&6; }
37216    if test "$tst_compi_fsetxattr" = "yes"; then
37217      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37218printf "%s\n" "yes" >&6; }
37219    else
37220      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37221printf "%s\n" "no" >&6; }
37222    fi
37223  fi
37224  #
37225  if test "$tst_compi_fsetxattr" = "yes"; then
37226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
37227printf %s "checking if fsetxattr usage allowed... " >&6; }
37228    if test "x$curl_disallow_fsetxattr" != "xyes"; then
37229      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37230printf "%s\n" "yes" >&6; }
37231      tst_allow_fsetxattr="yes"
37232    else
37233      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37234printf "%s\n" "no" >&6; }
37235      tst_allow_fsetxattr="no"
37236    fi
37237  fi
37238  #
37239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
37240printf %s "checking if fsetxattr might be used... " >&6; }
37241  if test "$tst_links_fsetxattr" = "yes" &&
37242     test "$tst_proto_fsetxattr" = "yes" &&
37243     test "$tst_compi_fsetxattr" = "yes" &&
37244     test "$tst_allow_fsetxattr" = "yes"; then
37245    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37246printf "%s\n" "yes" >&6; }
37247
37248printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
37249
37250            #
37251    if test "$tst_nargs_fsetxattr" -eq "5"; then
37252
37253printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
37254
37255    elif test "$tst_nargs_fsetxattr" -eq "6"; then
37256
37257printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
37258
37259    fi
37260    #
37261    curl_cv_func_fsetxattr="yes"
37262  else
37263    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37264printf "%s\n" "no" >&6; }
37265    curl_cv_func_fsetxattr="no"
37266  fi
37267
37268
37269    #
37270  tst_links_ftruncate="unknown"
37271  tst_proto_ftruncate="unknown"
37272  tst_compi_ftruncate="unknown"
37273  tst_allow_ftruncate="unknown"
37274  #
37275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37276printf %s "checking if ftruncate can be linked... " >&6; }
37277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37278/* end confdefs.h.  */
37279
37280
37281#define ftruncate innocuous_ftruncate
37282#ifdef __STDC__
37283# include <limits.h>
37284#else
37285# include <assert.h>
37286#endif
37287#undef ftruncate
37288#ifdef __cplusplus
37289extern "C"
37290#endif
37291char ftruncate ();
37292#if defined __stub_ftruncate || defined __stub___ftruncate
37293choke me
37294#endif
37295
37296int main (void)
37297{
37298return ftruncate ();
37299 ;
37300 return 0;
37301}
37302
37303_ACEOF
37304if ac_fn_c_try_link "$LINENO"
37305then :
37306
37307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37308printf "%s\n" "yes" >&6; }
37309    tst_links_ftruncate="yes"
37310
37311else $as_nop
37312
37313    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37314printf "%s\n" "no" >&6; }
37315    tst_links_ftruncate="no"
37316
37317fi
37318rm -f core conftest.err conftest.$ac_objext conftest.beam \
37319    conftest$ac_exeext conftest.$ac_ext
37320  #
37321  if test "$tst_links_ftruncate" = "yes"; then
37322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37323printf %s "checking if ftruncate is prototyped... " >&6; }
37324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37325/* end confdefs.h.  */
37326
37327      $curl_includes_unistd
37328
37329_ACEOF
37330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37331  $EGREP "ftruncate" >/dev/null 2>&1
37332then :
37333
37334      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37335printf "%s\n" "yes" >&6; }
37336      tst_proto_ftruncate="yes"
37337
37338else $as_nop
37339
37340      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37341printf "%s\n" "no" >&6; }
37342      tst_proto_ftruncate="no"
37343
37344fi
37345rm -rf conftest*
37346
37347  fi
37348  #
37349  if test "$tst_proto_ftruncate" = "yes"; then
37350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37351printf %s "checking if ftruncate is compilable... " >&6; }
37352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37353/* end confdefs.h.  */
37354
37355
37356        $curl_includes_unistd
37357
37358int main (void)
37359{
37360
37361        if(0 != ftruncate(0, 0))
37362          return 1;
37363
37364 ;
37365 return 0;
37366}
37367
37368_ACEOF
37369if ac_fn_c_try_compile "$LINENO"
37370then :
37371
37372      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37373printf "%s\n" "yes" >&6; }
37374      tst_compi_ftruncate="yes"
37375
37376else $as_nop
37377
37378      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37379printf "%s\n" "no" >&6; }
37380      tst_compi_ftruncate="no"
37381
37382fi
37383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37384  fi
37385  #
37386  if test "$tst_compi_ftruncate" = "yes"; then
37387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37388printf %s "checking if ftruncate usage allowed... " >&6; }
37389    if test "x$curl_disallow_ftruncate" != "xyes"; then
37390      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37391printf "%s\n" "yes" >&6; }
37392      tst_allow_ftruncate="yes"
37393    else
37394      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37395printf "%s\n" "no" >&6; }
37396      tst_allow_ftruncate="no"
37397    fi
37398  fi
37399  #
37400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37401printf %s "checking if ftruncate might be used... " >&6; }
37402  if test "$tst_links_ftruncate" = "yes" &&
37403     test "$tst_proto_ftruncate" = "yes" &&
37404     test "$tst_compi_ftruncate" = "yes" &&
37405     test "$tst_allow_ftruncate" = "yes"; then
37406    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37407printf "%s\n" "yes" >&6; }
37408
37409printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37410
37411    curl_cv_func_ftruncate="yes"
37412  else
37413    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37414printf "%s\n" "no" >&6; }
37415    curl_cv_func_ftruncate="no"
37416  fi
37417
37418
37419curl_includes_stdlib="\
37420/* includes start */
37421#ifdef HAVE_SYS_TYPES_H
37422#  include <sys/types.h>
37423#endif
37424#ifdef HAVE_STDLIB_H
37425#  include <stdlib.h>
37426#endif
37427/* includes end */"
37428  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37429"
37430if test "x$ac_cv_header_sys_types_h" = xyes
37431then :
37432  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37433
37434fi
37435ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37436"
37437if test "x$ac_cv_header_stdlib_h" = xyes
37438then :
37439  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37440
37441fi
37442
37443
37444
37445              #
37446  tst_links_getaddrinfo="unknown"
37447  tst_proto_getaddrinfo="unknown"
37448  tst_compi_getaddrinfo="unknown"
37449  tst_works_getaddrinfo="unknown"
37450  tst_allow_getaddrinfo="unknown"
37451  tst_tsafe_getaddrinfo="unknown"
37452  #
37453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37454printf %s "checking if getaddrinfo can be linked... " >&6; }
37455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37456/* end confdefs.h.  */
37457
37458
37459      $curl_includes_ws2tcpip
37460      $curl_includes_sys_socket
37461      $curl_includes_netdb
37462
37463int main (void)
37464{
37465
37466      if(0 != getaddrinfo(0, 0, 0, 0))
37467        return 1;
37468
37469 ;
37470 return 0;
37471}
37472
37473_ACEOF
37474if ac_fn_c_try_link "$LINENO"
37475then :
37476
37477    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37478printf "%s\n" "yes" >&6; }
37479    tst_links_getaddrinfo="yes"
37480
37481else $as_nop
37482
37483    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37484printf "%s\n" "no" >&6; }
37485    tst_links_getaddrinfo="no"
37486
37487fi
37488rm -f core conftest.err conftest.$ac_objext conftest.beam \
37489    conftest$ac_exeext conftest.$ac_ext
37490  #
37491  if test "$tst_links_getaddrinfo" = "yes"; then
37492    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37493printf %s "checking if getaddrinfo is prototyped... " >&6; }
37494    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37495/* end confdefs.h.  */
37496
37497      $curl_includes_ws2tcpip
37498      $curl_includes_sys_socket
37499      $curl_includes_netdb
37500
37501_ACEOF
37502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37503  $EGREP "getaddrinfo" >/dev/null 2>&1
37504then :
37505
37506      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37507printf "%s\n" "yes" >&6; }
37508      tst_proto_getaddrinfo="yes"
37509
37510else $as_nop
37511
37512      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37513printf "%s\n" "no" >&6; }
37514      tst_proto_getaddrinfo="no"
37515
37516fi
37517rm -rf conftest*
37518
37519  fi
37520  #
37521  if test "$tst_proto_getaddrinfo" = "yes"; then
37522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37523printf %s "checking if getaddrinfo is compilable... " >&6; }
37524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37525/* end confdefs.h.  */
37526
37527
37528        $curl_includes_ws2tcpip
37529        $curl_includes_sys_socket
37530        $curl_includes_netdb
37531
37532int main (void)
37533{
37534
37535        if(0 != getaddrinfo(0, 0, 0, 0))
37536          return 1;
37537
37538 ;
37539 return 0;
37540}
37541
37542_ACEOF
37543if ac_fn_c_try_compile "$LINENO"
37544then :
37545
37546      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37547printf "%s\n" "yes" >&6; }
37548      tst_compi_getaddrinfo="yes"
37549
37550else $as_nop
37551
37552      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37553printf "%s\n" "no" >&6; }
37554      tst_compi_getaddrinfo="no"
37555
37556fi
37557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37558  fi
37559  #
37560    if test "x$cross_compiling" != "xyes" &&
37561    test "$tst_compi_getaddrinfo" = "yes"; then
37562    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37563printf %s "checking if getaddrinfo seems to work... " >&6; }
37564
37565   case $host_os in
37566     darwin*)
37567      if test "$cross_compiling" = yes
37568then :
37569  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37571as_fn_error $? "cannot run test program while cross compiling
37572See \`config.log' for more details" "$LINENO" 5; }
37573else $as_nop
37574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37575/* end confdefs.h.  */
37576
37577
37578        $curl_includes_ws2tcpip
37579        $curl_includes_stdlib
37580        $curl_includes_string
37581        $curl_includes_sys_socket
37582        $curl_includes_netdb
37583
37584int main (void)
37585{
37586
37587        struct addrinfo hints;
37588        struct addrinfo *ai = 0;
37589        int error;
37590
37591        #ifdef HAVE_WINSOCK2_H
37592        WSADATA wsa;
37593        if (WSAStartup(MAKEWORD(2,2), &wsa))
37594                exit(2);
37595        #endif
37596
37597        memset(&hints, 0, sizeof(hints));
37598        hints.ai_flags = AI_NUMERICHOST;
37599        hints.ai_family = AF_UNSPEC;
37600        hints.ai_socktype = SOCK_STREAM;
37601        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37602        if(error || !ai)
37603          exit(1); /* fail */
37604        else
37605          exit(0);
37606
37607 ;
37608 return 0;
37609}
37610
37611_ACEOF
37612if ac_fn_c_try_run "$LINENO"
37613then :
37614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37615printf "%s\n" "yes" >&6; }
37616      tst_works_getaddrinfo="yes"
37617
37618else $as_nop
37619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620printf "%s\n" "no" >&6; }
37621      tst_works_getaddrinfo="no"
37622
37623fi
37624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37625  conftest.$ac_objext conftest.beam conftest.$ac_ext
37626fi
37627
37628     ;;
37629     *)
37630      old=$LD_LIBRARY_PATH
37631      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37632      export LD_LIBRARY_PATH
37633      if test "$cross_compiling" = yes
37634then :
37635  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37636printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37637as_fn_error $? "cannot run test program while cross compiling
37638See \`config.log' for more details" "$LINENO" 5; }
37639else $as_nop
37640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37641/* end confdefs.h.  */
37642
37643
37644        $curl_includes_ws2tcpip
37645        $curl_includes_stdlib
37646        $curl_includes_string
37647        $curl_includes_sys_socket
37648        $curl_includes_netdb
37649
37650int main (void)
37651{
37652
37653        struct addrinfo hints;
37654        struct addrinfo *ai = 0;
37655        int error;
37656
37657        #ifdef HAVE_WINSOCK2_H
37658        WSADATA wsa;
37659        if (WSAStartup(MAKEWORD(2,2), &wsa))
37660                exit(2);
37661        #endif
37662
37663        memset(&hints, 0, sizeof(hints));
37664        hints.ai_flags = AI_NUMERICHOST;
37665        hints.ai_family = AF_UNSPEC;
37666        hints.ai_socktype = SOCK_STREAM;
37667        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37668        if(error || !ai)
37669          exit(1); /* fail */
37670        else
37671          exit(0);
37672
37673 ;
37674 return 0;
37675}
37676
37677_ACEOF
37678if ac_fn_c_try_run "$LINENO"
37679then :
37680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37681printf "%s\n" "yes" >&6; }
37682      tst_works_getaddrinfo="yes"
37683
37684else $as_nop
37685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37686printf "%s\n" "no" >&6; }
37687      tst_works_getaddrinfo="no"
37688
37689fi
37690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37691  conftest.$ac_objext conftest.beam conftest.$ac_ext
37692fi
37693
37694      LD_LIBRARY_PATH=$old # restore
37695     ;;
37696   esac
37697
37698  fi
37699  #
37700  if test "$tst_compi_getaddrinfo" = "yes" &&
37701    test "$tst_works_getaddrinfo" != "no"; then
37702    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37703printf %s "checking if getaddrinfo usage allowed... " >&6; }
37704    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37705      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37706printf "%s\n" "yes" >&6; }
37707      tst_allow_getaddrinfo="yes"
37708    else
37709      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37710printf "%s\n" "no" >&6; }
37711      tst_allow_getaddrinfo="no"
37712    fi
37713  fi
37714  #
37715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37716printf %s "checking if getaddrinfo might be used... " >&6; }
37717  if test "$tst_links_getaddrinfo" = "yes" &&
37718     test "$tst_proto_getaddrinfo" = "yes" &&
37719     test "$tst_compi_getaddrinfo" = "yes" &&
37720     test "$tst_allow_getaddrinfo" = "yes" &&
37721     test "$tst_works_getaddrinfo" != "no"; then
37722    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37723printf "%s\n" "yes" >&6; }
37724
37725printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37726
37727    curl_cv_func_getaddrinfo="yes"
37728  else
37729    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37730printf "%s\n" "no" >&6; }
37731    curl_cv_func_getaddrinfo="no"
37732    curl_cv_func_getaddrinfo_threadsafe="no"
37733  fi
37734  #
37735  if test "$curl_cv_func_getaddrinfo" = "yes"; then
37736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37737printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37738    case $host_os in
37739      aix[1234].* | aix5.[01].*)
37740                tst_tsafe_getaddrinfo="no"
37741        ;;
37742      aix*)
37743                tst_tsafe_getaddrinfo="yes"
37744        ;;
37745      darwin[12345].*)
37746                tst_tsafe_getaddrinfo="no"
37747        ;;
37748      darwin*)
37749                tst_tsafe_getaddrinfo="yes"
37750        ;;
37751      freebsd[1234].* | freebsd5.[1234]*)
37752                tst_tsafe_getaddrinfo="no"
37753        ;;
37754      freebsd*)
37755                tst_tsafe_getaddrinfo="yes"
37756        ;;
37757      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37758                tst_tsafe_getaddrinfo="no"
37759        ;;
37760      hpux*)
37761                tst_tsafe_getaddrinfo="yes"
37762        ;;
37763      midnightbsd*)
37764                tst_tsafe_getaddrinfo="yes"
37765        ;;
37766      netbsd[123].*)
37767                tst_tsafe_getaddrinfo="no"
37768        ;;
37769      netbsd*)
37770                tst_tsafe_getaddrinfo="yes"
37771        ;;
37772      *bsd*)
37773                tst_tsafe_getaddrinfo="no"
37774        ;;
37775      solaris2*)
37776                tst_tsafe_getaddrinfo="yes"
37777        ;;
37778    esac
37779    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37780       test "$curl_cv_native_windows" = "yes"; then
37781      tst_tsafe_getaddrinfo="yes"
37782    fi
37783    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37784
37785
37786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37787/* end confdefs.h.  */
37788
37789
37790        $curl_includes_sys_socket
37791        $curl_includes_netdb
37792
37793int main (void)
37794{
37795#ifdef h_errno
37796  return 0;
37797#else
37798  force compilation error
37799#endif
37800}
37801
37802
37803_ACEOF
37804if ac_fn_c_try_compile "$LINENO"
37805then :
37806
37807    tst_symbol_defined="yes"
37808
37809else $as_nop
37810
37811    tst_symbol_defined="no"
37812
37813fi
37814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37815  if test "$tst_symbol_defined" = "yes"; then
37816    curl_cv_have_def_h_errno=yes
37817
37818  else
37819    curl_cv_have_def_h_errno=no
37820
37821  fi
37822
37823      if test "$curl_cv_have_def_h_errno" = "yes"; then
37824        tst_h_errno_macro="yes"
37825      else
37826        tst_h_errno_macro="no"
37827      fi
37828      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37829/* end confdefs.h.  */
37830
37831
37832          $curl_includes_sys_socket
37833          $curl_includes_netdb
37834
37835int main (void)
37836{
37837
37838          h_errno = 2;
37839          if(0 != h_errno)
37840            return 1;
37841
37842 ;
37843 return 0;
37844}
37845
37846_ACEOF
37847if ac_fn_c_try_compile "$LINENO"
37848then :
37849
37850        tst_h_errno_modifiable_lvalue="yes"
37851
37852else $as_nop
37853
37854        tst_h_errno_modifiable_lvalue="no"
37855
37856fi
37857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37858      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37859/* end confdefs.h.  */
37860
37861
37862
37863int main (void)
37864{
37865
37866#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37867          return 0;
37868#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37869          return 0;
37870#else
37871          force compilation error
37872#endif
37873
37874 ;
37875 return 0;
37876}
37877
37878_ACEOF
37879if ac_fn_c_try_compile "$LINENO"
37880then :
37881
37882        tst_h_errno_sbs_issue_7="yes"
37883
37884else $as_nop
37885
37886        tst_h_errno_sbs_issue_7="no"
37887
37888fi
37889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37890      if test "$tst_h_errno_macro" = "no" &&
37891         test "$tst_h_errno_modifiable_lvalue" = "no" &&
37892         test "$tst_h_errno_sbs_issue_7" = "no"; then
37893        tst_tsafe_getaddrinfo="no"
37894      else
37895        tst_tsafe_getaddrinfo="yes"
37896      fi
37897    fi
37898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37899printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37900    if test "$tst_tsafe_getaddrinfo" = "yes"; then
37901
37902printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37903
37904      curl_cv_func_getaddrinfo_threadsafe="yes"
37905    else
37906      curl_cv_func_getaddrinfo_threadsafe="no"
37907    fi
37908  fi
37909
37910
37911      #
37912  tst_links_gethostbyname="unknown"
37913  tst_proto_gethostbyname="unknown"
37914  tst_compi_gethostbyname="unknown"
37915  tst_allow_gethostbyname="unknown"
37916  #
37917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37918printf %s "checking if gethostbyname can be linked... " >&6; }
37919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37920/* end confdefs.h.  */
37921
37922
37923      $curl_includes_winsock2
37924      $curl_includes_bsdsocket
37925      $curl_includes_netdb
37926
37927int main (void)
37928{
37929
37930      if(0 != gethostbyname(0))
37931        return 1;
37932
37933 ;
37934 return 0;
37935}
37936
37937_ACEOF
37938if ac_fn_c_try_link "$LINENO"
37939then :
37940
37941    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37942printf "%s\n" "yes" >&6; }
37943    tst_links_gethostbyname="yes"
37944
37945else $as_nop
37946
37947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37948printf "%s\n" "no" >&6; }
37949    tst_links_gethostbyname="no"
37950
37951fi
37952rm -f core conftest.err conftest.$ac_objext conftest.beam \
37953    conftest$ac_exeext conftest.$ac_ext
37954  #
37955  if test "$tst_links_gethostbyname" = "yes"; then
37956    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37957printf %s "checking if gethostbyname is prototyped... " >&6; }
37958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37959/* end confdefs.h.  */
37960
37961      $curl_includes_winsock2
37962      $curl_includes_bsdsocket
37963      $curl_includes_netdb
37964
37965_ACEOF
37966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37967  $EGREP "gethostbyname" >/dev/null 2>&1
37968then :
37969
37970      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37971printf "%s\n" "yes" >&6; }
37972      tst_proto_gethostbyname="yes"
37973
37974else $as_nop
37975
37976      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37977printf "%s\n" "no" >&6; }
37978      tst_proto_gethostbyname="no"
37979
37980fi
37981rm -rf conftest*
37982
37983  fi
37984  #
37985  if test "$tst_proto_gethostbyname" = "yes"; then
37986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37987printf %s "checking if gethostbyname is compilable... " >&6; }
37988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37989/* end confdefs.h.  */
37990
37991
37992        $curl_includes_winsock2
37993        $curl_includes_bsdsocket
37994        $curl_includes_netdb
37995
37996int main (void)
37997{
37998
37999        if(0 != gethostbyname(0))
38000          return 1;
38001
38002 ;
38003 return 0;
38004}
38005
38006_ACEOF
38007if ac_fn_c_try_compile "$LINENO"
38008then :
38009
38010      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38011printf "%s\n" "yes" >&6; }
38012      tst_compi_gethostbyname="yes"
38013
38014else $as_nop
38015
38016      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38017printf "%s\n" "no" >&6; }
38018      tst_compi_gethostbyname="no"
38019
38020fi
38021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38022  fi
38023  #
38024  if test "$tst_compi_gethostbyname" = "yes"; then
38025    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
38026printf %s "checking if gethostbyname usage allowed... " >&6; }
38027    if test "x$curl_disallow_gethostbyname" != "xyes"; then
38028      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38029printf "%s\n" "yes" >&6; }
38030      tst_allow_gethostbyname="yes"
38031    else
38032      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38033printf "%s\n" "no" >&6; }
38034      tst_allow_gethostbyname="no"
38035    fi
38036  fi
38037  #
38038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
38039printf %s "checking if gethostbyname might be used... " >&6; }
38040  if test "$tst_links_gethostbyname" = "yes" &&
38041     test "$tst_proto_gethostbyname" = "yes" &&
38042     test "$tst_compi_gethostbyname" = "yes" &&
38043     test "$tst_allow_gethostbyname" = "yes"; then
38044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38045printf "%s\n" "yes" >&6; }
38046
38047printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
38048
38049    curl_cv_func_gethostbyname="yes"
38050  else
38051    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38052printf "%s\n" "no" >&6; }
38053    curl_cv_func_gethostbyname="no"
38054  fi
38055
38056
38057    #
38058  tst_links_gethostbyname_r="unknown"
38059  tst_proto_gethostbyname_r="unknown"
38060  tst_compi_gethostbyname_r="unknown"
38061  tst_allow_gethostbyname_r="unknown"
38062  tst_nargs_gethostbyname_r="unknown"
38063  #
38064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
38065printf %s "checking if gethostbyname_r can be linked... " >&6; }
38066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38067/* end confdefs.h.  */
38068
38069
38070#define gethostbyname_r innocuous_gethostbyname_r
38071#ifdef __STDC__
38072# include <limits.h>
38073#else
38074# include <assert.h>
38075#endif
38076#undef gethostbyname_r
38077#ifdef __cplusplus
38078extern "C"
38079#endif
38080char gethostbyname_r ();
38081#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38082choke me
38083#endif
38084
38085int main (void)
38086{
38087return gethostbyname_r ();
38088 ;
38089 return 0;
38090}
38091
38092_ACEOF
38093if ac_fn_c_try_link "$LINENO"
38094then :
38095
38096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38097printf "%s\n" "yes" >&6; }
38098    tst_links_gethostbyname_r="yes"
38099
38100else $as_nop
38101
38102    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38103printf "%s\n" "no" >&6; }
38104    tst_links_gethostbyname_r="no"
38105
38106fi
38107rm -f core conftest.err conftest.$ac_objext conftest.beam \
38108    conftest$ac_exeext conftest.$ac_ext
38109  #
38110  if test "$tst_links_gethostbyname_r" = "yes"; then
38111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
38112printf %s "checking if gethostbyname_r is prototyped... " >&6; }
38113    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38114/* end confdefs.h.  */
38115
38116      $curl_includes_netdb
38117
38118_ACEOF
38119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38120  $EGREP "gethostbyname_r" >/dev/null 2>&1
38121then :
38122
38123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38124printf "%s\n" "yes" >&6; }
38125      tst_proto_gethostbyname_r="yes"
38126
38127else $as_nop
38128
38129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38130printf "%s\n" "no" >&6; }
38131      tst_proto_gethostbyname_r="no"
38132
38133fi
38134rm -rf conftest*
38135
38136  fi
38137  #
38138  if test "$tst_proto_gethostbyname_r" = "yes"; then
38139    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38140      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
38141printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
38142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38143/* end confdefs.h.  */
38144
38145
38146          $curl_includes_netdb
38147          $curl_includes_bsdsocket
38148
38149int main (void)
38150{
38151
38152          if(0 != gethostbyname_r(0, 0, 0))
38153            return 1;
38154
38155 ;
38156 return 0;
38157}
38158
38159_ACEOF
38160if ac_fn_c_try_compile "$LINENO"
38161then :
38162
38163        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38164printf "%s\n" "yes" >&6; }
38165        tst_compi_gethostbyname_r="yes"
38166        tst_nargs_gethostbyname_r="3"
38167
38168else $as_nop
38169
38170        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38171printf "%s\n" "no" >&6; }
38172        tst_compi_gethostbyname_r="no"
38173
38174fi
38175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38176    fi
38177    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38178      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
38179printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
38180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38181/* end confdefs.h.  */
38182
38183
38184          $curl_includes_netdb
38185          $curl_includes_bsdsocket
38186
38187int main (void)
38188{
38189
38190          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
38191            return 1;
38192
38193 ;
38194 return 0;
38195}
38196
38197_ACEOF
38198if ac_fn_c_try_compile "$LINENO"
38199then :
38200
38201        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38202printf "%s\n" "yes" >&6; }
38203        tst_compi_gethostbyname_r="yes"
38204        tst_nargs_gethostbyname_r="5"
38205
38206else $as_nop
38207
38208        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38209printf "%s\n" "no" >&6; }
38210        tst_compi_gethostbyname_r="no"
38211
38212fi
38213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38214    fi
38215    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38216      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
38217printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
38218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38219/* end confdefs.h.  */
38220
38221
38222          $curl_includes_netdb
38223          $curl_includes_bsdsocket
38224
38225int main (void)
38226{
38227
38228          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
38229            return 1;
38230
38231 ;
38232 return 0;
38233}
38234
38235_ACEOF
38236if ac_fn_c_try_compile "$LINENO"
38237then :
38238
38239        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38240printf "%s\n" "yes" >&6; }
38241        tst_compi_gethostbyname_r="yes"
38242        tst_nargs_gethostbyname_r="6"
38243
38244else $as_nop
38245
38246        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38247printf "%s\n" "no" >&6; }
38248        tst_compi_gethostbyname_r="no"
38249
38250fi
38251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38252    fi
38253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
38254printf %s "checking if gethostbyname_r is compilable... " >&6; }
38255    if test "$tst_compi_gethostbyname_r" = "yes"; then
38256      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38257printf "%s\n" "yes" >&6; }
38258    else
38259      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38260printf "%s\n" "no" >&6; }
38261    fi
38262  fi
38263  #
38264  if test "$tst_compi_gethostbyname_r" = "yes"; then
38265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
38266printf %s "checking if gethostbyname_r usage allowed... " >&6; }
38267    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
38268      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38269printf "%s\n" "yes" >&6; }
38270      tst_allow_gethostbyname_r="yes"
38271    else
38272      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38273printf "%s\n" "no" >&6; }
38274      tst_allow_gethostbyname_r="no"
38275    fi
38276  fi
38277  #
38278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38279printf %s "checking if gethostbyname_r might be used... " >&6; }
38280  if test "$tst_links_gethostbyname_r" = "yes" &&
38281     test "$tst_proto_gethostbyname_r" = "yes" &&
38282     test "$tst_compi_gethostbyname_r" = "yes" &&
38283     test "$tst_allow_gethostbyname_r" = "yes"; then
38284    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38285printf "%s\n" "yes" >&6; }
38286
38287printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38288
38289            #
38290    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38291
38292printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38293
38294    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38295
38296printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38297
38298    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38299
38300printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38301
38302    fi
38303    #
38304    curl_cv_func_gethostbyname_r="yes"
38305  else
38306    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38307printf "%s\n" "no" >&6; }
38308    curl_cv_func_gethostbyname_r="no"
38309  fi
38310
38311
38312curl_preprocess_callconv="\
38313/* preprocess start */
38314#ifdef HAVE_WINDOWS_H
38315#  define FUNCALLCONV __stdcall
38316#else
38317#  define FUNCALLCONV
38318#endif
38319/* preprocess end */"
38320
38321
38322          #
38323  tst_links_gethostname="unknown"
38324  tst_proto_gethostname="unknown"
38325  tst_compi_gethostname="unknown"
38326  tst_allow_gethostname="unknown"
38327  #
38328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38329printf %s "checking if gethostname can be linked... " >&6; }
38330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38331/* end confdefs.h.  */
38332
38333
38334      $curl_includes_winsock2
38335      $curl_includes_unistd
38336      $curl_includes_bsdsocket
38337
38338int main (void)
38339{
38340
38341      if(0 != gethostname(0, 0))
38342        return 1;
38343
38344 ;
38345 return 0;
38346}
38347
38348_ACEOF
38349if ac_fn_c_try_link "$LINENO"
38350then :
38351
38352    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38353printf "%s\n" "yes" >&6; }
38354    tst_links_gethostname="yes"
38355
38356else $as_nop
38357
38358    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38359printf "%s\n" "no" >&6; }
38360    tst_links_gethostname="no"
38361
38362fi
38363rm -f core conftest.err conftest.$ac_objext conftest.beam \
38364    conftest$ac_exeext conftest.$ac_ext
38365  #
38366  if test "$tst_links_gethostname" = "yes"; then
38367    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38368printf %s "checking if gethostname is prototyped... " >&6; }
38369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38370/* end confdefs.h.  */
38371
38372      $curl_includes_winsock2
38373      $curl_includes_unistd
38374      $curl_includes_bsdsocket
38375
38376_ACEOF
38377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38378  $EGREP "gethostname" >/dev/null 2>&1
38379then :
38380
38381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38382printf "%s\n" "yes" >&6; }
38383      tst_proto_gethostname="yes"
38384
38385else $as_nop
38386
38387      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38388printf "%s\n" "no" >&6; }
38389      tst_proto_gethostname="no"
38390
38391fi
38392rm -rf conftest*
38393
38394  fi
38395  #
38396  if test "$tst_proto_gethostname" = "yes"; then
38397    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38398printf %s "checking if gethostname is compilable... " >&6; }
38399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38400/* end confdefs.h.  */
38401
38402
38403        $curl_includes_winsock2
38404        $curl_includes_unistd
38405        $curl_includes_bsdsocket
38406
38407int main (void)
38408{
38409
38410        if(0 != gethostname(0, 0))
38411          return 1;
38412
38413 ;
38414 return 0;
38415}
38416
38417_ACEOF
38418if ac_fn_c_try_compile "$LINENO"
38419then :
38420
38421      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38422printf "%s\n" "yes" >&6; }
38423      tst_compi_gethostname="yes"
38424
38425else $as_nop
38426
38427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38428printf "%s\n" "no" >&6; }
38429      tst_compi_gethostname="no"
38430
38431fi
38432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38433  fi
38434  #
38435  if test "$tst_compi_gethostname" = "yes"; then
38436    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38437printf %s "checking for gethostname arg 2 data type... " >&6; }
38438    tst_gethostname_type_arg2="unknown"
38439    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38440      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38441        if test "$tst_gethostname_type_arg2" = "unknown"; then
38442          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38443/* end confdefs.h.  */
38444
38445
38446              $curl_includes_winsock2
38447              $curl_includes_unistd
38448              $curl_includes_bsdsocket
38449              $curl_preprocess_callconv
38450              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38451
38452int main (void)
38453{
38454
38455              if(0 != gethostname(0, 0))
38456                return 1;
38457
38458 ;
38459 return 0;
38460}
38461
38462_ACEOF
38463if ac_fn_c_try_compile "$LINENO"
38464then :
38465
38466            tst_gethostname_type_arg2="$tst_arg2"
38467
38468fi
38469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38470        fi
38471      done
38472    done
38473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38474printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38475    if test "$tst_gethostname_type_arg2" != "unknown"; then
38476
38477printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38478
38479    fi
38480  fi
38481  #
38482  if test "$tst_compi_gethostname" = "yes"; then
38483    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38484printf %s "checking if gethostname usage allowed... " >&6; }
38485    if test "x$curl_disallow_gethostname" != "xyes"; then
38486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38487printf "%s\n" "yes" >&6; }
38488      tst_allow_gethostname="yes"
38489    else
38490      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38491printf "%s\n" "no" >&6; }
38492      tst_allow_gethostname="no"
38493    fi
38494  fi
38495  #
38496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38497printf %s "checking if gethostname might be used... " >&6; }
38498  if test "$tst_links_gethostname" = "yes" &&
38499     test "$tst_proto_gethostname" = "yes" &&
38500     test "$tst_compi_gethostname" = "yes" &&
38501     test "$tst_allow_gethostname" = "yes"; then
38502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38503printf "%s\n" "yes" >&6; }
38504
38505printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38506
38507    curl_cv_func_gethostname="yes"
38508  else
38509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38510printf "%s\n" "no" >&6; }
38511    curl_cv_func_gethostname="no"
38512  fi
38513
38514
38515          #
38516  tst_links_getpeername="unknown"
38517  tst_proto_getpeername="unknown"
38518  tst_compi_getpeername="unknown"
38519  tst_allow_getpeername="unknown"
38520  #
38521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38522printf %s "checking if getpeername can be linked... " >&6; }
38523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38524/* end confdefs.h.  */
38525
38526
38527      $curl_includes_winsock2
38528      $curl_includes_bsdsocket
38529      $curl_includes_sys_socket
38530
38531int main (void)
38532{
38533
38534      if(0 != getpeername(0, (void *)0, (void *)0))
38535        return 1;
38536
38537 ;
38538 return 0;
38539}
38540
38541_ACEOF
38542if ac_fn_c_try_link "$LINENO"
38543then :
38544
38545    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38546printf "%s\n" "yes" >&6; }
38547    tst_links_getpeername="yes"
38548
38549else $as_nop
38550
38551    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38552printf "%s\n" "no" >&6; }
38553    tst_links_getpeername="no"
38554
38555fi
38556rm -f core conftest.err conftest.$ac_objext conftest.beam \
38557    conftest$ac_exeext conftest.$ac_ext
38558  #
38559  if test "$tst_links_getpeername" = "yes"; then
38560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38561printf %s "checking if getpeername is prototyped... " >&6; }
38562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38563/* end confdefs.h.  */
38564
38565      $curl_includes_winsock2
38566      $curl_includes_bsdsocket
38567      $curl_includes_sys_socket
38568
38569_ACEOF
38570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38571  $EGREP "getpeername" >/dev/null 2>&1
38572then :
38573
38574      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38575printf "%s\n" "yes" >&6; }
38576      tst_proto_getpeername="yes"
38577
38578else $as_nop
38579
38580      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38581printf "%s\n" "no" >&6; }
38582      tst_proto_getpeername="no"
38583
38584fi
38585rm -rf conftest*
38586
38587  fi
38588  #
38589  if test "$tst_proto_getpeername" = "yes"; then
38590    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38591printf %s "checking if getpeername is compilable... " >&6; }
38592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38593/* end confdefs.h.  */
38594
38595
38596        $curl_includes_winsock2
38597        $curl_includes_bsdsocket
38598        $curl_includes_sys_socket
38599
38600int main (void)
38601{
38602
38603        if(0 != getpeername(0, (void *)0, (void *)0))
38604          return 1;
38605
38606 ;
38607 return 0;
38608}
38609
38610_ACEOF
38611if ac_fn_c_try_compile "$LINENO"
38612then :
38613
38614      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38615printf "%s\n" "yes" >&6; }
38616      tst_compi_getpeername="yes"
38617
38618else $as_nop
38619
38620      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38621printf "%s\n" "no" >&6; }
38622      tst_compi_getpeername="no"
38623
38624fi
38625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38626  fi
38627  #
38628  if test "$tst_compi_getpeername" = "yes"; then
38629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38630printf %s "checking if getpeername usage allowed... " >&6; }
38631    if test "x$curl_disallow_getpeername" != "xyes"; then
38632      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38633printf "%s\n" "yes" >&6; }
38634      tst_allow_getpeername="yes"
38635    else
38636      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38637printf "%s\n" "no" >&6; }
38638      tst_allow_getpeername="no"
38639    fi
38640  fi
38641  #
38642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38643printf %s "checking if getpeername might be used... " >&6; }
38644  if test "$tst_links_getpeername" = "yes" &&
38645     test "$tst_proto_getpeername" = "yes" &&
38646     test "$tst_compi_getpeername" = "yes" &&
38647     test "$tst_allow_getpeername" = "yes"; then
38648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38649printf "%s\n" "yes" >&6; }
38650
38651printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38652
38653    curl_cv_func_getpeername="yes"
38654  else
38655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38656printf "%s\n" "no" >&6; }
38657    curl_cv_func_getpeername="no"
38658  fi
38659
38660
38661          #
38662  tst_links_getsockname="unknown"
38663  tst_proto_getsockname="unknown"
38664  tst_compi_getsockname="unknown"
38665  tst_allow_getsockname="unknown"
38666  #
38667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38668printf %s "checking if getsockname can be linked... " >&6; }
38669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38670/* end confdefs.h.  */
38671
38672
38673      $curl_includes_winsock2
38674      $curl_includes_bsdsocket
38675      $curl_includes_sys_socket
38676
38677int main (void)
38678{
38679
38680      if(0 != getsockname(0, (void *)0, (void *)0))
38681        return 1;
38682
38683 ;
38684 return 0;
38685}
38686
38687_ACEOF
38688if ac_fn_c_try_link "$LINENO"
38689then :
38690
38691    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38692printf "%s\n" "yes" >&6; }
38693    tst_links_getsockname="yes"
38694
38695else $as_nop
38696
38697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38698printf "%s\n" "no" >&6; }
38699    tst_links_getsockname="no"
38700
38701fi
38702rm -f core conftest.err conftest.$ac_objext conftest.beam \
38703    conftest$ac_exeext conftest.$ac_ext
38704  #
38705  if test "$tst_links_getsockname" = "yes"; then
38706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38707printf %s "checking if getsockname is prototyped... " >&6; }
38708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38709/* end confdefs.h.  */
38710
38711      $curl_includes_winsock2
38712      $curl_includes_bsdsocket
38713      $curl_includes_sys_socket
38714
38715_ACEOF
38716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38717  $EGREP "getsockname" >/dev/null 2>&1
38718then :
38719
38720      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38721printf "%s\n" "yes" >&6; }
38722      tst_proto_getsockname="yes"
38723
38724else $as_nop
38725
38726      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38727printf "%s\n" "no" >&6; }
38728      tst_proto_getsockname="no"
38729
38730fi
38731rm -rf conftest*
38732
38733  fi
38734  #
38735  if test "$tst_proto_getsockname" = "yes"; then
38736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38737printf %s "checking if getsockname is compilable... " >&6; }
38738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38739/* end confdefs.h.  */
38740
38741
38742        $curl_includes_winsock2
38743        $curl_includes_bsdsocket
38744        $curl_includes_sys_socket
38745
38746int main (void)
38747{
38748
38749        if(0 != getsockname(0, (void *)0, (void *)0))
38750          return 1;
38751
38752 ;
38753 return 0;
38754}
38755
38756_ACEOF
38757if ac_fn_c_try_compile "$LINENO"
38758then :
38759
38760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38761printf "%s\n" "yes" >&6; }
38762      tst_compi_getsockname="yes"
38763
38764else $as_nop
38765
38766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38767printf "%s\n" "no" >&6; }
38768      tst_compi_getsockname="no"
38769
38770fi
38771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38772  fi
38773  #
38774  if test "$tst_compi_getsockname" = "yes"; then
38775    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38776printf %s "checking if getsockname usage allowed... " >&6; }
38777    if test "x$curl_disallow_getsockname" != "xyes"; then
38778      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38779printf "%s\n" "yes" >&6; }
38780      tst_allow_getsockname="yes"
38781    else
38782      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38783printf "%s\n" "no" >&6; }
38784      tst_allow_getsockname="no"
38785    fi
38786  fi
38787  #
38788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38789printf %s "checking if getsockname might be used... " >&6; }
38790  if test "$tst_links_getsockname" = "yes" &&
38791     test "$tst_proto_getsockname" = "yes" &&
38792     test "$tst_compi_getsockname" = "yes" &&
38793     test "$tst_allow_getsockname" = "yes"; then
38794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38795printf "%s\n" "yes" >&6; }
38796
38797printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38798
38799    curl_cv_func_getsockname="yes"
38800  else
38801    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38802printf "%s\n" "no" >&6; }
38803    curl_cv_func_getsockname="no"
38804  fi
38805
38806
38807curl_includes_netif="\
38808/* includes start */
38809#ifdef HAVE_NET_IF_H
38810#  include <net/if.h>
38811#endif
38812/* includes end */"
38813  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38814"
38815if test "x$ac_cv_header_net_if_h" = xyes
38816then :
38817  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38818
38819fi
38820
38821
38822
38823        #
38824  tst_links_if_nametoindex="unknown"
38825  tst_proto_if_nametoindex="unknown"
38826  tst_compi_if_nametoindex="unknown"
38827  tst_allow_if_nametoindex="unknown"
38828  #
38829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38830printf %s "checking if if_nametoindex can be linked... " >&6; }
38831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38832/* end confdefs.h.  */
38833
38834
38835      $curl_includes_winsock2
38836      $curl_includes_bsdsocket
38837      #include <net/if.h>
38838
38839int main (void)
38840{
38841
38842      if(0 != if_nametoindex(""))
38843        return 1;
38844
38845 ;
38846 return 0;
38847}
38848
38849_ACEOF
38850if ac_fn_c_try_link "$LINENO"
38851then :
38852
38853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38854printf "%s\n" "yes" >&6; }
38855    tst_links_if_nametoindex="yes"
38856
38857else $as_nop
38858
38859    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38860printf "%s\n" "no" >&6; }
38861    tst_links_if_nametoindex="no"
38862
38863fi
38864rm -f core conftest.err conftest.$ac_objext conftest.beam \
38865    conftest$ac_exeext conftest.$ac_ext
38866  #
38867  if test "$tst_links_if_nametoindex" = "yes"; then
38868    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38869printf %s "checking if if_nametoindex is prototyped... " >&6; }
38870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38871/* end confdefs.h.  */
38872
38873      $curl_includes_winsock2
38874      $curl_includes_netif
38875
38876_ACEOF
38877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38878  $EGREP "if_nametoindex" >/dev/null 2>&1
38879then :
38880
38881      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38882printf "%s\n" "yes" >&6; }
38883      tst_proto_if_nametoindex="yes"
38884
38885else $as_nop
38886
38887      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38888printf "%s\n" "no" >&6; }
38889      tst_proto_if_nametoindex="no"
38890
38891fi
38892rm -rf conftest*
38893
38894  fi
38895  #
38896  if test "$tst_proto_if_nametoindex" = "yes"; then
38897    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38898printf %s "checking if if_nametoindex is compilable... " >&6; }
38899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38900/* end confdefs.h.  */
38901
38902
38903        $curl_includes_winsock2
38904        $curl_includes_netif
38905
38906int main (void)
38907{
38908
38909        if(0 != if_nametoindex(""))
38910          return 1;
38911
38912 ;
38913 return 0;
38914}
38915
38916_ACEOF
38917if ac_fn_c_try_compile "$LINENO"
38918then :
38919
38920      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38921printf "%s\n" "yes" >&6; }
38922      tst_compi_if_nametoindex="yes"
38923
38924else $as_nop
38925
38926      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38927printf "%s\n" "no" >&6; }
38928      tst_compi_if_nametoindex="no"
38929
38930fi
38931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38932  fi
38933  #
38934  if test "$tst_compi_if_nametoindex" = "yes"; then
38935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38936printf %s "checking if if_nametoindex usage allowed... " >&6; }
38937    if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38938      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38939printf "%s\n" "yes" >&6; }
38940      tst_allow_if_nametoindex="yes"
38941    else
38942      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38943printf "%s\n" "no" >&6; }
38944      tst_allow_if_nametoindex="no"
38945    fi
38946  fi
38947  #
38948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38949printf %s "checking if if_nametoindex might be used... " >&6; }
38950  if test "$tst_links_if_nametoindex" = "yes" &&
38951     test "$tst_proto_if_nametoindex" = "yes" &&
38952     test "$tst_compi_if_nametoindex" = "yes" &&
38953     test "$tst_allow_if_nametoindex" = "yes"; then
38954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38955printf "%s\n" "yes" >&6; }
38956
38957printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38958
38959    curl_cv_func_if_nametoindex="yes"
38960  else
38961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38962printf "%s\n" "no" >&6; }
38963    curl_cv_func_if_nametoindex="no"
38964  fi
38965
38966
38967curl_includes_ifaddrs="\
38968/* includes start */
38969#ifdef HAVE_SYS_TYPES_H
38970#  include <sys/types.h>
38971#endif
38972#ifdef HAVE_SYS_SOCKET_H
38973#  include <sys/socket.h>
38974#endif
38975#ifdef HAVE_NETINET_IN_H
38976#  include <netinet/in.h>
38977#endif
38978#ifdef HAVE_IFADDRS_H
38979#  include <ifaddrs.h>
38980#endif
38981/* includes end */"
38982  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38983"
38984if test "x$ac_cv_header_sys_types_h" = xyes
38985then :
38986  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38987
38988fi
38989ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38990"
38991if test "x$ac_cv_header_sys_socket_h" = xyes
38992then :
38993  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38994
38995fi
38996ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38997"
38998if test "x$ac_cv_header_netinet_in_h" = xyes
38999then :
39000  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39001
39002fi
39003ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
39004"
39005if test "x$ac_cv_header_ifaddrs_h" = xyes
39006then :
39007  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
39008
39009fi
39010
39011
39012
39013      #
39014  tst_links_getifaddrs="unknown"
39015  tst_proto_getifaddrs="unknown"
39016  tst_compi_getifaddrs="unknown"
39017  tst_works_getifaddrs="unknown"
39018  tst_allow_getifaddrs="unknown"
39019  #
39020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
39021printf %s "checking if getifaddrs can be linked... " >&6; }
39022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39023/* end confdefs.h.  */
39024
39025
39026#define getifaddrs innocuous_getifaddrs
39027#ifdef __STDC__
39028# include <limits.h>
39029#else
39030# include <assert.h>
39031#endif
39032#undef getifaddrs
39033#ifdef __cplusplus
39034extern "C"
39035#endif
39036char getifaddrs ();
39037#if defined __stub_getifaddrs || defined __stub___getifaddrs
39038choke me
39039#endif
39040
39041int main (void)
39042{
39043return getifaddrs ();
39044 ;
39045 return 0;
39046}
39047
39048_ACEOF
39049if ac_fn_c_try_link "$LINENO"
39050then :
39051
39052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39053printf "%s\n" "yes" >&6; }
39054    tst_links_getifaddrs="yes"
39055
39056else $as_nop
39057
39058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39059printf "%s\n" "no" >&6; }
39060    tst_links_getifaddrs="no"
39061
39062fi
39063rm -f core conftest.err conftest.$ac_objext conftest.beam \
39064    conftest$ac_exeext conftest.$ac_ext
39065  #
39066  if test "$tst_links_getifaddrs" = "yes"; then
39067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
39068printf %s "checking if getifaddrs is prototyped... " >&6; }
39069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39070/* end confdefs.h.  */
39071
39072      $curl_includes_ifaddrs
39073
39074_ACEOF
39075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39076  $EGREP "getifaddrs" >/dev/null 2>&1
39077then :
39078
39079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39080printf "%s\n" "yes" >&6; }
39081      tst_proto_getifaddrs="yes"
39082
39083else $as_nop
39084
39085      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086printf "%s\n" "no" >&6; }
39087      tst_proto_getifaddrs="no"
39088
39089fi
39090rm -rf conftest*
39091
39092  fi
39093  #
39094  if test "$tst_proto_getifaddrs" = "yes"; then
39095    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
39096printf %s "checking if getifaddrs is compilable... " >&6; }
39097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39098/* end confdefs.h.  */
39099
39100
39101        $curl_includes_ifaddrs
39102
39103int main (void)
39104{
39105
39106        if(0 != getifaddrs(0))
39107          return 1;
39108
39109 ;
39110 return 0;
39111}
39112
39113_ACEOF
39114if ac_fn_c_try_compile "$LINENO"
39115then :
39116
39117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39118printf "%s\n" "yes" >&6; }
39119      tst_compi_getifaddrs="yes"
39120
39121else $as_nop
39122
39123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39124printf "%s\n" "no" >&6; }
39125      tst_compi_getifaddrs="no"
39126
39127fi
39128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39129  fi
39130  #
39131    if test "x$cross_compiling" != "xyes" &&
39132    test "$tst_compi_getifaddrs" = "yes"; then
39133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
39134printf %s "checking if getifaddrs seems to work... " >&6; }
39135
39136   case $host_os in
39137     darwin*)
39138      if test "$cross_compiling" = yes
39139then :
39140  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39142as_fn_error $? "cannot run test program while cross compiling
39143See \`config.log' for more details" "$LINENO" 5; }
39144else $as_nop
39145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39146/* end confdefs.h.  */
39147
39148
39149        $curl_includes_stdlib
39150        $curl_includes_ifaddrs
39151
39152int main (void)
39153{
39154
39155        struct ifaddrs *ifa = 0;
39156        int error;
39157
39158        error = getifaddrs(&ifa);
39159        if(error || !ifa)
39160          exit(1); /* fail */
39161        else
39162          exit(0);
39163
39164 ;
39165 return 0;
39166}
39167
39168_ACEOF
39169if ac_fn_c_try_run "$LINENO"
39170then :
39171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39172printf "%s\n" "yes" >&6; }
39173      tst_works_getifaddrs="yes"
39174
39175else $as_nop
39176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39177printf "%s\n" "no" >&6; }
39178      tst_works_getifaddrs="no"
39179
39180fi
39181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39182  conftest.$ac_objext conftest.beam conftest.$ac_ext
39183fi
39184
39185     ;;
39186     *)
39187      old=$LD_LIBRARY_PATH
39188      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39189      export LD_LIBRARY_PATH
39190      if test "$cross_compiling" = yes
39191then :
39192  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39193printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39194as_fn_error $? "cannot run test program while cross compiling
39195See \`config.log' for more details" "$LINENO" 5; }
39196else $as_nop
39197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39198/* end confdefs.h.  */
39199
39200
39201        $curl_includes_stdlib
39202        $curl_includes_ifaddrs
39203
39204int main (void)
39205{
39206
39207        struct ifaddrs *ifa = 0;
39208        int error;
39209
39210        error = getifaddrs(&ifa);
39211        if(error || !ifa)
39212          exit(1); /* fail */
39213        else
39214          exit(0);
39215
39216 ;
39217 return 0;
39218}
39219
39220_ACEOF
39221if ac_fn_c_try_run "$LINENO"
39222then :
39223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39224printf "%s\n" "yes" >&6; }
39225      tst_works_getifaddrs="yes"
39226
39227else $as_nop
39228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39229printf "%s\n" "no" >&6; }
39230      tst_works_getifaddrs="no"
39231
39232fi
39233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39234  conftest.$ac_objext conftest.beam conftest.$ac_ext
39235fi
39236
39237      LD_LIBRARY_PATH=$old # restore
39238     ;;
39239   esac
39240
39241  fi
39242  #
39243  if test "$tst_compi_getifaddrs" = "yes" &&
39244    test "$tst_works_getifaddrs" != "no"; then
39245    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
39246printf %s "checking if getifaddrs usage allowed... " >&6; }
39247    if test "x$curl_disallow_getifaddrs" != "xyes"; then
39248      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39249printf "%s\n" "yes" >&6; }
39250      tst_allow_getifaddrs="yes"
39251    else
39252      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39253printf "%s\n" "no" >&6; }
39254      tst_allow_getifaddrs="no"
39255    fi
39256  fi
39257  #
39258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
39259printf %s "checking if getifaddrs might be used... " >&6; }
39260  if test "$tst_links_getifaddrs" = "yes" &&
39261     test "$tst_proto_getifaddrs" = "yes" &&
39262     test "$tst_compi_getifaddrs" = "yes" &&
39263     test "$tst_allow_getifaddrs" = "yes" &&
39264     test "$tst_works_getifaddrs" != "no"; then
39265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39266printf "%s\n" "yes" >&6; }
39267
39268printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39269
39270    curl_cv_func_getifaddrs="yes"
39271  else
39272    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39273printf "%s\n" "no" >&6; }
39274    curl_cv_func_getifaddrs="no"
39275  fi
39276
39277
39278curl_includes_time="\
39279/* includes start */
39280#ifdef HAVE_SYS_TYPES_H
39281#  include <sys/types.h>
39282#endif
39283#ifdef HAVE_SYS_TIME_H
39284#  include <sys/time.h>
39285#endif
39286#include <time.h>
39287/* includes end */"
39288  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39289"
39290if test "x$ac_cv_header_sys_types_h" = xyes
39291then :
39292  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39293
39294fi
39295ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39296"
39297if test "x$ac_cv_header_sys_time_h" = xyes
39298then :
39299  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39300
39301fi
39302
39303
39304
39305      #
39306  tst_links_gmtime_r="unknown"
39307  tst_proto_gmtime_r="unknown"
39308  tst_compi_gmtime_r="unknown"
39309  tst_works_gmtime_r="unknown"
39310  tst_allow_gmtime_r="unknown"
39311  #
39312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39313printf %s "checking if gmtime_r can be linked... " >&6; }
39314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39315/* end confdefs.h.  */
39316
39317
39318#define gmtime_r innocuous_gmtime_r
39319#ifdef __STDC__
39320# include <limits.h>
39321#else
39322# include <assert.h>
39323#endif
39324#undef gmtime_r
39325#ifdef __cplusplus
39326extern "C"
39327#endif
39328char gmtime_r ();
39329#if defined __stub_gmtime_r || defined __stub___gmtime_r
39330choke me
39331#endif
39332
39333int main (void)
39334{
39335return gmtime_r ();
39336 ;
39337 return 0;
39338}
39339
39340_ACEOF
39341if ac_fn_c_try_link "$LINENO"
39342then :
39343
39344    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39345printf "%s\n" "yes" >&6; }
39346    tst_links_gmtime_r="yes"
39347
39348else $as_nop
39349
39350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39351printf "%s\n" "no" >&6; }
39352    tst_links_gmtime_r="no"
39353
39354fi
39355rm -f core conftest.err conftest.$ac_objext conftest.beam \
39356    conftest$ac_exeext conftest.$ac_ext
39357  #
39358  if test "$tst_links_gmtime_r" = "yes"; then
39359    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39360printf %s "checking if gmtime_r is prototyped... " >&6; }
39361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39362/* end confdefs.h.  */
39363
39364      $curl_includes_time
39365
39366_ACEOF
39367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39368  $EGREP "gmtime_r" >/dev/null 2>&1
39369then :
39370
39371      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39372printf "%s\n" "yes" >&6; }
39373      tst_proto_gmtime_r="yes"
39374
39375else $as_nop
39376
39377      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39378printf "%s\n" "no" >&6; }
39379      tst_proto_gmtime_r="no"
39380
39381fi
39382rm -rf conftest*
39383
39384  fi
39385  #
39386  if test "$tst_proto_gmtime_r" = "yes"; then
39387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39388printf %s "checking if gmtime_r is compilable... " >&6; }
39389    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39390/* end confdefs.h.  */
39391
39392
39393        $curl_includes_time
39394
39395int main (void)
39396{
39397
39398        if(0 != gmtime_r(0, 0))
39399          return 1;
39400
39401 ;
39402 return 0;
39403}
39404
39405_ACEOF
39406if ac_fn_c_try_compile "$LINENO"
39407then :
39408
39409      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39410printf "%s\n" "yes" >&6; }
39411      tst_compi_gmtime_r="yes"
39412
39413else $as_nop
39414
39415      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39416printf "%s\n" "no" >&6; }
39417      tst_compi_gmtime_r="no"
39418
39419fi
39420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39421  fi
39422  #
39423    if test "x$cross_compiling" != "xyes" &&
39424    test "$tst_compi_gmtime_r" = "yes"; then
39425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39426printf %s "checking if gmtime_r seems to work... " >&6; }
39427
39428   case $host_os in
39429     darwin*)
39430      if test "$cross_compiling" = yes
39431then :
39432  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39433printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39434as_fn_error $? "cannot run test program while cross compiling
39435See \`config.log' for more details" "$LINENO" 5; }
39436else $as_nop
39437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39438/* end confdefs.h.  */
39439
39440
39441        $curl_includes_stdlib
39442        $curl_includes_time
39443
39444int main (void)
39445{
39446
39447        time_t local = 1170352587;
39448        struct tm *gmt = 0;
39449        struct tm result;
39450        gmt = gmtime_r(&local, &result);
39451        if(gmt)
39452          exit(0);
39453        else
39454          exit(1);
39455
39456 ;
39457 return 0;
39458}
39459
39460_ACEOF
39461if ac_fn_c_try_run "$LINENO"
39462then :
39463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464printf "%s\n" "yes" >&6; }
39465      tst_works_gmtime_r="yes"
39466
39467else $as_nop
39468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39469printf "%s\n" "no" >&6; }
39470      tst_works_gmtime_r="no"
39471
39472fi
39473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39474  conftest.$ac_objext conftest.beam conftest.$ac_ext
39475fi
39476
39477     ;;
39478     *)
39479      old=$LD_LIBRARY_PATH
39480      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39481      export LD_LIBRARY_PATH
39482      if test "$cross_compiling" = yes
39483then :
39484  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39485printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39486as_fn_error $? "cannot run test program while cross compiling
39487See \`config.log' for more details" "$LINENO" 5; }
39488else $as_nop
39489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39490/* end confdefs.h.  */
39491
39492
39493        $curl_includes_stdlib
39494        $curl_includes_time
39495
39496int main (void)
39497{
39498
39499        time_t local = 1170352587;
39500        struct tm *gmt = 0;
39501        struct tm result;
39502        gmt = gmtime_r(&local, &result);
39503        if(gmt)
39504          exit(0);
39505        else
39506          exit(1);
39507
39508 ;
39509 return 0;
39510}
39511
39512_ACEOF
39513if ac_fn_c_try_run "$LINENO"
39514then :
39515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39516printf "%s\n" "yes" >&6; }
39517      tst_works_gmtime_r="yes"
39518
39519else $as_nop
39520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39521printf "%s\n" "no" >&6; }
39522      tst_works_gmtime_r="no"
39523
39524fi
39525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39526  conftest.$ac_objext conftest.beam conftest.$ac_ext
39527fi
39528
39529      LD_LIBRARY_PATH=$old # restore
39530     ;;
39531   esac
39532
39533  fi
39534  #
39535  if test "$tst_compi_gmtime_r" = "yes" &&
39536    test "$tst_works_gmtime_r" != "no"; then
39537    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39538printf %s "checking if gmtime_r usage allowed... " >&6; }
39539    if test "x$curl_disallow_gmtime_r" != "xyes"; then
39540      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39541printf "%s\n" "yes" >&6; }
39542      tst_allow_gmtime_r="yes"
39543    else
39544      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39545printf "%s\n" "no" >&6; }
39546      tst_allow_gmtime_r="no"
39547    fi
39548  fi
39549  #
39550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39551printf %s "checking if gmtime_r might be used... " >&6; }
39552  if test "$tst_links_gmtime_r" = "yes" &&
39553     test "$tst_proto_gmtime_r" = "yes" &&
39554     test "$tst_compi_gmtime_r" = "yes" &&
39555     test "$tst_allow_gmtime_r" = "yes" &&
39556     test "$tst_works_gmtime_r" != "no"; then
39557    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39558printf "%s\n" "yes" >&6; }
39559
39560printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39561
39562    curl_cv_func_gmtime_r="yes"
39563  else
39564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39565printf "%s\n" "no" >&6; }
39566    curl_cv_func_gmtime_r="no"
39567  fi
39568
39569
39570curl_includes_arpa_inet="\
39571/* includes start */
39572#ifdef HAVE_SYS_TYPES_H
39573#  include <sys/types.h>
39574#endif
39575#ifdef HAVE_SYS_SOCKET_H
39576#  include <sys/socket.h>
39577#endif
39578#ifdef HAVE_NETINET_IN_H
39579#  include <netinet/in.h>
39580#endif
39581#ifdef HAVE_ARPA_INET_H
39582#  include <arpa/inet.h>
39583#endif
39584#ifdef HAVE_WINSOCK2_H
39585#include <winsock2.h>
39586#include <ws2tcpip.h>
39587#endif
39588/* includes end */"
39589  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39590"
39591if test "x$ac_cv_header_sys_types_h" = xyes
39592then :
39593  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39594
39595fi
39596ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39597"
39598if test "x$ac_cv_header_sys_socket_h" = xyes
39599then :
39600  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39601
39602fi
39603ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39604"
39605if test "x$ac_cv_header_netinet_in_h" = xyes
39606then :
39607  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39608
39609fi
39610ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39611"
39612if test "x$ac_cv_header_arpa_inet_h" = xyes
39613then :
39614  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39615
39616fi
39617
39618
39619
39620        #
39621  tst_links_inet_ntop="unknown"
39622  tst_proto_inet_ntop="unknown"
39623  tst_compi_inet_ntop="unknown"
39624  tst_works_inet_ntop="unknown"
39625  tst_allow_inet_ntop="unknown"
39626  #
39627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39628printf %s "checking if inet_ntop can be linked... " >&6; }
39629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39630/* end confdefs.h.  */
39631
39632
39633#define inet_ntop innocuous_inet_ntop
39634#ifdef __STDC__
39635# include <limits.h>
39636#else
39637# include <assert.h>
39638#endif
39639#undef inet_ntop
39640#ifdef __cplusplus
39641extern "C"
39642#endif
39643char inet_ntop ();
39644#if defined __stub_inet_ntop || defined __stub___inet_ntop
39645choke me
39646#endif
39647
39648int main (void)
39649{
39650return inet_ntop ();
39651 ;
39652 return 0;
39653}
39654
39655_ACEOF
39656if ac_fn_c_try_link "$LINENO"
39657then :
39658
39659    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39660printf "%s\n" "yes" >&6; }
39661    tst_links_inet_ntop="yes"
39662
39663else $as_nop
39664
39665    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39666printf "%s\n" "no" >&6; }
39667    tst_links_inet_ntop="no"
39668
39669fi
39670rm -f core conftest.err conftest.$ac_objext conftest.beam \
39671    conftest$ac_exeext conftest.$ac_ext
39672  #
39673  if test "$tst_links_inet_ntop" = "yes"; then
39674    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39675printf %s "checking if inet_ntop is prototyped... " >&6; }
39676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39677/* end confdefs.h.  */
39678
39679      $curl_includes_arpa_inet
39680
39681_ACEOF
39682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39683  $EGREP "inet_ntop" >/dev/null 2>&1
39684then :
39685
39686      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39687printf "%s\n" "yes" >&6; }
39688      tst_proto_inet_ntop="yes"
39689
39690else $as_nop
39691
39692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39693printf "%s\n" "no" >&6; }
39694      tst_proto_inet_ntop="no"
39695
39696fi
39697rm -rf conftest*
39698
39699  fi
39700  #
39701  if test "$tst_proto_inet_ntop" = "yes"; then
39702    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39703printf %s "checking if inet_ntop is compilable... " >&6; }
39704    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39705/* end confdefs.h.  */
39706
39707
39708        $curl_includes_arpa_inet
39709
39710int main (void)
39711{
39712
39713        if(0 != inet_ntop(0, 0, 0, 0))
39714          return 1;
39715
39716 ;
39717 return 0;
39718}
39719
39720_ACEOF
39721if ac_fn_c_try_compile "$LINENO"
39722then :
39723
39724      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39725printf "%s\n" "yes" >&6; }
39726      tst_compi_inet_ntop="yes"
39727
39728else $as_nop
39729
39730      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39731printf "%s\n" "no" >&6; }
39732      tst_compi_inet_ntop="no"
39733
39734fi
39735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39736  fi
39737  #
39738    if test "x$cross_compiling" != "xyes" &&
39739    test "$tst_compi_inet_ntop" = "yes"; then
39740    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39741printf %s "checking if inet_ntop seems to work... " >&6; }
39742
39743   case $host_os in
39744     darwin*)
39745      if test "$cross_compiling" = yes
39746then :
39747  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39749as_fn_error $? "cannot run test program while cross compiling
39750See \`config.log' for more details" "$LINENO" 5; }
39751else $as_nop
39752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39753/* end confdefs.h.  */
39754
39755
39756        $curl_includes_stdlib
39757        $curl_includes_arpa_inet
39758        $curl_includes_string
39759
39760int main (void)
39761{
39762
39763        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39764        char ipv4res[sizeof "255.255.255.255"];
39765        unsigned char ipv6a[26];
39766        unsigned char ipv4a[5];
39767        char *ipv6ptr = 0;
39768        char *ipv4ptr = 0;
39769        /* - */
39770        ipv4res[0] = '\0';
39771        ipv4a[0] = 0xc0;
39772        ipv4a[1] = 0xa8;
39773        ipv4a[2] = 0x64;
39774        ipv4a[3] = 0x01;
39775        ipv4a[4] = 0x01;
39776        /* - */
39777        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39778        if(!ipv4ptr)
39779          exit(1); /* fail */
39780        if(ipv4ptr != ipv4res)
39781          exit(1); /* fail */
39782        if(!ipv4ptr[0])
39783          exit(1); /* fail */
39784        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39785          exit(1); /* fail */
39786        /* - */
39787        ipv6res[0] = '\0';
39788        memset(ipv6a, 0, sizeof(ipv6a));
39789        ipv6a[0] = 0xfe;
39790        ipv6a[1] = 0x80;
39791        ipv6a[8] = 0x02;
39792        ipv6a[9] = 0x14;
39793        ipv6a[10] = 0x4f;
39794        ipv6a[11] = 0xff;
39795        ipv6a[12] = 0xfe;
39796        ipv6a[13] = 0x0b;
39797        ipv6a[14] = 0x76;
39798        ipv6a[15] = 0xc8;
39799        ipv6a[25] = 0x01;
39800        /* - */
39801        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39802        if(!ipv6ptr)
39803          exit(1); /* fail */
39804        if(ipv6ptr != ipv6res)
39805          exit(1); /* fail */
39806        if(!ipv6ptr[0])
39807          exit(1); /* fail */
39808        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39809          exit(1); /* fail */
39810        /* - */
39811        exit(0);
39812
39813 ;
39814 return 0;
39815}
39816
39817_ACEOF
39818if ac_fn_c_try_run "$LINENO"
39819then :
39820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39821printf "%s\n" "yes" >&6; }
39822      tst_works_inet_ntop="yes"
39823
39824else $as_nop
39825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39826printf "%s\n" "no" >&6; }
39827      tst_works_inet_ntop="no"
39828
39829fi
39830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39831  conftest.$ac_objext conftest.beam conftest.$ac_ext
39832fi
39833
39834     ;;
39835     *)
39836      old=$LD_LIBRARY_PATH
39837      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39838      export LD_LIBRARY_PATH
39839      if test "$cross_compiling" = yes
39840then :
39841  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39842printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39843as_fn_error $? "cannot run test program while cross compiling
39844See \`config.log' for more details" "$LINENO" 5; }
39845else $as_nop
39846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39847/* end confdefs.h.  */
39848
39849
39850        $curl_includes_stdlib
39851        $curl_includes_arpa_inet
39852        $curl_includes_string
39853
39854int main (void)
39855{
39856
39857        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39858        char ipv4res[sizeof "255.255.255.255"];
39859        unsigned char ipv6a[26];
39860        unsigned char ipv4a[5];
39861        char *ipv6ptr = 0;
39862        char *ipv4ptr = 0;
39863        /* - */
39864        ipv4res[0] = '\0';
39865        ipv4a[0] = 0xc0;
39866        ipv4a[1] = 0xa8;
39867        ipv4a[2] = 0x64;
39868        ipv4a[3] = 0x01;
39869        ipv4a[4] = 0x01;
39870        /* - */
39871        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39872        if(!ipv4ptr)
39873          exit(1); /* fail */
39874        if(ipv4ptr != ipv4res)
39875          exit(1); /* fail */
39876        if(!ipv4ptr[0])
39877          exit(1); /* fail */
39878        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39879          exit(1); /* fail */
39880        /* - */
39881        ipv6res[0] = '\0';
39882        memset(ipv6a, 0, sizeof(ipv6a));
39883        ipv6a[0] = 0xfe;
39884        ipv6a[1] = 0x80;
39885        ipv6a[8] = 0x02;
39886        ipv6a[9] = 0x14;
39887        ipv6a[10] = 0x4f;
39888        ipv6a[11] = 0xff;
39889        ipv6a[12] = 0xfe;
39890        ipv6a[13] = 0x0b;
39891        ipv6a[14] = 0x76;
39892        ipv6a[15] = 0xc8;
39893        ipv6a[25] = 0x01;
39894        /* - */
39895        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39896        if(!ipv6ptr)
39897          exit(1); /* fail */
39898        if(ipv6ptr != ipv6res)
39899          exit(1); /* fail */
39900        if(!ipv6ptr[0])
39901          exit(1); /* fail */
39902        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39903          exit(1); /* fail */
39904        /* - */
39905        exit(0);
39906
39907 ;
39908 return 0;
39909}
39910
39911_ACEOF
39912if ac_fn_c_try_run "$LINENO"
39913then :
39914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39915printf "%s\n" "yes" >&6; }
39916      tst_works_inet_ntop="yes"
39917
39918else $as_nop
39919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39920printf "%s\n" "no" >&6; }
39921      tst_works_inet_ntop="no"
39922
39923fi
39924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39925  conftest.$ac_objext conftest.beam conftest.$ac_ext
39926fi
39927
39928      LD_LIBRARY_PATH=$old # restore
39929     ;;
39930   esac
39931
39932  fi
39933  #
39934  if test "$tst_compi_inet_ntop" = "yes" &&
39935    test "$tst_works_inet_ntop" != "no"; then
39936    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39937printf %s "checking if inet_ntop usage allowed... " >&6; }
39938    if test "x$curl_disallow_inet_ntop" != "xyes"; then
39939      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39940printf "%s\n" "yes" >&6; }
39941      tst_allow_inet_ntop="yes"
39942    else
39943      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39944printf "%s\n" "no" >&6; }
39945      tst_allow_inet_ntop="no"
39946    fi
39947  fi
39948  #
39949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39950printf %s "checking if inet_ntop might be used... " >&6; }
39951  if test "$tst_links_inet_ntop" = "yes" &&
39952     test "$tst_proto_inet_ntop" = "yes" &&
39953     test "$tst_compi_inet_ntop" = "yes" &&
39954     test "$tst_allow_inet_ntop" = "yes" &&
39955     test "$tst_works_inet_ntop" != "no"; then
39956    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39957printf "%s\n" "yes" >&6; }
39958
39959printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39960
39961    curl_cv_func_inet_ntop="yes"
39962  else
39963    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39964printf "%s\n" "no" >&6; }
39965    curl_cv_func_inet_ntop="no"
39966  fi
39967
39968
39969        #
39970  tst_links_inet_pton="unknown"
39971  tst_proto_inet_pton="unknown"
39972  tst_compi_inet_pton="unknown"
39973  tst_works_inet_pton="unknown"
39974  tst_allow_inet_pton="unknown"
39975  #
39976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39977printf %s "checking if inet_pton can be linked... " >&6; }
39978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39979/* end confdefs.h.  */
39980
39981
39982#define inet_pton innocuous_inet_pton
39983#ifdef __STDC__
39984# include <limits.h>
39985#else
39986# include <assert.h>
39987#endif
39988#undef inet_pton
39989#ifdef __cplusplus
39990extern "C"
39991#endif
39992char inet_pton ();
39993#if defined __stub_inet_pton || defined __stub___inet_pton
39994choke me
39995#endif
39996
39997int main (void)
39998{
39999return inet_pton ();
40000 ;
40001 return 0;
40002}
40003
40004_ACEOF
40005if ac_fn_c_try_link "$LINENO"
40006then :
40007
40008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40009printf "%s\n" "yes" >&6; }
40010    tst_links_inet_pton="yes"
40011
40012else $as_nop
40013
40014    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40015printf "%s\n" "no" >&6; }
40016    tst_links_inet_pton="no"
40017
40018fi
40019rm -f core conftest.err conftest.$ac_objext conftest.beam \
40020    conftest$ac_exeext conftest.$ac_ext
40021  #
40022  if test "$tst_links_inet_pton" = "yes"; then
40023    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
40024printf %s "checking if inet_pton is prototyped... " >&6; }
40025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40026/* end confdefs.h.  */
40027
40028      $curl_includes_arpa_inet
40029
40030_ACEOF
40031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40032  $EGREP "inet_pton" >/dev/null 2>&1
40033then :
40034
40035      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40036printf "%s\n" "yes" >&6; }
40037      tst_proto_inet_pton="yes"
40038
40039else $as_nop
40040
40041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40042printf "%s\n" "no" >&6; }
40043      tst_proto_inet_pton="no"
40044
40045fi
40046rm -rf conftest*
40047
40048  fi
40049  #
40050  if test "$tst_proto_inet_pton" = "yes"; then
40051    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
40052printf %s "checking if inet_pton is compilable... " >&6; }
40053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40054/* end confdefs.h.  */
40055
40056
40057        $curl_includes_arpa_inet
40058
40059int main (void)
40060{
40061
40062        if(0 != inet_pton(0, 0, 0))
40063          return 1;
40064
40065 ;
40066 return 0;
40067}
40068
40069_ACEOF
40070if ac_fn_c_try_compile "$LINENO"
40071then :
40072
40073      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40074printf "%s\n" "yes" >&6; }
40075      tst_compi_inet_pton="yes"
40076
40077else $as_nop
40078
40079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40080printf "%s\n" "no" >&6; }
40081      tst_compi_inet_pton="no"
40082
40083fi
40084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40085  fi
40086  #
40087    if test "x$cross_compiling" != "xyes" &&
40088    test "$tst_compi_inet_pton" = "yes"; then
40089    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
40090printf %s "checking if inet_pton seems to work... " >&6; }
40091
40092   case $host_os in
40093     darwin*)
40094      if test "$cross_compiling" = yes
40095then :
40096  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40097printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40098as_fn_error $? "cannot run test program while cross compiling
40099See \`config.log' for more details" "$LINENO" 5; }
40100else $as_nop
40101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40102/* end confdefs.h.  */
40103
40104
40105        $curl_includes_stdlib
40106        $curl_includes_arpa_inet
40107        $curl_includes_string
40108
40109int main (void)
40110{
40111
40112        unsigned char ipv6a[16+1];
40113        unsigned char ipv4a[4+1];
40114        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
40115        const char *ipv4src = "192.168.100.1";
40116        /* - */
40117        memset(ipv4a, 1, sizeof(ipv4a));
40118        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
40119          exit(1); /* fail */
40120        /* - */
40121        if( (ipv4a[0] != 0xc0) ||
40122            (ipv4a[1] != 0xa8) ||
40123            (ipv4a[2] != 0x64) ||
40124            (ipv4a[3] != 0x01) ||
40125            (ipv4a[4] != 0x01) )
40126          exit(1); /* fail */
40127        /* - */
40128        memset(ipv6a, 1, sizeof(ipv6a));
40129        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
40130          exit(1); /* fail */
40131        /* - */
40132        if( (ipv6a[0]  != 0xfe) ||
40133            (ipv6a[1]  != 0x80) ||
40134            (ipv6a[8]  != 0x02) ||
40135            (ipv6a[9]  != 0x14) ||
40136            (ipv6a[10] != 0x4f) ||
40137            (ipv6a[11] != 0xff) ||
40138            (ipv6a[12] != 0xfe) ||
40139            (ipv6a[13] != 0x0b) ||
40140            (ipv6a[14] != 0x76) ||
40141            (ipv6a[15] != 0xc8) ||
40142            (ipv6a[16] != 0x01) )
40143          exit(1); /* fail */
40144        /* - */
40145        if( (ipv6a[2]  != 0x0) ||
40146            (ipv6a[3]  != 0x0) ||
40147            (ipv6a[4]  != 0x0) ||
40148            (ipv6a[5]  != 0x0) ||
40149            (ipv6a[6]  != 0x0) ||
40150            (ipv6a[7]  != 0x0) )
40151          exit(1); /* fail */
40152        /* - */
40153        exit(0);
40154
40155 ;
40156 return 0;
40157}
40158
40159_ACEOF
40160if ac_fn_c_try_run "$LINENO"
40161then :
40162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40163printf "%s\n" "yes" >&6; }
40164      tst_works_inet_pton="yes"
40165
40166else $as_nop
40167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40168printf "%s\n" "no" >&6; }
40169      tst_works_inet_pton="no"
40170
40171fi
40172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40173  conftest.$ac_objext conftest.beam conftest.$ac_ext
40174fi
40175
40176     ;;
40177     *)
40178      old=$LD_LIBRARY_PATH
40179      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40180      export LD_LIBRARY_PATH
40181      if test "$cross_compiling" = yes
40182then :
40183  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40185as_fn_error $? "cannot run test program while cross compiling
40186See \`config.log' for more details" "$LINENO" 5; }
40187else $as_nop
40188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40189/* end confdefs.h.  */
40190
40191
40192        $curl_includes_stdlib
40193        $curl_includes_arpa_inet
40194        $curl_includes_string
40195
40196int main (void)
40197{
40198
40199        unsigned char ipv6a[16+1];
40200        unsigned char ipv4a[4+1];
40201        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
40202        const char *ipv4src = "192.168.100.1";
40203        /* - */
40204        memset(ipv4a, 1, sizeof(ipv4a));
40205        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
40206          exit(1); /* fail */
40207        /* - */
40208        if( (ipv4a[0] != 0xc0) ||
40209            (ipv4a[1] != 0xa8) ||
40210            (ipv4a[2] != 0x64) ||
40211            (ipv4a[3] != 0x01) ||
40212            (ipv4a[4] != 0x01) )
40213          exit(1); /* fail */
40214        /* - */
40215        memset(ipv6a, 1, sizeof(ipv6a));
40216        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
40217          exit(1); /* fail */
40218        /* - */
40219        if( (ipv6a[0]  != 0xfe) ||
40220            (ipv6a[1]  != 0x80) ||
40221            (ipv6a[8]  != 0x02) ||
40222            (ipv6a[9]  != 0x14) ||
40223            (ipv6a[10] != 0x4f) ||
40224            (ipv6a[11] != 0xff) ||
40225            (ipv6a[12] != 0xfe) ||
40226            (ipv6a[13] != 0x0b) ||
40227            (ipv6a[14] != 0x76) ||
40228            (ipv6a[15] != 0xc8) ||
40229            (ipv6a[16] != 0x01) )
40230          exit(1); /* fail */
40231        /* - */
40232        if( (ipv6a[2]  != 0x0) ||
40233            (ipv6a[3]  != 0x0) ||
40234            (ipv6a[4]  != 0x0) ||
40235            (ipv6a[5]  != 0x0) ||
40236            (ipv6a[6]  != 0x0) ||
40237            (ipv6a[7]  != 0x0) )
40238          exit(1); /* fail */
40239        /* - */
40240        exit(0);
40241
40242 ;
40243 return 0;
40244}
40245
40246_ACEOF
40247if ac_fn_c_try_run "$LINENO"
40248then :
40249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40250printf "%s\n" "yes" >&6; }
40251      tst_works_inet_pton="yes"
40252
40253else $as_nop
40254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40255printf "%s\n" "no" >&6; }
40256      tst_works_inet_pton="no"
40257
40258fi
40259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40260  conftest.$ac_objext conftest.beam conftest.$ac_ext
40261fi
40262
40263      LD_LIBRARY_PATH=$old # restore
40264     ;;
40265   esac
40266
40267  fi
40268  #
40269  if test "$tst_compi_inet_pton" = "yes" &&
40270    test "$tst_works_inet_pton" != "no"; then
40271    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
40272printf %s "checking if inet_pton usage allowed... " >&6; }
40273    if test "x$curl_disallow_inet_pton" != "xyes"; then
40274      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40275printf "%s\n" "yes" >&6; }
40276      tst_allow_inet_pton="yes"
40277    else
40278      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40279printf "%s\n" "no" >&6; }
40280      tst_allow_inet_pton="no"
40281    fi
40282  fi
40283  #
40284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
40285printf %s "checking if inet_pton might be used... " >&6; }
40286  if test "$tst_links_inet_pton" = "yes" &&
40287     test "$tst_proto_inet_pton" = "yes" &&
40288     test "$tst_compi_inet_pton" = "yes" &&
40289     test "$tst_allow_inet_pton" = "yes" &&
40290     test "$tst_works_inet_pton" != "no"; then
40291    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40292printf "%s\n" "yes" >&6; }
40293
40294printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
40295
40296    curl_cv_func_inet_pton="yes"
40297  else
40298    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40299printf "%s\n" "no" >&6; }
40300    curl_cv_func_inet_pton="no"
40301  fi
40302
40303
40304    #
40305  tst_links_ioctlsocket="unknown"
40306  tst_proto_ioctlsocket="unknown"
40307  tst_compi_ioctlsocket="unknown"
40308  tst_allow_ioctlsocket="unknown"
40309  #
40310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40311printf %s "checking if ioctlsocket can be linked... " >&6; }
40312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40313/* end confdefs.h.  */
40314
40315
40316      $curl_includes_winsock2
40317
40318int main (void)
40319{
40320
40321      if(0 != ioctlsocket(0, 0, 0))
40322        return 1;
40323
40324 ;
40325 return 0;
40326}
40327
40328_ACEOF
40329if ac_fn_c_try_link "$LINENO"
40330then :
40331
40332    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40333printf "%s\n" "yes" >&6; }
40334    tst_links_ioctlsocket="yes"
40335
40336else $as_nop
40337
40338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40339printf "%s\n" "no" >&6; }
40340    tst_links_ioctlsocket="no"
40341
40342fi
40343rm -f core conftest.err conftest.$ac_objext conftest.beam \
40344    conftest$ac_exeext conftest.$ac_ext
40345  #
40346  if test "$tst_links_ioctlsocket" = "yes"; then
40347    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40348printf %s "checking if ioctlsocket is prototyped... " >&6; }
40349    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40350/* end confdefs.h.  */
40351
40352      $curl_includes_winsock2
40353
40354_ACEOF
40355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40356  $EGREP "ioctlsocket" >/dev/null 2>&1
40357then :
40358
40359      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40360printf "%s\n" "yes" >&6; }
40361      tst_proto_ioctlsocket="yes"
40362
40363else $as_nop
40364
40365      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40366printf "%s\n" "no" >&6; }
40367      tst_proto_ioctlsocket="no"
40368
40369fi
40370rm -rf conftest*
40371
40372  fi
40373  #
40374  if test "$tst_proto_ioctlsocket" = "yes"; then
40375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40376printf %s "checking if ioctlsocket is compilable... " >&6; }
40377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40378/* end confdefs.h.  */
40379
40380
40381        $curl_includes_winsock2
40382
40383int main (void)
40384{
40385
40386        if(0 != ioctlsocket(0, 0, 0))
40387          return 1;
40388
40389 ;
40390 return 0;
40391}
40392
40393_ACEOF
40394if ac_fn_c_try_compile "$LINENO"
40395then :
40396
40397      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40398printf "%s\n" "yes" >&6; }
40399      tst_compi_ioctlsocket="yes"
40400
40401else $as_nop
40402
40403      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40404printf "%s\n" "no" >&6; }
40405      tst_compi_ioctlsocket="no"
40406
40407fi
40408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40409  fi
40410  #
40411  if test "$tst_compi_ioctlsocket" = "yes"; then
40412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40413printf %s "checking if ioctlsocket usage allowed... " >&6; }
40414    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40415      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40416printf "%s\n" "yes" >&6; }
40417      tst_allow_ioctlsocket="yes"
40418    else
40419      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40420printf "%s\n" "no" >&6; }
40421      tst_allow_ioctlsocket="no"
40422    fi
40423  fi
40424  #
40425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40426printf %s "checking if ioctlsocket might be used... " >&6; }
40427  if test "$tst_links_ioctlsocket" = "yes" &&
40428     test "$tst_proto_ioctlsocket" = "yes" &&
40429     test "$tst_compi_ioctlsocket" = "yes" &&
40430     test "$tst_allow_ioctlsocket" = "yes"; then
40431    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40432printf "%s\n" "yes" >&6; }
40433
40434printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40435
40436    curl_cv_func_ioctlsocket="yes"
40437
40438  #
40439  tst_compi_ioctlsocket_fionbio="unknown"
40440  tst_allow_ioctlsocket_fionbio="unknown"
40441  #
40442  if test "$curl_cv_func_ioctlsocket" = "yes"; then
40443    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40444printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40446/* end confdefs.h.  */
40447
40448
40449        $curl_includes_winsock2
40450
40451int main (void)
40452{
40453
40454        int flags = 0;
40455        if(0 != ioctlsocket(0, FIONBIO, &flags))
40456          return 1;
40457
40458 ;
40459 return 0;
40460}
40461
40462_ACEOF
40463if ac_fn_c_try_compile "$LINENO"
40464then :
40465
40466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40467printf "%s\n" "yes" >&6; }
40468      tst_compi_ioctlsocket_fionbio="yes"
40469
40470else $as_nop
40471
40472      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40473printf "%s\n" "no" >&6; }
40474      tst_compi_ioctlsocket_fionbio="no"
40475
40476fi
40477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40478  fi
40479  #
40480  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40481    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40482printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40483    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40484      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40485printf "%s\n" "yes" >&6; }
40486      tst_allow_ioctlsocket_fionbio="yes"
40487    else
40488      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40489printf "%s\n" "no" >&6; }
40490      tst_allow_ioctlsocket_fionbio="no"
40491    fi
40492  fi
40493  #
40494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40495printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40496  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40497     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40499printf "%s\n" "yes" >&6; }
40500
40501printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40502
40503    curl_cv_func_ioctlsocket_fionbio="yes"
40504  else
40505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40506printf "%s\n" "no" >&6; }
40507    curl_cv_func_ioctlsocket_fionbio="no"
40508  fi
40509
40510  else
40511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40512printf "%s\n" "no" >&6; }
40513    curl_cv_func_ioctlsocket="no"
40514  fi
40515
40516
40517    #
40518  tst_links_ioctlsocket_camel="unknown"
40519  tst_proto_ioctlsocket_camel="unknown"
40520  tst_compi_ioctlsocket_camel="unknown"
40521  tst_allow_ioctlsocket_camel="unknown"
40522  #
40523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40524printf %s "checking if IoctlSocket can be linked... " >&6; }
40525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40526/* end confdefs.h.  */
40527
40528
40529      $curl_includes_bsdsocket
40530
40531int main (void)
40532{
40533
40534      IoctlSocket(0, 0, 0);
40535
40536 ;
40537 return 0;
40538}
40539
40540_ACEOF
40541if ac_fn_c_try_link "$LINENO"
40542then :
40543
40544    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40545printf "%s\n" "yes" >&6; }
40546    tst_links_ioctlsocket_camel="yes"
40547
40548else $as_nop
40549
40550    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40551printf "%s\n" "no" >&6; }
40552    tst_links_ioctlsocket_camel="no"
40553
40554fi
40555rm -f core conftest.err conftest.$ac_objext conftest.beam \
40556    conftest$ac_exeext conftest.$ac_ext
40557  #
40558  if test "$tst_links_ioctlsocket_camel" = "yes"; then
40559    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40560printf %s "checking if IoctlSocket is prototyped... " >&6; }
40561    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40562/* end confdefs.h.  */
40563
40564      $curl_includes_bsdsocket
40565
40566_ACEOF
40567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40568  $EGREP "IoctlSocket" >/dev/null 2>&1
40569then :
40570
40571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40572printf "%s\n" "yes" >&6; }
40573      tst_proto_ioctlsocket_camel="yes"
40574
40575else $as_nop
40576
40577      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40578printf "%s\n" "no" >&6; }
40579      tst_proto_ioctlsocket_camel="no"
40580
40581fi
40582rm -rf conftest*
40583
40584  fi
40585  #
40586  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40587    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40588printf %s "checking if IoctlSocket is compilable... " >&6; }
40589    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40590/* end confdefs.h.  */
40591
40592
40593        $curl_includes_bsdsocket
40594
40595int main (void)
40596{
40597
40598        if(0 != IoctlSocket(0, 0, 0))
40599          return 1;
40600
40601 ;
40602 return 0;
40603}
40604
40605_ACEOF
40606if ac_fn_c_try_compile "$LINENO"
40607then :
40608
40609      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40610printf "%s\n" "yes" >&6; }
40611      tst_compi_ioctlsocket_camel="yes"
40612
40613else $as_nop
40614
40615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40616printf "%s\n" "no" >&6; }
40617      tst_compi_ioctlsocket_camel="no"
40618
40619fi
40620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40621  fi
40622  #
40623  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40624    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40625printf %s "checking if IoctlSocket usage allowed... " >&6; }
40626    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40627      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40628printf "%s\n" "yes" >&6; }
40629      tst_allow_ioctlsocket_camel="yes"
40630    else
40631      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40632printf "%s\n" "no" >&6; }
40633      tst_allow_ioctlsocket_camel="no"
40634    fi
40635  fi
40636  #
40637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40638printf %s "checking if IoctlSocket might be used... " >&6; }
40639  if test "$tst_links_ioctlsocket_camel" = "yes" &&
40640     test "$tst_proto_ioctlsocket_camel" = "yes" &&
40641     test "$tst_compi_ioctlsocket_camel" = "yes" &&
40642     test "$tst_allow_ioctlsocket_camel" = "yes"; then
40643    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40644printf "%s\n" "yes" >&6; }
40645
40646printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40647
40648    curl_cv_func_ioctlsocket_camel="yes"
40649
40650    #
40651  tst_compi_ioctlsocket_camel_fionbio="unknown"
40652  tst_allow_ioctlsocket_camel_fionbio="unknown"
40653  #
40654  if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40656printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40658/* end confdefs.h.  */
40659
40660
40661        $curl_includes_bsdsocket
40662
40663int main (void)
40664{
40665
40666        long flags = 0;
40667        if(0 != IoctlSocket(0, FIONBIO, &flags))
40668          return 1;
40669
40670 ;
40671 return 0;
40672}
40673
40674_ACEOF
40675if ac_fn_c_try_compile "$LINENO"
40676then :
40677
40678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40679printf "%s\n" "yes" >&6; }
40680      tst_compi_ioctlsocket_camel_fionbio="yes"
40681
40682else $as_nop
40683
40684      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40685printf "%s\n" "no" >&6; }
40686      tst_compi_ioctlsocket_camel_fionbio="no"
40687
40688fi
40689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40690  fi
40691  #
40692  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40693    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40694printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40695    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40696      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40697printf "%s\n" "yes" >&6; }
40698      tst_allow_ioctlsocket_camel_fionbio="yes"
40699    else
40700      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40701printf "%s\n" "no" >&6; }
40702      tst_allow_ioctlsocket_camel_fionbio="no"
40703    fi
40704  fi
40705  #
40706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40707printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40708  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40709     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40710    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40711printf "%s\n" "yes" >&6; }
40712
40713printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40714
40715    curl_cv_func_ioctlsocket_camel_fionbio="yes"
40716  else
40717    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40718printf "%s\n" "no" >&6; }
40719    curl_cv_func_ioctlsocket_camel_fionbio="no"
40720  fi
40721
40722  else
40723    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40724printf "%s\n" "no" >&6; }
40725    curl_cv_func_ioctlsocket_camel="no"
40726  fi
40727
40728
40729    #
40730  tst_links_memrchr="unknown"
40731  tst_macro_memrchr="unknown"
40732  tst_proto_memrchr="unknown"
40733  tst_compi_memrchr="unknown"
40734  tst_allow_memrchr="unknown"
40735  #
40736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40737printf %s "checking if memrchr can be linked... " >&6; }
40738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40739/* end confdefs.h.  */
40740
40741
40742#define memrchr innocuous_memrchr
40743#ifdef __STDC__
40744# include <limits.h>
40745#else
40746# include <assert.h>
40747#endif
40748#undef memrchr
40749#ifdef __cplusplus
40750extern "C"
40751#endif
40752char memrchr ();
40753#if defined __stub_memrchr || defined __stub___memrchr
40754choke me
40755#endif
40756
40757int main (void)
40758{
40759return memrchr ();
40760 ;
40761 return 0;
40762}
40763
40764_ACEOF
40765if ac_fn_c_try_link "$LINENO"
40766then :
40767
40768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40769printf "%s\n" "yes" >&6; }
40770    tst_links_memrchr="yes"
40771
40772else $as_nop
40773
40774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40775printf "%s\n" "no" >&6; }
40776    tst_links_memrchr="no"
40777
40778fi
40779rm -f core conftest.err conftest.$ac_objext conftest.beam \
40780    conftest$ac_exeext conftest.$ac_ext
40781  #
40782  if test "$tst_links_memrchr" = "no"; then
40783    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40784printf %s "checking if memrchr seems a macro... " >&6; }
40785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40786/* end confdefs.h.  */
40787
40788
40789        $curl_includes_string
40790
40791int main (void)
40792{
40793
40794        if(0 != memrchr(0, 0, 0))
40795          return 1;
40796
40797 ;
40798 return 0;
40799}
40800
40801_ACEOF
40802if ac_fn_c_try_link "$LINENO"
40803then :
40804
40805      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40806printf "%s\n" "yes" >&6; }
40807      tst_macro_memrchr="yes"
40808
40809else $as_nop
40810
40811      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40812printf "%s\n" "no" >&6; }
40813      tst_macro_memrchr="no"
40814
40815fi
40816rm -f core conftest.err conftest.$ac_objext conftest.beam \
40817    conftest$ac_exeext conftest.$ac_ext
40818  fi
40819  #
40820  if test "$tst_links_memrchr" = "yes"; then
40821    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40822printf %s "checking if memrchr is prototyped... " >&6; }
40823    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40824/* end confdefs.h.  */
40825
40826      $curl_includes_string
40827
40828_ACEOF
40829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40830  $EGREP "memrchr" >/dev/null 2>&1
40831then :
40832
40833      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40834printf "%s\n" "yes" >&6; }
40835      tst_proto_memrchr="yes"
40836
40837else $as_nop
40838
40839      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40840printf "%s\n" "no" >&6; }
40841      tst_proto_memrchr="no"
40842
40843fi
40844rm -rf conftest*
40845
40846  fi
40847  #
40848  if test "$tst_proto_memrchr" = "yes" ||
40849     test "$tst_macro_memrchr" = "yes"; then
40850    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40851printf %s "checking if memrchr is compilable... " >&6; }
40852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40853/* end confdefs.h.  */
40854
40855
40856        $curl_includes_string
40857
40858int main (void)
40859{
40860
40861        if(0 != memrchr(0, 0, 0))
40862          return 1;
40863
40864 ;
40865 return 0;
40866}
40867
40868_ACEOF
40869if ac_fn_c_try_compile "$LINENO"
40870then :
40871
40872      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40873printf "%s\n" "yes" >&6; }
40874      tst_compi_memrchr="yes"
40875
40876else $as_nop
40877
40878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40879printf "%s\n" "no" >&6; }
40880      tst_compi_memrchr="no"
40881
40882fi
40883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40884  fi
40885  #
40886  if test "$tst_compi_memrchr" = "yes"; then
40887    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40888printf %s "checking if memrchr usage allowed... " >&6; }
40889    if test "x$curl_disallow_memrchr" != "xyes"; then
40890      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40891printf "%s\n" "yes" >&6; }
40892      tst_allow_memrchr="yes"
40893    else
40894      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40895printf "%s\n" "no" >&6; }
40896      tst_allow_memrchr="no"
40897    fi
40898  fi
40899  #
40900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40901printf %s "checking if memrchr might be used... " >&6; }
40902  if (test "$tst_proto_memrchr" = "yes" ||
40903      test "$tst_macro_memrchr" = "yes") &&
40904     test "$tst_compi_memrchr" = "yes" &&
40905     test "$tst_allow_memrchr" = "yes"; then
40906    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40907printf "%s\n" "yes" >&6; }
40908
40909printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40910
40911    curl_cv_func_memrchr="yes"
40912  else
40913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40914printf "%s\n" "no" >&6; }
40915    curl_cv_func_memrchr="no"
40916  fi
40917
40918
40919      #
40920  tst_links_poll="unknown"
40921  tst_proto_poll="unknown"
40922  tst_compi_poll="unknown"
40923  tst_works_poll="unknown"
40924  tst_allow_poll="unknown"
40925  #
40926  case $host_os in
40927    darwin*|interix*)
40928                                          curl_disallow_poll="yes"
40929      tst_compi_poll="no"
40930      ;;
40931  esac
40932  #
40933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40934printf %s "checking if poll can be linked... " >&6; }
40935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40936/* end confdefs.h.  */
40937
40938
40939      $curl_includes_poll
40940
40941int main (void)
40942{
40943
40944      if(0 != poll(0, 0, 0))
40945        return 1;
40946
40947 ;
40948 return 0;
40949}
40950
40951_ACEOF
40952if ac_fn_c_try_link "$LINENO"
40953then :
40954
40955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40956printf "%s\n" "yes" >&6; }
40957    tst_links_poll="yes"
40958
40959else $as_nop
40960
40961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40962printf "%s\n" "no" >&6; }
40963    tst_links_poll="no"
40964
40965fi
40966rm -f core conftest.err conftest.$ac_objext conftest.beam \
40967    conftest$ac_exeext conftest.$ac_ext
40968  #
40969  if test "$tst_links_poll" = "yes"; then
40970    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
40971printf %s "checking if poll is prototyped... " >&6; }
40972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40973/* end confdefs.h.  */
40974
40975      $curl_includes_poll
40976
40977_ACEOF
40978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40979  $EGREP "poll" >/dev/null 2>&1
40980then :
40981
40982      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40983printf "%s\n" "yes" >&6; }
40984      tst_proto_poll="yes"
40985
40986else $as_nop
40987
40988      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40989printf "%s\n" "no" >&6; }
40990      tst_proto_poll="no"
40991
40992fi
40993rm -rf conftest*
40994
40995  fi
40996  #
40997  if test "$tst_proto_poll" = "yes"; then
40998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
40999printf %s "checking if poll is compilable... " >&6; }
41000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41001/* end confdefs.h.  */
41002
41003
41004        $curl_includes_poll
41005
41006int main (void)
41007{
41008
41009        if(0 != poll(0, 0, 0))
41010          return 1;
41011
41012 ;
41013 return 0;
41014}
41015
41016_ACEOF
41017if ac_fn_c_try_compile "$LINENO"
41018then :
41019
41020      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41021printf "%s\n" "yes" >&6; }
41022      tst_compi_poll="yes"
41023
41024else $as_nop
41025
41026      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41027printf "%s\n" "no" >&6; }
41028      tst_compi_poll="no"
41029
41030fi
41031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41032  fi
41033  #
41034    if test "x$cross_compiling" != "xyes" &&
41035    test "$tst_compi_poll" = "yes"; then
41036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41037printf %s "checking if poll seems to work... " >&6; }
41038
41039   case $host_os in
41040     darwin*)
41041      if test "$cross_compiling" = yes
41042then :
41043  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41044printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41045as_fn_error $? "cannot run test program while cross compiling
41046See \`config.log' for more details" "$LINENO" 5; }
41047else $as_nop
41048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41049/* end confdefs.h.  */
41050
41051
41052        $curl_includes_stdlib
41053        $curl_includes_poll
41054        $curl_includes_time
41055
41056int main (void)
41057{
41058
41059        /* detect the original poll() breakage */
41060        if(0 != poll(0, 0, 10))
41061          exit(1); /* fail */
41062        else {
41063          /* detect the 10.12 poll() breakage */
41064          struct timeval before, after;
41065          int rc;
41066          size_t us;
41067
41068          gettimeofday(&before, NULL);
41069          rc = poll(NULL, 0, 500);
41070          gettimeofday(&after, NULL);
41071
41072          us = (after.tv_sec - before.tv_sec) * 1000000 +
41073            (after.tv_usec - before.tv_usec);
41074
41075          if(us < 400000)
41076            exit(1);
41077        }
41078
41079 ;
41080 return 0;
41081}
41082
41083_ACEOF
41084if ac_fn_c_try_run "$LINENO"
41085then :
41086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41087printf "%s\n" "yes" >&6; }
41088      tst_works_poll="yes"
41089
41090else $as_nop
41091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41092printf "%s\n" "no" >&6; }
41093      tst_works_poll="no"
41094
41095fi
41096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41097  conftest.$ac_objext conftest.beam conftest.$ac_ext
41098fi
41099
41100     ;;
41101     *)
41102      old=$LD_LIBRARY_PATH
41103      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41104      export LD_LIBRARY_PATH
41105      if test "$cross_compiling" = yes
41106then :
41107  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41109as_fn_error $? "cannot run test program while cross compiling
41110See \`config.log' for more details" "$LINENO" 5; }
41111else $as_nop
41112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41113/* end confdefs.h.  */
41114
41115
41116        $curl_includes_stdlib
41117        $curl_includes_poll
41118        $curl_includes_time
41119
41120int main (void)
41121{
41122
41123        /* detect the original poll() breakage */
41124        if(0 != poll(0, 0, 10))
41125          exit(1); /* fail */
41126        else {
41127          /* detect the 10.12 poll() breakage */
41128          struct timeval before, after;
41129          int rc;
41130          size_t us;
41131
41132          gettimeofday(&before, NULL);
41133          rc = poll(NULL, 0, 500);
41134          gettimeofday(&after, NULL);
41135
41136          us = (after.tv_sec - before.tv_sec) * 1000000 +
41137            (after.tv_usec - before.tv_usec);
41138
41139          if(us < 400000)
41140            exit(1);
41141        }
41142
41143 ;
41144 return 0;
41145}
41146
41147_ACEOF
41148if ac_fn_c_try_run "$LINENO"
41149then :
41150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41151printf "%s\n" "yes" >&6; }
41152      tst_works_poll="yes"
41153
41154else $as_nop
41155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41156printf "%s\n" "no" >&6; }
41157      tst_works_poll="no"
41158
41159fi
41160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41161  conftest.$ac_objext conftest.beam conftest.$ac_ext
41162fi
41163
41164      LD_LIBRARY_PATH=$old # restore
41165     ;;
41166   esac
41167
41168  fi
41169  #
41170  if test "$tst_compi_poll" = "yes" &&
41171    test "$tst_works_poll" != "no"; then
41172    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41173printf %s "checking if poll usage allowed... " >&6; }
41174    if test "x$curl_disallow_poll" != "xyes"; then
41175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41176printf "%s\n" "yes" >&6; }
41177      tst_allow_poll="yes"
41178    else
41179      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41180printf "%s\n" "no" >&6; }
41181      tst_allow_poll="no"
41182    fi
41183  fi
41184  #
41185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41186printf %s "checking if poll might be used... " >&6; }
41187  if test "$tst_links_poll" = "yes" &&
41188     test "$tst_proto_poll" = "yes" &&
41189     test "$tst_compi_poll" = "yes" &&
41190     test "$tst_allow_poll" = "yes" &&
41191     test "$tst_works_poll" != "no"; then
41192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41193printf "%s\n" "yes" >&6; }
41194
41195printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41196
41197    curl_cv_func_poll="yes"
41198  else
41199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41200printf "%s\n" "no" >&6; }
41201    curl_cv_func_poll="no"
41202  fi
41203
41204
41205curl_includes_signal="\
41206/* includes start */
41207#ifdef HAVE_SYS_TYPES_H
41208#  include <sys/types.h>
41209#endif
41210#ifdef HAVE_SIGNAL_H
41211#  include <signal.h>
41212#endif
41213/* includes end */"
41214  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41215"
41216if test "x$ac_cv_header_sys_types_h" = xyes
41217then :
41218  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41219
41220fi
41221ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
41222"
41223if test "x$ac_cv_header_signal_h" = xyes
41224then :
41225  printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
41226
41227fi
41228
41229
41230
41231    #
41232  tst_links_sigaction="unknown"
41233  tst_proto_sigaction="unknown"
41234  tst_compi_sigaction="unknown"
41235  tst_allow_sigaction="unknown"
41236  #
41237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41238printf %s "checking if sigaction can be linked... " >&6; }
41239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41240/* end confdefs.h.  */
41241
41242
41243#define sigaction innocuous_sigaction
41244#ifdef __STDC__
41245# include <limits.h>
41246#else
41247# include <assert.h>
41248#endif
41249#undef sigaction
41250#ifdef __cplusplus
41251extern "C"
41252#endif
41253char sigaction ();
41254#if defined __stub_sigaction || defined __stub___sigaction
41255choke me
41256#endif
41257
41258int main (void)
41259{
41260return sigaction ();
41261 ;
41262 return 0;
41263}
41264
41265_ACEOF
41266if ac_fn_c_try_link "$LINENO"
41267then :
41268
41269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270printf "%s\n" "yes" >&6; }
41271    tst_links_sigaction="yes"
41272
41273else $as_nop
41274
41275    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41276printf "%s\n" "no" >&6; }
41277    tst_links_sigaction="no"
41278
41279fi
41280rm -f core conftest.err conftest.$ac_objext conftest.beam \
41281    conftest$ac_exeext conftest.$ac_ext
41282  #
41283  if test "$tst_links_sigaction" = "yes"; then
41284    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41285printf %s "checking if sigaction is prototyped... " >&6; }
41286    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41287/* end confdefs.h.  */
41288
41289      $curl_includes_signal
41290
41291_ACEOF
41292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41293  $EGREP "sigaction" >/dev/null 2>&1
41294then :
41295
41296      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41297printf "%s\n" "yes" >&6; }
41298      tst_proto_sigaction="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_proto_sigaction="no"
41305
41306fi
41307rm -rf conftest*
41308
41309  fi
41310  #
41311  if test "$tst_proto_sigaction" = "yes"; then
41312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41313printf %s "checking if sigaction is compilable... " >&6; }
41314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41315/* end confdefs.h.  */
41316
41317
41318        $curl_includes_signal
41319
41320int main (void)
41321{
41322
41323        if(0 != sigaction(0, 0, 0))
41324          return 1;
41325
41326 ;
41327 return 0;
41328}
41329
41330_ACEOF
41331if ac_fn_c_try_compile "$LINENO"
41332then :
41333
41334      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41335printf "%s\n" "yes" >&6; }
41336      tst_compi_sigaction="yes"
41337
41338else $as_nop
41339
41340      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41341printf "%s\n" "no" >&6; }
41342      tst_compi_sigaction="no"
41343
41344fi
41345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41346  fi
41347  #
41348  if test "$tst_compi_sigaction" = "yes"; then
41349    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41350printf %s "checking if sigaction usage allowed... " >&6; }
41351    if test "x$curl_disallow_sigaction" != "xyes"; then
41352      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41353printf "%s\n" "yes" >&6; }
41354      tst_allow_sigaction="yes"
41355    else
41356      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41357printf "%s\n" "no" >&6; }
41358      tst_allow_sigaction="no"
41359    fi
41360  fi
41361  #
41362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41363printf %s "checking if sigaction might be used... " >&6; }
41364  if test "$tst_links_sigaction" = "yes" &&
41365     test "$tst_proto_sigaction" = "yes" &&
41366     test "$tst_compi_sigaction" = "yes" &&
41367     test "$tst_allow_sigaction" = "yes"; then
41368    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41369printf "%s\n" "yes" >&6; }
41370
41371printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41372
41373    curl_cv_func_sigaction="yes"
41374  else
41375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41376printf "%s\n" "no" >&6; }
41377    curl_cv_func_sigaction="no"
41378  fi
41379
41380
41381    #
41382  tst_links_siginterrupt="unknown"
41383  tst_proto_siginterrupt="unknown"
41384  tst_compi_siginterrupt="unknown"
41385  tst_allow_siginterrupt="unknown"
41386  #
41387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41388printf %s "checking if siginterrupt can be linked... " >&6; }
41389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41390/* end confdefs.h.  */
41391
41392
41393#define siginterrupt innocuous_siginterrupt
41394#ifdef __STDC__
41395# include <limits.h>
41396#else
41397# include <assert.h>
41398#endif
41399#undef siginterrupt
41400#ifdef __cplusplus
41401extern "C"
41402#endif
41403char siginterrupt ();
41404#if defined __stub_siginterrupt || defined __stub___siginterrupt
41405choke me
41406#endif
41407
41408int main (void)
41409{
41410return siginterrupt ();
41411 ;
41412 return 0;
41413}
41414
41415_ACEOF
41416if ac_fn_c_try_link "$LINENO"
41417then :
41418
41419    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41420printf "%s\n" "yes" >&6; }
41421    tst_links_siginterrupt="yes"
41422
41423else $as_nop
41424
41425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41426printf "%s\n" "no" >&6; }
41427    tst_links_siginterrupt="no"
41428
41429fi
41430rm -f core conftest.err conftest.$ac_objext conftest.beam \
41431    conftest$ac_exeext conftest.$ac_ext
41432  #
41433  if test "$tst_links_siginterrupt" = "yes"; then
41434    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41435printf %s "checking if siginterrupt is prototyped... " >&6; }
41436    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41437/* end confdefs.h.  */
41438
41439      $curl_includes_signal
41440
41441_ACEOF
41442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41443  $EGREP "siginterrupt" >/dev/null 2>&1
41444then :
41445
41446      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41447printf "%s\n" "yes" >&6; }
41448      tst_proto_siginterrupt="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_proto_siginterrupt="no"
41455
41456fi
41457rm -rf conftest*
41458
41459  fi
41460  #
41461  if test "$tst_proto_siginterrupt" = "yes"; then
41462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41463printf %s "checking if siginterrupt is compilable... " >&6; }
41464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41465/* end confdefs.h.  */
41466
41467
41468        $curl_includes_signal
41469
41470int main (void)
41471{
41472
41473        if(0 != siginterrupt(0, 0))
41474          return 1;
41475
41476 ;
41477 return 0;
41478}
41479
41480_ACEOF
41481if ac_fn_c_try_compile "$LINENO"
41482then :
41483
41484      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41485printf "%s\n" "yes" >&6; }
41486      tst_compi_siginterrupt="yes"
41487
41488else $as_nop
41489
41490      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41491printf "%s\n" "no" >&6; }
41492      tst_compi_siginterrupt="no"
41493
41494fi
41495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41496  fi
41497  #
41498  if test "$tst_compi_siginterrupt" = "yes"; then
41499    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41500printf %s "checking if siginterrupt usage allowed... " >&6; }
41501    if test "x$curl_disallow_siginterrupt" != "xyes"; then
41502      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41503printf "%s\n" "yes" >&6; }
41504      tst_allow_siginterrupt="yes"
41505    else
41506      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41507printf "%s\n" "no" >&6; }
41508      tst_allow_siginterrupt="no"
41509    fi
41510  fi
41511  #
41512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41513printf %s "checking if siginterrupt might be used... " >&6; }
41514  if test "$tst_links_siginterrupt" = "yes" &&
41515     test "$tst_proto_siginterrupt" = "yes" &&
41516     test "$tst_compi_siginterrupt" = "yes" &&
41517     test "$tst_allow_siginterrupt" = "yes"; then
41518    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41519printf "%s\n" "yes" >&6; }
41520
41521printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41522
41523    curl_cv_func_siginterrupt="yes"
41524  else
41525    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41526printf "%s\n" "no" >&6; }
41527    curl_cv_func_siginterrupt="no"
41528  fi
41529
41530
41531    #
41532  tst_links_signal="unknown"
41533  tst_proto_signal="unknown"
41534  tst_compi_signal="unknown"
41535  tst_allow_signal="unknown"
41536  #
41537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41538printf %s "checking if signal can be linked... " >&6; }
41539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41540/* end confdefs.h.  */
41541
41542
41543#define signal innocuous_signal
41544#ifdef __STDC__
41545# include <limits.h>
41546#else
41547# include <assert.h>
41548#endif
41549#undef signal
41550#ifdef __cplusplus
41551extern "C"
41552#endif
41553char signal ();
41554#if defined __stub_signal || defined __stub___signal
41555choke me
41556#endif
41557
41558int main (void)
41559{
41560return signal ();
41561 ;
41562 return 0;
41563}
41564
41565_ACEOF
41566if ac_fn_c_try_link "$LINENO"
41567then :
41568
41569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41570printf "%s\n" "yes" >&6; }
41571    tst_links_signal="yes"
41572
41573else $as_nop
41574
41575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41576printf "%s\n" "no" >&6; }
41577    tst_links_signal="no"
41578
41579fi
41580rm -f core conftest.err conftest.$ac_objext conftest.beam \
41581    conftest$ac_exeext conftest.$ac_ext
41582  #
41583  if test "$tst_links_signal" = "yes"; then
41584    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41585printf %s "checking if signal is prototyped... " >&6; }
41586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41587/* end confdefs.h.  */
41588
41589      $curl_includes_signal
41590
41591_ACEOF
41592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41593  $EGREP "signal" >/dev/null 2>&1
41594then :
41595
41596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41597printf "%s\n" "yes" >&6; }
41598      tst_proto_signal="yes"
41599
41600else $as_nop
41601
41602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41603printf "%s\n" "no" >&6; }
41604      tst_proto_signal="no"
41605
41606fi
41607rm -rf conftest*
41608
41609  fi
41610  #
41611  if test "$tst_proto_signal" = "yes"; then
41612    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41613printf %s "checking if signal is compilable... " >&6; }
41614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41615/* end confdefs.h.  */
41616
41617
41618        $curl_includes_signal
41619
41620int main (void)
41621{
41622
41623        if(0 != signal(0, 0))
41624          return 1;
41625
41626 ;
41627 return 0;
41628}
41629
41630_ACEOF
41631if ac_fn_c_try_compile "$LINENO"
41632then :
41633
41634      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41635printf "%s\n" "yes" >&6; }
41636      tst_compi_signal="yes"
41637
41638else $as_nop
41639
41640      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41641printf "%s\n" "no" >&6; }
41642      tst_compi_signal="no"
41643
41644fi
41645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41646  fi
41647  #
41648  if test "$tst_compi_signal" = "yes"; then
41649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41650printf %s "checking if signal usage allowed... " >&6; }
41651    if test "x$curl_disallow_signal" != "xyes"; then
41652      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41653printf "%s\n" "yes" >&6; }
41654      tst_allow_signal="yes"
41655    else
41656      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41657printf "%s\n" "no" >&6; }
41658      tst_allow_signal="no"
41659    fi
41660  fi
41661  #
41662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41663printf %s "checking if signal might be used... " >&6; }
41664  if test "$tst_links_signal" = "yes" &&
41665     test "$tst_proto_signal" = "yes" &&
41666     test "$tst_compi_signal" = "yes" &&
41667     test "$tst_allow_signal" = "yes"; then
41668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41669printf "%s\n" "yes" >&6; }
41670
41671printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41672
41673    curl_cv_func_signal="yes"
41674  else
41675    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41676printf "%s\n" "no" >&6; }
41677    curl_cv_func_signal="no"
41678  fi
41679
41680
41681curl_includes_setjmp="\
41682/* includes start */
41683#ifdef HAVE_SYS_TYPES_H
41684#  include <sys/types.h>
41685#endif
41686#ifdef HAVE_SETJMP_H
41687#  include <setjmp.h>
41688#endif
41689/* includes end */"
41690  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41691"
41692if test "x$ac_cv_header_sys_types_h" = xyes
41693then :
41694  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41695
41696fi
41697ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
41698"
41699if test "x$ac_cv_header_setjmp_h" = xyes
41700then :
41701  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
41702
41703fi
41704
41705
41706
41707    #
41708  tst_links_sigsetjmp="unknown"
41709  tst_macro_sigsetjmp="unknown"
41710  tst_proto_sigsetjmp="unknown"
41711  tst_compi_sigsetjmp="unknown"
41712  tst_allow_sigsetjmp="unknown"
41713  #
41714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41715printf %s "checking if sigsetjmp can be linked... " >&6; }
41716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41717/* end confdefs.h.  */
41718
41719
41720#define sigsetjmp innocuous_sigsetjmp
41721#ifdef __STDC__
41722# include <limits.h>
41723#else
41724# include <assert.h>
41725#endif
41726#undef sigsetjmp
41727#ifdef __cplusplus
41728extern "C"
41729#endif
41730char sigsetjmp ();
41731#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41732choke me
41733#endif
41734
41735int main (void)
41736{
41737return sigsetjmp ();
41738 ;
41739 return 0;
41740}
41741
41742_ACEOF
41743if ac_fn_c_try_link "$LINENO"
41744then :
41745
41746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41747printf "%s\n" "yes" >&6; }
41748    tst_links_sigsetjmp="yes"
41749
41750else $as_nop
41751
41752    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41753printf "%s\n" "no" >&6; }
41754    tst_links_sigsetjmp="no"
41755
41756fi
41757rm -f core conftest.err conftest.$ac_objext conftest.beam \
41758    conftest$ac_exeext conftest.$ac_ext
41759  #
41760  if test "$tst_links_sigsetjmp" = "no"; then
41761    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41762printf %s "checking if sigsetjmp seems a macro... " >&6; }
41763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41764/* end confdefs.h.  */
41765
41766
41767        $curl_includes_setjmp
41768
41769int main (void)
41770{
41771
41772        sigjmp_buf env;
41773        if(0 != sigsetjmp(env, 0))
41774          return 1;
41775
41776 ;
41777 return 0;
41778}
41779
41780_ACEOF
41781if ac_fn_c_try_link "$LINENO"
41782then :
41783
41784      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41785printf "%s\n" "yes" >&6; }
41786      tst_macro_sigsetjmp="yes"
41787
41788else $as_nop
41789
41790      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41791printf "%s\n" "no" >&6; }
41792      tst_macro_sigsetjmp="no"
41793
41794fi
41795rm -f core conftest.err conftest.$ac_objext conftest.beam \
41796    conftest$ac_exeext conftest.$ac_ext
41797  fi
41798  #
41799  if test "$tst_links_sigsetjmp" = "yes"; then
41800    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41801printf %s "checking if sigsetjmp is prototyped... " >&6; }
41802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41803/* end confdefs.h.  */
41804
41805      $curl_includes_setjmp
41806
41807_ACEOF
41808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41809  $EGREP "sigsetjmp" >/dev/null 2>&1
41810then :
41811
41812      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41813printf "%s\n" "yes" >&6; }
41814      tst_proto_sigsetjmp="yes"
41815
41816else $as_nop
41817
41818      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41819printf "%s\n" "no" >&6; }
41820      tst_proto_sigsetjmp="no"
41821
41822fi
41823rm -rf conftest*
41824
41825  fi
41826  #
41827  if test "$tst_proto_sigsetjmp" = "yes" ||
41828     test "$tst_macro_sigsetjmp" = "yes"; then
41829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41830printf %s "checking if sigsetjmp is compilable... " >&6; }
41831    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41832/* end confdefs.h.  */
41833
41834
41835        $curl_includes_setjmp
41836
41837int main (void)
41838{
41839
41840        sigjmp_buf env;
41841        if(0 != sigsetjmp(env, 0))
41842          return 1;
41843
41844 ;
41845 return 0;
41846}
41847
41848_ACEOF
41849if ac_fn_c_try_compile "$LINENO"
41850then :
41851
41852      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41853printf "%s\n" "yes" >&6; }
41854      tst_compi_sigsetjmp="yes"
41855
41856else $as_nop
41857
41858      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41859printf "%s\n" "no" >&6; }
41860      tst_compi_sigsetjmp="no"
41861
41862fi
41863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41864  fi
41865  #
41866  if test "$tst_compi_sigsetjmp" = "yes"; then
41867    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41868printf %s "checking if sigsetjmp usage allowed... " >&6; }
41869    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41870      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41871printf "%s\n" "yes" >&6; }
41872      tst_allow_sigsetjmp="yes"
41873    else
41874      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41875printf "%s\n" "no" >&6; }
41876      tst_allow_sigsetjmp="no"
41877    fi
41878  fi
41879  #
41880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41881printf %s "checking if sigsetjmp might be used... " >&6; }
41882  if (test "$tst_proto_sigsetjmp" = "yes" ||
41883      test "$tst_macro_sigsetjmp" = "yes") &&
41884     test "$tst_compi_sigsetjmp" = "yes" &&
41885     test "$tst_allow_sigsetjmp" = "yes"; then
41886    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41887printf "%s\n" "yes" >&6; }
41888
41889printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41890
41891    curl_cv_func_sigsetjmp="yes"
41892  else
41893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41894printf "%s\n" "no" >&6; }
41895    curl_cv_func_sigsetjmp="no"
41896  fi
41897
41898
41899        #
41900  tst_links_socket="unknown"
41901  tst_proto_socket="unknown"
41902  tst_compi_socket="unknown"
41903  tst_allow_socket="unknown"
41904  #
41905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41906printf %s "checking if socket can be linked... " >&6; }
41907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41908/* end confdefs.h.  */
41909
41910
41911      $curl_includes_winsock2
41912      $curl_includes_bsdsocket
41913      $curl_includes_sys_socket
41914      $curl_includes_socket
41915
41916int main (void)
41917{
41918
41919      if(0 != socket(0, 0, 0))
41920        return 1;
41921
41922 ;
41923 return 0;
41924}
41925
41926_ACEOF
41927if ac_fn_c_try_link "$LINENO"
41928then :
41929
41930    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41931printf "%s\n" "yes" >&6; }
41932    tst_links_socket="yes"
41933
41934else $as_nop
41935
41936    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41937printf "%s\n" "no" >&6; }
41938    tst_links_socket="no"
41939
41940fi
41941rm -f core conftest.err conftest.$ac_objext conftest.beam \
41942    conftest$ac_exeext conftest.$ac_ext
41943  #
41944  if test "$tst_links_socket" = "yes"; then
41945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41946printf %s "checking if socket is prototyped... " >&6; }
41947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41948/* end confdefs.h.  */
41949
41950      $curl_includes_winsock2
41951      $curl_includes_bsdsocket
41952      $curl_includes_sys_socket
41953      $curl_includes_socket
41954
41955_ACEOF
41956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41957  $EGREP "socket" >/dev/null 2>&1
41958then :
41959
41960      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41961printf "%s\n" "yes" >&6; }
41962      tst_proto_socket="yes"
41963
41964else $as_nop
41965
41966      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41967printf "%s\n" "no" >&6; }
41968      tst_proto_socket="no"
41969
41970fi
41971rm -rf conftest*
41972
41973  fi
41974  #
41975  if test "$tst_proto_socket" = "yes"; then
41976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
41977printf %s "checking if socket is compilable... " >&6; }
41978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41979/* end confdefs.h.  */
41980
41981
41982        $curl_includes_winsock2
41983        $curl_includes_bsdsocket
41984        $curl_includes_sys_socket
41985        $curl_includes_socket
41986
41987int main (void)
41988{
41989
41990        if(0 != socket(0, 0, 0))
41991          return 1;
41992
41993 ;
41994 return 0;
41995}
41996
41997_ACEOF
41998if ac_fn_c_try_compile "$LINENO"
41999then :
42000
42001      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42002printf "%s\n" "yes" >&6; }
42003      tst_compi_socket="yes"
42004
42005else $as_nop
42006
42007      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42008printf "%s\n" "no" >&6; }
42009      tst_compi_socket="no"
42010
42011fi
42012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42013  fi
42014  #
42015  if test "$tst_compi_socket" = "yes"; then
42016    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42017printf %s "checking if socket usage allowed... " >&6; }
42018    if test "x$curl_disallow_socket" != "xyes"; then
42019      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42020printf "%s\n" "yes" >&6; }
42021      tst_allow_socket="yes"
42022    else
42023      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42024printf "%s\n" "no" >&6; }
42025      tst_allow_socket="no"
42026    fi
42027  fi
42028  #
42029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42030printf %s "checking if socket might be used... " >&6; }
42031  if test "$tst_links_socket" = "yes" &&
42032     test "$tst_proto_socket" = "yes" &&
42033     test "$tst_compi_socket" = "yes" &&
42034     test "$tst_allow_socket" = "yes"; then
42035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42036printf "%s\n" "yes" >&6; }
42037
42038printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42039
42040    curl_cv_func_socket="yes"
42041  else
42042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42043printf "%s\n" "no" >&6; }
42044    curl_cv_func_socket="no"
42045  fi
42046
42047
42048      #
42049  tst_links_socketpair="unknown"
42050  tst_proto_socketpair="unknown"
42051  tst_compi_socketpair="unknown"
42052  tst_allow_socketpair="unknown"
42053  #
42054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42055printf %s "checking if socketpair can be linked... " >&6; }
42056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42057/* end confdefs.h.  */
42058
42059
42060#define socketpair innocuous_socketpair
42061#ifdef __STDC__
42062# include <limits.h>
42063#else
42064# include <assert.h>
42065#endif
42066#undef socketpair
42067#ifdef __cplusplus
42068extern "C"
42069#endif
42070char socketpair ();
42071#if defined __stub_socketpair || defined __stub___socketpair
42072choke me
42073#endif
42074
42075int main (void)
42076{
42077return socketpair ();
42078 ;
42079 return 0;
42080}
42081
42082_ACEOF
42083if ac_fn_c_try_link "$LINENO"
42084then :
42085
42086    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42087printf "%s\n" "yes" >&6; }
42088    tst_links_socketpair="yes"
42089
42090else $as_nop
42091
42092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42093printf "%s\n" "no" >&6; }
42094    tst_links_socketpair="no"
42095
42096fi
42097rm -f core conftest.err conftest.$ac_objext conftest.beam \
42098    conftest$ac_exeext conftest.$ac_ext
42099  #
42100  if test "$tst_links_socketpair" = "yes"; then
42101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42102printf %s "checking if socketpair is prototyped... " >&6; }
42103    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42104/* end confdefs.h.  */
42105
42106      $curl_includes_sys_socket
42107      $curl_includes_socket
42108
42109_ACEOF
42110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42111  $EGREP "socketpair" >/dev/null 2>&1
42112then :
42113
42114      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42115printf "%s\n" "yes" >&6; }
42116      tst_proto_socketpair="yes"
42117
42118else $as_nop
42119
42120      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42121printf "%s\n" "no" >&6; }
42122      tst_proto_socketpair="no"
42123
42124fi
42125rm -rf conftest*
42126
42127  fi
42128  #
42129  if test "$tst_proto_socketpair" = "yes"; then
42130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42131printf %s "checking if socketpair is compilable... " >&6; }
42132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42133/* end confdefs.h.  */
42134
42135
42136        $curl_includes_sys_socket
42137        $curl_includes_socket
42138
42139int main (void)
42140{
42141
42142        int sv[2];
42143        if(0 != socketpair(0, 0, 0, sv))
42144          return 1;
42145
42146 ;
42147 return 0;
42148}
42149
42150_ACEOF
42151if ac_fn_c_try_compile "$LINENO"
42152then :
42153
42154      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42155printf "%s\n" "yes" >&6; }
42156      tst_compi_socketpair="yes"
42157
42158else $as_nop
42159
42160      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42161printf "%s\n" "no" >&6; }
42162      tst_compi_socketpair="no"
42163
42164fi
42165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42166  fi
42167  #
42168  if test "$tst_compi_socketpair" = "yes"; then
42169    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42170printf %s "checking if socketpair usage allowed... " >&6; }
42171    if test "x$curl_disallow_socketpair" != "xyes"; then
42172      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42173printf "%s\n" "yes" >&6; }
42174      tst_allow_socketpair="yes"
42175    else
42176      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42177printf "%s\n" "no" >&6; }
42178      tst_allow_socketpair="no"
42179    fi
42180  fi
42181  #
42182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42183printf %s "checking if socketpair might be used... " >&6; }
42184  if test "$tst_links_socketpair" = "yes" &&
42185     test "$tst_proto_socketpair" = "yes" &&
42186     test "$tst_compi_socketpair" = "yes" &&
42187     test "$tst_allow_socketpair" = "yes"; then
42188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42189printf "%s\n" "yes" >&6; }
42190
42191printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42192
42193    curl_cv_func_socketpair="yes"
42194  else
42195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42196printf "%s\n" "no" >&6; }
42197    curl_cv_func_socketpair="no"
42198  fi
42199
42200
42201    #
42202  tst_links_strcasecmp="unknown"
42203  tst_proto_strcasecmp="unknown"
42204  tst_compi_strcasecmp="unknown"
42205  tst_allow_strcasecmp="unknown"
42206  #
42207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42208printf %s "checking if strcasecmp can be linked... " >&6; }
42209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42210/* end confdefs.h.  */
42211
42212
42213#define strcasecmp innocuous_strcasecmp
42214#ifdef __STDC__
42215# include <limits.h>
42216#else
42217# include <assert.h>
42218#endif
42219#undef strcasecmp
42220#ifdef __cplusplus
42221extern "C"
42222#endif
42223char strcasecmp ();
42224#if defined __stub_strcasecmp || defined __stub___strcasecmp
42225choke me
42226#endif
42227
42228int main (void)
42229{
42230return strcasecmp ();
42231 ;
42232 return 0;
42233}
42234
42235_ACEOF
42236if ac_fn_c_try_link "$LINENO"
42237then :
42238
42239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42240printf "%s\n" "yes" >&6; }
42241    tst_links_strcasecmp="yes"
42242
42243else $as_nop
42244
42245    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42246printf "%s\n" "no" >&6; }
42247    tst_links_strcasecmp="no"
42248
42249fi
42250rm -f core conftest.err conftest.$ac_objext conftest.beam \
42251    conftest$ac_exeext conftest.$ac_ext
42252  #
42253  if test "$tst_links_strcasecmp" = "yes"; then
42254    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42255printf %s "checking if strcasecmp is prototyped... " >&6; }
42256    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42257/* end confdefs.h.  */
42258
42259      $curl_includes_string
42260
42261_ACEOF
42262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42263  $EGREP "strcasecmp" >/dev/null 2>&1
42264then :
42265
42266      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42267printf "%s\n" "yes" >&6; }
42268      tst_proto_strcasecmp="yes"
42269
42270else $as_nop
42271
42272      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42273printf "%s\n" "no" >&6; }
42274      tst_proto_strcasecmp="no"
42275
42276fi
42277rm -rf conftest*
42278
42279  fi
42280  #
42281  if test "$tst_proto_strcasecmp" = "yes"; then
42282    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42283printf %s "checking if strcasecmp is compilable... " >&6; }
42284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42285/* end confdefs.h.  */
42286
42287
42288        $curl_includes_string
42289
42290int main (void)
42291{
42292
42293        if(0 != strcasecmp(0, 0))
42294          return 1;
42295
42296 ;
42297 return 0;
42298}
42299
42300_ACEOF
42301if ac_fn_c_try_compile "$LINENO"
42302then :
42303
42304      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42305printf "%s\n" "yes" >&6; }
42306      tst_compi_strcasecmp="yes"
42307
42308else $as_nop
42309
42310      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42311printf "%s\n" "no" >&6; }
42312      tst_compi_strcasecmp="no"
42313
42314fi
42315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42316  fi
42317  #
42318  if test "$tst_compi_strcasecmp" = "yes"; then
42319    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42320printf %s "checking if strcasecmp usage allowed... " >&6; }
42321    if test "x$curl_disallow_strcasecmp" != "xyes"; then
42322      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42323printf "%s\n" "yes" >&6; }
42324      tst_allow_strcasecmp="yes"
42325    else
42326      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42327printf "%s\n" "no" >&6; }
42328      tst_allow_strcasecmp="no"
42329    fi
42330  fi
42331  #
42332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42333printf %s "checking if strcasecmp might be used... " >&6; }
42334  if test "$tst_links_strcasecmp" = "yes" &&
42335     test "$tst_proto_strcasecmp" = "yes" &&
42336     test "$tst_compi_strcasecmp" = "yes" &&
42337     test "$tst_allow_strcasecmp" = "yes"; then
42338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42339printf "%s\n" "yes" >&6; }
42340
42341printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42342
42343    curl_cv_func_strcasecmp="yes"
42344  else
42345    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42346printf "%s\n" "no" >&6; }
42347    curl_cv_func_strcasecmp="no"
42348  fi
42349
42350
42351    #
42352  tst_links_strcmpi="unknown"
42353  tst_proto_strcmpi="unknown"
42354  tst_compi_strcmpi="unknown"
42355  tst_allow_strcmpi="unknown"
42356  #
42357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42358printf %s "checking if strcmpi can be linked... " >&6; }
42359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42360/* end confdefs.h.  */
42361
42362
42363#define strcmpi innocuous_strcmpi
42364#ifdef __STDC__
42365# include <limits.h>
42366#else
42367# include <assert.h>
42368#endif
42369#undef strcmpi
42370#ifdef __cplusplus
42371extern "C"
42372#endif
42373char strcmpi ();
42374#if defined __stub_strcmpi || defined __stub___strcmpi
42375choke me
42376#endif
42377
42378int main (void)
42379{
42380return strcmpi ();
42381 ;
42382 return 0;
42383}
42384
42385_ACEOF
42386if ac_fn_c_try_link "$LINENO"
42387then :
42388
42389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42390printf "%s\n" "yes" >&6; }
42391    tst_links_strcmpi="yes"
42392
42393else $as_nop
42394
42395    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42396printf "%s\n" "no" >&6; }
42397    tst_links_strcmpi="no"
42398
42399fi
42400rm -f core conftest.err conftest.$ac_objext conftest.beam \
42401    conftest$ac_exeext conftest.$ac_ext
42402  #
42403  if test "$tst_links_strcmpi" = "yes"; then
42404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42405printf %s "checking if strcmpi is prototyped... " >&6; }
42406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42407/* end confdefs.h.  */
42408
42409      $curl_includes_string
42410
42411_ACEOF
42412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42413  $EGREP "strcmpi" >/dev/null 2>&1
42414then :
42415
42416      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42417printf "%s\n" "yes" >&6; }
42418      tst_proto_strcmpi="yes"
42419
42420else $as_nop
42421
42422      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42423printf "%s\n" "no" >&6; }
42424      tst_proto_strcmpi="no"
42425
42426fi
42427rm -rf conftest*
42428
42429  fi
42430  #
42431  if test "$tst_proto_strcmpi" = "yes"; then
42432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42433printf %s "checking if strcmpi is compilable... " >&6; }
42434    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42435/* end confdefs.h.  */
42436
42437
42438        $curl_includes_string
42439
42440int main (void)
42441{
42442
42443        if(0 != strcmpi(0, 0))
42444          return 1;
42445
42446 ;
42447 return 0;
42448}
42449
42450_ACEOF
42451if ac_fn_c_try_compile "$LINENO"
42452then :
42453
42454      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42455printf "%s\n" "yes" >&6; }
42456      tst_compi_strcmpi="yes"
42457
42458else $as_nop
42459
42460      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42461printf "%s\n" "no" >&6; }
42462      tst_compi_strcmpi="no"
42463
42464fi
42465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42466  fi
42467  #
42468  if test "$tst_compi_strcmpi" = "yes"; then
42469    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42470printf %s "checking if strcmpi usage allowed... " >&6; }
42471    if test "x$curl_disallow_strcmpi" != "xyes"; then
42472      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42473printf "%s\n" "yes" >&6; }
42474      tst_allow_strcmpi="yes"
42475    else
42476      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42477printf "%s\n" "no" >&6; }
42478      tst_allow_strcmpi="no"
42479    fi
42480  fi
42481  #
42482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42483printf %s "checking if strcmpi might be used... " >&6; }
42484  if test "$tst_links_strcmpi" = "yes" &&
42485     test "$tst_proto_strcmpi" = "yes" &&
42486     test "$tst_compi_strcmpi" = "yes" &&
42487     test "$tst_allow_strcmpi" = "yes"; then
42488    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42489printf "%s\n" "yes" >&6; }
42490
42491printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42492
42493    curl_cv_func_strcmpi="yes"
42494  else
42495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42496printf "%s\n" "no" >&6; }
42497    curl_cv_func_strcmpi="no"
42498  fi
42499
42500
42501    #
42502  tst_links_strdup="unknown"
42503  tst_proto_strdup="unknown"
42504  tst_compi_strdup="unknown"
42505  tst_allow_strdup="unknown"
42506  #
42507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42508printf %s "checking if strdup can be linked... " >&6; }
42509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42510/* end confdefs.h.  */
42511
42512
42513#define strdup innocuous_strdup
42514#ifdef __STDC__
42515# include <limits.h>
42516#else
42517# include <assert.h>
42518#endif
42519#undef strdup
42520#ifdef __cplusplus
42521extern "C"
42522#endif
42523char strdup ();
42524#if defined __stub_strdup || defined __stub___strdup
42525choke me
42526#endif
42527
42528int main (void)
42529{
42530return strdup ();
42531 ;
42532 return 0;
42533}
42534
42535_ACEOF
42536if ac_fn_c_try_link "$LINENO"
42537then :
42538
42539    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42540printf "%s\n" "yes" >&6; }
42541    tst_links_strdup="yes"
42542
42543else $as_nop
42544
42545    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42546printf "%s\n" "no" >&6; }
42547    tst_links_strdup="no"
42548
42549fi
42550rm -f core conftest.err conftest.$ac_objext conftest.beam \
42551    conftest$ac_exeext conftest.$ac_ext
42552  #
42553  if test "$tst_links_strdup" = "yes"; then
42554    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42555printf %s "checking if strdup is prototyped... " >&6; }
42556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42557/* end confdefs.h.  */
42558
42559      $curl_includes_string
42560
42561_ACEOF
42562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42563  $EGREP "strdup" >/dev/null 2>&1
42564then :
42565
42566      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42567printf "%s\n" "yes" >&6; }
42568      tst_proto_strdup="yes"
42569
42570else $as_nop
42571
42572      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42573printf "%s\n" "no" >&6; }
42574      tst_proto_strdup="no"
42575
42576fi
42577rm -rf conftest*
42578
42579  fi
42580  #
42581  if test "$tst_proto_strdup" = "yes"; then
42582    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42583printf %s "checking if strdup is compilable... " >&6; }
42584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42585/* end confdefs.h.  */
42586
42587
42588        $curl_includes_string
42589
42590int main (void)
42591{
42592
42593        if(0 != strdup(0))
42594          return 1;
42595
42596 ;
42597 return 0;
42598}
42599
42600_ACEOF
42601if ac_fn_c_try_compile "$LINENO"
42602then :
42603
42604      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42605printf "%s\n" "yes" >&6; }
42606      tst_compi_strdup="yes"
42607
42608else $as_nop
42609
42610      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42611printf "%s\n" "no" >&6; }
42612      tst_compi_strdup="no"
42613
42614fi
42615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42616  fi
42617  #
42618  if test "$tst_compi_strdup" = "yes"; then
42619    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42620printf %s "checking if strdup usage allowed... " >&6; }
42621    if test "x$curl_disallow_strdup" != "xyes"; then
42622      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42623printf "%s\n" "yes" >&6; }
42624      tst_allow_strdup="yes"
42625    else
42626      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42627printf "%s\n" "no" >&6; }
42628      tst_allow_strdup="no"
42629    fi
42630  fi
42631  #
42632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42633printf %s "checking if strdup might be used... " >&6; }
42634  if test "$tst_links_strdup" = "yes" &&
42635     test "$tst_proto_strdup" = "yes" &&
42636     test "$tst_compi_strdup" = "yes" &&
42637     test "$tst_allow_strdup" = "yes"; then
42638    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42639printf "%s\n" "yes" >&6; }
42640
42641printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42642
42643    curl_cv_func_strdup="yes"
42644  else
42645    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42646printf "%s\n" "no" >&6; }
42647    curl_cv_func_strdup="no"
42648  fi
42649
42650
42651      #
42652  tst_links_strerror_r="unknown"
42653  tst_proto_strerror_r="unknown"
42654  tst_compi_strerror_r="unknown"
42655  tst_glibc_strerror_r="unknown"
42656  tst_posix_strerror_r="unknown"
42657  tst_allow_strerror_r="unknown"
42658  tst_works_glibc_strerror_r="unknown"
42659  tst_works_posix_strerror_r="unknown"
42660  tst_glibc_strerror_r_type_arg3="unknown"
42661  tst_posix_strerror_r_type_arg3="unknown"
42662  #
42663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42664printf %s "checking if strerror_r can be linked... " >&6; }
42665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42666/* end confdefs.h.  */
42667
42668
42669#define strerror_r innocuous_strerror_r
42670#ifdef __STDC__
42671# include <limits.h>
42672#else
42673# include <assert.h>
42674#endif
42675#undef strerror_r
42676#ifdef __cplusplus
42677extern "C"
42678#endif
42679char strerror_r ();
42680#if defined __stub_strerror_r || defined __stub___strerror_r
42681choke me
42682#endif
42683
42684int main (void)
42685{
42686return strerror_r ();
42687 ;
42688 return 0;
42689}
42690
42691_ACEOF
42692if ac_fn_c_try_link "$LINENO"
42693then :
42694
42695    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42696printf "%s\n" "yes" >&6; }
42697    tst_links_strerror_r="yes"
42698
42699else $as_nop
42700
42701    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42702printf "%s\n" "no" >&6; }
42703    tst_links_strerror_r="no"
42704
42705fi
42706rm -f core conftest.err conftest.$ac_objext conftest.beam \
42707    conftest$ac_exeext conftest.$ac_ext
42708  #
42709  if test "$tst_links_strerror_r" = "yes"; then
42710    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42711printf %s "checking if strerror_r is prototyped... " >&6; }
42712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42713/* end confdefs.h.  */
42714
42715      $curl_includes_string
42716
42717_ACEOF
42718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42719  $EGREP "strerror_r" >/dev/null 2>&1
42720then :
42721
42722      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42723printf "%s\n" "yes" >&6; }
42724      tst_proto_strerror_r="yes"
42725
42726else $as_nop
42727
42728      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42729printf "%s\n" "no" >&6; }
42730      tst_proto_strerror_r="no"
42731
42732fi
42733rm -rf conftest*
42734
42735  fi
42736  #
42737  if test "$tst_proto_strerror_r" = "yes"; then
42738    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42739printf %s "checking if strerror_r is compilable... " >&6; }
42740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42741/* end confdefs.h.  */
42742
42743
42744        $curl_includes_string
42745
42746int main (void)
42747{
42748
42749        if(0 != strerror_r(0, 0, 0))
42750          return 1;
42751
42752 ;
42753 return 0;
42754}
42755
42756_ACEOF
42757if ac_fn_c_try_compile "$LINENO"
42758then :
42759
42760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42761printf "%s\n" "yes" >&6; }
42762      tst_compi_strerror_r="yes"
42763
42764else $as_nop
42765
42766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42767printf "%s\n" "no" >&6; }
42768      tst_compi_strerror_r="no"
42769
42770fi
42771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42772  fi
42773  #
42774  if test "$tst_compi_strerror_r" = "yes"; then
42775    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42776printf %s "checking if strerror_r is glibc like... " >&6; }
42777    tst_glibc_strerror_r_type_arg3="unknown"
42778    for arg3 in 'size_t' 'int' 'unsigned int'; do
42779      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42781/* end confdefs.h.  */
42782
42783
42784            $curl_includes_string
42785            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42786
42787int main (void)
42788{
42789
42790            if(0 != strerror_r(0, 0, 0))
42791              return 1;
42792
42793 ;
42794 return 0;
42795}
42796
42797_ACEOF
42798if ac_fn_c_try_compile "$LINENO"
42799then :
42800
42801          tst_glibc_strerror_r_type_arg3="$arg3"
42802
42803fi
42804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42805      fi
42806    done
42807    case "$tst_glibc_strerror_r_type_arg3" in
42808      unknown)
42809        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42810printf "%s\n" "no" >&6; }
42811        tst_glibc_strerror_r="no"
42812        ;;
42813      *)
42814        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42815printf "%s\n" "yes" >&6; }
42816        tst_glibc_strerror_r="yes"
42817        ;;
42818    esac
42819  fi
42820  #
42821    if test "x$cross_compiling" != "xyes" &&
42822    test "$tst_glibc_strerror_r" = "yes"; then
42823    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42824printf %s "checking if strerror_r seems to work... " >&6; }
42825
42826   case $host_os in
42827     darwin*)
42828      if test "$cross_compiling" = yes
42829then :
42830  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42831printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42832as_fn_error $? "cannot run test program while cross compiling
42833See \`config.log' for more details" "$LINENO" 5; }
42834else $as_nop
42835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42836/* end confdefs.h.  */
42837
42838
42839        $curl_includes_stdlib
42840        $curl_includes_string
42841#       include <errno.h>
42842
42843int main (void)
42844{
42845
42846        char buffer[1024];
42847        char *string = 0;
42848        buffer[0] = '\0';
42849        string = strerror_r(EACCES, buffer, sizeof(buffer));
42850        if(!string)
42851          exit(1); /* fail */
42852        if(!string[0])
42853          exit(1); /* fail */
42854        else
42855          exit(0);
42856
42857 ;
42858 return 0;
42859}
42860
42861_ACEOF
42862if ac_fn_c_try_run "$LINENO"
42863then :
42864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42865printf "%s\n" "yes" >&6; }
42866      tst_works_glibc_strerror_r="yes"
42867
42868else $as_nop
42869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42870printf "%s\n" "no" >&6; }
42871      tst_works_glibc_strerror_r="no"
42872
42873fi
42874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42875  conftest.$ac_objext conftest.beam conftest.$ac_ext
42876fi
42877
42878     ;;
42879     *)
42880      old=$LD_LIBRARY_PATH
42881      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42882      export LD_LIBRARY_PATH
42883      if test "$cross_compiling" = yes
42884then :
42885  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42887as_fn_error $? "cannot run test program while cross compiling
42888See \`config.log' for more details" "$LINENO" 5; }
42889else $as_nop
42890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42891/* end confdefs.h.  */
42892
42893
42894        $curl_includes_stdlib
42895        $curl_includes_string
42896#       include <errno.h>
42897
42898int main (void)
42899{
42900
42901        char buffer[1024];
42902        char *string = 0;
42903        buffer[0] = '\0';
42904        string = strerror_r(EACCES, buffer, sizeof(buffer));
42905        if(!string)
42906          exit(1); /* fail */
42907        if(!string[0])
42908          exit(1); /* fail */
42909        else
42910          exit(0);
42911
42912 ;
42913 return 0;
42914}
42915
42916_ACEOF
42917if ac_fn_c_try_run "$LINENO"
42918then :
42919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42920printf "%s\n" "yes" >&6; }
42921      tst_works_glibc_strerror_r="yes"
42922
42923else $as_nop
42924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42925printf "%s\n" "no" >&6; }
42926      tst_works_glibc_strerror_r="no"
42927
42928fi
42929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42930  conftest.$ac_objext conftest.beam conftest.$ac_ext
42931fi
42932
42933      LD_LIBRARY_PATH=$old # restore
42934     ;;
42935   esac
42936
42937  fi
42938  #
42939  if test "$tst_compi_strerror_r" = "yes" &&
42940    test "$tst_works_glibc_strerror_r" != "yes"; then
42941    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42942printf %s "checking if strerror_r is POSIX like... " >&6; }
42943    tst_posix_strerror_r_type_arg3="unknown"
42944    for arg3 in 'size_t' 'int' 'unsigned int'; do
42945      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42946        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42947/* end confdefs.h.  */
42948
42949
42950            $curl_includes_string
42951            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42952
42953int main (void)
42954{
42955
42956            if(0 != strerror_r(0, 0, 0))
42957              return 1;
42958
42959 ;
42960 return 0;
42961}
42962
42963_ACEOF
42964if ac_fn_c_try_compile "$LINENO"
42965then :
42966
42967          tst_posix_strerror_r_type_arg3="$arg3"
42968
42969fi
42970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42971      fi
42972    done
42973    case "$tst_posix_strerror_r_type_arg3" in
42974      unknown)
42975        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42976printf "%s\n" "no" >&6; }
42977        tst_posix_strerror_r="no"
42978        ;;
42979      *)
42980        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42981printf "%s\n" "yes" >&6; }
42982        tst_posix_strerror_r="yes"
42983        ;;
42984    esac
42985  fi
42986  #
42987    if test "x$cross_compiling" != "xyes" &&
42988    test "$tst_posix_strerror_r" = "yes"; then
42989    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42990printf %s "checking if strerror_r seems to work... " >&6; }
42991
42992   case $host_os in
42993     darwin*)
42994      if test "$cross_compiling" = yes
42995then :
42996  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42997printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42998as_fn_error $? "cannot run test program while cross compiling
42999See \`config.log' for more details" "$LINENO" 5; }
43000else $as_nop
43001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43002/* end confdefs.h.  */
43003
43004
43005        $curl_includes_stdlib
43006        $curl_includes_string
43007#       include <errno.h>
43008
43009int main (void)
43010{
43011
43012        char buffer[1024];
43013        int error = 1;
43014        buffer[0] = '\0';
43015        error = strerror_r(EACCES, buffer, sizeof(buffer));
43016        if(error)
43017          exit(1); /* fail */
43018        if(buffer[0] == '\0')
43019          exit(1); /* fail */
43020        else
43021          exit(0);
43022
43023 ;
43024 return 0;
43025}
43026
43027_ACEOF
43028if ac_fn_c_try_run "$LINENO"
43029then :
43030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43031printf "%s\n" "yes" >&6; }
43032      tst_works_posix_strerror_r="yes"
43033
43034else $as_nop
43035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43036printf "%s\n" "no" >&6; }
43037      tst_works_posix_strerror_r="no"
43038
43039fi
43040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43041  conftest.$ac_objext conftest.beam conftest.$ac_ext
43042fi
43043
43044     ;;
43045     *)
43046      old=$LD_LIBRARY_PATH
43047      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43048      export LD_LIBRARY_PATH
43049      if test "$cross_compiling" = yes
43050then :
43051  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43053as_fn_error $? "cannot run test program while cross compiling
43054See \`config.log' for more details" "$LINENO" 5; }
43055else $as_nop
43056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43057/* end confdefs.h.  */
43058
43059
43060        $curl_includes_stdlib
43061        $curl_includes_string
43062#       include <errno.h>
43063
43064int main (void)
43065{
43066
43067        char buffer[1024];
43068        int error = 1;
43069        buffer[0] = '\0';
43070        error = strerror_r(EACCES, buffer, sizeof(buffer));
43071        if(error)
43072          exit(1); /* fail */
43073        if(buffer[0] == '\0')
43074          exit(1); /* fail */
43075        else
43076          exit(0);
43077
43078 ;
43079 return 0;
43080}
43081
43082_ACEOF
43083if ac_fn_c_try_run "$LINENO"
43084then :
43085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43086printf "%s\n" "yes" >&6; }
43087      tst_works_posix_strerror_r="yes"
43088
43089else $as_nop
43090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43091printf "%s\n" "no" >&6; }
43092      tst_works_posix_strerror_r="no"
43093
43094fi
43095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43096  conftest.$ac_objext conftest.beam conftest.$ac_ext
43097fi
43098
43099      LD_LIBRARY_PATH=$old # restore
43100     ;;
43101   esac
43102
43103  fi
43104  #
43105  if test "$tst_works_glibc_strerror_r" = "yes"; then
43106    tst_posix_strerror_r="no"
43107  fi
43108  if test "$tst_works_posix_strerror_r" = "yes"; then
43109    tst_glibc_strerror_r="no"
43110  fi
43111  if test "$tst_glibc_strerror_r" = "yes" &&
43112    test "$tst_works_glibc_strerror_r" != "no" &&
43113    test "$tst_posix_strerror_r" != "yes"; then
43114    tst_allow_strerror_r="check"
43115  fi
43116  if test "$tst_posix_strerror_r" = "yes" &&
43117    test "$tst_works_posix_strerror_r" != "no" &&
43118    test "$tst_glibc_strerror_r" != "yes"; then
43119    tst_allow_strerror_r="check"
43120  fi
43121  if test "$tst_allow_strerror_r" = "check"; then
43122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43123printf %s "checking if strerror_r usage allowed... " >&6; }
43124    if test "x$curl_disallow_strerror_r" != "xyes"; then
43125      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43126printf "%s\n" "yes" >&6; }
43127      tst_allow_strerror_r="yes"
43128    else
43129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43130printf "%s\n" "no" >&6; }
43131      tst_allow_strerror_r="no"
43132    fi
43133  fi
43134  #
43135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43136printf %s "checking if strerror_r might be used... " >&6; }
43137  if test "$tst_links_strerror_r" = "yes" &&
43138     test "$tst_proto_strerror_r" = "yes" &&
43139     test "$tst_compi_strerror_r" = "yes" &&
43140     test "$tst_allow_strerror_r" = "yes"; then
43141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43142printf "%s\n" "yes" >&6; }
43143    if test "$tst_glibc_strerror_r" = "yes"; then
43144
43145printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43146
43147
43148printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43149
43150    fi
43151    if test "$tst_posix_strerror_r" = "yes"; then
43152
43153printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43154
43155
43156printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43157
43158    fi
43159    curl_cv_func_strerror_r="yes"
43160  else
43161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43162printf "%s\n" "no" >&6; }
43163    curl_cv_func_strerror_r="no"
43164  fi
43165  #
43166  if test "$tst_compi_strerror_r" = "yes" &&
43167     test "$tst_allow_strerror_r" = "unknown"; then
43168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43169printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43170  fi
43171  #
43172
43173
43174    #
43175  tst_links_stricmp="unknown"
43176  tst_proto_stricmp="unknown"
43177  tst_compi_stricmp="unknown"
43178  tst_allow_stricmp="unknown"
43179  #
43180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43181printf %s "checking if stricmp can be linked... " >&6; }
43182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43183/* end confdefs.h.  */
43184
43185
43186#define stricmp innocuous_stricmp
43187#ifdef __STDC__
43188# include <limits.h>
43189#else
43190# include <assert.h>
43191#endif
43192#undef stricmp
43193#ifdef __cplusplus
43194extern "C"
43195#endif
43196char stricmp ();
43197#if defined __stub_stricmp || defined __stub___stricmp
43198choke me
43199#endif
43200
43201int main (void)
43202{
43203return stricmp ();
43204 ;
43205 return 0;
43206}
43207
43208_ACEOF
43209if ac_fn_c_try_link "$LINENO"
43210then :
43211
43212    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43213printf "%s\n" "yes" >&6; }
43214    tst_links_stricmp="yes"
43215
43216else $as_nop
43217
43218    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43219printf "%s\n" "no" >&6; }
43220    tst_links_stricmp="no"
43221
43222fi
43223rm -f core conftest.err conftest.$ac_objext conftest.beam \
43224    conftest$ac_exeext conftest.$ac_ext
43225  #
43226  if test "$tst_links_stricmp" = "yes"; then
43227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43228printf %s "checking if stricmp is prototyped... " >&6; }
43229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43230/* end confdefs.h.  */
43231
43232      $curl_includes_string
43233
43234_ACEOF
43235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43236  $EGREP "stricmp" >/dev/null 2>&1
43237then :
43238
43239      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43240printf "%s\n" "yes" >&6; }
43241      tst_proto_stricmp="yes"
43242
43243else $as_nop
43244
43245      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43246printf "%s\n" "no" >&6; }
43247      tst_proto_stricmp="no"
43248
43249fi
43250rm -rf conftest*
43251
43252  fi
43253  #
43254  if test "$tst_proto_stricmp" = "yes"; then
43255    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43256printf %s "checking if stricmp is compilable... " >&6; }
43257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43258/* end confdefs.h.  */
43259
43260
43261        $curl_includes_string
43262
43263int main (void)
43264{
43265
43266        if(0 != stricmp(0, 0))
43267          return 1;
43268
43269 ;
43270 return 0;
43271}
43272
43273_ACEOF
43274if ac_fn_c_try_compile "$LINENO"
43275then :
43276
43277      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43278printf "%s\n" "yes" >&6; }
43279      tst_compi_stricmp="yes"
43280
43281else $as_nop
43282
43283      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43284printf "%s\n" "no" >&6; }
43285      tst_compi_stricmp="no"
43286
43287fi
43288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43289  fi
43290  #
43291  if test "$tst_compi_stricmp" = "yes"; then
43292    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43293printf %s "checking if stricmp usage allowed... " >&6; }
43294    if test "x$curl_disallow_stricmp" != "xyes"; then
43295      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43296printf "%s\n" "yes" >&6; }
43297      tst_allow_stricmp="yes"
43298    else
43299      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43300printf "%s\n" "no" >&6; }
43301      tst_allow_stricmp="no"
43302    fi
43303  fi
43304  #
43305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43306printf %s "checking if stricmp might be used... " >&6; }
43307  if test "$tst_links_stricmp" = "yes" &&
43308     test "$tst_proto_stricmp" = "yes" &&
43309     test "$tst_compi_stricmp" = "yes" &&
43310     test "$tst_allow_stricmp" = "yes"; then
43311    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43312printf "%s\n" "yes" >&6; }
43313
43314printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43315
43316    curl_cv_func_stricmp="yes"
43317  else
43318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43319printf "%s\n" "no" >&6; }
43320    curl_cv_func_stricmp="no"
43321  fi
43322
43323
43324    #
43325  tst_links_strtok_r="unknown"
43326  tst_proto_strtok_r="unknown"
43327  tst_compi_strtok_r="unknown"
43328  tst_allow_strtok_r="unknown"
43329  #
43330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43331printf %s "checking if strtok_r can be linked... " >&6; }
43332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43333/* end confdefs.h.  */
43334
43335
43336#define strtok_r innocuous_strtok_r
43337#ifdef __STDC__
43338# include <limits.h>
43339#else
43340# include <assert.h>
43341#endif
43342#undef strtok_r
43343#ifdef __cplusplus
43344extern "C"
43345#endif
43346char strtok_r ();
43347#if defined __stub_strtok_r || defined __stub___strtok_r
43348choke me
43349#endif
43350
43351int main (void)
43352{
43353return strtok_r ();
43354 ;
43355 return 0;
43356}
43357
43358_ACEOF
43359if ac_fn_c_try_link "$LINENO"
43360then :
43361
43362    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43363printf "%s\n" "yes" >&6; }
43364    tst_links_strtok_r="yes"
43365
43366else $as_nop
43367
43368    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43369printf "%s\n" "no" >&6; }
43370    tst_links_strtok_r="no"
43371
43372fi
43373rm -f core conftest.err conftest.$ac_objext conftest.beam \
43374    conftest$ac_exeext conftest.$ac_ext
43375  #
43376  if test "$tst_links_strtok_r" = "yes"; then
43377    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43378printf %s "checking if strtok_r is prototyped... " >&6; }
43379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43380/* end confdefs.h.  */
43381
43382      $curl_includes_string
43383
43384_ACEOF
43385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43386  $EGREP "strtok_r" >/dev/null 2>&1
43387then :
43388
43389      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43390printf "%s\n" "yes" >&6; }
43391      tst_proto_strtok_r="yes"
43392
43393else $as_nop
43394
43395      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43396printf "%s\n" "no" >&6; }
43397      tst_proto_strtok_r="no"
43398
43399fi
43400rm -rf conftest*
43401
43402  fi
43403  #
43404  if test "$tst_proto_strtok_r" = "yes"; then
43405    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43406printf %s "checking if strtok_r is compilable... " >&6; }
43407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43408/* end confdefs.h.  */
43409
43410
43411        $curl_includes_string
43412
43413int main (void)
43414{
43415
43416        if(0 != strtok_r(0, 0, 0))
43417          return 1;
43418
43419 ;
43420 return 0;
43421}
43422
43423_ACEOF
43424if ac_fn_c_try_compile "$LINENO"
43425then :
43426
43427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43428printf "%s\n" "yes" >&6; }
43429      tst_compi_strtok_r="yes"
43430
43431else $as_nop
43432
43433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43434printf "%s\n" "no" >&6; }
43435      tst_compi_strtok_r="no"
43436
43437fi
43438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43439  fi
43440  #
43441  if test "$tst_compi_strtok_r" = "yes"; then
43442    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43443printf %s "checking if strtok_r usage allowed... " >&6; }
43444    if test "x$curl_disallow_strtok_r" != "xyes"; then
43445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43446printf "%s\n" "yes" >&6; }
43447      tst_allow_strtok_r="yes"
43448    else
43449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43450printf "%s\n" "no" >&6; }
43451      tst_allow_strtok_r="no"
43452    fi
43453  fi
43454  #
43455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43456printf %s "checking if strtok_r might be used... " >&6; }
43457  if test "$tst_links_strtok_r" = "yes" &&
43458     test "$tst_proto_strtok_r" = "yes" &&
43459     test "$tst_compi_strtok_r" = "yes" &&
43460     test "$tst_allow_strtok_r" = "yes"; then
43461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43462printf "%s\n" "yes" >&6; }
43463
43464printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43465
43466    curl_cv_func_strtok_r="yes"
43467  else
43468    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43469printf "%s\n" "no" >&6; }
43470    curl_cv_func_strtok_r="no"
43471  fi
43472
43473
43474    #
43475  tst_links_strtoll="unknown"
43476  tst_proto_strtoll="unknown"
43477  tst_compi_strtoll="unknown"
43478  tst_allow_strtoll="unknown"
43479  #
43480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43481printf %s "checking if strtoll can be linked... " >&6; }
43482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43483/* end confdefs.h.  */
43484
43485
43486#define strtoll innocuous_strtoll
43487#ifdef __STDC__
43488# include <limits.h>
43489#else
43490# include <assert.h>
43491#endif
43492#undef strtoll
43493#ifdef __cplusplus
43494extern "C"
43495#endif
43496char strtoll ();
43497#if defined __stub_strtoll || defined __stub___strtoll
43498choke me
43499#endif
43500
43501int main (void)
43502{
43503return strtoll ();
43504 ;
43505 return 0;
43506}
43507
43508_ACEOF
43509if ac_fn_c_try_link "$LINENO"
43510then :
43511
43512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43513printf "%s\n" "yes" >&6; }
43514    tst_links_strtoll="yes"
43515
43516else $as_nop
43517
43518    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43519printf "%s\n" "no" >&6; }
43520    tst_links_strtoll="no"
43521
43522fi
43523rm -f core conftest.err conftest.$ac_objext conftest.beam \
43524    conftest$ac_exeext conftest.$ac_ext
43525  #
43526  if test "$tst_links_strtoll" = "yes"; then
43527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43528printf %s "checking if strtoll is prototyped... " >&6; }
43529    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43530/* end confdefs.h.  */
43531
43532      $curl_includes_stdlib
43533
43534_ACEOF
43535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43536  $EGREP "strtoll" >/dev/null 2>&1
43537then :
43538
43539      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43540printf "%s\n" "yes" >&6; }
43541      tst_proto_strtoll="yes"
43542
43543else $as_nop
43544
43545      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43546printf "%s\n" "no" >&6; }
43547      tst_proto_strtoll="no"
43548
43549fi
43550rm -rf conftest*
43551
43552  fi
43553  #
43554  if test "$tst_proto_strtoll" = "yes"; then
43555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43556printf %s "checking if strtoll is compilable... " >&6; }
43557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43558/* end confdefs.h.  */
43559
43560
43561        $curl_includes_stdlib
43562
43563int main (void)
43564{
43565
43566        if(0 != strtoll(0, 0, 0))
43567          return 1;
43568
43569 ;
43570 return 0;
43571}
43572
43573_ACEOF
43574if ac_fn_c_try_compile "$LINENO"
43575then :
43576
43577      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43578printf "%s\n" "yes" >&6; }
43579      tst_compi_strtoll="yes"
43580
43581else $as_nop
43582
43583      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43584printf "%s\n" "no" >&6; }
43585      tst_compi_strtoll="no"
43586
43587fi
43588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43589  fi
43590  #
43591  if test "$tst_compi_strtoll" = "yes"; then
43592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43593printf %s "checking if strtoll usage allowed... " >&6; }
43594    if test "x$curl_disallow_strtoll" != "xyes"; then
43595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43596printf "%s\n" "yes" >&6; }
43597      tst_allow_strtoll="yes"
43598    else
43599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43600printf "%s\n" "no" >&6; }
43601      tst_allow_strtoll="no"
43602    fi
43603  fi
43604  #
43605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43606printf %s "checking if strtoll might be used... " >&6; }
43607  if test "$tst_links_strtoll" = "yes" &&
43608     test "$tst_proto_strtoll" = "yes" &&
43609     test "$tst_compi_strtoll" = "yes" &&
43610     test "$tst_allow_strtoll" = "yes"; then
43611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43612printf "%s\n" "yes" >&6; }
43613
43614printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43615
43616    curl_cv_func_strtoll="yes"
43617  else
43618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43619printf "%s\n" "no" >&6; }
43620    curl_cv_func_strtoll="no"
43621  fi
43622
43623
43624case $host in
43625  *msdosdjgpp)
43626     ac_cv_func_pipe=no
43627     skipcheck_pipe=yes
43628     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43629printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43630    ;;
43631esac
43632
43633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43634printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43635if test ${ac_cv_c_undeclared_builtin_options+y}
43636then :
43637  printf %s "(cached) " >&6
43638else $as_nop
43639  ac_save_CFLAGS=$CFLAGS
43640   ac_cv_c_undeclared_builtin_options='cannot detect'
43641   for ac_arg in '' -fno-builtin; do
43642     CFLAGS="$ac_save_CFLAGS $ac_arg"
43643     # This test program should *not* compile successfully.
43644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43645/* end confdefs.h.  */
43646
43647int main (void)
43648{
43649(void) strchr;
43650 ;
43651 return 0;
43652}
43653_ACEOF
43654if ac_fn_c_try_compile "$LINENO"
43655then :
43656
43657else $as_nop
43658  # This test program should compile successfully.
43659        # No library function is consistently available on
43660        # freestanding implementations, so test against a dummy
43661        # declaration.  Include always-available headers on the
43662        # off chance that they somehow elicit warnings.
43663        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43664/* end confdefs.h.  */
43665#include <float.h>
43666#include <limits.h>
43667#include <stdarg.h>
43668#include <stddef.h>
43669extern void ac_decl (int, char *);
43670
43671int main (void)
43672{
43673(void) ac_decl (0, (char *) 0);
43674  (void) ac_decl;
43675
43676 ;
43677 return 0;
43678}
43679_ACEOF
43680if ac_fn_c_try_compile "$LINENO"
43681then :
43682  if test x"$ac_arg" = x
43683then :
43684  ac_cv_c_undeclared_builtin_options='none needed'
43685else $as_nop
43686  ac_cv_c_undeclared_builtin_options=$ac_arg
43687fi
43688          break
43689fi
43690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43691fi
43692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43693    done
43694    CFLAGS=$ac_save_CFLAGS
43695
43696fi
43697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43698printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43699  case $ac_cv_c_undeclared_builtin_options in #(
43700  'cannot detect') :
43701    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43702printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43703as_fn_error $? "cannot make $CC report undeclared builtins
43704See \`config.log' for more details" "$LINENO" 5; } ;; #(
43705  'none needed') :
43706    ac_c_undeclared_builtin_options='' ;; #(
43707  *) :
43708    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43709esac
43710
43711ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43712          #include <sys/types.h>
43713" "$ac_c_undeclared_builtin_options" "CFLAGS"
43714if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43715then :
43716  ac_have_decl=1
43717else $as_nop
43718  ac_have_decl=0
43719fi
43720printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43721if test $ac_have_decl = 1
43722then :
43723
43724else $as_nop
43725
43726printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43727
43728fi
43729
43730
43731
43732
43733  for ac_func in fnmatch fchmod fork geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes arc4random
43734do :
43735  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43737if eval test \"x\$"$as_ac_var"\" = x"yes"
43738then :
43739  cat >>confdefs.h <<_ACEOF
43740#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43741_ACEOF
43742
43743
43744else $as_nop
43745
43746  func="$ac_func"
43747  eval skipcheck=\$skipcheck_$func
43748  if test "x$skipcheck" != "xyes"; then
43749    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43750printf %s "checking deeper for $func... " >&6; }
43751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43752/* end confdefs.h.  */
43753
43754
43755
43756int main (void)
43757{
43758
43759        $func ();
43760
43761 ;
43762 return 0;
43763}
43764
43765_ACEOF
43766if ac_fn_c_try_link "$LINENO"
43767then :
43768
43769      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43770printf "%s\n" "yes" >&6; }
43771      eval "ac_cv_func_$func=yes"
43772
43773cat >>confdefs.h <<_ACEOF
43774#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43775_ACEOF
43776
43777
43778else $as_nop
43779
43780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43781printf "%s\n" "but still no" >&6; }
43782
43783fi
43784rm -f core conftest.err conftest.$ac_objext conftest.beam \
43785    conftest$ac_exeext conftest.$ac_ext
43786  fi
43787
43788fi
43789
43790done
43791
43792
43793        #
43794  tst_method="unknown"
43795
43796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43797printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43798  if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43799    tst_method="fcntl O_NONBLOCK"
43800  elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43801    tst_method="ioctl FIONBIO"
43802  elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43803    tst_method="ioctlsocket FIONBIO"
43804  elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43805    tst_method="IoctlSocket FIONBIO"
43806  elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43807    tst_method="setsockopt SO_NONBLOCK"
43808  fi
43809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43810printf "%s\n" "$tst_method" >&6; }
43811  if test "$tst_method" = "unknown"; then
43812    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43813printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43814  fi
43815
43816
43817
43818# Extract the first word of "perl", so it can be a program name with args.
43819set dummy perl; ac_word=$2
43820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43821printf %s "checking for $ac_word... " >&6; }
43822if test ${ac_cv_path_PERL+y}
43823then :
43824  printf %s "(cached) " >&6
43825else $as_nop
43826  case $PERL in
43827  [\\/]* | ?:[\\/]*)
43828  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43829  ;;
43830  *)
43831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43832as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43833for as_dir in $as_dummy
43834do
43835  IFS=$as_save_IFS
43836  case $as_dir in #(((
43837    '') as_dir=./ ;;
43838    */) ;;
43839    *) as_dir=$as_dir/ ;;
43840  esac
43841    for ac_exec_ext in '' $ac_executable_extensions; do
43842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43843    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43845    break 2
43846  fi
43847done
43848  done
43849IFS=$as_save_IFS
43850
43851  ;;
43852esac
43853fi
43854PERL=$ac_cv_path_PERL
43855if test -n "$PERL"; then
43856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43857printf "%s\n" "$PERL" >&6; }
43858else
43859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43860printf "%s\n" "no" >&6; }
43861fi
43862
43863
43864
43865
43866for ac_prog in gnroff nroff
43867do
43868  # Extract the first word of "$ac_prog", so it can be a program name with args.
43869set dummy $ac_prog; ac_word=$2
43870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43871printf %s "checking for $ac_word... " >&6; }
43872if test ${ac_cv_path_NROFF+y}
43873then :
43874  printf %s "(cached) " >&6
43875else $as_nop
43876  case $NROFF in
43877  [\\/]* | ?:[\\/]*)
43878  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43879  ;;
43880  *)
43881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43882as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43883for as_dir in $as_dummy
43884do
43885  IFS=$as_save_IFS
43886  case $as_dir in #(((
43887    '') as_dir=./ ;;
43888    */) ;;
43889    *) as_dir=$as_dir/ ;;
43890  esac
43891    for ac_exec_ext in '' $ac_executable_extensions; do
43892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43893    ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43895    break 2
43896  fi
43897done
43898  done
43899IFS=$as_save_IFS
43900
43901  ;;
43902esac
43903fi
43904NROFF=$ac_cv_path_NROFF
43905if test -n "$NROFF"; then
43906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43907printf "%s\n" "$NROFF" >&6; }
43908else
43909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43910printf "%s\n" "no" >&6; }
43911fi
43912
43913
43914  test -n "$NROFF" && break
43915done
43916
43917
43918
43919if test -n "$NROFF"; then
43920
43921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43922printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43923  MANOPT="-man"
43924  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43925  if test -z "$mancheck"; then
43926    MANOPT="-mandoc"
43927   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43928    if test -z "$mancheck"; then
43929      MANOPT=""
43930      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43931printf "%s\n" "failed" >&6; }
43932      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43933printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43934    else
43935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43936printf "%s\n" "$MANOPT" >&6; }
43937    fi
43938  else
43939    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43940printf "%s\n" "$MANOPT" >&6; }
43941  fi
43942
43943fi
43944
43945if test -z "$MANOPT"
43946then
43947      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43948printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43949  USE_MANUAL="no";
43950fi
43951
43952
43953if test "$USE_MANUAL" = "1"; then
43954
43955printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
43956
43957  curl_manual_msg="enabled"
43958fi
43959
43960 if test x"$USE_MANUAL" = x1; then
43961  USE_MANUAL_TRUE=
43962  USE_MANUAL_FALSE='#'
43963else
43964  USE_MANUAL_TRUE='#'
43965  USE_MANUAL_FALSE=
43966fi
43967
43968
43969
43970  #
43971  if test "$want_ares" = "yes"; then
43972        clean_CPPFLAGS="$CPPFLAGS"
43973    clean_LDFLAGS="$LDFLAGS"
43974    clean_LIBS="$LIBS"
43975    configure_runpath=`pwd`
43976    if test -n "$want_ares_path"; then
43977            ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43978
43979    if test -n "$PKG_CONFIG"; then
43980      PKGCONFIG="$PKG_CONFIG"
43981    else
43982      if test -n "$ac_tool_prefix"; then
43983  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43984set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43986printf %s "checking for $ac_word... " >&6; }
43987if test ${ac_cv_path_PKGCONFIG+y}
43988then :
43989  printf %s "(cached) " >&6
43990else $as_nop
43991  case $PKGCONFIG in
43992  [\\/]* | ?:[\\/]*)
43993  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43994  ;;
43995  *)
43996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43997as_dummy="$PATH:/usr/bin:/usr/local/bin"
43998for as_dir in $as_dummy
43999do
44000  IFS=$as_save_IFS
44001  case $as_dir in #(((
44002    '') as_dir=./ ;;
44003    */) ;;
44004    *) as_dir=$as_dir/ ;;
44005  esac
44006    for ac_exec_ext in '' $ac_executable_extensions; do
44007  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44008    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44009    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44010    break 2
44011  fi
44012done
44013  done
44014IFS=$as_save_IFS
44015
44016  ;;
44017esac
44018fi
44019PKGCONFIG=$ac_cv_path_PKGCONFIG
44020if test -n "$PKGCONFIG"; then
44021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44022printf "%s\n" "$PKGCONFIG" >&6; }
44023else
44024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44025printf "%s\n" "no" >&6; }
44026fi
44027
44028
44029fi
44030if test -z "$ac_cv_path_PKGCONFIG"; then
44031  ac_pt_PKGCONFIG=$PKGCONFIG
44032  # Extract the first word of "pkg-config", so it can be a program name with args.
44033set dummy pkg-config; ac_word=$2
44034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44035printf %s "checking for $ac_word... " >&6; }
44036if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44037then :
44038  printf %s "(cached) " >&6
44039else $as_nop
44040  case $ac_pt_PKGCONFIG in
44041  [\\/]* | ?:[\\/]*)
44042  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44043  ;;
44044  *)
44045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44046as_dummy="$PATH:/usr/bin:/usr/local/bin"
44047for as_dir in $as_dummy
44048do
44049  IFS=$as_save_IFS
44050  case $as_dir in #(((
44051    '') as_dir=./ ;;
44052    */) ;;
44053    *) as_dir=$as_dir/ ;;
44054  esac
44055    for ac_exec_ext in '' $ac_executable_extensions; do
44056  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44057    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44058    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44059    break 2
44060  fi
44061done
44062  done
44063IFS=$as_save_IFS
44064
44065  ;;
44066esac
44067fi
44068ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44069if test -n "$ac_pt_PKGCONFIG"; then
44070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44071printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44072else
44073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44074printf "%s\n" "no" >&6; }
44075fi
44076
44077  if test "x$ac_pt_PKGCONFIG" = x; then
44078    PKGCONFIG="no"
44079  else
44080    case $cross_compiling:$ac_tool_warned in
44081yes:)
44082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44083printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44084ac_tool_warned=yes ;;
44085esac
44086    PKGCONFIG=$ac_pt_PKGCONFIG
44087  fi
44088else
44089  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44090fi
44091
44092    fi
44093
44094    if test "x$PKGCONFIG" != "xno"; then
44095      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44096printf %s "checking for libcares options with pkg-config... " >&6; }
44097            itexists=`
44098    if test -n "$ARES_PCDIR"; then
44099      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44100      export PKG_CONFIG_LIBDIR
44101    fi
44102         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44103
44104      if test -z "$itexists"; then
44105                        PKGCONFIG="no"
44106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44107printf "%s\n" "no" >&6; }
44108      else
44109        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44110printf "%s\n" "found" >&6; }
44111      fi
44112    fi
44113
44114      if test "$PKGCONFIG" != "no" ; then
44115        ares_LIBS=`
44116    if test -n "$ARES_PCDIR"; then
44117      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44118      export PKG_CONFIG_LIBDIR
44119    fi
44120
44121          $PKGCONFIG --libs-only-l libcares`
44122        ares_LDFLAGS=`
44123    if test -n "$ARES_PCDIR"; then
44124      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44125      export PKG_CONFIG_LIBDIR
44126    fi
44127
44128          $PKGCONFIG --libs-only-L libcares`
44129        ares_CPPFLAGS=`
44130    if test -n "$ARES_PCDIR"; then
44131      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44132      export PKG_CONFIG_LIBDIR
44133    fi
44134
44135          $PKGCONFIG --cflags-only-I libcares`
44136        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
44137printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
44138        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
44139printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44141printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44142      else
44143                ares_CPPFLAGS="-I$want_ares_path/include"
44144        ares_LDFLAGS="-L$want_ares_path/lib"
44145        ares_LIBS="-lcares"
44146      fi
44147    else
44148
44149    if test -n "$PKG_CONFIG"; then
44150      PKGCONFIG="$PKG_CONFIG"
44151    else
44152      if test -n "$ac_tool_prefix"; then
44153  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44154set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44156printf %s "checking for $ac_word... " >&6; }
44157if test ${ac_cv_path_PKGCONFIG+y}
44158then :
44159  printf %s "(cached) " >&6
44160else $as_nop
44161  case $PKGCONFIG in
44162  [\\/]* | ?:[\\/]*)
44163  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44164  ;;
44165  *)
44166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44167as_dummy="$PATH:/usr/bin:/usr/local/bin"
44168for as_dir in $as_dummy
44169do
44170  IFS=$as_save_IFS
44171  case $as_dir in #(((
44172    '') as_dir=./ ;;
44173    */) ;;
44174    *) as_dir=$as_dir/ ;;
44175  esac
44176    for ac_exec_ext in '' $ac_executable_extensions; do
44177  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44178    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44179    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44180    break 2
44181  fi
44182done
44183  done
44184IFS=$as_save_IFS
44185
44186  ;;
44187esac
44188fi
44189PKGCONFIG=$ac_cv_path_PKGCONFIG
44190if test -n "$PKGCONFIG"; then
44191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44192printf "%s\n" "$PKGCONFIG" >&6; }
44193else
44194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44195printf "%s\n" "no" >&6; }
44196fi
44197
44198
44199fi
44200if test -z "$ac_cv_path_PKGCONFIG"; then
44201  ac_pt_PKGCONFIG=$PKGCONFIG
44202  # Extract the first word of "pkg-config", so it can be a program name with args.
44203set dummy pkg-config; ac_word=$2
44204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44205printf %s "checking for $ac_word... " >&6; }
44206if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44207then :
44208  printf %s "(cached) " >&6
44209else $as_nop
44210  case $ac_pt_PKGCONFIG in
44211  [\\/]* | ?:[\\/]*)
44212  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44213  ;;
44214  *)
44215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44216as_dummy="$PATH:/usr/bin:/usr/local/bin"
44217for as_dir in $as_dummy
44218do
44219  IFS=$as_save_IFS
44220  case $as_dir in #(((
44221    '') as_dir=./ ;;
44222    */) ;;
44223    *) as_dir=$as_dir/ ;;
44224  esac
44225    for ac_exec_ext in '' $ac_executable_extensions; do
44226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44227    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44229    break 2
44230  fi
44231done
44232  done
44233IFS=$as_save_IFS
44234
44235  ;;
44236esac
44237fi
44238ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44239if test -n "$ac_pt_PKGCONFIG"; then
44240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44241printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44242else
44243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44244printf "%s\n" "no" >&6; }
44245fi
44246
44247  if test "x$ac_pt_PKGCONFIG" = x; then
44248    PKGCONFIG="no"
44249  else
44250    case $cross_compiling:$ac_tool_warned in
44251yes:)
44252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44254ac_tool_warned=yes ;;
44255esac
44256    PKGCONFIG=$ac_pt_PKGCONFIG
44257  fi
44258else
44259  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44260fi
44261
44262    fi
44263
44264    if test "x$PKGCONFIG" != "xno"; then
44265      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44266printf %s "checking for libcares options with pkg-config... " >&6; }
44267            itexists=`
44268    if test -n ""; then
44269      PKG_CONFIG_LIBDIR=""
44270      export PKG_CONFIG_LIBDIR
44271    fi
44272         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44273
44274      if test -z "$itexists"; then
44275                        PKGCONFIG="no"
44276        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44277printf "%s\n" "no" >&6; }
44278      else
44279        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44280printf "%s\n" "found" >&6; }
44281      fi
44282    fi
44283
44284      if test "$PKGCONFIG" != "no" ; then
44285        ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44286        ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44287        ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44288        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44289printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44290        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44291printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44292        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44293printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44294      else
44295        ares_CPPFLAGS=""
44296        ares_LDFLAGS=""
44297        ares_LIBS="-lcares"
44298      fi
44299    fi
44300    #
44301    CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44302    LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44303    LIBS="$ares_LIBS $clean_LIBS"
44304    #
44305
44306        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44307printf %s "checking that c-ares is good and recent enough... " >&6; }
44308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44309/* end confdefs.h.  */
44310
44311
44312#include <ares.h>
44313        /* set of dummy functions in case c-ares was built with debug */
44314        void curl_dofree() { }
44315        void curl_sclose() { }
44316        void curl_domalloc() { }
44317        void curl_docalloc() { }
44318        void curl_socket() { }
44319
44320int main (void)
44321{
44322
44323        ares_channel channel;
44324        ares_cancel(channel); /* added in 1.2.0 */
44325        ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44326        ares_dup(&channel, channel); /* added in 1.6.0 */
44327
44328 ;
44329 return 0;
44330}
44331
44332_ACEOF
44333if ac_fn_c_try_link "$LINENO"
44334then :
44335
44336      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44337printf "%s\n" "yes" >&6; }
44338
44339else $as_nop
44340
44341      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44342printf "%s\n" "no" >&6; }
44343      as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44344            CPPFLAGS="$clean_CPPFLAGS"
44345      LDFLAGS="$clean_LDFLAGS"
44346      LIBS="$clean_LIBS"
44347      # prevent usage
44348      want_ares="no"
44349
44350fi
44351rm -f core conftest.err conftest.$ac_objext conftest.beam \
44352    conftest$ac_exeext conftest.$ac_ext
44353
44354    if test "$want_ares" = "yes"; then
44355
44356printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44357
44358      USE_ARES=1
44359
44360      curl_res_msg="c-ares"
44361    fi
44362  fi
44363
44364
44365if test "x$curl_cv_native_windows" != "xyes" &&
44366   test "x$enable_shared" = "xyes"; then
44367  build_libhostname=yes
44368else
44369  build_libhostname=no
44370fi
44371 if test x$build_libhostname = xyes; then
44372  BUILD_LIBHOSTNAME_TRUE=
44373  BUILD_LIBHOSTNAME_FALSE='#'
44374else
44375  BUILD_LIBHOSTNAME_TRUE='#'
44376  BUILD_LIBHOSTNAME_FALSE=
44377fi
44378
44379
44380if test "x$want_ares" != xyes; then
44381
44382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44383printf %s "checking whether to enable the threaded resolver... " >&6; }
44384  OPT_THRES="default"
44385  # Check whether --enable-threaded_resolver was given.
44386if test ${enable_threaded_resolver+y}
44387then :
44388  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44389fi
44390
44391  case "$OPT_THRES" in
44392    no)
44393            want_thres="no"
44394      ;;
44395    *)
44396            want_thres="yes"
44397      ;;
44398  esac
44399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44400printf "%s\n" "$want_thres" >&6; }
44401
44402fi
44403
44404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44405printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44406# Check whether --enable-pthreads was given.
44407if test ${enable_pthreads+y}
44408then :
44409  enableval=$enable_pthreads;  case "$enableval" in
44410  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44411printf "%s\n" "no" >&6; }
44412       want_pthreads=no
44413       ;;
44414  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44415printf "%s\n" "yes" >&6; }
44416       want_pthreads=yes
44417       ;;
44418  esac
44419else $as_nop
44420
44421       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44422printf "%s\n" "auto" >&6; }
44423       want_pthreads=auto
44424
44425
44426fi
44427
44428
44429if test "$want_pthreads" != "no"; then
44430  if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44431    as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44432  fi
44433  if test "$dontwant_rt" != "no"; then
44434        if test "$want_pthreads" = "yes"; then
44435      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44436printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44437    fi
44438    want_pthreads=no
44439  fi
44440fi
44441
44442if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44443  want_pthreads=no
44444fi
44445
44446if test "$want_pthreads" != "no"; then
44447  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44448if test "x$ac_cv_header_pthread_h" = xyes
44449then :
44450
44451printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44452
44453      save_CFLAGS="$CFLAGS"
44454                                    save_LIBS="$LIBS"
44455
44456      LIBS=
44457            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44458if test "x$ac_cv_func_pthread_create" = xyes
44459then :
44460  USE_THREADS_POSIX=1
44461fi
44462
44463      LIBS="$save_LIBS"
44464
44465            case $host in
44466      *-hp-hpux*)
44467                  USE_THREADS_POSIX=""
44468         ;;
44469      *)
44470         ;;
44471      esac
44472
44473            if test "$USE_THREADS_POSIX" != "1"
44474      then
44475        # assign PTHREAD for pkg-config use
44476        PTHREAD=" -pthread"
44477
44478        case $host in
44479        *-ibm-aix*)
44480                      COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44481           if test x"$COMPILER_VERSION" = "x"; then
44482             CFLAGS="$CFLAGS -pthread"
44483           else
44484             CFLAGS="$CFLAGS -qthreaded"
44485           fi
44486           ;;
44487        powerpc-*amigaos*)
44488                      PTHREAD=" -lpthread"
44489           ;;
44490        *)
44491           CFLAGS="$CFLAGS -pthread"
44492           ;;
44493        esac
44494        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44495printf %s "checking for pthread_create in -lpthread... " >&6; }
44496if test ${ac_cv_lib_pthread_pthread_create+y}
44497then :
44498  printf %s "(cached) " >&6
44499else $as_nop
44500  ac_check_lib_save_LIBS=$LIBS
44501LIBS="-lpthread  $LIBS"
44502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44503/* end confdefs.h.  */
44504
44505
44506#ifdef __cplusplus
44507extern "C"
44508#endif
44509char pthread_create ();
44510int main (void)
44511{
44512return pthread_create ();
44513 ;
44514 return 0;
44515}
44516_ACEOF
44517if ac_fn_c_try_link "$LINENO"
44518then :
44519  ac_cv_lib_pthread_pthread_create=yes
44520else $as_nop
44521  ac_cv_lib_pthread_pthread_create=no
44522fi
44523rm -f core conftest.err conftest.$ac_objext conftest.beam \
44524    conftest$ac_exeext conftest.$ac_ext
44525LIBS=$ac_check_lib_save_LIBS
44526fi
44527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44528printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44529if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44530then :
44531  USE_THREADS_POSIX=1
44532else $as_nop
44533   CFLAGS="$save_CFLAGS"
44534fi
44535
44536      fi
44537
44538      if test "x$USE_THREADS_POSIX" = "x1"
44539      then
44540
44541printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44542
44543        curl_res_msg="POSIX threaded"
44544      fi
44545
44546fi
44547
44548fi
44549
44550if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44551  if test "$want_pthreads" = "yes"; then
44552    as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44553  fi
44554    if test "$curl_cv_native_windows" = "yes"; then
44555    USE_THREADS_WIN32=1
44556
44557printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44558
44559    curl_res_msg="Win32 threaded"
44560  else
44561    as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44562  fi
44563fi
44564
44565
44566      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44567printf %s "checking convert -I options to -isystem... " >&6; }
44568  if test "$compiler_id" = "GNU_C" ||
44569    test "$compiler_id" = "CLANG"; then
44570    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44571printf "%s\n" "yes" >&6; }
44572    tmp_has_include="no"
44573    tmp_chg_FLAGS="$CFLAGS"
44574    for word1 in $tmp_chg_FLAGS; do
44575      case "$word1" in
44576        -I*)
44577          tmp_has_include="yes"
44578          ;;
44579      esac
44580    done
44581    if test "$tmp_has_include" = "yes"; then
44582      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44583      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44584      CFLAGS="$tmp_chg_FLAGS"
44585      squeeze CFLAGS
44586    fi
44587    tmp_has_include="no"
44588    tmp_chg_FLAGS="$CPPFLAGS"
44589    for word1 in $tmp_chg_FLAGS; do
44590      case "$word1" in
44591        -I*)
44592          tmp_has_include="yes"
44593          ;;
44594      esac
44595    done
44596    if test "$tmp_has_include" = "yes"; then
44597      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44598      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44599      CPPFLAGS="$tmp_chg_FLAGS"
44600      squeeze CPPFLAGS
44601    fi
44602  else
44603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44604printf "%s\n" "no" >&6; }
44605  fi
44606
44607
44608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44609printf %s "checking whether to enable verbose strings... " >&6; }
44610# Check whether --enable-verbose was given.
44611if test ${enable_verbose+y}
44612then :
44613  enableval=$enable_verbose;  case "$enableval" in
44614  no)
44615       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44616printf "%s\n" "no" >&6; }
44617
44618printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44619
44620       curl_verbose_msg="no"
44621       ;;
44622  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44623printf "%s\n" "yes" >&6; }
44624       ;;
44625  esac
44626else $as_nop
44627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44628printf "%s\n" "yes" >&6; }
44629
44630fi
44631
44632
44633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44634printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44635# Check whether --enable-sspi was given.
44636if test ${enable_sspi+y}
44637then :
44638  enableval=$enable_sspi;  case "$enableval" in
44639  yes)
44640       if test "$curl_cv_native_windows" = "yes"; then
44641         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44642printf "%s\n" "yes" >&6; }
44643
44644printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44645
44646         USE_WINDOWS_SSPI=1
44647
44648         curl_sspi_msg="enabled"
44649       else
44650         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44651printf "%s\n" "no" >&6; }
44652         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44653printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44654       fi
44655       ;;
44656  *)
44657       if test "x$SCHANNEL_ENABLED" = "x1"; then
44658         # --with-schannel implies --enable-sspi
44659         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44660printf "%s\n" "yes" >&6; }
44661       else
44662         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44663printf "%s\n" "no" >&6; }
44664       fi
44665       ;;
44666  esac
44667else $as_nop
44668  if test "x$SCHANNEL_ENABLED" = "x1"; then
44669         # --with-schannel implies --enable-sspi
44670         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44671printf "%s\n" "yes" >&6; }
44672       else
44673         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44674printf "%s\n" "no" >&6; }
44675       fi
44676
44677fi
44678
44679
44680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44681printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
44682# Check whether --enable-crypto-auth was given.
44683if test ${enable_crypto_auth+y}
44684then :
44685  enableval=$enable_crypto_auth;  case "$enableval" in
44686  no)
44687       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44688printf "%s\n" "no" >&6; }
44689
44690printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44691
44692       CURL_DISABLE_CRYPTO_AUTH=1
44693       ;;
44694  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44695printf "%s\n" "yes" >&6; }
44696       ;;
44697  esac
44698else $as_nop
44699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44700printf "%s\n" "yes" >&6; }
44701
44702fi
44703
44704
44705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44706printf %s "checking whether to support NTLM... " >&6; }
44707# Check whether --enable-ntlm was given.
44708if test ${enable_ntlm+y}
44709then :
44710  enableval=$enable_ntlm;  case "$enableval" in
44711  no)
44712       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44713printf "%s\n" "no" >&6; }
44714
44715printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44716
44717       CURL_DISABLE_NTLM=1
44718       ;;
44719  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44720printf "%s\n" "yes" >&6; }
44721       ;;
44722  esac
44723else $as_nop
44724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44725printf "%s\n" "yes" >&6; }
44726
44727fi
44728
44729
44730
44731    OPT_NTLM_WB="default"
44732  # Check whether --enable-ntlm-wb was given.
44733if test ${enable_ntlm_wb+y}
44734then :
44735  enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44736fi
44737
44738  want_ntlm_wb_file="/usr/bin/ntlm_auth"
44739  case "$OPT_NTLM_WB" in
44740    no)
44741            want_ntlm_wb="no"
44742      ;;
44743    default)
44744            want_ntlm_wb="yes"
44745      ;;
44746    *)
44747            want_ntlm_wb="yes"
44748      if test -n "$enableval" && test "$enableval" != "yes"; then
44749        want_ntlm_wb_file="$enableval"
44750      fi
44751      ;;
44752  esac
44753
44754
44755
44756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44757printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44758  if test "$curl_cv_native_windows" = "yes" ||
44759    test "x$SSL_ENABLED" = "x"; then
44760    want_ntlm_wb_file=""
44761    want_ntlm_wb="no"
44762  elif test "x$ac_cv_func_fork" != "xyes"; then
44763        want_ntlm_wb="no"
44764  fi
44765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44766printf "%s\n" "$want_ntlm_wb" >&6; }
44767  if test "$want_ntlm_wb" = "yes"; then
44768
44769printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44770
44771
44772printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44773
44774    NTLM_WB_ENABLED=1
44775  fi
44776
44777
44778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44779printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44780# Check whether --enable-tls-srp was given.
44781if test ${enable_tls_srp+y}
44782then :
44783  enableval=$enable_tls_srp;  case "$enableval" in
44784  no)
44785       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44786printf "%s\n" "no" >&6; }
44787       want_tls_srp=no
44788       ;;
44789  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44790printf "%s\n" "yes" >&6; }
44791       want_tls_srp=yes
44792       ;;
44793  esac
44794else $as_nop
44795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44796printf "%s\n" "yes" >&6; }
44797       want_tls_srp=yes
44798
44799fi
44800
44801
44802if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44803
44804printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44805
44806   USE_TLS_SRP=1
44807   curl_tls_srp_msg="enabled"
44808fi
44809
44810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44811printf %s "checking whether to enable Unix domain sockets... " >&6; }
44812# Check whether --enable-unix-sockets was given.
44813if test ${enable_unix_sockets+y}
44814then :
44815  enableval=$enable_unix_sockets;  case "$enableval" in
44816  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44817printf "%s\n" "no" >&6; }
44818       want_unix_sockets=no
44819       ;;
44820  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44821printf "%s\n" "yes" >&6; }
44822       want_unix_sockets=yes
44823       ;;
44824  esac
44825else $as_nop
44826
44827       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44828printf "%s\n" "auto" >&6; }
44829       want_unix_sockets=auto
44830
44831
44832fi
44833
44834if test "x$want_unix_sockets" != "xno"; then
44835  if test "x$curl_cv_native_windows" = "xyes"; then
44836    USE_UNIX_SOCKETS=1
44837
44838printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44839
44840    curl_unix_sockets_msg="enabled"
44841  else
44842    ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44843      #include <sys/un.h>
44844
44845"
44846if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
44847then :
44848
44849
44850printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44851
44852      USE_UNIX_SOCKETS=1
44853
44854      curl_unix_sockets_msg="enabled"
44855
44856else $as_nop
44857
44858      if test "x$want_unix_sockets" = "xyes"; then
44859        as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44860      fi
44861
44862fi
44863
44864  fi
44865fi
44866
44867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44868printf %s "checking whether to support cookies... " >&6; }
44869# Check whether --enable-cookies was given.
44870if test ${enable_cookies+y}
44871then :
44872  enableval=$enable_cookies;  case "$enableval" in
44873  no)
44874       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44875printf "%s\n" "no" >&6; }
44876
44877printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44878
44879       ;;
44880  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44881printf "%s\n" "yes" >&6; }
44882       ;;
44883  esac
44884else $as_nop
44885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44886printf "%s\n" "yes" >&6; }
44887
44888fi
44889
44890
44891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44892printf %s "checking whether to support socketpair... " >&6; }
44893# Check whether --enable-socketpair was given.
44894if test ${enable_socketpair+y}
44895then :
44896  enableval=$enable_socketpair;  case "$enableval" in
44897  no)
44898       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44899printf "%s\n" "no" >&6; }
44900
44901printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44902
44903       ;;
44904  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44905printf "%s\n" "yes" >&6; }
44906       ;;
44907  esac
44908else $as_nop
44909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44910printf "%s\n" "yes" >&6; }
44911
44912fi
44913
44914
44915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44916printf %s "checking whether to support HTTP authentication... " >&6; }
44917# Check whether --enable-http-auth was given.
44918if test ${enable_http_auth+y}
44919then :
44920  enableval=$enable_http_auth;  case "$enableval" in
44921  no)
44922       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44923printf "%s\n" "no" >&6; }
44924
44925printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44926
44927       ;;
44928  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44929printf "%s\n" "yes" >&6; }
44930       ;;
44931  esac
44932else $as_nop
44933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44934printf "%s\n" "yes" >&6; }
44935
44936fi
44937
44938
44939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44940printf %s "checking whether to support DoH... " >&6; }
44941# Check whether --enable-doh was given.
44942if test ${enable_doh+y}
44943then :
44944  enableval=$enable_doh;  case "$enableval" in
44945  no)
44946       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44947printf "%s\n" "no" >&6; }
44948
44949printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
44950
44951       ;;
44952  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44953printf "%s\n" "yes" >&6; }
44954       ;;
44955  esac
44956else $as_nop
44957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44958printf "%s\n" "yes" >&6; }
44959
44960fi
44961
44962
44963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44964printf %s "checking whether to support the MIME API... " >&6; }
44965# Check whether --enable-mime was given.
44966if test ${enable_mime+y}
44967then :
44968  enableval=$enable_mime;  case "$enableval" in
44969  no)
44970       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44971printf "%s\n" "no" >&6; }
44972
44973printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
44974
44975       ;;
44976  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44977printf "%s\n" "yes" >&6; }
44978       ;;
44979  esac
44980else $as_nop
44981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44982printf "%s\n" "yes" >&6; }
44983
44984fi
44985
44986
44987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44988printf %s "checking whether to support date parsing... " >&6; }
44989# Check whether --enable-dateparse was given.
44990if test ${enable_dateparse+y}
44991then :
44992  enableval=$enable_dateparse;  case "$enableval" in
44993  no)
44994       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44995printf "%s\n" "no" >&6; }
44996
44997printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44998
44999       ;;
45000  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45001printf "%s\n" "yes" >&6; }
45002       ;;
45003  esac
45004else $as_nop
45005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45006printf "%s\n" "yes" >&6; }
45007
45008fi
45009
45010
45011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45012printf %s "checking whether to support netrc parsing... " >&6; }
45013# Check whether --enable-netrc was given.
45014if test ${enable_netrc+y}
45015then :
45016  enableval=$enable_netrc;  case "$enableval" in
45017  no)
45018       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45019printf "%s\n" "no" >&6; }
45020
45021printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45022
45023       ;;
45024  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45025printf "%s\n" "yes" >&6; }
45026       ;;
45027  esac
45028else $as_nop
45029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45030printf "%s\n" "yes" >&6; }
45031
45032fi
45033
45034
45035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45036printf %s "checking whether to support progress-meter... " >&6; }
45037# Check whether --enable-progress-meter was given.
45038if test ${enable_progress_meter+y}
45039then :
45040  enableval=$enable_progress_meter;  case "$enableval" in
45041  no)
45042       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45043printf "%s\n" "no" >&6; }
45044
45045printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45046
45047       ;;
45048  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45049printf "%s\n" "yes" >&6; }
45050       ;;
45051  esac
45052else $as_nop
45053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45054printf "%s\n" "yes" >&6; }
45055
45056fi
45057
45058
45059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45060printf %s "checking whether to support DNS shuffling... " >&6; }
45061# Check whether --enable-dnsshuffle was given.
45062if test ${enable_dnsshuffle+y}
45063then :
45064  enableval=$enable_dnsshuffle;  case "$enableval" in
45065  no)
45066       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45067printf "%s\n" "no" >&6; }
45068
45069printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45070
45071       ;;
45072  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45073printf "%s\n" "yes" >&6; }
45074       ;;
45075  esac
45076else $as_nop
45077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45078printf "%s\n" "yes" >&6; }
45079
45080fi
45081
45082
45083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45084printf %s "checking whether to support curl_easy_option*... " >&6; }
45085# Check whether --enable-get-easy-options was given.
45086if test ${enable_get_easy_options+y}
45087then :
45088  enableval=$enable_get_easy_options;  case "$enableval" in
45089  no)
45090       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45091printf "%s\n" "no" >&6; }
45092
45093printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45094
45095       ;;
45096  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45097printf "%s\n" "yes" >&6; }
45098       ;;
45099  esac
45100else $as_nop
45101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45102printf "%s\n" "yes" >&6; }
45103
45104fi
45105
45106
45107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45108printf %s "checking whether to support alt-svc... " >&6; }
45109# Check whether --enable-alt-svc was given.
45110if test ${enable_alt_svc+y}
45111then :
45112  enableval=$enable_alt_svc;  case "$enableval" in
45113  no)
45114       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45115printf "%s\n" "no" >&6; }
45116
45117printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45118
45119       curl_altsvc_msg="no";
45120       enable_altsvc="no"
45121       ;;
45122  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45123printf "%s\n" "yes" >&6; }
45124       ;;
45125  esac
45126else $as_nop
45127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45128printf "%s\n" "yes" >&6; }
45129
45130fi
45131
45132
45133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45134printf %s "checking whether to support headers-api... " >&6; }
45135# Check whether --enable-headers-api was given.
45136if test ${enable_headers_api+y}
45137then :
45138  enableval=$enable_headers_api;  case "$enableval" in
45139  no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45140printf "%s\n" "no" >&6; }
45141       curl_headers_msg="no      (--enable-headers-api)"
45142
45143printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45144
45145       ;;
45146  *)
45147       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45148printf "%s\n" "yes" >&6; }
45149       ;;
45150  esac
45151else $as_nop
45152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45153printf "%s\n" "yes" >&6; }
45154
45155fi
45156
45157
45158if test -n "$SSL_ENABLED"; then
45159
45160        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45161printf %s "checking whether to support HSTS... " >&6; }
45162  # Check whether --enable-hsts was given.
45163if test ${enable_hsts+y}
45164then :
45165  enableval=$enable_hsts;  case "$enableval" in
45166    no)
45167       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45168printf "%s\n" "no" >&6; }
45169       hsts="no"
45170       ;;
45171    *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45172printf "%s\n" "yes" >&6; }
45173       ;;
45174    esac
45175else $as_nop
45176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45177printf "%s\n" "$hsts" >&6; }
45178
45179fi
45180
45181else
45182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45183printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45184  hsts="no"
45185fi
45186
45187if test "x$hsts" != "xyes"; then
45188  curl_hsts_msg="no      (--enable-hsts)";
45189
45190printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45191
45192fi
45193
45194if test "x$want_ech" != "xno"; then
45195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45196printf %s "checking whether ECH support is available... " >&6; }
45197
45198    ECH_ENABLED=0
45199  ECH_SUPPORT=''
45200
45201      if test "x$OPENSSL_ENABLED" = "x1"; then
45202
45203  for ac_func in SSL_get_ech_status
45204do :
45205  ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
45206if test "x$ac_cv_func_SSL_get_ech_status" = xyes
45207then :
45208  printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
45209 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
45210      ECH_ENABLED=1
45211fi
45212
45213done
45214
45215    fi
45216
45217    if test "x$ECH_ENABLED" = "x1"; then
45218
45219printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45220
45221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45222printf "%s\n" "$ECH_SUPPORT" >&6; }
45223    experimental="$experimental ECH"
45224  else
45225    as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45226  fi
45227fi
45228
45229if test "x$OPENSSL_ENABLED" = "x1"; then
45230  ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45231if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45232then :
45233  printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45234
45235fi
45236
45237fi
45238
45239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45240printf %s "checking whether to support WebSockets... " >&6; }
45241# Check whether --enable-websockets was given.
45242if test ${enable_websockets+y}
45243then :
45244  enableval=$enable_websockets;  case "$enableval" in
45245  no)
45246     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45247printf "%s\n" "no" >&6; }
45248     ;;
45249  *)
45250     if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45251         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45252printf "%s\n" "yes" >&6; }
45253         curl_ws_msg="enabled"
45254
45255printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45256
45257         SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45258         if test "x$SSL_ENABLED" = "x1"; then
45259           SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45260         fi
45261         experimental="$experimental Websockets"
45262     else
45263                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45264printf "%s\n" "no" >&6; }
45265         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45266printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45267     fi
45268     ;;
45269  esac
45270else $as_nop
45271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45272printf "%s\n" "no" >&6; }
45273
45274fi
45275
45276
45277
45278
45279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45280printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45281  CFLAG_CURL_SYMBOL_HIDING=""
45282  doing_symbol_hiding="no"
45283  if test "$want_symbol_hiding" = "yes" &&
45284    test "$supports_symbol_hiding" = "yes"; then
45285    doing_symbol_hiding="yes"
45286    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45287
45288printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45289
45290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45291printf "%s\n" "yes" >&6; }
45292  else
45293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45294printf "%s\n" "no" >&6; }
45295  fi
45296   if test x$doing_symbol_hiding = xyes; then
45297  DOING_CURL_SYMBOL_HIDING_TRUE=
45298  DOING_CURL_SYMBOL_HIDING_FALSE='#'
45299else
45300  DOING_CURL_SYMBOL_HIDING_TRUE='#'
45301  DOING_CURL_SYMBOL_HIDING_FALSE=
45302fi
45303
45304
45305
45306
45307LIBCURL_LIBS="$LIBS$PTHREAD"
45308
45309
45310
45311
45312
45313BLANK_AT_MAKETIME=
45314
45315
45316 if test x$cross_compiling = xyes; then
45317  CROSSCOMPILING_TRUE=
45318  CROSSCOMPILING_FALSE='#'
45319else
45320  CROSSCOMPILING_TRUE='#'
45321  CROSSCOMPILING_FALSE=
45322fi
45323
45324
45325ENABLE_SHARED="$enable_shared"
45326
45327
45328ENABLE_STATIC="$enable_static"
45329
45330
45331if test "x$enable_shared" = "xno"; then
45332  LIBCURL_NO_SHARED=$LIBCURL_LIBS
45333else
45334  LIBCURL_NO_SHARED=
45335fi
45336
45337
45338
45339if test "x$OPENSSL_ENABLED" = "x1"; then
45340  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45341elif test -n "$SSL_ENABLED"; then
45342  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45343fi
45344if test "x$IPV6_ENABLED" = "x1"; then
45345  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45346fi
45347if test "x$USE_UNIX_SOCKETS" = "x1"; then
45348  SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45349fi
45350if test "x$HAVE_LIBZ" = "x1"; then
45351  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45352fi
45353if test "x$HAVE_BROTLI" = "x1"; then
45354  SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45355fi
45356if test "x$HAVE_ZSTD" = "x1"; then
45357  SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45358fi
45359if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45360                            -o "x$USE_THREADS_WIN32" = "x1"; then
45361  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45362fi
45363if test "x$IDN_ENABLED" = "x1"; then
45364  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45365fi
45366if test "x$USE_WINDOWS_SSPI" = "x1"; then
45367  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45368fi
45369
45370if test "x$HAVE_GSSAPI" = "x1"; then
45371  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45372fi
45373
45374if test "x$curl_psl_msg" = "xenabled"; then
45375  SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45376fi
45377
45378if test "x$curl_gsasl_msg" = "xenabled"; then
45379  SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45380fi
45381
45382if test "x$enable_altsvc" = "xyes"; then
45383  SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45384fi
45385if test "x$hsts" = "xyes"; then
45386  SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45387fi
45388
45389if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45390    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45391  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45392fi
45393
45394if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45395    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45396  SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45397fi
45398
45399use_curl_ntlm_core=no
45400
45401if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45402    "x$CURL_DISABLE_NTLM" != "x1"; then
45403  if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45404      -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
45405      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45406      -o "x$USE_WIN32_CRYPTO" = "x1" \
45407      -o "x$WOLFSSL_NTLM" = "x1"; then
45408    use_curl_ntlm_core=yes
45409  fi
45410
45411  if test "x$use_curl_ntlm_core" = "xyes" \
45412      -o "x$USE_WINDOWS_SSPI" = "x1"; then
45413    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45414
45415    if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45416        "x$NTLM_WB_ENABLED" = "x1"; then
45417      SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45418    fi
45419  fi
45420fi
45421
45422if test "x$USE_TLS_SRP" = "x1"; then
45423  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45424fi
45425
45426if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
45427  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45428fi
45429
45430if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45431    -o "x$USE_MSH3" = "x1"; then
45432  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45433fi
45434
45435if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45436  SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45437fi
45438
45439if test "x$https_proxy" != "xno"; then
45440  if test "x$OPENSSL_ENABLED" = "x1" \
45441      -o "x$GNUTLS_ENABLED" = "x1" \
45442      -o "x$NSS_ENABLED" = "x1" \
45443      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45444      -o "x$RUSTLS_ENABLED" = "x1" \
45445      -o "x$BEARSSL_ENABLED" = "x1" \
45446      -o "x$SCHANNEL_ENABLED" = "x1" \
45447      -o "x$GNUTLS_ENABLED" = "x1" \
45448      -o "x$MBEDTLS_ENABLED" = "x1"; then
45449    SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45450  elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
45451    SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45452  fi
45453fi
45454
45455if test "x$ECH_ENABLED" = "x1"; then
45456  SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45457fi
45458
45459if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45460  if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45461     "$curl_win32_file_api" = "win32_large_files"; then
45462    SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45463  fi
45464fi
45465
45466if test "$tst_atomic" = "yes"; then
45467  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45468else
45469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45470/* end confdefs.h.  */
45471
45472
45473      #include <windows.h>
45474
45475int main (void)
45476{
45477
45478      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45479      #error
45480      #endif
45481
45482 ;
45483 return 0;
45484}
45485
45486_ACEOF
45487if ac_fn_c_try_compile "$LINENO"
45488then :
45489
45490     SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45491
45492fi
45493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45494fi
45495
45496SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45497
45498
45499if test "x$CURL_DISABLE_HTTP" != "x1"; then
45500  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45501  if test "x$SSL_ENABLED" = "x1"; then
45502    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45503  fi
45504fi
45505if test "x$CURL_DISABLE_FTP" != "x1"; then
45506  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45507  if test "x$SSL_ENABLED" = "x1"; then
45508    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45509  fi
45510fi
45511if test "x$CURL_DISABLE_FILE" != "x1"; then
45512  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45513fi
45514if test "x$CURL_DISABLE_TELNET" != "x1"; then
45515  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45516fi
45517if test "x$CURL_DISABLE_LDAP" != "x1"; then
45518  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45519  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45520    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45521      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
45522      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45523    fi
45524  fi
45525fi
45526if test "x$CURL_DISABLE_DICT" != "x1"; then
45527  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45528fi
45529if test "x$CURL_DISABLE_TFTP" != "x1"; then
45530  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45531fi
45532if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45533  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45534  if test "x$SSL_ENABLED" = "x1"; then
45535    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45536  fi
45537fi
45538if test "x$CURL_DISABLE_MQTT" != "x1"; then
45539  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45540fi
45541if test "x$CURL_DISABLE_POP3" != "x1"; then
45542  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45543  if test "x$SSL_ENABLED" = "x1"; then
45544    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45545  fi
45546fi
45547if test "x$CURL_DISABLE_IMAP" != "x1"; then
45548  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45549  if test "x$SSL_ENABLED" = "x1"; then
45550    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45551  fi
45552fi
45553if test "x$CURL_DISABLE_SMB" != "x1" \
45554    -a "x$use_curl_ntlm_core" = "xyes"; then
45555  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45556  if test "x$SSL_ENABLED" = "x1"; then
45557    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45558  fi
45559fi
45560if test "x$CURL_DISABLE_SMTP" != "x1"; then
45561  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45562  if test "x$SSL_ENABLED" = "x1"; then
45563    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45564  fi
45565fi
45566if test "x$USE_LIBSSH2" = "x1"; then
45567  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45568  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45569fi
45570if test "x$USE_LIBSSH" = "x1"; then
45571  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45572  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45573fi
45574if test "x$USE_WOLFSSH" = "x1"; then
45575  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45576fi
45577if test "x$CURL_DISABLE_RTSP" != "x1"; then
45578  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45579fi
45580if test "x$USE_LIBRTMP" = "x1"; then
45581  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45582fi
45583
45584SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45585
45586
45587
45588
45589squeeze CFLAGS
45590squeeze CPPFLAGS
45591squeeze DEFS
45592squeeze LDFLAGS
45593squeeze LIBS
45594
45595squeeze LIBCURL_LIBS
45596squeeze CURL_NETWORK_LIBS
45597squeeze CURL_NETWORK_AND_TIME_LIBS
45598
45599squeeze SUPPORT_FEATURES
45600squeeze SUPPORT_PROTOCOLS
45601
45602
45603
45604  xc_bad_var_libs=no
45605  for xc_word in $LIBS; do
45606    case "$xc_word" in
45607      -l* | --library=*)
45608        :
45609        ;;
45610      *)
45611        xc_bad_var_libs=yes
45612        ;;
45613    esac
45614  done
45615  if test $xc_bad_var_libs = yes; then
45616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45617printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45619printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45620  fi
45621
45622
45623  xc_bad_var_ldflags=no
45624  for xc_word in $LDFLAGS; do
45625    case "$xc_word" in
45626      -D*)
45627        xc_bad_var_ldflags=yes
45628        ;;
45629      -U*)
45630        xc_bad_var_ldflags=yes
45631        ;;
45632      -I*)
45633        xc_bad_var_ldflags=yes
45634        ;;
45635      -l* | --library=*)
45636        xc_bad_var_ldflags=yes
45637        ;;
45638    esac
45639  done
45640  if test $xc_bad_var_ldflags = yes; then
45641    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45642printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45643    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45644    for xc_word in $LDFLAGS; do
45645      case "$xc_word" in
45646        -D*)
45647          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45648printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45649          ;;
45650        -U*)
45651          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45652printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45653          ;;
45654        -I*)
45655          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45656printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45657          ;;
45658        -l* | --library=*)
45659          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45660printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45661          ;;
45662      esac
45663    done
45664  fi
45665
45666
45667  xc_bad_var_cppflags=no
45668  for xc_word in $CPPFLAGS; do
45669    case "$xc_word" in
45670      -rpath*)
45671        xc_bad_var_cppflags=yes
45672        ;;
45673      -L* | --library-path=*)
45674        xc_bad_var_cppflags=yes
45675        ;;
45676      -l* | --library=*)
45677        xc_bad_var_cppflags=yes
45678        ;;
45679    esac
45680  done
45681  if test $xc_bad_var_cppflags = yes; then
45682    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45683printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45684    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45685    for xc_word in $CPPFLAGS; do
45686      case "$xc_word" in
45687        -rpath*)
45688          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45689printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45690          ;;
45691        -L* | --library-path=*)
45692          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45693printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45694          ;;
45695        -l* | --library=*)
45696          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45697printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45698          ;;
45699      esac
45700    done
45701  fi
45702
45703
45704  xc_bad_var_cflags=no
45705  for xc_word in $CFLAGS; do
45706    case "$xc_word" in
45707      -D*)
45708        xc_bad_var_cflags=yes
45709        ;;
45710      -U*)
45711        xc_bad_var_cflags=yes
45712        ;;
45713      -I*)
45714        xc_bad_var_cflags=yes
45715        ;;
45716      -rpath*)
45717        xc_bad_var_cflags=yes
45718        ;;
45719      -L* | --library-path=*)
45720        xc_bad_var_cflags=yes
45721        ;;
45722      -l* | --library=*)
45723        xc_bad_var_cflags=yes
45724        ;;
45725    esac
45726  done
45727  if test $xc_bad_var_cflags = yes; then
45728    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45729printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45730    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45731    for xc_word in $CFLAGS; do
45732      case "$xc_word" in
45733        -D*)
45734          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45735printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45736          ;;
45737        -U*)
45738          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45739printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45740          ;;
45741        -I*)
45742          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45743printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45744          ;;
45745        -rpath*)
45746          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45747printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45748          ;;
45749        -L* | --library-path=*)
45750          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45751printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45752          ;;
45753        -l* | --library=*)
45754          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45755printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45756          ;;
45757      esac
45758    done
45759  fi
45760
45761  if test $xc_bad_var_libs = yes ||
45762     test $xc_bad_var_cflags = yes ||
45763     test $xc_bad_var_ldflags = yes ||
45764     test $xc_bad_var_cppflags = yes; then
45765     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45766printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45767  fi
45768
45769
45770SSL_BACKENDS=${ssl_backends}
45771
45772
45773if test "x$want_curldebug_assumed" = "xyes" &&
45774  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45775  ac_configure_args="$ac_configure_args --enable-curldebug"
45776fi
45777
45778ac_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 packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
45779
45780cat >confcache <<\_ACEOF
45781# This file is a shell script that caches the results of configure
45782# tests run on this system so they can be shared between configure
45783# scripts and configure runs, see configure's option --config-cache.
45784# It is not useful on other systems.  If it contains results you don't
45785# want to keep, you may remove or edit it.
45786#
45787# config.status only pays attention to the cache file if you give it
45788# the --recheck option to rerun configure.
45789#
45790# `ac_cv_env_foo' variables (set or unset) will be overridden when
45791# loading this file, other *unset* `ac_cv_foo' will be assigned the
45792# following values.
45793
45794_ACEOF
45795
45796# The following way of writing the cache mishandles newlines in values,
45797# but we know of no workaround that is simple, portable, and efficient.
45798# So, we kill variables containing newlines.
45799# Ultrix sh set writes to stderr and can't be redirected directly,
45800# and sets the high bit in the cache file unless we assign to the vars.
45801(
45802  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45803    eval ac_val=\$$ac_var
45804    case $ac_val in #(
45805    *${as_nl}*)
45806      case $ac_var in #(
45807      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45808printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45809      esac
45810      case $ac_var in #(
45811      _ | IFS | as_nl) ;; #(
45812      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45813      *) { eval $ac_var=; unset $ac_var;} ;;
45814      esac ;;
45815    esac
45816  done
45817
45818  (set) 2>&1 |
45819    case $as_nl`(ac_space=' '; set) 2>&1` in #(
45820    *${as_nl}ac_space=\ *)
45821      # `set' does not quote correctly, so add quotes: double-quote
45822      # substitution turns \\\\ into \\, and sed turns \\ into \.
45823      sed -n \
45824	"s/'/'\\\\''/g;
45825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45826      ;; #(
45827    *)
45828      # `set' quotes correctly as required by POSIX, so do not add quotes.
45829      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45830      ;;
45831    esac |
45832    sort
45833) |
45834  sed '
45835     /^ac_cv_env_/b end
45836     t clear
45837     :clear
45838     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
45839     t end
45840     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45841     :end' >>confcache
45842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45843  if test -w "$cache_file"; then
45844    if test "x$cache_file" != "x/dev/null"; then
45845      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45846printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
45847      if test ! -f "$cache_file" || test -h "$cache_file"; then
45848	cat confcache >"$cache_file"
45849      else
45850        case $cache_file in #(
45851        */* | ?:*)
45852	  mv -f confcache "$cache_file"$$ &&
45853	  mv -f "$cache_file"$$ "$cache_file" ;; #(
45854        *)
45855	  mv -f confcache "$cache_file" ;;
45856	esac
45857      fi
45858    fi
45859  else
45860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45861printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
45862  fi
45863fi
45864rm -f confcache
45865
45866test "x$prefix" = xNONE && prefix=$ac_default_prefix
45867# Let make expand exec_prefix.
45868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45869
45870DEFS=-DHAVE_CONFIG_H
45871
45872ac_libobjs=
45873ac_ltlibobjs=
45874U=
45875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45876  # 1. Remove the extension, and $U if already installed.
45877  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45878  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
45879  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45880  #    will be set to the directory where LIBOBJS objects are built.
45881  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45882  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45883done
45884LIBOBJS=$ac_libobjs
45885
45886LTLIBOBJS=$ac_ltlibobjs
45887
45888
45889if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45890  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45891Usually this means the macro was only invoked conditionally." "$LINENO" 5
45892fi
45893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45894printf %s "checking that generated files are newer than configure... " >&6; }
45895   if test -n "$am_sleep_pid"; then
45896     # Hide warnings about reused PIDs.
45897     wait $am_sleep_pid 2>/dev/null
45898   fi
45899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
45900printf "%s\n" "done" >&6; }
45901if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45902  as_fn_error $? "conditional \"AMDEP\" was never defined.
45903Usually this means the macro was only invoked conditionally." "$LINENO" 5
45904fi
45905if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45906  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45907Usually this means the macro was only invoked conditionally." "$LINENO" 5
45908fi
45909 if test -n "$EXEEXT"; then
45910  am__EXEEXT_TRUE=
45911  am__EXEEXT_FALSE='#'
45912else
45913  am__EXEEXT_TRUE='#'
45914  am__EXEEXT_FALSE=
45915fi
45916
45917if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45918  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45919Usually this means the macro was only invoked conditionally." "$LINENO" 5
45920fi
45921if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45922  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45923Usually this means the macro was only invoked conditionally." "$LINENO" 5
45924fi
45925if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45926  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45927Usually this means the macro was only invoked conditionally." "$LINENO" 5
45928fi
45929if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45930  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45931Usually this means the macro was only invoked conditionally." "$LINENO" 5
45932fi
45933if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45934  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45935Usually this means the macro was only invoked conditionally." "$LINENO" 5
45936fi
45937if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45938  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45939Usually this means the macro was only invoked conditionally." "$LINENO" 5
45940fi
45941if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45942  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45943Usually this means the macro was only invoked conditionally." "$LINENO" 5
45944fi
45945if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45946  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45947Usually this means the macro was only invoked conditionally." "$LINENO" 5
45948fi
45949if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
45950  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
45951Usually this means the macro was only invoked conditionally." "$LINENO" 5
45952fi
45953if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45954  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45955Usually this means the macro was only invoked conditionally." "$LINENO" 5
45956fi
45957if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45958  as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45959Usually this means the macro was only invoked conditionally." "$LINENO" 5
45960fi
45961if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45962  as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45963Usually this means the macro was only invoked conditionally." "$LINENO" 5
45964fi
45965if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
45966  as_fn_error $? "conditional \"USE_GSASL\" was never defined.
45967Usually this means the macro was only invoked conditionally." "$LINENO" 5
45968fi
45969if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45970  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45971Usually this means the macro was only invoked conditionally." "$LINENO" 5
45972fi
45973if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45974  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45975Usually this means the macro was only invoked conditionally." "$LINENO" 5
45976fi
45977if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45978  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45979Usually this means the macro was only invoked conditionally." "$LINENO" 5
45980fi
45981if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45982  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45983Usually this means the macro was only invoked conditionally." "$LINENO" 5
45984fi
45985if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45986  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45987Usually this means the macro was only invoked conditionally." "$LINENO" 5
45988fi
45989
45990: "${CONFIG_STATUS=./config.status}"
45991ac_write_fail=0
45992ac_clean_files_save=$ac_clean_files
45993ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45995printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
45996as_write_fail=0
45997cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45998#! $SHELL
45999# Generated by $as_me.
46000# Run this file to recreate the current configuration.
46001# Compiler output produced by configure, useful for debugging
46002# configure, is in config.log if it exists.
46003
46004debug=false
46005ac_cs_recheck=false
46006ac_cs_silent=false
46007
46008SHELL=\${CONFIG_SHELL-$SHELL}
46009export SHELL
46010_ASEOF
46011cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46012## -------------------- ##
46013## M4sh Initialization. ##
46014## -------------------- ##
46015
46016# Be more Bourne compatible
46017DUALCASE=1; export DUALCASE # for MKS sh
46018as_nop=:
46019if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46020then :
46021  emulate sh
46022  NULLCMD=:
46023  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46024  # is contrary to our usage.  Disable this feature.
46025  alias -g '${1+"$@"}'='"$@"'
46026  setopt NO_GLOB_SUBST
46027else $as_nop
46028  case `(set -o) 2>/dev/null` in #(
46029  *posix*) :
46030    set -o posix ;; #(
46031  *) :
46032     ;;
46033esac
46034fi
46035
46036
46037
46038# Reset variables that may have inherited troublesome values from
46039# the environment.
46040
46041# IFS needs to be set, to space, tab, and newline, in precisely that order.
46042# (If _AS_PATH_WALK were called with IFS unset, it would have the
46043# side effect of setting IFS to empty, thus disabling word splitting.)
46044# Quoting is to prevent editors from complaining about space-tab.
46045as_nl='
46046'
46047export as_nl
46048IFS=" ""	$as_nl"
46049
46050PS1='$ '
46051PS2='> '
46052PS4='+ '
46053
46054# Ensure predictable behavior from utilities with locale-dependent output.
46055LC_ALL=C
46056export LC_ALL
46057LANGUAGE=C
46058export LANGUAGE
46059
46060# We cannot yet rely on "unset" to work, but we need these variables
46061# to be unset--not just set to an empty or harmless value--now, to
46062# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46063# also avoids known problems related to "unset" and subshell syntax
46064# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46065for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46066do eval test \${$as_var+y} \
46067  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46068done
46069
46070# Ensure that fds 0, 1, and 2 are open.
46071if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46072if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46073if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46074
46075
46076
46077# Find who we are.  Look in the path if we contain no directory separator.
46078as_myself=
46079case $0 in #((
46080  *[\\/]* ) as_myself=$0 ;;
46081  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46082for as_dir in $PATH
46083do
46084  IFS=$as_save_IFS
46085  case $as_dir in #(((
46086    '') as_dir=./ ;;
46087    */) ;;
46088    *) as_dir=$as_dir/ ;;
46089  esac
46090    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46091  done
46092IFS=$as_save_IFS
46093
46094     ;;
46095esac
46096# We did not find ourselves, most probably we were run as `sh COMMAND'
46097# in which case we are not to be found in the path.
46098if test "x$as_myself" = x; then
46099  as_myself=$0
46100fi
46101if test ! -f "$as_myself"; then
46102  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46103  exit 1
46104fi
46105
46106
46107
46108# as_fn_error STATUS ERROR [LINENO LOG_FD]
46109# ----------------------------------------
46110# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46111# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46112# script with STATUS, using 1 if that was 0.
46113as_fn_error ()
46114{
46115  as_status=$1; test $as_status -eq 0 && as_status=1
46116  if test "$4"; then
46117    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46119  fi
46120  printf "%s\n" "$as_me: error: $2" >&2
46121  as_fn_exit $as_status
46122} # as_fn_error
46123
46124
46125
46126# as_fn_set_status STATUS
46127# -----------------------
46128# Set $? to STATUS, without forking.
46129as_fn_set_status ()
46130{
46131  return $1
46132} # as_fn_set_status
46133
46134# as_fn_exit STATUS
46135# -----------------
46136# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46137as_fn_exit ()
46138{
46139  set +e
46140  as_fn_set_status $1
46141  exit $1
46142} # as_fn_exit
46143
46144# as_fn_unset VAR
46145# ---------------
46146# Portably unset VAR.
46147as_fn_unset ()
46148{
46149  { eval $1=; unset $1;}
46150}
46151as_unset=as_fn_unset
46152
46153# as_fn_append VAR VALUE
46154# ----------------------
46155# Append the text in VALUE to the end of the definition contained in VAR. Take
46156# advantage of any shell optimizations that allow amortized linear growth over
46157# repeated appends, instead of the typical quadratic growth present in naive
46158# implementations.
46159if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46160then :
46161  eval 'as_fn_append ()
46162  {
46163    eval $1+=\$2
46164  }'
46165else $as_nop
46166  as_fn_append ()
46167  {
46168    eval $1=\$$1\$2
46169  }
46170fi # as_fn_append
46171
46172# as_fn_arith ARG...
46173# ------------------
46174# Perform arithmetic evaluation on the ARGs, and store the result in the
46175# global $as_val. Take advantage of shells that can avoid forks. The arguments
46176# must be portable across $(()) and expr.
46177if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46178then :
46179  eval 'as_fn_arith ()
46180  {
46181    as_val=$(( $* ))
46182  }'
46183else $as_nop
46184  as_fn_arith ()
46185  {
46186    as_val=`expr "$@" || test $? -eq 1`
46187  }
46188fi # as_fn_arith
46189
46190
46191if expr a : '\(a\)' >/dev/null 2>&1 &&
46192   test "X`expr 00001 : '.*\(...\)'`" = X001; then
46193  as_expr=expr
46194else
46195  as_expr=false
46196fi
46197
46198if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46199  as_basename=basename
46200else
46201  as_basename=false
46202fi
46203
46204if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46205  as_dirname=dirname
46206else
46207  as_dirname=false
46208fi
46209
46210as_me=`$as_basename -- "$0" ||
46211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46212	 X"$0" : 'X\(//\)$' \| \
46213	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46214printf "%s\n" X/"$0" |
46215    sed '/^.*\/\([^/][^/]*\)\/*$/{
46216	    s//\1/
46217	    q
46218	  }
46219	  /^X\/\(\/\/\)$/{
46220	    s//\1/
46221	    q
46222	  }
46223	  /^X\/\(\/\).*/{
46224	    s//\1/
46225	    q
46226	  }
46227	  s/.*/./; q'`
46228
46229# Avoid depending upon Character Ranges.
46230as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46231as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46232as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46233as_cr_digits='0123456789'
46234as_cr_alnum=$as_cr_Letters$as_cr_digits
46235
46236
46237# Determine whether it's possible to make 'echo' print without a newline.
46238# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46239# for compatibility with existing Makefiles.
46240ECHO_C= ECHO_N= ECHO_T=
46241case `echo -n x` in #(((((
46242-n*)
46243  case `echo 'xy\c'` in
46244  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46245  xy)  ECHO_C='\c';;
46246  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46247       ECHO_T='	';;
46248  esac;;
46249*)
46250  ECHO_N='-n';;
46251esac
46252
46253# For backward compatibility with old third-party macros, we provide
46254# the shell variables $as_echo and $as_echo_n.  New code should use
46255# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46256as_echo='printf %s\n'
46257as_echo_n='printf %s'
46258
46259rm -f conf$$ conf$$.exe conf$$.file
46260if test -d conf$$.dir; then
46261  rm -f conf$$.dir/conf$$.file
46262else
46263  rm -f conf$$.dir
46264  mkdir conf$$.dir 2>/dev/null
46265fi
46266if (echo >conf$$.file) 2>/dev/null; then
46267  if ln -s conf$$.file conf$$ 2>/dev/null; then
46268    as_ln_s='ln -s'
46269    # ... but there are two gotchas:
46270    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46271    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46272    # In both cases, we have to default to `cp -pR'.
46273    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46274      as_ln_s='cp -pR'
46275  elif ln conf$$.file conf$$ 2>/dev/null; then
46276    as_ln_s=ln
46277  else
46278    as_ln_s='cp -pR'
46279  fi
46280else
46281  as_ln_s='cp -pR'
46282fi
46283rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46284rmdir conf$$.dir 2>/dev/null
46285
46286
46287# as_fn_mkdir_p
46288# -------------
46289# Create "$as_dir" as a directory, including parents if necessary.
46290as_fn_mkdir_p ()
46291{
46292
46293  case $as_dir in #(
46294  -*) as_dir=./$as_dir;;
46295  esac
46296  test -d "$as_dir" || eval $as_mkdir_p || {
46297    as_dirs=
46298    while :; do
46299      case $as_dir in #(
46300      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46301      *) as_qdir=$as_dir;;
46302      esac
46303      as_dirs="'$as_qdir' $as_dirs"
46304      as_dir=`$as_dirname -- "$as_dir" ||
46305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46306	 X"$as_dir" : 'X\(//\)[^/]' \| \
46307	 X"$as_dir" : 'X\(//\)$' \| \
46308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46309printf "%s\n" X"$as_dir" |
46310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46311	    s//\1/
46312	    q
46313	  }
46314	  /^X\(\/\/\)[^/].*/{
46315	    s//\1/
46316	    q
46317	  }
46318	  /^X\(\/\/\)$/{
46319	    s//\1/
46320	    q
46321	  }
46322	  /^X\(\/\).*/{
46323	    s//\1/
46324	    q
46325	  }
46326	  s/.*/./; q'`
46327      test -d "$as_dir" && break
46328    done
46329    test -z "$as_dirs" || eval "mkdir $as_dirs"
46330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46331
46332
46333} # as_fn_mkdir_p
46334if mkdir -p . 2>/dev/null; then
46335  as_mkdir_p='mkdir -p "$as_dir"'
46336else
46337  test -d ./-p && rmdir ./-p
46338  as_mkdir_p=false
46339fi
46340
46341
46342# as_fn_executable_p FILE
46343# -----------------------
46344# Test if FILE is an executable regular file.
46345as_fn_executable_p ()
46346{
46347  test -f "$1" && test -x "$1"
46348} # as_fn_executable_p
46349as_test_x='test -x'
46350as_executable_p=as_fn_executable_p
46351
46352# Sed expression to map a string onto a valid CPP name.
46353as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46354
46355# Sed expression to map a string onto a valid variable name.
46356as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46357
46358
46359exec 6>&1
46360## ----------------------------------- ##
46361## Main body of $CONFIG_STATUS script. ##
46362## ----------------------------------- ##
46363_ASEOF
46364test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46365
46366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46367# Save the log message, to keep $0 and so on meaningful, and to
46368# report actual input values of CONFIG_FILES etc. instead of their
46369# values after options handling.
46370ac_log="
46371This file was extended by curl $as_me -, which was
46372generated by GNU Autoconf 2.71.  Invocation command line was
46373
46374  CONFIG_FILES    = $CONFIG_FILES
46375  CONFIG_HEADERS  = $CONFIG_HEADERS
46376  CONFIG_LINKS    = $CONFIG_LINKS
46377  CONFIG_COMMANDS = $CONFIG_COMMANDS
46378  $ $0 $@
46379
46380on `(hostname || uname -n) 2>/dev/null | sed 1q`
46381"
46382
46383_ACEOF
46384
46385case $ac_config_files in *"
46386"*) set x $ac_config_files; shift; ac_config_files=$*;;
46387esac
46388
46389case $ac_config_headers in *"
46390"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46391esac
46392
46393
46394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46395# Files that config.status was made for.
46396config_files="$ac_config_files"
46397config_headers="$ac_config_headers"
46398config_commands="$ac_config_commands"
46399
46400_ACEOF
46401
46402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46403ac_cs_usage="\
46404\`$as_me' instantiates files and other configuration actions
46405from templates according to the current configuration.  Unless the files
46406and actions are specified as TAGs, all are instantiated by default.
46407
46408Usage: $0 [OPTION]... [TAG]...
46409
46410  -h, --help       print this help, then exit
46411  -V, --version    print version number and configuration settings, then exit
46412      --config     print configuration, then exit
46413  -q, --quiet, --silent
46414                   do not print progress messages
46415  -d, --debug      don't remove temporary files
46416      --recheck    update $as_me by reconfiguring in the same conditions
46417      --file=FILE[:TEMPLATE]
46418                   instantiate the configuration file FILE
46419      --header=FILE[:TEMPLATE]
46420                   instantiate the configuration header FILE
46421
46422Configuration files:
46423$config_files
46424
46425Configuration headers:
46426$config_headers
46427
46428Configuration commands:
46429$config_commands
46430
46431Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46432
46433_ACEOF
46434ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46435ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46437ac_cs_config='$ac_cs_config_escaped'
46438ac_cs_version="\\
46439curl config.status -
46440configured by $0, generated by GNU Autoconf 2.71,
46441  with options \\"\$ac_cs_config\\"
46442
46443Copyright (C) 2021 Free Software Foundation, Inc.
46444This config.status script is free software; the Free Software Foundation
46445gives unlimited permission to copy, distribute and modify it."
46446
46447ac_pwd='$ac_pwd'
46448srcdir='$srcdir'
46449INSTALL='$INSTALL'
46450MKDIR_P='$MKDIR_P'
46451AWK='$AWK'
46452test -n "\$AWK" || AWK=awk
46453_ACEOF
46454
46455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46456# The default lists apply if the user does not specify any file.
46457ac_need_defaults=:
46458while test $# != 0
46459do
46460  case $1 in
46461  --*=?*)
46462    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46463    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46464    ac_shift=:
46465    ;;
46466  --*=)
46467    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46468    ac_optarg=
46469    ac_shift=:
46470    ;;
46471  *)
46472    ac_option=$1
46473    ac_optarg=$2
46474    ac_shift=shift
46475    ;;
46476  esac
46477
46478  case $ac_option in
46479  # Handling of the options.
46480  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46481    ac_cs_recheck=: ;;
46482  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46483    printf "%s\n" "$ac_cs_version"; exit ;;
46484  --config | --confi | --conf | --con | --co | --c )
46485    printf "%s\n" "$ac_cs_config"; exit ;;
46486  --debug | --debu | --deb | --de | --d | -d )
46487    debug=: ;;
46488  --file | --fil | --fi | --f )
46489    $ac_shift
46490    case $ac_optarg in
46491    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46492    '') as_fn_error $? "missing file argument" ;;
46493    esac
46494    as_fn_append CONFIG_FILES " '$ac_optarg'"
46495    ac_need_defaults=false;;
46496  --header | --heade | --head | --hea )
46497    $ac_shift
46498    case $ac_optarg in
46499    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46500    esac
46501    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46502    ac_need_defaults=false;;
46503  --he | --h)
46504    # Conflict between --help and --header
46505    as_fn_error $? "ambiguous option: \`$1'
46506Try \`$0 --help' for more information.";;
46507  --help | --hel | -h )
46508    printf "%s\n" "$ac_cs_usage"; exit ;;
46509  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46510  | -silent | --silent | --silen | --sile | --sil | --si | --s)
46511    ac_cs_silent=: ;;
46512
46513  # This is an error.
46514  -*) as_fn_error $? "unrecognized option: \`$1'
46515Try \`$0 --help' for more information." ;;
46516
46517  *) as_fn_append ac_config_targets " $1"
46518     ac_need_defaults=false ;;
46519
46520  esac
46521  shift
46522done
46523
46524ac_configure_extra_args=
46525
46526if $ac_cs_silent; then
46527  exec 6>/dev/null
46528  ac_configure_extra_args="$ac_configure_extra_args --silent"
46529fi
46530
46531_ACEOF
46532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46533if \$ac_cs_recheck; then
46534  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46535  shift
46536  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46537  CONFIG_SHELL='$SHELL'
46538  export CONFIG_SHELL
46539  exec "\$@"
46540fi
46541
46542_ACEOF
46543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46544exec 5>>config.log
46545{
46546  echo
46547  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46548## Running $as_me. ##
46549_ASBOX
46550  printf "%s\n" "$ac_log"
46551} >&5
46552
46553_ACEOF
46554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46555#
46556# INIT-COMMANDS
46557#
46558AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46559
46560
46561# The HP-UX ksh and POSIX shell print the target directory to stdout
46562# if CDPATH is set.
46563(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46564
46565sed_quote_subst='$sed_quote_subst'
46566double_quote_subst='$double_quote_subst'
46567delay_variable_subst='$delay_variable_subst'
46568macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46569macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46570AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46571DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46572OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46577shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46578SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46579ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46580PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46581host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46582host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46583host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46584build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46585build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46586build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46587SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46588Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46589GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46590EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46591FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46592LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46593NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46594LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46595max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46596ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46597exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46598lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46599lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46600lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46601lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46602lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46603reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46604reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46605FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46606deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46607file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46608file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46609want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46612lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46613AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46614archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46615STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46616RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46617old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46618old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46619old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46620lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46621CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46622CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46623compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46624GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46625lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46626lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46627lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46628lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46629lt_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"`'
46630lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46631nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46632lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46633lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46634objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46635MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46636lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46637lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46638lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46639lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46640lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46641need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46642MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46643DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46644NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46645LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46646OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46647OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46648libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46649shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46650extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46651archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46652enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46653export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46654whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46655compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46656old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46657old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46658archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46659archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46660module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46661module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46662with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46663allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46664no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46665hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46666hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46667hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46668hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46669hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46670hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46671hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46672inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46673link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46674always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46675export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46676exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46677include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46678prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46679postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46680file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46681variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46682need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46683need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46684version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46685runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46686shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46687shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46688libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46689library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46690soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46691install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46692postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46693postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46694finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46695finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46696hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46697sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46698configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46699configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46700hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46701enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46702enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46703enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46704old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46705striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46706LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46707reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46708reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46709old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46710compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46711GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46712lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46713lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46714lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46715lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46716lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46717archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46718enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46719export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46720whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46721compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46722old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46723old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46724archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46725archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46726module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46727module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46728with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46729allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46730no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46731hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46732hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46733hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46734hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46735hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46736hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46737hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46738inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46739link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
46740always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
46741export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
46742exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46743include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46744prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46745postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46746file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
46747hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
46748
46749LTCC='$LTCC'
46750LTCFLAGS='$LTCFLAGS'
46751compiler='$compiler_DEFAULT'
46752
46753# A function that is used when there is no print builtin or printf.
46754func_fallback_echo ()
46755{
46756  eval 'cat <<_LTECHO_EOF
46757\$1
46758_LTECHO_EOF'
46759}
46760
46761# Quote evaled strings.
46762for var in AS \
46763DLLTOOL \
46764OBJDUMP \
46765SHELL \
46766ECHO \
46767PATH_SEPARATOR \
46768SED \
46769GREP \
46770EGREP \
46771FGREP \
46772LD \
46773NM \
46774LN_S \
46775lt_SP2NL \
46776lt_NL2SP \
46777reload_flag \
46778FILECMD \
46779deplibs_check_method \
46780file_magic_cmd \
46781file_magic_glob \
46782want_nocaseglob \
46783sharedlib_from_linklib_cmd \
46784AR \
46785archiver_list_spec \
46786STRIP \
46787RANLIB \
46788CC \
46789CFLAGS \
46790compiler \
46791lt_cv_sys_global_symbol_pipe \
46792lt_cv_sys_global_symbol_to_cdecl \
46793lt_cv_sys_global_symbol_to_import \
46794lt_cv_sys_global_symbol_to_c_name_address \
46795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46796lt_cv_nm_interface \
46797nm_file_list_spec \
46798lt_cv_truncate_bin \
46799lt_prog_compiler_no_builtin_flag \
46800lt_prog_compiler_pic \
46801lt_prog_compiler_wl \
46802lt_prog_compiler_static \
46803lt_cv_prog_compiler_c_o \
46804need_locks \
46805MANIFEST_TOOL \
46806DSYMUTIL \
46807NMEDIT \
46808LIPO \
46809OTOOL \
46810OTOOL64 \
46811shrext_cmds \
46812export_dynamic_flag_spec \
46813whole_archive_flag_spec \
46814compiler_needs_object \
46815with_gnu_ld \
46816allow_undefined_flag \
46817no_undefined_flag \
46818hardcode_libdir_flag_spec \
46819hardcode_libdir_separator \
46820exclude_expsyms \
46821include_expsyms \
46822file_list_spec \
46823variables_saved_for_relink \
46824libname_spec \
46825library_names_spec \
46826soname_spec \
46827install_override_mode \
46828finish_eval \
46829old_striplib \
46830striplib \
46831LD_RC \
46832reload_flag_RC \
46833compiler_RC \
46834lt_prog_compiler_no_builtin_flag_RC \
46835lt_prog_compiler_pic_RC \
46836lt_prog_compiler_wl_RC \
46837lt_prog_compiler_static_RC \
46838lt_cv_prog_compiler_c_o_RC \
46839export_dynamic_flag_spec_RC \
46840whole_archive_flag_spec_RC \
46841compiler_needs_object_RC \
46842with_gnu_ld_RC \
46843allow_undefined_flag_RC \
46844no_undefined_flag_RC \
46845hardcode_libdir_flag_spec_RC \
46846hardcode_libdir_separator_RC \
46847exclude_expsyms_RC \
46848include_expsyms_RC \
46849file_list_spec_RC; do
46850    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46851    *[\\\\\\\`\\"\\\$]*)
46852      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46853      ;;
46854    *)
46855      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46856      ;;
46857    esac
46858done
46859
46860# Double-quote double-evaled strings.
46861for var in reload_cmds \
46862old_postinstall_cmds \
46863old_postuninstall_cmds \
46864old_archive_cmds \
46865extract_expsyms_cmds \
46866old_archive_from_new_cmds \
46867old_archive_from_expsyms_cmds \
46868archive_cmds \
46869archive_expsym_cmds \
46870module_cmds \
46871module_expsym_cmds \
46872export_symbols_cmds \
46873prelink_cmds \
46874postlink_cmds \
46875postinstall_cmds \
46876postuninstall_cmds \
46877finish_cmds \
46878sys_lib_search_path_spec \
46879configure_time_dlsearch_path \
46880configure_time_lt_sys_library_path \
46881reload_cmds_RC \
46882old_archive_cmds_RC \
46883old_archive_from_new_cmds_RC \
46884old_archive_from_expsyms_cmds_RC \
46885archive_cmds_RC \
46886archive_expsym_cmds_RC \
46887module_cmds_RC \
46888module_expsym_cmds_RC \
46889export_symbols_cmds_RC \
46890prelink_cmds_RC \
46891postlink_cmds_RC; do
46892    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46893    *[\\\\\\\`\\"\\\$]*)
46894      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46895      ;;
46896    *)
46897      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46898      ;;
46899    esac
46900done
46901
46902ac_aux_dir='$ac_aux_dir'
46903
46904# See if we are running on zsh, and set the options that allow our
46905# commands through without removal of \ escapes INIT.
46906if test -n "\${ZSH_VERSION+set}"; then
46907   setopt NO_GLOB_SUBST
46908fi
46909
46910
46911    PACKAGE='$PACKAGE'
46912    VERSION='$VERSION'
46913    RM='$RM'
46914    ofile='$ofile'
46915
46916
46917
46918
46919
46920
46921_ACEOF
46922
46923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46924
46925# Handling of arguments.
46926for ac_config_target in $ac_config_targets
46927do
46928  case $ac_config_target in
46929    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46930    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46931    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46932    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46933    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46934    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46935    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46936    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46937    "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46938    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46939    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46940    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46941    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46942    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46943    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46944    "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
46945    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46946    "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
46947    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46948    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46949    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46950    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46951    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46952    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46953    "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
46954    "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
46955    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46956    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46957    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46958    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46959
46960  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46961  esac
46962done
46963
46964
46965# If the user did not use the arguments to specify the items to instantiate,
46966# then the envvar interface is used.  Set only those that are not.
46967# We use the long form for the default assignment because of an extremely
46968# bizarre bug on SunOS 4.1.3.
46969if $ac_need_defaults; then
46970  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
46971  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
46972  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
46973fi
46974
46975# Have a temporary directory for convenience.  Make it in the build tree
46976# simply because there is no reason against having it here, and in addition,
46977# creating and moving files from /tmp can sometimes cause problems.
46978# Hook for its removal unless debugging.
46979# Note that there is a small window in which the directory will not be cleaned:
46980# after its creation but before its name has been assigned to `$tmp'.
46981$debug ||
46982{
46983  tmp= ac_tmp=
46984  trap 'exit_status=$?
46985  : "${ac_tmp:=$tmp}"
46986  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46987' 0
46988  trap 'as_fn_exit 1' 1 2 13 15
46989}
46990# Create a (secure) tmp directory for tmp files.
46991
46992{
46993  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46994  test -d "$tmp"
46995}  ||
46996{
46997  tmp=./conf$$-$RANDOM
46998  (umask 077 && mkdir "$tmp")
46999} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47000ac_tmp=$tmp
47001
47002# Set up the scripts for CONFIG_FILES section.
47003# No need to generate them if there are no CONFIG_FILES.
47004# This happens for instance with `./config.status config.h'.
47005if test -n "$CONFIG_FILES"; then
47006
47007
47008ac_cr=`echo X | tr X '\015'`
47009# On cygwin, bash can eat \r inside `` if the user requested igncr.
47010# But we know of no other shell where ac_cr would be empty at this
47011# point, so we can use a bashism as a fallback.
47012if test "x$ac_cr" = x; then
47013  eval ac_cr=\$\'\\r\'
47014fi
47015ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47016if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47017  ac_cs_awk_cr='\\r'
47018else
47019  ac_cs_awk_cr=$ac_cr
47020fi
47021
47022echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47023_ACEOF
47024
47025
47026{
47027  echo "cat >conf$$subs.awk <<_ACEOF" &&
47028  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47029  echo "_ACEOF"
47030} >conf$$subs.sh ||
47031  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47032ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47033ac_delim='%!_!# '
47034for ac_last_try in false false false false false :; do
47035  . ./conf$$subs.sh ||
47036    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47037
47038  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47039  if test $ac_delim_n = $ac_delim_num; then
47040    break
47041  elif $ac_last_try; then
47042    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47043  else
47044    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47045  fi
47046done
47047rm -f conf$$subs.sh
47048
47049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47050cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47051_ACEOF
47052sed -n '
47053h
47054s/^/S["/; s/!.*/"]=/
47055p
47056g
47057s/^[^!]*!//
47058:repl
47059t repl
47060s/'"$ac_delim"'$//
47061t delim
47062:nl
47063h
47064s/\(.\{148\}\)..*/\1/
47065t more1
47066s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47067p
47068n
47069b repl
47070:more1
47071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47072p
47073g
47074s/.\{148\}//
47075t nl
47076:delim
47077h
47078s/\(.\{148\}\)..*/\1/
47079t more2
47080s/["\\]/\\&/g; s/^/"/; s/$/"/
47081p
47082b
47083:more2
47084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47085p
47086g
47087s/.\{148\}//
47088t delim
47089' <conf$$subs.awk | sed '
47090/^[^""]/{
47091  N
47092  s/\n//
47093}
47094' >>$CONFIG_STATUS || ac_write_fail=1
47095rm -f conf$$subs.awk
47096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47097_ACAWK
47098cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47099  for (key in S) S_is_set[key] = 1
47100  FS = ""
47101
47102}
47103{
47104  line = $ 0
47105  nfields = split(line, field, "@")
47106  substed = 0
47107  len = length(field[1])
47108  for (i = 2; i < nfields; i++) {
47109    key = field[i]
47110    keylen = length(key)
47111    if (S_is_set[key]) {
47112      value = S[key]
47113      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47114      len += length(value) + length(field[++i])
47115      substed = 1
47116    } else
47117      len += 1 + keylen
47118  }
47119
47120  print line
47121}
47122
47123_ACAWK
47124_ACEOF
47125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47126if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47127  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47128else
47129  cat
47130fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47131  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47132_ACEOF
47133
47134# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47135# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47136# trailing colons and then remove the whole line if VPATH becomes empty
47137# (actually we leave an empty line to preserve line numbers).
47138if test "x$srcdir" = x.; then
47139  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
47140h
47141s///
47142s/^/:/
47143s/[	 ]*$/:/
47144s/:\$(srcdir):/:/g
47145s/:\${srcdir}:/:/g
47146s/:@srcdir@:/:/g
47147s/^:*//
47148s/:*$//
47149x
47150s/\(=[	 ]*\).*/\1/
47151G
47152s/\n//
47153s/^[^=]*=[	 ]*$//
47154}'
47155fi
47156
47157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47158fi # test -n "$CONFIG_FILES"
47159
47160# Set up the scripts for CONFIG_HEADERS section.
47161# No need to generate them if there are no CONFIG_HEADERS.
47162# This happens for instance with `./config.status Makefile'.
47163if test -n "$CONFIG_HEADERS"; then
47164cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47165BEGIN {
47166_ACEOF
47167
47168# Transform confdefs.h into an awk script `defines.awk', embedded as
47169# here-document in config.status, that substitutes the proper values into
47170# config.h.in to produce config.h.
47171
47172# Create a delimiter string that does not exist in confdefs.h, to ease
47173# handling of long lines.
47174ac_delim='%!_!# '
47175for ac_last_try in false false :; do
47176  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47177  if test -z "$ac_tt"; then
47178    break
47179  elif $ac_last_try; then
47180    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47181  else
47182    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47183  fi
47184done
47185
47186# For the awk script, D is an array of macro values keyed by name,
47187# likewise P contains macro parameters if any.  Preserve backslash
47188# newline sequences.
47189
47190ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47191sed -n '
47192s/.\{148\}/&'"$ac_delim"'/g
47193t rset
47194:rset
47195s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
47196t def
47197d
47198:def
47199s/\\$//
47200t bsnl
47201s/["\\]/\\&/g
47202s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47203D["\1"]=" \3"/p
47204s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
47205d
47206:bsnl
47207s/["\\]/\\&/g
47208s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47209D["\1"]=" \3\\\\\\n"\\/p
47210t cont
47211s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47212t cont
47213d
47214:cont
47215n
47216s/.\{148\}/&'"$ac_delim"'/g
47217t clear
47218:clear
47219s/\\$//
47220t bsnlc
47221s/["\\]/\\&/g; s/^/"/; s/$/"/p
47222d
47223:bsnlc
47224s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47225b cont
47226' <confdefs.h | sed '
47227s/'"$ac_delim"'/"\\\
47228"/g' >>$CONFIG_STATUS || ac_write_fail=1
47229
47230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47231  for (key in D) D_is_set[key] = 1
47232  FS = ""
47233}
47234/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47235  line = \$ 0
47236  split(line, arg, " ")
47237  if (arg[1] == "#") {
47238    defundef = arg[2]
47239    mac1 = arg[3]
47240  } else {
47241    defundef = substr(arg[1], 2)
47242    mac1 = arg[2]
47243  }
47244  split(mac1, mac2, "(") #)
47245  macro = mac2[1]
47246  prefix = substr(line, 1, index(line, defundef) - 1)
47247  if (D_is_set[macro]) {
47248    # Preserve the white space surrounding the "#".
47249    print prefix "define", macro P[macro] D[macro]
47250    next
47251  } else {
47252    # Replace #undef with comments.  This is necessary, for example,
47253    # in the case of _POSIX_SOURCE, which is predefined and required
47254    # on some systems where configure will not decide to define it.
47255    if (defundef == "undef") {
47256      print "/*", prefix defundef, macro, "*/"
47257      next
47258    }
47259  }
47260}
47261{ print }
47262_ACAWK
47263_ACEOF
47264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47265  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47266fi # test -n "$CONFIG_HEADERS"
47267
47268
47269eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47270shift
47271for ac_tag
47272do
47273  case $ac_tag in
47274  :[FHLC]) ac_mode=$ac_tag; continue;;
47275  esac
47276  case $ac_mode$ac_tag in
47277  :[FHL]*:*);;
47278  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47279  :[FH]-) ac_tag=-:-;;
47280  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47281  esac
47282  ac_save_IFS=$IFS
47283  IFS=:
47284  set x $ac_tag
47285  IFS=$ac_save_IFS
47286  shift
47287  ac_file=$1
47288  shift
47289
47290  case $ac_mode in
47291  :L) ac_source=$1;;
47292  :[FH])
47293    ac_file_inputs=
47294    for ac_f
47295    do
47296      case $ac_f in
47297      -) ac_f="$ac_tmp/stdin";;
47298      *) # Look for the file first in the build tree, then in the source tree
47299	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
47300	 # because $ac_f cannot contain `:'.
47301	 test -f "$ac_f" ||
47302	   case $ac_f in
47303	   [\\/$]*) false;;
47304	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47305	   esac ||
47306	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47307      esac
47308      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47309      as_fn_append ac_file_inputs " '$ac_f'"
47310    done
47311
47312    # Let's still pretend it is `configure' which instantiates (i.e., don't
47313    # use $as_me), people would be surprised to read:
47314    #    /* config.h.  Generated by config.status.  */
47315    configure_input='Generated from '`
47316	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47317	`' by configure.'
47318    if test x"$ac_file" != x-; then
47319      configure_input="$ac_file.  $configure_input"
47320      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47321printf "%s\n" "$as_me: creating $ac_file" >&6;}
47322    fi
47323    # Neutralize special characters interpreted by sed in replacement strings.
47324    case $configure_input in #(
47325    *\&* | *\|* | *\\* )
47326       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47327       sed 's/[\\\\&|]/\\\\&/g'`;; #(
47328    *) ac_sed_conf_input=$configure_input;;
47329    esac
47330
47331    case $ac_tag in
47332    *:-:* | *:-) cat >"$ac_tmp/stdin" \
47333      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47334    esac
47335    ;;
47336  esac
47337
47338  ac_dir=`$as_dirname -- "$ac_file" ||
47339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47340	 X"$ac_file" : 'X\(//\)[^/]' \| \
47341	 X"$ac_file" : 'X\(//\)$' \| \
47342	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47343printf "%s\n" X"$ac_file" |
47344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47345	    s//\1/
47346	    q
47347	  }
47348	  /^X\(\/\/\)[^/].*/{
47349	    s//\1/
47350	    q
47351	  }
47352	  /^X\(\/\/\)$/{
47353	    s//\1/
47354	    q
47355	  }
47356	  /^X\(\/\).*/{
47357	    s//\1/
47358	    q
47359	  }
47360	  s/.*/./; q'`
47361  as_dir="$ac_dir"; as_fn_mkdir_p
47362  ac_builddir=.
47363
47364case "$ac_dir" in
47365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47366*)
47367  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47368  # A ".." for each directory in $ac_dir_suffix.
47369  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47370  case $ac_top_builddir_sub in
47371  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47372  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47373  esac ;;
47374esac
47375ac_abs_top_builddir=$ac_pwd
47376ac_abs_builddir=$ac_pwd$ac_dir_suffix
47377# for backward compatibility:
47378ac_top_builddir=$ac_top_build_prefix
47379
47380case $srcdir in
47381  .)  # We are building in place.
47382    ac_srcdir=.
47383    ac_top_srcdir=$ac_top_builddir_sub
47384    ac_abs_top_srcdir=$ac_pwd ;;
47385  [\\/]* | ?:[\\/]* )  # Absolute name.
47386    ac_srcdir=$srcdir$ac_dir_suffix;
47387    ac_top_srcdir=$srcdir
47388    ac_abs_top_srcdir=$srcdir ;;
47389  *) # Relative name.
47390    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47391    ac_top_srcdir=$ac_top_build_prefix$srcdir
47392    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47393esac
47394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47395
47396
47397  case $ac_mode in
47398  :F)
47399  #
47400  # CONFIG_FILE
47401  #
47402
47403  case $INSTALL in
47404  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47405  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47406  esac
47407  ac_MKDIR_P=$MKDIR_P
47408  case $MKDIR_P in
47409  [\\/$]* | ?:[\\/]* ) ;;
47410  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47411  esac
47412_ACEOF
47413
47414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47415# If the template does not know about datarootdir, expand it.
47416# FIXME: This hack should be removed a few years after 2.60.
47417ac_datarootdir_hack=; ac_datarootdir_seen=
47418ac_sed_dataroot='
47419/datarootdir/ {
47420  p
47421  q
47422}
47423/@datadir@/p
47424/@docdir@/p
47425/@infodir@/p
47426/@localedir@/p
47427/@mandir@/p'
47428case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47429*datarootdir*) ac_datarootdir_seen=yes;;
47430*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47432printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47433_ACEOF
47434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47435  ac_datarootdir_hack='
47436  s&@datadir@&$datadir&g
47437  s&@docdir@&$docdir&g
47438  s&@infodir@&$infodir&g
47439  s&@localedir@&$localedir&g
47440  s&@mandir@&$mandir&g
47441  s&\\\${datarootdir}&$datarootdir&g' ;;
47442esac
47443_ACEOF
47444
47445# Neutralize VPATH when `$srcdir' = `.'.
47446# Shell code in configure.ac might set extrasub.
47447# FIXME: do we really want to maintain this feature?
47448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47449ac_sed_extra="$ac_vpsub
47450$extrasub
47451_ACEOF
47452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47453:t
47454/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47455s|@configure_input@|$ac_sed_conf_input|;t t
47456s&@top_builddir@&$ac_top_builddir_sub&;t t
47457s&@top_build_prefix@&$ac_top_build_prefix&;t t
47458s&@srcdir@&$ac_srcdir&;t t
47459s&@abs_srcdir@&$ac_abs_srcdir&;t t
47460s&@top_srcdir@&$ac_top_srcdir&;t t
47461s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47462s&@builddir@&$ac_builddir&;t t
47463s&@abs_builddir@&$ac_abs_builddir&;t t
47464s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47465s&@INSTALL@&$ac_INSTALL&;t t
47466s&@MKDIR_P@&$ac_MKDIR_P&;t t
47467$ac_datarootdir_hack
47468"
47469eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47470  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47471
47472test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47473  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47474  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
47475      "$ac_tmp/out"`; test -z "$ac_out"; } &&
47476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47477which seems to be undefined.  Please make sure it is defined" >&5
47478printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47479which seems to be undefined.  Please make sure it is defined" >&2;}
47480
47481  rm -f "$ac_tmp/stdin"
47482  case $ac_file in
47483  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47484  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47485  esac \
47486  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47487 ;;
47488  :H)
47489  #
47490  # CONFIG_HEADER
47491  #
47492  if test x"$ac_file" != x-; then
47493    {
47494      printf "%s\n" "/* $configure_input  */" >&1 \
47495      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47496    } >"$ac_tmp/config.h" \
47497      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47498    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47499      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47500printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47501    else
47502      rm -f "$ac_file"
47503      mv "$ac_tmp/config.h" "$ac_file" \
47504	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
47505    fi
47506  else
47507    printf "%s\n" "/* $configure_input  */" >&1 \
47508      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47509      || as_fn_error $? "could not create -" "$LINENO" 5
47510  fi
47511# Compute "$ac_file"'s index in $config_headers.
47512_am_arg="$ac_file"
47513_am_stamp_count=1
47514for _am_header in $config_headers :; do
47515  case $_am_header in
47516    $_am_arg | $_am_arg:* )
47517      break ;;
47518    * )
47519      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47520  esac
47521done
47522echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47523$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47524	 X"$_am_arg" : 'X\(//\)[^/]' \| \
47525	 X"$_am_arg" : 'X\(//\)$' \| \
47526	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47527printf "%s\n" X"$_am_arg" |
47528    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47529	    s//\1/
47530	    q
47531	  }
47532	  /^X\(\/\/\)[^/].*/{
47533	    s//\1/
47534	    q
47535	  }
47536	  /^X\(\/\/\)$/{
47537	    s//\1/
47538	    q
47539	  }
47540	  /^X\(\/\).*/{
47541	    s//\1/
47542	    q
47543	  }
47544	  s/.*/./; q'`/stamp-h$_am_stamp_count
47545 ;;
47546
47547  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47548printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47549 ;;
47550  esac
47551
47552
47553  case $ac_file$ac_mode in
47554    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47555  # Older Autoconf quotes --file arguments for eval, but not when files
47556  # are listed without --file.  Let's play safe and only enable the eval
47557  # if we detect the quoting.
47558  # TODO: see whether this extra hack can be removed once we start
47559  # requiring Autoconf 2.70 or later.
47560  case $CONFIG_FILES in #(
47561  *\'*) :
47562    eval set x "$CONFIG_FILES" ;; #(
47563  *) :
47564    set x $CONFIG_FILES ;; #(
47565  *) :
47566     ;;
47567esac
47568  shift
47569  # Used to flag and report bootstrapping failures.
47570  am_rc=0
47571  for am_mf
47572  do
47573    # Strip MF so we end up with the name of the file.
47574    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47575    # Check whether this is an Automake generated Makefile which includes
47576    # dependency-tracking related rules and includes.
47577    # Grep'ing the whole file directly is not great: AIX grep has a line
47578    # limit of 2048, but all sed's we know have understand at least 4000.
47579    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47580      || continue
47581    am_dirpart=`$as_dirname -- "$am_mf" ||
47582$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47583	 X"$am_mf" : 'X\(//\)[^/]' \| \
47584	 X"$am_mf" : 'X\(//\)$' \| \
47585	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47586printf "%s\n" X"$am_mf" |
47587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47588	    s//\1/
47589	    q
47590	  }
47591	  /^X\(\/\/\)[^/].*/{
47592	    s//\1/
47593	    q
47594	  }
47595	  /^X\(\/\/\)$/{
47596	    s//\1/
47597	    q
47598	  }
47599	  /^X\(\/\).*/{
47600	    s//\1/
47601	    q
47602	  }
47603	  s/.*/./; q'`
47604    am_filepart=`$as_basename -- "$am_mf" ||
47605$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47606	 X"$am_mf" : 'X\(//\)$' \| \
47607	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47608printf "%s\n" X/"$am_mf" |
47609    sed '/^.*\/\([^/][^/]*\)\/*$/{
47610	    s//\1/
47611	    q
47612	  }
47613	  /^X\/\(\/\/\)$/{
47614	    s//\1/
47615	    q
47616	  }
47617	  /^X\/\(\/\).*/{
47618	    s//\1/
47619	    q
47620	  }
47621	  s/.*/./; q'`
47622    { echo "$as_me:$LINENO: cd "$am_dirpart" \
47623      && sed -e '/# am--include-marker/d' "$am_filepart" \
47624        | $MAKE -f - am--depfiles" >&5
47625   (cd "$am_dirpart" \
47626      && sed -e '/# am--include-marker/d' "$am_filepart" \
47627        | $MAKE -f - am--depfiles) >&5 2>&5
47628   ac_status=$?
47629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47630   (exit $ac_status); } || am_rc=$?
47631  done
47632  if test $am_rc -ne 0; then
47633    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47634printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47635as_fn_error $? "Something went wrong bootstrapping makefile fragments
47636    for automatic dependency tracking.  If GNU make was not used, consider
47637    re-running the configure script with MAKE=\"gmake\" (or whatever is
47638    necessary).  You can also try re-running configure with the
47639    '--disable-dependency-tracking' option to at least be able to build
47640    the package (albeit without support for automatic dependency tracking).
47641See \`config.log' for more details" "$LINENO" 5; }
47642  fi
47643  { am_dirpart=; unset am_dirpart;}
47644  { am_filepart=; unset am_filepart;}
47645  { am_mf=; unset am_mf;}
47646  { am_rc=; unset am_rc;}
47647  rm -f conftest-deps.mk
47648}
47649 ;;
47650    "libtool":C)
47651
47652    # See if we are running on zsh, and set the options that allow our
47653    # commands through without removal of \ escapes.
47654    if test -n "${ZSH_VERSION+set}"; then
47655      setopt NO_GLOB_SUBST
47656    fi
47657
47658    cfgfile=${ofile}T
47659    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47660    $RM "$cfgfile"
47661
47662    cat <<_LT_EOF >> "$cfgfile"
47663#! $SHELL
47664# Generated automatically by $as_me ($PACKAGE) $VERSION
47665# NOTE: Changes made to this file will be lost: look at ltmain.sh.
47666
47667# Provide generalized library-building support services.
47668# Written by Gordon Matzigkeit, 1996
47669
47670# Copyright (C) 2014 Free Software Foundation, Inc.
47671# This is free software; see the source for copying conditions.  There is NO
47672# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47673
47674# GNU Libtool is free software; you can redistribute it and/or modify
47675# it under the terms of the GNU General Public License as published by
47676# the Free Software Foundation; either version 2 of of the License, or
47677# (at your option) any later version.
47678#
47679# As a special exception to the GNU General Public License, if you
47680# distribute this file as part of a program or library that is built
47681# using GNU Libtool, you may include this file under the  same
47682# distribution terms that you use for the rest of that program.
47683#
47684# GNU Libtool is distributed in the hope that it will be useful, but
47685# WITHOUT ANY WARRANTY; without even the implied warranty of
47686# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47687# GNU General Public License for more details.
47688#
47689# You should have received a copy of the GNU General Public License
47690# along with this program.  If not, see <http://www.gnu.org/licenses/>.
47691
47692
47693# The names of the tagged configurations supported by this script.
47694available_tags='RC '
47695
47696# Configured defaults for sys_lib_dlsearch_path munging.
47697: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47698
47699# ### BEGIN LIBTOOL CONFIG
47700
47701# Which release of libtool.m4 was used?
47702macro_version=$macro_version
47703macro_revision=$macro_revision
47704
47705# Assembler program.
47706AS=$lt_AS
47707
47708# DLL creation program.
47709DLLTOOL=$lt_DLLTOOL
47710
47711# Object dumper program.
47712OBJDUMP=$lt_OBJDUMP
47713
47714# Whether or not to build shared libraries.
47715build_libtool_libs=$enable_shared
47716
47717# Whether or not to build static libraries.
47718build_old_libs=$enable_static
47719
47720# What type of objects to build.
47721pic_mode=$pic_mode
47722
47723# Whether or not to optimize for fast installation.
47724fast_install=$enable_fast_install
47725
47726# Shared archive member basename,for filename based shared library versioning on AIX.
47727shared_archive_member_spec=$shared_archive_member_spec
47728
47729# Shell to use when invoking shell scripts.
47730SHELL=$lt_SHELL
47731
47732# An echo program that protects backslashes.
47733ECHO=$lt_ECHO
47734
47735# The PATH separator for the build system.
47736PATH_SEPARATOR=$lt_PATH_SEPARATOR
47737
47738# The host system.
47739host_alias=$host_alias
47740host=$host
47741host_os=$host_os
47742
47743# The build system.
47744build_alias=$build_alias
47745build=$build
47746build_os=$build_os
47747
47748# A sed program that does not truncate output.
47749SED=$lt_SED
47750
47751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
47752Xsed="\$SED -e 1s/^X//"
47753
47754# A grep program that handles long lines.
47755GREP=$lt_GREP
47756
47757# An ERE matcher.
47758EGREP=$lt_EGREP
47759
47760# A literal string matcher.
47761FGREP=$lt_FGREP
47762
47763# A BSD- or MS-compatible name lister.
47764NM=$lt_NM
47765
47766# Whether we need soft or hard links.
47767LN_S=$lt_LN_S
47768
47769# What is the maximum length of a command?
47770max_cmd_len=$max_cmd_len
47771
47772# Object file suffix (normally "o").
47773objext=$ac_objext
47774
47775# Executable file suffix (normally "").
47776exeext=$exeext
47777
47778# whether the shell understands "unset".
47779lt_unset=$lt_unset
47780
47781# turn spaces into newlines.
47782SP2NL=$lt_lt_SP2NL
47783
47784# turn newlines into spaces.
47785NL2SP=$lt_lt_NL2SP
47786
47787# convert \$build file names to \$host format.
47788to_host_file_cmd=$lt_cv_to_host_file_cmd
47789
47790# convert \$build files to toolchain format.
47791to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47792
47793# A file(cmd) program that detects file types.
47794FILECMD=$lt_FILECMD
47795
47796# Method to check whether dependent libraries are shared objects.
47797deplibs_check_method=$lt_deplibs_check_method
47798
47799# Command to use when deplibs_check_method = "file_magic".
47800file_magic_cmd=$lt_file_magic_cmd
47801
47802# How to find potential files when deplibs_check_method = "file_magic".
47803file_magic_glob=$lt_file_magic_glob
47804
47805# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47806want_nocaseglob=$lt_want_nocaseglob
47807
47808# Command to associate shared and link libraries.
47809sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47810
47811# The archiver.
47812AR=$lt_AR
47813
47814# Flags to create an archive (by configure).
47815lt_ar_flags=$lt_ar_flags
47816
47817# Flags to create an archive.
47818AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
47819
47820# How to feed a file listing to the archiver.
47821archiver_list_spec=$lt_archiver_list_spec
47822
47823# A symbol stripping program.
47824STRIP=$lt_STRIP
47825
47826# Commands used to install an old-style archive.
47827RANLIB=$lt_RANLIB
47828old_postinstall_cmds=$lt_old_postinstall_cmds
47829old_postuninstall_cmds=$lt_old_postuninstall_cmds
47830
47831# Whether to use a lock for old archive extraction.
47832lock_old_archive_extraction=$lock_old_archive_extraction
47833
47834# A C compiler.
47835LTCC=$lt_CC
47836
47837# LTCC compiler flags.
47838LTCFLAGS=$lt_CFLAGS
47839
47840# Take the output of nm and produce a listing of raw symbols and C names.
47841global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47842
47843# Transform the output of nm in a proper C declaration.
47844global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47845
47846# Transform the output of nm into a list of symbols to manually relocate.
47847global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47848
47849# Transform the output of nm in a C name address pair.
47850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47851
47852# Transform the output of nm in a C name address pair when lib prefix is needed.
47853global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47854
47855# The name lister interface.
47856nm_interface=$lt_lt_cv_nm_interface
47857
47858# Specify filename containing input files for \$NM.
47859nm_file_list_spec=$lt_nm_file_list_spec
47860
47861# The root where to search for dependent libraries,and where our libraries should be installed.
47862lt_sysroot=$lt_sysroot
47863
47864# Command to truncate a binary pipe.
47865lt_truncate_bin=$lt_lt_cv_truncate_bin
47866
47867# The name of the directory that contains temporary libtool files.
47868objdir=$objdir
47869
47870# Used to examine libraries when file_magic_cmd begins with "file".
47871MAGIC_CMD=$MAGIC_CMD
47872
47873# Must we lock files when doing compilation?
47874need_locks=$lt_need_locks
47875
47876# Manifest tool.
47877MANIFEST_TOOL=$lt_MANIFEST_TOOL
47878
47879# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47880DSYMUTIL=$lt_DSYMUTIL
47881
47882# Tool to change global to local symbols on Mac OS X.
47883NMEDIT=$lt_NMEDIT
47884
47885# Tool to manipulate fat objects and archives on Mac OS X.
47886LIPO=$lt_LIPO
47887
47888# ldd/readelf like tool for Mach-O binaries on Mac OS X.
47889OTOOL=$lt_OTOOL
47890
47891# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47892OTOOL64=$lt_OTOOL64
47893
47894# Old archive suffix (normally "a").
47895libext=$libext
47896
47897# Shared library suffix (normally ".so").
47898shrext_cmds=$lt_shrext_cmds
47899
47900# The commands to extract the exported symbol list from a shared archive.
47901extract_expsyms_cmds=$lt_extract_expsyms_cmds
47902
47903# Variables whose values should be saved in libtool wrapper scripts and
47904# restored at link time.
47905variables_saved_for_relink=$lt_variables_saved_for_relink
47906
47907# Do we need the "lib" prefix for modules?
47908need_lib_prefix=$need_lib_prefix
47909
47910# Do we need a version for libraries?
47911need_version=$need_version
47912
47913# Library versioning type.
47914version_type=$version_type
47915
47916# Shared library runtime path variable.
47917runpath_var=$runpath_var
47918
47919# Shared library path variable.
47920shlibpath_var=$shlibpath_var
47921
47922# Is shlibpath searched before the hard-coded library search path?
47923shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47924
47925# Format of library name prefix.
47926libname_spec=$lt_libname_spec
47927
47928# List of archive names.  First name is the real one, the rest are links.
47929# The last name is the one that the linker finds with -lNAME
47930library_names_spec=$lt_library_names_spec
47931
47932# The coded name of the library, if different from the real name.
47933soname_spec=$lt_soname_spec
47934
47935# Permission mode override for installation of shared libraries.
47936install_override_mode=$lt_install_override_mode
47937
47938# Command to use after installation of a shared archive.
47939postinstall_cmds=$lt_postinstall_cmds
47940
47941# Command to use after uninstallation of a shared archive.
47942postuninstall_cmds=$lt_postuninstall_cmds
47943
47944# Commands used to finish a libtool library installation in a directory.
47945finish_cmds=$lt_finish_cmds
47946
47947# As "finish_cmds", except a single script fragment to be evaled but
47948# not shown.
47949finish_eval=$lt_finish_eval
47950
47951# Whether we should hardcode library paths into libraries.
47952hardcode_into_libs=$hardcode_into_libs
47953
47954# Compile-time system search path for libraries.
47955sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47956
47957# Detected run-time system search path for libraries.
47958sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47959
47960# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47961configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47962
47963# Whether dlopen is supported.
47964dlopen_support=$enable_dlopen
47965
47966# Whether dlopen of programs is supported.
47967dlopen_self=$enable_dlopen_self
47968
47969# Whether dlopen of statically linked programs is supported.
47970dlopen_self_static=$enable_dlopen_self_static
47971
47972# Commands to strip libraries.
47973old_striplib=$lt_old_striplib
47974striplib=$lt_striplib
47975
47976
47977# The linker used to build libraries.
47978LD=$lt_LD
47979
47980# How to create reloadable object files.
47981reload_flag=$lt_reload_flag
47982reload_cmds=$lt_reload_cmds
47983
47984# Commands used to build an old-style archive.
47985old_archive_cmds=$lt_old_archive_cmds
47986
47987# A language specific compiler.
47988CC=$lt_compiler
47989
47990# Is the compiler the GNU compiler?
47991with_gcc=$GCC
47992
47993# Compiler flag to turn off builtin functions.
47994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47995
47996# Additional compiler flags for building library objects.
47997pic_flag=$lt_lt_prog_compiler_pic
47998
47999# How to pass a linker flag through the compiler.
48000wl=$lt_lt_prog_compiler_wl
48001
48002# Compiler flag to prevent dynamic linking.
48003link_static_flag=$lt_lt_prog_compiler_static
48004
48005# Does compiler simultaneously support -c and -o options?
48006compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48007
48008# Whether or not to add -lc for building shared libraries.
48009build_libtool_need_lc=$archive_cmds_need_lc
48010
48011# Whether or not to disallow shared libs when runtime libs are static.
48012allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48013
48014# Compiler flag to allow reflexive dlopens.
48015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48016
48017# Compiler flag to generate shared objects directly from archives.
48018whole_archive_flag_spec=$lt_whole_archive_flag_spec
48019
48020# Whether the compiler copes with passing no objects directly.
48021compiler_needs_object=$lt_compiler_needs_object
48022
48023# Create an old-style archive from a shared archive.
48024old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48025
48026# Create a temporary old-style archive to link instead of a shared archive.
48027old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48028
48029# Commands used to build a shared archive.
48030archive_cmds=$lt_archive_cmds
48031archive_expsym_cmds=$lt_archive_expsym_cmds
48032
48033# Commands used to build a loadable module if different from building
48034# a shared archive.
48035module_cmds=$lt_module_cmds
48036module_expsym_cmds=$lt_module_expsym_cmds
48037
48038# Whether we are building with GNU ld or not.
48039with_gnu_ld=$lt_with_gnu_ld
48040
48041# Flag that allows shared libraries with undefined symbols to be built.
48042allow_undefined_flag=$lt_allow_undefined_flag
48043
48044# Flag that enforces no undefined symbols.
48045no_undefined_flag=$lt_no_undefined_flag
48046
48047# Flag to hardcode \$libdir into a binary during linking.
48048# This must work even if \$libdir does not exist
48049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48050
48051# Whether we need a single "-rpath" flag with a separated argument.
48052hardcode_libdir_separator=$lt_hardcode_libdir_separator
48053
48054# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48055# DIR into the resulting binary.
48056hardcode_direct=$hardcode_direct
48057
48058# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48059# DIR into the resulting binary and the resulting library dependency is
48060# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48061# library is relocated.
48062hardcode_direct_absolute=$hardcode_direct_absolute
48063
48064# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48065# into the resulting binary.
48066hardcode_minus_L=$hardcode_minus_L
48067
48068# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48069# into the resulting binary.
48070hardcode_shlibpath_var=$hardcode_shlibpath_var
48071
48072# Set to "yes" if building a shared library automatically hardcodes DIR
48073# into the library and all subsequent libraries and executables linked
48074# against it.
48075hardcode_automatic=$hardcode_automatic
48076
48077# Set to yes if linker adds runtime paths of dependent libraries
48078# to runtime path list.
48079inherit_rpath=$inherit_rpath
48080
48081# Whether libtool must link a program against all its dependency libraries.
48082link_all_deplibs=$link_all_deplibs
48083
48084# Set to "yes" if exported symbols are required.
48085always_export_symbols=$always_export_symbols
48086
48087# The commands to list exported symbols.
48088export_symbols_cmds=$lt_export_symbols_cmds
48089
48090# Symbols that should not be listed in the preloaded symbols.
48091exclude_expsyms=$lt_exclude_expsyms
48092
48093# Symbols that must always be exported.
48094include_expsyms=$lt_include_expsyms
48095
48096# Commands necessary for linking programs (against libraries) with templates.
48097prelink_cmds=$lt_prelink_cmds
48098
48099# Commands necessary for finishing linking programs.
48100postlink_cmds=$lt_postlink_cmds
48101
48102# Specify filename containing input files.
48103file_list_spec=$lt_file_list_spec
48104
48105# How to hardcode a shared library path into an executable.
48106hardcode_action=$hardcode_action
48107
48108# ### END LIBTOOL CONFIG
48109
48110_LT_EOF
48111
48112    cat <<'_LT_EOF' >> "$cfgfile"
48113
48114# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48115
48116# func_munge_path_list VARIABLE PATH
48117# -----------------------------------
48118# VARIABLE is name of variable containing _space_ separated list of
48119# directories to be munged by the contents of PATH, which is string
48120# having a format:
48121# "DIR[:DIR]:"
48122#       string "DIR[ DIR]" will be prepended to VARIABLE
48123# ":DIR[:DIR]"
48124#       string "DIR[ DIR]" will be appended to VARIABLE
48125# "DIRP[:DIRP]::[DIRA:]DIRA"
48126#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48127#       "DIRA[ DIRA]" will be appended to VARIABLE
48128# "DIR[:DIR]"
48129#       VARIABLE will be replaced by "DIR[ DIR]"
48130func_munge_path_list ()
48131{
48132    case x$2 in
48133    x)
48134        ;;
48135    *:)
48136        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48137        ;;
48138    x:*)
48139        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48140        ;;
48141    *::*)
48142        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48143        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48144        ;;
48145    *)
48146        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48147        ;;
48148    esac
48149}
48150
48151
48152# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48153func_cc_basename ()
48154{
48155    for cc_temp in $*""; do
48156      case $cc_temp in
48157        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48158        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48159        \-*) ;;
48160        *) break;;
48161      esac
48162    done
48163    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48164}
48165
48166
48167# ### END FUNCTIONS SHARED WITH CONFIGURE
48168
48169_LT_EOF
48170
48171  case $host_os in
48172  aix3*)
48173    cat <<\_LT_EOF >> "$cfgfile"
48174# AIX sometimes has problems with the GCC collect2 program.  For some
48175# reason, if we set the COLLECT_NAMES environment variable, the problems
48176# vanish in a puff of smoke.
48177if test set != "${COLLECT_NAMES+set}"; then
48178  COLLECT_NAMES=
48179  export COLLECT_NAMES
48180fi
48181_LT_EOF
48182    ;;
48183  esac
48184
48185
48186
48187ltmain=$ac_aux_dir/ltmain.sh
48188
48189
48190  # We use sed instead of cat because bash on DJGPP gets confused if
48191  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48192  # text mode, it properly converts lines to CR/LF.  This bash problem
48193  # is reportedly fixed, but why not run on old versions too?
48194  $SED '$q' "$ltmain" >> "$cfgfile" \
48195     || (rm -f "$cfgfile"; exit 1)
48196
48197   mv -f "$cfgfile" "$ofile" ||
48198    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48199  chmod +x "$ofile"
48200
48201
48202    cat <<_LT_EOF >> "$ofile"
48203
48204# ### BEGIN LIBTOOL TAG CONFIG: RC
48205
48206# The linker used to build libraries.
48207LD=$lt_LD_RC
48208
48209# How to create reloadable object files.
48210reload_flag=$lt_reload_flag_RC
48211reload_cmds=$lt_reload_cmds_RC
48212
48213# Commands used to build an old-style archive.
48214old_archive_cmds=$lt_old_archive_cmds_RC
48215
48216# A language specific compiler.
48217CC=$lt_compiler_RC
48218
48219# Is the compiler the GNU compiler?
48220with_gcc=$GCC_RC
48221
48222# Compiler flag to turn off builtin functions.
48223no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48224
48225# Additional compiler flags for building library objects.
48226pic_flag=$lt_lt_prog_compiler_pic_RC
48227
48228# How to pass a linker flag through the compiler.
48229wl=$lt_lt_prog_compiler_wl_RC
48230
48231# Compiler flag to prevent dynamic linking.
48232link_static_flag=$lt_lt_prog_compiler_static_RC
48233
48234# Does compiler simultaneously support -c and -o options?
48235compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48236
48237# Whether or not to add -lc for building shared libraries.
48238build_libtool_need_lc=$archive_cmds_need_lc_RC
48239
48240# Whether or not to disallow shared libs when runtime libs are static.
48241allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48242
48243# Compiler flag to allow reflexive dlopens.
48244export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48245
48246# Compiler flag to generate shared objects directly from archives.
48247whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48248
48249# Whether the compiler copes with passing no objects directly.
48250compiler_needs_object=$lt_compiler_needs_object_RC
48251
48252# Create an old-style archive from a shared archive.
48253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48254
48255# Create a temporary old-style archive to link instead of a shared archive.
48256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48257
48258# Commands used to build a shared archive.
48259archive_cmds=$lt_archive_cmds_RC
48260archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48261
48262# Commands used to build a loadable module if different from building
48263# a shared archive.
48264module_cmds=$lt_module_cmds_RC
48265module_expsym_cmds=$lt_module_expsym_cmds_RC
48266
48267# Whether we are building with GNU ld or not.
48268with_gnu_ld=$lt_with_gnu_ld_RC
48269
48270# Flag that allows shared libraries with undefined symbols to be built.
48271allow_undefined_flag=$lt_allow_undefined_flag_RC
48272
48273# Flag that enforces no undefined symbols.
48274no_undefined_flag=$lt_no_undefined_flag_RC
48275
48276# Flag to hardcode \$libdir into a binary during linking.
48277# This must work even if \$libdir does not exist
48278hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48279
48280# Whether we need a single "-rpath" flag with a separated argument.
48281hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48282
48283# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48284# DIR into the resulting binary.
48285hardcode_direct=$hardcode_direct_RC
48286
48287# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48288# DIR into the resulting binary and the resulting library dependency is
48289# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48290# library is relocated.
48291hardcode_direct_absolute=$hardcode_direct_absolute_RC
48292
48293# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48294# into the resulting binary.
48295hardcode_minus_L=$hardcode_minus_L_RC
48296
48297# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48298# into the resulting binary.
48299hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48300
48301# Set to "yes" if building a shared library automatically hardcodes DIR
48302# into the library and all subsequent libraries and executables linked
48303# against it.
48304hardcode_automatic=$hardcode_automatic_RC
48305
48306# Set to yes if linker adds runtime paths of dependent libraries
48307# to runtime path list.
48308inherit_rpath=$inherit_rpath_RC
48309
48310# Whether libtool must link a program against all its dependency libraries.
48311link_all_deplibs=$link_all_deplibs_RC
48312
48313# Set to "yes" if exported symbols are required.
48314always_export_symbols=$always_export_symbols_RC
48315
48316# The commands to list exported symbols.
48317export_symbols_cmds=$lt_export_symbols_cmds_RC
48318
48319# Symbols that should not be listed in the preloaded symbols.
48320exclude_expsyms=$lt_exclude_expsyms_RC
48321
48322# Symbols that must always be exported.
48323include_expsyms=$lt_include_expsyms_RC
48324
48325# Commands necessary for linking programs (against libraries) with templates.
48326prelink_cmds=$lt_prelink_cmds_RC
48327
48328# Commands necessary for finishing linking programs.
48329postlink_cmds=$lt_postlink_cmds_RC
48330
48331# Specify filename containing input files.
48332file_list_spec=$lt_file_list_spec_RC
48333
48334# How to hardcode a shared library path into an executable.
48335hardcode_action=$hardcode_action_RC
48336
48337# ### END LIBTOOL TAG CONFIG: RC
48338_LT_EOF
48339
48340 ;;
48341
48342  esac
48343done # for ac_tag
48344
48345
48346as_fn_exit 0
48347_ACEOF
48348ac_clean_files=$ac_clean_files_save
48349
48350test $ac_write_fail = 0 ||
48351  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48352
48353
48354# configure is writing to config.log, and then calls config.status.
48355# config.status does its own redirection, appending to config.log.
48356# Unfortunately, on DOS this fails, as config.log is still kept open
48357# by configure, so config.status won't be able to write to it; its
48358# output is simply discarded.  So we exec the FD to /dev/null,
48359# effectively closing config.log, so it can be properly (re)opened and
48360# appended to by config.status.  When coming back to configure, we
48361# need to make the FD available again.
48362if test "$no_create" != yes; then
48363  ac_cs_success=:
48364  ac_config_status_args=
48365  test "$silent" = yes &&
48366    ac_config_status_args="$ac_config_status_args --quiet"
48367  exec 5>/dev/null
48368  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48369  exec 5>>config.log
48370  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48371  # would make configure fail if this is the last instruction.
48372  $ac_cs_success || as_fn_exit 1
48373fi
48374if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48376printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48377fi
48378
48379
48380
48381    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48382  if test -z "$tmp_cpp"; then
48383    tmp_cpp='cpp'
48384  fi
48385  cat >./tests/configurehelp.pm <<_EOF
48386# This is a generated file.  Do not edit.
48387
48388package configurehelp;
48389
48390use strict;
48391use warnings;
48392use Exporter;
48393
48394use vars qw(
48395    @ISA
48396    @EXPORT_OK
48397    \$Cpreprocessor
48398    );
48399
48400@ISA = qw(Exporter);
48401
48402@EXPORT_OK = qw(
48403    \$Cpreprocessor
48404    );
48405
48406\$Cpreprocessor = '$tmp_cpp';
48407
484081;
48409_EOF
48410
48411
48412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48413
48414  Host setup:       ${host}
48415  Install prefix:   ${prefix}
48416  Compiler:         ${CC}
48417   CFLAGS:          ${CFLAGS}
48418   CPPFLAGS:        ${CPPFLAGS}
48419   LDFLAGS:         ${LDFLAGS}
48420   LIBS:            ${LIBS}
48421
48422  curl version:     ${CURLVERSION}
48423  SSL:              ${curl_ssl_msg}
48424  SSH:              ${curl_ssh_msg}
48425  zlib:             ${curl_zlib_msg}
48426  brotli:           ${curl_brotli_msg}
48427  zstd:             ${curl_zstd_msg}
48428  GSS-API:          ${curl_gss_msg}
48429  GSASL:            ${curl_gsasl_msg}
48430  TLS-SRP:          ${curl_tls_srp_msg}
48431  resolver:         ${curl_res_msg}
48432  IPv6:             ${curl_ipv6_msg}
48433  Unix sockets:     ${curl_unix_sockets_msg}
48434  IDN:              ${curl_idn_msg}
48435  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48436  Built-in manual:  ${curl_manual_msg}
48437  --libcurl option: ${curl_libcurl_msg}
48438  Verbose errors:   ${curl_verbose_msg}
48439  Code coverage:    ${curl_coverage_msg}
48440  SSPI:             ${curl_sspi_msg}
48441  ca cert bundle:   ${ca}${ca_warning}
48442  ca cert path:     ${capath}${capath_warning}
48443  ca fallback:      ${with_ca_fallback}
48444  LDAP:             ${curl_ldap_msg}
48445  LDAPS:            ${curl_ldaps_msg}
48446  RTSP:             ${curl_rtsp_msg}
48447  RTMP:             ${curl_rtmp_msg}
48448  PSL:              ${curl_psl_msg}
48449  Alt-svc:          ${curl_altsvc_msg}
48450  Headers API:      ${curl_headers_msg}
48451  HSTS:             ${curl_hsts_msg}
48452  HTTP1:            ${curl_h1_msg}
48453  HTTP2:            ${curl_h2_msg}
48454  HTTP3:            ${curl_h3_msg}
48455  ECH:              ${curl_ech_msg}
48456  WebSockets:       ${curl_ws_msg}
48457  Protocols:        ${SUPPORT_PROTOCOLS}
48458  Features:         ${SUPPORT_FEATURES}
48459" >&5
48460printf "%s\n" "$as_me: Configured to build curl/libcurl:
48461
48462  Host setup:       ${host}
48463  Install prefix:   ${prefix}
48464  Compiler:         ${CC}
48465   CFLAGS:          ${CFLAGS}
48466   CPPFLAGS:        ${CPPFLAGS}
48467   LDFLAGS:         ${LDFLAGS}
48468   LIBS:            ${LIBS}
48469
48470  curl version:     ${CURLVERSION}
48471  SSL:              ${curl_ssl_msg}
48472  SSH:              ${curl_ssh_msg}
48473  zlib:             ${curl_zlib_msg}
48474  brotli:           ${curl_brotli_msg}
48475  zstd:             ${curl_zstd_msg}
48476  GSS-API:          ${curl_gss_msg}
48477  GSASL:            ${curl_gsasl_msg}
48478  TLS-SRP:          ${curl_tls_srp_msg}
48479  resolver:         ${curl_res_msg}
48480  IPv6:             ${curl_ipv6_msg}
48481  Unix sockets:     ${curl_unix_sockets_msg}
48482  IDN:              ${curl_idn_msg}
48483  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48484  Built-in manual:  ${curl_manual_msg}
48485  --libcurl option: ${curl_libcurl_msg}
48486  Verbose errors:   ${curl_verbose_msg}
48487  Code coverage:    ${curl_coverage_msg}
48488  SSPI:             ${curl_sspi_msg}
48489  ca cert bundle:   ${ca}${ca_warning}
48490  ca cert path:     ${capath}${capath_warning}
48491  ca fallback:      ${with_ca_fallback}
48492  LDAP:             ${curl_ldap_msg}
48493  LDAPS:            ${curl_ldaps_msg}
48494  RTSP:             ${curl_rtsp_msg}
48495  RTMP:             ${curl_rtmp_msg}
48496  PSL:              ${curl_psl_msg}
48497  Alt-svc:          ${curl_altsvc_msg}
48498  Headers API:      ${curl_headers_msg}
48499  HSTS:             ${curl_hsts_msg}
48500  HTTP1:            ${curl_h1_msg}
48501  HTTP2:            ${curl_h2_msg}
48502  HTTP3:            ${curl_h3_msg}
48503  ECH:              ${curl_ech_msg}
48504  WebSockets:       ${curl_ws_msg}
48505  Protocols:        ${SUPPORT_PROTOCOLS}
48506  Features:         ${SUPPORT_FEATURES}
48507" >&6;}
48508if test -n "$experimental"; then
48509 cat >&2 << _EOF
48510  WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48511_EOF
48512fi
48513
48514