Git init
[external/curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 #
16 # Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
17 # This configure script may be copied, distributed and modified under the
18 # terms of the curl license; see COPYING for more details
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
22
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26   emulate sh
27   NULLCMD=:
28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29   # is contrary to our usage.  Disable this feature.
30   alias -g '${1+"$@"}'='"$@"'
31   setopt NO_GLOB_SUBST
32 else
33   case `(set -o) 2>/dev/null` in #(
34   *posix*) :
35     set -o posix ;; #(
36   *) :
37      ;;
38 esac
39 fi
40
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='print -r --'
54   as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56   as_echo='printf %s\n'
57   as_echo_n='printf %s'
58 else
59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61     as_echo_n='/usr/ucb/echo -n'
62   else
63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64     as_echo_n_body='eval
65       arg=$1;
66       case $arg in #(
67       *"$as_nl"*)
68         expr "X$arg" : "X\\(.*\\)$as_nl";
69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70       esac;
71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72     '
73     export as_echo_n_body
74     as_echo_n='sh -c $as_echo_n_body as_echo'
75   fi
76   export as_echo_body
77   as_echo='sh -c $as_echo_body as_echo'
78 fi
79
80
81   if test -z "$curl_cv_PATH_SEPARATOR"; then
82     if test -z "$PATH"; then
83       as_fn_error $? "PATH not set. Cannot continue without PATH being set."
84     fi
85         tst_dirs_col=0
86     tst_save_IFS=$IFS; IFS=':'
87     for tst_dir in $PATH; do
88       IFS=$tst_save_IFS
89       test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
90     done
91     IFS=$tst_save_IFS
92         tst_dirs_sem=0
93     tst_save_IFS=$IFS; IFS=';'
94     for tst_dir in $PATH; do
95       IFS=$tst_save_IFS
96       test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
97     done
98     IFS=$tst_save_IFS
99     if test $tst_dirs_sem -eq $tst_dirs_col; then
100                   if test -z "$PATH_SEPARATOR"; then
101                 as_fn_error $? "PATH_SEPARATOR not set. Cannot continue without it."
102       fi
103     else
104             if test $tst_dirs_sem -gt $tst_dirs_col; then
105         tst_auto_separator=';'
106       else
107         tst_auto_separator=':'
108       fi
109       if test -z "$PATH_SEPARATOR"; then
110                 PATH_SEPARATOR="$tst_auto_separator"
111       fi
112     fi
113     curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
114   fi
115
116
117
118
119
120 # IFS
121 # We need space, tab and new line, in precisely that order.  Quoting is
122 # there to prevent editors from complaining about space-tab.
123 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
124 # splitting by setting IFS to empty value.)
125 IFS=" ""        $as_nl"
126
127 # Find who we are.  Look in the path if we contain no directory separator.
128 case $0 in #((
129   *[\\/]* ) as_myself=$0 ;;
130   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in $PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
136   done
137 IFS=$as_save_IFS
138
139      ;;
140 esac
141 # We did not find ourselves, most probably we were run as `sh COMMAND'
142 # in which case we are not to be found in the path.
143 if test "x$as_myself" = x; then
144   as_myself=$0
145 fi
146 if test ! -f "$as_myself"; then
147   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
148   exit 1
149 fi
150
151 # Unset variables that we do not need and which cause bugs (e.g. in
152 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
153 # suppresses any "Segmentation fault" message there.  '((' could
154 # trigger a bug in pdksh 5.2.14.
155 for as_var in BASH_ENV ENV MAIL MAILPATH
156 do eval test x\${$as_var+set} = xset \
157   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
158 done
159 PS1='$ '
160 PS2='> '
161 PS4='+ '
162
163 # NLS nuisances.
164 LC_ALL=C
165 export LC_ALL
166 LANGUAGE=C
167 export LANGUAGE
168
169 # CDPATH.
170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
171
172 if test "x$CONFIG_SHELL" = x; then
173   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
174   emulate sh
175   NULLCMD=:
176   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
177   # is contrary to our usage.  Disable this feature.
178   alias -g '\${1+\"\$@\"}'='\"\$@\"'
179   setopt NO_GLOB_SUBST
180 else
181   case \`(set -o) 2>/dev/null\` in #(
182   *posix*) :
183     set -o posix ;; #(
184   *) :
185      ;;
186 esac
187 fi
188 "
189   as_required="as_fn_return () { (exit \$1); }
190 as_fn_success () { as_fn_return 0; }
191 as_fn_failure () { as_fn_return 1; }
192 as_fn_ret_success () { return 0; }
193 as_fn_ret_failure () { return 1; }
194
195 exitcode=0
196 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
197 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
198 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
199 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
200 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
201
202 else
203   exitcode=1; echo positional parameters were not saved.
204 fi
205 test x\$exitcode = x0 || exit 1"
206   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
207   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
208   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
209   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211   if (eval "$as_required") 2>/dev/null; then :
212   as_have_required=yes
213 else
214   as_have_required=no
215 fi
216   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   as_found=:
226   case $as_dir in #(
227          /*)
228            for as_base in sh bash ksh sh5; do
229              # Try only shells that exist, to save several forks.
230              as_shell=$as_dir/$as_base
231              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233   CONFIG_SHELL=$as_shell as_have_required=yes
234                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235   break 2
236 fi
237 fi
238            done;;
239        esac
240   as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244   CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249       if test "x$CONFIG_SHELL" != x; then :
250   # We cannot yet assume a decent shell, so we have to provide a
251         # neutralization value for shells without unset; and this also
252         # works around shells that cannot unset nonexistent variables.
253         BASH_ENV=/dev/null
254         ENV=/dev/null
255         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256         export CONFIG_SHELL
257         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
268 $0: mailing list: http://curl.haxx.se/mail/ about your
269 $0: system, including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300   return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308   set +e
309   as_fn_set_status $1
310   exit $1
311 } # as_fn_exit
312
313 # as_fn_mkdir_p
314 # -------------
315 # Create "$as_dir" as a directory, including parents if necessary.
316 as_fn_mkdir_p ()
317 {
318
319   case $as_dir in #(
320   -*) as_dir=./$as_dir;;
321   esac
322   test -d "$as_dir" || eval $as_mkdir_p || {
323     as_dirs=
324     while :; do
325       case $as_dir in #(
326       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327       *) as_qdir=$as_dir;;
328       esac
329       as_dirs="'$as_qdir' $as_dirs"
330       as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332          X"$as_dir" : 'X\(//\)[^/]' \| \
333          X"$as_dir" : 'X\(//\)$' \| \
334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337             s//\1/
338             q
339           }
340           /^X\(\/\/\)[^/].*/{
341             s//\1/
342             q
343           }
344           /^X\(\/\/\)$/{
345             s//\1/
346             q
347           }
348           /^X\(\/\).*/{
349             s//\1/
350             q
351           }
352           s/.*/./; q'`
353       test -d "$as_dir" && break
354     done
355     test -z "$as_dirs" || eval "mkdir $as_dirs"
356   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359 } # as_fn_mkdir_p
360 # as_fn_append VAR VALUE
361 # ----------------------
362 # Append the text in VALUE to the end of the definition contained in VAR. Take
363 # advantage of any shell optimizations that allow amortized linear growth over
364 # repeated appends, instead of the typical quadratic growth present in naive
365 # implementations.
366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
367   eval 'as_fn_append ()
368   {
369     eval $1+=\$2
370   }'
371 else
372   as_fn_append ()
373   {
374     eval $1=\$$1\$2
375   }
376 fi # as_fn_append
377
378 # as_fn_arith ARG...
379 # ------------------
380 # Perform arithmetic evaluation on the ARGs, and store the result in the
381 # global $as_val. Take advantage of shells that can avoid forks. The arguments
382 # must be portable across $(()) and expr.
383 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
384   eval 'as_fn_arith ()
385   {
386     as_val=$(( $* ))
387   }'
388 else
389   as_fn_arith ()
390   {
391     as_val=`expr "$@" || test $? -eq 1`
392   }
393 fi # as_fn_arith
394
395
396 # as_fn_error STATUS ERROR [LINENO LOG_FD]
397 # ----------------------------------------
398 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
399 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
400 # script with STATUS, using 1 if that was 0.
401 as_fn_error ()
402 {
403   as_status=$1; test $as_status -eq 0 && as_status=1
404   if test "$4"; then
405     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
406     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
407   fi
408   $as_echo "$as_me: error: $2" >&2
409   as_fn_exit $as_status
410 } # as_fn_error
411
412 if expr a : '\(a\)' >/dev/null 2>&1 &&
413    test "X`expr 00001 : '.*\(...\)'`" = X001; then
414   as_expr=expr
415 else
416   as_expr=false
417 fi
418
419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
420   as_basename=basename
421 else
422   as_basename=false
423 fi
424
425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
426   as_dirname=dirname
427 else
428   as_dirname=false
429 fi
430
431 as_me=`$as_basename -- "$0" ||
432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
433          X"$0" : 'X\(//\)$' \| \
434          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
435 $as_echo X/"$0" |
436     sed '/^.*\/\([^/][^/]*\)\/*$/{
437             s//\1/
438             q
439           }
440           /^X\/\(\/\/\)$/{
441             s//\1/
442             q
443           }
444           /^X\/\(\/\).*/{
445             s//\1/
446             q
447           }
448           s/.*/./; q'`
449
450 # Avoid depending upon Character Ranges.
451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
454 as_cr_digits='0123456789'
455 as_cr_alnum=$as_cr_Letters$as_cr_digits
456
457
458   as_lineno_1=$LINENO as_lineno_1a=$LINENO
459   as_lineno_2=$LINENO as_lineno_2a=$LINENO
460   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
461   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
462   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
463   sed -n '
464     p
465     /[$]LINENO/=
466   ' <$as_myself |
467     sed '
468       s/[$]LINENO.*/&-/
469       t lineno
470       b
471       :lineno
472       N
473       :loop
474       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475       t loop
476       s/-\n.*//
477     ' >$as_me.lineno &&
478   chmod +x "$as_me.lineno" ||
479     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489 ECHO_C= ECHO_N= ECHO_T=
490 case `echo -n x` in #(((((
491 -n*)
492   case `echo 'xy\c'` in
493   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
494   xy)  ECHO_C='\c';;
495   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
496        ECHO_T=' ';;
497   esac;;
498 *)
499   ECHO_N='-n';;
500 esac
501
502 rm -f conf$$ conf$$.exe conf$$.file
503 if test -d conf$$.dir; then
504   rm -f conf$$.dir/conf$$.file
505 else
506   rm -f conf$$.dir
507   mkdir conf$$.dir 2>/dev/null
508 fi
509 if (echo >conf$$.file) 2>/dev/null; then
510   if ln -s conf$$.file conf$$ 2>/dev/null; then
511     as_ln_s='ln -s'
512     # ... but there are two gotchas:
513     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
514     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
515     # In both cases, we have to default to `cp -p'.
516     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
517       as_ln_s='cp -p'
518   elif ln conf$$.file conf$$ 2>/dev/null; then
519     as_ln_s=ln
520   else
521     as_ln_s='cp -p'
522   fi
523 else
524   as_ln_s='cp -p'
525 fi
526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
527 rmdir conf$$.dir 2>/dev/null
528
529 if mkdir -p . 2>/dev/null; then
530   as_mkdir_p='mkdir -p "$as_dir"'
531 else
532   test -d ./-p && rmdir ./-p
533   as_mkdir_p=false
534 fi
535
536 if test -x / >/dev/null 2>&1; then
537   as_test_x='test -x'
538 else
539   if ls -dL / >/dev/null 2>&1; then
540     as_ls_L_option=L
541   else
542     as_ls_L_option=
543   fi
544   as_test_x='
545     eval sh -c '\''
546       if test -d "$1"; then
547         test -d "$1/.";
548       else
549         case $1 in #(
550         -*)set "./$1";;
551         esac;
552         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
553         ???[sx]*):;;*)false;;esac;fi
554     '\'' sh
555   '
556 fi
557 as_executable_p=$as_test_x
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
562 # Sed expression to map a string onto a valid variable name.
563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
565
566
567 # Check that we are running under the correct shell.
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 case X$lt_ECHO in
571 X*--fallback-echo)
572   # Remove one level of quotation (which was required for Make).
573   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
574   ;;
575 esac
576
577 ECHO=${lt_ECHO-echo}
578 if test "X$1" = X--no-reexec; then
579   # Discard the --no-reexec flag, and continue.
580   shift
581 elif test "X$1" = X--fallback-echo; then
582   # Avoid inline document here, it may be left over
583   :
584 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
585   # Yippee, $ECHO works!
586   :
587 else
588   # Restart under the correct shell.
589   exec $SHELL "$0" --no-reexec ${1+"$@"}
590 fi
591
592 if test "X$1" = X--fallback-echo; then
593   # used as fallback echo
594   shift
595   cat <<_LT_EOF
596 $*
597 _LT_EOF
598   exit 0
599 fi
600
601 # The HP-UX ksh and POSIX shell print the target directory to stdout
602 # if CDPATH is set.
603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
604
605 if test -z "$lt_ECHO"; then
606   if test "X${echo_test_string+set}" != Xset; then
607     # find a string as large as possible, as long as the shell can cope with it
608     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
609       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
610       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
611          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
612       then
613         break
614       fi
615     done
616   fi
617
618   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
619      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
620      test "X$echo_testing_string" = "X$echo_test_string"; then
621     :
622   else
623     # The Solaris, AIX, and Digital Unix default echo programs unquote
624     # backslashes.  This makes it impossible to quote backslashes using
625     #   echo "$something" | sed 's/\\/\\\\/g'
626     #
627     # So, first we look for a working echo in the user's PATH.
628
629     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
630     for dir in $PATH /usr/ucb; do
631       IFS="$lt_save_ifs"
632       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
633          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
634          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
635          test "X$echo_testing_string" = "X$echo_test_string"; then
636         ECHO="$dir/echo"
637         break
638       fi
639     done
640     IFS="$lt_save_ifs"
641
642     if test "X$ECHO" = Xecho; then
643       # We didn't find a better echo, so look for alternatives.
644       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
645          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
646          test "X$echo_testing_string" = "X$echo_test_string"; then
647         # This shell has a builtin print -r that does the trick.
648         ECHO='print -r'
649       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
650            test "X$CONFIG_SHELL" != X/bin/ksh; then
651         # If we have ksh, try running configure again with it.
652         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
653         export ORIGINAL_CONFIG_SHELL
654         CONFIG_SHELL=/bin/ksh
655         export CONFIG_SHELL
656         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
657       else
658         # Try using printf.
659         ECHO='printf %s\n'
660         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
661            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
662            test "X$echo_testing_string" = "X$echo_test_string"; then
663           # Cool, printf works
664           :
665         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666              test "X$echo_testing_string" = 'X\t' &&
667              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668              test "X$echo_testing_string" = "X$echo_test_string"; then
669           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
670           export CONFIG_SHELL
671           SHELL="$CONFIG_SHELL"
672           export SHELL
673           ECHO="$CONFIG_SHELL $0 --fallback-echo"
674         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675              test "X$echo_testing_string" = 'X\t' &&
676              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677              test "X$echo_testing_string" = "X$echo_test_string"; then
678           ECHO="$CONFIG_SHELL $0 --fallback-echo"
679         else
680           # maybe with a smaller string...
681           prev=:
682
683           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
684             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
685             then
686               break
687             fi
688             prev="$cmd"
689           done
690
691           if test "$prev" != 'sed 50q "$0"'; then
692             echo_test_string=`eval $prev`
693             export echo_test_string
694             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
695           else
696             # Oops.  We lost completely, so just stick with echo.
697             ECHO=echo
698           fi
699         fi
700       fi
701     fi
702   fi
703 fi
704
705 # Copy echo and quote the copy suitably for passing to libtool from
706 # the Makefile, instead of quoting the original, which is used later.
707 lt_ECHO=$ECHO
708 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
709    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 fi
711
712
713
714
715 test -n "$DJDIR" || exec 7<&0 </dev/null
716 exec 6>&1
717
718 # Name of the host.
719 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
720 # so uname gets run too.
721 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
722
723 #
724 # Initializations.
725 #
726 ac_default_prefix=/usr/local
727 ac_clean_files=
728 ac_config_libobj_dir=.
729 LIBOBJS=
730 cross_compiling=no
731 subdirs=
732 MFLAGS=
733 MAKEFLAGS=
734
735 # Identity of this package.
736 PACKAGE_NAME='curl'
737 PACKAGE_TARNAME='curl'
738 PACKAGE_VERSION='-'
739 PACKAGE_STRING='curl -'
740 PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
741 PACKAGE_URL=''
742
743 ac_unique_file="lib/urldata.h"
744 # Factoring default headers for most tests.
745 ac_includes_default="\
746 #include <stdio.h>
747 #ifdef HAVE_SYS_TYPES_H
748 # include <sys/types.h>
749 #endif
750 #ifdef HAVE_SYS_STAT_H
751 # include <sys/stat.h>
752 #endif
753 #ifdef STDC_HEADERS
754 # include <stdlib.h>
755 # include <stddef.h>
756 #else
757 # ifdef HAVE_STDLIB_H
758 #  include <stdlib.h>
759 # endif
760 #endif
761 #ifdef HAVE_STRING_H
762 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
763 #  include <memory.h>
764 # endif
765 # include <string.h>
766 #endif
767 #ifdef HAVE_STRINGS_H
768 # include <strings.h>
769 #endif
770 #ifdef HAVE_INTTYPES_H
771 # include <inttypes.h>
772 #endif
773 #ifdef HAVE_STDINT_H
774 # include <stdint.h>
775 #endif
776 #ifdef HAVE_UNISTD_H
777 # include <unistd.h>
778 #endif"
779
780 enable_option_checking=no
781 ac_subst_vars='LTLIBOBJS
782 LIBOBJS
783 SUPPORT_PROTOCOLS
784 SUPPORT_FEATURES
785 ENABLE_SHARED
786 CROSSCOMPILING_FALSE
787 CROSSCOMPILING_TRUE
788 CURL_NETWORK_LIBS
789 TEST_SERVER_LIBS
790 CURL_LIBS
791 LIBCURL_LIBS
792 SONAME_BUMP_FALSE
793 SONAME_BUMP_TRUE
794 USE_WINDOWS_SSPI
795 BUILD_LIBHOSTNAME_FALSE
796 BUILD_LIBHOSTNAME_TRUE
797 USE_EMBEDDED_ARES_FALSE
798 USE_EMBEDDED_ARES_TRUE
799 USE_ARES
800 subdirs
801 USE_MANUAL_FALSE
802 USE_MANUAL_TRUE
803 MANOPT
804 NROFF
805 PERL
806 IPV6_ENABLED
807 IDN_ENABLED
808 USE_LIBRTMP
809 USE_LIBSSH2
810 CURL_CA_BUNDLE
811 SSL_ENABLED
812 USE_NSS
813 HAVE_PK11_CREATEGENERICOBJECT
814 USE_POLARSSL
815 USE_GNUTLS
816 RANDOM_FILE
817 HAVE_LIBZ_FALSE
818 HAVE_LIBZ_TRUE
819 HAVE_LIBZ
820 USE_SSLEAY
821 PKGCONFIG
822 KRB4_ENABLED
823 USE_OPENLDAP
824 CURL_DISABLE_GOPHER
825 CURL_DISABLE_SMTP
826 CURL_DISABLE_IMAP
827 CURL_DISABLE_POP3
828 CURL_DISABLE_TFTP
829 CURL_DISABLE_TELNET
830 CURL_DISABLE_DICT
831 CURL_DISABLE_PROXY
832 HAVE_LDAP_SSL
833 CURL_DISABLE_LDAPS
834 CURL_DISABLE_LDAP
835 CURL_DISABLE_FILE
836 CURL_DISABLE_FTP
837 CURL_DISABLE_RTSP
838 CURL_DISABLE_HTTP
839 CURLDEBUG_FALSE
840 CURLDEBUG_TRUE
841 NO_UNDEFINED_FALSE
842 NO_UNDEFINED_TRUE
843 REQUIRE_LIB_DEPS
844 STATICLIB_FALSE
845 STATICLIB_TRUE
846 MIMPURE_FALSE
847 MIMPURE_TRUE
848 OTOOL64
849 OTOOL
850 LIPO
851 NMEDIT
852 DSYMUTIL
853 lt_ECHO
854 RANLIB
855 LN_S
856 NM
857 ac_ct_DUMPBIN
858 DUMPBIN
859 LD
860 FGREP
861 LIBTOOL
862 OBJDUMP
863 DLLTOOL
864 AS
865 CPP
866 am__fastdepCC_FALSE
867 am__fastdepCC_TRUE
868 CCDEPMODE
869 AMDEPBACKSLASH
870 AMDEP_FALSE
871 AMDEP_TRUE
872 am__quote
873 am__include
874 DEPDIR
875 OBJEXT
876 EXEEXT
877 ac_ct_CC
878 CPPFLAGS
879 LDFLAGS
880 CFLAGS
881 CC
882 host_os
883 host_vendor
884 host_cpu
885 host
886 build_os
887 build_vendor
888 build_cpu
889 build
890 PKGADD_VENDOR
891 PKGADD_NAME
892 PKGADD_PKG
893 VERSIONNUM
894 am__untar
895 am__tar
896 AMTAR
897 am__leading_dot
898 SET_MAKE
899 AWK
900 mkdir_p
901 INSTALL_STRIP_PROGRAM
902 STRIP
903 install_sh
904 MAKEINFO
905 AUTOHEADER
906 AUTOMAKE
907 AUTOCONF
908 ACLOCAL
909 VERSION
910 PACKAGE
911 CYGPATH_W
912 INSTALL_DATA
913 INSTALL_SCRIPT
914 INSTALL_PROGRAM
915 libext
916 AR
917 EGREP
918 GREP
919 SED
920 CURL_CFLAG_EXTRAS
921 CONFIGURE_OPTIONS
922 MAINT
923 MAINTAINER_MODE_FALSE
924 MAINTAINER_MODE_TRUE
925 target_alias
926 host_alias
927 build_alias
928 LIBS
929 ECHO_T
930 ECHO_N
931 ECHO_C
932 DEFS
933 mandir
934 localedir
935 libdir
936 psdir
937 pdfdir
938 dvidir
939 htmldir
940 infodir
941 docdir
942 oldincludedir
943 includedir
944 localstatedir
945 sharedstatedir
946 sysconfdir
947 datadir
948 datarootdir
949 libexecdir
950 sbindir
951 bindir
952 program_transform_name
953 prefix
954 exec_prefix
955 PACKAGE_URL
956 PACKAGE_BUGREPORT
957 PACKAGE_STRING
958 PACKAGE_VERSION
959 PACKAGE_TARNAME
960 PACKAGE_NAME
961 SHELL
962 PATH
963 PATH_SEPARATOR'
964 ac_subst_files=''
965 ac_user_opts='
966 enable_option_checking
967 enable_maintainer_mode
968 enable_debug
969 enable_optimize
970 enable_warnings
971 enable_werror
972 enable_curldebug
973 enable_ares
974 enable_dependency_tracking
975 enable_largefile
976 enable_shared
977 enable_static
978 with_pic
979 enable_fast_install
980 with_gnu_ld
981 enable_libtool_lock
982 enable_http
983 enable_ftp
984 enable_file
985 enable_ldap
986 enable_ldaps
987 enable_rtsp
988 enable_proxy
989 enable_dict
990 enable_telnet
991 enable_tftp
992 enable_pop3
993 enable_imap
994 enable_smtp
995 enable_gopher
996 enable_manual
997 enable_libgcc
998 with_ldap_lib
999 with_lber_lib
1000 enable_ipv6
1001 with_krb4_includes
1002 with_krb4_libs
1003 with_krb4
1004 with_spnego
1005 with_gssapi_includes
1006 with_gssapi_libs
1007 with_gssapi
1008 with_ssl
1009 with_zlib
1010 with_egd_socket
1011 with_random
1012 with_gnutls
1013 with_polarssl
1014 with_nss
1015 with_ca_bundle
1016 with_ca_path
1017 with_libssh2
1018 with_librtmp
1019 with_libidn
1020 enable_nonblocking
1021 enable_threaded_resolver
1022 enable_verbose
1023 enable_sspi
1024 enable_crypto_auth
1025 enable_cookies
1026 enable_hidden_symbols
1027 enable_soname_bump
1028 '
1029       ac_precious_vars='build_alias
1030 host_alias
1031 target_alias
1032 CC
1033 CFLAGS
1034 LDFLAGS
1035 LIBS
1036 CPPFLAGS
1037 CPP'
1038 ac_subdirs_all='ares'
1039
1040 # Initialize some variables set by options.
1041 ac_init_help=
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1048 exec_prefix=NONE
1049 no_create=
1050 no_recursion=
1051 prefix=NONE
1052 program_prefix=NONE
1053 program_suffix=NONE
1054 program_transform_name=s,x,x,
1055 silent=
1056 site=
1057 srcdir=
1058 verbose=
1059 x_includes=NONE
1060 x_libraries=NONE
1061
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092   # If the previous option needs an argument, assign it.
1093   if test -n "$ac_prev"; then
1094     eval $ac_prev=\$ac_option
1095     ac_prev=
1096     continue
1097   fi
1098
1099   case $ac_option in
1100   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101   *=)   ac_optarg= ;;
1102   *)    ac_optarg=yes ;;
1103   esac
1104
1105   # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107   case $ac_dashdash$ac_option in
1108   --)
1109     ac_dashdash=yes ;;
1110
1111   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112     ac_prev=bindir ;;
1113   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114     bindir=$ac_optarg ;;
1115
1116   -build | --build | --buil | --bui | --bu)
1117     ac_prev=build_alias ;;
1118   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119     build_alias=$ac_optarg ;;
1120
1121   -cache-file | --cache-file | --cache-fil | --cache-fi \
1122   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123     ac_prev=cache_file ;;
1124   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126     cache_file=$ac_optarg ;;
1127
1128   --config-cache | -C)
1129     cache_file=config.cache ;;
1130
1131   -datadir | --datadir | --datadi | --datad)
1132     ac_prev=datadir ;;
1133   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134     datadir=$ac_optarg ;;
1135
1136   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137   | --dataroo | --dataro | --datar)
1138     ac_prev=datarootdir ;;
1139   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141     datarootdir=$ac_optarg ;;
1142
1143   -disable-* | --disable-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid feature name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=no ;;
1158
1159   -docdir | --docdir | --docdi | --doc | --do)
1160     ac_prev=docdir ;;
1161   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162     docdir=$ac_optarg ;;
1163
1164   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165     ac_prev=dvidir ;;
1166   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167     dvidir=$ac_optarg ;;
1168
1169   -enable-* | --enable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329     ac_prev=sbindir ;;
1330   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331   | --sbi=* | --sb=*)
1332     sbindir=$ac_optarg ;;
1333
1334   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336   | --sharedst | --shareds | --shared | --share | --shar \
1337   | --sha | --sh)
1338     ac_prev=sharedstatedir ;;
1339   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342   | --sha=* | --sh=*)
1343     sharedstatedir=$ac_optarg ;;
1344
1345   -site | --site | --sit)
1346     ac_prev=site ;;
1347   -site=* | --site=* | --sit=*)
1348     site=$ac_optarg ;;
1349
1350   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351     ac_prev=srcdir ;;
1352   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353     srcdir=$ac_optarg ;;
1354
1355   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356   | --syscon | --sysco | --sysc | --sys | --sy)
1357     ac_prev=sysconfdir ;;
1358   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360     sysconfdir=$ac_optarg ;;
1361
1362   -target | --target | --targe | --targ | --tar | --ta | --t)
1363     ac_prev=target_alias ;;
1364   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365     target_alias=$ac_optarg ;;
1366
1367   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368     verbose=yes ;;
1369
1370   -version | --version | --versio | --versi | --vers | -V)
1371     ac_init_version=: ;;
1372
1373   -with-* | --with-*)
1374     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377       as_fn_error $? "invalid package name: $ac_useropt"
1378     ac_useropt_orig=$ac_useropt
1379     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380     case $ac_user_opts in
1381       *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385          ac_unrecognized_sep=', ';;
1386     esac
1387     eval with_$ac_useropt=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393       as_fn_error $? "invalid package name: $ac_useropt"
1394     ac_useropt_orig=$ac_useropt
1395     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396     case $ac_user_opts in
1397       *"
1398 "with_$ac_useropt"
1399 "*) ;;
1400       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401          ac_unrecognized_sep=', ';;
1402     esac
1403     eval with_$ac_useropt=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1425     ;;
1426
1427   *=*)
1428     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429     # Reject names that are not valid shell variable names.
1430     case $ac_envvar in #(
1431       '' | [0-9]* | *[!_$as_cr_alnum]* )
1432       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433     esac
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   as_fn_error $? "missing argument to $ac_option"
1451 fi
1452
1453 if test -n "$ac_unrecognized_opts"; then
1454   case $enable_option_checking in
1455     no) ;;
1456     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458   esac
1459 fi
1460
1461 # Check all directory arguments for consistency.
1462 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463                 datadir sysconfdir sharedstatedir localstatedir includedir \
1464                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465                 libdir localedir mandir
1466 do
1467   eval ac_val=\$$ac_var
1468   # Remove trailing slashes.
1469   case $ac_val in
1470     */ )
1471       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472       eval $ac_var=\$ac_val;;
1473   esac
1474   # Be sure to have absolute directory names.
1475   case $ac_val in
1476     [\\/$]* | ?:[\\/]* )  continue;;
1477     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478   esac
1479   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 done
1481
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1485 build=$build_alias
1486 host=$host_alias
1487 target=$target_alias
1488
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491   if test "x$build_alias" = x; then
1492     cross_compiling=maybe
1493     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1494     If a cross compiler is detected then cross compile mode will be used" >&2
1495   elif test "x$build_alias" != "x$host_alias"; then
1496     cross_compiling=yes
1497   fi
1498 fi
1499
1500 ac_tool_prefix=
1501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502
1503 test "$silent" = yes && exec 6>/dev/null
1504
1505
1506 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507 ac_ls_di=`ls -di .` &&
1508 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509   as_fn_error $? "working directory cannot be determined"
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511   as_fn_error $? "pwd does not report name of working directory"
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516   ac_srcdir_defaulted=yes
1517   # Try the directory containing this script, then the parent directory.
1518   ac_confdir=`$as_dirname -- "$as_myself" ||
1519 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520          X"$as_myself" : 'X\(//\)[^/]' \| \
1521          X"$as_myself" : 'X\(//\)$' \| \
1522          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523 $as_echo X"$as_myself" |
1524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)[^/].*/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\/\)$/{
1533             s//\1/
1534             q
1535           }
1536           /^X\(\/\).*/{
1537             s//\1/
1538             q
1539           }
1540           s/.*/./; q'`
1541   srcdir=$ac_confdir
1542   if test ! -r "$srcdir/$ac_unique_file"; then
1543     srcdir=..
1544   fi
1545 else
1546   ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures curl - to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking ...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR            user executables [EPREFIX/bin]
1615   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR        program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR            object code libraries [EPREFIX/lib]
1621   --includedir=DIR        C header files [PREFIX/include]
1622   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR           info documentation [DATAROOTDIR/info]
1626   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR            man documentation [DATAROOTDIR/man]
1628   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1629   --htmldir=DIR           html documentation [DOCDIR]
1630   --dvidir=DIR            dvi documentation [DOCDIR]
1631   --pdfdir=DIR            pdf documentation [DOCDIR]
1632   --psdir=DIR             ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 Program names:
1638   --program-prefix=PREFIX            prepend PREFIX to installed program names
1639   --program-suffix=SUFFIX            append SUFFIX to installed program names
1640   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1641
1642 System types:
1643   --build=BUILD     configure for building on BUILD [guessed]
1644   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649   case $ac_init_help in
1650      short | recursive ) echo "Configuration of curl -:";;
1651    esac
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-option-checking  ignore unrecognized --enable/--with options
1656   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1657   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1658   --enable-maintainer-mode  enable make rules and dependencies not useful
1659                           (and sometimes confusing) to the casual installer
1660   --enable-debug          Enable debug build options
1661   --disable-debug         Disable debug build options
1662   --enable-optimize       Enable compiler optimizations
1663   --disable-optimize      Disable compiler optimizations
1664   --enable-warnings       Enable strict compiler warnings
1665   --disable-warnings      Disable strict compiler warnings
1666   --enable-werror         Enable compiler warnings as errors
1667   --disable-werror        Disable compiler warnings as errors
1668   --enable-curldebug      Enable curl debug memory tracking
1669   --disable-curldebug     Disable curl debug memory tracking
1670   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1671   --disable-ares          Disable c-ares for DNS lookups
1672   --disable-dependency-tracking  speeds up one-time build
1673   --enable-dependency-tracking   do not reject slow dependency extractors
1674   --disable-largefile     omit support for large files
1675   --enable-shared[=PKGS]  build shared libraries [default=yes]
1676   --enable-static[=PKGS]  build static libraries [default=yes]
1677   --enable-fast-install[=PKGS]
1678                           optimize for fast installation [default=yes]
1679   --disable-libtool-lock  avoid locking (might break parallel builds)
1680   --enable-http           Enable HTTP support
1681   --disable-http          Disable HTTP support
1682   --enable-ftp            Enable FTP support
1683   --disable-ftp           Disable FTP support
1684   --enable-file           Enable FILE support
1685   --disable-file          Disable FILE support
1686   --enable-ldap           Enable LDAP support
1687   --disable-ldap          Disable LDAP support
1688   --enable-ldaps          Enable LDAPS support
1689   --disable-ldaps         Disable LDAPS support
1690   --enable-rtsp           Enable RTSP support
1691   --disable-rtsp          Disable RTSP support
1692   --enable-proxy          Enable proxy support
1693   --disable-proxy         Disable proxy support
1694   --enable-dict           Enable DICT support
1695   --disable-dict          Disable DICT support
1696   --enable-telnet         Enable TELNET support
1697   --disable-telnet        Disable TELNET support
1698   --enable-tftp           Enable TFTP support
1699   --disable-tftp          Disable TFTP support
1700   --enable-pop3           Enable POP3 support
1701   --disable-pop3          Disable POP3 support
1702   --enable-imap           Enable IMAP support
1703   --disable-imap          Disable IMAP support
1704   --enable-smtp           Enable SMTP support
1705   --disable-smtp          Disable SMTP support
1706   --enable-gopher         Enable Gopher support
1707   --disable-gopher        Disable Gopher support
1708   --enable-manual         Enable built-in manual
1709   --disable-manual        Disable built-in manual
1710   --enable-libgcc         use libgcc when linking
1711   --enable-ipv6           Enable ipv6 (with ipv4) support
1712   --disable-ipv6          Disable ipv6 support
1713   --enable-nonblocking    Enable non-blocking communications
1714   --disable-nonblocking   Disable non-blocking communications
1715   --enable-threaded-resolver
1716                           Enable threaded resolver
1717   --disable-threaded-resolver
1718                           Disable threaded resolver
1719   --enable-verbose        Enable verbose strings
1720   --disable-verbose       Disable verbose strings
1721   --enable-sspi           Enable SSPI
1722   --disable-sspi          Disable SSPI
1723   --enable-crypto-auth    Enable cryptographic authentication
1724   --disable-crypto-auth   Disable cryptographic authentication
1725   --enable-cookies        Enable cookies support
1726   --disable-cookies       Disable cookies support
1727   --enable-hidden-symbols Hide internal symbols in library
1728   --disable-hidden-symbols
1729                           Leave all symbols with default visibility in library
1730   --enable-soname-bump    Enable enforced SONAME bump
1731   --disable-soname-bump   Disable enforced SONAME bump
1732
1733 Optional Packages:
1734   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1735   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1736   --with-pic              try to use only PIC/non-PIC objects [default=use
1737                           both]
1738   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1739   --with-ldap-lib=libname Specify name of ldap lib file
1740   --with-lber-lib=libname Specify name of lber lib file
1741   --with-krb4-includes=DIR
1742                           Specify location of kerberos4 headers
1743   --with-krb4-libs=DIR    Specify location of kerberos4 libs
1744   --with-krb4=DIR         where to look for Kerberos4
1745   --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
1746   --with-gssapi-includes=DIR
1747                           Specify location of GSSAPI header
1748   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1749   --with-gssapi=DIR       Where to look for GSSAPI
1750   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1751                           installation (default: /usr/local/ssl); when
1752                           possible, set the PKG_CONFIG_PATH environment
1753                           variable instead of using this option
1754   --without-ssl           disable OpenSSL
1755   --with-zlib=PATH        search for zlib in PATH
1756   --without-zlib          disable use of zlib
1757   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1758   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1759   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1760                           installation root (default: /usr/local/)
1761   --without-gnutls        disable GnuTLS detection
1762   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1763                           installation root (default: /usr/local/)
1764   --without-polarssl      disable PolarSSL detection
1765   --with-nss=PATH         where to look for NSS, PATH points to the
1766                           installation root (default: /usr/local/)
1767   --without-nss           disable NSS detection
1768   --with-ca-bundle=FILE   File name to use as CA bundle
1769   --without-ca-bundle     Don't use a default CA bundle
1770   --with-ca-path=DIRECTORY
1771                           Directory to use as CA path
1772   --without-ca-path       Don't use a default CA path
1773   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1774                           LIBSSH2 installation (default: /usr/local/lib); when
1775                           possible, set the PKG_CONFIG_PATH environment
1776                           variable instead of using this option
1777   --without-libssh2       disable LIBSSH2
1778   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1779                           LIBRTMP installation (default: /usr/local/lib); when
1780                           possible, set the PKG_CONFIG_PATH environment
1781                           variable instead of using this option
1782   --without-librtmp       disable LIBRTMP
1783   --with-libidn=PATH      Enable libidn usage
1784   --without-libidn        Disable libidn usage
1785
1786 Some influential environment variables:
1787   CC          C compiler command
1788   CFLAGS      C compiler flags
1789   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1790               nonstandard directory <lib dir>
1791   LIBS        libraries to pass to the linker, e.g. -l<library>
1792   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1793               you have headers in a nonstandard directory <include dir>
1794   CPP         C preprocessor
1795
1796 Use these variables to override the choices made by `configure' or to help
1797 it to find libraries and programs with nonstandard names/locations.
1798
1799 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1800 _ACEOF
1801 ac_status=$?
1802 fi
1803
1804 if test "$ac_init_help" = "recursive"; then
1805   # If there are subdirs, report their specific --help.
1806   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807     test -d "$ac_dir" ||
1808       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1809       continue
1810     ac_builddir=.
1811
1812 case "$ac_dir" in
1813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *)
1815   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1816   # A ".." for each directory in $ac_dir_suffix.
1817   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1818   case $ac_top_builddir_sub in
1819   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1820   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1821   esac ;;
1822 esac
1823 ac_abs_top_builddir=$ac_pwd
1824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1825 # for backward compatibility:
1826 ac_top_builddir=$ac_top_build_prefix
1827
1828 case $srcdir in
1829   .)  # We are building in place.
1830     ac_srcdir=.
1831     ac_top_srcdir=$ac_top_builddir_sub
1832     ac_abs_top_srcdir=$ac_pwd ;;
1833   [\\/]* | ?:[\\/]* )  # Absolute name.
1834     ac_srcdir=$srcdir$ac_dir_suffix;
1835     ac_top_srcdir=$srcdir
1836     ac_abs_top_srcdir=$srcdir ;;
1837   *) # Relative name.
1838     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1839     ac_top_srcdir=$ac_top_build_prefix$srcdir
1840     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1841 esac
1842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1843
1844     cd "$ac_dir" || { ac_status=$?; continue; }
1845     # Check for guested configure.
1846     if test -f "$ac_srcdir/configure.gnu"; then
1847       echo &&
1848       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1849     elif test -f "$ac_srcdir/configure"; then
1850       echo &&
1851       $SHELL "$ac_srcdir/configure" --help=recursive
1852     else
1853       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1854     fi || ac_status=$?
1855     cd "$ac_pwd" || { ac_status=$?; break; }
1856   done
1857 fi
1858
1859 test -n "$ac_init_help" && exit $ac_status
1860 if $ac_init_version; then
1861   cat <<\_ACEOF
1862 curl configure -
1863 generated by GNU Autoconf 2.67
1864
1865 Copyright (C) 2010 Free Software Foundation, Inc.
1866 This configure script is free software; the Free Software Foundation
1867 gives unlimited permission to copy, distribute and modify it.
1868
1869 Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
1870 This configure script may be copied, distributed and modified under the
1871 terms of the curl license; see COPYING for more details
1872 _ACEOF
1873   exit
1874 fi
1875
1876 ## ------------------------ ##
1877 ## Autoconf initialization. ##
1878 ## ------------------------ ##
1879
1880 # ac_fn_c_try_compile LINENO
1881 # --------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_compile ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   rm -f conftest.$ac_objext
1887   if { { ac_try="$ac_compile"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_compile") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && {
1903          test -z "$ac_c_werror_flag" ||
1904          test ! -s conftest.err
1905        } && test -s conftest.$ac_objext; then :
1906   ac_retval=0
1907 else
1908   $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911         ac_retval=1
1912 fi
1913   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914   as_fn_set_status $ac_retval
1915
1916 } # ac_fn_c_try_compile
1917
1918 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists and can be compiled using the include files in
1921 # INCLUDES, setting the cache variable VAR accordingly.
1922 ac_fn_c_check_header_compile ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval "test \"\${$3+set}\"" = set; then :
1928   $as_echo_n "(cached) " >&6
1929 else
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936   eval "$3=yes"
1937 else
1938   eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947 } # ac_fn_c_check_header_compile
1948
1949 # ac_fn_c_try_run LINENO
1950 # ----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952 # that executables *can* be run.
1953 ac_fn_c_try_run ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_link") 2>&5
1964   ac_status=$?
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967   { { case "(($ac_try" in
1968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969   *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973   (eval "$ac_try") 2>&5
1974   ac_status=$?
1975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976   test $ac_status = 0; }; }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: program exited with status $ac_status" >&5
1980        $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983        ac_retval=$ac_status
1984 fi
1985   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987   as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_run
1990
1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1992 # --------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1995 # computed
1996 ac_fn_c_compute_int ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   if test "$cross_compiling" = yes; then
2000     # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int main (void)
2005 {
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2007 test_array [0] = 0
2008
2009  ;
2010  return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_lo=0 ac_mid=0
2015   while :; do
2016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int main (void)
2020 {
2021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022 test_array [0] = 0
2023
2024  ;
2025  return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   ac_hi=$ac_mid; break
2030 else
2031   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032                         if test $ac_lo -le $ac_mid; then
2033                           ac_lo= ac_hi=
2034                           break
2035                         fi
2036                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039   done
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int main (void)
2045 {
2046 static int test_array [1 - 2 * !(($2) < 0)];
2047 test_array [0] = 0
2048
2049  ;
2050  return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_hi=-1 ac_mid=-1
2055   while :; do
2056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int main (void)
2060 {
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062 test_array [0] = 0
2063
2064  ;
2065  return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_lo=$ac_mid; break
2070 else
2071   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072                         if test $ac_mid -le $ac_hi; then
2073                           ac_lo= ac_hi=
2074                           break
2075                         fi
2076                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079   done
2080 else
2081   ac_lo= ac_hi=
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int main (void)
2093 {
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0
2096
2097  ;
2098  return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102   ac_hi=$ac_mid
2103 else
2104   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 done
2108 case $ac_lo in #((
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2110 '') ac_retval=1 ;;
2111 esac
2112   else
2113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2118 #include <stdio.h>
2119 #include <stdlib.h>
2120 int main (void)
2121 {
2122
2123   FILE *f = fopen ("conftest.val", "w");
2124   if (! f)
2125     return 1;
2126   if (($2) < 0)
2127     {
2128       long int i = longval ();
2129       if (i != ($2))
2130         return 1;
2131       fprintf (f, "%ld", i);
2132     }
2133   else
2134     {
2135       unsigned long int i = ulongval ();
2136       if (i != ($2))
2137         return 1;
2138       fprintf (f, "%lu", i);
2139     }
2140   /* Do not output a trailing newline, as this causes \r\n confusion
2141      on some platforms.  */
2142   return ferror (f) || fclose (f) != 0;
2143
2144  ;
2145  return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_run "$LINENO"; then :
2149   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2150 else
2151   ac_retval=1
2152 fi
2153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2154   conftest.$ac_objext conftest.beam conftest.$ac_ext
2155 rm -f conftest.val
2156
2157   fi
2158   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159   as_fn_set_status $ac_retval
2160
2161 } # ac_fn_c_compute_int
2162
2163 # ac_fn_c_try_cpp LINENO
2164 # ----------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_c_try_cpp ()
2167 {
2168   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169   if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 case "(($ac_try" in
2171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172   *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177   ac_status=$?
2178   if test -s conftest.err; then
2179     grep -v '^ *+' conftest.err >conftest.er1
2180     cat conftest.er1 >&5
2181     mv -f conftest.er1 conftest.err
2182   fi
2183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184   test $ac_status = 0; } > conftest.i && {
2185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186          test ! -s conftest.err
2187        }; then :
2188   ac_retval=0
2189 else
2190   $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193     ac_retval=1
2194 fi
2195   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196   as_fn_set_status $ac_retval
2197
2198 } # ac_fn_c_try_cpp
2199
2200 # ac_fn_c_try_link LINENO
2201 # -----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_c_try_link ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   rm -f conftest.$ac_objext conftest$ac_exeext
2207   if { { ac_try="$ac_link"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214   (eval "$ac_link") 2>conftest.err
2215   ac_status=$?
2216   if test -s conftest.err; then
2217     grep -v '^ *+' conftest.err >conftest.er1
2218     cat conftest.er1 >&5
2219     mv -f conftest.er1 conftest.err
2220   fi
2221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222   test $ac_status = 0; } && {
2223          test -z "$ac_c_werror_flag" ||
2224          test ! -s conftest.err
2225        } && test -s conftest$ac_exeext && {
2226          test "$cross_compiling" = yes ||
2227          $as_test_x conftest$ac_exeext
2228        }; then :
2229   ac_retval=0
2230 else
2231   $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234         ac_retval=1
2235 fi
2236   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2237   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2238   # interfere with the next link command; also delete a directory that is
2239   # left behind by Apple's compiler.  We do this before executing the actions.
2240   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2241   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242   as_fn_set_status $ac_retval
2243
2244 } # ac_fn_c_try_link
2245
2246 # ac_fn_c_check_func LINENO FUNC VAR
2247 # ----------------------------------
2248 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2249 ac_fn_c_check_func ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval "test \"\${$3+set}\"" = set; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259
2260 #define $2 innocuous_$2
2261 #ifdef __STDC__
2262 # include <limits.h>
2263 #else
2264 # include <assert.h>
2265 #endif
2266 #undef $2
2267 #ifdef __cplusplus
2268 extern "C"
2269 #endif
2270 char $2 ();
2271 #if defined __stub_$2 || defined __stub___$2
2272 choke me
2273 #endif
2274
2275 int main (void)
2276 {
2277 return $2 ();
2278  ;
2279  return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_link "$LINENO"; then :
2283   eval "$3=yes"
2284 else
2285   eval "$3=no"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext \
2288     conftest$ac_exeext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2294
2295 } # ac_fn_c_check_func
2296
2297 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2298 # -------------------------------------------------------
2299 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2300 # the include files in INCLUDES and setting the cache variable VAR
2301 # accordingly.
2302 ac_fn_c_check_header_mongrel ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   if eval "test \"\${$3+set}\"" = set; then :
2306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval "test \"\${$3+set}\"" = set; then :
2309   $as_echo_n "(cached) " >&6
2310 fi
2311 eval ac_res=\$$3
2312                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 else
2315   # Is the header compilable?
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2317 $as_echo_n "checking $2 usability... " >&6; }
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h.  */
2320 $4
2321 #include <$2>
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   ac_header_compiler=yes
2325 else
2326   ac_header_compiler=no
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2330 $as_echo "$ac_header_compiler" >&6; }
2331
2332 # Is the header present?
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2334 $as_echo_n "checking $2 presence... " >&6; }
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h.  */
2337 #include <$2>
2338 _ACEOF
2339 if ac_fn_c_try_cpp "$LINENO"; then :
2340   ac_header_preproc=yes
2341 else
2342   ac_header_preproc=no
2343 fi
2344 rm -f conftest.err conftest.i conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2346 $as_echo "$ac_header_preproc" >&6; }
2347
2348 # So?  What about this header?
2349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2350   yes:no: )
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2352 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2353     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2354 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2355     ;;
2356   no:yes:* )
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2358 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2360 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2362 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2364 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2366 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367 ( $as_echo "## ---------------------------------------------------------------------- ##
2368 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2369 ## ---------------------------------------------------------------------- ##"
2370      ) | sed "s/^/$as_me: WARNING:     /" >&2
2371     ;;
2372 esac
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if eval "test \"\${$3+set}\"" = set; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   eval "$3=\$ac_header_compiler"
2379 fi
2380 eval ac_res=\$$3
2381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 fi
2384   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385
2386 } # ac_fn_c_check_header_mongrel
2387
2388 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2389 # -------------------------------------------
2390 # Tests whether TYPE exists after having included INCLUDES, setting cache
2391 # variable VAR accordingly.
2392 ac_fn_c_check_type ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval "test \"\${$3+set}\"" = set; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h.  */
2403 $4
2404 int main (void)
2405 {
2406 if (sizeof ($2))
2407          return 0;
2408  ;
2409  return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h.  */
2415 $4
2416 int main (void)
2417 {
2418 if (sizeof (($2)))
2419             return 0;
2420  ;
2421  return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425
2426 else
2427   eval "$3=yes"
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_check_type
2439 cat >config.log <<_ACEOF
2440 This file contains any messages produced by compilers while
2441 running configure, to aid debugging if configure makes a mistake.
2442
2443 It was created by curl $as_me -, which was
2444 generated by GNU Autoconf 2.67.  Invocation command line was
2445
2446   $ $0 $@
2447
2448 _ACEOF
2449 exec 5>>config.log
2450 {
2451 cat <<_ASUNAME
2452 ## --------- ##
2453 ## Platform. ##
2454 ## --------- ##
2455
2456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2461
2462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2463 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2464
2465 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2466 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2468 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2469 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2470 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2471 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2472
2473 _ASUNAME
2474
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480     $as_echo "PATH: $as_dir"
2481   done
2482 IFS=$as_save_IFS
2483
2484 } >&5
2485
2486 cat >&5 <<_ACEOF
2487
2488
2489 ## ----------- ##
2490 ## Core tests. ##
2491 ## ----------- ##
2492
2493 _ACEOF
2494
2495
2496 # Keep a trace of the command line.
2497 # Strip out --no-create and --no-recursion so they do not pile up.
2498 # Strip out --silent because we don't want to record it for future runs.
2499 # Also quote any args containing shell meta-characters.
2500 # Make two passes to allow for proper duplicate-argument suppression.
2501 ac_configure_args=
2502 ac_configure_args0=
2503 ac_configure_args1=
2504 ac_must_keep_next=false
2505 for ac_pass in 1 2
2506 do
2507   for ac_arg
2508   do
2509     case $ac_arg in
2510     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2511     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2512     | -silent | --silent | --silen | --sile | --sil)
2513       continue ;;
2514     *\'*)
2515       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2516     esac
2517     case $ac_pass in
2518     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2519     2)
2520       as_fn_append ac_configure_args1 " '$ac_arg'"
2521       if test $ac_must_keep_next = true; then
2522         ac_must_keep_next=false # Got value, back to normal.
2523       else
2524         case $ac_arg in
2525           *=* | --config-cache | -C | -disable-* | --disable-* \
2526           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2527           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2528           | -with-* | --with-* | -without-* | --without-* | --x)
2529             case "$ac_configure_args0 " in
2530               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2531             esac
2532             ;;
2533           -* ) ac_must_keep_next=true ;;
2534         esac
2535       fi
2536       as_fn_append ac_configure_args " '$ac_arg'"
2537       ;;
2538     esac
2539   done
2540 done
2541 { ac_configure_args0=; unset ac_configure_args0;}
2542 { ac_configure_args1=; unset ac_configure_args1;}
2543
2544 # When interrupted or exit'd, cleanup temporary files, and complete
2545 # config.log.  We remove comments because anyway the quotes in there
2546 # would cause problems or look ugly.
2547 # WARNING: Use '\'' to represent an apostrophe within the trap.
2548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2549 trap 'exit_status=$?
2550   # Save into config.log some information that might help in debugging.
2551   {
2552     echo
2553
2554     $as_echo "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2557     echo
2558     # The following way of writing the cache mishandles newlines in values,
2559 (
2560   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2561     eval ac_val=\$$ac_var
2562     case $ac_val in #(
2563     *${as_nl}*)
2564       case $ac_var in #(
2565       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2567       esac
2568       case $ac_var in #(
2569       _ | IFS | as_nl) ;; #(
2570       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571       *) { eval $ac_var=; unset $ac_var;} ;;
2572       esac ;;
2573     esac
2574   done
2575   (set) 2>&1 |
2576     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2577     *${as_nl}ac_space=\ *)
2578       sed -n \
2579         "s/'\''/'\''\\\\'\'''\''/g;
2580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2581       ;; #(
2582     *)
2583       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584       ;;
2585     esac |
2586     sort
2587 )
2588     echo
2589
2590     $as_echo "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2593     echo
2594     for ac_var in $ac_subst_vars
2595     do
2596       eval ac_val=\$$ac_var
2597       case $ac_val in
2598       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599       esac
2600       $as_echo "$ac_var='\''$ac_val'\''"
2601     done | sort
2602     echo
2603
2604     if test -n "$ac_subst_files"; then
2605       $as_echo "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2608       echo
2609       for ac_var in $ac_subst_files
2610       do
2611         eval ac_val=\$$ac_var
2612         case $ac_val in
2613         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614         esac
2615         $as_echo "$ac_var='\''$ac_val'\''"
2616       done | sort
2617       echo
2618     fi
2619
2620     if test -s confdefs.h; then
2621       $as_echo "## ----------- ##
2622 ## confdefs.h. ##
2623 ## ----------- ##"
2624       echo
2625       cat confdefs.h
2626       echo
2627     fi
2628     test "$ac_signal" != 0 &&
2629       $as_echo "$as_me: caught signal $ac_signal"
2630     $as_echo "$as_me: exit $exit_status"
2631   } >&5
2632   rm -f core *.core core.conftest.* &&
2633     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2634     exit $exit_status
2635 ' 0
2636 for ac_signal in 1 2 13 15; do
2637   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2638 done
2639 ac_signal=0
2640
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2643
2644 $as_echo "/* confdefs.h */" > confdefs.h
2645
2646 # Predefined preprocessor variables.
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_NAME "$PACKAGE_NAME"
2650 _ACEOF
2651
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2654 _ACEOF
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2658 _ACEOF
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_STRING "$PACKAGE_STRING"
2662 _ACEOF
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2666 _ACEOF
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_URL "$PACKAGE_URL"
2670 _ACEOF
2671
2672
2673 # Let the site file select an alternate cache file if it wants to.
2674 # Prefer an explicitly selected file to automatically selected ones.
2675 ac_site_file1=NONE
2676 ac_site_file2=NONE
2677 if test -n "$CONFIG_SITE"; then
2678   # We do not want a PATH search for config.site.
2679   case $CONFIG_SITE in #((
2680     -*)  ac_site_file1=./$CONFIG_SITE;;
2681     */*) ac_site_file1=$CONFIG_SITE;;
2682     *)   ac_site_file1=./$CONFIG_SITE;;
2683   esac
2684 elif test "x$prefix" != xNONE; then
2685   ac_site_file1=$prefix/share/config.site
2686   ac_site_file2=$prefix/etc/config.site
2687 else
2688   ac_site_file1=$ac_default_prefix/share/config.site
2689   ac_site_file2=$ac_default_prefix/etc/config.site
2690 fi
2691 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2692 do
2693   test "x$ac_site_file" = xNONE && continue
2694   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2695     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2696 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2697     sed 's/^/| /' "$ac_site_file" >&5
2698     . "$ac_site_file" \
2699       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 as_fn_error $? "failed to load site script $ac_site_file
2702 See \`config.log' for more details" "$LINENO" 5 ; }
2703   fi
2704 done
2705
2706 if test -r "$cache_file"; then
2707   # Some versions of bash will fail to source /dev/null (special files
2708   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2709   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2710     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2711 $as_echo "$as_me: loading cache $cache_file" >&6;}
2712     case $cache_file in
2713       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2714       *)                      . "./$cache_file";;
2715     esac
2716   fi
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2719 $as_echo "$as_me: creating cache $cache_file" >&6;}
2720   >$cache_file
2721 fi
2722
2723 # Check that the precious variables saved in the cache have kept the same
2724 # value.
2725 ac_cache_corrupted=false
2726 for ac_var in $ac_precious_vars; do
2727   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2728   eval ac_new_set=\$ac_env_${ac_var}_set
2729   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2730   eval ac_new_val=\$ac_env_${ac_var}_value
2731   case $ac_old_set,$ac_new_set in
2732     set,)
2733       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2734 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2735       ac_cache_corrupted=: ;;
2736     ,set)
2737       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2738 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2739       ac_cache_corrupted=: ;;
2740     ,);;
2741     *)
2742       if test "x$ac_old_val" != "x$ac_new_val"; then
2743         # differences in whitespace do not lead to failure.
2744         ac_old_val_w=`echo x $ac_old_val`
2745         ac_new_val_w=`echo x $ac_new_val`
2746         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2747           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2749           ac_cache_corrupted=:
2750         else
2751           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2753           eval $ac_var=\$ac_old_val
2754         fi
2755         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2756 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2757         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2758 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2759       fi;;
2760   esac
2761   # Pass precious variables to config.status.
2762   if test "$ac_new_set" = set; then
2763     case $ac_new_val in
2764     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2765     *) ac_arg=$ac_var=$ac_new_val ;;
2766     esac
2767     case " $ac_configure_args " in
2768       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2769       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2770     esac
2771   fi
2772 done
2773 if $ac_cache_corrupted; then
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2778   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2779 fi
2780 ## -------------------- ##
2781 ## Main body of script. ##
2782 ## -------------------- ##
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790
2791
2792
2793
2794 # using curl-override.m4
2795
2796
2797
2798
2799
2800 ac_config_headers="$ac_config_headers lib/curl_config.h src/curl_config.h include/curl/curlbuild.h"
2801
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2803 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2804     # Check whether --enable-maintainer-mode was given.
2805 if test "${enable_maintainer_mode+set}" = set; then :
2806   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2807 else
2808   USE_MAINTAINER_MODE=no
2809 fi
2810
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2812 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2813
2814
2815 if test $USE_MAINTAINER_MODE = yes; then
2816   MAINTAINER_MODE_TRUE=
2817   MAINTAINER_MODE_FALSE='#'
2818 else
2819   MAINTAINER_MODE_TRUE='#'
2820   MAINTAINER_MODE_FALSE=
2821 fi
2822
2823   MAINT=$MAINTAINER_MODE_TRUE
2824
2825
2826
2827
2828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2829 $as_echo_n "checking whether to enable debug build options... " >&6; }
2830   OPT_DEBUG_BUILD="default"
2831   # Check whether --enable-debug was given.
2832 if test "${enable_debug+set}" = set; then :
2833   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2834 fi
2835
2836   case "$OPT_DEBUG_BUILD" in
2837     no)
2838             want_debug="no"
2839       ;;
2840     default)
2841             want_debug="no"
2842       ;;
2843     *)
2844             want_debug="yes"
2845       ;;
2846   esac
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2848 $as_echo "$want_debug" >&6; }
2849
2850
2851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2852 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2853   OPT_COMPILER_OPTIMIZE="default"
2854   # Check whether --enable-optimize was given.
2855 if test "${enable_optimize+set}" = set; then :
2856   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2857 fi
2858
2859   case "$OPT_COMPILER_OPTIMIZE" in
2860     no)
2861                               want_optimize="no"
2862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864       ;;
2865     default)
2866                                                                         if test "$want_debug" = "yes"; then
2867         want_optimize="assume_no"
2868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
2869 $as_echo "(assumed) no" >&6; }
2870       else
2871         want_optimize="assume_yes"
2872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
2873 $as_echo "(assumed) yes" >&6; }
2874       fi
2875       ;;
2876     *)
2877                               want_optimize="yes"
2878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2880       ;;
2881   esac
2882
2883
2884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2885 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2886   OPT_COMPILER_WARNINGS="default"
2887   # Check whether --enable-warnings was given.
2888 if test "${enable_warnings+set}" = set; then :
2889   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2890 fi
2891
2892   case "$OPT_COMPILER_WARNINGS" in
2893     no)
2894             want_warnings="no"
2895       ;;
2896     default)
2897                   want_warnings="$want_debug"
2898       ;;
2899     *)
2900             want_warnings="yes"
2901       ;;
2902   esac
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2904 $as_echo "$want_warnings" >&6; }
2905
2906
2907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2908 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2909   OPT_COMPILER_WERROR="default"
2910   # Check whether --enable-werror was given.
2911 if test "${enable_werror+set}" = set; then :
2912   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2913 fi
2914
2915   case "$OPT_COMPILER_WERROR" in
2916     no)
2917             want_werror="no"
2918       ;;
2919     default)
2920             want_werror="no"
2921       ;;
2922     *)
2923             want_werror="yes"
2924       ;;
2925   esac
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2927 $as_echo "$want_werror" >&6; }
2928
2929
2930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2931 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2932   OPT_CURLDEBUG_BUILD="default"
2933   # Check whether --enable-curldebug was given.
2934 if test "${enable_curldebug+set}" = set; then :
2935   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2936 fi
2937
2938   case "$OPT_CURLDEBUG_BUILD" in
2939     no)
2940             want_curldebug="no"
2941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943       ;;
2944     default)
2945                                           if test "$want_debug" = "yes"; then
2946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
2947 $as_echo "(assumed) yes" >&6; }
2948       else
2949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951       fi
2952       want_curldebug_assumed="yes"
2953       want_curldebug="$want_debug"
2954       ;;
2955     *)
2956                                                       want_curldebug="yes"
2957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959       ;;
2960   esac
2961
2962
2963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
2964 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
2965   OPT_ARES="default"
2966   # Check whether --enable-ares was given.
2967 if test "${enable_ares+set}" = set; then :
2968   enableval=$enable_ares; OPT_ARES=$enableval
2969 fi
2970
2971   case "$OPT_ARES" in
2972     no)
2973             want_ares="no"
2974       ;;
2975     default)
2976             want_ares="no"
2977       ;;
2978     *)
2979             want_ares="yes"
2980       if test -n "$enableval" && test "$enableval" != "yes"; then
2981         want_ares_path="$enableval"
2982       fi
2983       ;;
2984   esac
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
2986 $as_echo "$want_ares" >&6; }
2987
2988
2989
2990
2991
2992 #
2993 # save the configure arguments
2994 #
2995 CONFIGURE_OPTIONS="\"$ac_configure_args\""
2996
2997
2998 CURL_CFLAG_EXTRAS=""
2999 if test X"$want_werror" = Xyes; then
3000   CURL_CFLAG_EXTRAS="-Werror"
3001 fi
3002
3003
3004 if test -z "$SED"; then
3005     # Extract the first word of "sed", so it can be a program name with args.
3006 set dummy sed; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_path_SED+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   case $SED in
3013   [\\/]* | ?:[\\/]*)
3014   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3015   ;;
3016   *)
3017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3019 for as_dir in $as_dummy
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030   done
3031 IFS=$as_save_IFS
3032
3033   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3034   ;;
3035 esac
3036 fi
3037 SED=$ac_cv_path_SED
3038 if test -n "$SED"; then
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3040 $as_echo "$SED" >&6; }
3041 else
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047   if test -z "$SED" || test "$SED" = "not_found"; then
3048     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3049   fi
3050 fi
3051
3052
3053 if test -z "$GREP"; then
3054     # Extract the first word of "grep", so it can be a program name with args.
3055 set dummy grep; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_path_GREP+set}" = set; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   case $GREP in
3062   [\\/]* | ?:[\\/]*)
3063   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3064   ;;
3065   *)
3066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3068 for as_dir in $as_dummy
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3083   ;;
3084 esac
3085 fi
3086 GREP=$ac_cv_path_GREP
3087 if test -n "$GREP"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3089 $as_echo "$GREP" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096   if test -z "$GREP" || test "$GREP" = "not_found"; then
3097     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3098   fi
3099 fi
3100
3101
3102 if test -z "$EGREP"; then
3103     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3105 $as_echo_n "checking for egrep... " >&6; }
3106     EGREP="$GREP -E"
3107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3108 $as_echo "$EGREP" >&6; }
3109   else
3110     # Extract the first word of "egrep", so it can be a program name with args.
3111 set dummy egrep; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_path_EGREP+set}" = set; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   case $EGREP in
3118   [\\/]* | ?:[\\/]*)
3119   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3120   ;;
3121   *)
3122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3124 for as_dir in $as_dummy
3125 do
3126   IFS=$as_save_IFS
3127   test -z "$as_dir" && as_dir=.
3128     for ac_exec_ext in '' $ac_executable_extensions; do
3129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133   fi
3134 done
3135   done
3136 IFS=$as_save_IFS
3137
3138   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3139   ;;
3140 esac
3141 fi
3142 EGREP=$ac_cv_path_EGREP
3143 if test -n "$EGREP"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3145 $as_echo "$EGREP" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152   fi
3153 fi
3154 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3155   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3156 fi
3157
3158
3159 if test -z "$AR"; then
3160     if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ar; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_path_AR+set}" = set; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   case $AR in
3169   [\\/]* | ?:[\\/]*)
3170   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3171   ;;
3172   *)
3173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3175 for as_dir in $as_dummy
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189   ;;
3190 esac
3191 fi
3192 AR=$ac_cv_path_AR
3193 if test -n "$AR"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3195 $as_echo "$AR" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$ac_cv_path_AR"; then
3204   ac_pt_AR=$AR
3205   # Extract the first word of "ar", so it can be a program name with args.
3206 set dummy ar; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_path_ac_pt_AR+set}" = set; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   case $ac_pt_AR in
3213   [\\/]* | ?:[\\/]*)
3214   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3215   ;;
3216   *)
3217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3219 for as_dir in $as_dummy
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233   ;;
3234 esac
3235 fi
3236 ac_pt_AR=$ac_cv_path_ac_pt_AR
3237 if test -n "$ac_pt_AR"; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3239 $as_echo "$ac_pt_AR" >&6; }
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245   if test "x$ac_pt_AR" = x; then
3246     AR="not_found"
3247   else
3248     case $cross_compiling:$ac_tool_warned in
3249 yes:)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3253 esac
3254     AR=$ac_pt_AR
3255   fi
3256 else
3257   AR="$ac_cv_path_AR"
3258 fi
3259
3260   if test -z "$AR" || test "$AR" = "not_found"; then
3261     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3262   fi
3263 fi
3264
3265
3266
3267
3268 if test -f ${srcdir}/include/curl/curlbuild.h; then
3269   rm -f ${srcdir}/include/curl/curlbuild.h
3270 fi
3271
3272 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3273 am__api_version="1.9"
3274 ac_aux_dir=
3275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3276   if test -f "$ac_dir/install-sh"; then
3277     ac_aux_dir=$ac_dir
3278     ac_install_sh="$ac_aux_dir/install-sh -c"
3279     break
3280   elif test -f "$ac_dir/install.sh"; then
3281     ac_aux_dir=$ac_dir
3282     ac_install_sh="$ac_aux_dir/install.sh -c"
3283     break
3284   elif test -f "$ac_dir/shtool"; then
3285     ac_aux_dir=$ac_dir
3286     ac_install_sh="$ac_aux_dir/shtool install -c"
3287     break
3288   fi
3289 done
3290 if test -z "$ac_aux_dir"; then
3291   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3292 fi
3293
3294 # These three variables are undocumented and unsupported,
3295 # and are intended to be withdrawn in a future Autoconf release.
3296 # They can cause serious problems if a builder's source tree is in a directory
3297 # whose full name contains unusual characters.
3298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3300 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3301
3302
3303 # Find a good install program.  We prefer a C program (faster),
3304 # so one script is as good as another.  But avoid the broken or
3305 # incompatible versions:
3306 # SysV /etc/install, /usr/sbin/install
3307 # SunOS /usr/etc/install
3308 # IRIX /sbin/install
3309 # AIX /bin/install
3310 # AmigaOS /C/install, which installs bootblocks on floppy discs
3311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3314 # OS/2's system install, which has a completely different semantic
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 # Reject install programs that cannot install multiple files.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3318 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3319 if test -z "$INSTALL"; then
3320 if test "${ac_cv_path_install+set}" = set; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328     # Account for people who put trailing slashes in PATH elements.
3329 case $as_dir/ in #((
3330   ./ | .// | /[cC]/* | \
3331   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3332   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3333   /usr/ucb/* ) ;;
3334   *)
3335     # OSF1 and SCO ODT 3.0 have their own names for install.
3336     # Don't use installbsd from OSF since it installs stuff as root
3337     # by default.
3338     for ac_prog in ginstall scoinst install; do
3339       for ac_exec_ext in '' $ac_executable_extensions; do
3340         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3341           if test $ac_prog = install &&
3342             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3343             # AIX install.  It has an incompatible calling convention.
3344             :
3345           elif test $ac_prog = install &&
3346             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3347             # program-specific install script used by HP pwplus--don't use.
3348             :
3349           else
3350             rm -rf conftest.one conftest.two conftest.dir
3351             echo one > conftest.one
3352             echo two > conftest.two
3353             mkdir conftest.dir
3354             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3355               test -s conftest.one && test -s conftest.two &&
3356               test -s conftest.dir/conftest.one &&
3357               test -s conftest.dir/conftest.two
3358             then
3359               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3360               break 3
3361             fi
3362           fi
3363         fi
3364       done
3365     done
3366     ;;
3367 esac
3368
3369   done
3370 IFS=$as_save_IFS
3371
3372 rm -rf conftest.one conftest.two conftest.dir
3373
3374 fi
3375   if test "${ac_cv_path_install+set}" = set; then
3376     INSTALL=$ac_cv_path_install
3377   else
3378     # As a last resort, use the slow shell script.  Don't cache a
3379     # value for INSTALL within a source directory, because that will
3380     # break other packages using the cache if that directory is
3381     # removed, or if the value is a relative name.
3382     INSTALL=$ac_install_sh
3383   fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3386 $as_echo "$INSTALL" >&6; }
3387
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3391
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3393
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3397 $as_echo_n "checking whether build environment is sane... " >&6; }
3398 # Just in case
3399 sleep 1
3400 echo timestamp > conftest.file
3401 # Do `set' in a subshell so we don't clobber the current shell's
3402 # arguments.  Must try -L first in case configure is actually a
3403 # symlink; some systems play weird games with the mod time of symlinks
3404 # (eg FreeBSD returns the mod time of the symlink's containing
3405 # directory).
3406 if (
3407    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3408    if test "$*" = "X"; then
3409       # -L didn't work.
3410       set X `ls -t $srcdir/configure conftest.file`
3411    fi
3412    rm -f conftest.file
3413    if test "$*" != "X $srcdir/configure conftest.file" \
3414       && test "$*" != "X conftest.file $srcdir/configure"; then
3415
3416       # If neither matched, then we have a broken ls.  This can happen
3417       # if, for instance, CONFIG_SHELL is bash and it inherits a
3418       # broken ls alias from the environment.  This has actually
3419       # happened.  Such a system could not be considered "sane".
3420       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3421 alias in your environment" "$LINENO" 5
3422    fi
3423
3424    test "$2" = conftest.file
3425    )
3426 then
3427    # Ok.
3428    :
3429 else
3430    as_fn_error $? "newly created file is older than distributed files!
3431 Check your system clock" "$LINENO" 5
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 test "$program_prefix" != NONE &&
3436   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3437 # Use a double $ so make ignores it.
3438 test "$program_suffix" != NONE &&
3439   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3440 # Double any \ or $.
3441 # By default was `s,x,x', remove it if useless.
3442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3444
3445 # expand $ac_aux_dir to an absolute path
3446 am_aux_dir=`cd $ac_aux_dir && pwd`
3447
3448 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
3449 # Use eval to expand $SHELL
3450 if eval "$MISSING --run true"; then
3451   am_missing_run="$MISSING --run "
3452 else
3453   am_missing_run=
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3455 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3456 fi
3457
3458 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3459   # We used to keeping the `.' as first argument, in order to
3460   # allow $(mkdir_p) to be used without argument.  As in
3461   #   $(mkdir_p) $(somedir)
3462   # where $(somedir) is conditionally defined.  However this is wrong
3463   # for two reasons:
3464   #  1. if the package is installed by a user who cannot write `.'
3465   #     make install will fail,
3466   #  2. the above comment should most certainly read
3467   #     $(mkdir_p) $(DESTDIR)$(somedir)
3468   #     so it does not work when $(somedir) is undefined and
3469   #     $(DESTDIR) is not.
3470   #  To support the latter case, we have to write
3471   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3472   #  so the `.' trick is pointless.
3473   mkdir_p='mkdir -p --'
3474 else
3475   # On NextStep and OpenStep, the `mkdir' command does not
3476   # recognize any option.  It will interpret all options as
3477   # directories to create, and then abort because `.' already
3478   # exists.
3479   for d in ./-p ./--version;
3480   do
3481     test -d $d && rmdir $d
3482   done
3483   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3484   if test -f "$ac_aux_dir/mkinstalldirs"; then
3485     mkdir_p='$(mkinstalldirs)'
3486   else
3487     mkdir_p='$(install_sh) -d'
3488   fi
3489 fi
3490
3491 for ac_prog in gawk mawk nawk awk
3492 do
3493   # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_AWK+set}" = set; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test -n "$AWK"; then
3501   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510     ac_cv_prog_AWK="$ac_prog"
3511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515   done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 AWK=$ac_cv_prog_AWK
3521 if test -n "$AWK"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3523 $as_echo "$AWK" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530   test -n "$AWK" && break
3531 done
3532
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3535 set x ${MAKE-make}
3536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   cat >conftest.make <<\_ACEOF
3541 SHELL = /bin/sh
3542 all:
3543         @echo '@@@%%%=$(MAKE)=@@@%%%'
3544 _ACEOF
3545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3547   *@@@%%%=?*=@@@%%%*)
3548     eval ac_cv_prog_make_${ac_make}_set=yes;;
3549   *)
3550     eval ac_cv_prog_make_${ac_make}_set=no;;
3551 esac
3552 rm -f conftest.make
3553 fi
3554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 $as_echo "yes" >&6; }
3557   SET_MAKE=
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561   SET_MAKE="MAKE=${MAKE-make}"
3562 fi
3563
3564 rm -rf .tst 2>/dev/null
3565 mkdir .tst 2>/dev/null
3566 if test -d .tst; then
3567   am__leading_dot=.
3568 else
3569   am__leading_dot=_
3570 fi
3571 rmdir .tst 2>/dev/null
3572
3573 # test to see if srcdir already configured
3574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3575    test -f $srcdir/config.status; then
3576   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3577 fi
3578
3579 # test whether we have cygpath
3580 if test -z "$CYGPATH_W"; then
3581   if (cygpath --version) >/dev/null 2>/dev/null; then
3582     CYGPATH_W='cygpath -w'
3583   else
3584     CYGPATH_W=echo
3585   fi
3586 fi
3587
3588
3589 # Define the identity of the package.
3590  PACKAGE=curl
3591  VERSION=$VERSION
3592
3593
3594 cat >>confdefs.h <<_ACEOF
3595 #define PACKAGE "$PACKAGE"
3596 _ACEOF
3597
3598
3599 cat >>confdefs.h <<_ACEOF
3600 #define VERSION "$VERSION"
3601 _ACEOF
3602
3603 # Some tools Automake needs.
3604
3605 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3606
3607
3608 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3609
3610
3611 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3612
3613
3614 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3615
3616
3617 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3618
3619 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3620
3621 # Installed binaries are usually stripped using `strip' when the user
3622 # run `make install-strip'.  However `strip' might not be the right
3623 # tool to use in cross-compilation environments, therefore Automake
3624 # will honor the `STRIP' environment variable to overrule this program.
3625 if test "$cross_compiling" != no; then
3626   if test -n "$ac_tool_prefix"; then
3627   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}strip; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_STRIP+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$STRIP"; then
3635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642     for ac_exec_ext in '' $ac_executable_extensions; do
3643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649   done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 STRIP=$ac_cv_prog_STRIP
3655 if test -n "$STRIP"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3657 $as_echo "$STRIP" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 fi
3665 if test -z "$ac_cv_prog_STRIP"; then
3666   ac_ct_STRIP=$STRIP
3667   # Extract the first word of "strip", so it can be a program name with args.
3668 set dummy strip; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   if test -n "$ac_ct_STRIP"; then
3675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682     for ac_exec_ext in '' $ac_executable_extensions; do
3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684     ac_cv_prog_ac_ct_STRIP="strip"
3685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689   done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3695 if test -n "$ac_ct_STRIP"; then
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3697 $as_echo "$ac_ct_STRIP" >&6; }
3698 else
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703   if test "x$ac_ct_STRIP" = x; then
3704     STRIP=":"
3705   else
3706     case $cross_compiling:$ac_tool_warned in
3707 yes:)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712     STRIP=$ac_ct_STRIP
3713   fi
3714 else
3715   STRIP="$ac_cv_prog_STRIP"
3716 fi
3717
3718 fi
3719 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3720
3721 # We need awk for the "check" target.  The system "awk" is bad on
3722 # some platforms.
3723 # Always define AMTAR for backward compatibility.
3724
3725 AMTAR=${AMTAR-"${am_missing_run}tar"}
3726
3727 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3728
3729
3730
3731
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
3734 $as_echo_n "checking curl version... " >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3736 $as_echo "$VERSION" >&6; }
3737
3738 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
3739
3740
3741 PKGADD_PKG="HAXXcurl"
3742 PKGADD_NAME="cURL - a client that groks URLs"
3743 PKGADD_VENDOR="curl.haxx.se"
3744
3745
3746
3747
3748     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl} )"
3749     curl_ssh_msg="no      (--with-libssh2)"
3750    curl_zlib_msg="no      (--with-zlib)"
3751    curl_krb4_msg="no      (--with-krb4*)"
3752     curl_gss_msg="no      (--with-gssapi)"
3753  curl_spnego_msg="no      (--with-spnego)"
3754     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
3755    curl_ipv6_msg="no      (--enable-ipv6)"
3756     curl_idn_msg="no      (--with-libidn)"
3757  curl_manual_msg="no      (--enable-manual)"
3758 curl_verbose_msg="enabled (--disable-verbose)"
3759    curl_sspi_msg="no      (--enable-sspi)"
3760    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
3761   curl_ldaps_msg="no      (--enable-ldaps)"
3762    curl_rtsp_msg="no      (--enable-rtsp)"
3763    curl_rtmp_msg="no      (--with-librtmp)"
3764
3765 ALL_LIBS=$LIBS
3766
3767
3768 # Make sure we can run config.sub.
3769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3770   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3773 $as_echo_n "checking build system type... " >&6; }
3774 if test "${ac_cv_build+set}" = set; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   ac_build_alias=$build_alias
3778 test "x$ac_build_alias" = x &&
3779   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3780 test "x$ac_build_alias" = x &&
3781   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3783   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3784
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3787 $as_echo "$ac_cv_build" >&6; }
3788 case $ac_cv_build in
3789 *-*-*) ;;
3790 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3791 esac
3792 build=$ac_cv_build
3793 ac_save_IFS=$IFS; IFS='-'
3794 set x $ac_cv_build
3795 shift
3796 build_cpu=$1
3797 build_vendor=$2
3798 shift; shift
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3801 build_os=$*
3802 IFS=$ac_save_IFS
3803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3804
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3807 $as_echo_n "checking host system type... " >&6; }
3808 if test "${ac_cv_host+set}" = set; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   if test "x$host_alias" = x; then
3812   ac_cv_host=$ac_cv_build
3813 else
3814   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3816 fi
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3820 $as_echo "$ac_cv_host" >&6; }
3821 case $ac_cv_host in
3822 *-*-*) ;;
3823 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3824 esac
3825 host=$ac_cv_host
3826 ac_save_IFS=$IFS; IFS='-'
3827 set x $ac_cv_host
3828 shift
3829 host_cpu=$1
3830 host_vendor=$2
3831 shift; shift
3832 # Remember, the first character of IFS is used to create $*,
3833 # except with old shells:
3834 host_os=$*
3835 IFS=$ac_save_IFS
3836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3837
3838
3839
3840 cat >>confdefs.h <<_ACEOF
3841 #define OS "${host}"
3842 _ACEOF
3843
3844
3845 DEPDIR="${am__leading_dot}deps"
3846
3847 ac_config_commands="$ac_config_commands depfiles"
3848
3849
3850 am_make=${MAKE-make}
3851 cat > confinc << 'END'
3852 am__doit:
3853         @echo done
3854 .PHONY: am__doit
3855 END
3856 # If we don't find an include directive, just comment out the code.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3858 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3859 am__include="#"
3860 am__quote=
3861 _am_result=none
3862 # First try GNU make style include.
3863 echo "include confinc" > confmf
3864 # We grep out `Entering directory' and `Leaving directory'
3865 # messages which can occur if `w' ends up in MAKEFLAGS.
3866 # In particular we don't look at `^make:' because GNU make might
3867 # be invoked under some other name (usually "gmake"), in which
3868 # case it prints its new name instead of `make'.
3869 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3870    am__include=include
3871    am__quote=
3872    _am_result=GNU
3873 fi
3874 # Now try BSD make style include.
3875 if test "$am__include" = "#"; then
3876    echo '.include "confinc"' > confmf
3877    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3878       am__include=.include
3879       am__quote="\""
3880       _am_result=BSD
3881    fi
3882 fi
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3886 $as_echo "$_am_result" >&6; }
3887 rm -f confinc confmf
3888
3889 # Check whether --enable-dependency-tracking was given.
3890 if test "${enable_dependency_tracking+set}" = set; then :
3891   enableval=$enable_dependency_tracking;
3892 fi
3893
3894 if test "x$enable_dependency_tracking" != xno; then
3895   am_depcomp="$ac_aux_dir/depcomp"
3896   AMDEPBACKSLASH='\'
3897 fi
3898
3899
3900 if test "x$enable_dependency_tracking" != xno; then
3901   AMDEP_TRUE=
3902   AMDEP_FALSE='#'
3903 else
3904   AMDEP_TRUE='#'
3905   AMDEP_FALSE=
3906 fi
3907
3908
3909
3910
3911   ac_save_CFLAGS="$CFLAGS"
3912   ac_save_CPPFLAGS="$CPPFLAGS"
3913   ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918 if test -n "$ac_tool_prefix"; then
3919   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_prog_CC+set}" = set; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   if test -n "$CC"; then
3927   ac_cv_prog_CC="$CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941   done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 CC=$ac_cv_prog_CC
3947 if test -n "$CC"; then
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3949 $as_echo "$CC" >&6; }
3950 else
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955
3956 fi
3957 if test -z "$ac_cv_prog_CC"; then
3958   ac_ct_CC=$CC
3959   # Extract the first word of "gcc", so it can be a program name with args.
3960 set dummy gcc; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test -n "$ac_ct_CC"; then
3967   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974     for ac_exec_ext in '' $ac_executable_extensions; do
3975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976     ac_cv_prog_ac_ct_CC="gcc"
3977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981   done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3989 $as_echo "$ac_ct_CC" >&6; }
3990 else
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995   if test "x$ac_ct_CC" = x; then
3996     CC=""
3997   else
3998     case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004     CC=$ac_ct_CC
4005   fi
4006 else
4007   CC="$ac_cv_prog_CC"
4008 fi
4009
4010 if test -z "$CC"; then
4011           if test -n "$ac_tool_prefix"; then
4012     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_CC+set}" = set; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   if test -n "$CC"; then
4020   ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027     for ac_exec_ext in '' $ac_executable_extensions; do
4028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029     ac_cv_prog_CC="${ac_tool_prefix}cc"
4030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031     break 2
4032   fi
4033 done
4034   done
4035 IFS=$as_save_IFS
4036
4037 fi
4038 fi
4039 CC=$ac_cv_prog_CC
4040 if test -n "$CC"; then
4041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 $as_echo "$CC" >&6; }
4043 else
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048
4049   fi
4050 fi
4051 if test -z "$CC"; then
4052   # Extract the first word of "cc", so it can be a program name with args.
4053 set dummy cc; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -n "$CC"; then
4060   ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062   ac_prog_rejected=no
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4071        ac_prog_rejected=yes
4072        continue
4073      fi
4074     ac_cv_prog_CC="cc"
4075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079   done
4080 IFS=$as_save_IFS
4081
4082 if test $ac_prog_rejected = yes; then
4083   # We found a bogon in the path, so make sure we never use it.
4084   set dummy $ac_cv_prog_CC
4085   shift
4086   if test $# != 0; then
4087     # We chose a different compiler from the bogus one.
4088     # However, it has the same basename, so the bogon will be chosen
4089     # first if we set CC to just the basename; use the full file name.
4090     shift
4091     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4092   fi
4093 fi
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$CC"; then
4108   if test -n "$ac_tool_prefix"; then
4109   for ac_prog in cl.exe
4110   do
4111     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_CC+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -n "$CC"; then
4119   ac_cv_prog_CC="$CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133   done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 CC=$ac_cv_prog_CC
4139 if test -n "$CC"; then
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141 $as_echo "$CC" >&6; }
4142 else
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147
4148     test -n "$CC" && break
4149   done
4150 fi
4151 if test -z "$CC"; then
4152   ac_ct_CC=$CC
4153   for ac_prog in cl.exe
4154 do
4155   # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   if test -n "$ac_ct_CC"; then
4163   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170     for ac_exec_ext in '' $ac_executable_extensions; do
4171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172     ac_cv_prog_ac_ct_CC="$ac_prog"
4173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177   done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4183 if test -n "$ac_ct_CC"; then
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4185 $as_echo "$ac_ct_CC" >&6; }
4186 else
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192   test -n "$ac_ct_CC" && break
4193 done
4194
4195   if test "x$ac_ct_CC" = x; then
4196     CC=""
4197   else
4198     case $cross_compiling:$ac_tool_warned in
4199 yes:)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4202 ac_tool_warned=yes ;;
4203 esac
4204     CC=$ac_ct_CC
4205   fi
4206 fi
4207
4208 fi
4209
4210
4211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4213 as_fn_error $? "no acceptable C compiler found in \$PATH
4214 See \`config.log' for more details" "$LINENO" 5 ; }
4215
4216 # Provide some information about the compiler.
4217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4218 set X $ac_compile
4219 ac_compiler=$2
4220 for ac_option in --version -v -V -qversion; do
4221   { { ac_try="$ac_compiler $ac_option >&5"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229   ac_status=$?
4230   if test -s conftest.err; then
4231     sed '10a\
4232 ... rest of stderr output deleted ...
4233          10q' conftest.err >conftest.er1
4234     cat conftest.er1 >&5
4235   fi
4236   rm -f conftest.er1 conftest.err
4237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238   test $ac_status = 0; }
4239 done
4240
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h.  */
4243
4244 int main (void)
4245 {
4246
4247  ;
4248  return 0;
4249 }
4250 _ACEOF
4251 ac_clean_files_save=$ac_clean_files
4252 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4253 # Try to create an executable without -o first, disregard a.out.
4254 # It will help us diagnose broken compilers, and finding out an intuition
4255 # of exeext.
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4257 $as_echo_n "checking whether the C compiler works... " >&6; }
4258 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4259
4260 # The possible output files:
4261 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4262
4263 ac_rmfiles=
4264 for ac_file in $ac_files
4265 do
4266   case $ac_file in
4267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4268     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4269   esac
4270 done
4271 rm -f $ac_rmfiles
4272
4273 if { { ac_try="$ac_link_default"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280   (eval "$ac_link_default") 2>&5
4281   ac_status=$?
4282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283   test $ac_status = 0; }; then :
4284   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4286 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4287 # so that the user can short-circuit this test for compilers unknown to
4288 # Autoconf.
4289 for ac_file in $ac_files ''
4290 do
4291   test -f "$ac_file" || continue
4292   case $ac_file in
4293     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4294         ;;
4295     [ab].out )
4296         # We found the default executable, but exeext='' is most
4297         # certainly right.
4298         break;;
4299     *.* )
4300         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4301         then :; else
4302            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4303         fi
4304         # We set ac_cv_exeext here because the later test for it is not
4305         # safe: cross compilers may not add the suffix if given an `-o'
4306         # argument, so we may need to know it at that point already.
4307         # Even if this section looks crufty: it has the advantage of
4308         # actually working.
4309         break;;
4310     * )
4311         break;;
4312   esac
4313 done
4314 test "$ac_cv_exeext" = no && ac_cv_exeext=
4315
4316 else
4317   ac_file=''
4318 fi
4319 if test -z "$ac_file"; then :
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 $as_echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error 77 "C compiler cannot create executables
4328 See \`config.log' for more details" "$LINENO" 5 ; }
4329 else
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331 $as_echo "yes" >&6; }
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4334 $as_echo_n "checking for C compiler default output file name... " >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4336 $as_echo "$ac_file" >&6; }
4337 ac_exeext=$ac_cv_exeext
4338
4339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4340 ac_clean_files=$ac_clean_files_save
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4342 $as_echo_n "checking for suffix of executables... " >&6; }
4343 if { { ac_try="$ac_link"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350   (eval "$ac_link") 2>&5
4351   ac_status=$?
4352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353   test $ac_status = 0; }; then :
4354   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4355 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4356 # work properly (i.e., refer to `conftest.exe'), while it won't with
4357 # `rm'.
4358 for ac_file in conftest.exe conftest conftest.*; do
4359   test -f "$ac_file" || continue
4360   case $ac_file in
4361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4362     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4363           break;;
4364     * ) break;;
4365   esac
4366 done
4367 else
4368   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4371 See \`config.log' for more details" "$LINENO" 5 ; }
4372 fi
4373 rm -f conftest conftest$ac_cv_exeext
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4375 $as_echo "$ac_cv_exeext" >&6; }
4376
4377 rm -f conftest.$ac_ext
4378 EXEEXT=$ac_cv_exeext
4379 ac_exeext=$EXEEXT
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382 #include <stdio.h>
4383 int main (void)
4384 {
4385 FILE *f = fopen ("conftest.out", "w");
4386  return ferror (f) || fclose (f) != 0;
4387
4388  ;
4389  return 0;
4390 }
4391 _ACEOF
4392 ac_clean_files="$ac_clean_files conftest.out"
4393 # Check that the compiler produces executables we can run.  If not, either
4394 # the compiler is broken, or we cross compile.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4396 $as_echo_n "checking whether we are cross compiling... " >&6; }
4397 if test "$cross_compiling" != yes; then
4398   { { ac_try="$ac_link"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405   (eval "$ac_link") 2>&5
4406   ac_status=$?
4407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408   test $ac_status = 0; }
4409   if { ac_try='./conftest$ac_cv_exeext'
4410   { { case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419   test $ac_status = 0; }; }; then
4420     cross_compiling=no
4421   else
4422     if test "$cross_compiling" = maybe; then
4423         cross_compiling=yes
4424     else
4425         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "cannot run C compiled programs.
4428 If you meant to cross compile, use \`--host'.
4429 See \`config.log' for more details" "$LINENO" 5 ; }
4430     fi
4431   fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4434 $as_echo "$cross_compiling" >&6; }
4435
4436 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4437 ac_clean_files=$ac_clean_files_save
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4439 $as_echo_n "checking for suffix of object files... " >&6; }
4440 if test "${ac_cv_objext+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445
4446 int main (void)
4447 {
4448
4449  ;
4450  return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.o conftest.obj
4454 if { { ac_try="$ac_compile"
4455 case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461   (eval "$ac_compile") 2>&5
4462   ac_status=$?
4463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464   test $ac_status = 0; }; then :
4465   for ac_file in conftest.o conftest.obj conftest.*; do
4466   test -f "$ac_file" || continue;
4467   case $ac_file in
4468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4469     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4470        break;;
4471   esac
4472 done
4473 else
4474   $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "cannot compute suffix of object files: cannot compile
4480 See \`config.log' for more details" "$LINENO" 5 ; }
4481 fi
4482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4485 $as_echo "$ac_cv_objext" >&6; }
4486 OBJEXT=$ac_cv_objext
4487 ac_objext=$OBJEXT
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4489 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4490 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496 int main (void)
4497 {
4498 #ifndef __GNUC__
4499        choke me
4500 #endif
4501
4502  ;
4503  return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507   ac_compiler_gnu=yes
4508 else
4509   ac_compiler_gnu=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517 if test $ac_compiler_gnu = yes; then
4518   GCC=yes
4519 else
4520   GCC=
4521 fi
4522 ac_test_CFLAGS=${CFLAGS+set}
4523 ac_save_CFLAGS=$CFLAGS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526 if test "${ac_cv_prog_cc_g+set}" = set; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   ac_save_c_werror_flag=$ac_c_werror_flag
4530    ac_c_werror_flag=yes
4531    ac_cv_prog_cc_g=no
4532    CFLAGS="-g"
4533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535
4536 int main (void)
4537 {
4538
4539  ;
4540  return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544   ac_cv_prog_cc_g=yes
4545 else
4546   CFLAGS=""
4547       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549
4550 int main (void)
4551 {
4552
4553  ;
4554  return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558
4559 else
4560   ac_c_werror_flag=$ac_save_c_werror_flag
4561          CFLAGS="-g"
4562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h.  */
4564
4565 int main (void)
4566 {
4567
4568  ;
4569  return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573   ac_cv_prog_cc_g=yes
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580    ac_c_werror_flag=$ac_save_c_werror_flag
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4583 $as_echo "$ac_cv_prog_cc_g" >&6; }
4584 if test "$ac_test_CFLAGS" = set; then
4585   CFLAGS=$ac_save_CFLAGS
4586 elif test $ac_cv_prog_cc_g = yes; then
4587   if test "$GCC" = yes; then
4588     CFLAGS="-g -O2"
4589   else
4590     CFLAGS="-g"
4591   fi
4592 else
4593   if test "$GCC" = yes; then
4594     CFLAGS="-O2"
4595   else
4596     CFLAGS=
4597   fi
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4601 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   ac_cv_prog_cc_c89=no
4605 ac_save_CC=$CC
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #include <stdarg.h>
4609 #include <stdio.h>
4610 #include <sys/types.h>
4611 #include <sys/stat.h>
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4616      char **p;
4617      int i;
4618 {
4619   return p[i];
4620 }
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4622 {
4623   char *s;
4624   va_list v;
4625   va_start (v,p);
4626   s = g (p, va_arg (v,int));
4627   va_end (v);
4628   return s;
4629 }
4630
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4632    function prototypes and stuff, but not '\xHH' hex character constants.
4633    These don't provoke an error unfortunately, instead are silently treated
4634    as 'x'.  The following induces an error, until -std is added to get
4635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4636    array size at least.  It's necessary to write '\x00'==0 to get something
4637    that's true only with -std.  */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4639
4640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641    inside strings and character constants.  */
4642 #define FOO(x) 'x'
4643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4644
4645 int test (int i, double x);
4646 struct s1 {int (*f) (int a);};
4647 struct s2 {int (*f) (double a);};
4648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649 int argc;
4650 char **argv;
4651 int main (void)
4652 {
4653 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4654  ;
4655  return 0;
4656 }
4657 _ACEOF
4658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4660 do
4661   CC="$ac_save_CC $ac_arg"
4662   if ac_fn_c_try_compile "$LINENO"; then :
4663   ac_cv_prog_cc_c89=$ac_arg
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext
4666   test "x$ac_cv_prog_cc_c89" != "xno" && break
4667 done
4668 rm -f conftest.$ac_ext
4669 CC=$ac_save_CC
4670
4671 fi
4672 # AC_CACHE_VAL
4673 case "x$ac_cv_prog_cc_c89" in
4674   x)
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676 $as_echo "none needed" >&6; } ;;
4677   xno)
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679 $as_echo "unsupported" >&6; } ;;
4680   *)
4681     CC="$CC $ac_cv_prog_cc_c89"
4682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4684 esac
4685 if test "x$ac_cv_prog_cc_c89" != xno; then :
4686
4687 fi
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695 depcc="$CC"   am_compiler_list=
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4698 $as_echo_n "checking dependency style of $depcc... " >&6; }
4699 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4703   # We make a subdir and do the tests there.  Otherwise we can end up
4704   # making bogus files that we don't know about and never remove.  For
4705   # instance it was reported that on HP-UX the gcc test will end up
4706   # making a dummy file named `D' -- because `-MD' means `put the output
4707   # in D'.
4708   mkdir conftest.dir
4709   # Copy depcomp to subdir because otherwise we won't find it if we're
4710   # using a relative directory.
4711   cp "$am_depcomp" conftest.dir
4712   cd conftest.dir
4713   # We will build objects and dependencies in a subdirectory because
4714   # it helps to detect inapplicable dependency modes.  For instance
4715   # both Tru64's cc and ICC support -MD to output dependencies as a
4716   # side effect of compilation, but ICC will put the dependencies in
4717   # the current directory while Tru64 will put them in the object
4718   # directory.
4719   mkdir sub
4720
4721   am_cv_CC_dependencies_compiler_type=none
4722   if test "$am_compiler_list" = ""; then
4723      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4724   fi
4725   for depmode in $am_compiler_list; do
4726     # Setup a source with many dependencies, because some compilers
4727     # like to wrap large dependency lists on column 80 (with \), and
4728     # we should not choose a depcomp mode which is confused by this.
4729     #
4730     # We need to recreate these files for each test, as the compiler may
4731     # overwrite some of them when testing with obscure command lines.
4732     # This happens at least with the AIX C compiler.
4733     : > sub/conftest.c
4734     for i in 1 2 3 4 5 6; do
4735       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4736       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4737       # Solaris 8's {/usr,}/bin/sh.
4738       touch sub/conftst$i.h
4739     done
4740     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4741
4742     case $depmode in
4743     nosideeffect)
4744       # after this tag, mechanisms are not by side-effect, so they'll
4745       # only be used when explicitly requested
4746       if test "x$enable_dependency_tracking" = xyes; then
4747         continue
4748       else
4749         break
4750       fi
4751       ;;
4752     none) break ;;
4753     esac
4754     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4755     # mode.  It turns out that the SunPro C++ compiler does not properly
4756     # handle `-M -o', and we need to detect this.
4757     if depmode=$depmode \
4758        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4759        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4760        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4761          >/dev/null 2>conftest.err &&
4762        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4763        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4764        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4765       # icc doesn't choke on unknown options, it will just issue warnings
4766       # or remarks (even with -Werror).  So we grep stderr for any message
4767       # that says an option was ignored or not supported.
4768       # When given -MP, icc 7.0 and 7.1 complain thusly:
4769       #   icc: Command line warning: ignoring option '-M'; no argument required
4770       # The diagnosis changed in icc 8.0:
4771       #   icc: Command line remark: option '-MP' not supported
4772       if (grep 'ignoring option' conftest.err ||
4773           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4774         am_cv_CC_dependencies_compiler_type=$depmode
4775         break
4776       fi
4777     fi
4778   done
4779
4780   cd ..
4781   rm -rf conftest.dir
4782 else
4783   am_cv_CC_dependencies_compiler_type=none
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4790
4791
4792
4793 if
4794   test "x$enable_dependency_tracking" != xno \
4795   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4796   am__fastdepCC_TRUE=
4797   am__fastdepCC_FALSE='#'
4798 else
4799   am__fastdepCC_TRUE='#'
4800   am__fastdepCC_FALSE=
4801 fi
4802
4803
4804   CFLAGS="$ac_save_CFLAGS"
4805   CPPFLAGS="$ac_save_CPPFLAGS"
4806
4807
4808
4809
4810 curl_includes_inttypes="\
4811 /* includes start */
4812 #ifdef HAVE_SYS_TYPES_H
4813 # include <sys/types.h>
4814 #endif
4815 #ifdef HAVE_STDINT_H
4816 # include <stdint.h>
4817 #endif
4818 #ifdef HAVE_INTTYPES_H
4819 # include <inttypes.h>
4820 #endif
4821 /* includes end */"
4822   case $host_os in
4823     irix*)
4824       ac_cv_header_stdint_h="no"
4825       ;;
4826   esac
4827   for ac_header in sys/types.h stdint.h inttypes.h
4828 do :
4829   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
4831 "
4832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4833   cat >>confdefs.h <<_ACEOF
4834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835 _ACEOF
4836
4837 fi
4838
4839 done
4840
4841
4842 ac_ext=c
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4849 # On Suns, sometimes $CPP names a directory.
4850 if test -n "$CPP" && test -d "$CPP"; then
4851   CPP=
4852 fi
4853 if test -z "$CPP"; then
4854   if test "${ac_cv_prog_CPP+set}" = set; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857       # Double quotes because CPP needs to be expanded
4858     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4859     do
4860       ac_preproc_ok=false
4861 for ac_c_preproc_warn_flag in '' yes
4862 do
4863   # Use a header file that comes with gcc, so configuring glibc
4864   # with a fresh cross-compiler works.
4865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866   # <limits.h> exists even on freestanding compilers.
4867   # On the NeXT, cc -E runs the code through the compiler's parser,
4868   # not just through cpp. "Syntax error" is here to catch this case.
4869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4879
4880 else
4881   # Broken: fails on valid input.
4882 continue
4883 fi
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4885
4886   # OK, works on sane cases.  Now check whether nonexistent headers
4887   # can be detected and how.
4888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h.  */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893   # Broken: success on invalid input.
4894 continue
4895 else
4896   # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900 rm -f conftest.err conftest.i conftest.$ac_ext
4901
4902 done
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.i conftest.err conftest.$ac_ext
4905 if $ac_preproc_ok; then :
4906   break
4907 fi
4908
4909     done
4910     ac_cv_prog_CPP=$CPP
4911
4912 fi
4913   CPP=$ac_cv_prog_CPP
4914 else
4915   ac_cv_prog_CPP=$CPP
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4918 $as_echo "$CPP" >&6; }
4919 ac_preproc_ok=false
4920 for ac_c_preproc_warn_flag in '' yes
4921 do
4922   # Use a header file that comes with gcc, so configuring glibc
4923   # with a fresh cross-compiler works.
4924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925   # <limits.h> exists even on freestanding compilers.
4926   # On the NeXT, cc -E runs the code through the compiler's parser,
4927   # not just through cpp. "Syntax error" is here to catch this case.
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4935                      Syntax error
4936 _ACEOF
4937 if ac_fn_c_try_cpp "$LINENO"; then :
4938
4939 else
4940   # Broken: fails on valid input.
4941 continue
4942 fi
4943 rm -f conftest.err conftest.i conftest.$ac_ext
4944
4945   # OK, works on sane cases.  Now check whether nonexistent headers
4946   # can be detected and how.
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949 #include <ac_nonexistent.h>
4950 _ACEOF
4951 if ac_fn_c_try_cpp "$LINENO"; then :
4952   # Broken: success on invalid input.
4953 continue
4954 else
4955   # Passes both tests.
4956 ac_preproc_ok=:
4957 break
4958 fi
4959 rm -f conftest.err conftest.i conftest.$ac_ext
4960
4961 done
4962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963 rm -f conftest.i conftest.err conftest.$ac_ext
4964 if $ac_preproc_ok; then :
4965
4966 else
4967   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4969 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details" "$LINENO" 5 ; }
4971 fi
4972
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4982 if test "${ac_cv_path_GREP+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   if test -z "$GREP"; then
4986   ac_path_GREP_found=false
4987   # Loop through the user's path and test for each of PROGNAME-LIST
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_prog in grep ggrep; do
4994     for ac_exec_ext in '' $ac_executable_extensions; do
4995       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4996       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4997 # Check for GNU ac_path_GREP and select it if it is found.
4998   # Check for GNU $ac_path_GREP
4999 case `"$ac_path_GREP" --version 2>&1` in
5000 *GNU*)
5001   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5002 *)
5003   ac_count=0
5004   $as_echo_n 0123456789 >"conftest.in"
5005   while :
5006   do
5007     cat "conftest.in" "conftest.in" >"conftest.tmp"
5008     mv "conftest.tmp" "conftest.in"
5009     cp "conftest.in" "conftest.nl"
5010     $as_echo 'GREP' >> "conftest.nl"
5011     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5012     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5013     as_fn_arith $ac_count + 1 && ac_count=$as_val
5014     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5015       # Best one so far, save it but keep looking for a better one
5016       ac_cv_path_GREP="$ac_path_GREP"
5017       ac_path_GREP_max=$ac_count
5018     fi
5019     # 10*(2^10) chars as input seems more than enough
5020     test $ac_count -gt 10 && break
5021   done
5022   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5023 esac
5024
5025       $ac_path_GREP_found && break 3
5026     done
5027   done
5028   done
5029 IFS=$as_save_IFS
5030   if test -z "$ac_cv_path_GREP"; then
5031     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032   fi
5033 else
5034   ac_cv_path_GREP=$GREP
5035 fi
5036
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5039 $as_echo "$ac_cv_path_GREP" >&6; }
5040  GREP="$ac_cv_path_GREP"
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5044 $as_echo_n "checking for egrep... " >&6; }
5045 if test "${ac_cv_path_EGREP+set}" = set; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5049    then ac_cv_path_EGREP="$GREP -E"
5050    else
5051      if test -z "$EGREP"; then
5052   ac_path_EGREP_found=false
5053   # Loop through the user's path and test for each of PROGNAME-LIST
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_prog in egrep; do
5060     for ac_exec_ext in '' $ac_executable_extensions; do
5061       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5062       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5063 # Check for GNU ac_path_EGREP and select it if it is found.
5064   # Check for GNU $ac_path_EGREP
5065 case `"$ac_path_EGREP" --version 2>&1` in
5066 *GNU*)
5067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5068 *)
5069   ac_count=0
5070   $as_echo_n 0123456789 >"conftest.in"
5071   while :
5072   do
5073     cat "conftest.in" "conftest.in" >"conftest.tmp"
5074     mv "conftest.tmp" "conftest.in"
5075     cp "conftest.in" "conftest.nl"
5076     $as_echo 'EGREP' >> "conftest.nl"
5077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079     as_fn_arith $ac_count + 1 && ac_count=$as_val
5080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5081       # Best one so far, save it but keep looking for a better one
5082       ac_cv_path_EGREP="$ac_path_EGREP"
5083       ac_path_EGREP_max=$ac_count
5084     fi
5085     # 10*(2^10) chars as input seems more than enough
5086     test $ac_count -gt 10 && break
5087   done
5088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089 esac
5090
5091       $ac_path_EGREP_found && break 3
5092     done
5093   done
5094   done
5095 IFS=$as_save_IFS
5096   if test -z "$ac_cv_path_EGREP"; then
5097     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098   fi
5099 else
5100   ac_cv_path_EGREP=$EGREP
5101 fi
5102
5103    fi
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5106 $as_echo "$ac_cv_path_EGREP" >&6; }
5107  EGREP="$ac_cv_path_EGREP"
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5111 $as_echo_n "checking for ANSI C header files... " >&6; }
5112 if test "${ac_cv_header_stdc+set}" = set; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h.  */
5117 #include <stdlib.h>
5118 #include <stdarg.h>
5119 #include <string.h>
5120 #include <float.h>
5121
5122 int main (void)
5123 {
5124
5125  ;
5126  return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130   ac_cv_header_stdc=yes
5131 else
5132   ac_cv_header_stdc=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136 if test $ac_cv_header_stdc = yes; then
5137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h.  */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144   $EGREP "memchr" >/dev/null 2>&1; then :
5145
5146 else
5147   ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #include <stdlib.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161   $EGREP "free" >/dev/null 2>&1; then :
5162
5163 else
5164   ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172   if test "$cross_compiling" = yes; then :
5173   :
5174 else
5175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184                    (('a' <= (c) && (c) <= 'i') \
5185                      || ('j' <= (c) && (c) <= 'r') \
5186                      || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5189
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 int
5192 main ()
5193 {
5194   int i;
5195   for (i = 0; i < 256; i++)
5196     if (XOR (islower (i), ISLOWER (i))
5197         || toupper (i) != TOUPPER (i))
5198       return 2;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203
5204 else
5205   ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208   conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210
5211 fi
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223                   inttypes.h stdint.h unistd.h
5224 do :
5225   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 "
5228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5229   cat >>confdefs.h <<_ACEOF
5230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5231 _ACEOF
5232
5233 fi
5234
5235 done
5236
5237
5238
5239     #
5240         #
5241   if test -z "$SED"; then
5242     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5243   fi
5244   #
5245   # The cast to long int works around a bug in the HP C Compiler
5246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5248 # This bug is HP SR number 8606223364.
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5250 $as_echo_n "checking size of long... " >&6; }
5251 if test "${ac_cv_sizeof_long+set}" = set; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5255
5256 else
5257   if test "$ac_cv_type_long" = yes; then
5258      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260 as_fn_error 77 "cannot compute sizeof (long)
5261 See \`config.log' for more details" "$LINENO" 5 ; }
5262    else
5263      ac_cv_sizeof_long=0
5264    fi
5265 fi
5266
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5269 $as_echo "$ac_cv_sizeof_long" >&6; }
5270
5271
5272
5273 cat >>confdefs.h <<_ACEOF
5274 #define SIZEOF_LONG $ac_cv_sizeof_long
5275 _ACEOF
5276
5277
5278   # The cast to long int works around a bug in the HP C Compiler
5279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5281 # This bug is HP SR number 8606223364.
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5283 $as_echo_n "checking size of void*... " >&6; }
5284 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
5288
5289 else
5290   if test "$ac_cv_type_voidp" = yes; then
5291      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5293 as_fn_error 77 "cannot compute sizeof (void*)
5294 See \`config.log' for more details" "$LINENO" 5 ; }
5295    else
5296      ac_cv_sizeof_voidp=0
5297    fi
5298 fi
5299
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5302 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5303
5304
5305
5306 cat >>confdefs.h <<_ACEOF
5307 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5308 _ACEOF
5309
5310
5311   #
5312   if test -z "$ac_cv_sizeof_long" ||
5313     test "$ac_cv_sizeof_long" -eq "0"; then
5314     as_fn_error $? "cannot find out size of long." "$LINENO" 5
5315   fi
5316   if test -z "$ac_cv_sizeof_voidp" ||
5317      test "$ac_cv_sizeof_voidp" -eq "0"; then
5318     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
5319   fi
5320   #
5321   x_LP64_long=""
5322   x_LP32_long=""
5323   x_LP16_long=""
5324   #
5325   if test "$ac_cv_sizeof_long" -eq "8" &&
5326      test "$ac_cv_sizeof_voidp" -ge "8"; then
5327     x_LP64_long="long"
5328   elif test "$ac_cv_sizeof_long" -eq "4" &&
5329        test "$ac_cv_sizeof_voidp" -ge "4"; then
5330     x_LP32_long="long"
5331   elif test "$ac_cv_sizeof_long" -eq "2" &&
5332        test "$ac_cv_sizeof_voidp" -ge "2"; then
5333     x_LP16_long="long"
5334   fi
5335   #
5336     #
5337   curl_typeof_curl_off_t="unknown"
5338   curl_sizeof_curl_off_t="unknown"
5339   curl_format_curl_off_t="unknown"
5340   curl_format_curl_off_tu="unknown"
5341   #
5342   if test "$curl_typeof_curl_off_t" = "unknown"; then
5343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
5344 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
5345     for t8 in          \
5346       "$x_LP64_long"   \
5347       'int64_t'        \
5348       '__int64'        \
5349       'long long'      \
5350       '__longlong'     \
5351       '__longlong_t'   ; do
5352
5353     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
5354     tmp_includes=""
5355     tmp_source=""
5356     tmp_fmt=""
5357     case `$as_echo "$t8" | $as_tr_sh` in
5358       int64_t)
5359         tmp_includes="$curl_includes_inttypes"
5360         tmp_source="char f[] = PRId64;"
5361         tmp_fmt="PRId64"
5362         ;;
5363       int32_t)
5364         tmp_includes="$curl_includes_inttypes"
5365         tmp_source="char f[] = PRId32;"
5366         tmp_fmt="PRId32"
5367         ;;
5368       int16_t)
5369         tmp_includes="$curl_includes_inttypes"
5370         tmp_source="char f[] = PRId16;"
5371         tmp_fmt="PRId16"
5372         ;;
5373     esac
5374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h.  */
5376
5377
5378         $tmp_includes
5379         typedef $t8 curl_off_t;
5380         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
5381
5382 int main (void)
5383 {
5384
5385         $tmp_source
5386         curl_off_t dummy;
5387
5388  ;
5389  return 0;
5390 }
5391
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394
5395       if test -z "$tmp_fmt"; then
5396         curl_typeof_curl_off_t="$t8"
5397         curl_sizeof_curl_off_t="8"
5398       else
5399
5400   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5401   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5402   if test -z "$SED"; then
5403     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5404   fi
5405   if test -z "$GREP"; then
5406     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5407   fi
5408
5409   tmp_exp=""
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412
5413     $curl_includes_inttypes
5414 #ifdef $tmp_fmt
5415 CURL_DEF_TOKEN $tmp_fmt
5416 #endif
5417
5418
5419 _ACEOF
5420 if ac_fn_c_try_cpp "$LINENO"; then :
5421
5422     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5423       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5424       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5425       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5426     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5427       tmp_exp=""
5428     fi
5429
5430 fi
5431 rm -f conftest.err conftest.i conftest.$ac_ext
5432   if test -z "$tmp_exp"; then
5433     eval "$as_ac_HaveDef=no"
5434
5435   else
5436     eval "$as_ac_HaveDef=yes"
5437     eval "$as_ac_Def=\$tmp_exp"
5438
5439   fi
5440
5441         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5442         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5443         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5444           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5445           curl_typeof_curl_off_t="$t8"
5446           curl_sizeof_curl_off_t="8"
5447         fi
5448                       fi
5449
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452   fi
5453
5454     done
5455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5456 $as_echo "$curl_typeof_curl_off_t" >&6; }
5457   fi
5458   if test "$curl_typeof_curl_off_t" = "unknown"; then
5459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
5460 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
5461     for t4 in          \
5462       "$x_LP32_long"   \
5463       'int32_t'        \
5464       '__int32'        \
5465       'int'            ; do
5466
5467     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
5468     tmp_includes=""
5469     tmp_source=""
5470     tmp_fmt=""
5471     case `$as_echo "$t4" | $as_tr_sh` in
5472       int64_t)
5473         tmp_includes="$curl_includes_inttypes"
5474         tmp_source="char f[] = PRId64;"
5475         tmp_fmt="PRId64"
5476         ;;
5477       int32_t)
5478         tmp_includes="$curl_includes_inttypes"
5479         tmp_source="char f[] = PRId32;"
5480         tmp_fmt="PRId32"
5481         ;;
5482       int16_t)
5483         tmp_includes="$curl_includes_inttypes"
5484         tmp_source="char f[] = PRId16;"
5485         tmp_fmt="PRId16"
5486         ;;
5487     esac
5488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h.  */
5490
5491
5492         $tmp_includes
5493         typedef $t4 curl_off_t;
5494         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
5495
5496 int main (void)
5497 {
5498
5499         $tmp_source
5500         curl_off_t dummy;
5501
5502  ;
5503  return 0;
5504 }
5505
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508
5509       if test -z "$tmp_fmt"; then
5510         curl_typeof_curl_off_t="$t4"
5511         curl_sizeof_curl_off_t="4"
5512       else
5513
5514   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5515   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5516   if test -z "$SED"; then
5517     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5518   fi
5519   if test -z "$GREP"; then
5520     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5521   fi
5522
5523   tmp_exp=""
5524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527     $curl_includes_inttypes
5528 #ifdef $tmp_fmt
5529 CURL_DEF_TOKEN $tmp_fmt
5530 #endif
5531
5532
5533 _ACEOF
5534 if ac_fn_c_try_cpp "$LINENO"; then :
5535
5536     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5537       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5538       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5539       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5540     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5541       tmp_exp=""
5542     fi
5543
5544 fi
5545 rm -f conftest.err conftest.i conftest.$ac_ext
5546   if test -z "$tmp_exp"; then
5547     eval "$as_ac_HaveDef=no"
5548
5549   else
5550     eval "$as_ac_HaveDef=yes"
5551     eval "$as_ac_Def=\$tmp_exp"
5552
5553   fi
5554
5555         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5556         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5557         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5558           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5559           curl_typeof_curl_off_t="$t4"
5560           curl_sizeof_curl_off_t="4"
5561         fi
5562                       fi
5563
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566   fi
5567
5568     done
5569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5570 $as_echo "$curl_typeof_curl_off_t" >&6; }
5571   fi
5572   if test "$curl_typeof_curl_off_t" = "unknown"; then
5573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
5574 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
5575     for t2 in          \
5576       "$x_LP16_long"   \
5577       'int16_t'        \
5578       '__int16'        \
5579       'int'            ; do
5580
5581     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
5582     tmp_includes=""
5583     tmp_source=""
5584     tmp_fmt=""
5585     case `$as_echo "$t2" | $as_tr_sh` in
5586       int64_t)
5587         tmp_includes="$curl_includes_inttypes"
5588         tmp_source="char f[] = PRId64;"
5589         tmp_fmt="PRId64"
5590         ;;
5591       int32_t)
5592         tmp_includes="$curl_includes_inttypes"
5593         tmp_source="char f[] = PRId32;"
5594         tmp_fmt="PRId32"
5595         ;;
5596       int16_t)
5597         tmp_includes="$curl_includes_inttypes"
5598         tmp_source="char f[] = PRId16;"
5599         tmp_fmt="PRId16"
5600         ;;
5601     esac
5602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604
5605
5606         $tmp_includes
5607         typedef $t2 curl_off_t;
5608         typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
5609
5610 int main (void)
5611 {
5612
5613         $tmp_source
5614         curl_off_t dummy;
5615
5616  ;
5617  return 0;
5618 }
5619
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622
5623       if test -z "$tmp_fmt"; then
5624         curl_typeof_curl_off_t="$t2"
5625         curl_sizeof_curl_off_t="2"
5626       else
5627
5628   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5629   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5630   if test -z "$SED"; then
5631     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5632   fi
5633   if test -z "$GREP"; then
5634     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5635   fi
5636
5637   tmp_exp=""
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640
5641     $curl_includes_inttypes
5642 #ifdef $tmp_fmt
5643 CURL_DEF_TOKEN $tmp_fmt
5644 #endif
5645
5646
5647 _ACEOF
5648 if ac_fn_c_try_cpp "$LINENO"; then :
5649
5650     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5651       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5652       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5653       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5654     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5655       tmp_exp=""
5656     fi
5657
5658 fi
5659 rm -f conftest.err conftest.i conftest.$ac_ext
5660   if test -z "$tmp_exp"; then
5661     eval "$as_ac_HaveDef=no"
5662
5663   else
5664     eval "$as_ac_HaveDef=yes"
5665     eval "$as_ac_Def=\$tmp_exp"
5666
5667   fi
5668
5669         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5670         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5671         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5672           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5673           curl_typeof_curl_off_t="$t2"
5674           curl_sizeof_curl_off_t="2"
5675         fi
5676                       fi
5677
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680   fi
5681
5682     done
5683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5684 $as_echo "$curl_typeof_curl_off_t" >&6; }
5685   fi
5686   if test "$curl_typeof_curl_off_t" = "unknown"; then
5687     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
5688   fi
5689   #
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
5691 $as_echo_n "checking size of curl_off_t... " >&6; }
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
5693 $as_echo "$curl_sizeof_curl_off_t" >&6; }
5694   #
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
5696 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
5697   if test "$curl_format_curl_off_t" != "unknown"; then
5698     x_pull_headers="yes"
5699     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
5700     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
5701     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
5702     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
5703   else
5704     x_pull_headers="no"
5705     case `$as_echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
5706       long_long | __longlong | __longlong_t)
5707         curl_format_curl_off_t="lld"
5708         curl_format_curl_off_tu="llu"
5709         ;;
5710       long)
5711         curl_format_curl_off_t="ld"
5712         curl_format_curl_off_tu="lu"
5713         ;;
5714       int)
5715         curl_format_curl_off_t="d"
5716         curl_format_curl_off_tu="u"
5717         ;;
5718       __int64)
5719         curl_format_curl_off_t="I64d"
5720         curl_format_curl_off_tu="I64u"
5721         ;;
5722       __int32)
5723         curl_format_curl_off_t="I32d"
5724         curl_format_curl_off_tu="I32u"
5725         ;;
5726       __int16)
5727         curl_format_curl_off_t="I16d"
5728         curl_format_curl_off_tu="I16u"
5729         ;;
5730       *)
5731         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
5732         ;;
5733     esac
5734   fi
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
5736 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
5737   #
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
5739 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
5741 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
5742   #
5743
5744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
5745 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
5746   #
5747   curl_suffix_curl_off_t="unknown"
5748   curl_suffix_curl_off_tu="unknown"
5749   #
5750   case `$as_echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
5751     long_long | __longlong | __longlong_t)
5752       tst_suffixes="LL::"
5753       ;;
5754     long)
5755       tst_suffixes="L::"
5756       ;;
5757     int)
5758       tst_suffixes="::"
5759       ;;
5760     __int64 | int64_t)
5761       tst_suffixes="LL:i64::"
5762       ;;
5763     __int32 | int32_t)
5764       tst_suffixes="L:i32::"
5765       ;;
5766     __int16 | int16_t)
5767       tst_suffixes="L:i16::"
5768       ;;
5769     *)
5770       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
5771       ;;
5772   esac
5773   #
5774   old_IFS=$IFS; IFS=':'
5775   for tmp_ssuf in $tst_suffixes ; do
5776     IFS=$old_IFS
5777     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
5778       case $tmp_ssuf in
5779         i64 | i32 | i16)
5780           tmp_usuf="u$tmp_ssuf"
5781           ;;
5782         LL | L)
5783           tmp_usuf="U$tmp_ssuf"
5784           ;;
5785         *)
5786           tmp_usuf=""
5787           ;;
5788       esac
5789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h.  */
5791
5792
5793           $curl_includes_inttypes
5794           typedef $curl_typeof_curl_off_t new_t;
5795
5796 int main (void)
5797 {
5798
5799           new_t s1;
5800           new_t s2;
5801           s1 = -10$tmp_ssuf ;
5802           s2 =  20$tmp_ssuf ;
5803           if(s1 > s2)
5804             return 1;
5805
5806  ;
5807  return 0;
5808 }
5809
5810 _ACEOF
5811 if ac_fn_c_try_compile "$LINENO"; then :
5812
5813         curl_suffix_curl_off_t="$tmp_ssuf"
5814         curl_suffix_curl_off_tu="$tmp_usuf"
5815
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818     fi
5819   done
5820   IFS=$old_IFS
5821   #
5822   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
5823     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
5824   else
5825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
5826 $as_echo "$curl_suffix_curl_off_t" >&6; }
5827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
5828 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
5829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
5830 $as_echo "$curl_suffix_curl_off_tu" >&6; }
5831   fi
5832   #
5833
5834   #
5835   if test "$x_pull_headers" = "yes"; then
5836     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
5837
5838 cat >>confdefs.h <<_EOF
5839 #define CURL_PULL_SYS_TYPES_H 1
5840 _EOF
5841
5842     fi
5843     if test "x$ac_cv_header_stdint_h" = "xyes"; then
5844
5845 cat >>confdefs.h <<_EOF
5846 #define CURL_PULL_STDINT_H 1
5847 _EOF
5848
5849     fi
5850     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
5851
5852 cat >>confdefs.h <<_EOF
5853 #define CURL_PULL_INTTYPES_H 1
5854 _EOF
5855
5856     fi
5857   fi
5858   #
5859
5860 cat >>confdefs.h <<_EOF
5861 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
5862 _EOF
5863
5864
5865 cat >>confdefs.h <<_EOF
5866 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
5867 _EOF
5868
5869
5870 cat >>confdefs.h <<_EOF
5871 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
5872 _EOF
5873
5874
5875 cat >>confdefs.h <<_EOF
5876 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
5877 _EOF
5878
5879
5880 cat >>confdefs.h <<_EOF
5881 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
5882 _EOF
5883
5884
5885 cat >>confdefs.h <<_EOF
5886 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
5887 _EOF
5888
5889
5890 cat >>confdefs.h <<_EOF
5891 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
5892 _EOF
5893
5894   #
5895
5896
5897
5898
5899       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5900 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h.  */
5903
5904 #ifdef _AIX
5905    yes_this_is_aix
5906 #endif
5907
5908 _ACEOF
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5911
5912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 $as_echo "yes" >&6; }
5914     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5915
5916
5917 else
5918
5919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921
5922 fi
5923 rm -f conftest*
5924
5925
5926
5927
5928     #
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5930 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h.  */
5933
5934
5935
5936 int main (void)
5937 {
5938
5939 #ifdef _THREAD_SAFE
5940       int dummy=1;
5941 #else
5942       force compilation error
5943 #endif
5944
5945  ;
5946  return 0;
5947 }
5948
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951
5952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5953 $as_echo "yes" >&6; }
5954     tmp_thread_safe_initially_defined="yes"
5955
5956 else
5957
5958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960     tmp_thread_safe_initially_defined="no"
5961
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964   #
5965   if test "$tmp_thread_safe_initially_defined" = "no"; then
5966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5967 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5968
5969   case $host_os in
5970     aix[123].* | aix4.[012].*)
5971             tmp_need_thread_safe="no"
5972       ;;
5973     aix*)
5974             tmp_need_thread_safe="yes"
5975       ;;
5976     *)
5977       tmp_need_thread_safe="no"
5978       ;;
5979   esac
5980
5981     if test "$tmp_need_thread_safe" = "yes"; then
5982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983 $as_echo "yes" >&6; }
5984     else
5985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987     fi
5988   fi
5989   #
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
5991 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
5992   if test "$tmp_thread_safe_initially_defined" = "yes" ||
5993     test "$tmp_need_thread_safe" = "yes"; then
5994
5995
5996 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
5997
5998 cat >>confdefs.h <<_EOF
5999 #ifndef _THREAD_SAFE
6000 #  define _THREAD_SAFE
6001 #endif
6002 _EOF
6003
6004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6006   else
6007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009   fi
6010   #
6011
6012
6013     #
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6015 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h.  */
6018
6019
6020
6021 int main (void)
6022 {
6023
6024 #ifdef _REENTRANT
6025       int dummy=1;
6026 #else
6027       force compilation error
6028 #endif
6029
6030  ;
6031  return 0;
6032 }
6033
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036
6037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038 $as_echo "yes" >&6; }
6039     tmp_reentrant_initially_defined="yes"
6040
6041 else
6042
6043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045     tmp_reentrant_initially_defined="no"
6046
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049   #
6050   if test "$tmp_reentrant_initially_defined" = "no"; then
6051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6052 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6053
6054   case $host_os in
6055     solaris*)
6056       tmp_need_reentrant="yes"
6057       ;;
6058     *)
6059       tmp_need_reentrant="no"
6060       ;;
6061   esac
6062
6063     if test "$tmp_need_reentrant" = "no"; then
6064
6065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h.  */
6067
6068
6069 #include <errno.h>
6070
6071 int main (void)
6072 {
6073
6074       if(0 != errno)
6075         return 1;
6076
6077  ;
6078  return 0;
6079 }
6080
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083
6084     tmp_errno="yes"
6085
6086 else
6087
6088     tmp_errno="no"
6089
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092   if test "$tmp_errno" = "yes"; then
6093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h.  */
6095
6096
6097 #include <errno.h>
6098
6099 int main (void)
6100 {
6101
6102 #ifdef errno
6103         int dummy=1;
6104 #else
6105         force compilation error
6106 #endif
6107
6108  ;
6109  return 0;
6110 }
6111
6112 _ACEOF
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114
6115       tmp_errno="errno_macro_defined"
6116
6117 else
6118
6119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h.  */
6121
6122
6123 #define _REENTRANT
6124 #include <errno.h>
6125
6126 int main (void)
6127 {
6128
6129 #ifdef errno
6130           int dummy=1;
6131 #else
6132           force compilation error
6133 #endif
6134
6135  ;
6136  return 0;
6137 }
6138
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141
6142         tmp_errno="errno_macro_needs_reentrant"
6143         tmp_need_reentrant="yes"
6144
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150   fi
6151
6152     fi
6153     if test "$tmp_need_reentrant" = "no"; then
6154
6155   if test "$tmp_need_reentrant" = "no"; then
6156
6157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h.  */
6159
6160
6161 #define gmtime_r innocuous_gmtime_r
6162 #ifdef __STDC__
6163 # include <limits.h>
6164 #else
6165 # include <assert.h>
6166 #endif
6167 #undef gmtime_r
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 char gmtime_r ();
6172 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6173 choke me
6174 #endif
6175
6176 int main (void)
6177 {
6178 return gmtime_r ();
6179  ;
6180  return 0;
6181 }
6182
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185
6186     tmp_gmtime_r="yes"
6187
6188 else
6189
6190     tmp_gmtime_r="no"
6191
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext \
6194     conftest$ac_exeext conftest.$ac_ext
6195   if test "$tmp_gmtime_r" = "yes"; then
6196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198
6199 #include <sys/types.h>
6200 #include <time.h>
6201
6202 _ACEOF
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6205
6206       tmp_gmtime_r="proto_declared"
6207
6208 else
6209
6210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h.  */
6212
6213 #define _REENTRANT
6214 #include <sys/types.h>
6215 #include <time.h>
6216
6217 _ACEOF
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6220
6221         tmp_gmtime_r="proto_needs_reentrant"
6222         tmp_need_reentrant="yes"
6223
6224 fi
6225 rm -f conftest*
6226
6227
6228 fi
6229 rm -f conftest*
6230
6231   fi
6232
6233   fi
6234   if test "$tmp_need_reentrant" = "no"; then
6235
6236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239
6240 #define localtime_r innocuous_localtime_r
6241 #ifdef __STDC__
6242 # include <limits.h>
6243 #else
6244 # include <assert.h>
6245 #endif
6246 #undef localtime_r
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 char localtime_r ();
6251 #if defined __stub_localtime_r || defined __stub___localtime_r
6252 choke me
6253 #endif
6254
6255 int main (void)
6256 {
6257 return localtime_r ();
6258  ;
6259  return 0;
6260 }
6261
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"; then :
6264
6265     tmp_localtime_r="yes"
6266
6267 else
6268
6269     tmp_localtime_r="no"
6270
6271 fi
6272 rm -f core conftest.err conftest.$ac_objext \
6273     conftest$ac_exeext conftest.$ac_ext
6274   if test "$tmp_localtime_r" = "yes"; then
6275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h.  */
6277
6278 #include <sys/types.h>
6279 #include <time.h>
6280
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283   $EGREP "localtime_r" >/dev/null 2>&1; then :
6284
6285       tmp_localtime_r="proto_declared"
6286
6287 else
6288
6289       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h.  */
6291
6292 #define _REENTRANT
6293 #include <sys/types.h>
6294 #include <time.h>
6295
6296 _ACEOF
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298   $EGREP "localtime_r" >/dev/null 2>&1; then :
6299
6300         tmp_localtime_r="proto_needs_reentrant"
6301         tmp_need_reentrant="yes"
6302
6303 fi
6304 rm -f conftest*
6305
6306
6307 fi
6308 rm -f conftest*
6309
6310   fi
6311
6312   fi
6313   if test "$tmp_need_reentrant" = "no"; then
6314
6315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317
6318
6319 #define strerror_r innocuous_strerror_r
6320 #ifdef __STDC__
6321 # include <limits.h>
6322 #else
6323 # include <assert.h>
6324 #endif
6325 #undef strerror_r
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 char strerror_r ();
6330 #if defined __stub_strerror_r || defined __stub___strerror_r
6331 choke me
6332 #endif
6333
6334 int main (void)
6335 {
6336 return strerror_r ();
6337  ;
6338  return 0;
6339 }
6340
6341 _ACEOF
6342 if ac_fn_c_try_link "$LINENO"; then :
6343
6344     tmp_strerror_r="yes"
6345
6346 else
6347
6348     tmp_strerror_r="no"
6349
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext \
6352     conftest$ac_exeext conftest.$ac_ext
6353   if test "$tmp_strerror_r" = "yes"; then
6354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h.  */
6356
6357 #include <sys/types.h>
6358 #include <string.h>
6359
6360 _ACEOF
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362   $EGREP "strerror_r" >/dev/null 2>&1; then :
6363
6364       tmp_strerror_r="proto_declared"
6365
6366 else
6367
6368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h.  */
6370
6371 #define _REENTRANT
6372 #include <sys/types.h>
6373 #include <string.h>
6374
6375 _ACEOF
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377   $EGREP "strerror_r" >/dev/null 2>&1; then :
6378
6379         tmp_strerror_r="proto_needs_reentrant"
6380         tmp_need_reentrant="yes"
6381
6382 fi
6383 rm -f conftest*
6384
6385
6386 fi
6387 rm -f conftest*
6388
6389   fi
6390
6391   fi
6392   if test "$tmp_need_reentrant" = "no"; then
6393
6394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h.  */
6396
6397
6398 #define strtok_r innocuous_strtok_r
6399 #ifdef __STDC__
6400 # include <limits.h>
6401 #else
6402 # include <assert.h>
6403 #endif
6404 #undef strtok_r
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 char strtok_r ();
6409 #if defined __stub_strtok_r || defined __stub___strtok_r
6410 choke me
6411 #endif
6412
6413 int main (void)
6414 {
6415 return strtok_r ();
6416  ;
6417  return 0;
6418 }
6419
6420 _ACEOF
6421 if ac_fn_c_try_link "$LINENO"; then :
6422
6423     tmp_strtok_r="yes"
6424
6425 else
6426
6427     tmp_strtok_r="no"
6428
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext \
6431     conftest$ac_exeext conftest.$ac_ext
6432   if test "$tmp_strtok_r" = "yes"; then
6433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h.  */
6435
6436 #include <sys/types.h>
6437 #include <string.h>
6438
6439 _ACEOF
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441   $EGREP "strtok_r" >/dev/null 2>&1; then :
6442
6443       tmp_strtok_r="proto_declared"
6444
6445 else
6446
6447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 #define _REENTRANT
6451 #include <sys/types.h>
6452 #include <string.h>
6453
6454 _ACEOF
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456   $EGREP "strtok_r" >/dev/null 2>&1; then :
6457
6458         tmp_strtok_r="proto_needs_reentrant"
6459         tmp_need_reentrant="yes"
6460
6461 fi
6462 rm -f conftest*
6463
6464
6465 fi
6466 rm -f conftest*
6467
6468   fi
6469
6470   fi
6471   if test "$tmp_need_reentrant" = "no"; then
6472
6473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475
6476
6477 #define inet_ntoa_r innocuous_inet_ntoa_r
6478 #ifdef __STDC__
6479 # include <limits.h>
6480 #else
6481 # include <assert.h>
6482 #endif
6483 #undef inet_ntoa_r
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 char inet_ntoa_r ();
6488 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6489 choke me
6490 #endif
6491
6492 int main (void)
6493 {
6494 return inet_ntoa_r ();
6495  ;
6496  return 0;
6497 }
6498
6499 _ACEOF
6500 if ac_fn_c_try_link "$LINENO"; then :
6501
6502     tmp_inet_ntoa_r="yes"
6503
6504 else
6505
6506     tmp_inet_ntoa_r="no"
6507
6508 fi
6509 rm -f core conftest.err conftest.$ac_objext \
6510     conftest$ac_exeext conftest.$ac_ext
6511   if test "$tmp_inet_ntoa_r" = "yes"; then
6512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h.  */
6514
6515 #include <sys/types.h>
6516 #include <sys/socket.h>
6517 #include <netinet/in.h>
6518 #include <arpa/inet.h>
6519
6520 _ACEOF
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6523
6524       tmp_inet_ntoa_r="proto_declared"
6525
6526 else
6527
6528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h.  */
6530
6531 #define _REENTRANT
6532 #include <sys/types.h>
6533 #include <sys/socket.h>
6534 #include <netinet/in.h>
6535 #include <arpa/inet.h>
6536
6537 _ACEOF
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6540
6541         tmp_inet_ntoa_r="proto_needs_reentrant"
6542         tmp_need_reentrant="yes"
6543
6544 fi
6545 rm -f conftest*
6546
6547
6548 fi
6549 rm -f conftest*
6550
6551   fi
6552
6553   fi
6554   if test "$tmp_need_reentrant" = "no"; then
6555
6556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h.  */
6558
6559
6560 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6561 #ifdef __STDC__
6562 # include <limits.h>
6563 #else
6564 # include <assert.h>
6565 #endif
6566 #undef gethostbyaddr_r
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 char gethostbyaddr_r ();
6571 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6572 choke me
6573 #endif
6574
6575 int main (void)
6576 {
6577 return gethostbyaddr_r ();
6578  ;
6579  return 0;
6580 }
6581
6582 _ACEOF
6583 if ac_fn_c_try_link "$LINENO"; then :
6584
6585     tmp_gethostbyaddr_r="yes"
6586
6587 else
6588
6589     tmp_gethostbyaddr_r="no"
6590
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext \
6593     conftest$ac_exeext conftest.$ac_ext
6594   if test "$tmp_gethostbyaddr_r" = "yes"; then
6595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h.  */
6597
6598 #include <sys/types.h>
6599 #include <netdb.h>
6600
6601 _ACEOF
6602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6604
6605       tmp_gethostbyaddr_r="proto_declared"
6606
6607 else
6608
6609       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h.  */
6611
6612 #define _REENTRANT
6613 #include <sys/types.h>
6614 #include <netdb.h>
6615
6616 _ACEOF
6617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6619
6620         tmp_gethostbyaddr_r="proto_needs_reentrant"
6621         tmp_need_reentrant="yes"
6622
6623 fi
6624 rm -f conftest*
6625
6626
6627 fi
6628 rm -f conftest*
6629
6630   fi
6631
6632   fi
6633   if test "$tmp_need_reentrant" = "no"; then
6634
6635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h.  */
6637
6638
6639 #define gethostbyname_r innocuous_gethostbyname_r
6640 #ifdef __STDC__
6641 # include <limits.h>
6642 #else
6643 # include <assert.h>
6644 #endif
6645 #undef gethostbyname_r
6646 #ifdef __cplusplus
6647 extern "C"
6648 #endif
6649 char gethostbyname_r ();
6650 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6651 choke me
6652 #endif
6653
6654 int main (void)
6655 {
6656 return gethostbyname_r ();
6657  ;
6658  return 0;
6659 }
6660
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663
6664     tmp_gethostbyname_r="yes"
6665
6666 else
6667
6668     tmp_gethostbyname_r="no"
6669
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672     conftest$ac_exeext conftest.$ac_ext
6673   if test "$tmp_gethostbyname_r" = "yes"; then
6674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h.  */
6676
6677 #include <sys/types.h>
6678 #include <netdb.h>
6679
6680 _ACEOF
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6683
6684       tmp_gethostbyname_r="proto_declared"
6685
6686 else
6687
6688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h.  */
6690
6691 #define _REENTRANT
6692 #include <sys/types.h>
6693 #include <netdb.h>
6694
6695 _ACEOF
6696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6698
6699         tmp_gethostbyname_r="proto_needs_reentrant"
6700         tmp_need_reentrant="yes"
6701
6702 fi
6703 rm -f conftest*
6704
6705
6706 fi
6707 rm -f conftest*
6708
6709   fi
6710
6711   fi
6712   if test "$tmp_need_reentrant" = "no"; then
6713
6714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h.  */
6716
6717
6718 #define getprotobyname_r innocuous_getprotobyname_r
6719 #ifdef __STDC__
6720 # include <limits.h>
6721 #else
6722 # include <assert.h>
6723 #endif
6724 #undef getprotobyname_r
6725 #ifdef __cplusplus
6726 extern "C"
6727 #endif
6728 char getprotobyname_r ();
6729 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6730 choke me
6731 #endif
6732
6733 int main (void)
6734 {
6735 return getprotobyname_r ();
6736  ;
6737  return 0;
6738 }
6739
6740 _ACEOF
6741 if ac_fn_c_try_link "$LINENO"; then :
6742
6743     tmp_getprotobyname_r="yes"
6744
6745 else
6746
6747     tmp_getprotobyname_r="no"
6748
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext \
6751     conftest$ac_exeext conftest.$ac_ext
6752   if test "$tmp_getprotobyname_r" = "yes"; then
6753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h.  */
6755
6756 #include <sys/types.h>
6757 #include <netdb.h>
6758
6759 _ACEOF
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6762
6763       tmp_getprotobyname_r="proto_declared"
6764
6765 else
6766
6767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h.  */
6769
6770 #define _REENTRANT
6771 #include <sys/types.h>
6772 #include <netdb.h>
6773
6774 _ACEOF
6775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6776   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6777
6778         tmp_getprotobyname_r="proto_needs_reentrant"
6779         tmp_need_reentrant="yes"
6780
6781 fi
6782 rm -f conftest*
6783
6784
6785 fi
6786 rm -f conftest*
6787
6788   fi
6789
6790   fi
6791   if test "$tmp_need_reentrant" = "no"; then
6792
6793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h.  */
6795
6796
6797 #define getservbyport_r innocuous_getservbyport_r
6798 #ifdef __STDC__
6799 # include <limits.h>
6800 #else
6801 # include <assert.h>
6802 #endif
6803 #undef getservbyport_r
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 char getservbyport_r ();
6808 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6809 choke me
6810 #endif
6811
6812 int main (void)
6813 {
6814 return getservbyport_r ();
6815  ;
6816  return 0;
6817 }
6818
6819 _ACEOF
6820 if ac_fn_c_try_link "$LINENO"; then :
6821
6822     tmp_getservbyport_r="yes"
6823
6824 else
6825
6826     tmp_getservbyport_r="no"
6827
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext \
6830     conftest$ac_exeext conftest.$ac_ext
6831   if test "$tmp_getservbyport_r" = "yes"; then
6832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h.  */
6834
6835 #include <sys/types.h>
6836 #include <netdb.h>
6837
6838 _ACEOF
6839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6841
6842       tmp_getservbyport_r="proto_declared"
6843
6844 else
6845
6846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848
6849 #define _REENTRANT
6850 #include <sys/types.h>
6851 #include <netdb.h>
6852
6853 _ACEOF
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6856
6857         tmp_getservbyport_r="proto_needs_reentrant"
6858         tmp_need_reentrant="yes"
6859
6860 fi
6861 rm -f conftest*
6862
6863
6864 fi
6865 rm -f conftest*
6866
6867   fi
6868
6869   fi
6870
6871     fi
6872     if test "$tmp_need_reentrant" = "yes"; then
6873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6874 $as_echo "yes" >&6; }
6875     else
6876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878     fi
6879   fi
6880   #
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6882 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6883   if test "$tmp_reentrant_initially_defined" = "yes" ||
6884     test "$tmp_need_reentrant" = "yes"; then
6885
6886
6887 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6888
6889 cat >>confdefs.h <<_EOF
6890 #ifndef _REENTRANT
6891 #  define _REENTRANT
6892 #endif
6893 _EOF
6894
6895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6897   else
6898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900   fi
6901   #
6902
6903
6904 # Check whether --enable-largefile was given.
6905 if test "${enable_largefile+set}" = set; then :
6906   enableval=$enable_largefile;
6907 fi
6908
6909 if test "$enable_largefile" != no; then
6910
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6912 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6913 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   ac_cv_sys_largefile_CC=no
6917      if test "$GCC" != yes; then
6918        ac_save_CC=$CC
6919        while :; do
6920          # IRIX 6.2 and later do not support large files by default,
6921          # so use the C compiler's -n32 option if that helps.
6922          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924 #include <sys/types.h>
6925  /* Check that off_t can represent 2**63 - 1 correctly.
6926     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6927     since some C++ compilers masquerading as C compilers
6928     incorrectly reject 9223372036854775807.  */
6929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6930   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6931                        && LARGE_OFF_T % 2147483647 == 1)
6932                       ? 1 : -1];
6933 int main (void)
6934 {
6935
6936  ;
6937  return 0;
6938 }
6939 _ACEOF
6940          if ac_fn_c_try_compile "$LINENO"; then :
6941   break
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext
6944          CC="$CC -n32"
6945          if ac_fn_c_try_compile "$LINENO"; then :
6946   ac_cv_sys_largefile_CC=' -n32'; break
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext
6949          break
6950        done
6951        CC=$ac_save_CC
6952        rm -f conftest.$ac_ext
6953     fi
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6956 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6957   if test "$ac_cv_sys_largefile_CC" != no; then
6958     CC=$CC$ac_cv_sys_largefile_CC
6959   fi
6960
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6962 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6963 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   while :; do
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969 #include <sys/types.h>
6970  /* Check that off_t can represent 2**63 - 1 correctly.
6971     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6972     since some C++ compilers masquerading as C compilers
6973     incorrectly reject 9223372036854775807.  */
6974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6975   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6976                        && LARGE_OFF_T % 2147483647 == 1)
6977                       ? 1 : -1];
6978 int main (void)
6979 {
6980
6981  ;
6982  return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986   ac_cv_sys_file_offset_bits=no; break
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #define _FILE_OFFSET_BITS 64
6992 #include <sys/types.h>
6993  /* Check that off_t can represent 2**63 - 1 correctly.
6994     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6995     since some C++ compilers masquerading as C compilers
6996     incorrectly reject 9223372036854775807.  */
6997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6998   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6999                        && LARGE_OFF_T % 2147483647 == 1)
7000                       ? 1 : -1];
7001 int main (void)
7002 {
7003
7004  ;
7005  return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009   ac_cv_sys_file_offset_bits=64; break
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012   ac_cv_sys_file_offset_bits=unknown
7013   break
7014 done
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7017 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7018 case $ac_cv_sys_file_offset_bits in #(
7019   no | unknown) ;;
7020   *)
7021 cat >>confdefs.h <<_ACEOF
7022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7023 _ACEOF
7024 ;;
7025 esac
7026 rm -rf conftest*
7027   if test $ac_cv_sys_file_offset_bits = unknown; then
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7029 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7030 if test "${ac_cv_sys_large_files+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   while :; do
7034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h.  */
7036 #include <sys/types.h>
7037  /* Check that off_t can represent 2**63 - 1 correctly.
7038     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7039     since some C++ compilers masquerading as C compilers
7040     incorrectly reject 9223372036854775807.  */
7041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7042   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7043                        && LARGE_OFF_T % 2147483647 == 1)
7044                       ? 1 : -1];
7045 int main (void)
7046 {
7047
7048  ;
7049  return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_compile "$LINENO"; then :
7053   ac_cv_sys_large_files=no; break
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 #define _LARGE_FILES 1
7059 #include <sys/types.h>
7060  /* Check that off_t can represent 2**63 - 1 correctly.
7061     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7062     since some C++ compilers masquerading as C compilers
7063     incorrectly reject 9223372036854775807.  */
7064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7065   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7066                        && LARGE_OFF_T % 2147483647 == 1)
7067                       ? 1 : -1];
7068 int main (void)
7069 {
7070
7071  ;
7072  return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076   ac_cv_sys_large_files=1; break
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079   ac_cv_sys_large_files=unknown
7080   break
7081 done
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7084 $as_echo "$ac_cv_sys_large_files" >&6; }
7085 case $ac_cv_sys_large_files in #(
7086   no | unknown) ;;
7087   *)
7088 cat >>confdefs.h <<_ACEOF
7089 #define _LARGE_FILES $ac_cv_sys_large_files
7090 _ACEOF
7091 ;;
7092 esac
7093 rm -rf conftest*
7094   fi
7095 fi
7096
7097
7098 enable_win32_dll=yes
7099
7100 case $host in
7101 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7102   if test -n "$ac_tool_prefix"; then
7103   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}as; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_prog_AS+set}" = set; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   if test -n "$AS"; then
7111   ac_cv_prog_AS="$AS" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_AS="${ac_tool_prefix}as"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 AS=$ac_cv_prog_AS
7131 if test -n "$AS"; then
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7133 $as_echo "$AS" >&6; }
7134 else
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139
7140 fi
7141 if test -z "$ac_cv_prog_AS"; then
7142   ac_ct_AS=$AS
7143   # Extract the first word of "as", so it can be a program name with args.
7144 set dummy as; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   if test -n "$ac_ct_AS"; then
7151   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_prog_ac_ct_AS="as"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7171 if test -n "$ac_ct_AS"; then
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7173 $as_echo "$ac_ct_AS" >&6; }
7174 else
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179   if test "x$ac_ct_AS" = x; then
7180     AS="false"
7181   else
7182     case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7187 esac
7188     AS=$ac_ct_AS
7189   fi
7190 else
7191   AS="$ac_cv_prog_AS"
7192 fi
7193
7194   if test -n "$ac_tool_prefix"; then
7195   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$DLLTOOL"; then
7203   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 DLLTOOL=$ac_cv_prog_DLLTOOL
7223 if test -n "$DLLTOOL"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7225 $as_echo "$DLLTOOL" >&6; }
7226 else
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_DLLTOOL"; then
7234   ac_ct_DLLTOOL=$DLLTOOL
7235   # Extract the first word of "dlltool", so it can be a program name with args.
7236 set dummy dlltool; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242   if test -n "$ac_ct_DLLTOOL"; then
7243   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250     for ac_exec_ext in '' $ac_executable_extensions; do
7251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257   done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7263 if test -n "$ac_ct_DLLTOOL"; then
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7265 $as_echo "$ac_ct_DLLTOOL" >&6; }
7266 else
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271   if test "x$ac_ct_DLLTOOL" = x; then
7272     DLLTOOL="false"
7273   else
7274     case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280     DLLTOOL=$ac_ct_DLLTOOL
7281   fi
7282 else
7283   DLLTOOL="$ac_cv_prog_DLLTOOL"
7284 fi
7285
7286   if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$OBJDUMP"; then
7295   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 OBJDUMP=$ac_cv_prog_OBJDUMP
7315 if test -n "$OBJDUMP"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7317 $as_echo "$OBJDUMP" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_OBJDUMP"; then
7326   ac_ct_OBJDUMP=$OBJDUMP
7327   # Extract the first word of "objdump", so it can be a program name with args.
7328 set dummy objdump; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_OBJDUMP"; then
7335   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7355 if test -n "$ac_ct_OBJDUMP"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7357 $as_echo "$ac_ct_OBJDUMP" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_OBJDUMP" = x; then
7364     OBJDUMP="false"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     OBJDUMP=$ac_ct_OBJDUMP
7373   fi
7374 else
7375   OBJDUMP="$ac_cv_prog_OBJDUMP"
7376 fi
7377
7378   ;;
7379 esac
7380
7381 test -z "$AS" && AS=as
7382
7383
7384
7385
7386
7387 test -z "$DLLTOOL" && DLLTOOL=dlltool
7388
7389
7390
7391
7392
7393 test -z "$OBJDUMP" && OBJDUMP=objdump
7394
7395
7396
7397
7398
7399
7400
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5
7403 $as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; }
7404 case $host in
7405   x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
7406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7408     with_pic=yes
7409     ;;
7410   *)
7411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413     ;;
7414 esac
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5
7417 $as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; }
7418 case $CC in
7419   icc | */icc)
7420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7422     with_pic=yes
7423     ;;
7424   *)
7425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427     ;;
7428 esac
7429
7430 case `pwd` in
7431   *\ * | *\     *)
7432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7433 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7434 esac
7435
7436
7437
7438 macro_version='2.2.6b'
7439 macro_revision='1.3017'
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 ltmain="$ac_aux_dir/ltmain.sh"
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7456 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7457 if test "${ac_cv_path_SED+set}" = set; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7461      for ac_i in 1 2 3 4 5 6 7; do
7462        ac_script="$ac_script$as_nl$ac_script"
7463      done
7464      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7465      { ac_script=; unset ac_script;}
7466      if test -z "$SED"; then
7467   ac_path_SED_found=false
7468   # Loop through the user's path and test for each of PROGNAME-LIST
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474     for ac_prog in sed gsed; do
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7477       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7478 # Check for GNU ac_path_SED and select it if it is found.
7479   # Check for GNU $ac_path_SED
7480 case `"$ac_path_SED" --version 2>&1` in
7481 *GNU*)
7482   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7483 *)
7484   ac_count=0
7485   $as_echo_n 0123456789 >"conftest.in"
7486   while :
7487   do
7488     cat "conftest.in" "conftest.in" >"conftest.tmp"
7489     mv "conftest.tmp" "conftest.in"
7490     cp "conftest.in" "conftest.nl"
7491     $as_echo '' >> "conftest.nl"
7492     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7493     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7494     as_fn_arith $ac_count + 1 && ac_count=$as_val
7495     if test $ac_count -gt ${ac_path_SED_max-0}; then
7496       # Best one so far, save it but keep looking for a better one
7497       ac_cv_path_SED="$ac_path_SED"
7498       ac_path_SED_max=$ac_count
7499     fi
7500     # 10*(2^10) chars as input seems more than enough
7501     test $ac_count -gt 10 && break
7502   done
7503   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7504 esac
7505
7506       $ac_path_SED_found && break 3
7507     done
7508   done
7509   done
7510 IFS=$as_save_IFS
7511   if test -z "$ac_cv_path_SED"; then
7512     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7513   fi
7514 else
7515   ac_cv_path_SED=$SED
7516 fi
7517
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7520 $as_echo "$ac_cv_path_SED" >&6; }
7521  SED="$ac_cv_path_SED"
7522   rm -f conftest.sed
7523
7524 test -z "$SED" && SED=sed
7525 Xsed="$SED -e 1s/^X//"
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7538 $as_echo_n "checking for fgrep... " >&6; }
7539 if test "${ac_cv_path_FGREP+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7543    then ac_cv_path_FGREP="$GREP -F"
7544    else
7545      if test -z "$FGREP"; then
7546   ac_path_FGREP_found=false
7547   # Loop through the user's path and test for each of PROGNAME-LIST
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_prog in fgrep; do
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7556       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7557 # Check for GNU ac_path_FGREP and select it if it is found.
7558   # Check for GNU $ac_path_FGREP
7559 case `"$ac_path_FGREP" --version 2>&1` in
7560 *GNU*)
7561   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7562 *)
7563   ac_count=0
7564   $as_echo_n 0123456789 >"conftest.in"
7565   while :
7566   do
7567     cat "conftest.in" "conftest.in" >"conftest.tmp"
7568     mv "conftest.tmp" "conftest.in"
7569     cp "conftest.in" "conftest.nl"
7570     $as_echo 'FGREP' >> "conftest.nl"
7571     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7573     as_fn_arith $ac_count + 1 && ac_count=$as_val
7574     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7575       # Best one so far, save it but keep looking for a better one
7576       ac_cv_path_FGREP="$ac_path_FGREP"
7577       ac_path_FGREP_max=$ac_count
7578     fi
7579     # 10*(2^10) chars as input seems more than enough
7580     test $ac_count -gt 10 && break
7581   done
7582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7583 esac
7584
7585       $ac_path_FGREP_found && break 3
7586     done
7587   done
7588   done
7589 IFS=$as_save_IFS
7590   if test -z "$ac_cv_path_FGREP"; then
7591     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7592   fi
7593 else
7594   ac_cv_path_FGREP=$FGREP
7595 fi
7596
7597    fi
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7600 $as_echo "$ac_cv_path_FGREP" >&6; }
7601  FGREP="$ac_cv_path_FGREP"
7602
7603
7604 test -z "$GREP" && GREP=grep
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 # Check whether --with-gnu-ld was given.
7625 if test "${with_gnu_ld+set}" = set; then :
7626   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7627 else
7628   with_gnu_ld=no
7629 fi
7630
7631 ac_prog=ld
7632 if test "$GCC" = yes; then
7633   # Check if gcc -print-prog-name=ld gives a path.
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7635 $as_echo_n "checking for ld used by $CC... " >&6; }
7636   case $host in
7637   *-*-mingw*)
7638     # gcc leaves a trailing carriage return which upsets mingw
7639     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7640   *)
7641     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7642   esac
7643   case $ac_prog in
7644     # Accept absolute paths.
7645     [\\/]* | ?:[\\/]*)
7646       re_direlt='/[^/][^/]*/\.\./'
7647       # Canonicalize the pathname of ld
7648       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7649       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7650         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7651       done
7652       test -z "$LD" && LD="$ac_prog"
7653       ;;
7654   "")
7655     # If it fails, then pretend we aren't using GCC.
7656     ac_prog=ld
7657     ;;
7658   *)
7659     # If it is relative, then search for the first ld in PATH.
7660     with_gnu_ld=unknown
7661     ;;
7662   esac
7663 elif test "$with_gnu_ld" = yes; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7665 $as_echo_n "checking for GNU ld... " >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7668 $as_echo_n "checking for non-GNU ld... " >&6; }
7669 fi
7670 if test "${lt_cv_path_LD+set}" = set; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   if test -z "$LD"; then
7674   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7675   for ac_dir in $PATH; do
7676     IFS="$lt_save_ifs"
7677     test -z "$ac_dir" && ac_dir=.
7678     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7679       lt_cv_path_LD="$ac_dir/$ac_prog"
7680       # Check to see if the program is GNU ld.  I'd rather use --version,
7681       # but apparently some variants of GNU ld only accept -v.
7682       # Break only if it was the GNU/non-GNU ld that we prefer.
7683       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7684       *GNU* | *'with BFD'*)
7685         test "$with_gnu_ld" != no && break
7686         ;;
7687       *)
7688         test "$with_gnu_ld" != yes && break
7689         ;;
7690       esac
7691     fi
7692   done
7693   IFS="$lt_save_ifs"
7694 else
7695   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7696 fi
7697 fi
7698
7699 LD="$lt_cv_path_LD"
7700 if test -n "$LD"; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7702 $as_echo "$LD" >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7709 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7710 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7714 case `$LD -v 2>&1 </dev/null` in
7715 *GNU* | *'with BFD'*)
7716   lt_cv_prog_gnu_ld=yes
7717   ;;
7718 *)
7719   lt_cv_prog_gnu_ld=no
7720   ;;
7721 esac
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7724 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7725 with_gnu_ld=$lt_cv_prog_gnu_ld
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7736 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7737 if test "${lt_cv_path_NM+set}" = set; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   if test -n "$NM"; then
7741   # Let the user override the test.
7742   lt_cv_path_NM="$NM"
7743 else
7744   lt_nm_to_check="${ac_tool_prefix}nm"
7745   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7746     lt_nm_to_check="$lt_nm_to_check nm"
7747   fi
7748   for lt_tmp_nm in $lt_nm_to_check; do
7749     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7751       IFS="$lt_save_ifs"
7752       test -z "$ac_dir" && ac_dir=.
7753       tmp_nm="$ac_dir/$lt_tmp_nm"
7754       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7755         # Check to see if the nm accepts a BSD-compat flag.
7756         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7757         #   nm: unknown option "B" ignored
7758         # Tru64's nm complains that /dev/null is an invalid object file
7759         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7760         */dev/null* | *'Invalid file or object type'*)
7761           lt_cv_path_NM="$tmp_nm -B"
7762           break
7763           ;;
7764         *)
7765           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7766           */dev/null*)
7767             lt_cv_path_NM="$tmp_nm -p"
7768             break
7769             ;;
7770           *)
7771             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7772             continue # so that we can try to find one that supports BSD flags
7773             ;;
7774           esac
7775           ;;
7776         esac
7777       fi
7778     done
7779     IFS="$lt_save_ifs"
7780   done
7781   : ${lt_cv_path_NM=no}
7782 fi
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7785 $as_echo "$lt_cv_path_NM" >&6; }
7786 if test "$lt_cv_path_NM" != "no"; then
7787   NM="$lt_cv_path_NM"
7788 else
7789   # Didn't find any BSD compatible name lister, look for dumpbin.
7790   if test -n "$ac_tool_prefix"; then
7791   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7792   do
7793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   if test -n "$DUMPBIN"; then
7801   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808     for ac_exec_ext in '' $ac_executable_extensions; do
7809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815   done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 DUMPBIN=$ac_cv_prog_DUMPBIN
7821 if test -n "$DUMPBIN"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7823 $as_echo "$DUMPBIN" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829
7830     test -n "$DUMPBIN" && break
7831   done
7832 fi
7833 if test -z "$DUMPBIN"; then
7834   ac_ct_DUMPBIN=$DUMPBIN
7835   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7836 do
7837   # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$ac_ct_DUMPBIN"; then
7845   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7865 if test -n "$ac_ct_DUMPBIN"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7867 $as_echo "$ac_ct_DUMPBIN" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873
7874   test -n "$ac_ct_DUMPBIN" && break
7875 done
7876
7877   if test "x$ac_ct_DUMPBIN" = x; then
7878     DUMPBIN=":"
7879   else
7880     case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886     DUMPBIN=$ac_ct_DUMPBIN
7887   fi
7888 fi
7889
7890
7891   if test "$DUMPBIN" != ":"; then
7892     NM="$DUMPBIN"
7893   fi
7894 fi
7895 test -z "$NM" && NM=nm
7896
7897
7898
7899
7900
7901
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7903 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7904 if test "${lt_cv_nm_interface+set}" = set; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   lt_cv_nm_interface="BSD nm"
7908   echo "int some_variable = 0;" > conftest.$ac_ext
7909   (eval echo "\"\$as_me:7909: $ac_compile\"" >&5)
7910   (eval "$ac_compile" 2>conftest.err)
7911   cat conftest.err >&5
7912   (eval echo "\"\$as_me:7912: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7913   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7914   cat conftest.err >&5
7915   (eval echo "\"\$as_me:7915: output\"" >&5)
7916   cat conftest.out >&5
7917   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7918     lt_cv_nm_interface="MS dumpbin"
7919   fi
7920   rm -f conftest*
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7923 $as_echo "$lt_cv_nm_interface" >&6; }
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7926 $as_echo_n "checking whether ln -s works... " >&6; }
7927 LN_S=$as_ln_s
7928 if test "$LN_S" = "ln -s"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7930 $as_echo "yes" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7933 $as_echo "no, using $LN_S" >&6; }
7934 fi
7935
7936 # find the maximum length of command line arguments
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7938 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7939 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942     i=0
7943   teststring="ABCD"
7944
7945   case $build_os in
7946   msdosdjgpp*)
7947     # On DJGPP, this test can blow up pretty badly due to problems in libc
7948     # (any single argument exceeding 2000 bytes causes a buffer overrun
7949     # during glob expansion).  Even if it were fixed, the result of this
7950     # check would be larger than it should be.
7951     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7952     ;;
7953
7954   gnu*)
7955     # Under GNU Hurd, this test is not required because there is
7956     # no limit to the length of command line arguments.
7957     # Libtool will interpret -1 as no limit whatsoever
7958     lt_cv_sys_max_cmd_len=-1;
7959     ;;
7960
7961   cygwin* | mingw* | cegcc*)
7962     # On Win9x/ME, this test blows up -- it succeeds, but takes
7963     # about 5 minutes as the teststring grows exponentially.
7964     # Worse, since 9x/ME are not pre-emptively multitasking,
7965     # you end up with a "frozen" computer, even though with patience
7966     # the test eventually succeeds (with a max line length of 256k).
7967     # Instead, let's just punt: use the minimum linelength reported by
7968     # all of the supported platforms: 8192 (on NT/2K/XP).
7969     lt_cv_sys_max_cmd_len=8192;
7970     ;;
7971
7972   amigaos*)
7973     # On AmigaOS with pdksh, this test takes hours, literally.
7974     # So we just punt and use a minimum line length of 8192.
7975     lt_cv_sys_max_cmd_len=8192;
7976     ;;
7977
7978   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7979     # This has been around since 386BSD, at least.  Likely further.
7980     if test -x /sbin/sysctl; then
7981       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7982     elif test -x /usr/sbin/sysctl; then
7983       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7984     else
7985       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7986     fi
7987     # And add a safety zone
7988     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7989     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7990     ;;
7991
7992   interix*)
7993     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7994     lt_cv_sys_max_cmd_len=196608
7995     ;;
7996
7997   osf*)
7998     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7999     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8000     # nice to cause kernel panics so lets avoid the loop below.
8001     # First set a reasonable default.
8002     lt_cv_sys_max_cmd_len=16384
8003     #
8004     if test -x /sbin/sysconfig; then
8005       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8006         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8007       esac
8008     fi
8009     ;;
8010   sco3.2v5*)
8011     lt_cv_sys_max_cmd_len=102400
8012     ;;
8013   sysv5* | sco5v6* | sysv4.2uw2*)
8014     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8015     if test -n "$kargmax"; then
8016       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8017     else
8018       lt_cv_sys_max_cmd_len=32768
8019     fi
8020     ;;
8021   *)
8022     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8023     if test -n "$lt_cv_sys_max_cmd_len"; then
8024       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8025       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8026     else
8027       # Make teststring a little bigger before we do anything with it.
8028       # a 1K string should be a reasonable start.
8029       for i in 1 2 3 4 5 6 7 8 ; do
8030         teststring=$teststring$teststring
8031       done
8032       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8033       # If test is not a shell built-in, we'll probably end up computing a
8034       # maximum length that is only half of the actual maximum length, but
8035       # we can't tell.
8036       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8037                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8038               test $i != 17 # 1/2 MB should be enough
8039       do
8040         i=`expr $i + 1`
8041         teststring=$teststring$teststring
8042       done
8043       # Only check the string length outside the loop.
8044       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8045       teststring=
8046       # Add a significant safety factor because C++ compilers can tack on
8047       # massive amounts of additional arguments before passing them to the
8048       # linker.  It appears as though 1/2 is a usable value.
8049       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8050     fi
8051     ;;
8052   esac
8053
8054 fi
8055
8056 if test -n $lt_cv_sys_max_cmd_len ; then
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8058 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8059 else
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8061 $as_echo "none" >&6; }
8062 fi
8063 max_cmd_len=$lt_cv_sys_max_cmd_len
8064
8065
8066
8067
8068
8069
8070 : ${CP="cp -f"}
8071 : ${MV="mv -f"}
8072 : ${RM="rm -f"}
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8075 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8076 # Try some XSI features
8077 xsi_shell=no
8078 ( _lt_dummy="a/b/c"
8079   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8080       = c,a/b,, \
8081     && eval 'test $(( 1 + 1 )) -eq 2 \
8082     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8083   && xsi_shell=yes
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8085 $as_echo "$xsi_shell" >&6; }
8086
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8089 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8090 lt_shell_append=no
8091 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8092     >/dev/null 2>&1 \
8093   && lt_shell_append=yes
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8095 $as_echo "$lt_shell_append" >&6; }
8096
8097
8098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8099   lt_unset=unset
8100 else
8101   lt_unset=false
8102 fi
8103
8104
8105
8106
8107
8108 # test EBCDIC or ASCII
8109 case `echo X|tr X '\101'` in
8110  A) # ASCII based system
8111     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8112   lt_SP2NL='tr \040 \012'
8113   lt_NL2SP='tr \015\012 \040\040'
8114   ;;
8115  *) # EBCDIC based system
8116   lt_SP2NL='tr \100 \n'
8117   lt_NL2SP='tr \r\n \100\100'
8118   ;;
8119 esac
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8130 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8131 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   lt_cv_ld_reload_flag='-r'
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8137 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8138 reload_flag=$lt_cv_ld_reload_flag
8139 case $reload_flag in
8140 "" | " "*) ;;
8141 *) reload_flag=" $reload_flag" ;;
8142 esac
8143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8144 case $host_os in
8145   darwin*)
8146     if test "$GCC" = yes; then
8147       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8148     else
8149       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8150     fi
8151     ;;
8152 esac
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 if test -n "$ac_tool_prefix"; then
8163   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   if test -n "$OBJDUMP"; then
8171   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178     for ac_exec_ext in '' $ac_executable_extensions; do
8179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185   done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 OBJDUMP=$ac_cv_prog_OBJDUMP
8191 if test -n "$OBJDUMP"; then
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8193 $as_echo "$OBJDUMP" >&6; }
8194 else
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_OBJDUMP"; then
8202   ac_ct_OBJDUMP=$OBJDUMP
8203   # Extract the first word of "objdump", so it can be a program name with args.
8204 set dummy objdump; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   if test -n "$ac_ct_OBJDUMP"; then
8211   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218     for ac_exec_ext in '' $ac_executable_extensions; do
8219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225   done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8231 if test -n "$ac_ct_OBJDUMP"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8233 $as_echo "$ac_ct_OBJDUMP" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239   if test "x$ac_ct_OBJDUMP" = x; then
8240     OBJDUMP="false"
8241   else
8242     case $cross_compiling:$ac_tool_warned in
8243 yes:)
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246 ac_tool_warned=yes ;;
8247 esac
8248     OBJDUMP=$ac_ct_OBJDUMP
8249   fi
8250 else
8251   OBJDUMP="$ac_cv_prog_OBJDUMP"
8252 fi
8253
8254 test -z "$OBJDUMP" && OBJDUMP=objdump
8255
8256
8257
8258
8259
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8263 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   lt_cv_file_magic_cmd='$MAGIC_CMD'
8267 lt_cv_file_magic_test_file=
8268 lt_cv_deplibs_check_method='unknown'
8269 # Need to set the preceding variable on all platforms that support
8270 # interlibrary dependencies.
8271 # 'none' -- dependencies not supported.
8272 # `unknown' -- same as none, but documents that we really don't know.
8273 # 'pass_all' -- all dependencies passed with no checks.
8274 # 'test_compile' -- check by making test program.
8275 # 'file_magic [[regex]]' -- check by looking for files in library path
8276 # which responds to the $file_magic_cmd with a given extended regex.
8277 # If you have `file' or equivalent on your system and you're not sure
8278 # whether `pass_all' will *always* work, you probably want this one.
8279
8280 case $host_os in
8281 aix[4-9]*)
8282   lt_cv_deplibs_check_method=pass_all
8283   ;;
8284
8285 beos*)
8286   lt_cv_deplibs_check_method=pass_all
8287   ;;
8288
8289 bsdi[45]*)
8290   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8291   lt_cv_file_magic_cmd='/usr/bin/file -L'
8292   lt_cv_file_magic_test_file=/shlib/libc.so
8293   ;;
8294
8295 cygwin*)
8296   # func_win32_libid is a shell function defined in ltmain.sh
8297   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8298   lt_cv_file_magic_cmd='func_win32_libid'
8299   ;;
8300
8301 mingw* | pw32*)
8302   # Base MSYS/MinGW do not provide the 'file' command needed by
8303   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8304   # unless we find 'file', for example because we are cross-compiling.
8305   if ( file / ) >/dev/null 2>&1; then
8306     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8307     lt_cv_file_magic_cmd='func_win32_libid'
8308   else
8309     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8310     lt_cv_file_magic_cmd='$OBJDUMP -f'
8311   fi
8312   ;;
8313
8314 cegcc)
8315   # use the weaker test based on 'objdump'. See mingw*.
8316   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8317   lt_cv_file_magic_cmd='$OBJDUMP -f'
8318   ;;
8319
8320 darwin* | rhapsody*)
8321   lt_cv_deplibs_check_method=pass_all
8322   ;;
8323
8324 freebsd* | dragonfly*)
8325   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8326     case $host_cpu in
8327     i*86 )
8328       # Not sure whether the presence of OpenBSD here was a mistake.
8329       # Let's accept both of them until this is cleared up.
8330       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8331       lt_cv_file_magic_cmd=/usr/bin/file
8332       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8333       ;;
8334     esac
8335   else
8336     lt_cv_deplibs_check_method=pass_all
8337   fi
8338   ;;
8339
8340 gnu*)
8341   lt_cv_deplibs_check_method=pass_all
8342   ;;
8343
8344 hpux10.20* | hpux11*)
8345   lt_cv_file_magic_cmd=/usr/bin/file
8346   case $host_cpu in
8347   ia64*)
8348     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8349     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8350     ;;
8351   hppa*64*)
8352     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8353     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8354     ;;
8355   *)
8356     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8357     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8358     ;;
8359   esac
8360   ;;
8361
8362 interix[3-9]*)
8363   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8364   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8365   ;;
8366
8367 irix5* | irix6* | nonstopux*)
8368   case $LD in
8369   *-32|*"-32 ") libmagic=32-bit;;
8370   *-n32|*"-n32 ") libmagic=N32;;
8371   *-64|*"-64 ") libmagic=64-bit;;
8372   *) libmagic=never-match;;
8373   esac
8374   lt_cv_deplibs_check_method=pass_all
8375   ;;
8376
8377 # This must be Linux ELF.
8378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8379   lt_cv_deplibs_check_method=pass_all
8380   ;;
8381
8382 netbsd* | netbsdelf*-gnu)
8383   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8385   else
8386     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8387   fi
8388   ;;
8389
8390 newos6*)
8391   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8392   lt_cv_file_magic_cmd=/usr/bin/file
8393   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8394   ;;
8395
8396 *nto* | *qnx*)
8397   lt_cv_deplibs_check_method=pass_all
8398   ;;
8399
8400 openbsd*)
8401   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8402     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8403   else
8404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8405   fi
8406   ;;
8407
8408 osf3* | osf4* | osf5*)
8409   lt_cv_deplibs_check_method=pass_all
8410   ;;
8411
8412 rdos*)
8413   lt_cv_deplibs_check_method=pass_all
8414   ;;
8415
8416 solaris*)
8417   lt_cv_deplibs_check_method=pass_all
8418   ;;
8419
8420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8421   lt_cv_deplibs_check_method=pass_all
8422   ;;
8423
8424 sysv4 | sysv4.3*)
8425   case $host_vendor in
8426   motorola)
8427     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]'
8428     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8429     ;;
8430   ncr)
8431     lt_cv_deplibs_check_method=pass_all
8432     ;;
8433   sequent)
8434     lt_cv_file_magic_cmd='/bin/file'
8435     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8436     ;;
8437   sni)
8438     lt_cv_file_magic_cmd='/bin/file'
8439     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8440     lt_cv_file_magic_test_file=/lib/libc.so
8441     ;;
8442   siemens)
8443     lt_cv_deplibs_check_method=pass_all
8444     ;;
8445   pc)
8446     lt_cv_deplibs_check_method=pass_all
8447     ;;
8448   esac
8449   ;;
8450
8451 tpf*)
8452   lt_cv_deplibs_check_method=pass_all
8453   ;;
8454 esac
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8458 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8459 file_magic_cmd=$lt_cv_file_magic_cmd
8460 deplibs_check_method=$lt_cv_deplibs_check_method
8461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 if test -n "$ac_tool_prefix"; then
8475   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8476 set dummy ${ac_tool_prefix}ar; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if test "${ac_cv_prog_AR+set}" = set; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   if test -n "$AR"; then
8483   ac_cv_prog_AR="$AR" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488   IFS=$as_save_IFS
8489   test -z "$as_dir" && as_dir=.
8490     for ac_exec_ext in '' $ac_executable_extensions; do
8491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492     ac_cv_prog_AR="${ac_tool_prefix}ar"
8493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494     break 2
8495   fi
8496 done
8497   done
8498 IFS=$as_save_IFS
8499
8500 fi
8501 fi
8502 AR=$ac_cv_prog_AR
8503 if test -n "$AR"; then
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8505 $as_echo "$AR" >&6; }
8506 else
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8509 fi
8510
8511
8512 fi
8513 if test -z "$ac_cv_prog_AR"; then
8514   ac_ct_AR=$AR
8515   # Extract the first word of "ar", so it can be a program name with args.
8516 set dummy ar; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   if test -n "$ac_ct_AR"; then
8523   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528   IFS=$as_save_IFS
8529   test -z "$as_dir" && as_dir=.
8530     for ac_exec_ext in '' $ac_executable_extensions; do
8531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532     ac_cv_prog_ac_ct_AR="ar"
8533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534     break 2
8535   fi
8536 done
8537   done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8543 if test -n "$ac_ct_AR"; then
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8545 $as_echo "$ac_ct_AR" >&6; }
8546 else
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551   if test "x$ac_ct_AR" = x; then
8552     AR="false"
8553   else
8554     case $cross_compiling:$ac_tool_warned in
8555 yes:)
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8558 ac_tool_warned=yes ;;
8559 esac
8560     AR=$ac_ct_AR
8561   fi
8562 else
8563   AR="$ac_cv_prog_AR"
8564 fi
8565
8566 test -z "$AR" && AR=ar
8567 test -z "$AR_FLAGS" && AR_FLAGS=cru
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 if test -n "$ac_tool_prefix"; then
8580   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}strip; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_STRIP+set}" = set; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   if test -n "$STRIP"; then
8588   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593   IFS=$as_save_IFS
8594   test -z "$as_dir" && as_dir=.
8595     for ac_exec_ext in '' $ac_executable_extensions; do
8596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599     break 2
8600   fi
8601 done
8602   done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 STRIP=$ac_cv_prog_STRIP
8608 if test -n "$STRIP"; then
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8610 $as_echo "$STRIP" >&6; }
8611 else
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617 fi
8618 if test -z "$ac_cv_prog_STRIP"; then
8619   ac_ct_STRIP=$STRIP
8620   # Extract the first word of "strip", so it can be a program name with args.
8621 set dummy strip; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627   if test -n "$ac_ct_STRIP"; then
8628   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637     ac_cv_prog_ac_ct_STRIP="strip"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8648 if test -n "$ac_ct_STRIP"; then
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8650 $as_echo "$ac_ct_STRIP" >&6; }
8651 else
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656   if test "x$ac_ct_STRIP" = x; then
8657     STRIP=":"
8658   else
8659     case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665     STRIP=$ac_ct_STRIP
8666   fi
8667 else
8668   STRIP="$ac_cv_prog_STRIP"
8669 fi
8670
8671 test -z "$STRIP" && STRIP=:
8672
8673
8674
8675
8676
8677
8678 if test -n "$ac_tool_prefix"; then
8679   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$RANLIB"; then
8687   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 RANLIB=$ac_cv_prog_RANLIB
8707 if test -n "$RANLIB"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8709 $as_echo "$RANLIB" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716 fi
8717 if test -z "$ac_cv_prog_RANLIB"; then
8718   ac_ct_RANLIB=$RANLIB
8719   # Extract the first word of "ranlib", so it can be a program name with args.
8720 set dummy ranlib; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   if test -n "$ac_ct_RANLIB"; then
8727   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732   IFS=$as_save_IFS
8733   test -z "$as_dir" && as_dir=.
8734     for ac_exec_ext in '' $ac_executable_extensions; do
8735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736     ac_cv_prog_ac_ct_RANLIB="ranlib"
8737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738     break 2
8739   fi
8740 done
8741   done
8742 IFS=$as_save_IFS
8743
8744 fi
8745 fi
8746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8747 if test -n "$ac_ct_RANLIB"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8749 $as_echo "$ac_ct_RANLIB" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755   if test "x$ac_ct_RANLIB" = x; then
8756     RANLIB=":"
8757   else
8758     case $cross_compiling:$ac_tool_warned in
8759 yes:)
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762 ac_tool_warned=yes ;;
8763 esac
8764     RANLIB=$ac_ct_RANLIB
8765   fi
8766 else
8767   RANLIB="$ac_cv_prog_RANLIB"
8768 fi
8769
8770 test -z "$RANLIB" && RANLIB=:
8771
8772
8773
8774
8775
8776
8777 # Determine commands to create old-style static archives.
8778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8779 old_postinstall_cmds='chmod 644 $oldlib'
8780 old_postuninstall_cmds=
8781
8782 if test -n "$RANLIB"; then
8783   case $host_os in
8784   openbsd*)
8785     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8786     ;;
8787   *)
8788     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8789     ;;
8790   esac
8791   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8792 fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 # If no C compiler was specified, use CC.
8828 LTCC=${LTCC-"$CC"}
8829
8830 # If no C compiler flags were specified, use CFLAGS.
8831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8832
8833 # Allow CC to be a program name with arguments.
8834 compiler=$CC
8835
8836
8837 # Check for command to grab the raw symbol name followed by C symbol from nm.
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8840 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843
8844 # These are sane defaults that work on at least a few old systems.
8845 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8846
8847 # Character class describing NM global symbol codes.
8848 symcode='[BCDEGRST]'
8849
8850 # Regexp to match symbols that can be accessed directly from C.
8851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8852
8853 # Define system-specific variables.
8854 case $host_os in
8855 aix*)
8856   symcode='[BCDT]'
8857   ;;
8858 cygwin* | mingw* | pw32* | cegcc*)
8859   symcode='[ABCDGISTW]'
8860   ;;
8861 hpux*)
8862   if test "$host_cpu" = ia64; then
8863     symcode='[ABCDEGRST]'
8864   fi
8865   ;;
8866 irix* | nonstopux*)
8867   symcode='[BCDEGRST]'
8868   ;;
8869 osf*)
8870   symcode='[BCDEGQRST]'
8871   ;;
8872 solaris*)
8873   symcode='[BDRT]'
8874   ;;
8875 sco3.2v5*)
8876   symcode='[DT]'
8877   ;;
8878 sysv4.2uw2*)
8879   symcode='[DT]'
8880   ;;
8881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8882   symcode='[ABDT]'
8883   ;;
8884 sysv4)
8885   symcode='[DFNSTU]'
8886   ;;
8887 esac
8888
8889 # If we're using GNU nm, then use its standard symbol codes.
8890 case `$NM -V 2>&1` in
8891 *GNU* | *'with BFD'*)
8892   symcode='[ABCDGIRSTW]' ;;
8893 esac
8894
8895 # Transform an extracted symbol line into a proper C declaration.
8896 # Some systems (esp. on ia64) link data and code symbols differently,
8897 # so use this general approach.
8898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8899
8900 # Transform an extracted symbol line into symbol name and symbol address
8901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8903
8904 # Handle CRLF in mingw tool chain
8905 opt_cr=
8906 case $build_os in
8907 mingw*)
8908   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8909   ;;
8910 esac
8911
8912 # Try without a prefix underscore, then with it.
8913 for ac_symprfx in "" "_"; do
8914
8915   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8916   symxfrm="\\1 $ac_symprfx\\2 \\2"
8917
8918   # Write the raw and C identifiers.
8919   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8920     # Fake it for dumpbin and say T for any non-static function
8921     # and D for any global variable.
8922     # Also find C++ and __fastcall symbols from MSVC++,
8923     # which start with @ or ?.
8924     lt_cv_sys_global_symbol_pipe="$AWK '"\
8925 "     {last_section=section; section=\$ 3};"\
8926 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8927 "     \$ 0!~/External *\|/{next};"\
8928 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8929 "     {if(hide[section]) next};"\
8930 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8931 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8932 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8933 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8934 "     ' prfx=^$ac_symprfx"
8935   else
8936     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8937   fi
8938
8939   # Check to see that the pipe works correctly.
8940   pipe_works=no
8941
8942   rm -f conftest*
8943   cat > conftest.$ac_ext <<_LT_EOF
8944 #ifdef __cplusplus
8945 extern "C" {
8946 #endif
8947 char nm_test_var;
8948 void nm_test_func(void);
8949 void nm_test_func(void){}
8950 #ifdef __cplusplus
8951 }
8952 #endif
8953 int main(){nm_test_var='a';nm_test_func();return(0);}
8954 _LT_EOF
8955
8956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957   (eval $ac_compile) 2>&5
8958   ac_status=$?
8959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960   test $ac_status = 0; }; then
8961     # Now try to grab the symbols.
8962     nlist=conftest.nm
8963     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8964   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8965   ac_status=$?
8966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967   test $ac_status = 0; } && test -s "$nlist"; then
8968       # Try sorting and uniquifying the output.
8969       if sort "$nlist" | uniq > "$nlist"T; then
8970         mv -f "$nlist"T "$nlist"
8971       else
8972         rm -f "$nlist"T
8973       fi
8974
8975       # Make sure that we snagged all the symbols we need.
8976       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8977         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8978           cat <<_LT_EOF > conftest.$ac_ext
8979 #ifdef __cplusplus
8980 extern "C" {
8981 #endif
8982
8983 _LT_EOF
8984           # Now generate the symbol file.
8985           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8986
8987           cat <<_LT_EOF >> conftest.$ac_ext
8988
8989 /* The mapping between symbol names and symbols.  */
8990 const struct {
8991   const char *name;
8992   void       *address;
8993 }
8994 lt__PROGRAM__LTX_preloaded_symbols[] =
8995 {
8996   { "@PROGRAM@", (void *) 0 },
8997 _LT_EOF
8998           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8999           cat <<\_LT_EOF >> conftest.$ac_ext
9000   {0, (void *) 0}
9001 };
9002
9003 /* This works around a problem in FreeBSD linker */
9004 #ifdef FREEBSD_WORKAROUND
9005 static const void *lt_preloaded_setup() {
9006   return lt__PROGRAM__LTX_preloaded_symbols;
9007 }
9008 #endif
9009
9010 #ifdef __cplusplus
9011 }
9012 #endif
9013 _LT_EOF
9014           # Now try linking the two files.
9015           mv conftest.$ac_objext conftstm.$ac_objext
9016           lt_save_LIBS="$LIBS"
9017           lt_save_CFLAGS="$CFLAGS"
9018           LIBS="conftstm.$ac_objext"
9019           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9020           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9021   (eval $ac_link) 2>&5
9022   ac_status=$?
9023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9024   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9025             pipe_works=yes
9026           fi
9027           LIBS="$lt_save_LIBS"
9028           CFLAGS="$lt_save_CFLAGS"
9029         else
9030           echo "cannot find nm_test_func in $nlist" >&5
9031         fi
9032       else
9033         echo "cannot find nm_test_var in $nlist" >&5
9034       fi
9035     else
9036       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9037     fi
9038   else
9039     echo "$progname: failed program was:" >&5
9040     cat conftest.$ac_ext >&5
9041   fi
9042   rm -rf conftest* conftst*
9043
9044   # Do not use the global_symbol_pipe unless it works.
9045   if test "$pipe_works" = yes; then
9046     break
9047   else
9048     lt_cv_sys_global_symbol_pipe=
9049   fi
9050 done
9051
9052 fi
9053
9054 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9055   lt_cv_sys_global_symbol_to_cdecl=
9056 fi
9057 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9059 $as_echo "failed" >&6; }
9060 else
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9062 $as_echo "ok" >&6; }
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 # Check whether --enable-libtool-lock was given.
9087 if test "${enable_libtool_lock+set}" = set; then :
9088   enableval=$enable_libtool_lock;
9089 fi
9090
9091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9092
9093 # Some flags need to be propagated to the compiler or linker for good
9094 # libtool support.
9095 case $host in
9096 ia64-*-hpux*)
9097   # Find out which ABI we are using.
9098   echo 'int i;' > conftest.$ac_ext
9099   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9100   (eval $ac_compile) 2>&5
9101   ac_status=$?
9102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9103   test $ac_status = 0; }; then
9104     case `/usr/bin/file conftest.$ac_objext` in
9105       *ELF-32*)
9106         HPUX_IA64_MODE="32"
9107         ;;
9108       *ELF-64*)
9109         HPUX_IA64_MODE="64"
9110         ;;
9111     esac
9112   fi
9113   rm -rf conftest*
9114   ;;
9115 *-*-irix6*)
9116   # Find out which ABI we are using.
9117   echo '#line 9117 "configure"' > conftest.$ac_ext
9118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9119   (eval $ac_compile) 2>&5
9120   ac_status=$?
9121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9122   test $ac_status = 0; }; then
9123     if test "$lt_cv_prog_gnu_ld" = yes; then
9124       case `/usr/bin/file conftest.$ac_objext` in
9125         *32-bit*)
9126           LD="${LD-ld} -melf32bsmip"
9127           ;;
9128         *N32*)
9129           LD="${LD-ld} -melf32bmipn32"
9130           ;;
9131         *64-bit*)
9132           LD="${LD-ld} -melf64bmip"
9133         ;;
9134       esac
9135     else
9136       case `/usr/bin/file conftest.$ac_objext` in
9137         *32-bit*)
9138           LD="${LD-ld} -32"
9139           ;;
9140         *N32*)
9141           LD="${LD-ld} -n32"
9142           ;;
9143         *64-bit*)
9144           LD="${LD-ld} -64"
9145           ;;
9146       esac
9147     fi
9148   fi
9149   rm -rf conftest*
9150   ;;
9151
9152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9153 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9154   # Find out which ABI we are using.
9155   echo 'int i;' > conftest.$ac_ext
9156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9157   (eval $ac_compile) 2>&5
9158   ac_status=$?
9159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9160   test $ac_status = 0; }; then
9161     case `/usr/bin/file conftest.o` in
9162       *32-bit*)
9163         case $host in
9164           x86_64-*kfreebsd*-gnu)
9165             LD="${LD-ld} -m elf_i386_fbsd"
9166             ;;
9167           x86_64-*linux*)
9168             LD="${LD-ld} -m elf_i386"
9169             ;;
9170           ppc64-*linux*|powerpc64-*linux*)
9171             LD="${LD-ld} -m elf32ppclinux"
9172             ;;
9173           s390x-*linux*)
9174             LD="${LD-ld} -m elf_s390"
9175             ;;
9176           sparc64-*linux*)
9177             LD="${LD-ld} -m elf32_sparc"
9178             ;;
9179         esac
9180         ;;
9181       *64-bit*)
9182         case $host in
9183           x86_64-*kfreebsd*-gnu)
9184             LD="${LD-ld} -m elf_x86_64_fbsd"
9185             ;;
9186           x86_64-*linux*)
9187             LD="${LD-ld} -m elf_x86_64"
9188             ;;
9189           ppc*-*linux*|powerpc*-*linux*)
9190             LD="${LD-ld} -m elf64ppc"
9191             ;;
9192           s390*-*linux*|s390*-*tpf*)
9193             LD="${LD-ld} -m elf64_s390"
9194             ;;
9195           sparc*-*linux*)
9196             LD="${LD-ld} -m elf64_sparc"
9197             ;;
9198         esac
9199         ;;
9200     esac
9201   fi
9202   rm -rf conftest*
9203   ;;
9204
9205 *-*-sco3.2v5*)
9206   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9207   SAVE_CFLAGS="$CFLAGS"
9208   CFLAGS="$CFLAGS -belf"
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9211 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   ac_ext=c
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h.  */
9222
9223 int main (void)
9224 {
9225
9226  ;
9227  return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231   lt_cv_cc_needs_belf=yes
9232 else
9233   lt_cv_cc_needs_belf=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236     conftest$ac_exeext conftest.$ac_ext
9237      ac_ext=c
9238 ac_cpp='$CPP $CPPFLAGS'
9239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9242
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9245 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9246   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9247     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9248     CFLAGS="$SAVE_CFLAGS"
9249   fi
9250   ;;
9251 sparc*-*solaris*)
9252   # Find out which ABI we are using.
9253   echo 'int i;' > conftest.$ac_ext
9254   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9255   (eval $ac_compile) 2>&5
9256   ac_status=$?
9257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9258   test $ac_status = 0; }; then
9259     case `/usr/bin/file conftest.o` in
9260     *64-bit*)
9261       case $lt_cv_prog_gnu_ld in
9262       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9263       *)
9264         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9265           LD="${LD-ld} -64"
9266         fi
9267         ;;
9268       esac
9269       ;;
9270     esac
9271   fi
9272   rm -rf conftest*
9273   ;;
9274 esac
9275
9276 need_locks="$enable_libtool_lock"
9277
9278
9279   case $host_os in
9280     rhapsody* | darwin*)
9281     if test -n "$ac_tool_prefix"; then
9282   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9283 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   if test -n "$DSYMUTIL"; then
9290   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297     for ac_exec_ext in '' $ac_executable_extensions; do
9298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304   done
9305 IFS=$as_save_IFS
9306
9307 fi
9308 fi
9309 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9310 if test -n "$DSYMUTIL"; then
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9312 $as_echo "$DSYMUTIL" >&6; }
9313 else
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9316 fi
9317
9318
9319 fi
9320 if test -z "$ac_cv_prog_DSYMUTIL"; then
9321   ac_ct_DSYMUTIL=$DSYMUTIL
9322   # Extract the first word of "dsymutil", so it can be a program name with args.
9323 set dummy dsymutil; ac_word=$2
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9327   $as_echo_n "(cached) " >&6
9328 else
9329   if test -n "$ac_ct_DSYMUTIL"; then
9330   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9331 else
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in $PATH
9334 do
9335   IFS=$as_save_IFS
9336   test -z "$as_dir" && as_dir=.
9337     for ac_exec_ext in '' $ac_executable_extensions; do
9338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9339     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9341     break 2
9342   fi
9343 done
9344   done
9345 IFS=$as_save_IFS
9346
9347 fi
9348 fi
9349 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9350 if test -n "$ac_ct_DSYMUTIL"; then
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9352 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9353 else
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 $as_echo "no" >&6; }
9356 fi
9357
9358   if test "x$ac_ct_DSYMUTIL" = x; then
9359     DSYMUTIL=":"
9360   else
9361     case $cross_compiling:$ac_tool_warned in
9362 yes:)
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9365 ac_tool_warned=yes ;;
9366 esac
9367     DSYMUTIL=$ac_ct_DSYMUTIL
9368   fi
9369 else
9370   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9371 fi
9372
9373     if test -n "$ac_tool_prefix"; then
9374   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9375 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   if test -n "$NMEDIT"; then
9382   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9386 do
9387   IFS=$as_save_IFS
9388   test -z "$as_dir" && as_dir=.
9389     for ac_exec_ext in '' $ac_executable_extensions; do
9390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393     break 2
9394   fi
9395 done
9396   done
9397 IFS=$as_save_IFS
9398
9399 fi
9400 fi
9401 NMEDIT=$ac_cv_prog_NMEDIT
9402 if test -n "$NMEDIT"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9404 $as_echo "$NMEDIT" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409
9410
9411 fi
9412 if test -z "$ac_cv_prog_NMEDIT"; then
9413   ac_ct_NMEDIT=$NMEDIT
9414   # Extract the first word of "nmedit", so it can be a program name with args.
9415 set dummy nmedit; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   if test -n "$ac_ct_NMEDIT"; then
9422   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9423 else
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9426 do
9427   IFS=$as_save_IFS
9428   test -z "$as_dir" && as_dir=.
9429     for ac_exec_ext in '' $ac_executable_extensions; do
9430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433     break 2
9434   fi
9435 done
9436   done
9437 IFS=$as_save_IFS
9438
9439 fi
9440 fi
9441 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9442 if test -n "$ac_ct_NMEDIT"; then
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9444 $as_echo "$ac_ct_NMEDIT" >&6; }
9445 else
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9448 fi
9449
9450   if test "x$ac_ct_NMEDIT" = x; then
9451     NMEDIT=":"
9452   else
9453     case $cross_compiling:$ac_tool_warned in
9454 yes:)
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9457 ac_tool_warned=yes ;;
9458 esac
9459     NMEDIT=$ac_ct_NMEDIT
9460   fi
9461 else
9462   NMEDIT="$ac_cv_prog_NMEDIT"
9463 fi
9464
9465     if test -n "$ac_tool_prefix"; then
9466   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9467 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_LIPO+set}" = set; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   if test -n "$LIPO"; then
9474   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9478 do
9479   IFS=$as_save_IFS
9480   test -z "$as_dir" && as_dir=.
9481     for ac_exec_ext in '' $ac_executable_extensions; do
9482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485     break 2
9486   fi
9487 done
9488   done
9489 IFS=$as_save_IFS
9490
9491 fi
9492 fi
9493 LIPO=$ac_cv_prog_LIPO
9494 if test -n "$LIPO"; then
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9496 $as_echo "$LIPO" >&6; }
9497 else
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501
9502
9503 fi
9504 if test -z "$ac_cv_prog_LIPO"; then
9505   ac_ct_LIPO=$LIPO
9506   # Extract the first word of "lipo", so it can be a program name with args.
9507 set dummy lipo; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   if test -n "$ac_ct_LIPO"; then
9514   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519   IFS=$as_save_IFS
9520   test -z "$as_dir" && as_dir=.
9521     for ac_exec_ext in '' $ac_executable_extensions; do
9522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523     ac_cv_prog_ac_ct_LIPO="lipo"
9524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525     break 2
9526   fi
9527 done
9528   done
9529 IFS=$as_save_IFS
9530
9531 fi
9532 fi
9533 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9534 if test -n "$ac_ct_LIPO"; then
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9536 $as_echo "$ac_ct_LIPO" >&6; }
9537 else
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9540 fi
9541
9542   if test "x$ac_ct_LIPO" = x; then
9543     LIPO=":"
9544   else
9545     case $cross_compiling:$ac_tool_warned in
9546 yes:)
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9549 ac_tool_warned=yes ;;
9550 esac
9551     LIPO=$ac_ct_LIPO
9552   fi
9553 else
9554   LIPO="$ac_cv_prog_LIPO"
9555 fi
9556
9557     if test -n "$ac_tool_prefix"; then
9558   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9559 set dummy ${ac_tool_prefix}otool; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   if test -n "$OTOOL"; then
9566   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571   IFS=$as_save_IFS
9572   test -z "$as_dir" && as_dir=.
9573     for ac_exec_ext in '' $ac_executable_extensions; do
9574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577     break 2
9578   fi
9579 done
9580   done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 OTOOL=$ac_cv_prog_OTOOL
9586 if test -n "$OTOOL"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9588 $as_echo "$OTOOL" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595 fi
9596 if test -z "$ac_cv_prog_OTOOL"; then
9597   ac_ct_OTOOL=$OTOOL
9598   # Extract the first word of "otool", so it can be a program name with args.
9599 set dummy otool; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9603   $as_echo_n "(cached) " >&6
9604 else
9605   if test -n "$ac_ct_OTOOL"; then
9606   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611   IFS=$as_save_IFS
9612   test -z "$as_dir" && as_dir=.
9613     for ac_exec_ext in '' $ac_executable_extensions; do
9614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615     ac_cv_prog_ac_ct_OTOOL="otool"
9616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617     break 2
9618   fi
9619 done
9620   done
9621 IFS=$as_save_IFS
9622
9623 fi
9624 fi
9625 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9626 if test -n "$ac_ct_OTOOL"; then
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9628 $as_echo "$ac_ct_OTOOL" >&6; }
9629 else
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632 fi
9633
9634   if test "x$ac_ct_OTOOL" = x; then
9635     OTOOL=":"
9636   else
9637     case $cross_compiling:$ac_tool_warned in
9638 yes:)
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9642 esac
9643     OTOOL=$ac_ct_OTOOL
9644   fi
9645 else
9646   OTOOL="$ac_cv_prog_OTOOL"
9647 fi
9648
9649     if test -n "$ac_tool_prefix"; then
9650   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9651 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   if test -n "$OTOOL64"; then
9658   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663   IFS=$as_save_IFS
9664   test -z "$as_dir" && as_dir=.
9665     for ac_exec_ext in '' $ac_executable_extensions; do
9666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669     break 2
9670   fi
9671 done
9672   done
9673 IFS=$as_save_IFS
9674
9675 fi
9676 fi
9677 OTOOL64=$ac_cv_prog_OTOOL64
9678 if test -n "$OTOOL64"; then
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9680 $as_echo "$OTOOL64" >&6; }
9681 else
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687 fi
9688 if test -z "$ac_cv_prog_OTOOL64"; then
9689   ac_ct_OTOOL64=$OTOOL64
9690   # Extract the first word of "otool64", so it can be a program name with args.
9691 set dummy otool64; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   if test -n "$ac_ct_OTOOL64"; then
9698   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9699 else
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in $PATH
9702 do
9703   IFS=$as_save_IFS
9704   test -z "$as_dir" && as_dir=.
9705     for ac_exec_ext in '' $ac_executable_extensions; do
9706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707     ac_cv_prog_ac_ct_OTOOL64="otool64"
9708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709     break 2
9710   fi
9711 done
9712   done
9713 IFS=$as_save_IFS
9714
9715 fi
9716 fi
9717 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9718 if test -n "$ac_ct_OTOOL64"; then
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9720 $as_echo "$ac_ct_OTOOL64" >&6; }
9721 else
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9724 fi
9725
9726   if test "x$ac_ct_OTOOL64" = x; then
9727     OTOOL64=":"
9728   else
9729     case $cross_compiling:$ac_tool_warned in
9730 yes:)
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9733 ac_tool_warned=yes ;;
9734 esac
9735     OTOOL64=$ac_ct_OTOOL64
9736   fi
9737 else
9738   OTOOL64="$ac_cv_prog_OTOOL64"
9739 fi
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9768 $as_echo_n "checking for -single_module linker flag... " >&6; }
9769 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772   lt_cv_apple_cc_single_mod=no
9773       if test -z "${LT_MULTI_MODULE}"; then
9774         # By default we will add the -single_module flag. You can override
9775         # by either setting the environment variable LT_MULTI_MODULE
9776         # non-empty at configure time, or by adding -multi_module to the
9777         # link flags.
9778         rm -rf libconftest.dylib*
9779         echo "int foo(void){return 1;}" > conftest.c
9780         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9781 -dynamiclib -Wl,-single_module conftest.c" >&5
9782         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9783           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9784         _lt_result=$?
9785         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9786           lt_cv_apple_cc_single_mod=yes
9787         else
9788           cat conftest.err >&5
9789         fi
9790         rm -rf libconftest.dylib*
9791         rm -f conftest.*
9792       fi
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9795 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9797 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9798 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9799   $as_echo_n "(cached) " >&6
9800 else
9801   lt_cv_ld_exported_symbols_list=no
9802       save_LDFLAGS=$LDFLAGS
9803       echo "_main" > conftest.sym
9804       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9805       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807
9808 int main (void)
9809 {
9810
9811  ;
9812  return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_link "$LINENO"; then :
9816   lt_cv_ld_exported_symbols_list=yes
9817 else
9818   lt_cv_ld_exported_symbols_list=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821     conftest$ac_exeext conftest.$ac_ext
9822         LDFLAGS="$save_LDFLAGS"
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9826 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9827     case $host_os in
9828     rhapsody* | darwin1.[012])
9829       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9830     darwin1.*)
9831       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9832     darwin*) # darwin 5.x on
9833       # if running on 10.5 or later, the deployment target defaults
9834       # to the OS version, if on x86, and 10.4, the deployment
9835       # target defaults to 10.4. Don't you love it?
9836       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9837         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9838           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9839         10.[012]*)
9840           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9841         10.*)
9842           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9843       esac
9844     ;;
9845   esac
9846     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9847       _lt_dar_single_mod='$single_module'
9848     fi
9849     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9850       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9851     else
9852       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9853     fi
9854     if test "$DSYMUTIL" != ":"; then
9855       _lt_dsymutil='~$DSYMUTIL $lib || :'
9856     else
9857       _lt_dsymutil=
9858     fi
9859     ;;
9860   esac
9861
9862 for ac_header in dlfcn.h
9863 do :
9864   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9865 "
9866 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9867   cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DLFCN_H 1
9869 _ACEOF
9870
9871 fi
9872
9873 done
9874
9875
9876
9877 # Set options
9878
9879
9880
9881         enable_dlopen=no
9882
9883
9884
9885             # Check whether --enable-shared was given.
9886 if test "${enable_shared+set}" = set; then :
9887   enableval=$enable_shared; p=${PACKAGE-default}
9888     case $enableval in
9889     yes) enable_shared=yes ;;
9890     no) enable_shared=no ;;
9891     *)
9892       enable_shared=no
9893       # Look at the argument we got.  We use all the common list separators.
9894       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9895       for pkg in $enableval; do
9896         IFS="$lt_save_ifs"
9897         if test "X$pkg" = "X$p"; then
9898           enable_shared=yes
9899         fi
9900       done
9901       IFS="$lt_save_ifs"
9902       ;;
9903     esac
9904 else
9905   enable_shared=yes
9906 fi
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916   # Check whether --enable-static was given.
9917 if test "${enable_static+set}" = set; then :
9918   enableval=$enable_static; p=${PACKAGE-default}
9919     case $enableval in
9920     yes) enable_static=yes ;;
9921     no) enable_static=no ;;
9922     *)
9923      enable_static=no
9924       # Look at the argument we got.  We use all the common list separators.
9925       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9926       for pkg in $enableval; do
9927         IFS="$lt_save_ifs"
9928         if test "X$pkg" = "X$p"; then
9929           enable_static=yes
9930         fi
9931       done
9932       IFS="$lt_save_ifs"
9933       ;;
9934     esac
9935 else
9936   enable_static=yes
9937 fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948 # Check whether --with-pic was given.
9949 if test "${with_pic+set}" = set; then :
9950   withval=$with_pic; pic_mode="$withval"
9951 else
9952   pic_mode=default
9953 fi
9954
9955
9956 test -z "$pic_mode" && pic_mode=default
9957
9958
9959
9960
9961
9962
9963
9964   # Check whether --enable-fast-install was given.
9965 if test "${enable_fast_install+set}" = set; then :
9966   enableval=$enable_fast_install; p=${PACKAGE-default}
9967     case $enableval in
9968     yes) enable_fast_install=yes ;;
9969     no) enable_fast_install=no ;;
9970     *)
9971       enable_fast_install=no
9972       # Look at the argument we got.  We use all the common list separators.
9973       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9974       for pkg in $enableval; do
9975         IFS="$lt_save_ifs"
9976         if test "X$pkg" = "X$p"; then
9977           enable_fast_install=yes
9978         fi
9979       done
9980       IFS="$lt_save_ifs"
9981       ;;
9982     esac
9983 else
9984   enable_fast_install=yes
9985 fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 # This can be used to rebuild libtool when needed
9998 LIBTOOL_DEPS="$ltmain"
9999
10000 # Always use our own libtool.
10001 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027 test -z "$LN_S" && LN_S="ln -s"
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 if test -n "${ZSH_VERSION+set}" ; then
10043    setopt NO_GLOB_SUBST
10044 fi
10045
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10047 $as_echo_n "checking for objdir... " >&6; }
10048 if test "${lt_cv_objdir+set}" = set; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   rm -f .libs 2>/dev/null
10052 mkdir .libs 2>/dev/null
10053 if test -d .libs; then
10054   lt_cv_objdir=.libs
10055 else
10056   # MS-DOS does not allow filenames that begin with a dot.
10057   lt_cv_objdir=_libs
10058 fi
10059 rmdir .libs 2>/dev/null
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10062 $as_echo "$lt_cv_objdir" >&6; }
10063 objdir=$lt_cv_objdir
10064
10065
10066
10067
10068
10069 cat >>confdefs.h <<_ACEOF
10070 #define LT_OBJDIR "$lt_cv_objdir/"
10071 _ACEOF
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 case $host_os in
10090 aix3*)
10091   # AIX sometimes has problems with the GCC collect2 program.  For some
10092   # reason, if we set the COLLECT_NAMES environment variable, the problems
10093   # vanish in a puff of smoke.
10094   if test "X${COLLECT_NAMES+set}" != Xset; then
10095     COLLECT_NAMES=
10096     export COLLECT_NAMES
10097   fi
10098   ;;
10099 esac
10100
10101 # Sed substitution that helps us do robust quoting.  It backslashifies
10102 # metacharacters that are still active within double-quoted strings.
10103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10104
10105 # Same as above, but do not quote variable references.
10106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10107
10108 # Sed substitution to delay expansion of an escaped shell variable in a
10109 # double_quote_subst'ed string.
10110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10111
10112 # Sed substitution to delay expansion of an escaped single quote.
10113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10114
10115 # Sed substitution to avoid accidental globbing in evaled expressions
10116 no_glob_subst='s/\*/\\\*/g'
10117
10118 # Global variables:
10119 ofile=libtool
10120 can_build_shared=yes
10121
10122 # All known linkers require a `.a' archive for static linking (except MSVC,
10123 # which needs '.lib').
10124 libext=a
10125
10126 with_gnu_ld="$lt_cv_prog_gnu_ld"
10127
10128 old_CC="$CC"
10129 old_CFLAGS="$CFLAGS"
10130
10131 # Set sane defaults for various variables
10132 test -z "$CC" && CC=cc
10133 test -z "$LTCC" && LTCC=$CC
10134 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10135 test -z "$LD" && LD=ld
10136 test -z "$ac_objext" && ac_objext=o
10137
10138 for cc_temp in $compiler""; do
10139   case $cc_temp in
10140     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10141     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10142     \-*) ;;
10143     *) break;;
10144   esac
10145 done
10146 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10147
10148
10149 # Only perform the check for file, if the check method requires it
10150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10151 case $deplibs_check_method in
10152 file_magic*)
10153   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10155 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   case $MAGIC_CMD in
10160 [\\/*] |  ?:[\\/]*)
10161   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10162   ;;
10163 *)
10164   lt_save_MAGIC_CMD="$MAGIC_CMD"
10165   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10166   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10167   for ac_dir in $ac_dummy; do
10168     IFS="$lt_save_ifs"
10169     test -z "$ac_dir" && ac_dir=.
10170     if test -f $ac_dir/${ac_tool_prefix}file; then
10171       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10172       if test -n "$file_magic_test_file"; then
10173         case $deplibs_check_method in
10174         "file_magic "*)
10175           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10176           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10177           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10178             $EGREP "$file_magic_regex" > /dev/null; then
10179             :
10180           else
10181             cat <<_LT_EOF 1>&2
10182
10183 *** Warning: the command libtool uses to detect shared libraries,
10184 *** $file_magic_cmd, produces output that libtool cannot recognize.
10185 *** The result is that libtool may fail to recognize shared libraries
10186 *** as such.  This will affect the creation of libtool libraries that
10187 *** depend on shared libraries, but programs linked with such libtool
10188 *** libraries will work regardless of this problem.  Nevertheless, you
10189 *** may want to report the problem to your system manager and/or to
10190 *** bug-libtool@gnu.org
10191
10192 _LT_EOF
10193           fi ;;
10194         esac
10195       fi
10196       break
10197     fi
10198   done
10199   IFS="$lt_save_ifs"
10200   MAGIC_CMD="$lt_save_MAGIC_CMD"
10201   ;;
10202 esac
10203 fi
10204
10205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10206 if test -n "$MAGIC_CMD"; then
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10208 $as_echo "$MAGIC_CMD" >&6; }
10209 else
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 fi
10213
10214
10215
10216
10217
10218 if test -z "$lt_cv_path_MAGIC_CMD"; then
10219   if test -n "$ac_tool_prefix"; then
10220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10221 $as_echo_n "checking for file... " >&6; }
10222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10223   $as_echo_n "(cached) " >&6
10224 else
10225   case $MAGIC_CMD in
10226 [\\/*] |  ?:[\\/]*)
10227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10228   ;;
10229 *)
10230   lt_save_MAGIC_CMD="$MAGIC_CMD"
10231   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10232   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10233   for ac_dir in $ac_dummy; do
10234     IFS="$lt_save_ifs"
10235     test -z "$ac_dir" && ac_dir=.
10236     if test -f $ac_dir/file; then
10237       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10238       if test -n "$file_magic_test_file"; then
10239         case $deplibs_check_method in
10240         "file_magic "*)
10241           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10242           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10243           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10244             $EGREP "$file_magic_regex" > /dev/null; then
10245             :
10246           else
10247             cat <<_LT_EOF 1>&2
10248
10249 *** Warning: the command libtool uses to detect shared libraries,
10250 *** $file_magic_cmd, produces output that libtool cannot recognize.
10251 *** The result is that libtool may fail to recognize shared libraries
10252 *** as such.  This will affect the creation of libtool libraries that
10253 *** depend on shared libraries, but programs linked with such libtool
10254 *** libraries will work regardless of this problem.  Nevertheless, you
10255 *** may want to report the problem to your system manager and/or to
10256 *** bug-libtool@gnu.org
10257
10258 _LT_EOF
10259           fi ;;
10260         esac
10261       fi
10262       break
10263     fi
10264   done
10265   IFS="$lt_save_ifs"
10266   MAGIC_CMD="$lt_save_MAGIC_CMD"
10267   ;;
10268 esac
10269 fi
10270
10271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10272 if test -n "$MAGIC_CMD"; then
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10274 $as_echo "$MAGIC_CMD" >&6; }
10275 else
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280
10281   else
10282     MAGIC_CMD=:
10283   fi
10284 fi
10285
10286   fi
10287   ;;
10288 esac
10289
10290 # Use C for the default configuration in the libtool script
10291
10292 lt_save_CC="$CC"
10293 ac_ext=c
10294 ac_cpp='$CPP $CPPFLAGS'
10295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10298
10299
10300 # Source file extension for C test sources.
10301 ac_ext=c
10302
10303 # Object file extension for compiled C test sources.
10304 objext=o
10305 objext=$objext
10306
10307 # Code to be used in simple compile tests
10308 lt_simple_compile_test_code="int some_variable = 0;"
10309
10310 # Code to be used in simple link tests
10311 lt_simple_link_test_code='int main(){return(0);}'
10312
10313
10314
10315
10316
10317
10318
10319 # If no C compiler was specified, use CC.
10320 LTCC=${LTCC-"$CC"}
10321
10322 # If no C compiler flags were specified, use CFLAGS.
10323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10324
10325 # Allow CC to be a program name with arguments.
10326 compiler=$CC
10327
10328 # Save the default compiler, since it gets overwritten when the other
10329 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10330 compiler_DEFAULT=$CC
10331
10332 # save warnings/boilerplate of simple test code
10333 ac_outfile=conftest.$ac_objext
10334 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10336 _lt_compiler_boilerplate=`cat conftest.err`
10337 $RM conftest*
10338
10339 ac_outfile=conftest.$ac_objext
10340 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10342 _lt_linker_boilerplate=`cat conftest.err`
10343 $RM -r conftest*
10344
10345
10346 ## CAVEAT EMPTOR:
10347 ## There is no encapsulation within the following macros, do not change
10348 ## the running order or otherwise move them around unless you know exactly
10349 ## what you are doing...
10350 if test -n "$compiler"; then
10351
10352 lt_prog_compiler_no_builtin_flag=
10353
10354 if test "$GCC" = yes; then
10355   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10356
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10358 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10359 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   lt_cv_prog_compiler_rtti_exceptions=no
10363    ac_outfile=conftest.$ac_objext
10364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365    lt_compiler_flag="-fno-rtti -fno-exceptions"
10366    # Insert the option either (1) after the last *FLAGS variable, or
10367    # (2) before a word containing "conftest.", or (3) at the end.
10368    # Note that $ac_compile itself does not contain backslashes and begins
10369    # with a dollar sign (not a hyphen), so the echo should work correctly.
10370    # The option is referenced via a variable to avoid confusing sed.
10371    lt_compile=`echo "$ac_compile" | $SED \
10372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374    -e 's:$: $lt_compiler_flag:'`
10375    (eval echo "\"\$as_me:10375: $lt_compile\"" >&5)
10376    (eval "$lt_compile" 2>conftest.err)
10377    ac_status=$?
10378    cat conftest.err >&5
10379    echo "$as_me:10379: \$? = $ac_status" >&5
10380    if (exit $ac_status) && test -s "$ac_outfile"; then
10381      # The compiler can only warn and ignore the option if not recognized
10382      # So say no if there are warnings other than the usual output.
10383      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10384      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10385      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10386        lt_cv_prog_compiler_rtti_exceptions=yes
10387      fi
10388    fi
10389    $RM conftest*
10390
10391 fi
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10393 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10394
10395 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10396     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10397 else
10398     :
10399 fi
10400
10401 fi
10402
10403
10404
10405
10406
10407
10408   lt_prog_compiler_wl=
10409 lt_prog_compiler_pic=
10410 lt_prog_compiler_static=
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10414
10415   if test "$GCC" = yes; then
10416     lt_prog_compiler_wl='-Wl,'
10417     lt_prog_compiler_static='-static'
10418
10419     case $host_os in
10420       aix*)
10421       # All AIX code is PIC.
10422       if test "$host_cpu" = ia64; then
10423         # AIX 5 now supports IA64 processor
10424         lt_prog_compiler_static='-Bstatic'
10425       fi
10426       ;;
10427
10428     amigaos*)
10429       case $host_cpu in
10430       powerpc)
10431             # see comment about AmigaOS4 .so support
10432             lt_prog_compiler_pic='-fPIC'
10433         ;;
10434       m68k)
10435             # FIXME: we need at least 68020 code to build shared libraries, but
10436             # adding the `-m68020' flag to GCC prevents building anything better,
10437             # like `-m68040'.
10438             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10439         ;;
10440       esac
10441       ;;
10442
10443     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10444       # PIC is the default for these OSes.
10445       ;;
10446
10447     mingw* | cygwin* | pw32* | os2* | cegcc*)
10448       # This hack is so that the source file can tell whether it is being
10449       # built for inclusion in a dll (and should export symbols for example).
10450       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10451       # (--disable-auto-import) libraries
10452       lt_prog_compiler_pic='-DDLL_EXPORT'
10453       ;;
10454
10455     darwin* | rhapsody*)
10456       # PIC is the default on this platform
10457       # Common symbols not allowed in MH_DYLIB files
10458       lt_prog_compiler_pic='-fno-common'
10459       ;;
10460
10461     hpux*)
10462       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10463       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10464       # sets the default TLS model and affects inlining.
10465       case $host_cpu in
10466       hppa*64*)
10467         # +Z the default
10468         ;;
10469       *)
10470         lt_prog_compiler_pic='-fPIC'
10471         ;;
10472       esac
10473       ;;
10474
10475     interix[3-9]*)
10476       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10477       # Instead, we relocate shared libraries at runtime.
10478       ;;
10479
10480     msdosdjgpp*)
10481       # Just because we use GCC doesn't mean we suddenly get shared libraries
10482       # on systems that don't support them.
10483       lt_prog_compiler_can_build_shared=no
10484       enable_shared=no
10485       ;;
10486
10487     *nto* | *qnx*)
10488       # QNX uses GNU C++, but need to define -shared option too, otherwise
10489       # it will coredump.
10490       lt_prog_compiler_pic='-fPIC -shared'
10491       ;;
10492
10493     sysv4*MP*)
10494       if test -d /usr/nec; then
10495         lt_prog_compiler_pic=-Kconform_pic
10496       fi
10497       ;;
10498
10499     *)
10500       lt_prog_compiler_pic='-fPIC'
10501       ;;
10502     esac
10503   else
10504     # PORTME Check for flag to pass linker flags through the system compiler.
10505     case $host_os in
10506     aix*)
10507       lt_prog_compiler_wl='-Wl,'
10508       if test "$host_cpu" = ia64; then
10509         # AIX 5 now supports IA64 processor
10510         lt_prog_compiler_static='-Bstatic'
10511       else
10512         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10513       fi
10514       ;;
10515
10516     mingw* | cygwin* | pw32* | os2* | cegcc*)
10517       # This hack is so that the source file can tell whether it is being
10518       # built for inclusion in a dll (and should export symbols for example).
10519       lt_prog_compiler_pic='-DDLL_EXPORT'
10520       ;;
10521
10522     hpux9* | hpux10* | hpux11*)
10523       lt_prog_compiler_wl='-Wl,'
10524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10525       # not for PA HP-UX.
10526       case $host_cpu in
10527       hppa*64*|ia64*)
10528         # +Z the default
10529         ;;
10530       *)
10531         lt_prog_compiler_pic='+Z'
10532         ;;
10533       esac
10534       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10535       lt_prog_compiler_static='${wl}-a ${wl}archive'
10536       ;;
10537
10538     irix5* | irix6* | nonstopux*)
10539       lt_prog_compiler_wl='-Wl,'
10540       # PIC (with -KPIC) is the default.
10541       lt_prog_compiler_static='-non_shared'
10542       ;;
10543
10544     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10545       case $cc_basename in
10546       # old Intel for x86_64 which still supported -KPIC.
10547       ecc*)
10548         lt_prog_compiler_wl='-Wl,'
10549         lt_prog_compiler_pic='-KPIC'
10550         lt_prog_compiler_static='-static'
10551         ;;
10552       # icc used to be incompatible with GCC.
10553       # ICC 10 doesn't accept -KPIC any more.
10554       icc* | ifort*)
10555         lt_prog_compiler_wl='-Wl,'
10556         lt_prog_compiler_pic='-fPIC'
10557         lt_prog_compiler_static='-static'
10558         ;;
10559       # Lahey Fortran 8.1.
10560       lf95*)
10561         lt_prog_compiler_wl='-Wl,'
10562         lt_prog_compiler_pic='--shared'
10563         lt_prog_compiler_static='--static'
10564         ;;
10565       pgcc* | pgf77* | pgf90* | pgf95*)
10566         # Portland Group compilers (*not* the Pentium gcc compiler,
10567         # which looks to be a dead project)
10568         lt_prog_compiler_wl='-Wl,'
10569         lt_prog_compiler_pic='-fpic'
10570         lt_prog_compiler_static='-Bstatic'
10571         ;;
10572       ccc*)
10573         lt_prog_compiler_wl='-Wl,'
10574         # All Alpha code is PIC.
10575         lt_prog_compiler_static='-non_shared'
10576         ;;
10577       xl*)
10578         # IBM XL C 8.0/Fortran 10.1 on PPC
10579         lt_prog_compiler_wl='-Wl,'
10580         lt_prog_compiler_pic='-qpic'
10581         lt_prog_compiler_static='-qstaticlink'
10582         ;;
10583       *)
10584         case `$CC -V 2>&1 | sed 5q` in
10585         *Sun\ C*)
10586           # Sun C 5.9
10587           lt_prog_compiler_pic='-KPIC'
10588           lt_prog_compiler_static='-Bstatic'
10589           lt_prog_compiler_wl='-Wl,'
10590           ;;
10591         *Sun\ F*)
10592           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10593           lt_prog_compiler_pic='-KPIC'
10594           lt_prog_compiler_static='-Bstatic'
10595           lt_prog_compiler_wl=''
10596           ;;
10597         esac
10598         ;;
10599       esac
10600       ;;
10601
10602     newsos6)
10603       lt_prog_compiler_pic='-KPIC'
10604       lt_prog_compiler_static='-Bstatic'
10605       ;;
10606
10607     *nto* | *qnx*)
10608       # QNX uses GNU C++, but need to define -shared option too, otherwise
10609       # it will coredump.
10610       lt_prog_compiler_pic='-fPIC -shared'
10611       ;;
10612
10613     osf3* | osf4* | osf5*)
10614       lt_prog_compiler_wl='-Wl,'
10615       # All OSF/1 code is PIC.
10616       lt_prog_compiler_static='-non_shared'
10617       ;;
10618
10619     rdos*)
10620       lt_prog_compiler_static='-non_shared'
10621       ;;
10622
10623     solaris*)
10624       lt_prog_compiler_pic='-KPIC'
10625       lt_prog_compiler_static='-Bstatic'
10626       case $cc_basename in
10627       f77* | f90* | f95*)
10628         lt_prog_compiler_wl='-Qoption ld ';;
10629       *)
10630         lt_prog_compiler_wl='-Wl,';;
10631       esac
10632       ;;
10633
10634     sunos4*)
10635       lt_prog_compiler_wl='-Qoption ld '
10636       lt_prog_compiler_pic='-PIC'
10637       lt_prog_compiler_static='-Bstatic'
10638       ;;
10639
10640     sysv4 | sysv4.2uw2* | sysv4.3*)
10641       lt_prog_compiler_wl='-Wl,'
10642       lt_prog_compiler_pic='-KPIC'
10643       lt_prog_compiler_static='-Bstatic'
10644       ;;
10645
10646     sysv4*MP*)
10647       if test -d /usr/nec ;then
10648         lt_prog_compiler_pic='-Kconform_pic'
10649         lt_prog_compiler_static='-Bstatic'
10650       fi
10651       ;;
10652
10653     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10654       lt_prog_compiler_wl='-Wl,'
10655       lt_prog_compiler_pic='-KPIC'
10656       lt_prog_compiler_static='-Bstatic'
10657       ;;
10658
10659     unicos*)
10660       lt_prog_compiler_wl='-Wl,'
10661       lt_prog_compiler_can_build_shared=no
10662       ;;
10663
10664     uts4*)
10665       lt_prog_compiler_pic='-pic'
10666       lt_prog_compiler_static='-Bstatic'
10667       ;;
10668
10669     *)
10670       lt_prog_compiler_can_build_shared=no
10671       ;;
10672     esac
10673   fi
10674
10675 case $host_os in
10676   # For platforms which do not support PIC, -DPIC is meaningless:
10677   *djgpp*)
10678     lt_prog_compiler_pic=
10679     ;;
10680   *)
10681     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10682     ;;
10683 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10685 $as_echo "$lt_prog_compiler_pic" >&6; }
10686
10687
10688
10689
10690
10691
10692 #
10693 # Check to make sure the PIC flag actually works.
10694 #
10695 if test -n "$lt_prog_compiler_pic"; then
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10697 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10698 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   lt_cv_prog_compiler_pic_works=no
10702    ac_outfile=conftest.$ac_objext
10703    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10704    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10705    # Insert the option either (1) after the last *FLAGS variable, or
10706    # (2) before a word containing "conftest.", or (3) at the end.
10707    # Note that $ac_compile itself does not contain backslashes and begins
10708    # with a dollar sign (not a hyphen), so the echo should work correctly.
10709    # The option is referenced via a variable to avoid confusing sed.
10710    lt_compile=`echo "$ac_compile" | $SED \
10711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713    -e 's:$: $lt_compiler_flag:'`
10714    (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
10715    (eval "$lt_compile" 2>conftest.err)
10716    ac_status=$?
10717    cat conftest.err >&5
10718    echo "$as_me:10718: \$? = $ac_status" >&5
10719    if (exit $ac_status) && test -s "$ac_outfile"; then
10720      # The compiler can only warn and ignore the option if not recognized
10721      # So say no if there are warnings other than the usual output.
10722      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10723      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10724      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10725        lt_cv_prog_compiler_pic_works=yes
10726      fi
10727    fi
10728    $RM conftest*
10729
10730 fi
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10732 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10733
10734 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10735     case $lt_prog_compiler_pic in
10736      "" | " "*) ;;
10737      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10738      esac
10739 else
10740     lt_prog_compiler_pic=
10741      lt_prog_compiler_can_build_shared=no
10742 fi
10743
10744 fi
10745
10746
10747
10748
10749
10750
10751 #
10752 # Check to make sure the static flag actually works.
10753 #
10754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10756 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10757 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   lt_cv_prog_compiler_static_works=no
10761    save_LDFLAGS="$LDFLAGS"
10762    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10763    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10765      # The linker can only warn and ignore the option if not recognized
10766      # So say no if there are warnings
10767      if test -s conftest.err; then
10768        # Append any errors to the config.log.
10769        cat conftest.err 1>&5
10770        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10771        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10772        if diff conftest.exp conftest.er2 >/dev/null; then
10773          lt_cv_prog_compiler_static_works=yes
10774        fi
10775      else
10776        lt_cv_prog_compiler_static_works=yes
10777      fi
10778    fi
10779    $RM -r conftest*
10780    LDFLAGS="$save_LDFLAGS"
10781
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10784 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10785
10786 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10787     :
10788 else
10789     lt_prog_compiler_static=
10790 fi
10791
10792
10793
10794
10795
10796
10797
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10800 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   lt_cv_prog_compiler_c_o=no
10804    $RM -r conftest 2>/dev/null
10805    mkdir conftest
10806    cd conftest
10807    mkdir out
10808    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809
10810    lt_compiler_flag="-o out/conftest2.$ac_objext"
10811    # Insert the option either (1) after the last *FLAGS variable, or
10812    # (2) before a word containing "conftest.", or (3) at the end.
10813    # Note that $ac_compile itself does not contain backslashes and begins
10814    # with a dollar sign (not a hyphen), so the echo should work correctly.
10815    lt_compile=`echo "$ac_compile" | $SED \
10816    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818    -e 's:$: $lt_compiler_flag:'`
10819    (eval echo "\"\$as_me:10819: $lt_compile\"" >&5)
10820    (eval "$lt_compile" 2>out/conftest.err)
10821    ac_status=$?
10822    cat out/conftest.err >&5
10823    echo "$as_me:10823: \$? = $ac_status" >&5
10824    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10825    then
10826      # The compiler can only warn and ignore the option if not recognized
10827      # So say no if there are warnings
10828      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10829      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10830      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10831        lt_cv_prog_compiler_c_o=yes
10832      fi
10833    fi
10834    chmod u+w . 2>&5
10835    $RM conftest*
10836    # SGI C++ compiler will create directory out/ii_files/ for
10837    # template instantiation
10838    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10839    $RM out/* && rmdir out
10840    cd ..
10841    $RM -r conftest
10842    $RM conftest*
10843
10844 fi
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10847
10848
10849
10850
10851
10852
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10854 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10855 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   lt_cv_prog_compiler_c_o=no
10859    $RM -r conftest 2>/dev/null
10860    mkdir conftest
10861    cd conftest
10862    mkdir out
10863    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10864
10865    lt_compiler_flag="-o out/conftest2.$ac_objext"
10866    # Insert the option either (1) after the last *FLAGS variable, or
10867    # (2) before a word containing "conftest.", or (3) at the end.
10868    # Note that $ac_compile itself does not contain backslashes and begins
10869    # with a dollar sign (not a hyphen), so the echo should work correctly.
10870    lt_compile=`echo "$ac_compile" | $SED \
10871    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10872    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10873    -e 's:$: $lt_compiler_flag:'`
10874    (eval echo "\"\$as_me:10874: $lt_compile\"" >&5)
10875    (eval "$lt_compile" 2>out/conftest.err)
10876    ac_status=$?
10877    cat out/conftest.err >&5
10878    echo "$as_me:10878: \$? = $ac_status" >&5
10879    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10880    then
10881      # The compiler can only warn and ignore the option if not recognized
10882      # So say no if there are warnings
10883      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10884      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10885      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10886        lt_cv_prog_compiler_c_o=yes
10887      fi
10888    fi
10889    chmod u+w . 2>&5
10890    $RM conftest*
10891    # SGI C++ compiler will create directory out/ii_files/ for
10892    # template instantiation
10893    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10894    $RM out/* && rmdir out
10895    cd ..
10896    $RM -r conftest
10897    $RM conftest*
10898
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10901 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10902
10903
10904
10905
10906 hard_links="nottested"
10907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10908   # do not overwrite the value of need_locks provided by the user
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10910 $as_echo_n "checking if we can lock with hard links... " >&6; }
10911   hard_links=yes
10912   $RM conftest*
10913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10914   touch conftest.a
10915   ln conftest.a conftest.b 2>&5 || hard_links=no
10916   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10918 $as_echo "$hard_links" >&6; }
10919   if test "$hard_links" = no; then
10920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10921 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10922     need_locks=warn
10923   fi
10924 else
10925   need_locks=no
10926 fi
10927
10928
10929
10930
10931
10932
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10934 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10935
10936   runpath_var=
10937   allow_undefined_flag=
10938   always_export_symbols=no
10939   archive_cmds=
10940   archive_expsym_cmds=
10941   compiler_needs_object=no
10942   enable_shared_with_static_runtimes=no
10943   export_dynamic_flag_spec=
10944   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945   hardcode_automatic=no
10946   hardcode_direct=no
10947   hardcode_direct_absolute=no
10948   hardcode_libdir_flag_spec=
10949   hardcode_libdir_flag_spec_ld=
10950   hardcode_libdir_separator=
10951   hardcode_minus_L=no
10952   hardcode_shlibpath_var=unsupported
10953   inherit_rpath=no
10954   link_all_deplibs=unknown
10955   module_cmds=
10956   module_expsym_cmds=
10957   old_archive_from_new_cmds=
10958   old_archive_from_expsyms_cmds=
10959   thread_safe_flag_spec=
10960   whole_archive_flag_spec=
10961   # include_expsyms should be a list of space-separated symbols to be *always*
10962   # included in the symbol list
10963   include_expsyms=
10964   # exclude_expsyms can be an extended regexp of symbols to exclude
10965   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10966   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10967   # as well as any symbol that contains `d'.
10968   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10969   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10970   # platforms (ab)use it in PIC code, but their linkers get confused if
10971   # the symbol is explicitly referenced.  Since portable code cannot
10972   # rely on this symbol name, it's probably fine to never include it in
10973   # preloaded symbol tables.
10974   # Exclude shared library initialization/finalization symbols.
10975   extract_expsyms_cmds=
10976
10977   case $host_os in
10978   cygwin* | mingw* | pw32* | cegcc*)
10979     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10980     # When not using gcc, we currently assume that we are using
10981     # Microsoft Visual C++.
10982     if test "$GCC" != yes; then
10983       with_gnu_ld=no
10984     fi
10985     ;;
10986   interix*)
10987     # we just hope/assume this is gcc and not c89 (= MSVC++)
10988     with_gnu_ld=yes
10989     ;;
10990   openbsd*)
10991     with_gnu_ld=no
10992     ;;
10993   linux* | k*bsd*-gnu)
10994     link_all_deplibs=no
10995     ;;
10996   esac
10997
10998   ld_shlibs=yes
10999   if test "$with_gnu_ld" = yes; then
11000     # If archive_cmds runs LD, not CC, wlarc should be empty
11001     wlarc='${wl}'
11002
11003     # Set some defaults for GNU ld with shared library support. These
11004     # are reset later if shared libraries are not supported. Putting them
11005     # here allows them to be overridden if necessary.
11006     runpath_var=LD_RUN_PATH
11007     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11008     export_dynamic_flag_spec='${wl}--export-dynamic'
11009     # ancient GNU ld didn't support --whole-archive et. al.
11010     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11011       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11012     else
11013       whole_archive_flag_spec=
11014     fi
11015     supports_anon_versioning=no
11016     case `$LD -v 2>&1` in
11017       *GNU\ gold*) supports_anon_versioning=yes ;;
11018       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11019       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11020       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11021       *\ 2.11.*) ;; # other 2.11 versions
11022       *) supports_anon_versioning=yes ;;
11023     esac
11024
11025     # See if GNU ld supports shared libraries.
11026     case $host_os in
11027     aix[3-9]*)
11028       # On AIX/PPC, the GNU linker is very broken
11029       if test "$host_cpu" != ia64; then
11030         ld_shlibs=no
11031         cat <<_LT_EOF 1>&2
11032
11033 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11034 *** to be unable to reliably create shared libraries on AIX.
11035 *** Therefore, libtool is disabling shared libraries support.  If you
11036 *** really care for shared libraries, you may want to modify your PATH
11037 *** so that a non-GNU linker is found, and then restart.
11038
11039 _LT_EOF
11040       fi
11041       ;;
11042
11043     amigaos*)
11044       case $host_cpu in
11045       powerpc)
11046             # see comment about AmigaOS4 .so support
11047             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048             archive_expsym_cmds=''
11049         ;;
11050       m68k)
11051             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)'
11052             hardcode_libdir_flag_spec='-L$libdir'
11053             hardcode_minus_L=yes
11054         ;;
11055       esac
11056       ;;
11057
11058     beos*)
11059       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11060         allow_undefined_flag=unsupported
11061         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11062         # support --undefined.  This deserves some investigation.  FIXME
11063         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064       else
11065         ld_shlibs=no
11066       fi
11067       ;;
11068
11069     cygwin* | mingw* | pw32* | cegcc*)
11070       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11071       # as there is no search path for DLLs.
11072       hardcode_libdir_flag_spec='-L$libdir'
11073       allow_undefined_flag=unsupported
11074       always_export_symbols=no
11075       enable_shared_with_static_runtimes=yes
11076       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11077
11078       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11080         # If the export-symbols file already is a .def file (1st line
11081         # is EXPORTS), use it as is; otherwise, prepend...
11082         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11083           cp $export_symbols $output_objdir/$soname.def;
11084         else
11085           echo EXPORTS > $output_objdir/$soname.def;
11086           cat $export_symbols >> $output_objdir/$soname.def;
11087         fi~
11088         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11089       else
11090         ld_shlibs=no
11091       fi
11092       ;;
11093
11094     interix[3-9]*)
11095       hardcode_direct=no
11096       hardcode_shlibpath_var=no
11097       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11098       export_dynamic_flag_spec='${wl}-E'
11099       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11100       # Instead, shared libraries are loaded at an image base (0x10000000 by
11101       # default) and relocated if they conflict, which is a slow very memory
11102       # consuming and fragmenting process.  To avoid this, we pick a random,
11103       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11104       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11105       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11106       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'
11107       ;;
11108
11109     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11110       tmp_diet=no
11111       if test "$host_os" = linux-dietlibc; then
11112         case $cc_basename in
11113           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11114         esac
11115       fi
11116       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11117          && test "$tmp_diet" = no
11118       then
11119         tmp_addflag=
11120         tmp_sharedflag='-shared'
11121         case $cc_basename,$host_cpu in
11122         pgcc*)                          # Portland Group C compiler
11123           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11124           tmp_addflag=' $pic_flag'
11125           ;;
11126         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11127           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11128           tmp_addflag=' $pic_flag -Mnomain' ;;
11129         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11130           tmp_addflag=' -i_dynamic' ;;
11131         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11132           tmp_addflag=' -i_dynamic -nofor_main' ;;
11133         ifc* | ifort*)                  # Intel Fortran compiler
11134           tmp_addflag=' -nofor_main' ;;
11135         lf95*)                          # Lahey Fortran 8.1
11136           whole_archive_flag_spec=
11137           tmp_sharedflag='--shared' ;;
11138         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11139           tmp_sharedflag='-qmkshrobj'
11140           tmp_addflag= ;;
11141         esac
11142         case `$CC -V 2>&1 | sed 5q` in
11143         *Sun\ C*)                       # Sun C 5.9
11144           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11145           compiler_needs_object=yes
11146           tmp_sharedflag='-G' ;;
11147         *Sun\ F*)                       # Sun Fortran 8.3
11148           tmp_sharedflag='-G' ;;
11149         esac
11150         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11151
11152         if test "x$supports_anon_versioning" = xyes; then
11153           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11154             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11155             echo "local: *; };" >> $output_objdir/$libname.ver~
11156             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11157         fi
11158
11159         case $cc_basename in
11160         xlf*)
11161           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11162           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11163           hardcode_libdir_flag_spec=
11164           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11165           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11166           if test "x$supports_anon_versioning" = xyes; then
11167             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11168               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11169               echo "local: *; };" >> $output_objdir/$libname.ver~
11170               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11171           fi
11172           ;;
11173         esac
11174       else
11175         ld_shlibs=no
11176       fi
11177       ;;
11178
11179     netbsd* | netbsdelf*-gnu)
11180       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11182         wlarc=
11183       else
11184         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11185         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11186       fi
11187       ;;
11188
11189     solaris*)
11190       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11191         ld_shlibs=no
11192         cat <<_LT_EOF 1>&2
11193
11194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11195 *** create shared libraries on Solaris systems.  Therefore, libtool
11196 *** is disabling shared libraries support.  We urge you to upgrade GNU
11197 *** binutils to release 2.9.1 or newer.  Another option is to modify
11198 *** your PATH or compiler configuration so that the native linker is
11199 *** used, and then restart.
11200
11201 _LT_EOF
11202       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11204         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11205       else
11206         ld_shlibs=no
11207       fi
11208       ;;
11209
11210     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11211       case `$LD -v 2>&1` in
11212         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11213         ld_shlibs=no
11214         cat <<_LT_EOF 1>&2
11215
11216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11217 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11218 *** is disabling shared libraries support.  We urge you to upgrade GNU
11219 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11220 *** your PATH or compiler configuration so that the native linker is
11221 *** used, and then restart.
11222
11223 _LT_EOF
11224         ;;
11225         *)
11226           # For security reasons, it is highly recommended that you always
11227           # use absolute paths for naming shared libraries, and exclude the
11228           # DT_RUNPATH tag from executables and libraries.  But doing so
11229           # requires that you compile everything twice, which is a pain.
11230           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11231             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11232             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11234           else
11235             ld_shlibs=no
11236           fi
11237         ;;
11238       esac
11239       ;;
11240
11241     sunos4*)
11242       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11243       wlarc=
11244       hardcode_direct=yes
11245       hardcode_shlibpath_var=no
11246       ;;
11247
11248     *)
11249       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11251         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11252       else
11253         ld_shlibs=no
11254       fi
11255       ;;
11256     esac
11257
11258     if test "$ld_shlibs" = no; then
11259       runpath_var=
11260       hardcode_libdir_flag_spec=
11261       export_dynamic_flag_spec=
11262       whole_archive_flag_spec=
11263     fi
11264   else
11265     # PORTME fill in a description of your system's linker (not GNU ld)
11266     case $host_os in
11267     aix3*)
11268       allow_undefined_flag=unsupported
11269       always_export_symbols=yes
11270       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'
11271       # Note: this linker hardcodes the directories in LIBPATH if there
11272       # are no directories specified by -L.
11273       hardcode_minus_L=yes
11274       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11275         # Neither direct hardcoding nor static linking is supported with a
11276         # broken collect2.
11277         hardcode_direct=unsupported
11278       fi
11279       ;;
11280
11281     aix[4-9]*)
11282       if test "$host_cpu" = ia64; then
11283         # On IA64, the linker does run time linking by default, so we don't
11284         # have to do anything special.
11285         aix_use_runtimelinking=no
11286         exp_sym_flag='-Bexport'
11287         no_entry_flag=""
11288       else
11289         # If we're using GNU nm, then we don't want the "-C" option.
11290         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11291         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11292           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11293         else
11294           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11295         fi
11296         aix_use_runtimelinking=no
11297
11298         # Test if we are trying to use run time linking or normal
11299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300         # need to do runtime linking.
11301         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11302           for ld_flag in $LDFLAGS; do
11303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11304             aix_use_runtimelinking=yes
11305             break
11306           fi
11307           done
11308           ;;
11309         esac
11310
11311         exp_sym_flag='-bexport'
11312         no_entry_flag='-bnoentry'
11313       fi
11314
11315       # When large executables or shared objects are built, AIX ld can
11316       # have problems creating the table of contents.  If linking a library
11317       # or program results in "error TOC overflow" add -mminimal-toc to
11318       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11319       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11320
11321       archive_cmds=''
11322       hardcode_direct=yes
11323       hardcode_direct_absolute=yes
11324       hardcode_libdir_separator=':'
11325       link_all_deplibs=yes
11326       file_list_spec='${wl}-f,'
11327
11328       if test "$GCC" = yes; then
11329         case $host_os in aix4.[012]|aix4.[012].*)
11330         # We only want to do this on AIX 4.2 and lower, the check
11331         # below for broken collect2 doesn't work under 4.3+
11332           collect2name=`${CC} -print-prog-name=collect2`
11333           if test -f "$collect2name" &&
11334            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11335           then
11336           # We have reworked collect2
11337           :
11338           else
11339           # We have old collect2
11340           hardcode_direct=unsupported
11341           # It fails to find uninstalled libraries when the uninstalled
11342           # path is not listed in the libpath.  Setting hardcode_minus_L
11343           # to unsupported forces relinking
11344           hardcode_minus_L=yes
11345           hardcode_libdir_flag_spec='-L$libdir'
11346           hardcode_libdir_separator=
11347           fi
11348           ;;
11349         esac
11350         shared_flag='-shared'
11351         if test "$aix_use_runtimelinking" = yes; then
11352           shared_flag="$shared_flag "'${wl}-G'
11353         fi
11354         link_all_deplibs=no
11355       else
11356         # not using gcc
11357         if test "$host_cpu" = ia64; then
11358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11359         # chokes on -Wl,-G. The following line is correct:
11360           shared_flag='-G'
11361         else
11362           if test "$aix_use_runtimelinking" = yes; then
11363             shared_flag='${wl}-G'
11364           else
11365             shared_flag='${wl}-bM:SRE'
11366           fi
11367         fi
11368       fi
11369
11370       export_dynamic_flag_spec='${wl}-bexpall'
11371       # It seems that -bexpall does not export symbols beginning with
11372       # underscore (_), so it is better to generate a list of symbols to export.
11373       always_export_symbols=yes
11374       if test "$aix_use_runtimelinking" = yes; then
11375         # Warning - without using the other runtime loading flags (-brtl),
11376         # -berok will link without error, but may produce a broken library.
11377         allow_undefined_flag='-berok'
11378         # Determine the default libpath from the value encoded in an
11379         # empty executable.
11380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h.  */
11382
11383 int main (void)
11384 {
11385
11386  ;
11387  return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391
11392 lt_aix_libpath_sed='
11393     /Import File Strings/,/^$/ {
11394         /^0/ {
11395             s/^0  *\(.*\)$/\1/
11396             p
11397         }
11398     }'
11399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11400 # Check for a 64-bit object if we didn't find anything.
11401 if test -z "$aix_libpath"; then
11402   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 fi
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406     conftest$ac_exeext conftest.$ac_ext
11407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11408
11409         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11410         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11411       else
11412         if test "$host_cpu" = ia64; then
11413           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11414           allow_undefined_flag="-z nodefs"
11415           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"
11416         else
11417          # Determine the default libpath from the value encoded in an
11418          # empty executable.
11419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421
11422 int main (void)
11423 {
11424
11425  ;
11426  return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430
11431 lt_aix_libpath_sed='
11432     /Import File Strings/,/^$/ {
11433         /^0/ {
11434             s/^0  *\(.*\)$/\1/
11435             p
11436         }
11437     }'
11438 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11439 # Check for a 64-bit object if we didn't find anything.
11440 if test -z "$aix_libpath"; then
11441   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11442 fi
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext \
11445     conftest$ac_exeext conftest.$ac_ext
11446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11447
11448          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11449           # Warning - without using the other run time loading flags,
11450           # -berok will link without error, but may produce a broken library.
11451           no_undefined_flag=' ${wl}-bernotok'
11452           allow_undefined_flag=' ${wl}-berok'
11453           # Exported symbols can be pulled into shared objects from archives
11454           whole_archive_flag_spec='$convenience'
11455           archive_cmds_need_lc=yes
11456           # This is similar to how AIX traditionally builds its shared libraries.
11457           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11458         fi
11459       fi
11460       ;;
11461
11462     amigaos*)
11463       case $host_cpu in
11464       powerpc)
11465             # see comment about AmigaOS4 .so support
11466             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467             archive_expsym_cmds=''
11468         ;;
11469       m68k)
11470             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)'
11471             hardcode_libdir_flag_spec='-L$libdir'
11472             hardcode_minus_L=yes
11473         ;;
11474       esac
11475       ;;
11476
11477     bsdi[45]*)
11478       export_dynamic_flag_spec=-rdynamic
11479       ;;
11480
11481     cygwin* | mingw* | pw32* | cegcc*)
11482       # When not using gcc, we currently assume that we are using
11483       # Microsoft Visual C++.
11484       # hardcode_libdir_flag_spec is actually meaningless, as there is
11485       # no search path for DLLs.
11486       hardcode_libdir_flag_spec=' '
11487       allow_undefined_flag=unsupported
11488       # Tell ltmain to make .lib files, not .a files.
11489       libext=lib
11490       # Tell ltmain to make .dll files, not .so files.
11491       shrext_cmds=".dll"
11492       # FIXME: Setting linknames here is a bad hack.
11493       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11494       # The linker will automatically build a .lib file if we build a DLL.
11495       old_archive_from_new_cmds='true'
11496       # FIXME: Should let the user specify the lib program.
11497       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11498       fix_srcfile_path='`cygpath -w "$srcfile"`'
11499       enable_shared_with_static_runtimes=yes
11500       ;;
11501
11502     darwin* | rhapsody*)
11503
11504
11505   archive_cmds_need_lc=no
11506   hardcode_direct=no
11507   hardcode_automatic=yes
11508   hardcode_shlibpath_var=unsupported
11509   whole_archive_flag_spec=''
11510   link_all_deplibs=yes
11511   allow_undefined_flag="$_lt_dar_allow_undefined"
11512   case $cc_basename in
11513      ifort*) _lt_dar_can_shared=yes ;;
11514      *) _lt_dar_can_shared=$GCC ;;
11515   esac
11516   if test "$_lt_dar_can_shared" = "yes"; then
11517     output_verbose_link_cmd=echo
11518     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11519     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11520     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}"
11521     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}"
11522
11523   else
11524   ld_shlibs=no
11525   fi
11526
11527       ;;
11528
11529     dgux*)
11530       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531       hardcode_libdir_flag_spec='-L$libdir'
11532       hardcode_shlibpath_var=no
11533       ;;
11534
11535     freebsd1*)
11536       ld_shlibs=no
11537       ;;
11538
11539     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11540     # support.  Future versions do this automatically, but an explicit c++rt0.o
11541     # does not break anything, and helps significantly (at the cost of a little
11542     # extra space).
11543     freebsd2.2*)
11544       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11545       hardcode_libdir_flag_spec='-R$libdir'
11546       hardcode_direct=yes
11547       hardcode_shlibpath_var=no
11548       ;;
11549
11550     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11551     freebsd2*)
11552       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11553       hardcode_direct=yes
11554       hardcode_minus_L=yes
11555       hardcode_shlibpath_var=no
11556       ;;
11557
11558     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11559     freebsd* | dragonfly*)
11560       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11561       hardcode_libdir_flag_spec='-R$libdir'
11562       hardcode_direct=yes
11563       hardcode_shlibpath_var=no
11564       ;;
11565
11566     hpux9*)
11567       if test "$GCC" = yes; then
11568         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11569       else
11570         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11571       fi
11572       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11573       hardcode_libdir_separator=:
11574       hardcode_direct=yes
11575
11576       # hardcode_minus_L: Not really in the search PATH,
11577       # but as the default location of the library.
11578       hardcode_minus_L=yes
11579       export_dynamic_flag_spec='${wl}-E'
11580       ;;
11581
11582     hpux10*)
11583       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11584         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11585       else
11586         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11587       fi
11588       if test "$with_gnu_ld" = no; then
11589         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590         hardcode_libdir_flag_spec_ld='+b $libdir'
11591         hardcode_libdir_separator=:
11592         hardcode_direct=yes
11593         hardcode_direct_absolute=yes
11594         export_dynamic_flag_spec='${wl}-E'
11595         # hardcode_minus_L: Not really in the search PATH,
11596         # but as the default location of the library.
11597         hardcode_minus_L=yes
11598       fi
11599       ;;
11600
11601     hpux11*)
11602       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11603         case $host_cpu in
11604         hppa*64*)
11605           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11606           ;;
11607         ia64*)
11608           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11609           ;;
11610         *)
11611           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11612           ;;
11613         esac
11614       else
11615         case $host_cpu in
11616         hppa*64*)
11617           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618           ;;
11619         ia64*)
11620           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11621           ;;
11622         *)
11623           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11624           ;;
11625         esac
11626       fi
11627       if test "$with_gnu_ld" = no; then
11628         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11629         hardcode_libdir_separator=:
11630
11631         case $host_cpu in
11632         hppa*64*|ia64*)
11633           hardcode_direct=no
11634           hardcode_shlibpath_var=no
11635           ;;
11636         *)
11637           hardcode_direct=yes
11638           hardcode_direct_absolute=yes
11639           export_dynamic_flag_spec='${wl}-E'
11640
11641           # hardcode_minus_L: Not really in the search PATH,
11642           # but as the default location of the library.
11643           hardcode_minus_L=yes
11644           ;;
11645         esac
11646       fi
11647       ;;
11648
11649     irix5* | irix6* | nonstopux*)
11650       if test "$GCC" = yes; then
11651         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11652         # Try to use the -exported_symbol ld option, if it does not
11653         # work, assume that -exports_file does not work either and
11654         # implicitly export all symbols.
11655         save_LDFLAGS="$LDFLAGS"
11656         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11657         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h.  */
11659 int foo(void) {}
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11663
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667         LDFLAGS="$save_LDFLAGS"
11668       else
11669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11670         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11671       fi
11672       archive_cmds_need_lc='no'
11673       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11674       hardcode_libdir_separator=:
11675       inherit_rpath=yes
11676       link_all_deplibs=yes
11677       ;;
11678
11679     netbsd* | netbsdelf*-gnu)
11680       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11681         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11682       else
11683         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11684       fi
11685       hardcode_libdir_flag_spec='-R$libdir'
11686       hardcode_direct=yes
11687       hardcode_shlibpath_var=no
11688       ;;
11689
11690     newsos6)
11691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11692       hardcode_direct=yes
11693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11694       hardcode_libdir_separator=:
11695       hardcode_shlibpath_var=no
11696       ;;
11697
11698     *nto* | *qnx*)
11699       ;;
11700
11701     openbsd*)
11702       if test -f /usr/libexec/ld.so; then
11703         hardcode_direct=yes
11704         hardcode_shlibpath_var=no
11705         hardcode_direct_absolute=yes
11706         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11707           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11708           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11709           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11710           export_dynamic_flag_spec='${wl}-E'
11711         else
11712           case $host_os in
11713            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11714              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11715              hardcode_libdir_flag_spec='-R$libdir'
11716              ;;
11717            *)
11718              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11719              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11720              ;;
11721           esac
11722         fi
11723       else
11724         ld_shlibs=no
11725       fi
11726       ;;
11727
11728     os2*)
11729       hardcode_libdir_flag_spec='-L$libdir'
11730       hardcode_minus_L=yes
11731       allow_undefined_flag=unsupported
11732       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11733       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11734       ;;
11735
11736     osf3*)
11737       if test "$GCC" = yes; then
11738         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11739         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11740       else
11741         allow_undefined_flag=' -expect_unresolved \*'
11742         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11743       fi
11744       archive_cmds_need_lc='no'
11745       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11746       hardcode_libdir_separator=:
11747       ;;
11748
11749     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11750       if test "$GCC" = yes; then
11751         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11752         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11753         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11754       else
11755         allow_undefined_flag=' -expect_unresolved \*'
11756         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11757         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~
11758         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11759
11760         # Both c and cxx compiler support -rpath directly
11761         hardcode_libdir_flag_spec='-rpath $libdir'
11762       fi
11763       archive_cmds_need_lc='no'
11764       hardcode_libdir_separator=:
11765       ;;
11766
11767     solaris*)
11768       no_undefined_flag=' -z defs'
11769       if test "$GCC" = yes; then
11770         wlarc='${wl}'
11771         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11773           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11774       else
11775         case `$CC -V 2>&1` in
11776         *"Compilers 5.0"*)
11777           wlarc=''
11778           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11780           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11781           ;;
11782         *)
11783           wlarc='${wl}'
11784           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11785           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11786           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11787           ;;
11788         esac
11789       fi
11790       hardcode_libdir_flag_spec='-R$libdir'
11791       hardcode_shlibpath_var=no
11792       case $host_os in
11793       solaris2.[0-5] | solaris2.[0-5].*) ;;
11794       *)
11795         # The compiler driver will combine and reorder linker options,
11796         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11797         # but is careful enough not to reorder.
11798         # Supported since Solaris 2.6 (maybe 2.5.1?)
11799         if test "$GCC" = yes; then
11800           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11801         else
11802           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11803         fi
11804         ;;
11805       esac
11806       link_all_deplibs=yes
11807       ;;
11808
11809     sunos4*)
11810       if test "x$host_vendor" = xsequent; then
11811         # Use $CC to link under sequent, because it throws in some extra .o
11812         # files that make .init and .fini sections work.
11813         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11814       else
11815         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11816       fi
11817       hardcode_libdir_flag_spec='-L$libdir'
11818       hardcode_direct=yes
11819       hardcode_minus_L=yes
11820       hardcode_shlibpath_var=no
11821       ;;
11822
11823     sysv4)
11824       case $host_vendor in
11825         sni)
11826           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11827           hardcode_direct=yes # is this really true???
11828         ;;
11829         siemens)
11830           ## LD is ld it makes a PLAMLIB
11831           ## CC just makes a GrossModule.
11832           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11833           reload_cmds='$CC -r -o $output$reload_objs'
11834           hardcode_direct=no
11835         ;;
11836         motorola)
11837           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11839         ;;
11840       esac
11841       runpath_var='LD_RUN_PATH'
11842       hardcode_shlibpath_var=no
11843       ;;
11844
11845     sysv4.3*)
11846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11847       hardcode_shlibpath_var=no
11848       export_dynamic_flag_spec='-Bexport'
11849       ;;
11850
11851     sysv4*MP*)
11852       if test -d /usr/nec; then
11853         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11854         hardcode_shlibpath_var=no
11855         runpath_var=LD_RUN_PATH
11856         hardcode_runpath_var=yes
11857         ld_shlibs=yes
11858       fi
11859       ;;
11860
11861     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11862       no_undefined_flag='${wl}-z,text'
11863       archive_cmds_need_lc=no
11864       hardcode_shlibpath_var=no
11865       runpath_var='LD_RUN_PATH'
11866
11867       if test "$GCC" = yes; then
11868         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11869         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11870       else
11871         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11872         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11873       fi
11874       ;;
11875
11876     sysv5* | sco3.2v5* | sco5v6*)
11877       # Note: We can NOT use -z defs as we might desire, because we do not
11878       # link with -lc, and that would cause any symbols used from libc to
11879       # always be unresolved, which means just about no library would
11880       # ever link correctly.  If we're not using GNU ld we use -z text
11881       # though, which does catch some bad symbols but isn't as heavy-handed
11882       # as -z defs.
11883       no_undefined_flag='${wl}-z,text'
11884       allow_undefined_flag='${wl}-z,nodefs'
11885       archive_cmds_need_lc=no
11886       hardcode_shlibpath_var=no
11887       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11888       hardcode_libdir_separator=':'
11889       link_all_deplibs=yes
11890       export_dynamic_flag_spec='${wl}-Bexport'
11891       runpath_var='LD_RUN_PATH'
11892
11893       if test "$GCC" = yes; then
11894         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896       else
11897         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899       fi
11900       ;;
11901
11902     uts4*)
11903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904       hardcode_libdir_flag_spec='-L$libdir'
11905       hardcode_shlibpath_var=no
11906       ;;
11907
11908     *)
11909       ld_shlibs=no
11910       ;;
11911     esac
11912
11913     if test x$host_vendor = xsni; then
11914       case $host in
11915       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11916         export_dynamic_flag_spec='${wl}-Blargedynsym'
11917         ;;
11918       esac
11919     fi
11920   fi
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11923 $as_echo "$ld_shlibs" >&6; }
11924 test "$ld_shlibs" = no && can_build_shared=no
11925
11926 with_gnu_ld=$with_gnu_ld
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 #
11943 # Do we need to explicitly link libc?
11944 #
11945 case "x$archive_cmds_need_lc" in
11946 x|xyes)
11947   # Assume -lc should be added
11948   archive_cmds_need_lc=yes
11949
11950   if test "$enable_shared" = yes && test "$GCC" = yes; then
11951     case $archive_cmds in
11952     *'~'*)
11953       # FIXME: we may have to deal with multi-command sequences.
11954       ;;
11955     '$CC '*)
11956       # Test whether the compiler implicitly links with -lc since on some
11957       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11958       # to ld, don't add -lc before -lgcc.
11959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11961       $RM conftest*
11962       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11963
11964       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11965   (eval $ac_compile) 2>&5
11966   ac_status=$?
11967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968   test $ac_status = 0; } 2>conftest.err; then
11969         soname=conftest
11970         lib=conftest
11971         libobjs=conftest.$ac_objext
11972         deplibs=
11973         wl=$lt_prog_compiler_wl
11974         pic_flag=$lt_prog_compiler_pic
11975         compiler_flags=-v
11976         linker_flags=-v
11977         verstring=
11978         output_objdir=.
11979         libname=conftest
11980         lt_save_allow_undefined_flag=$allow_undefined_flag
11981         allow_undefined_flag=
11982         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11983   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11984   ac_status=$?
11985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986   test $ac_status = 0; }
11987         then
11988           archive_cmds_need_lc=no
11989         else
11990           archive_cmds_need_lc=yes
11991         fi
11992         allow_undefined_flag=$lt_save_allow_undefined_flag
11993       else
11994         cat conftest.err 1>&5
11995       fi
11996       $RM conftest*
11997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11998 $as_echo "$archive_cmds_need_lc" >&6; }
11999       ;;
12000     esac
12001   fi
12002   ;;
12003 esac
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12163
12164 if test "$GCC" = yes; then
12165   case $host_os in
12166     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12167     *) lt_awk_arg="/^libraries:/" ;;
12168   esac
12169   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12170   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12171     # if the path contains ";" then we assume it to be the separator
12172     # otherwise default to the standard path separator (i.e. ":") - it is
12173     # assumed that no part of a normal pathname contains ";" but that should
12174     # okay in the real world where ";" in dirpaths is itself problematic.
12175     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12176   else
12177     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12178   fi
12179   # Ok, now we have the path, separated by spaces, we can step through it
12180   # and add multilib dir if necessary.
12181   lt_tmp_lt_search_path_spec=
12182   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12183   for lt_sys_path in $lt_search_path_spec; do
12184     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12185       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12186     else
12187       test -d "$lt_sys_path" && \
12188         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12189     fi
12190   done
12191   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12192 BEGIN {RS=" "; FS="/|\n";} {
12193   lt_foo="";
12194   lt_count=0;
12195   for (lt_i = NF; lt_i > 0; lt_i--) {
12196     if ($lt_i != "" && $lt_i != ".") {
12197       if ($lt_i == "..") {
12198         lt_count++;
12199       } else {
12200         if (lt_count == 0) {
12201           lt_foo="/" $lt_i lt_foo;
12202         } else {
12203           lt_count--;
12204         }
12205       }
12206     }
12207   }
12208   if (lt_foo != "") { lt_freq[lt_foo]++; }
12209   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12210 }'`
12211   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12212 else
12213   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12214 fi
12215 library_names_spec=
12216 libname_spec='lib$name'
12217 soname_spec=
12218 shrext_cmds=".so"
12219 postinstall_cmds=
12220 postuninstall_cmds=
12221 finish_cmds=
12222 finish_eval=
12223 shlibpath_var=
12224 shlibpath_overrides_runpath=unknown
12225 version_type=none
12226 dynamic_linker="$host_os ld.so"
12227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12228 need_lib_prefix=unknown
12229 hardcode_into_libs=no
12230
12231 # when you set need_version to no, make sure it does not cause -set_version
12232 # flags to be left without arguments
12233 need_version=unknown
12234
12235 case $host_os in
12236 aix3*)
12237   version_type=linux
12238   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12239   shlibpath_var=LIBPATH
12240
12241   # AIX 3 has no versioning support, so we append a major version to the name.
12242   soname_spec='${libname}${release}${shared_ext}$major'
12243   ;;
12244
12245 aix[4-9]*)
12246   version_type=linux
12247   need_lib_prefix=no
12248   need_version=no
12249   hardcode_into_libs=yes
12250   if test "$host_cpu" = ia64; then
12251     # AIX 5 supports IA64
12252     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12253     shlibpath_var=LD_LIBRARY_PATH
12254   else
12255     # With GCC up to 2.95.x, collect2 would create an import file
12256     # for dependence libraries.  The import file would start with
12257     # the line `#! .'.  This would cause the generated library to
12258     # depend on `.', always an invalid library.  This was fixed in
12259     # development snapshots of GCC prior to 3.0.
12260     case $host_os in
12261       aix4 | aix4.[01] | aix4.[01].*)
12262       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12263            echo ' yes '
12264            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12265         :
12266       else
12267         can_build_shared=no
12268       fi
12269       ;;
12270     esac
12271     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12272     # soname into executable. Probably we can add versioning support to
12273     # collect2, so additional links can be useful in future.
12274     if test "$aix_use_runtimelinking" = yes; then
12275       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12276       # instead of lib<name>.a to let people know that these are not
12277       # typical AIX shared libraries.
12278       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12279     else
12280       # We preserve .a as extension for shared libraries through AIX4.2
12281       # and later when we are not doing run time linking.
12282       library_names_spec='${libname}${release}.a $libname.a'
12283       soname_spec='${libname}${release}${shared_ext}$major'
12284     fi
12285     shlibpath_var=LIBPATH
12286   fi
12287   ;;
12288
12289 amigaos*)
12290   case $host_cpu in
12291   powerpc)
12292     # Since July 2007 AmigaOS4 officially supports .so libraries.
12293     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12295     ;;
12296   m68k)
12297     library_names_spec='$libname.ixlibrary $libname.a'
12298     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12299     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12300     ;;
12301   esac
12302   ;;
12303
12304 beos*)
12305   library_names_spec='${libname}${shared_ext}'
12306   dynamic_linker="$host_os ld.so"
12307   shlibpath_var=LIBRARY_PATH
12308   ;;
12309
12310 bsdi[45]*)
12311   version_type=linux
12312   need_version=no
12313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314   soname_spec='${libname}${release}${shared_ext}$major'
12315   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12318   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12319   # the default ld.so.conf also contains /usr/contrib/lib and
12320   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12321   # libtool to hard-code these into programs
12322   ;;
12323
12324 cygwin* | mingw* | pw32* | cegcc*)
12325   version_type=windows
12326   shrext_cmds=".dll"
12327   need_version=no
12328   need_lib_prefix=no
12329
12330   case $GCC,$host_os in
12331   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12332     library_names_spec='$libname.dll.a'
12333     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12334     postinstall_cmds='base_file=`basename \${file}`~
12335       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12336       dldir=$destdir/`dirname \$dlpath`~
12337       test -d \$dldir || mkdir -p \$dldir~
12338       $install_prog $dir/$dlname \$dldir/$dlname~
12339       chmod a+x \$dldir/$dlname~
12340       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12341         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12342       fi'
12343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12344       dlpath=$dir/\$dldll~
12345        $RM \$dlpath'
12346     shlibpath_overrides_runpath=yes
12347
12348     case $host_os in
12349     cygwin*)
12350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12352       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12353       ;;
12354     mingw* | cegcc*)
12355       # MinGW DLLs use traditional 'lib' prefix
12356       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12357       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12358       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12359         # It is most probably a Windows format PATH printed by
12360         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12361         # path with ; separators, and with drive letters. We can handle the
12362         # drive letters (cygwin fileutils understands them), so leave them,
12363         # especially as we might pass files found there to a mingw objdump,
12364         # which wouldn't understand a cygwinified path. Ahh.
12365         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12366       else
12367         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12368       fi
12369       ;;
12370     pw32*)
12371       # pw32 DLLs use 'pw' prefix rather than 'lib'
12372       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12373       ;;
12374     esac
12375     ;;
12376
12377   *)
12378     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12379     ;;
12380   esac
12381   dynamic_linker='Win32 ld.exe'
12382   # FIXME: first we should search . and the directory the executable is in
12383   shlibpath_var=PATH
12384   ;;
12385
12386 darwin* | rhapsody*)
12387   dynamic_linker="$host_os dyld"
12388   version_type=darwin
12389   need_lib_prefix=no
12390   need_version=no
12391   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12392   soname_spec='${libname}${release}${major}$shared_ext'
12393   shlibpath_overrides_runpath=yes
12394   shlibpath_var=DYLD_LIBRARY_PATH
12395   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12396
12397   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12399   ;;
12400
12401 dgux*)
12402   version_type=linux
12403   need_lib_prefix=no
12404   need_version=no
12405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12406   soname_spec='${libname}${release}${shared_ext}$major'
12407   shlibpath_var=LD_LIBRARY_PATH
12408   ;;
12409
12410 freebsd1*)
12411   dynamic_linker=no
12412   ;;
12413
12414 freebsd* | dragonfly*)
12415   # DragonFly does not have aout.  When/if they implement a new
12416   # versioning mechanism, adjust this.
12417   if test -x /usr/bin/objformat; then
12418     objformat=`/usr/bin/objformat`
12419   else
12420     case $host_os in
12421     freebsd[123]*) objformat=aout ;;
12422     *) objformat=elf ;;
12423     esac
12424   fi
12425   version_type=freebsd-$objformat
12426   case $version_type in
12427     freebsd-elf*)
12428       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12429       need_version=no
12430       need_lib_prefix=no
12431       ;;
12432     freebsd-*)
12433       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12434       need_version=yes
12435       ;;
12436   esac
12437   shlibpath_var=LD_LIBRARY_PATH
12438   case $host_os in
12439   freebsd2*)
12440     shlibpath_overrides_runpath=yes
12441     ;;
12442   freebsd3.[01]* | freebsdelf3.[01]*)
12443     shlibpath_overrides_runpath=yes
12444     hardcode_into_libs=yes
12445     ;;
12446   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12447   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12448     shlibpath_overrides_runpath=no
12449     hardcode_into_libs=yes
12450     ;;
12451   *) # from 4.6 on, and DragonFly
12452     shlibpath_overrides_runpath=yes
12453     hardcode_into_libs=yes
12454     ;;
12455   esac
12456   ;;
12457
12458 gnu*)
12459   version_type=linux
12460   need_lib_prefix=no
12461   need_version=no
12462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12463   soname_spec='${libname}${release}${shared_ext}$major'
12464   shlibpath_var=LD_LIBRARY_PATH
12465   hardcode_into_libs=yes
12466   ;;
12467
12468 hpux9* | hpux10* | hpux11*)
12469   # Give a soname corresponding to the major version so that dld.sl refuses to
12470   # link against other versions.
12471   version_type=sunos
12472   need_lib_prefix=no
12473   need_version=no
12474   case $host_cpu in
12475   ia64*)
12476     shrext_cmds='.so'
12477     hardcode_into_libs=yes
12478     dynamic_linker="$host_os dld.so"
12479     shlibpath_var=LD_LIBRARY_PATH
12480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482     soname_spec='${libname}${release}${shared_ext}$major'
12483     if test "X$HPUX_IA64_MODE" = X32; then
12484       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12485     else
12486       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12487     fi
12488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12489     ;;
12490   hppa*64*)
12491     shrext_cmds='.sl'
12492     hardcode_into_libs=yes
12493     dynamic_linker="$host_os dld.sl"
12494     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12495     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12497     soname_spec='${libname}${release}${shared_ext}$major'
12498     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12500     ;;
12501   *)
12502     shrext_cmds='.sl'
12503     dynamic_linker="$host_os dld.sl"
12504     shlibpath_var=SHLIB_PATH
12505     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507     soname_spec='${libname}${release}${shared_ext}$major'
12508     ;;
12509   esac
12510   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12511   postinstall_cmds='chmod 555 $lib'
12512   ;;
12513
12514 interix[3-9]*)
12515   version_type=linux
12516   need_lib_prefix=no
12517   need_version=no
12518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12519   soname_spec='${libname}${release}${shared_ext}$major'
12520   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12521   shlibpath_var=LD_LIBRARY_PATH
12522   shlibpath_overrides_runpath=no
12523   hardcode_into_libs=yes
12524   ;;
12525
12526 irix5* | irix6* | nonstopux*)
12527   case $host_os in
12528     nonstopux*) version_type=nonstopux ;;
12529     *)
12530         if test "$lt_cv_prog_gnu_ld" = yes; then
12531                 version_type=linux
12532         else
12533                 version_type=irix
12534         fi ;;
12535   esac
12536   need_lib_prefix=no
12537   need_version=no
12538   soname_spec='${libname}${release}${shared_ext}$major'
12539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12540   case $host_os in
12541   irix5* | nonstopux*)
12542     libsuff= shlibsuff=
12543     ;;
12544   *)
12545     case $LD in # libtool.m4 will add one of these switches to LD
12546     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12547       libsuff= shlibsuff= libmagic=32-bit;;
12548     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12549       libsuff=32 shlibsuff=N32 libmagic=N32;;
12550     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12551       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12552     *) libsuff= shlibsuff= libmagic=never-match;;
12553     esac
12554     ;;
12555   esac
12556   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12557   shlibpath_overrides_runpath=no
12558   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12559   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12560   hardcode_into_libs=yes
12561   ;;
12562
12563 # No shared lib support for Linux oldld, aout, or coff.
12564 linux*oldld* | linux*aout* | linux*coff*)
12565   dynamic_linker=no
12566   ;;
12567
12568 # This must be Linux ELF.
12569 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12570   version_type=linux
12571   need_lib_prefix=no
12572   need_version=no
12573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574   soname_spec='${libname}${release}${shared_ext}$major'
12575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   shlibpath_overrides_runpath=no
12578   # Some binutils ld are patched to set DT_RUNPATH
12579   save_LDFLAGS=$LDFLAGS
12580   save_libdir=$libdir
12581   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12582        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h.  */
12585
12586 int main (void)
12587 {
12588
12589  ;
12590  return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12595   shlibpath_overrides_runpath=yes
12596 fi
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599     conftest$ac_exeext conftest.$ac_ext
12600   LDFLAGS=$save_LDFLAGS
12601   libdir=$save_libdir
12602
12603   # This implies no fast_install, which is unacceptable.
12604   # Some rework will be needed to allow for fast_install
12605   # before this can be enabled.
12606   hardcode_into_libs=yes
12607
12608   # Append ld.so.conf contents to the search path
12609   if test -f /etc/ld.so.conf; then
12610     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;/^$/d' | tr '\n' ' '`
12611     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12612   fi
12613
12614   # We used to test for /lib/ld.so.1 and disable shared libraries on
12615   # powerpc, because MkLinux only supported shared libraries with the
12616   # GNU dynamic linker.  Since this was broken with cross compilers,
12617   # most powerpc-linux boxes support dynamic linking these days and
12618   # people can always --disable-shared, the test was removed, and we
12619   # assume the GNU/Linux dynamic linker is in use.
12620   dynamic_linker='GNU/Linux ld.so'
12621   ;;
12622
12623 netbsdelf*-gnu)
12624   version_type=linux
12625   need_lib_prefix=no
12626   need_version=no
12627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12628   soname_spec='${libname}${release}${shared_ext}$major'
12629   shlibpath_var=LD_LIBRARY_PATH
12630   shlibpath_overrides_runpath=no
12631   hardcode_into_libs=yes
12632   dynamic_linker='NetBSD ld.elf_so'
12633   ;;
12634
12635 netbsd*)
12636   version_type=sunos
12637   need_lib_prefix=no
12638   need_version=no
12639   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12641     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12642     dynamic_linker='NetBSD (a.out) ld.so'
12643   else
12644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12645     soname_spec='${libname}${release}${shared_ext}$major'
12646     dynamic_linker='NetBSD ld.elf_so'
12647   fi
12648   shlibpath_var=LD_LIBRARY_PATH
12649   shlibpath_overrides_runpath=yes
12650   hardcode_into_libs=yes
12651   ;;
12652
12653 newsos6)
12654   version_type=linux
12655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   shlibpath_overrides_runpath=yes
12658   ;;
12659
12660 *nto* | *qnx*)
12661   version_type=qnx
12662   need_lib_prefix=no
12663   need_version=no
12664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665   soname_spec='${libname}${release}${shared_ext}$major'
12666   shlibpath_var=LD_LIBRARY_PATH
12667   shlibpath_overrides_runpath=no
12668   hardcode_into_libs=yes
12669   dynamic_linker='ldqnx.so'
12670   ;;
12671
12672 openbsd*)
12673   version_type=sunos
12674   sys_lib_dlsearch_path_spec="/usr/lib"
12675   need_lib_prefix=no
12676   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12677   case $host_os in
12678     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12679     *)                          need_version=no  ;;
12680   esac
12681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12682   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12683   shlibpath_var=LD_LIBRARY_PATH
12684   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685     case $host_os in
12686       openbsd2.[89] | openbsd2.[89].*)
12687         shlibpath_overrides_runpath=no
12688         ;;
12689       *)
12690         shlibpath_overrides_runpath=yes
12691         ;;
12692       esac
12693   else
12694     shlibpath_overrides_runpath=yes
12695   fi
12696   ;;
12697
12698 os2*)
12699   libname_spec='$name'
12700   shrext_cmds=".dll"
12701   need_lib_prefix=no
12702   library_names_spec='$libname${shared_ext} $libname.a'
12703   dynamic_linker='OS/2 ld.exe'
12704   shlibpath_var=LIBPATH
12705   ;;
12706
12707 osf3* | osf4* | osf5*)
12708   version_type=osf
12709   need_lib_prefix=no
12710   need_version=no
12711   soname_spec='${libname}${release}${shared_ext}$major'
12712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713   shlibpath_var=LD_LIBRARY_PATH
12714   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12715   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12716   ;;
12717
12718 rdos*)
12719   dynamic_linker=no
12720   ;;
12721
12722 solaris*)
12723   version_type=linux
12724   need_lib_prefix=no
12725   need_version=no
12726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727   soname_spec='${libname}${release}${shared_ext}$major'
12728   shlibpath_var=LD_LIBRARY_PATH
12729   shlibpath_overrides_runpath=yes
12730   hardcode_into_libs=yes
12731   # ldd complains unless libraries are executable
12732   postinstall_cmds='chmod +x $lib'
12733   ;;
12734
12735 sunos4*)
12736   version_type=sunos
12737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12738   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   shlibpath_overrides_runpath=yes
12741   if test "$with_gnu_ld" = yes; then
12742     need_lib_prefix=no
12743   fi
12744   need_version=yes
12745   ;;
12746
12747 sysv4 | sysv4.3*)
12748   version_type=linux
12749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750   soname_spec='${libname}${release}${shared_ext}$major'
12751   shlibpath_var=LD_LIBRARY_PATH
12752   case $host_vendor in
12753     sni)
12754       shlibpath_overrides_runpath=no
12755       need_lib_prefix=no
12756       runpath_var=LD_RUN_PATH
12757       ;;
12758     siemens)
12759       need_lib_prefix=no
12760       ;;
12761     motorola)
12762       need_lib_prefix=no
12763       need_version=no
12764       shlibpath_overrides_runpath=no
12765       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12766       ;;
12767   esac
12768   ;;
12769
12770 sysv4*MP*)
12771   if test -d /usr/nec ;then
12772     version_type=linux
12773     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12774     soname_spec='$libname${shared_ext}.$major'
12775     shlibpath_var=LD_LIBRARY_PATH
12776   fi
12777   ;;
12778
12779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12780   version_type=freebsd-elf
12781   need_lib_prefix=no
12782   need_version=no
12783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12784   soname_spec='${libname}${release}${shared_ext}$major'
12785   shlibpath_var=LD_LIBRARY_PATH
12786   shlibpath_overrides_runpath=yes
12787   hardcode_into_libs=yes
12788   if test "$with_gnu_ld" = yes; then
12789     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12790   else
12791     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12792     case $host_os in
12793       sco3.2v5*)
12794         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12795         ;;
12796     esac
12797   fi
12798   sys_lib_dlsearch_path_spec='/usr/lib'
12799   ;;
12800
12801 tpf*)
12802   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12803   version_type=linux
12804   need_lib_prefix=no
12805   need_version=no
12806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12807   shlibpath_var=LD_LIBRARY_PATH
12808   shlibpath_overrides_runpath=no
12809   hardcode_into_libs=yes
12810   ;;
12811
12812 uts4*)
12813   version_type=linux
12814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815   soname_spec='${libname}${release}${shared_ext}$major'
12816   shlibpath_var=LD_LIBRARY_PATH
12817   ;;
12818
12819 *)
12820   dynamic_linker=no
12821   ;;
12822 esac
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12824 $as_echo "$dynamic_linker" >&6; }
12825 test "$dynamic_linker" = no && can_build_shared=no
12826
12827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12828 if test "$GCC" = yes; then
12829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12830 fi
12831
12832 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12833   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12834 fi
12835 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12836   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12837 fi
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12927 hardcode_action=
12928 if test -n "$hardcode_libdir_flag_spec" ||
12929    test -n "$runpath_var" ||
12930    test "X$hardcode_automatic" = "Xyes" ; then
12931
12932   # We can hardcode non-existent directories.
12933   if test "$hardcode_direct" != no &&
12934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12935      # have to relink, otherwise we might link with an installed library
12936      # when we should be linking with a yet-to-be-installed one
12937      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12938      test "$hardcode_minus_L" != no; then
12939     # Linking always hardcodes the temporary library directory.
12940     hardcode_action=relink
12941   else
12942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12943     hardcode_action=immediate
12944   fi
12945 else
12946   # We cannot hardcode anything, or else we can only hardcode existing
12947   # directories.
12948   hardcode_action=unsupported
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12951 $as_echo "$hardcode_action" >&6; }
12952
12953 if test "$hardcode_action" = relink ||
12954    test "$inherit_rpath" = yes; then
12955   # Fast installation is not supported
12956   enable_fast_install=no
12957 elif test "$shlibpath_overrides_runpath" = yes ||
12958      test "$enable_shared" = no; then
12959   # Fast installation is not necessary
12960   enable_fast_install=needless
12961 fi
12962
12963
12964
12965
12966
12967
12968   if test "x$enable_dlopen" != xyes; then
12969   enable_dlopen=unknown
12970   enable_dlopen_self=unknown
12971   enable_dlopen_self_static=unknown
12972 else
12973   lt_cv_dlopen=no
12974   lt_cv_dlopen_libs=
12975
12976   case $host_os in
12977   beos*)
12978     lt_cv_dlopen="load_add_on"
12979     lt_cv_dlopen_libs=
12980     lt_cv_dlopen_self=yes
12981     ;;
12982
12983   mingw* | pw32* | cegcc*)
12984     lt_cv_dlopen="LoadLibrary"
12985     lt_cv_dlopen_libs=
12986     ;;
12987
12988   cygwin*)
12989     lt_cv_dlopen="dlopen"
12990     lt_cv_dlopen_libs=
12991     ;;
12992
12993   darwin*)
12994   # if libdl is installed we need to link against it
12995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12996 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-ldl  $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h.  */
13004
13005
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char dlopen ();
13010 int main (void)
13011 {
13012 return dlopen ();
13013  ;
13014  return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018   ac_cv_lib_dl_dlopen=yes
13019 else
13020   ac_cv_lib_dl_dlopen=no
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023     conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13028 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13030 else
13031
13032     lt_cv_dlopen="dyld"
13033     lt_cv_dlopen_libs=
13034     lt_cv_dlopen_self=yes
13035
13036 fi
13037
13038     ;;
13039
13040   *)
13041     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13042 if test "x$ac_cv_func_shl_load" = x""yes; then :
13043   lt_cv_dlopen="shl_load"
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13046 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13047 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-ldld  $LIBS"
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h.  */
13054
13055
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 char shl_load ();
13060 int main (void)
13061 {
13062 return shl_load ();
13063  ;
13064  return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068   ac_cv_lib_dld_shl_load=yes
13069 else
13070   ac_cv_lib_dld_shl_load=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073     conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13077 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13078 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13079   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13080 else
13081   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13082 if test "x$ac_cv_func_dlopen" = x""yes; then :
13083   lt_cv_dlopen="dlopen"
13084 else
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-ldl  $LIBS"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094
13095
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char dlopen ();
13100 int main (void)
13101 {
13102 return dlopen ();
13103  ;
13104  return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_c_try_link "$LINENO"; then :
13108   ac_cv_lib_dl_dlopen=yes
13109 else
13110   ac_cv_lib_dl_dlopen=no
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext \
13113     conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13117 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13118 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13119   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13122 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13124   $as_echo_n "(cached) " >&6
13125 else
13126   ac_check_lib_save_LIBS=$LIBS
13127 LIBS="-lsvld  $LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h.  */
13130
13131
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 char dlopen ();
13136 int main (void)
13137 {
13138 return dlopen ();
13139  ;
13140  return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144   ac_cv_lib_svld_dlopen=yes
13145 else
13146   ac_cv_lib_svld_dlopen=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149     conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13153 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13154 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13155   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13156 else
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13158 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13159 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13160   $as_echo_n "(cached) " >&6
13161 else
13162   ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-ldld  $LIBS"
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h.  */
13166
13167
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char dld_link ();
13172 int main (void)
13173 {
13174 return dld_link ();
13175  ;
13176  return 0;
13177 }
13178 _ACEOF
13179 if ac_fn_c_try_link "$LINENO"; then :
13180   ac_cv_lib_dld_dld_link=yes
13181 else
13182   ac_cv_lib_dld_dld_link=no
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext \
13185     conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13190 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13191   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13192 fi
13193
13194
13195 fi
13196
13197
13198 fi
13199
13200
13201 fi
13202
13203
13204 fi
13205
13206
13207 fi
13208
13209     ;;
13210   esac
13211
13212   if test "x$lt_cv_dlopen" != xno; then
13213     enable_dlopen=yes
13214   else
13215     enable_dlopen=no
13216   fi
13217
13218   case $lt_cv_dlopen in
13219   dlopen)
13220     save_CPPFLAGS="$CPPFLAGS"
13221     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13222
13223     save_LDFLAGS="$LDFLAGS"
13224     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13225
13226     save_LIBS="$LIBS"
13227     LIBS="$lt_cv_dlopen_libs $LIBS"
13228
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13231 if test "${lt_cv_dlopen_self+set}" = set; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234           if test "$cross_compiling" = yes; then :
13235   lt_cv_dlopen_self=cross
13236 else
13237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13238   lt_status=$lt_dlunknown
13239   cat > conftest.$ac_ext <<_LT_EOF
13240 #line 13240 "configure"
13241 #include "confdefs.h"
13242
13243 #if HAVE_DLFCN_H
13244 #include <dlfcn.h>
13245 #endif
13246
13247 #include <stdio.h>
13248
13249 #ifdef RTLD_GLOBAL
13250 #  define LT_DLGLOBAL           RTLD_GLOBAL
13251 #else
13252 #  ifdef DL_GLOBAL
13253 #    define LT_DLGLOBAL         DL_GLOBAL
13254 #  else
13255 #    define LT_DLGLOBAL         0
13256 #  endif
13257 #endif
13258
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260    find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13262 #  ifdef RTLD_LAZY
13263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13264 #  else
13265 #    ifdef DL_LAZY
13266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13267 #    else
13268 #      ifdef RTLD_NOW
13269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13270 #      else
13271 #        ifdef DL_NOW
13272 #          define LT_DLLAZY_OR_NOW      DL_NOW
13273 #        else
13274 #          define LT_DLLAZY_OR_NOW      0
13275 #        endif
13276 #      endif
13277 #    endif
13278 #  endif
13279 #endif
13280
13281 void fnord() { int i=42;}
13282 int main ()
13283 {
13284   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13285   int status = $lt_dlunknown;
13286
13287   if (self)
13288     {
13289       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13290       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13291       /* dlclose (self); */
13292     }
13293   else
13294     puts (dlerror ());
13295
13296   return status;
13297 }
13298 _LT_EOF
13299   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13300   (eval $ac_link) 2>&5
13301   ac_status=$?
13302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13304     (./conftest; exit; ) >&5 2>/dev/null
13305     lt_status=$?
13306     case x$lt_status in
13307       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13308       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13309       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13310     esac
13311   else :
13312     # compilation failed
13313     lt_cv_dlopen_self=no
13314   fi
13315 fi
13316 rm -fr conftest*
13317
13318
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13321 $as_echo "$lt_cv_dlopen_self" >&6; }
13322
13323     if test "x$lt_cv_dlopen_self" = xyes; then
13324       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13325       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13326 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13327 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330           if test "$cross_compiling" = yes; then :
13331   lt_cv_dlopen_self_static=cross
13332 else
13333   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13334   lt_status=$lt_dlunknown
13335   cat > conftest.$ac_ext <<_LT_EOF
13336 #line 13336 "configure"
13337 #include "confdefs.h"
13338
13339 #if HAVE_DLFCN_H
13340 #include <dlfcn.h>
13341 #endif
13342
13343 #include <stdio.h>
13344
13345 #ifdef RTLD_GLOBAL
13346 #  define LT_DLGLOBAL           RTLD_GLOBAL
13347 #else
13348 #  ifdef DL_GLOBAL
13349 #    define LT_DLGLOBAL         DL_GLOBAL
13350 #  else
13351 #    define LT_DLGLOBAL         0
13352 #  endif
13353 #endif
13354
13355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13356    find out it does not work in some platform. */
13357 #ifndef LT_DLLAZY_OR_NOW
13358 #  ifdef RTLD_LAZY
13359 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13360 #  else
13361 #    ifdef DL_LAZY
13362 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13363 #    else
13364 #      ifdef RTLD_NOW
13365 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13366 #      else
13367 #        ifdef DL_NOW
13368 #          define LT_DLLAZY_OR_NOW      DL_NOW
13369 #        else
13370 #          define LT_DLLAZY_OR_NOW      0
13371 #        endif
13372 #      endif
13373 #    endif
13374 #  endif
13375 #endif
13376
13377 void fnord() { int i=42;}
13378 int main ()
13379 {
13380   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13381   int status = $lt_dlunknown;
13382
13383   if (self)
13384     {
13385       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13386       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13387       /* dlclose (self); */
13388     }
13389   else
13390     puts (dlerror ());
13391
13392   return status;
13393 }
13394 _LT_EOF
13395   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13396   (eval $ac_link) 2>&5
13397   ac_status=$?
13398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13400     (./conftest; exit; ) >&5 2>/dev/null
13401     lt_status=$?
13402     case x$lt_status in
13403       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13404       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13405       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13406     esac
13407   else :
13408     # compilation failed
13409     lt_cv_dlopen_self_static=no
13410   fi
13411 fi
13412 rm -fr conftest*
13413
13414
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13417 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13418     fi
13419
13420     CPPFLAGS="$save_CPPFLAGS"
13421     LDFLAGS="$save_LDFLAGS"
13422     LIBS="$save_LIBS"
13423     ;;
13424   esac
13425
13426   case $lt_cv_dlopen_self in
13427   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13428   *) enable_dlopen_self=unknown ;;
13429   esac
13430
13431   case $lt_cv_dlopen_self_static in
13432   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13433   *) enable_dlopen_self_static=unknown ;;
13434   esac
13435 fi
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453 striplib=
13454 old_striplib=
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13456 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13457 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13458   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13459   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; }
13462 else
13463 # FIXME - insert some real tests, host_os isn't really good enough
13464   case $host_os in
13465   darwin*)
13466     if test -n "$STRIP" ; then
13467       striplib="$STRIP -x"
13468       old_striplib="$STRIP -S"
13469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471     else
13472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474     fi
13475     ;;
13476   *)
13477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479     ;;
13480   esac
13481 fi
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494   # Report which library types will actually be built
13495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13496 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13498 $as_echo "$can_build_shared" >&6; }
13499
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13501 $as_echo_n "checking whether to build shared libraries... " >&6; }
13502   test "$can_build_shared" = "no" && enable_shared=no
13503
13504   # On AIX, shared libraries and static libraries use the same namespace, and
13505   # are all built from PIC.
13506   case $host_os in
13507   aix3*)
13508     test "$enable_shared" = yes && enable_static=no
13509     if test -n "$RANLIB"; then
13510       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13511       postinstall_cmds='$RANLIB $lib'
13512     fi
13513     ;;
13514
13515   aix[4-9]*)
13516     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13517       test "$enable_shared" = yes && enable_static=no
13518     fi
13519     ;;
13520   esac
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13522 $as_echo "$enable_shared" >&6; }
13523
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13525 $as_echo_n "checking whether to build static libraries... " >&6; }
13526   # Make sure either enable_shared or enable_static is yes.
13527   test "$enable_shared" = yes || enable_static=yes
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13529 $as_echo "$enable_static" >&6; }
13530
13531
13532
13533
13534 fi
13535 ac_ext=c
13536 ac_cpp='$CPP $CPPFLAGS'
13537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13540
13541 CC="$lt_save_CC"
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555         ac_config_commands="$ac_config_commands libtool"
13556
13557
13558
13559
13560 # Only expand once:
13561
13562
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -mimpure-text" >&5
13565 $as_echo_n "checking if we need -mimpure-text... " >&6; }
13566 mimpure=no
13567 case $host in
13568   *-*-solaris2*)
13569     if test "$GCC" = "yes"; then
13570       mimpure="yes"
13571     fi
13572     ;;
13573   *)
13574     ;;
13575 esac
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mimpure" >&5
13577 $as_echo "$mimpure" >&6; }
13578
13579
13580 if test x$mimpure = xyes; then
13581   MIMPURE_TRUE=
13582   MIMPURE_FALSE='#'
13583 else
13584   MIMPURE_TRUE='#'
13585   MIMPURE_FALSE=
13586 fi
13587
13588
13589
13590
13591 if false; then
13592   STATICLIB_TRUE=
13593   STATICLIB_FALSE='#'
13594 else
13595   STATICLIB_TRUE='#'
13596   STATICLIB_FALSE=
13597 fi
13598
13599
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need BUILDING_LIBCURL" >&5
13601 $as_echo_n "checking if we need BUILDING_LIBCURL... " >&6; }
13602 case $host in
13603   *-*-mingw*)
13604
13605 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
13606
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CURL_STATICLIB" >&5
13610 $as_echo_n "checking if we need CURL_STATICLIB... " >&6; }
13611     if test "X$enable_shared" = "Xno"
13612     then
13613
13614 $as_echo "#define CURL_STATICLIB 1" >>confdefs.h
13615
13616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618
13619
13620 if true; then
13621   STATICLIB_TRUE=
13622   STATICLIB_FALSE='#'
13623 else
13624   STATICLIB_TRUE='#'
13625   STATICLIB_FALSE=
13626 fi
13627
13628     else
13629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13631     fi
13632     ;;
13633   *)
13634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13636     ;;
13637 esac
13638
13639 # Determine whether all dependent libraries must be specified when linking
13640 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
13641 then
13642     REQUIRE_LIB_DEPS=no
13643 else
13644     REQUIRE_LIB_DEPS=yes
13645 fi
13646
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13650 set x ${MAKE-make}
13651 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13652 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   cat >conftest.make <<\_ACEOF
13656 SHELL = /bin/sh
13657 all:
13658         @echo '@@@%%%=$(MAKE)=@@@%%%'
13659 _ACEOF
13660 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13662   *@@@%%%=?*=@@@%%%*)
13663     eval ac_cv_prog_make_${ac_make}_set=yes;;
13664   *)
13665     eval ac_cv_prog_make_${ac_make}_set=no;;
13666 esac
13667 rm -f conftest.make
13668 fi
13669 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13672   SET_MAKE=
13673 else
13674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676   SET_MAKE="MAKE=${MAKE-make}"
13677 fi
13678
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13681 $as_echo_n "checking for inline... " >&6; }
13682 if test "${ac_cv_c_inline+set}" = set; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685   ac_cv_c_inline=no
13686 for ac_kw in inline __inline__ __inline; do
13687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h.  */
13689 #ifndef __cplusplus
13690 typedef int foo_t;
13691 static $ac_kw foo_t static_foo () {return 0; }
13692 $ac_kw foo_t foo () {return 0; }
13693 #endif
13694
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697   ac_cv_c_inline=$ac_kw
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700   test "$ac_cv_c_inline" != no && break
13701 done
13702
13703 fi
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13705 $as_echo "$ac_cv_c_inline" >&6; }
13706
13707 case $ac_cv_c_inline in
13708   inline | yes) ;;
13709   *)
13710     case $ac_cv_c_inline in
13711       no) ac_val=;;
13712       *) ac_val=$ac_cv_c_inline;;
13713     esac
13714     cat >>confdefs.h <<_ACEOF
13715 #ifndef __cplusplus
13716 #define inline $ac_val
13717 #endif
13718 _ACEOF
13719     ;;
13720 esac
13721
13722
13723
13724
13725   #
13726   compiler_id="unknown"
13727   compiler_num="0"
13728   #
13729   flags_dbg_all="unknown"
13730   flags_dbg_yes="unknown"
13731   flags_dbg_off="unknown"
13732   flags_opt_all="unknown"
13733   flags_opt_yes="unknown"
13734   flags_opt_off="unknown"
13735   #
13736
13737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
13738 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
13739
13740       if test -z "$SED"; then
13741     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13742   fi
13743   if test -z "$GREP"; then
13744     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13745   fi
13746
13747   tmp_exp=""
13748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750
13751
13752 #ifdef __DECC
13753 CURL_DEF_TOKEN __DECC
13754 #endif
13755
13756
13757 _ACEOF
13758 if ac_fn_c_try_cpp "$LINENO"; then :
13759
13760     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13761       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13762       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13763       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13764     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
13765       tmp_exp=""
13766     fi
13767
13768 fi
13769 rm -f conftest.err conftest.i conftest.$ac_ext
13770   if test -z "$tmp_exp"; then
13771     curl_cv_have_def___DECC=no
13772
13773   else
13774     curl_cv_have_def___DECC=yes
13775     curl_cv_def___DECC=$tmp_exp
13776
13777   fi
13778
13779
13780       if test -z "$SED"; then
13781     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13782   fi
13783   if test -z "$GREP"; then
13784     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13785   fi
13786
13787   tmp_exp=""
13788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790
13791
13792 #ifdef __DECC_VER
13793 CURL_DEF_TOKEN __DECC_VER
13794 #endif
13795
13796
13797 _ACEOF
13798 if ac_fn_c_try_cpp "$LINENO"; then :
13799
13800     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13801       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13802       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13803       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13804     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
13805       tmp_exp=""
13806     fi
13807
13808 fi
13809 rm -f conftest.err conftest.i conftest.$ac_ext
13810   if test -z "$tmp_exp"; then
13811     curl_cv_have_def___DECC_VER=no
13812
13813   else
13814     curl_cv_have_def___DECC_VER=yes
13815     curl_cv_def___DECC_VER=$tmp_exp
13816
13817   fi
13818
13819   if test "$curl_cv_have_def___DECC" = "yes" &&
13820     test "$curl_cv_have_def___DECC_VER" = "yes"; then
13821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13822 $as_echo "yes" >&6; }
13823     compiler_id="DEC_C"
13824     flags_dbg_all="-g -g0 -g1 -g2 -g3"
13825     flags_dbg_yes="-g2"
13826     flags_dbg_off="-g0"
13827     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
13828     flags_opt_yes="-O1"
13829     flags_opt_off="-O0"
13830   else
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13833   fi
13834
13835
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
13837 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
13838
13839       if test -z "$SED"; then
13840     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13841   fi
13842   if test -z "$GREP"; then
13843     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13844   fi
13845
13846   tmp_exp=""
13847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h.  */
13849
13850
13851 #ifdef __HP_cc
13852 CURL_DEF_TOKEN __HP_cc
13853 #endif
13854
13855
13856 _ACEOF
13857 if ac_fn_c_try_cpp "$LINENO"; then :
13858
13859     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13860       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13861       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13862       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13863     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
13864       tmp_exp=""
13865     fi
13866
13867 fi
13868 rm -f conftest.err conftest.i conftest.$ac_ext
13869   if test -z "$tmp_exp"; then
13870     curl_cv_have_def___HP_cc=no
13871
13872   else
13873     curl_cv_have_def___HP_cc=yes
13874     curl_cv_def___HP_cc=$tmp_exp
13875
13876   fi
13877
13878   if test "$curl_cv_have_def___HP_cc" = "yes"; then
13879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13880 $as_echo "yes" >&6; }
13881     compiler_id="HP_UX_C"
13882     flags_dbg_all="-g -s"
13883     flags_dbg_yes="-g"
13884     flags_dbg_off="-s"
13885     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
13886     flags_opt_yes="+O2"
13887     flags_opt_off="+O0"
13888   else
13889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891   fi
13892
13893
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
13895 $as_echo_n "checking if compiler is IBM C... " >&6; }
13896
13897       if test -z "$SED"; then
13898     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13899   fi
13900   if test -z "$GREP"; then
13901     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13902   fi
13903
13904   tmp_exp=""
13905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h.  */
13907
13908
13909 #ifdef __IBMC__
13910 CURL_DEF_TOKEN __IBMC__
13911 #endif
13912
13913
13914 _ACEOF
13915 if ac_fn_c_try_cpp "$LINENO"; then :
13916
13917     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13918       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13919       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13920       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13921     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
13922       tmp_exp=""
13923     fi
13924
13925 fi
13926 rm -f conftest.err conftest.i conftest.$ac_ext
13927   if test -z "$tmp_exp"; then
13928     curl_cv_have_def___IBMC__=no
13929
13930   else
13931     curl_cv_have_def___IBMC__=yes
13932     curl_cv_def___IBMC__=$tmp_exp
13933
13934   fi
13935
13936   if test "$curl_cv_have_def___IBMC__" = "yes"; then
13937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13938 $as_echo "yes" >&6; }
13939     compiler_id="IBM_C"
13940     flags_dbg_all="-g -g0 -g1 -g2 -g3"
13941     flags_dbg_yes="-g"
13942     flags_dbg_off=""
13943     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
13944     flags_opt_all="$flags_opt_all -qnooptimize"
13945     flags_opt_all="$flags_opt_all -qoptimize=0"
13946     flags_opt_all="$flags_opt_all -qoptimize=1"
13947     flags_opt_all="$flags_opt_all -qoptimize=2"
13948     flags_opt_all="$flags_opt_all -qoptimize=3"
13949     flags_opt_all="$flags_opt_all -qoptimize=4"
13950     flags_opt_all="$flags_opt_all -qoptimize=5"
13951     flags_opt_yes="-O2"
13952     flags_opt_off="-qnooptimize"
13953   else
13954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956   fi
13957
13958
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
13960 $as_echo_n "checking if compiler is Intel C... " >&6; }
13961
13962       if test -z "$SED"; then
13963     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13964   fi
13965   if test -z "$GREP"; then
13966     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13967   fi
13968
13969   tmp_exp=""
13970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972
13973
13974 #ifdef __INTEL_COMPILER
13975 CURL_DEF_TOKEN __INTEL_COMPILER
13976 #endif
13977
13978
13979 _ACEOF
13980 if ac_fn_c_try_cpp "$LINENO"; then :
13981
13982     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13983       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13984       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13985       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13986     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
13987       tmp_exp=""
13988     fi
13989
13990 fi
13991 rm -f conftest.err conftest.i conftest.$ac_ext
13992   if test -z "$tmp_exp"; then
13993     curl_cv_have_def___INTEL_COMPILER=no
13994
13995   else
13996     curl_cv_have_def___INTEL_COMPILER=yes
13997     curl_cv_def___INTEL_COMPILER=$tmp_exp
13998
13999   fi
14000
14001   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14003 $as_echo "yes" >&6; }
14004     compiler_num="$curl_cv_def___INTEL_COMPILER"
14005
14006       if test -z "$SED"; then
14007     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14008   fi
14009   if test -z "$GREP"; then
14010     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14011   fi
14012
14013   tmp_exp=""
14014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h.  */
14016
14017
14018 #ifdef __unix__
14019 CURL_DEF_TOKEN __unix__
14020 #endif
14021
14022
14023 _ACEOF
14024 if ac_fn_c_try_cpp "$LINENO"; then :
14025
14026     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14027       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14028       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14029       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14030     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
14031       tmp_exp=""
14032     fi
14033
14034 fi
14035 rm -f conftest.err conftest.i conftest.$ac_ext
14036   if test -z "$tmp_exp"; then
14037     curl_cv_have_def___unix__=no
14038
14039   else
14040     curl_cv_have_def___unix__=yes
14041     curl_cv_def___unix__=$tmp_exp
14042
14043   fi
14044
14045     if test "$curl_cv_have_def___unix__" = "yes"; then
14046       compiler_id="INTEL_UNIX_C"
14047       flags_dbg_all="-g -g0"
14048       flags_dbg_yes="-g"
14049       flags_dbg_off="-g0"
14050       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14051       flags_opt_yes="-O2"
14052       flags_opt_off="-O0"
14053     else
14054       compiler_id="INTEL_WINDOWS_C"
14055       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
14056       flags_dbg_all="$flags_dbg_all /debug"
14057       flags_dbg_all="$flags_dbg_all /debug:none"
14058       flags_dbg_all="$flags_dbg_all /debug:minimal"
14059       flags_dbg_all="$flags_dbg_all /debug:partial"
14060       flags_dbg_all="$flags_dbg_all /debug:full"
14061       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
14062       flags_dbg_all="$flags_dbg_all /debug:extended"
14063       flags_dbg_yes="/Zi /Oy-"
14064       flags_dbg_off="/debug:none /Oy-"
14065       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
14066       flags_opt_yes="/O2"
14067       flags_opt_off="/Od"
14068     fi
14069   else
14070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072   fi
14073
14074
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
14076 $as_echo_n "checking if compiler is clang... " >&6; }
14077
14078       if test -z "$SED"; then
14079     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14080   fi
14081   if test -z "$GREP"; then
14082     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14083   fi
14084
14085   tmp_exp=""
14086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h.  */
14088
14089
14090 #ifdef __clang__
14091 CURL_DEF_TOKEN __clang__
14092 #endif
14093
14094
14095 _ACEOF
14096 if ac_fn_c_try_cpp "$LINENO"; then :
14097
14098     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14099       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14100       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14101       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14102     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
14103       tmp_exp=""
14104     fi
14105
14106 fi
14107 rm -f conftest.err conftest.i conftest.$ac_ext
14108   if test -z "$tmp_exp"; then
14109     curl_cv_have_def___clang__=no
14110
14111   else
14112     curl_cv_have_def___clang__=yes
14113     curl_cv_def___clang__=$tmp_exp
14114
14115   fi
14116
14117   if test "$curl_cv_have_def___clang__" = "yes"; then
14118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119 $as_echo "yes" >&6; }
14120     compiler_id="CLANG"
14121     clangver=`$CC -dumpversion`
14122     clangvhi=`echo $clangver | cut -d . -f1`
14123     clangvlo=`echo $clangver | cut -d . -f2`
14124     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14125     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14126     flags_dbg_all="$flags_dbg_all -ggdb"
14127     flags_dbg_all="$flags_dbg_all -gstabs"
14128     flags_dbg_all="$flags_dbg_all -gstabs+"
14129     flags_dbg_all="$flags_dbg_all -gcoff"
14130     flags_dbg_all="$flags_dbg_all -gxcoff"
14131     flags_dbg_all="$flags_dbg_all -gdwarf-2"
14132     flags_dbg_all="$flags_dbg_all -gvms"
14133     flags_dbg_yes="-g"
14134     flags_dbg_off="-g0"
14135     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14136     flags_opt_yes="-Os"
14137     flags_opt_off="-O0"
14138   else
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14141   fi
14142
14143
14144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14145 $as_echo_n "checking if compiler is GNU C... " >&6; }
14146
14147       if test -z "$SED"; then
14148     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14149   fi
14150   if test -z "$GREP"; then
14151     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14152   fi
14153
14154   tmp_exp=""
14155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h.  */
14157
14158
14159 #ifdef __GNUC__
14160 CURL_DEF_TOKEN __GNUC__
14161 #endif
14162
14163
14164 _ACEOF
14165 if ac_fn_c_try_cpp "$LINENO"; then :
14166
14167     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14168       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14169       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14170       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14171     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14172       tmp_exp=""
14173     fi
14174
14175 fi
14176 rm -f conftest.err conftest.i conftest.$ac_ext
14177   if test -z "$tmp_exp"; then
14178     curl_cv_have_def___GNUC__=no
14179
14180   else
14181     curl_cv_have_def___GNUC__=yes
14182     curl_cv_def___GNUC__=$tmp_exp
14183
14184   fi
14185
14186   if test "$curl_cv_have_def___GNUC__" = "yes" &&
14187     test "$compiler_id" = "unknown"; then
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190     compiler_id="GNU_C"
14191     gccver=`$CC -dumpversion`
14192     gccvhi=`echo $gccver | cut -d . -f1`
14193     gccvlo=`echo $gccver | cut -d . -f2`
14194     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
14195     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14196     flags_dbg_all="$flags_dbg_all -ggdb"
14197     flags_dbg_all="$flags_dbg_all -gstabs"
14198     flags_dbg_all="$flags_dbg_all -gstabs+"
14199     flags_dbg_all="$flags_dbg_all -gcoff"
14200     flags_dbg_all="$flags_dbg_all -gxcoff"
14201     flags_dbg_all="$flags_dbg_all -gdwarf-2"
14202     flags_dbg_all="$flags_dbg_all -gvms"
14203     flags_dbg_yes="-g"
14204     flags_dbg_off="-g0"
14205     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14206     flags_opt_yes="-O2"
14207     flags_opt_off="-O0"
14208   else
14209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14211   fi
14212
14213
14214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
14215 $as_echo_n "checking if compiler is LCC... " >&6; }
14216
14217       if test -z "$SED"; then
14218     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14219   fi
14220   if test -z "$GREP"; then
14221     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14222   fi
14223
14224   tmp_exp=""
14225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h.  */
14227
14228
14229 #ifdef __LCC__
14230 CURL_DEF_TOKEN __LCC__
14231 #endif
14232
14233
14234 _ACEOF
14235 if ac_fn_c_try_cpp "$LINENO"; then :
14236
14237     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14238       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14239       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14240       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14241     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
14242       tmp_exp=""
14243     fi
14244
14245 fi
14246 rm -f conftest.err conftest.i conftest.$ac_ext
14247   if test -z "$tmp_exp"; then
14248     curl_cv_have_def___LCC__=no
14249
14250   else
14251     curl_cv_have_def___LCC__=yes
14252     curl_cv_def___LCC__=$tmp_exp
14253
14254   fi
14255
14256   if test "$curl_cv_have_def___LCC__" = "yes"; then
14257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14258 $as_echo "yes" >&6; }
14259     compiler_id="LCC"
14260     flags_dbg_all="-g"
14261     flags_dbg_yes="-g"
14262     flags_dbg_off=""
14263     flags_opt_all=""
14264     flags_opt_yes=""
14265     flags_opt_off=""
14266   else
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14269   fi
14270
14271
14272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
14273 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
14274
14275       if test -z "$SED"; then
14276     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14277   fi
14278   if test -z "$GREP"; then
14279     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14280   fi
14281
14282   tmp_exp=""
14283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h.  */
14285
14286
14287 #ifdef __GNUC__
14288 CURL_DEF_TOKEN __GNUC__
14289 #endif
14290
14291
14292 _ACEOF
14293 if ac_fn_c_try_cpp "$LINENO"; then :
14294
14295     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14296       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14297       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14298       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14299     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14300       tmp_exp=""
14301     fi
14302
14303 fi
14304 rm -f conftest.err conftest.i conftest.$ac_ext
14305   if test -z "$tmp_exp"; then
14306     curl_cv_have_def___GNUC__=no
14307
14308   else
14309     curl_cv_have_def___GNUC__=yes
14310     curl_cv_def___GNUC__=$tmp_exp
14311
14312   fi
14313
14314
14315       if test -z "$SED"; then
14316     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14317   fi
14318   if test -z "$GREP"; then
14319     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14320   fi
14321
14322   tmp_exp=""
14323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h.  */
14325
14326
14327 #ifdef _COMPILER_VERSION
14328 CURL_DEF_TOKEN _COMPILER_VERSION
14329 #endif
14330
14331
14332 _ACEOF
14333 if ac_fn_c_try_cpp "$LINENO"; then :
14334
14335     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14336       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14337       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14338       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14339     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
14340       tmp_exp=""
14341     fi
14342
14343 fi
14344 rm -f conftest.err conftest.i conftest.$ac_ext
14345   if test -z "$tmp_exp"; then
14346     curl_cv_have_def__COMPILER_VERSION=no
14347
14348   else
14349     curl_cv_have_def__COMPILER_VERSION=yes
14350     curl_cv_def__COMPILER_VERSION=$tmp_exp
14351
14352   fi
14353
14354
14355       if test -z "$SED"; then
14356     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14357   fi
14358   if test -z "$GREP"; then
14359     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14360   fi
14361
14362   tmp_exp=""
14363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h.  */
14365
14366
14367 #ifdef _SGI_COMPILER_VERSION
14368 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
14369 #endif
14370
14371
14372 _ACEOF
14373 if ac_fn_c_try_cpp "$LINENO"; then :
14374
14375     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14376       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14377       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14378       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14379     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
14380       tmp_exp=""
14381     fi
14382
14383 fi
14384 rm -f conftest.err conftest.i conftest.$ac_ext
14385   if test -z "$tmp_exp"; then
14386     curl_cv_have_def__SGI_COMPILER_VERSION=no
14387
14388   else
14389     curl_cv_have_def__SGI_COMPILER_VERSION=yes
14390     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
14391
14392   fi
14393
14394   if test "$curl_cv_have_def___GNUC__" = "no" &&
14395     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
14396      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
14397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399     compiler_id="SGI_MIPSPRO_C"
14400     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14401     flags_dbg_yes="-g"
14402     flags_dbg_off="-g0"
14403     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14404     flags_opt_yes="-O2"
14405     flags_opt_off="-O0"
14406   else
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409   fi
14410
14411
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
14413 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
14414
14415       if test -z "$SED"; then
14416     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14417   fi
14418   if test -z "$GREP"; then
14419     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14420   fi
14421
14422   tmp_exp=""
14423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h.  */
14425
14426
14427 #ifdef __GNUC__
14428 CURL_DEF_TOKEN __GNUC__
14429 #endif
14430
14431
14432 _ACEOF
14433 if ac_fn_c_try_cpp "$LINENO"; then :
14434
14435     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14436       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14437       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14438       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14439     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14440       tmp_exp=""
14441     fi
14442
14443 fi
14444 rm -f conftest.err conftest.i conftest.$ac_ext
14445   if test -z "$tmp_exp"; then
14446     curl_cv_have_def___GNUC__=no
14447
14448   else
14449     curl_cv_have_def___GNUC__=yes
14450     curl_cv_def___GNUC__=$tmp_exp
14451
14452   fi
14453
14454
14455       if test -z "$SED"; then
14456     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14457   fi
14458   if test -z "$GREP"; then
14459     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14460   fi
14461
14462   tmp_exp=""
14463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h.  */
14465
14466
14467 #ifdef __sgi
14468 CURL_DEF_TOKEN __sgi
14469 #endif
14470
14471
14472 _ACEOF
14473 if ac_fn_c_try_cpp "$LINENO"; then :
14474
14475     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14476       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14477       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14478       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14479     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
14480       tmp_exp=""
14481     fi
14482
14483 fi
14484 rm -f conftest.err conftest.i conftest.$ac_ext
14485   if test -z "$tmp_exp"; then
14486     curl_cv_have_def___sgi=no
14487
14488   else
14489     curl_cv_have_def___sgi=yes
14490     curl_cv_def___sgi=$tmp_exp
14491
14492   fi
14493
14494   if test "$curl_cv_have_def___GNUC__" = "no" &&
14495     test "$curl_cv_have_def___sgi" = "yes" &&
14496     test "$compiler_id" = "unknown"; then
14497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14498 $as_echo "yes" >&6; }
14499     compiler_id="SGI_MIPS_C"
14500     flags_dbg_all="-g -g0 -g1 -g2 -g3"
14501     flags_dbg_yes="-g"
14502     flags_dbg_off="-g0"
14503     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14504     flags_opt_yes="-O2"
14505     flags_opt_off="-O0"
14506   else
14507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14509   fi
14510
14511
14512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
14513 $as_echo_n "checking if compiler is SunPro C... " >&6; }
14514
14515       if test -z "$SED"; then
14516     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14517   fi
14518   if test -z "$GREP"; then
14519     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14520   fi
14521
14522   tmp_exp=""
14523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h.  */
14525
14526
14527 #ifdef __SUNPRO_C
14528 CURL_DEF_TOKEN __SUNPRO_C
14529 #endif
14530
14531
14532 _ACEOF
14533 if ac_fn_c_try_cpp "$LINENO"; then :
14534
14535     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14536       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14537       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14538       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14539     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
14540       tmp_exp=""
14541     fi
14542
14543 fi
14544 rm -f conftest.err conftest.i conftest.$ac_ext
14545   if test -z "$tmp_exp"; then
14546     curl_cv_have_def___SUNPRO_C=no
14547
14548   else
14549     curl_cv_have_def___SUNPRO_C=yes
14550     curl_cv_def___SUNPRO_C=$tmp_exp
14551
14552   fi
14553
14554   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
14555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14557     compiler_id="SUNPRO_C"
14558     flags_dbg_all="-g -s"
14559     flags_dbg_yes="-g"
14560     flags_dbg_off="-s"
14561     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
14562     flags_opt_yes="-xO2"
14563     flags_opt_off=""
14564   else
14565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567   fi
14568
14569
14570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
14571 $as_echo_n "checking if compiler is Tiny C... " >&6; }
14572
14573       if test -z "$SED"; then
14574     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14575   fi
14576   if test -z "$GREP"; then
14577     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14578   fi
14579
14580   tmp_exp=""
14581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h.  */
14583
14584
14585 #ifdef __TINYC__
14586 CURL_DEF_TOKEN __TINYC__
14587 #endif
14588
14589
14590 _ACEOF
14591 if ac_fn_c_try_cpp "$LINENO"; then :
14592
14593     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14594       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14595       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14596       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14597     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
14598       tmp_exp=""
14599     fi
14600
14601 fi
14602 rm -f conftest.err conftest.i conftest.$ac_ext
14603   if test -z "$tmp_exp"; then
14604     curl_cv_have_def___TINYC__=no
14605
14606   else
14607     curl_cv_have_def___TINYC__=yes
14608     curl_cv_def___TINYC__=$tmp_exp
14609
14610   fi
14611
14612   if test "$curl_cv_have_def___TINYC__" = "yes"; then
14613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14614 $as_echo "yes" >&6; }
14615     compiler_id="TINY_C"
14616     flags_dbg_all="-g -b"
14617     flags_dbg_yes="-g"
14618     flags_dbg_off=""
14619     flags_opt_all=""
14620     flags_opt_yes=""
14621     flags_opt_off=""
14622   else
14623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625   fi
14626
14627
14628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
14629 $as_echo_n "checking if compiler is Watcom C... " >&6; }
14630
14631       if test -z "$SED"; then
14632     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14633   fi
14634   if test -z "$GREP"; then
14635     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14636   fi
14637
14638   tmp_exp=""
14639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h.  */
14641
14642
14643 #ifdef __WATCOMC__
14644 CURL_DEF_TOKEN __WATCOMC__
14645 #endif
14646
14647
14648 _ACEOF
14649 if ac_fn_c_try_cpp "$LINENO"; then :
14650
14651     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14652       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14653       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14654       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14655     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
14656       tmp_exp=""
14657     fi
14658
14659 fi
14660 rm -f conftest.err conftest.i conftest.$ac_ext
14661   if test -z "$tmp_exp"; then
14662     curl_cv_have_def___WATCOMC__=no
14663
14664   else
14665     curl_cv_have_def___WATCOMC__=yes
14666     curl_cv_def___WATCOMC__=$tmp_exp
14667
14668   fi
14669
14670   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
14671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14673
14674       if test -z "$SED"; then
14675     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14676   fi
14677   if test -z "$GREP"; then
14678     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14679   fi
14680
14681   tmp_exp=""
14682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h.  */
14684
14685
14686 #ifdef __UNIX__
14687 CURL_DEF_TOKEN __UNIX__
14688 #endif
14689
14690
14691 _ACEOF
14692 if ac_fn_c_try_cpp "$LINENO"; then :
14693
14694     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14695       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14696       "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14697       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14698     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
14699       tmp_exp=""
14700     fi
14701
14702 fi
14703 rm -f conftest.err conftest.i conftest.$ac_ext
14704   if test -z "$tmp_exp"; then
14705     curl_cv_have_def___UNIX__=no
14706
14707   else
14708     curl_cv_have_def___UNIX__=yes
14709     curl_cv_def___UNIX__=$tmp_exp
14710
14711   fi
14712
14713     if test "$curl_cv_have_def___UNIX__" = "yes"; then
14714       compiler_id="WATCOM_UNIX_C"
14715       flags_dbg_all="-g1 -g1+ -g2 -g3"
14716       flags_dbg_yes="-g2"
14717       flags_dbg_off=""
14718       flags_opt_all="-O0 -O1 -O2 -O3"
14719       flags_opt_yes="-O2"
14720       flags_opt_off="-O0"
14721     else
14722       compiler_id="WATCOM_WINDOWS_C"
14723       flags_dbg_all=""
14724       flags_dbg_yes=""
14725       flags_dbg_off=""
14726       flags_opt_all=""
14727       flags_opt_yes=""
14728       flags_opt_off=""
14729     fi
14730   else
14731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14733   fi
14734
14735   #
14736   if test "$compiler_id" = "unknown"; then
14737   cat <<_EOF 1>&2
14738 ***
14739 *** Warning: This configure script does not have information about the
14740 *** compiler you are using, relative to the flags required to enable or
14741 *** disable generation of debug info, optimization options or warnings.
14742 ***
14743 *** Whatever settings are present in CFLAGS will be used for this run.
14744 ***
14745 *** If you wish to help the cURL project to better support your compiler
14746 *** you can report this and the required info on the libcurl development
14747 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
14748 ***
14749 _EOF
14750   fi
14751
14752
14753 squeeze() {
14754   _sqz_result=""
14755   eval _sqz_input=\$$1
14756   for _sqz_token in $_sqz_input; do
14757     if test -z "$_sqz_result"; then
14758       _sqz_result="$_sqz_token"
14759     else
14760       _sqz_result="$_sqz_result $_sqz_token"
14761     fi
14762   done
14763   eval $1=\$_sqz_result
14764   return 0
14765 }
14766
14767
14768       #
14769   if test "$compiler_id" != "unknown"; then
14770     #
14771     if test "$compiler_id" = "GNU_C" ||
14772       test "$compiler_id" = "CLANG"; then
14773
14774     tmp_has_include="no"
14775   tmp_chg_FLAGS="$CFLAGS"
14776   for word1 in $tmp_chg_FLAGS; do
14777     case "$word1" in
14778       -I*)
14779         tmp_has_include="yes"
14780         ;;
14781     esac
14782   done
14783   if test "$tmp_has_include" = "yes"; then
14784     tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14785     tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14786     CFLAGS="$tmp_chg_FLAGS"
14787     squeeze CFLAGS
14788   fi
14789   tmp_has_include="no"
14790   tmp_chg_FLAGS="$CPPFLAGS"
14791   for word1 in $tmp_chg_FLAGS; do
14792     case "$word1" in
14793       -I*)
14794         tmp_has_include="yes"
14795         ;;
14796     esac
14797   done
14798   if test "$tmp_has_include" = "yes"; then
14799     tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14800     tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14801     CPPFLAGS="$tmp_chg_FLAGS"
14802     squeeze CPPFLAGS
14803   fi
14804
14805     fi
14806     #
14807     tmp_save_CPPFLAGS="$CPPFLAGS"
14808     tmp_save_CFLAGS="$CFLAGS"
14809     tmp_CPPFLAGS=""
14810     tmp_CFLAGS=""
14811     #
14812     case "$compiler_id" in
14813         #
14814       CLANG)
14815         #
14816                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
14817         ;;
14818         #
14819       DEC_C)
14820         #
14821                 tmp_CFLAGS="$tmp_CFLAGS -std1"
14822                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
14823                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
14824                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
14825         ;;
14826         #
14827       GNU_C)
14828         #
14829                 tmp_CFLAGS="$tmp_CFLAGS"
14830         ;;
14831         #
14832       HP_UX_C)
14833         #
14834                 tmp_CFLAGS="$tmp_CFLAGS -z"
14835                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
14836         ;;
14837         #
14838       IBM_C)
14839         #
14840                 tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
14841                                         tmp_CFLAGS="$tmp_CFLAGS -qnoansialias"
14842                         tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
14843         ;;
14844         #
14845       INTEL_UNIX_C)
14846         #
14847                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
14848                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
14849                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
14850         ;;
14851         #
14852       INTEL_WINDOWS_C)
14853         #
14854                 tmp_CFLAGS="$tmp_CFLAGS"
14855         ;;
14856         #
14857       LCC)
14858         #
14859                 tmp_CFLAGS="$tmp_CFLAGS -n"
14860         ;;
14861         #
14862       SGI_MIPS_C)
14863         #
14864                 tmp_CFLAGS="$tmp_CFLAGS"
14865         ;;
14866         #
14867       SGI_MIPSPRO_C)
14868         #
14869                 tmp_CFLAGS="$tmp_CFLAGS"
14870         ;;
14871         #
14872       SUNPRO_C)
14873         #
14874                 tmp_CFLAGS="$tmp_CFLAGS"
14875         ;;
14876         #
14877       TINY_C)
14878         #
14879                 tmp_CFLAGS="$tmp_CFLAGS"
14880         ;;
14881         #
14882       WATCOM_UNIX_C)
14883         #
14884                 tmp_CFLAGS="$tmp_CFLAGS"
14885         ;;
14886         #
14887       WATCOM_WINDOWS_C)
14888         #
14889                 tmp_CFLAGS="$tmp_CFLAGS"
14890         ;;
14891         #
14892     esac
14893     #
14894     squeeze tmp_CPPFLAGS
14895     squeeze tmp_CFLAGS
14896     #
14897     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
14898       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
14899 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
14900       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
14901       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
14902       squeeze CPPFLAGS
14903       squeeze CFLAGS
14904
14905     tmp_compiler_works="unknown"
14906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h.  */
14908
14909
14910
14911 int main (void)
14912 {
14913
14914       int i = 1;
14915       return i;
14916
14917  ;
14918  return 0;
14919 }
14920
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"; then :
14923
14924     tmp_compiler_works="yes"
14925
14926 else
14927
14928     tmp_compiler_works="no"
14929     echo " " >&6
14930     sed 's/^/cc-fail: /' conftest.err >&6
14931     echo " " >&6
14932
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935     if test "$tmp_compiler_works" = "yes"; then
14936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h.  */
14938
14939
14940
14941 int main (void)
14942 {
14943
14944         int i = 1;
14945         return i;
14946
14947  ;
14948  return 0;
14949 }
14950
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953
14954       tmp_compiler_works="yes"
14955
14956 else
14957
14958       tmp_compiler_works="no"
14959       echo " " >&6
14960       sed 's/^/link-fail: /' conftest.err >&6
14961       echo " " >&6
14962
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext \
14965     conftest$ac_exeext conftest.$ac_ext
14966   fi
14967     if test "x$cross_compiling" != "xyes" &&
14968     test "$tmp_compiler_works" = "yes"; then
14969     if test "$cross_compiling" = yes; then :
14970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14972 as_fn_error $? "cannot run test program while cross compiling
14973 See \`config.log' for more details" "$LINENO" 5 ; }
14974 else
14975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h.  */
14977
14978
14979 #       ifdef __STDC__
14980 #         include <stdlib.h>
14981 #       endif
14982
14983 int main (void)
14984 {
14985
14986         int i = 0;
14987         exit(i);
14988
14989  ;
14990  return 0;
14991 }
14992
14993 _ACEOF
14994 if ac_fn_c_try_run "$LINENO"; then :
14995
14996       tmp_compiler_works="yes"
14997
14998 else
14999
15000       tmp_compiler_works="no"
15001       echo " " >&6
15002       echo "run-fail: test program exited with status $ac_status" >&6
15003       echo " " >&6
15004
15005 fi
15006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15007   conftest.$ac_objext conftest.beam conftest.$ac_ext
15008 fi
15009
15010   fi
15011     if test "$tmp_compiler_works" = "yes"; then
15012
15013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15015         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15016 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15017
15018   else
15019
15020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15023 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15024                 CPPFLAGS="$tmp_save_CPPFLAGS"
15025         CFLAGS="$tmp_save_CFLAGS"
15026
15027   fi
15028
15029     fi
15030     #
15031   fi
15032
15033
15034         #
15035   if test "$compiler_id" != "unknown"; then
15036     #
15037     tmp_save_CFLAGS="$CFLAGS"
15038     tmp_save_CPPFLAGS="$CPPFLAGS"
15039     #
15040     tmp_options=""
15041     tmp_CFLAGS="$CFLAGS"
15042     tmp_CPPFLAGS="$CPPFLAGS"
15043
15044     ac_var_stripped=""
15045   for word1 in $tmp_CFLAGS; do
15046     ac_var_strip_word="no"
15047     for word2 in $flags_dbg_all; do
15048       if test "$word1" = "$word2"; then
15049         ac_var_strip_word="yes"
15050       fi
15051     done
15052     if test "$ac_var_strip_word" = "no"; then
15053       ac_var_stripped="$ac_var_stripped $word1"
15054     fi
15055   done
15056     tmp_CFLAGS="$ac_var_stripped"
15057   squeeze tmp_CFLAGS
15058
15059
15060     ac_var_stripped=""
15061   for word1 in $tmp_CPPFLAGS; do
15062     ac_var_strip_word="no"
15063     for word2 in $flags_dbg_all; do
15064       if test "$word1" = "$word2"; then
15065         ac_var_strip_word="yes"
15066       fi
15067     done
15068     if test "$ac_var_strip_word" = "no"; then
15069       ac_var_stripped="$ac_var_stripped $word1"
15070     fi
15071   done
15072     tmp_CPPFLAGS="$ac_var_stripped"
15073   squeeze tmp_CPPFLAGS
15074
15075     #
15076     if test "$want_debug" = "yes"; then
15077       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
15078 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
15079       tmp_options="$flags_dbg_yes"
15080     fi
15081     if test "$want_debug" = "no"; then
15082       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
15083 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
15084       tmp_options="$flags_dbg_off"
15085     fi
15086     #
15087     CPPFLAGS="$tmp_CPPFLAGS"
15088     CFLAGS="$tmp_CFLAGS $tmp_options"
15089     squeeze CPPFLAGS
15090     squeeze CFLAGS
15091
15092     tmp_compiler_works="unknown"
15093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h.  */
15095
15096
15097
15098 int main (void)
15099 {
15100
15101       int i = 1;
15102       return i;
15103
15104  ;
15105  return 0;
15106 }
15107
15108 _ACEOF
15109 if ac_fn_c_try_compile "$LINENO"; then :
15110
15111     tmp_compiler_works="yes"
15112
15113 else
15114
15115     tmp_compiler_works="no"
15116     echo " " >&6
15117     sed 's/^/cc-fail: /' conftest.err >&6
15118     echo " " >&6
15119
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122     if test "$tmp_compiler_works" = "yes"; then
15123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h.  */
15125
15126
15127
15128 int main (void)
15129 {
15130
15131         int i = 1;
15132         return i;
15133
15134  ;
15135  return 0;
15136 }
15137
15138 _ACEOF
15139 if ac_fn_c_try_link "$LINENO"; then :
15140
15141       tmp_compiler_works="yes"
15142
15143 else
15144
15145       tmp_compiler_works="no"
15146       echo " " >&6
15147       sed 's/^/link-fail: /' conftest.err >&6
15148       echo " " >&6
15149
15150 fi
15151 rm -f core conftest.err conftest.$ac_objext \
15152     conftest$ac_exeext conftest.$ac_ext
15153   fi
15154     if test "x$cross_compiling" != "xyes" &&
15155     test "$tmp_compiler_works" = "yes"; then
15156     if test "$cross_compiling" = yes; then :
15157   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15159 as_fn_error $? "cannot run test program while cross compiling
15160 See \`config.log' for more details" "$LINENO" 5 ; }
15161 else
15162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h.  */
15164
15165
15166 #       ifdef __STDC__
15167 #         include <stdlib.h>
15168 #       endif
15169
15170 int main (void)
15171 {
15172
15173         int i = 0;
15174         exit(i);
15175
15176  ;
15177  return 0;
15178 }
15179
15180 _ACEOF
15181 if ac_fn_c_try_run "$LINENO"; then :
15182
15183       tmp_compiler_works="yes"
15184
15185 else
15186
15187       tmp_compiler_works="no"
15188       echo " " >&6
15189       echo "run-fail: test program exited with status $ac_status" >&6
15190       echo " " >&6
15191
15192 fi
15193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15194   conftest.$ac_objext conftest.beam conftest.$ac_ext
15195 fi
15196
15197   fi
15198     if test "$tmp_compiler_works" = "yes"; then
15199
15200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15202       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15203 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15204
15205   else
15206
15207       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15210 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15211             CPPFLAGS="$tmp_save_CPPFLAGS"
15212       CFLAGS="$tmp_save_CFLAGS"
15213
15214   fi
15215
15216     #
15217   fi
15218
15219
15220         #
15221   if test "$compiler_id" != "unknown"; then
15222     #
15223     tmp_save_CFLAGS="$CFLAGS"
15224     tmp_save_CPPFLAGS="$CPPFLAGS"
15225     #
15226     tmp_options=""
15227     tmp_CFLAGS="$CFLAGS"
15228     tmp_CPPFLAGS="$CPPFLAGS"
15229     honor_optimize_option="yes"
15230     #
15231                         #
15232     if test "$want_optimize" = "assume_no" ||
15233        test "$want_optimize" = "assume_yes"; then
15234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
15235 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
15236
15237
15238   ac_var_match_word="no"
15239   for word1 in $tmp_CFLAGS; do
15240     for word2 in $flags_opt_all; do
15241       if test "$word1" = "$word2"; then
15242         ac_var_match_word="yes"
15243       fi
15244     done
15245   done
15246
15247   if test "$ac_var_match_word" = "yes"; then
15248
15249         honor_optimize_option="no"
15250
15251
15252   fi
15253
15254
15255
15256   ac_var_match_word="no"
15257   for word1 in $tmp_CPPFLAGS; do
15258     for word2 in $flags_opt_all; do
15259       if test "$word1" = "$word2"; then
15260         ac_var_match_word="yes"
15261       fi
15262     done
15263   done
15264
15265   if test "$ac_var_match_word" = "yes"; then
15266
15267         honor_optimize_option="no"
15268
15269
15270   fi
15271
15272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
15273 $as_echo "$honor_optimize_option" >&6; }
15274       if test "$honor_optimize_option" = "yes"; then
15275         if test "$want_optimize" = "assume_yes"; then
15276           want_optimize="yes"
15277         fi
15278         if test "$want_optimize" = "assume_no"; then
15279           want_optimize="no"
15280         fi
15281       fi
15282     fi
15283     #
15284     if test "$honor_optimize_option" = "yes"; then
15285
15286     ac_var_stripped=""
15287   for word1 in $tmp_CFLAGS; do
15288     ac_var_strip_word="no"
15289     for word2 in $flags_opt_all; do
15290       if test "$word1" = "$word2"; then
15291         ac_var_strip_word="yes"
15292       fi
15293     done
15294     if test "$ac_var_strip_word" = "no"; then
15295       ac_var_stripped="$ac_var_stripped $word1"
15296     fi
15297   done
15298     tmp_CFLAGS="$ac_var_stripped"
15299   squeeze tmp_CFLAGS
15300
15301
15302     ac_var_stripped=""
15303   for word1 in $tmp_CPPFLAGS; do
15304     ac_var_strip_word="no"
15305     for word2 in $flags_opt_all; do
15306       if test "$word1" = "$word2"; then
15307         ac_var_strip_word="yes"
15308       fi
15309     done
15310     if test "$ac_var_strip_word" = "no"; then
15311       ac_var_stripped="$ac_var_stripped $word1"
15312     fi
15313   done
15314     tmp_CPPFLAGS="$ac_var_stripped"
15315   squeeze tmp_CPPFLAGS
15316
15317       if test "$want_optimize" = "yes"; then
15318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
15319 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
15320         tmp_options="$flags_opt_yes"
15321       fi
15322       if test "$want_optimize" = "no"; then
15323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
15324 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
15325         tmp_options="$flags_opt_off"
15326       fi
15327       CPPFLAGS="$tmp_CPPFLAGS"
15328       CFLAGS="$tmp_CFLAGS $tmp_options"
15329       squeeze CPPFLAGS
15330       squeeze CFLAGS
15331
15332     tmp_compiler_works="unknown"
15333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h.  */
15335
15336
15337
15338 int main (void)
15339 {
15340
15341       int i = 1;
15342       return i;
15343
15344  ;
15345  return 0;
15346 }
15347
15348 _ACEOF
15349 if ac_fn_c_try_compile "$LINENO"; then :
15350
15351     tmp_compiler_works="yes"
15352
15353 else
15354
15355     tmp_compiler_works="no"
15356     echo " " >&6
15357     sed 's/^/cc-fail: /' conftest.err >&6
15358     echo " " >&6
15359
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362     if test "$tmp_compiler_works" = "yes"; then
15363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h.  */
15365
15366
15367
15368 int main (void)
15369 {
15370
15371         int i = 1;
15372         return i;
15373
15374  ;
15375  return 0;
15376 }
15377
15378 _ACEOF
15379 if ac_fn_c_try_link "$LINENO"; then :
15380
15381       tmp_compiler_works="yes"
15382
15383 else
15384
15385       tmp_compiler_works="no"
15386       echo " " >&6
15387       sed 's/^/link-fail: /' conftest.err >&6
15388       echo " " >&6
15389
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392     conftest$ac_exeext conftest.$ac_ext
15393   fi
15394     if test "x$cross_compiling" != "xyes" &&
15395     test "$tmp_compiler_works" = "yes"; then
15396     if test "$cross_compiling" = yes; then :
15397   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15399 as_fn_error $? "cannot run test program while cross compiling
15400 See \`config.log' for more details" "$LINENO" 5 ; }
15401 else
15402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h.  */
15404
15405
15406 #       ifdef __STDC__
15407 #         include <stdlib.h>
15408 #       endif
15409
15410 int main (void)
15411 {
15412
15413         int i = 0;
15414         exit(i);
15415
15416  ;
15417  return 0;
15418 }
15419
15420 _ACEOF
15421 if ac_fn_c_try_run "$LINENO"; then :
15422
15423       tmp_compiler_works="yes"
15424
15425 else
15426
15427       tmp_compiler_works="no"
15428       echo " " >&6
15429       echo "run-fail: test program exited with status $ac_status" >&6
15430       echo " " >&6
15431
15432 fi
15433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15434   conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 fi
15436
15437   fi
15438     if test "$tmp_compiler_works" = "yes"; then
15439
15440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15441 $as_echo "yes" >&6; }
15442         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15443 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15444
15445   else
15446
15447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 $as_echo "no" >&6; }
15449         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15450 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15451                 CPPFLAGS="$tmp_save_CPPFLAGS"
15452         CFLAGS="$tmp_save_CFLAGS"
15453
15454   fi
15455
15456     fi
15457     #
15458   fi
15459
15460
15461         #
15462   if test "$compiler_id" != "unknown"; then
15463     #
15464     tmp_save_CPPFLAGS="$CPPFLAGS"
15465     tmp_save_CFLAGS="$CFLAGS"
15466     tmp_CPPFLAGS=""
15467     tmp_CFLAGS=""
15468     #
15469     case "$compiler_id" in
15470         #
15471       CLANG)
15472         #
15473         if test "$want_warnings" = "yes"; then
15474                               tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15475           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15476           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15477           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
15478           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15479           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15480           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15481           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15482           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15483           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15484           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15485           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15486           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15487           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15488           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15489           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15490           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
15491           #
15492                     if test "$compiler_num" -ge "101"; then
15493             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
15494           fi
15495         fi
15496         ;;
15497         #
15498       DEC_C)
15499         #
15500         if test "$want_warnings" = "yes"; then
15501                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
15502         fi
15503         ;;
15504         #
15505       GNU_C)
15506         #
15507         if test "$want_warnings" = "yes"; then
15508           #
15509                               if test "x$cross_compiling" != "xyes" ||
15510             test "$compiler_num" -ge "300"; then
15511             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15512           fi
15513           #
15514                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
15515           #
15516                     if test "$compiler_num" -ge "104"; then
15517             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15518                         if test "x$cross_compiling" != "xyes" ||
15519               test "$compiler_num" -ge "300"; then
15520               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
15521             fi
15522           fi
15523           #
15524                     if test "$compiler_num" -ge "207"; then
15525             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15526                         if test "x$cross_compiling" != "xyes" ||
15527               test "$compiler_num" -ge "300"; then
15528               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15529               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15530             fi
15531           fi
15532           #
15533                     if test "$compiler_num" -ge "295"; then
15534             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15535           fi
15536           #
15537                     if test "$compiler_num" -ge "296"; then
15538             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15539             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15540                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15541           fi
15542           #
15543                     if test "$compiler_num" -ge "297"; then
15544             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15545           fi
15546           #
15547                     if test "$compiler_num" -ge "300"; then
15548                                                             tmp_CFLAGS="$tmp_CFLAGS"
15549           fi
15550           #
15551                     if test "$compiler_num" -ge "303"; then
15552             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15553           fi
15554           #
15555                     if test "$compiler_num" -ge "304"; then
15556             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15557           fi
15558           #
15559                     if test "$compiler_num" -ge "402"; then
15560             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15561           fi
15562                     if test "$compiler_num" -ge "403"; then
15563             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
15564             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
15565             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
15566             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
15567           fi
15568           #
15569         fi
15570         #
15571                 if test "$compiler_num" -ge "300"; then
15572           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15573         else
15574                               if test "x$cross_compiling" = "xyes"; then
15575             if test "$compiler_num" -ge "104"; then
15576                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
15577             fi
15578             if test "$compiler_num" -ge "207"; then
15579                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
15580               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
15581             fi
15582           fi
15583         fi
15584         ;;
15585         #
15586       HP_UX_C)
15587         #
15588         if test "$want_warnings" = "yes"; then
15589                     tmp_CFLAGS="$tmp_CFLAGS +w1"
15590         fi
15591         ;;
15592         #
15593       IBM_C)
15594         #
15595                 tmp_CFLAGS="$tmp_CFLAGS"
15596         ;;
15597         #
15598       INTEL_UNIX_C)
15599         #
15600         if test "$want_warnings" = "yes"; then
15601           if test "$compiler_num" -gt "600"; then
15602                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
15603                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
15604                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
15605                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
15606                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
15607                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
15608                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
15609                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
15610                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
15611                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
15612                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
15613           fi
15614         fi
15615                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
15616                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
15617                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
15618                 if test "$compiler_num" -ge "1000"; then
15619                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
15620         fi
15621         ;;
15622         #
15623       INTEL_WINDOWS_C)
15624         #
15625                 tmp_CFLAGS="$tmp_CFLAGS"
15626         ;;
15627         #
15628       LCC)
15629         #
15630         if test "$want_warnings" = "yes"; then
15631                                                   tmp_CFLAGS="$tmp_CFLAGS"
15632         fi
15633         ;;
15634         #
15635       SGI_MIPS_C)
15636         #
15637         if test "$want_warnings" = "yes"; then
15638                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15639         fi
15640         ;;
15641         #
15642       SGI_MIPSPRO_C)
15643         #
15644         if test "$want_warnings" = "yes"; then
15645                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15646                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
15647         fi
15648         ;;
15649         #
15650       SUNPRO_C)
15651         #
15652         if test "$want_warnings" = "yes"; then
15653                     tmp_CFLAGS="$tmp_CFLAGS -v"
15654         fi
15655         ;;
15656         #
15657       TINY_C)
15658         #
15659         if test "$want_warnings" = "yes"; then
15660                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
15661                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
15662                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
15663         fi
15664         ;;
15665         #
15666       WATCOM_UNIX_C)
15667         #
15668         if test "$want_warnings" = "yes"; then
15669                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15670         fi
15671         ;;
15672         #
15673       WATCOM_WINDOWS_C)
15674         #
15675                 tmp_CFLAGS="$tmp_CFLAGS"
15676         ;;
15677         #
15678     esac
15679     #
15680     squeeze tmp_CPPFLAGS
15681     squeeze tmp_CFLAGS
15682     #
15683     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
15684       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
15685 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
15686       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
15687       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15688       squeeze CPPFLAGS
15689       squeeze CFLAGS
15690
15691     tmp_compiler_works="unknown"
15692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h.  */
15694
15695
15696
15697 int main (void)
15698 {
15699
15700       int i = 1;
15701       return i;
15702
15703  ;
15704  return 0;
15705 }
15706
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709
15710     tmp_compiler_works="yes"
15711
15712 else
15713
15714     tmp_compiler_works="no"
15715     echo " " >&6
15716     sed 's/^/cc-fail: /' conftest.err >&6
15717     echo " " >&6
15718
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721     if test "$tmp_compiler_works" = "yes"; then
15722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724
15725
15726
15727 int main (void)
15728 {
15729
15730         int i = 1;
15731         return i;
15732
15733  ;
15734  return 0;
15735 }
15736
15737 _ACEOF
15738 if ac_fn_c_try_link "$LINENO"; then :
15739
15740       tmp_compiler_works="yes"
15741
15742 else
15743
15744       tmp_compiler_works="no"
15745       echo " " >&6
15746       sed 's/^/link-fail: /' conftest.err >&6
15747       echo " " >&6
15748
15749 fi
15750 rm -f core conftest.err conftest.$ac_objext \
15751     conftest$ac_exeext conftest.$ac_ext
15752   fi
15753     if test "x$cross_compiling" != "xyes" &&
15754     test "$tmp_compiler_works" = "yes"; then
15755     if test "$cross_compiling" = yes; then :
15756   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15758 as_fn_error $? "cannot run test program while cross compiling
15759 See \`config.log' for more details" "$LINENO" 5 ; }
15760 else
15761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h.  */
15763
15764
15765 #       ifdef __STDC__
15766 #         include <stdlib.h>
15767 #       endif
15768
15769 int main (void)
15770 {
15771
15772         int i = 0;
15773         exit(i);
15774
15775  ;
15776  return 0;
15777 }
15778
15779 _ACEOF
15780 if ac_fn_c_try_run "$LINENO"; then :
15781
15782       tmp_compiler_works="yes"
15783
15784 else
15785
15786       tmp_compiler_works="no"
15787       echo " " >&6
15788       echo "run-fail: test program exited with status $ac_status" >&6
15789       echo " " >&6
15790
15791 fi
15792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15793   conftest.$ac_objext conftest.beam conftest.$ac_ext
15794 fi
15795
15796   fi
15797     if test "$tmp_compiler_works" = "yes"; then
15798
15799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15801         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15802 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15803
15804   else
15805
15806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15809 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15810                 CPPFLAGS="$tmp_save_CPPFLAGS"
15811         CFLAGS="$tmp_save_CFLAGS"
15812
15813   fi
15814
15815     fi
15816     #
15817   fi
15818
15819
15820 if test "$compiler_id" = "INTEL_UNIX_C"; then
15821   #
15822   if test "$compiler_num" -ge "1000"; then
15823         CFLAGS="$CFLAGS -shared-intel"
15824   elif test "$compiler_num" -ge "900"; then
15825         CFLAGS="$CFLAGS -i-dynamic"
15826   fi
15827   #
15828 fi
15829
15830
15831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
15832 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
15833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h.  */
15835
15836
15837
15838 int main (void)
15839 {
15840
15841       force compilation error
15842
15843  ;
15844  return 0;
15845 }
15846
15847 _ACEOF
15848 if ac_fn_c_try_compile "$LINENO"; then :
15849
15850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15852     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
15853
15854 else
15855
15856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15857 $as_echo "yes" >&6; }
15858
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861
15862
15863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
15864 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
15865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h.  */
15867
15868
15869       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
15870
15871 int main (void)
15872 {
15873
15874       bad_t dummy;
15875
15876  ;
15877  return 0;
15878 }
15879
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882
15883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15884 $as_echo "no" >&6; }
15885     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
15886
15887 else
15888
15889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15890 $as_echo "yes" >&6; }
15891
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894
15895
15896
15897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5
15898 $as_echo_n "checking if shared libraries need -no-undefined... " >&6; }
15899   need_no_undefined="no"
15900   case $host in
15901     *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*)
15902       need_no_undefined="yes"
15903       ;;
15904   esac
15905   if test "x$allow_undefined" = "xno"; then
15906     need_no_undefined="yes"
15907   elif test "x$allow_undefined_flag" = "xunsupported"; then
15908     need_no_undefined="yes"
15909   fi
15910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5
15911 $as_echo "$need_no_undefined" >&6; }
15912
15913
15914
15915 if test x$need_no_undefined = xyes; then
15916   NO_UNDEFINED_TRUE=
15917   NO_UNDEFINED_FALSE='#'
15918 else
15919   NO_UNDEFINED_TRUE='#'
15920   NO_UNDEFINED_FALSE=
15921 fi
15922
15923
15924
15925     supports_curldebug="unknown"
15926   if test "$want_curldebug" = "yes"; then
15927     if test "x$enable_shared" != "xno" &&
15928       test "x$enable_shared" != "xyes"; then
15929       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
15930 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
15931       supports_curldebug="no"
15932     fi
15933     if test "x$enable_static" != "xno" &&
15934       test "x$enable_static" != "xyes"; then
15935       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
15936 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
15937       supports_curldebug="no"
15938     fi
15939     if test "$supports_curldebug" != "no"; then
15940       if test "$enable_shared" = "yes" &&
15941         test "$need_no_undefined" = "yes"; then
15942         supports_curldebug="no"
15943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
15944 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
15945       fi
15946     fi
15947   fi
15948   #
15949   if test "$want_curldebug" = "yes"; then
15950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
15951 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
15952     test "$supports_curldebug" = "no" || supports_curldebug="yes"
15953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
15954 $as_echo "$supports_curldebug" >&6; }
15955     if test "$supports_curldebug" = "no"; then
15956       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
15957 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
15958       want_curldebug="no"
15959     fi
15960   fi
15961   #
15962   if test "$want_curldebug" = "yes"; then
15963     CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
15964     squeeze CPPFLAGS
15965   fi
15966   if test "$want_debug" = "yes"; then
15967     CPPFLAGS="$CPPFLAGS -DDEBUGBUILD"
15968     squeeze CPPFLAGS
15969   fi
15970
15971
15972
15973 if test x$want_curldebug = xyes; then
15974   CURLDEBUG_TRUE=
15975   CURLDEBUG_FALSE='#'
15976 else
15977   CURLDEBUG_TRUE='#'
15978   CURLDEBUG_FALSE=
15979 fi
15980
15981
15982
15983
15984
15985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
15986 $as_echo_n "checking for windows.h... " >&6; }
15987 if test "${ac_cv_header_windows_h+set}" = set; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990
15991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h.  */
15993
15994
15995 #undef inline
15996 #ifndef WIN32_LEAN_AND_MEAN
15997 #define WIN32_LEAN_AND_MEAN
15998 #endif
15999 #include <windows.h>
16000
16001 int main (void)
16002 {
16003
16004 #if defined(__CYGWIN__) || defined(__CEGCC__)
16005         HAVE_WINDOWS_H shall not be defined.
16006 #else
16007         int dummy=2*WINVER;
16008 #endif
16009
16010  ;
16011  return 0;
16012 }
16013
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016
16017       ac_cv_header_windows_h="yes"
16018
16019 else
16020
16021       ac_cv_header_windows_h="no"
16022
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025
16026 fi
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16028 $as_echo "$ac_cv_header_windows_h" >&6; }
16029   case "$ac_cv_header_windows_h" in
16030     yes)
16031
16032 cat >>confdefs.h <<_ACEOF
16033 #define HAVE_WINDOWS_H 1
16034 _ACEOF
16035
16036
16037 cat >>confdefs.h <<_ACEOF
16038 #define WIN32_LEAN_AND_MEAN 1
16039 _ACEOF
16040
16041       ;;
16042   esac
16043
16044
16045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
16046 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
16047 if test "${ac_cv_native_windows+set}" = set; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050
16051     if test "$ac_cv_header_windows_h" = "no"; then
16052       ac_cv_native_windows="no"
16053     else
16054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h.  */
16056
16057
16058
16059 int main (void)
16060 {
16061
16062 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
16063    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
16064           int dummy=1;
16065 #else
16066           Not a native Windows build target.
16067 #endif
16068
16069  ;
16070  return 0;
16071 }
16072
16073 _ACEOF
16074 if ac_fn_c_try_compile "$LINENO"; then :
16075
16076         ac_cv_native_windows="yes"
16077
16078 else
16079
16080         ac_cv_native_windows="no"
16081
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084     fi
16085
16086 fi
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
16088 $as_echo "$ac_cv_native_windows" >&6; }
16089   case "$ac_cv_native_windows" in
16090     yes)
16091
16092 cat >>confdefs.h <<_ACEOF
16093 #define NATIVE_WINDOWS 1
16094 _ACEOF
16095
16096       ;;
16097   esac
16098
16099 case X-"$ac_cv_native_windows" in
16100   X-yes)
16101
16102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
16103 $as_echo_n "checking for winsock.h... " >&6; }
16104 if test "${ac_cv_header_winsock_h+set}" = set; then :
16105   $as_echo_n "(cached) " >&6
16106 else
16107
16108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h.  */
16110
16111
16112 #undef inline
16113 #ifndef WIN32_LEAN_AND_MEAN
16114 #define WIN32_LEAN_AND_MEAN
16115 #endif
16116 #include <windows.h>
16117 #include <winsock.h>
16118
16119 int main (void)
16120 {
16121
16122 #if defined(__CYGWIN__) || defined(__CEGCC__)
16123         HAVE_WINSOCK_H shall not be defined.
16124 #else
16125         int dummy=WSACleanup();
16126 #endif
16127
16128  ;
16129  return 0;
16130 }
16131
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134
16135       ac_cv_header_winsock_h="yes"
16136
16137 else
16138
16139       ac_cv_header_winsock_h="no"
16140
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143
16144 fi
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
16146 $as_echo "$ac_cv_header_winsock_h" >&6; }
16147   case "$ac_cv_header_winsock_h" in
16148     yes)
16149
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_WINSOCK_H 1
16152 _ACEOF
16153
16154       ;;
16155   esac
16156
16157
16158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
16159 $as_echo_n "checking for winsock2.h... " >&6; }
16160 if test "${ac_cv_header_winsock2_h+set}" = set; then :
16161   $as_echo_n "(cached) " >&6
16162 else
16163
16164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h.  */
16166
16167
16168 #undef inline
16169 #ifndef WIN32_LEAN_AND_MEAN
16170 #define WIN32_LEAN_AND_MEAN
16171 #endif
16172 #include <windows.h>
16173 #include <winsock2.h>
16174
16175 int main (void)
16176 {
16177
16178 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16179         HAVE_WINSOCK2_H shall not be defined.
16180 #else
16181         int dummy=2*IPPROTO_ESP;
16182 #endif
16183
16184  ;
16185  return 0;
16186 }
16187
16188 _ACEOF
16189 if ac_fn_c_try_compile "$LINENO"; then :
16190
16191       ac_cv_header_winsock2_h="yes"
16192
16193 else
16194
16195       ac_cv_header_winsock2_h="no"
16196
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16199
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
16202 $as_echo "$ac_cv_header_winsock2_h" >&6; }
16203   case "$ac_cv_header_winsock2_h" in
16204     yes)
16205
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE_WINSOCK2_H 1
16208 _ACEOF
16209
16210       ;;
16211   esac
16212
16213
16214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
16215 $as_echo_n "checking for ws2tcpip.h... " >&6; }
16216 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then :
16217   $as_echo_n "(cached) " >&6
16218 else
16219
16220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h.  */
16222
16223
16224 #undef inline
16225 #ifndef WIN32_LEAN_AND_MEAN
16226 #define WIN32_LEAN_AND_MEAN
16227 #endif
16228 #include <windows.h>
16229 #include <winsock2.h>
16230 #include <ws2tcpip.h>
16231
16232 int main (void)
16233 {
16234
16235 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16236         HAVE_WS2TCPIP_H shall not be defined.
16237 #else
16238         int dummy=2*IP_PKTINFO;
16239 #endif
16240
16241  ;
16242  return 0;
16243 }
16244
16245 _ACEOF
16246 if ac_fn_c_try_compile "$LINENO"; then :
16247
16248       ac_cv_header_ws2tcpip_h="yes"
16249
16250 else
16251
16252       ac_cv_header_ws2tcpip_h="no"
16253
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
16259 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
16260   case "$ac_cv_header_ws2tcpip_h" in
16261     yes)
16262
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_WS2TCPIP_H 1
16265 _ACEOF
16266
16267       ;;
16268   esac
16269
16270
16271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
16272 $as_echo_n "checking for winldap.h... " >&6; }
16273 if test "${ac_cv_header_winldap_h+set}" = set; then :
16274   $as_echo_n "(cached) " >&6
16275 else
16276
16277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h.  */
16279
16280
16281 #undef inline
16282 #ifdef HAVE_WINDOWS_H
16283 #ifndef WIN32_LEAN_AND_MEAN
16284 #define WIN32_LEAN_AND_MEAN
16285 #endif
16286 #include <windows.h>
16287 #endif
16288 #include <winldap.h>
16289
16290 int main (void)
16291 {
16292
16293 #if defined(__CYGWIN__) || defined(__CEGCC__)
16294         HAVE_WINLDAP_H shall not be defined.
16295 #else
16296         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
16297         ULONG res = ldap_unbind(ldp);
16298 #endif
16299
16300  ;
16301  return 0;
16302 }
16303
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"; then :
16306
16307       ac_cv_header_winldap_h="yes"
16308
16309 else
16310
16311       ac_cv_header_winldap_h="no"
16312
16313 fi
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
16318 $as_echo "$ac_cv_header_winldap_h" >&6; }
16319   case "$ac_cv_header_winldap_h" in
16320     yes)
16321
16322 cat >>confdefs.h <<_ACEOF
16323 #define HAVE_WINLDAP_H 1
16324 _ACEOF
16325
16326       ;;
16327   esac
16328
16329
16330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
16331 $as_echo_n "checking for winber.h... " >&6; }
16332 if test "${ac_cv_header_winber_h+set}" = set; then :
16333   $as_echo_n "(cached) " >&6
16334 else
16335
16336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h.  */
16338
16339
16340 #undef inline
16341 #ifdef HAVE_WINDOWS_H
16342 #ifndef WIN32_LEAN_AND_MEAN
16343 #define WIN32_LEAN_AND_MEAN
16344 #endif
16345 #include <windows.h>
16346 #endif
16347 #include <winldap.h>
16348 #include <winber.h>
16349
16350 int main (void)
16351 {
16352
16353 #if defined(__CYGWIN__) || defined(__CEGCC__)
16354         HAVE_WINBER_H shall not be defined.
16355 #else
16356         BERVAL *bvp = NULL;
16357         BerElement *bep = ber_init(bvp);
16358         ber_free(bep, 1);
16359 #endif
16360
16361  ;
16362  return 0;
16363 }
16364
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"; then :
16367
16368       ac_cv_header_winber_h="yes"
16369
16370 else
16371
16372       ac_cv_header_winber_h="no"
16373
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376
16377 fi
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
16379 $as_echo "$ac_cv_header_winber_h" >&6; }
16380   case "$ac_cv_header_winber_h" in
16381     yes)
16382
16383 cat >>confdefs.h <<_ACEOF
16384 #define HAVE_WINBER_H 1
16385 _ACEOF
16386
16387       ;;
16388   esac
16389
16390     ;;
16391   *)
16392     ac_cv_header_winsock_h="no"
16393     ac_cv_header_winsock2_h="no"
16394     ac_cv_header_ws2tcpip_h="no"
16395     ac_cv_header_winldap_h="no"
16396     ac_cv_header_winber_h="no"
16397     ;;
16398 esac
16399
16400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
16401 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
16402   curl_win32_file_api="no"
16403   if test "$ac_cv_header_windows_h" = "yes"; then
16404     if test x"$enable_largefile" != "xno"; then
16405       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h.  */
16407
16408
16409
16410 int main (void)
16411 {
16412
16413 #if !defined(_WIN32_WCE) && \
16414     (defined(__MINGW32__) || \
16415     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
16416           int dummy=1;
16417 #else
16418           WIN32 large file API not supported.
16419 #endif
16420
16421  ;
16422  return 0;
16423 }
16424
16425 _ACEOF
16426 if ac_fn_c_try_compile "$LINENO"; then :
16427
16428         curl_win32_file_api="win32_large_files"
16429
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432     fi
16433     if test "$curl_win32_file_api" = "no"; then
16434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h.  */
16436
16437
16438
16439 int main (void)
16440 {
16441
16442 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
16443           int dummy=1;
16444 #else
16445           WIN32 small file API not supported.
16446 #endif
16447
16448  ;
16449  return 0;
16450 }
16451
16452 _ACEOF
16453 if ac_fn_c_try_compile "$LINENO"; then :
16454
16455         curl_win32_file_api="win32_small_files"
16456
16457 fi
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459     fi
16460   fi
16461   case "$curl_win32_file_api" in
16462     win32_large_files)
16463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
16464 $as_echo "yes (large file enabled)" >&6; }
16465
16466 cat >>confdefs.h <<_ACEOF
16467 #define USE_WIN32_LARGE_FILES 1
16468 _ACEOF
16469
16470       ;;
16471     win32_small_files)
16472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
16473 $as_echo "yes (large file disabled)" >&6; }
16474
16475 cat >>confdefs.h <<_ACEOF
16476 #define USE_WIN32_LARGE_FILES 1
16477 _ACEOF
16478
16479       ;;
16480     *)
16481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482 $as_echo "no" >&6; }
16483       ;;
16484   esac
16485
16486
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
16488 $as_echo_n "checking whether to support http... " >&6; }
16489 # Check whether --enable-http was given.
16490 if test "${enable_http+set}" = set; then :
16491   enableval=$enable_http;  case "$enableval" in
16492   no)
16493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16495
16496 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
16497
16498        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
16499 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
16500        CURL_DISABLE_HTTP=1
16501
16502
16503 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
16504
16505        CURL_DISABLE_RTSP=1
16506
16507        ;;
16508   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16509 $as_echo "yes" >&6; }
16510        ;;
16511   esac
16512 else
16513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16514 $as_echo "yes" >&6; }
16515
16516 fi
16517
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
16519 $as_echo_n "checking whether to support ftp... " >&6; }
16520 # Check whether --enable-ftp was given.
16521 if test "${enable_ftp+set}" = set; then :
16522   enableval=$enable_ftp;  case "$enableval" in
16523   no)
16524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525 $as_echo "no" >&6; }
16526
16527 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
16528
16529        CURL_DISABLE_FTP=1
16530
16531        ;;
16532   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533 $as_echo "yes" >&6; }
16534        ;;
16535   esac
16536 else
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16539
16540 fi
16541
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
16543 $as_echo_n "checking whether to support file... " >&6; }
16544 # Check whether --enable-file was given.
16545 if test "${enable_file+set}" = set; then :
16546   enableval=$enable_file;  case "$enableval" in
16547   no)
16548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 $as_echo "no" >&6; }
16550
16551 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
16552
16553        CURL_DISABLE_FILE=1
16554
16555        ;;
16556   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16557 $as_echo "yes" >&6; }
16558        ;;
16559   esac
16560 else
16561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562 $as_echo "yes" >&6; }
16563
16564 fi
16565
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
16567 $as_echo_n "checking whether to support ldap... " >&6; }
16568 # Check whether --enable-ldap was given.
16569 if test "${enable_ldap+set}" = set; then :
16570   enableval=$enable_ldap;  case "$enableval" in
16571   no)
16572        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574
16575 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
16576
16577        CURL_DISABLE_LDAP=1
16578
16579        ;;
16580   *)
16581        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16582 $as_echo "yes" >&6; }
16583        ;;
16584   esac
16585 else
16586
16587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16588 $as_echo "yes" >&6; }
16589
16590 fi
16591
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
16593 $as_echo_n "checking whether to support ldaps... " >&6; }
16594 # Check whether --enable-ldaps was given.
16595 if test "${enable_ldaps+set}" = set; then :
16596   enableval=$enable_ldaps;  case "$enableval" in
16597   no)
16598        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16600
16601 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16602
16603        CURL_DISABLE_LDAPS=1
16604
16605        ;;
16606   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16607          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
16608 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
16609
16610 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16611
16612          CURL_DISABLE_LDAPS=1
16613
16614        else
16615          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16616 $as_echo "yes" >&6; }
16617
16618 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16619
16620          HAVE_LDAP_SSL=1
16621
16622        fi
16623        ;;
16624   esac
16625 else
16626
16627        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16628          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16630
16631 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16632
16633          CURL_DISABLE_LDAPS=1
16634
16635        else
16636          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16640
16641          HAVE_LDAP_SSL=1
16642
16643        fi
16644
16645 fi
16646
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
16649 $as_echo_n "checking whether to support rtsp... " >&6; }
16650 # Check whether --enable-rtsp was given.
16651 if test "${enable_rtsp+set}" = set; then :
16652   enableval=$enable_rtsp;  case "$enableval" in
16653   no)
16654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "no" >&6; }
16656
16657 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
16658
16659        CURL_DISABLE_RTSP=1
16660
16661        ;;
16662   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
16663           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
16664        else
16665           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16666 $as_echo "yes" >&6; }
16667           curl_rtsp_msg="enabled"
16668        fi
16669        ;;
16670   esac
16671 else
16672   if test "x$CURL_DISABLE_HTTP" != "x1"; then
16673           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16674 $as_echo "yes" >&6; }
16675           curl_rtsp_msg="enabled"
16676        else
16677           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16679        fi
16680
16681 fi
16682
16683
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
16685 $as_echo_n "checking whether to support proxies... " >&6; }
16686 # Check whether --enable-proxy was given.
16687 if test "${enable_proxy+set}" = set; then :
16688   enableval=$enable_proxy;  case "$enableval" in
16689   no)
16690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692
16693 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
16694
16695        CURL_DISABLE_PROXY=1
16696
16697        ;;
16698   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16700        ;;
16701   esac
16702 else
16703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16704 $as_echo "yes" >&6; }
16705
16706 fi
16707
16708
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
16710 $as_echo_n "checking whether to support dict... " >&6; }
16711 # Check whether --enable-dict was given.
16712 if test "${enable_dict+set}" = set; then :
16713   enableval=$enable_dict;  case "$enableval" in
16714   no)
16715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716 $as_echo "no" >&6; }
16717
16718 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
16719
16720        CURL_DISABLE_DICT=1
16721
16722        ;;
16723   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16724 $as_echo "yes" >&6; }
16725        ;;
16726   esac
16727 else
16728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16729 $as_echo "yes" >&6; }
16730
16731 fi
16732
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
16734 $as_echo_n "checking whether to support telnet... " >&6; }
16735 # Check whether --enable-telnet was given.
16736 if test "${enable_telnet+set}" = set; then :
16737   enableval=$enable_telnet;  case "$enableval" in
16738   no)
16739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740 $as_echo "no" >&6; }
16741
16742 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
16743
16744        CURL_DISABLE_TELNET=1
16745
16746        ;;
16747   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748 $as_echo "yes" >&6; }
16749        ;;
16750   esac
16751 else
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16753 $as_echo "yes" >&6; }
16754
16755 fi
16756
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
16758 $as_echo_n "checking whether to support tftp... " >&6; }
16759 # Check whether --enable-tftp was given.
16760 if test "${enable_tftp+set}" = set; then :
16761   enableval=$enable_tftp;  case "$enableval" in
16762   no)
16763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765
16766 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
16767
16768        CURL_DISABLE_TFTP=1
16769
16770        ;;
16771   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773        ;;
16774   esac
16775 else
16776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16777 $as_echo "yes" >&6; }
16778
16779 fi
16780
16781
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
16783 $as_echo_n "checking whether to support pop3... " >&6; }
16784 # Check whether --enable-pop3 was given.
16785 if test "${enable_pop3+set}" = set; then :
16786   enableval=$enable_pop3;  case "$enableval" in
16787   no)
16788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16789 $as_echo "no" >&6; }
16790
16791 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
16792
16793        CURL_DISABLE_POP3=1
16794
16795        ;;
16796   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797 $as_echo "yes" >&6; }
16798        ;;
16799   esac
16800 else
16801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16802 $as_echo "yes" >&6; }
16803
16804 fi
16805
16806
16807
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
16809 $as_echo_n "checking whether to support imap... " >&6; }
16810 # Check whether --enable-imap was given.
16811 if test "${enable_imap+set}" = set; then :
16812   enableval=$enable_imap;  case "$enableval" in
16813   no)
16814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16815 $as_echo "no" >&6; }
16816
16817 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
16818
16819        CURL_DISABLE_IMAP=1
16820
16821        ;;
16822   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16823 $as_echo "yes" >&6; }
16824        ;;
16825   esac
16826 else
16827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829
16830 fi
16831
16832
16833
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
16835 $as_echo_n "checking whether to support smtp... " >&6; }
16836 # Check whether --enable-smtp was given.
16837 if test "${enable_smtp+set}" = set; then :
16838   enableval=$enable_smtp;  case "$enableval" in
16839   no)
16840        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16842
16843 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
16844
16845        CURL_DISABLE_SMTP=1
16846
16847        ;;
16848   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849 $as_echo "yes" >&6; }
16850        ;;
16851   esac
16852 else
16853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16854 $as_echo "yes" >&6; }
16855
16856 fi
16857
16858
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
16860 $as_echo_n "checking whether to support gopher... " >&6; }
16861 # Check whether --enable-gopher was given.
16862 if test "${enable_gopher+set}" = set; then :
16863   enableval=$enable_gopher;  case "$enableval" in
16864   no)
16865        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866 $as_echo "no" >&6; }
16867
16868 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
16869
16870        CURL_DISABLE_GOPHER=1
16871
16872        ;;
16873   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874 $as_echo "yes" >&6; }
16875        ;;
16876   esac
16877 else
16878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16879 $as_echo "yes" >&6; }
16880
16881 fi
16882
16883
16884
16885
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
16887 $as_echo_n "checking whether to provide built-in manual... " >&6; }
16888 # Check whether --enable-manual was given.
16889 if test "${enable_manual+set}" = set; then :
16890   enableval=$enable_manual;  case "$enableval" in
16891   no)
16892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16894        ;;
16895   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 $as_echo "yes" >&6; }
16897        USE_MANUAL="1"
16898        ;;
16899   esac
16900 else
16901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 $as_echo "yes" >&6; }
16903        USE_MANUAL="1"
16904
16905 fi
16906
16907
16908
16909
16910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
16911 $as_echo_n "checking if X/Open network library is required... " >&6; }
16912   tst_lib_xnet_required="no"
16913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h.  */
16915
16916
16917 int main (void)
16918 {
16919 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
16920   return 0;
16921 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
16922   return 0;
16923 #else
16924   force compilation error
16925 #endif
16926 }
16927
16928
16929 _ACEOF
16930 if ac_fn_c_try_compile "$LINENO"; then :
16931
16932     tst_lib_xnet_required="yes"
16933     LIBS="$LIBS -lxnet"
16934
16935 fi
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
16938 $as_echo "$tst_lib_xnet_required" >&6; }
16939
16940
16941 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16942 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16943   HAVE_GETHOSTBYNAME="1"
16944
16945 else
16946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16947 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16948 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16949   $as_echo_n "(cached) " >&6
16950 else
16951   ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lnsl  $LIBS"
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h.  */
16955
16956
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char gethostbyname ();
16961 int main (void)
16962 {
16963 return gethostbyname ();
16964  ;
16965  return 0;
16966 }
16967 _ACEOF
16968 if ac_fn_c_try_link "$LINENO"; then :
16969   ac_cv_lib_nsl_gethostbyname=yes
16970 else
16971   ac_cv_lib_nsl_gethostbyname=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext \
16974     conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16976 fi
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16978 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16979 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16980   HAVE_GETHOSTBYNAME="1"
16981                              LIBS="$LIBS -lnsl"
16982
16983 fi
16984
16985
16986 fi
16987
16988
16989 if test "$HAVE_GETHOSTBYNAME" != "1"
16990 then
16991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
16992 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
16993 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
16994   $as_echo_n "(cached) " >&6
16995 else
16996   ac_check_lib_save_LIBS=$LIBS
16997 LIBS="-lsocket  $LIBS"
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h.  */
17000
17001
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char gethostbyname ();
17006 int main (void)
17007 {
17008 return gethostbyname ();
17009  ;
17010  return 0;
17011 }
17012 _ACEOF
17013 if ac_fn_c_try_link "$LINENO"; then :
17014   ac_cv_lib_socket_gethostbyname=yes
17015 else
17016   ac_cv_lib_socket_gethostbyname=no
17017 fi
17018 rm -f core conftest.err conftest.$ac_objext \
17019     conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_check_lib_save_LIBS
17021 fi
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
17023 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
17024 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
17025   HAVE_GETHOSTBYNAME="1"
17026                LIBS="$LIBS -lsocket"
17027
17028 fi
17029
17030 fi
17031
17032 if test "$HAVE_GETHOSTBYNAME" != "1"
17033 then
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
17035 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
17036   my_ac_save_LIBS=$LIBS
17037   LIBS="-lnsl -lsocket $LIBS"
17038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h.  */
17040
17041
17042
17043 int main (void)
17044 {
17045
17046       gethostbyname();
17047
17048  ;
17049  return 0;
17050 }
17051
17052 _ACEOF
17053 if ac_fn_c_try_link "$LINENO"; then :
17054
17055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17056 $as_echo "yes" >&6; }
17057     HAVE_GETHOSTBYNAME="1"
17058
17059 else
17060
17061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062 $as_echo "no" >&6; }
17063     LIBS=$my_ac_save_LIBS
17064
17065 fi
17066 rm -f core conftest.err conftest.$ac_objext \
17067     conftest$ac_exeext conftest.$ac_ext
17068 fi
17069
17070 if test "$HAVE_GETHOSTBYNAME" != "1"
17071 then
17072     if test "$ac_cv_header_windows_h" = "yes"; then
17073     if test "$ac_cv_header_winsock_h" = "yes"; then
17074       case $host in
17075         *-*-mingw32ce*)
17076           winsock_LIB="-lwinsock"
17077           ;;
17078         *)
17079           winsock_LIB="-lwsock32"
17080           ;;
17081       esac
17082     fi
17083     if test "$ac_cv_header_winsock2_h" = "yes"; then
17084       winsock_LIB="-lws2_32"
17085     fi
17086     if test ! -z "$winsock_LIB"; then
17087       my_ac_save_LIBS=$LIBS
17088       LIBS="$winsock_LIB $LIBS"
17089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
17090 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
17091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h.  */
17093
17094
17095 #ifdef HAVE_WINDOWS_H
17096 #ifndef WIN32_LEAN_AND_MEAN
17097 #define WIN32_LEAN_AND_MEAN
17098 #endif
17099 #include <windows.h>
17100 #ifdef HAVE_WINSOCK2_H
17101 #include <winsock2.h>
17102 #else
17103 #ifdef HAVE_WINSOCK_H
17104 #include <winsock.h>
17105 #endif
17106 #endif
17107 #endif
17108
17109 int main (void)
17110 {
17111
17112           gethostbyname("www.dummysite.com");
17113
17114  ;
17115  return 0;
17116 }
17117
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17120
17121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122 $as_echo "yes" >&6; }
17123         HAVE_GETHOSTBYNAME="1"
17124
17125 else
17126
17127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129         winsock_LIB=""
17130         LIBS=$my_ac_save_LIBS
17131
17132 fi
17133 rm -f core conftest.err conftest.$ac_objext \
17134     conftest$ac_exeext conftest.$ac_ext
17135     fi
17136   fi
17137 fi
17138
17139 if test "$HAVE_GETHOSTBYNAME" != "1"
17140 then
17141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
17142 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
17143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h.  */
17145
17146
17147 /* Older Minix versions may need <net/gen/netdb.h> here instead */
17148 #include <netdb.h>
17149
17150 int main (void)
17151 {
17152
17153       gethostbyname("www.dummysite.com");
17154
17155  ;
17156  return 0;
17157 }
17158
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"; then :
17161
17162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17163 $as_echo "yes" >&6; }
17164     HAVE_GETHOSTBYNAME="1"
17165
17166 else
17167
17168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17169 $as_echo "no" >&6; }
17170
17171 fi
17172 rm -f core conftest.err conftest.$ac_objext \
17173     conftest$ac_exeext conftest.$ac_ext
17174 fi
17175
17176 if test "$HAVE_GETHOSTBYNAME" != "1"
17177 then
17178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
17179 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
17180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h.  */
17182
17183
17184 #include <stdio.h>
17185 #include <netdb.h>
17186
17187 int main (void)
17188 {
17189
17190       gethostbyname("www.dummysite.com");
17191
17192  ;
17193  return 0;
17194 }
17195
17196 _ACEOF
17197 if ac_fn_c_try_link "$LINENO"; then :
17198
17199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17200 $as_echo "yes" >&6; }
17201     HAVE_GETHOSTBYNAME="1"
17202
17203 else
17204
17205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17207
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext \
17210     conftest$ac_exeext conftest.$ac_ext
17211 fi
17212
17213 if test "$HAVE_GETHOSTBYNAME" != "1"
17214 then
17215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
17216 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
17217 if test "${ac_cv_lib_network_gethostbyname+set}" = set; then :
17218   $as_echo_n "(cached) " >&6
17219 else
17220   ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lnetwork  $LIBS"
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h.  */
17224
17225
17226 #ifdef __cplusplus
17227 extern "C"
17228 #endif
17229 char gethostbyname ();
17230 int main (void)
17231 {
17232 return gethostbyname ();
17233  ;
17234  return 0;
17235 }
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238   ac_cv_lib_network_gethostbyname=yes
17239 else
17240   ac_cv_lib_network_gethostbyname=no
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext \
17243     conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
17247 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
17248 if test "x$ac_cv_lib_network_gethostbyname" = x""yes; then :
17249   HAVE_GETHOSTBYNAME="1"
17250                LIBS="$LIBS -lnetwork"
17251
17252 fi
17253
17254 fi
17255
17256 if test "$HAVE_GETHOSTBYNAME" != "1"
17257 then
17258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
17259 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
17260 if test "${ac_cv_lib_net_gethostbyname+set}" = set; then :
17261   $as_echo_n "(cached) " >&6
17262 else
17263   ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-lnet  $LIBS"
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h.  */
17267
17268
17269 #ifdef __cplusplus
17270 extern "C"
17271 #endif
17272 char gethostbyname ();
17273 int main (void)
17274 {
17275 return gethostbyname ();
17276  ;
17277  return 0;
17278 }
17279 _ACEOF
17280 if ac_fn_c_try_link "$LINENO"; then :
17281   ac_cv_lib_net_gethostbyname=yes
17282 else
17283   ac_cv_lib_net_gethostbyname=no
17284 fi
17285 rm -f core conftest.err conftest.$ac_objext \
17286     conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17288 fi
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
17290 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
17291 if test "x$ac_cv_lib_net_gethostbyname" = x""yes; then :
17292   HAVE_GETHOSTBYNAME="1"
17293                LIBS="$LIBS -lnet"
17294
17295 fi
17296
17297 fi
17298
17299
17300 if test "$HAVE_GETHOSTBYNAME" != "1"; then
17301   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
17302 fi
17303
17304 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17305 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
17306
17307 else
17308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17309 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17310 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then :
17311   $as_echo_n "(cached) " >&6
17312 else
17313   ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lresolve  $LIBS"
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h.  */
17317
17318
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 char strcasecmp ();
17323 int main (void)
17324 {
17325 return strcasecmp ();
17326  ;
17327  return 0;
17328 }
17329 _ACEOF
17330 if ac_fn_c_try_link "$LINENO"; then :
17331   ac_cv_lib_resolve_strcasecmp=yes
17332 else
17333   ac_cv_lib_resolve_strcasecmp=no
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext \
17336     conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17340 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17341 if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then :
17342   cat >>confdefs.h <<_ACEOF
17343 #define HAVE_LIBRESOLVE 1
17344 _ACEOF
17345
17346   LIBS="-lresolve $LIBS"
17347
17348 fi
17349
17350 fi
17351
17352
17353 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
17354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17355 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17356 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then :
17357   $as_echo_n "(cached) " >&6
17358 else
17359   ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lresolve -lnsl $LIBS"
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h.  */
17363
17364
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char strcasecmp ();
17369 int main (void)
17370 {
17371 return strcasecmp ();
17372  ;
17373  return 0;
17374 }
17375 _ACEOF
17376 if ac_fn_c_try_link "$LINENO"; then :
17377   ac_cv_lib_resolve_strcasecmp=yes
17378 else
17379   ac_cv_lib_resolve_strcasecmp=no
17380 fi
17381 rm -f core conftest.err conftest.$ac_objext \
17382     conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17384 fi
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17386 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17387 if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then :
17388   LIBS="-lresolve $LIBS"
17389 fi
17390
17391 fi
17392 ac_cv_func_strcasecmp="no"
17393
17394
17395 curl_includes_winsock2="\
17396 /* includes start */
17397 #ifdef HAVE_WINDOWS_H
17398 #  ifndef WIN32_LEAN_AND_MEAN
17399 #    define WIN32_LEAN_AND_MEAN
17400 #  endif
17401 #  include <windows.h>
17402 #  ifdef HAVE_WINSOCK2_H
17403 #    include <winsock2.h>
17404 #  else
17405 #    ifdef HAVE_WINSOCK_H
17406 #      include <winsock.h>
17407 #    endif
17408 #  endif
17409 #endif
17410 /* includes end */"
17411
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17413 $as_echo_n "checking for windows.h... " >&6; }
17414 if test "${ac_cv_header_windows_h+set}" = set; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417
17418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h.  */
17420
17421
17422 #undef inline
17423 #ifndef WIN32_LEAN_AND_MEAN
17424 #define WIN32_LEAN_AND_MEAN
17425 #endif
17426 #include <windows.h>
17427
17428 int main (void)
17429 {
17430
17431 #if defined(__CYGWIN__) || defined(__CEGCC__)
17432         HAVE_WINDOWS_H shall not be defined.
17433 #else
17434         int dummy=2*WINVER;
17435 #endif
17436
17437  ;
17438  return 0;
17439 }
17440
17441 _ACEOF
17442 if ac_fn_c_try_compile "$LINENO"; then :
17443
17444       ac_cv_header_windows_h="yes"
17445
17446 else
17447
17448       ac_cv_header_windows_h="no"
17449
17450 fi
17451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
17455 $as_echo "$ac_cv_header_windows_h" >&6; }
17456   case "$ac_cv_header_windows_h" in
17457     yes)
17458
17459 cat >>confdefs.h <<_ACEOF
17460 #define HAVE_WINDOWS_H 1
17461 _ACEOF
17462
17463
17464 cat >>confdefs.h <<_ACEOF
17465 #define WIN32_LEAN_AND_MEAN 1
17466 _ACEOF
17467
17468       ;;
17469   esac
17470
17471
17472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17473 $as_echo_n "checking for winsock.h... " >&6; }
17474 if test "${ac_cv_header_winsock_h+set}" = set; then :
17475   $as_echo_n "(cached) " >&6
17476 else
17477
17478     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h.  */
17480
17481
17482 #undef inline
17483 #ifndef WIN32_LEAN_AND_MEAN
17484 #define WIN32_LEAN_AND_MEAN
17485 #endif
17486 #include <windows.h>
17487 #include <winsock.h>
17488
17489 int main (void)
17490 {
17491
17492 #if defined(__CYGWIN__) || defined(__CEGCC__)
17493         HAVE_WINSOCK_H shall not be defined.
17494 #else
17495         int dummy=WSACleanup();
17496 #endif
17497
17498  ;
17499  return 0;
17500 }
17501
17502 _ACEOF
17503 if ac_fn_c_try_compile "$LINENO"; then :
17504
17505       ac_cv_header_winsock_h="yes"
17506
17507 else
17508
17509       ac_cv_header_winsock_h="no"
17510
17511 fi
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17516 $as_echo "$ac_cv_header_winsock_h" >&6; }
17517   case "$ac_cv_header_winsock_h" in
17518     yes)
17519
17520 cat >>confdefs.h <<_ACEOF
17521 #define HAVE_WINSOCK_H 1
17522 _ACEOF
17523
17524       ;;
17525   esac
17526
17527
17528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17529 $as_echo_n "checking for winsock2.h... " >&6; }
17530 if test "${ac_cv_header_winsock2_h+set}" = set; then :
17531   $as_echo_n "(cached) " >&6
17532 else
17533
17534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536
17537
17538 #undef inline
17539 #ifndef WIN32_LEAN_AND_MEAN
17540 #define WIN32_LEAN_AND_MEAN
17541 #endif
17542 #include <windows.h>
17543 #include <winsock2.h>
17544
17545 int main (void)
17546 {
17547
17548 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17549         HAVE_WINSOCK2_H shall not be defined.
17550 #else
17551         int dummy=2*IPPROTO_ESP;
17552 #endif
17553
17554  ;
17555  return 0;
17556 }
17557
17558 _ACEOF
17559 if ac_fn_c_try_compile "$LINENO"; then :
17560
17561       ac_cv_header_winsock2_h="yes"
17562
17563 else
17564
17565       ac_cv_header_winsock2_h="no"
17566
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569
17570 fi
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17572 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17573   case "$ac_cv_header_winsock2_h" in
17574     yes)
17575
17576 cat >>confdefs.h <<_ACEOF
17577 #define HAVE_WINSOCK2_H 1
17578 _ACEOF
17579
17580       ;;
17581   esac
17582
17583
17584
17585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
17586 $as_echo_n "checking for connect in libraries... " >&6; }
17587   tst_connect_save_LIBS="$LIBS"
17588   tst_connect_need_LIBS="unknown"
17589   for tst_lib in '' '-lsocket' ; do
17590     if test "$tst_connect_need_LIBS" = "unknown"; then
17591       LIBS="$tst_lib $tst_connect_save_LIBS"
17592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593 /* end confdefs.h.  */
17594
17595
17596           $curl_includes_winsock2
17597           #ifndef HAVE_WINDOWS_H
17598             int connect(int, void*, int);
17599           #endif
17600
17601 int main (void)
17602 {
17603
17604           if(0 != connect(0, 0, 0))
17605             return 1;
17606
17607  ;
17608  return 0;
17609 }
17610
17611 _ACEOF
17612 if ac_fn_c_try_link "$LINENO"; then :
17613
17614         tst_connect_need_LIBS="$tst_lib"
17615
17616 fi
17617 rm -f core conftest.err conftest.$ac_objext \
17618     conftest$ac_exeext conftest.$ac_ext
17619     fi
17620   done
17621   LIBS="$tst_connect_save_LIBS"
17622   #
17623   case X-"$tst_connect_need_LIBS" in
17624     X-unknown)
17625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
17626 $as_echo "cannot find connect" >&6; }
17627       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
17628       ;;
17629     X-)
17630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17631 $as_echo "yes" >&6; }
17632       ;;
17633     *)
17634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
17635 $as_echo "$tst_connect_need_LIBS" >&6; }
17636       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
17637       ;;
17638   esac
17639
17640
17641 CURL_NETWORK_LIBS=$LIBS
17642
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17644 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17645 if test "${ac_cv_header_time+set}" = set; then :
17646   $as_echo_n "(cached) " >&6
17647 else
17648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h.  */
17650 #include <sys/types.h>
17651 #include <sys/time.h>
17652 #include <time.h>
17653
17654 int main (void)
17655 {
17656 if ((struct tm *) 0)
17657 return 0;
17658  ;
17659  return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_c_try_compile "$LINENO"; then :
17663   ac_cv_header_time=yes
17664 else
17665   ac_cv_header_time=no
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 fi
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17670 $as_echo "$ac_cv_header_time" >&6; }
17671 if test $ac_cv_header_time = yes; then
17672
17673 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17674
17675 fi
17676
17677
17678     for ac_header in sys/types.h sys/time.h time.h
17679 do :
17680   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17683   cat >>confdefs.h <<_ACEOF
17684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17685 _ACEOF
17686
17687 fi
17688
17689 done
17690
17691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
17692 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
17693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h.  */
17695
17696
17697 #ifdef HAVE_SYS_TYPES_H
17698 #include <sys/types.h>
17699 #endif
17700 #ifdef HAVE_SYS_TIME_H
17701 #include <sys/time.h>
17702 #ifdef TIME_WITH_SYS_TIME
17703 #include <time.h>
17704 #endif
17705 #else
17706 #ifdef HAVE_TIME_H
17707 #include <time.h>
17708 #endif
17709 #endif
17710
17711 int main (void)
17712 {
17713
17714       struct timespec ts;
17715       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17716
17717  ;
17718  return 0;
17719 }
17720
17721 _ACEOF
17722 if ac_fn_c_try_compile "$LINENO"; then :
17723
17724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725 $as_echo "yes" >&6; }
17726     ac_cv_func_clock_gettime="yes"
17727
17728 else
17729
17730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732     ac_cv_func_clock_gettime="no"
17733
17734 fi
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736
17737
17738     #
17739   if test "$ac_cv_func_clock_gettime" = "yes"; then
17740     #
17741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
17742 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
17743     #
17744     curl_cv_save_LIBS="$LIBS"
17745     curl_cv_gclk_LIBS="unknown"
17746     #
17747     for x_xlibs in '' '-lrt' '-lposix4' ; do
17748       if test "$curl_cv_gclk_LIBS" = "unknown"; then
17749         if test -z "$x_xlibs"; then
17750           LIBS="$curl_cv_save_LIBS"
17751         else
17752           LIBS="$x_xlibs $curl_cv_save_LIBS"
17753         fi
17754         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h.  */
17756
17757
17758 #ifdef HAVE_SYS_TYPES_H
17759 #include <sys/types.h>
17760 #endif
17761 #ifdef HAVE_SYS_TIME_H
17762 #include <sys/time.h>
17763 #ifdef TIME_WITH_SYS_TIME
17764 #include <time.h>
17765 #endif
17766 #else
17767 #ifdef HAVE_TIME_H
17768 #include <time.h>
17769 #endif
17770 #endif
17771
17772 int main (void)
17773 {
17774
17775             struct timespec ts;
17776             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17777
17778  ;
17779  return 0;
17780 }
17781
17782 _ACEOF
17783 if ac_fn_c_try_link "$LINENO"; then :
17784
17785           curl_cv_gclk_LIBS="$x_xlibs"
17786
17787 fi
17788 rm -f core conftest.err conftest.$ac_objext \
17789     conftest$ac_exeext conftest.$ac_ext
17790       fi
17791     done
17792     #
17793     LIBS="$curl_cv_save_LIBS"
17794     #
17795     case X-"$curl_cv_gclk_LIBS" in
17796       X-unknown)
17797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
17798 $as_echo "cannot find clock_gettime" >&6; }
17799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17800 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17801         ac_cv_func_clock_gettime="no"
17802         ;;
17803       X-)
17804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
17805 $as_echo "no additional lib required" >&6; }
17806         ac_cv_func_clock_gettime="yes"
17807         ;;
17808       *)
17809         if test -z "$curl_cv_save_LIBS"; then
17810           LIBS="$curl_cv_gclk_LIBS"
17811         else
17812           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
17813         fi
17814         CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
17815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
17816 $as_echo "$curl_cv_gclk_LIBS" >&6; }
17817         ac_cv_func_clock_gettime="yes"
17818         ;;
17819     esac
17820     #
17821         if test "x$cross_compiling" != "xyes" &&
17822       test "$ac_cv_func_clock_gettime" = "yes"; then
17823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
17824 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
17825       if test "$cross_compiling" = yes; then :
17826   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17828 as_fn_error $? "cannot run test program while cross compiling
17829 See \`config.log' for more details" "$LINENO" 5 ; }
17830 else
17831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h.  */
17833
17834
17835 #ifdef HAVE_STDLIB_H
17836 #include <stdlib.h>
17837 #endif
17838 #ifdef HAVE_SYS_TYPES_H
17839 #include <sys/types.h>
17840 #endif
17841 #ifdef HAVE_SYS_TIME_H
17842 #include <sys/time.h>
17843 #ifdef TIME_WITH_SYS_TIME
17844 #include <time.h>
17845 #endif
17846 #else
17847 #ifdef HAVE_TIME_H
17848 #include <time.h>
17849 #endif
17850 #endif
17851
17852 int main (void)
17853 {
17854
17855           struct timespec ts;
17856           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
17857             exit(0);
17858           else
17859             exit(1);
17860
17861  ;
17862  return 0;
17863 }
17864
17865 _ACEOF
17866 if ac_fn_c_try_run "$LINENO"; then :
17867
17868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17869 $as_echo "yes" >&6; }
17870
17871 else
17872
17873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 $as_echo "no" >&6; }
17875         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17876 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17877         ac_cv_func_clock_gettime="no"
17878         LIBS="$curl_cv_save_LIBS"
17879
17880 fi
17881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17882   conftest.$ac_objext conftest.beam conftest.$ac_ext
17883 fi
17884
17885     fi
17886     #
17887     case "$ac_cv_func_clock_gettime" in
17888       yes)
17889
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
17892 _ACEOF
17893
17894         ;;
17895     esac
17896     #
17897   fi
17898   #
17899
17900
17901 TEST_SERVER_LIBS=$LIBS
17902
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
17904 $as_echo_n "checking whether to use libgcc... " >&6; }
17905 # Check whether --enable-libgcc was given.
17906 if test "${enable_libgcc+set}" = set; then :
17907   enableval=$enable_libgcc;  case "$enableval" in
17908   yes)
17909         ALL_LIBS="$ALL_LIBS -lgcc"
17910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17912        ;;
17913   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915        ;;
17916   esac
17917 else
17918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17920
17921 fi
17922
17923
17924
17925 LDAPLIBNAME=""
17926
17927 # Check whether --with-ldap-lib was given.
17928 if test "${with_ldap_lib+set}" = set; then :
17929   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
17930 fi
17931
17932
17933 LBERLIBNAME=""
17934
17935 # Check whether --with-lber-lib was given.
17936 if test "${with_lber_lib+set}" = set; then :
17937   withval=$with_lber_lib; LBERLIBNAME="$withval"
17938 fi
17939
17940
17941 if test x$CURL_DISABLE_LDAP != x1 ; then
17942
17943
17944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
17945 $as_echo_n "checking for lber.h... " >&6; }
17946 if test "${ac_cv_header_lber_h+set}" = set; then :
17947   $as_echo_n "(cached) " >&6
17948 else
17949
17950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h.  */
17952
17953
17954 #undef inline
17955 #ifdef HAVE_WINDOWS_H
17956 #ifndef WIN32_LEAN_AND_MEAN
17957 #define WIN32_LEAN_AND_MEAN
17958 #endif
17959 #include <windows.h>
17960 #else
17961 #ifdef HAVE_SYS_TYPES_H
17962 #include <sys/types.h>
17963 #endif
17964 #endif
17965 #ifndef NULL
17966 #define NULL (void *)0
17967 #endif
17968 #include <lber.h>
17969
17970 int main (void)
17971 {
17972
17973         BerValue *bvp = NULL;
17974         BerElement *bep = ber_init(bvp);
17975         ber_free(bep, 1);
17976
17977  ;
17978  return 0;
17979 }
17980
17981 _ACEOF
17982 if ac_fn_c_try_compile "$LINENO"; then :
17983
17984       ac_cv_header_lber_h="yes"
17985
17986 else
17987
17988       ac_cv_header_lber_h="no"
17989
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992
17993 fi
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
17995 $as_echo "$ac_cv_header_lber_h" >&6; }
17996   if test "$ac_cv_header_lber_h" = "yes"; then
17997
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_LBER_H 1
18000 _ACEOF
18001
18002     #
18003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005
18006
18007 #undef inline
18008 #ifdef HAVE_WINDOWS_H
18009 #ifndef WIN32_LEAN_AND_MEAN
18010 #define WIN32_LEAN_AND_MEAN
18011 #endif
18012 #include <windows.h>
18013 #else
18014 #ifdef HAVE_SYS_TYPES_H
18015 #include <sys/types.h>
18016 #endif
18017 #endif
18018 #ifndef NULL
18019 #define NULL (void *)0
18020 #endif
18021 #ifndef LDAP_DEPRECATED
18022 #define LDAP_DEPRECATED 1
18023 #endif
18024 #include <ldap.h>
18025
18026 int main (void)
18027 {
18028
18029         BerValue *bvp = NULL;
18030         BerElement *bep = ber_init(bvp);
18031         ber_free(bep, 1);
18032
18033  ;
18034  return 0;
18035 }
18036
18037 _ACEOF
18038 if ac_fn_c_try_compile "$LINENO"; then :
18039
18040       curl_cv_need_header_lber_h="no"
18041
18042 else
18043
18044       curl_cv_need_header_lber_h="yes"
18045
18046 fi
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048     #
18049     case "$curl_cv_need_header_lber_h" in
18050       yes)
18051
18052 cat >>confdefs.h <<_ACEOF
18053 #define NEED_LBER_H 1
18054 _ACEOF
18055
18056         ;;
18057     esac
18058   fi
18059
18060
18061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
18062 $as_echo_n "checking for ldap.h... " >&6; }
18063 if test "${ac_cv_header_ldap_h+set}" = set; then :
18064   $as_echo_n "(cached) " >&6
18065 else
18066
18067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h.  */
18069
18070
18071 #undef inline
18072 #ifdef HAVE_WINDOWS_H
18073 #ifndef WIN32_LEAN_AND_MEAN
18074 #define WIN32_LEAN_AND_MEAN
18075 #endif
18076 #include <windows.h>
18077 #else
18078 #ifdef HAVE_SYS_TYPES_H
18079 #include <sys/types.h>
18080 #endif
18081 #endif
18082 #ifndef LDAP_DEPRECATED
18083 #define LDAP_DEPRECATED 1
18084 #endif
18085 #ifdef NEED_LBER_H
18086 #include <lber.h>
18087 #endif
18088 #include <ldap.h>
18089
18090 int main (void)
18091 {
18092
18093         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18094         int res = ldap_unbind(ldp);
18095
18096  ;
18097  return 0;
18098 }
18099
18100 _ACEOF
18101 if ac_fn_c_try_compile "$LINENO"; then :
18102
18103       ac_cv_header_ldap_h="yes"
18104
18105 else
18106
18107       ac_cv_header_ldap_h="no"
18108
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111
18112 fi
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
18114 $as_echo "$ac_cv_header_ldap_h" >&6; }
18115   case "$ac_cv_header_ldap_h" in
18116     yes)
18117
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_LDAP_H 1
18120 _ACEOF
18121
18122       ;;
18123   esac
18124
18125
18126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
18127 $as_echo_n "checking for ldapssl.h... " >&6; }
18128 if test "${ac_cv_header_ldapssl_h+set}" = set; then :
18129   $as_echo_n "(cached) " >&6
18130 else
18131
18132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134
18135
18136 #undef inline
18137 #ifdef HAVE_WINDOWS_H
18138 #ifndef WIN32_LEAN_AND_MEAN
18139 #define WIN32_LEAN_AND_MEAN
18140 #endif
18141 #include <windows.h>
18142 #else
18143 #ifdef HAVE_SYS_TYPES_H
18144 #include <sys/types.h>
18145 #endif
18146 #endif
18147 #ifndef NULL
18148 #define NULL (void *)0
18149 #endif
18150 #ifndef LDAP_DEPRECATED
18151 #define LDAP_DEPRECATED 1
18152 #endif
18153 #ifdef NEED_LBER_H
18154 #include <lber.h>
18155 #endif
18156 #ifdef HAVE_LDAP_H
18157 #include <ldap.h>
18158 #endif
18159 #include <ldapssl.h>
18160
18161 int main (void)
18162 {
18163
18164         char *cert_label = NULL;
18165         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
18166
18167  ;
18168  return 0;
18169 }
18170
18171 _ACEOF
18172 if ac_fn_c_try_compile "$LINENO"; then :
18173
18174       ac_cv_header_ldapssl_h="yes"
18175
18176 else
18177
18178       ac_cv_header_ldapssl_h="no"
18179
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182
18183 fi
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
18185 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
18186   case "$ac_cv_header_ldapssl_h" in
18187     yes)
18188
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_LDAPSSL_H 1
18191 _ACEOF
18192
18193       ;;
18194   esac
18195
18196
18197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
18198 $as_echo_n "checking for ldap_ssl.h... " >&6; }
18199 if test "${ac_cv_header_ldap_ssl_h+set}" = set; then :
18200   $as_echo_n "(cached) " >&6
18201 else
18202
18203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h.  */
18205
18206
18207 #undef inline
18208 #ifdef HAVE_WINDOWS_H
18209 #ifndef WIN32_LEAN_AND_MEAN
18210 #define WIN32_LEAN_AND_MEAN
18211 #endif
18212 #include <windows.h>
18213 #else
18214 #ifdef HAVE_SYS_TYPES_H
18215 #include <sys/types.h>
18216 #endif
18217 #endif
18218 #ifndef LDAP_DEPRECATED
18219 #define LDAP_DEPRECATED 1
18220 #endif
18221 #ifdef NEED_LBER_H
18222 #include <lber.h>
18223 #endif
18224 #ifdef HAVE_LDAP_H
18225 #include <ldap.h>
18226 #endif
18227 #include <ldap_ssl.h>
18228
18229 int main (void)
18230 {
18231
18232         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
18233
18234  ;
18235  return 0;
18236 }
18237
18238 _ACEOF
18239 if ac_fn_c_try_compile "$LINENO"; then :
18240
18241       ac_cv_header_ldap_ssl_h="yes"
18242
18243 else
18244
18245       ac_cv_header_ldap_ssl_h="no"
18246
18247 fi
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18249
18250 fi
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
18252 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
18253   case "$ac_cv_header_ldap_ssl_h" in
18254     yes)
18255
18256 cat >>confdefs.h <<_ACEOF
18257 #define HAVE_LDAP_SSL_H 1
18258 _ACEOF
18259
18260       ;;
18261   esac
18262
18263
18264   if test -z "$LDAPLIBNAME" ; then
18265     if test "$ac_cv_native_windows" = "yes"; then
18266             LDAPLIBNAME="wldap32"
18267       LBERLIBNAME="no"
18268     fi
18269   fi
18270
18271   if test "$LDAPLIBNAME" ; then
18272     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
18274 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
18275 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-l"$LDAPLIBNAME"  $LIBS"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h.  */
18282
18283
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char ldap_init ();
18288 int main (void)
18289 {
18290 return ldap_init ();
18291  ;
18292  return 0;
18293 }
18294 _ACEOF
18295 if ac_fn_c_try_link "$LINENO"; then :
18296   eval "$as_ac_Lib=yes"
18297 else
18298   eval "$as_ac_Lib=no"
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext \
18301     conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18303 fi
18304 eval ac_res=\$$as_ac_Lib
18305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18306 $as_echo "$ac_res" >&6; }
18307 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18308   cat >>confdefs.h <<_ACEOF
18309 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
18310 _ACEOF
18311
18312   LIBS="-l"$LDAPLIBNAME" $LIBS"
18313
18314 else
18315
18316       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
18317 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
18318
18319 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18320
18321       CURL_DISABLE_LDAP=1
18322
18323 fi
18324
18325
18326 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18327
18328       CURL_DISABLE_LDAPS=1
18329
18330   else
18331
18332     #
18333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18334 $as_echo_n "checking for LDAP libraries... " >&6; }
18335   #
18336   u_libs=""
18337   #
18338
18339   #
18340   curl_cv_save_LIBS="$LIBS"
18341   curl_cv_ldap_LIBS="unknown"
18342   #
18343   for x_nlibs in '' "$u_libs" \
18344     '-lldap' \
18345     '-llber -lldap' \
18346     '-lldap -llber' \
18347     '-lldapssl -lldapx -lldapsdk' \
18348     '-lldapsdk -lldapx -lldapssl' ; do
18349     if test "$curl_cv_ldap_LIBS" = "unknown"; then
18350       if test -z "$x_nlibs"; then
18351         LIBS="$curl_cv_save_LIBS"
18352       else
18353         LIBS="$x_nlibs $curl_cv_save_LIBS"
18354       fi
18355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h.  */
18357
18358
18359 #undef inline
18360 #ifdef HAVE_WINDOWS_H
18361 #ifndef WIN32_LEAN_AND_MEAN
18362 #define WIN32_LEAN_AND_MEAN
18363 #endif
18364 #include <windows.h>
18365 #else
18366 #ifdef HAVE_SYS_TYPES_H
18367 #include <sys/types.h>
18368 #endif
18369 #endif
18370 #ifndef NULL
18371 #define NULL (void *)0
18372 #endif
18373 #ifndef LDAP_DEPRECATED
18374 #define LDAP_DEPRECATED 1
18375 #endif
18376 #ifdef NEED_LBER_H
18377 #include <lber.h>
18378 #endif
18379 #ifdef HAVE_LDAP_H
18380 #include <ldap.h>
18381 #endif
18382
18383 int main (void)
18384 {
18385
18386           BerValue *bvp = NULL;
18387           BerElement *bep = ber_init(bvp);
18388           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18389           int res = ldap_unbind(ldp);
18390           ber_free(bep, 1);
18391
18392  ;
18393  return 0;
18394 }
18395
18396 _ACEOF
18397 if ac_fn_c_try_link "$LINENO"; then :
18398
18399         curl_cv_ldap_LIBS="$x_nlibs"
18400
18401 fi
18402 rm -f core conftest.err conftest.$ac_objext \
18403     conftest$ac_exeext conftest.$ac_ext
18404     fi
18405   done
18406   #
18407   LIBS="$curl_cv_save_LIBS"
18408   #
18409   case X-"$curl_cv_ldap_LIBS" in
18410     X-unknown)
18411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
18412 $as_echo "cannot find LDAP libraries" >&6; }
18413       ;;
18414     X-)
18415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
18416 $as_echo "no additional lib required" >&6; }
18417       ;;
18418     *)
18419       if test -z "$curl_cv_save_LIBS"; then
18420         LIBS="$curl_cv_ldap_LIBS"
18421       else
18422         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
18423       fi
18424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
18425 $as_echo "$curl_cv_ldap_LIBS" >&6; }
18426       ;;
18427   esac
18428   #
18429
18430     case X-"$curl_cv_ldap_LIBS" in
18431       X-unknown)
18432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
18433 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
18434
18435 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18436
18437         CURL_DISABLE_LDAP=1
18438
18439
18440 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18441
18442         CURL_DISABLE_LDAPS=1
18443
18444         ;;
18445     esac
18446   fi
18447 fi
18448
18449 if test x$CURL_DISABLE_LDAP != x1 ; then
18450
18451   if test "$LBERLIBNAME" ; then
18452             if test "$LBERLIBNAME" != "no" ; then
18453       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
18455 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
18456 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
18457   $as_echo_n "(cached) " >&6
18458 else
18459   ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-l"$LBERLIBNAME"  $LIBS"
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463
18464
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char ber_free ();
18469 int main (void)
18470 {
18471 return ber_free ();
18472  ;
18473  return 0;
18474 }
18475 _ACEOF
18476 if ac_fn_c_try_link "$LINENO"; then :
18477   eval "$as_ac_Lib=yes"
18478 else
18479   eval "$as_ac_Lib=no"
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext \
18482     conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18484 fi
18485 eval ac_res=\$$as_ac_Lib
18486                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18487 $as_echo "$ac_res" >&6; }
18488 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18489   cat >>confdefs.h <<_ACEOF
18490 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
18491 _ACEOF
18492
18493   LIBS="-l"$LBERLIBNAME" $LIBS"
18494
18495 else
18496
18497         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
18498 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
18499
18500 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18501
18502         CURL_DISABLE_LDAP=1
18503
18504 fi
18505
18506
18507 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18508
18509         CURL_DISABLE_LDAPS=1
18510
18511     fi
18512   fi
18513 fi
18514
18515 if test x$CURL_DISABLE_LDAP != x1 ; then
18516   for ac_func in ldap_url_parse ldap_init_fd
18517 do :
18518   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18521   cat >>confdefs.h <<_ACEOF
18522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 _ACEOF
18524
18525 fi
18526 done
18527
18528
18529   if test "$LDAPLIBNAME" = "wldap32"; then
18530     curl_ldap_msg="enabled (winldap)"
18531
18532 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
18533
18534   else
18535     curl_ldap_msg="enabled (OpenLDAP)"
18536     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
18537
18538 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
18539
18540       USE_OPENLDAP=1
18541
18542     fi
18543   fi
18544 fi
18545
18546 if test x$CURL_DISABLE_LDAPS != x1 ; then
18547     curl_ldaps_msg="enabled"
18548 fi
18549
18550
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
18552 $as_echo_n "checking whether to enable ipv6... " >&6; }
18553 # Check whether --enable-ipv6 was given.
18554 if test "${enable_ipv6+set}" = set; then :
18555   enableval=$enable_ipv6;  case "$enableval" in
18556   no)
18557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558 $as_echo "no" >&6; }
18559        ipv6=no
18560        ;;
18561   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18562 $as_echo "yes" >&6; }
18563        ipv6=yes
18564        ;;
18565   esac
18566 else
18567   if test "$cross_compiling" = yes; then :
18568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 $as_echo "no" >&6; }
18570   ipv6=no
18571
18572 else
18573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h.  */
18575  /* is AF_INET6 available? */
18576 #include <sys/types.h>
18577 #include <sys/socket.h>
18578 main()
18579 {
18580  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
18581    exit(1);
18582  else
18583    exit(0);
18584 }
18585
18586 _ACEOF
18587 if ac_fn_c_try_run "$LINENO"; then :
18588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18589 $as_echo "yes" >&6; }
18590   ipv6=yes
18591 else
18592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18594   ipv6=no
18595 fi
18596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18597   conftest.$ac_objext conftest.beam conftest.$ac_ext
18598 fi
18599
18600 fi
18601
18602
18603 if test "$ipv6" = "yes"; then
18604   curl_ipv6_msg="enabled"
18605 fi
18606
18607 # Check if struct sockaddr_in6 have sin6_scope_id member
18608 if test "$ipv6" = yes; then
18609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
18610 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
18611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h.  */
18613
18614 #include <sys/types.h>
18615 #include <netinet/in.h>
18616 int main (void)
18617 {
18618 struct sockaddr_in6 s; s.sin6_scope_id = 0;
18619  ;
18620  return 0;
18621 }
18622 _ACEOF
18623 if ac_fn_c_try_compile "$LINENO"; then :
18624   have_sin6_scope_id=yes
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627   if test "$have_sin6_scope_id" = yes; then
18628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18629 $as_echo "yes" >&6; }
18630
18631 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
18632
18633   else
18634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18636   fi
18637 fi
18638
18639
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
18641 $as_echo_n "checking if argv can be written to... " >&6; }
18642 if test "$cross_compiling" = yes; then :
18643
18644   curl_cv_writable_argv=cross
18645
18646 else
18647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h.  */
18649
18650
18651 int main(int argc, char ** argv) {
18652     argv[0][0] = ' ';
18653     return (argv[0][0] == ' ')?0:1;
18654 }
18655
18656
18657 _ACEOF
18658 if ac_fn_c_try_run "$LINENO"; then :
18659
18660   curl_cv_writable_argv=yes
18661
18662 else
18663
18664   curl_cv_writable_argv=no
18665
18666 fi
18667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18668   conftest.$ac_objext conftest.beam conftest.$ac_ext
18669 fi
18670
18671 case $curl_cv_writable_argv in
18672 yes)
18673
18674 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
18675
18676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677 $as_echo "yes" >&6; }
18678         ;;
18679 no)
18680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18682         ;;
18683 *)
18684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
18687 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
18688         ;;
18689 esac
18690
18691
18692
18693 # Check whether --with-krb4-includes was given.
18694 if test "${with_krb4_includes+set}" = set; then :
18695   withval=$with_krb4_includes;
18696  CPPFLAGS="$CPPFLAGS -I$withval"
18697  KRB4INC="$withval"
18698  want_krb4=yes
18699
18700 fi
18701
18702
18703
18704 # Check whether --with-krb4-libs was given.
18705 if test "${with_krb4_libs+set}" = set; then :
18706   withval=$with_krb4_libs;
18707  LDFLAGS="$LDFLAGS -L$withval"
18708  KRB4LIB="$withval"
18709  want_krb4=yes
18710
18711 fi
18712
18713
18714
18715 OPT_KRB4=off
18716
18717 # Check whether --with-krb4 was given.
18718 if test "${with_krb4+set}" = set; then :
18719   withval=$with_krb4;
18720   OPT_KRB4="$withval"
18721   if test X"$OPT_KRB4" != Xno; then
18722     want_krb4="yes"
18723     if test X"$OPT_KRB4" != Xyes; then
18724       LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
18725       KRB4LIB="$OPT_KRB4/lib$libsuff"
18726       CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
18727       KRB4INC="$OPT_KRB4/include"
18728     fi
18729   fi
18730
18731 fi
18732
18733
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5
18735 $as_echo_n "checking if Kerberos4 support is requested... " >&6; }
18736
18737 if test "$want_krb4" = yes
18738 then
18739   if test "$ipv6" = "yes"; then
18740     echo krb4 is not compatible with IPv6
18741     exit 1
18742   fi
18743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18744 $as_echo "yes" >&6; }
18745
18746
18747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5
18748 $as_echo_n "checking where to look for Kerberos4... " >&6; }
18749   if test X"$OPT_KRB4" = Xyes
18750   then
18751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5
18752 $as_echo "defaults" >&6; }
18753   else
18754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
18755 $as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; }
18756   fi
18757
18758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5
18759 $as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; }
18760 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then :
18761   $as_echo_n "(cached) " >&6
18762 else
18763   ac_check_lib_save_LIBS=$LIBS
18764 LIBS="-ldes  $LIBS"
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h.  */
18767
18768
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char des_pcbc_encrypt ();
18773 int main (void)
18774 {
18775 return des_pcbc_encrypt ();
18776  ;
18777  return 0;
18778 }
18779 _ACEOF
18780 if ac_fn_c_try_link "$LINENO"; then :
18781   ac_cv_lib_des_des_pcbc_encrypt=yes
18782 else
18783   ac_cv_lib_des_des_pcbc_encrypt=no
18784 fi
18785 rm -f core conftest.err conftest.$ac_objext \
18786     conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18788 fi
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
18790 $as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
18791 if test "x$ac_cv_lib_des_des_pcbc_encrypt" = x""yes; then :
18792
18793     for ac_header in des.h
18794 do :
18795   ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18796 if test "x$ac_cv_header_des_h" = x""yes; then :
18797   cat >>confdefs.h <<_ACEOF
18798 #define HAVE_DES_H 1
18799 _ACEOF
18800
18801 fi
18802
18803 done
18804
18805
18806         ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
18807 if test "x$ac_cv_func_res_search" = x""yes; then :
18808
18809 else
18810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
18811 $as_echo_n "checking for res_search in -lresolv... " >&6; }
18812 if test "${ac_cv_lib_resolv_res_search+set}" = set; then :
18813   $as_echo_n "(cached) " >&6
18814 else
18815   ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lresolv  $LIBS"
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h.  */
18819
18820
18821 #ifdef __cplusplus
18822 extern "C"
18823 #endif
18824 char res_search ();
18825 int main (void)
18826 {
18827 return res_search ();
18828  ;
18829  return 0;
18830 }
18831 _ACEOF
18832 if ac_fn_c_try_link "$LINENO"; then :
18833   ac_cv_lib_resolv_res_search=yes
18834 else
18835   ac_cv_lib_resolv_res_search=no
18836 fi
18837 rm -f core conftest.err conftest.$ac_objext \
18838     conftest$ac_exeext conftest.$ac_ext
18839 LIBS=$ac_check_lib_save_LIBS
18840 fi
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
18842 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
18843 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then :
18844   cat >>confdefs.h <<_ACEOF
18845 #define HAVE_LIBRESOLV 1
18846 _ACEOF
18847
18848   LIBS="-lresolv $LIBS"
18849
18850 fi
18851
18852 fi
18853
18854
18855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5
18856 $as_echo_n "checking for krb_net_read in -lkrb... " >&6; }
18857 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then :
18858   $as_echo_n "(cached) " >&6
18859 else
18860   ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb  $LIBS"
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h.  */
18864
18865
18866 #ifdef __cplusplus
18867 extern "C"
18868 #endif
18869 char krb_net_read ();
18870 int main (void)
18871 {
18872 return krb_net_read ();
18873  ;
18874  return 0;
18875 }
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"; then :
18878   ac_cv_lib_krb_krb_net_read=yes
18879 else
18880   ac_cv_lib_krb_krb_net_read=no
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext \
18883     conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18885 fi
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5
18887 $as_echo "$ac_cv_lib_krb_krb_net_read" >&6; }
18888 if test "x$ac_cv_lib_krb_krb_net_read" = x""yes; then :
18889
18890             for ac_header in krb.h
18891 do :
18892   ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18893 if test "x$ac_cv_header_krb_h" = x""yes; then :
18894   cat >>confdefs.h <<_ACEOF
18895 #define HAVE_KRB_H 1
18896 _ACEOF
18897
18898 fi
18899
18900 done
18901
18902
18903             LIBS="-lkrb -lcom_err -ldes $LIBS"
18904
18905                   for ac_func in krb_get_our_ip_for_realm
18906 do :
18907   ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm"
18908 if test "x$ac_cv_func_krb_get_our_ip_for_realm" = x""yes; then :
18909   cat >>confdefs.h <<_ACEOF
18910 #define HAVE_KRB_GET_OUR_IP_FOR_REALM 1
18911 _ACEOF
18912
18913 fi
18914 done
18915
18916
18917
18918 $as_echo "#define HAVE_KRB4 1" >>confdefs.h
18919
18920
18921             KRB4_ENABLED=1
18922
18923
18924       curl_krb4_msg="enabled"
18925
18926             for ac_func in strlcpy
18927 do :
18928   ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18929 if test "x$ac_cv_func_strlcpy" = x""yes; then :
18930   cat >>confdefs.h <<_ACEOF
18931 #define HAVE_STRLCPY 1
18932 _ACEOF
18933
18934 fi
18935 done
18936
18937
18938
18939 fi
18940
18941
18942 fi
18943
18944 else
18945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18947 fi
18948
18949
18950
18951 # Check whether --with-spnego was given.
18952 if test "${with_spnego+set}" = set; then :
18953   withval=$with_spnego;
18954   SPNEGO_ROOT="$withval"
18955   if test x"$SPNEGO_ROOT" != xno; then
18956     want_spnego="yes"
18957   fi
18958
18959 fi
18960
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
18963 $as_echo_n "checking if SPNEGO support is requested... " >&6; }
18964 if test x"$want_spnego" = xyes; then
18965
18966   if test X"$SPNEGO_ROOT" = Xyes; then
18967      as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
18968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 $as_echo "no" >&6; }
18970   else
18971      if test -z "$SPNEGO_LIB_DIR"; then
18972         LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
18973      else
18974         LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
18975      fi
18976
18977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18979
18980 $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
18981
18982      curl_spnego_msg="enabled"
18983   fi
18984 else
18985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18987 fi
18988
18989
18990
18991 GSSAPI_ROOT="/usr"
18992
18993 # Check whether --with-gssapi-includes was given.
18994 if test "${with_gssapi_includes+set}" = set; then :
18995   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
18996     want_gss="yes"
18997
18998 fi
18999
19000
19001
19002 # Check whether --with-gssapi-libs was given.
19003 if test "${with_gssapi_libs+set}" = set; then :
19004   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
19005     want_gss="yes"
19006
19007 fi
19008
19009
19010
19011 # Check whether --with-gssapi was given.
19012 if test "${with_gssapi+set}" = set; then :
19013   withval=$with_gssapi;
19014   GSSAPI_ROOT="$withval"
19015   if test x"$GSSAPI_ROOT" != xno; then
19016     want_gss="yes"
19017     if test x"$GSSAPI_ROOT" = xyes; then
19018             GSSAPI_ROOT="/usr"
19019     fi
19020   fi
19021
19022 fi
19023
19024
19025 save_CPPFLAGS="$CPPFLAGS"
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
19027 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
19028 if test x"$want_gss" = xyes; then
19029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19030 $as_echo "yes" >&6; }
19031
19032   if test -z "$GSSAPI_INCS"; then
19033      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
19034         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
19035      elif test "$GSSAPI_ROOT" != "yes"; then
19036         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
19037      fi
19038   fi
19039
19040   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
19041
19042   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
19043 if test "x$ac_cv_header_gss_h" = x""yes; then :
19044
19045
19046 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
19047
19048       gnu_gss=yes
19049
19050 else
19051
19052             for ac_header in gssapi/gssapi.h
19053 do :
19054   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
19055 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
19056   cat >>confdefs.h <<_ACEOF
19057 #define HAVE_GSSAPI_GSSAPI_H 1
19058 _ACEOF
19059
19060 else
19061   not_mit=1
19062 fi
19063
19064 done
19065
19066       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
19067 do :
19068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19070 $ac_includes_default
19071 #ifdef HAVE_GSSAPI_GSSAPI_H
19072 #include <gssapi/gssapi.h>
19073 #endif
19074
19075 "
19076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19077   cat >>confdefs.h <<_ACEOF
19078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19079 _ACEOF
19080
19081 else
19082   not_mit=1
19083 fi
19084
19085 done
19086
19087       if test "x$not_mit" = "x1"; then
19088                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
19089 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
19090
19091
19092 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
19093
19094
19095 else
19096
19097                             want_gss=no
19098               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
19099 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
19100
19101
19102 fi
19103
19104
19105       else
19106
19107 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
19108
19109                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
19110 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
19111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h.  */
19113
19114
19115 #include <gssapi/gssapi.h>
19116 #include <gssapi/gssapi_generic.h>
19117 #include <gssapi/gssapi_krb5.h>
19118
19119 int main (void)
19120 {
19121
19122             gss_import_name(
19123                             (OM_uint32 *)0,
19124                             (gss_buffer_t)0,
19125                             GSS_C_NT_HOSTBASED_SERVICE,
19126                             (gss_name_t *)0);
19127
19128  ;
19129  return 0;
19130 }
19131
19132 _ACEOF
19133 if ac_fn_c_try_compile "$LINENO"; then :
19134
19135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19136 $as_echo "yes" >&6; }
19137
19138 else
19139
19140           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19142
19143 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
19144
19145
19146 fi
19147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148       fi
19149
19150
19151 fi
19152
19153
19154 else
19155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19156 $as_echo "no" >&6; }
19157 fi
19158 if test x"$want_gss" = xyes; then
19159
19160 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
19161
19162
19163   curl_gss_msg="enabled (MIT/Heimdal)"
19164
19165   if test -n "$gnu_gss"; then
19166     curl_gss_msg="enabled (GNU GSS)"
19167     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
19168     LIBS="$LIBS -lgss"
19169   elif test -z "$GSSAPI_LIB_DIR"; then
19170      case $host in
19171      *-*-darwin*)
19172         LIBS="$LIBS -lgssapi_krb5 -lresolv"
19173         ;;
19174      *)
19175         if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
19176                                  gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
19177            LIBS="$LIBS $gss_libs"
19178         elif test "$GSSAPI_ROOT" != "yes"; then
19179            LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
19180            LIBS="$LIBS -lgssapi"
19181         else
19182            LIBS="$LIBS -lgssapi"
19183         fi
19184         ;;
19185      esac
19186   else
19187      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
19188      LIBS="$LIBS -lgssapi"
19189   fi
19190 else
19191   CPPFLAGS="$save_CPPFLAGS"
19192 fi
19193
19194
19195 OPT_SSL=off
19196 ca="no"
19197
19198 # Check whether --with-ssl was given.
19199 if test "${with_ssl+set}" = set; then :
19200   withval=$with_ssl; OPT_SSL=$withval
19201 fi
19202
19203
19204 if test X"$OPT_SSL" != Xno; then
19205     CLEANLDFLAGS="$LDFLAGS"
19206   CLEANCPPFLAGS="$CPPFLAGS"
19207   CLEANLIBS="$LIBS"
19208
19209   case "$OPT_SSL" in
19210   yes)
19211         if test x$cross_compiling != xyes; then
19212             PKGTEST="yes"
19213     fi
19214     PREFIX_OPENSSL=/usr/local/ssl
19215     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
19216     ;;
19217   off)
19218         if test x$cross_compiling != xyes; then
19219             PKGTEST="yes"
19220     fi
19221     PREFIX_OPENSSL=
19222     ;;
19223   *)
19224         PKGTEST="no"
19225     PREFIX_OPENSSL=$OPT_SSL
19226
19227                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
19228     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
19229 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
19230     if test -e "$OPENSSL_PCDIR/openssl.pc"; then
19231       PKGTEST="yes"
19232     fi
19233
19234             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
19235     if test "$PREFIX_OPENSSL" != "/usr" ; then
19236       SSL_LDFLAGS="-L$LIB_OPENSSL"
19237       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
19238     fi
19239     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
19240     ;;
19241   esac
19242
19243   if test "$PKGTEST" = "yes"; then
19244
19245
19246
19247     PKGCONFIG="no"
19248
19249     if test x$cross_compiling = xyes; then
19250             # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
19251 set dummy ${host}-pkg-config; ac_word=$2
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19253 $as_echo_n "checking for $ac_word... " >&6; }
19254 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
19255   $as_echo_n "(cached) " >&6
19256 else
19257   case $PKGCONFIG in
19258   [\\/]* | ?:[\\/]*)
19259   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
19260   ;;
19261   *)
19262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19263 as_dummy="$PATH:/usr/bin:/usr/local/bin"
19264 for as_dir in $as_dummy
19265 do
19266   IFS=$as_save_IFS
19267   test -z "$as_dir" && as_dir=.
19268     for ac_exec_ext in '' $ac_executable_extensions; do
19269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
19271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19272     break 2
19273   fi
19274 done
19275   done
19276 IFS=$as_save_IFS
19277
19278   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
19279   ;;
19280 esac
19281 fi
19282 PKGCONFIG=$ac_cv_path_PKGCONFIG
19283 if test -n "$PKGCONFIG"; then
19284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19285 $as_echo "$PKGCONFIG" >&6; }
19286 else
19287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 $as_echo "no" >&6; }
19289 fi
19290
19291
19292     fi
19293
19294     if test x$PKGCONFIG = xno; then
19295       # Extract the first word of "pkg-config", so it can be a program name with args.
19296 set dummy pkg-config; ac_word=$2
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19298 $as_echo_n "checking for $ac_word... " >&6; }
19299 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
19300   $as_echo_n "(cached) " >&6
19301 else
19302   case $PKGCONFIG in
19303   [\\/]* | ?:[\\/]*)
19304   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
19305   ;;
19306   *)
19307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
19309 for as_dir in $as_dummy
19310 do
19311   IFS=$as_save_IFS
19312   test -z "$as_dir" && as_dir=.
19313     for ac_exec_ext in '' $ac_executable_extensions; do
19314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19315     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
19316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19317     break 2
19318   fi
19319 done
19320   done
19321 IFS=$as_save_IFS
19322
19323   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
19324   ;;
19325 esac
19326 fi
19327 PKGCONFIG=$ac_cv_path_PKGCONFIG
19328 if test -n "$PKGCONFIG"; then
19329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19330 $as_echo "$PKGCONFIG" >&6; }
19331 else
19332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 $as_echo "no" >&6; }
19334 fi
19335
19336
19337     fi
19338
19339     if test x$PKGCONFIG != xno; then
19340       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
19341 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
19342             itexists=`
19343     if test -n "$OPENSSL_PCDIR"; then
19344       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19345       export PKG_CONFIG_LIBDIR
19346     fi
19347          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
19348
19349       if test -z "$itexists"; then
19350                         PKGCONFIG="no"
19351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352 $as_echo "no" >&6; }
19353       else
19354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
19355 $as_echo "found" >&6; }
19356       fi
19357     fi
19358
19359
19360     if test "$PKGCONFIG" != "no" ; then
19361       SSL_LIBS=`
19362     if test -n "$OPENSSL_PCDIR"; then
19363       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19364       export PKG_CONFIG_LIBDIR
19365     fi
19366          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
19367
19368       SSL_LDFLAGS=`
19369     if test -n "$OPENSSL_PCDIR"; then
19370       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19371       export PKG_CONFIG_LIBDIR
19372     fi
19373          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
19374
19375       SSL_CPPFLAGS=`
19376     if test -n "$OPENSSL_PCDIR"; then
19377       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19378       export PKG_CONFIG_LIBDIR
19379     fi
19380          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
19381
19382       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
19383 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
19384       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
19385 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
19386       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
19387 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
19388
19389       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
19390
19391                                           LIBS="$LIBS $SSL_LIBS"
19392     fi
19393   fi
19394
19395     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
19396   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
19397
19398     case $host in
19399     *-*-msys* | *-*-mingw*)
19400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
19401 $as_echo_n "checking for gdi32... " >&6; }
19402       my_ac_save_LIBS=$LIBS
19403       LIBS="-lgdi32 $LIBS"
19404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h.  */
19406 #include <windef.h>
19407                    #include <wingdi.h>
19408 int main (void)
19409 {
19410 GdiFlush();
19411  ;
19412  return 0;
19413 }
19414 _ACEOF
19415 if ac_fn_c_try_link "$LINENO"; then :
19416                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418 else
19419                       LIBS=$my_ac_save_LIBS
19420                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 $as_echo "no" >&6; }
19422
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext \
19425     conftest$ac_exeext conftest.$ac_ext
19426       ;;
19427   esac
19428
19429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
19430 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
19431 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then :
19432   $as_echo_n "(cached) " >&6
19433 else
19434   ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lcrypto  $LIBS"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h.  */
19438
19439
19440 #ifdef __cplusplus
19441 extern "C"
19442 #endif
19443 char CRYPTO_lock ();
19444 int main (void)
19445 {
19446 return CRYPTO_lock ();
19447  ;
19448  return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_link "$LINENO"; then :
19452   ac_cv_lib_crypto_CRYPTO_lock=yes
19453 else
19454   ac_cv_lib_crypto_CRYPTO_lock=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext \
19457     conftest$ac_exeext conftest.$ac_ext
19458 LIBS=$ac_check_lib_save_LIBS
19459 fi
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
19461 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
19462 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = x""yes; then :
19463
19464      HAVECRYPTO="yes"
19465      LIBS="-lcrypto $LIBS"
19466
19467 else
19468
19469      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
19470      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
19471      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
19472 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
19473 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then :
19474   $as_echo_n "(cached) " >&6
19475 else
19476   ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lcrypto  $LIBS"
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h.  */
19480
19481
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char CRYPTO_add_lock ();
19486 int main (void)
19487 {
19488 return CRYPTO_add_lock ();
19489  ;
19490  return 0;
19491 }
19492 _ACEOF
19493 if ac_fn_c_try_link "$LINENO"; then :
19494   ac_cv_lib_crypto_CRYPTO_add_lock=yes
19495 else
19496   ac_cv_lib_crypto_CRYPTO_add_lock=no
19497 fi
19498 rm -f core conftest.err conftest.$ac_objext \
19499     conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19501 fi
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
19503 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
19504 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = x""yes; then :
19505
19506        HAVECRYPTO="yes"
19507        LIBS="-lcrypto $LIBS"
19508 else
19509
19510        LDFLAGS="$CLEANLDFLAGS"
19511        CPPFLAGS="$CLEANCPPFLAGS"
19512        LIBS="$CLEANLIBS"
19513
19514 fi
19515
19516
19517 fi
19518
19519
19520
19521   if test X"$HAVECRYPTO" = X"yes"; then
19522
19523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
19524 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
19525 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then :
19526   $as_echo_n "(cached) " >&6
19527 else
19528   ac_check_lib_save_LIBS=$LIBS
19529 LIBS="-lssl  $LIBS"
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h.  */
19532
19533
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char SSL_connect ();
19538 int main (void)
19539 {
19540 return SSL_connect ();
19541  ;
19542  return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"; then :
19546   ac_cv_lib_ssl_SSL_connect=yes
19547 else
19548   ac_cv_lib_ssl_SSL_connect=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext \
19551     conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19553 fi
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
19555 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
19556 if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then :
19557   cat >>confdefs.h <<_ACEOF
19558 #define HAVE_LIBSSL 1
19559 _ACEOF
19560
19561   LIBS="-lssl $LIBS"
19562
19563 fi
19564
19565
19566     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
19567                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
19568 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
19569         OLIBS=$LIBS
19570         LIBS="$LIBS -lRSAglue -lrsaref"
19571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
19572 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
19573 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then :
19574   $as_echo_n "(cached) " >&6
19575 else
19576   ac_check_lib_save_LIBS=$LIBS
19577 LIBS="-lssl  $LIBS"
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h.  */
19580
19581
19582 #ifdef __cplusplus
19583 extern "C"
19584 #endif
19585 char SSL_connect ();
19586 int main (void)
19587 {
19588 return SSL_connect ();
19589  ;
19590  return 0;
19591 }
19592 _ACEOF
19593 if ac_fn_c_try_link "$LINENO"; then :
19594   ac_cv_lib_ssl_SSL_connect=yes
19595 else
19596   ac_cv_lib_ssl_SSL_connect=no
19597 fi
19598 rm -f core conftest.err conftest.$ac_objext \
19599     conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19601 fi
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
19603 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
19604 if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then :
19605   cat >>confdefs.h <<_ACEOF
19606 #define HAVE_LIBSSL 1
19607 _ACEOF
19608
19609   LIBS="-lssl $LIBS"
19610
19611 fi
19612
19613         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
19614                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615 $as_echo "no" >&6; }
19616             LIBS=$OLIBS
19617         else
19618             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 $as_echo "yes" >&6; }
19620         fi
19621
19622     else
19623
19624             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
19625                        openssl/pem.h openssl/ssl.h openssl/err.h
19626 do :
19627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19630   cat >>confdefs.h <<_ACEOF
19631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19632 _ACEOF
19633  curl_ssl_msg="enabled (OpenSSL)"
19634         OPENSSL_ENABLED=1
19635
19636 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
19637
19638 fi
19639
19640 done
19641
19642
19643       if test $ac_cv_header_openssl_x509_h = no; then
19644                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
19645 do :
19646   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19649   cat >>confdefs.h <<_ACEOF
19650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19651 _ACEOF
19652
19653 fi
19654
19655 done
19656
19657
19658         if test $ac_cv_header_x509_h = yes &&
19659            test $ac_cv_header_crypto_h = yes &&
19660            test $ac_cv_header_ssl_h = yes; then
19661                     curl_ssl_msg="enabled (OpenSSL)"
19662           OPENSSL_ENABLED=1
19663         fi
19664       fi
19665     fi
19666
19667     if test X"$OPENSSL_ENABLED" = X"1"; then
19668
19669 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
19670
19671
19672               for ac_header in openssl/pkcs12.h
19673 do :
19674   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
19675 if test "x$ac_cv_header_openssl_pkcs12_h" = x""yes; then :
19676   cat >>confdefs.h <<_ACEOF
19677 #define HAVE_OPENSSL_PKCS12_H 1
19678 _ACEOF
19679
19680 fi
19681
19682 done
19683
19684     else
19685        LIBS="$CLEANLIBS"
19686     fi
19687             USE_SSLEAY="$OPENSSL_ENABLED"
19688
19689
19690     if test X"$OPT_SSL" != Xoff &&
19691        test "$OPENSSL_ENABLED" != "1"; then
19692       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
19693     fi
19694   fi
19695
19696   if test X"$OPENSSL_ENABLED" = X"1"; then
19697             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
19698 if test "x$ac_cv_func_ENGINE_init" = x""yes; then :
19699
19700                 for ac_header in openssl/engine.h
19701 do :
19702   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
19703 if test "x$ac_cv_header_openssl_engine_h" = x""yes; then :
19704   cat >>confdefs.h <<_ACEOF
19705 #define HAVE_OPENSSL_ENGINE_H 1
19706 _ACEOF
19707
19708 fi
19709
19710 done
19711
19712                 for ac_func in ENGINE_load_builtin_engines
19713 do :
19714   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19716 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19717   cat >>confdefs.h <<_ACEOF
19718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19719 _ACEOF
19720
19721 fi
19722 done
19723
19724
19725 fi
19726
19727
19728
19729     for ac_func in RAND_status \
19730                     RAND_screen \
19731                     RAND_egd \
19732                     ENGINE_cleanup \
19733                     CRYPTO_cleanup_all_ex_data \
19734                     SSL_get_shutdown
19735 do :
19736   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19739   cat >>confdefs.h <<_ACEOF
19740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19741 _ACEOF
19742
19743 fi
19744 done
19745
19746
19747
19748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
19749 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
19750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h.  */
19752
19753
19754 #include <openssl/ssl.h>
19755
19756 int main (void)
19757 {
19758
19759 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
19760         int dummy = SSL_ERROR_NONE;
19761 #else
19762         Not the yaSSL OpenSSL compatibility header.
19763 #endif
19764
19765  ;
19766  return 0;
19767 }
19768
19769 _ACEOF
19770 if ac_fn_c_try_compile "$LINENO"; then :
19771
19772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19773 $as_echo "yes" >&6; }
19774
19775 cat >>confdefs.h <<_ACEOF
19776 #define USE_YASSLEMUL 1
19777 _ACEOF
19778
19779       curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
19780
19781 else
19782
19783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19784 $as_echo "no" >&6; }
19785
19786 fi
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788   fi
19789
19790   if test "$OPENSSL_ENABLED" = "1"; then
19791     if test -n "$LIB_OPENSSL"; then
19792
19793        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
19794        export LD_LIBRARY_PATH
19795        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
19796 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
19797     fi
19798   fi
19799
19800 fi
19801
19802
19803
19804 _cppflags=$CPPFLAGS
19805 _ldflags=$LDFLAGS
19806
19807 # Check whether --with-zlib was given.
19808 if test "${with_zlib+set}" = set; then :
19809   withval=$with_zlib; OPT_ZLIB="$withval"
19810 fi
19811
19812
19813 if test "$OPT_ZLIB" = "no" ; then
19814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
19815 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
19816 else
19817   if test "$OPT_ZLIB" = "yes" ; then
19818      OPT_ZLIB=""
19819   fi
19820
19821   if test -z "$OPT_ZLIB" ; then
19822
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
19824 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
19825 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
19826   $as_echo_n "(cached) " >&6
19827 else
19828   ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lz  $LIBS"
19830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h.  */
19832
19833
19834 #ifdef __cplusplus
19835 extern "C"
19836 #endif
19837 char inflateEnd ();
19838 int main (void)
19839 {
19840 return inflateEnd ();
19841  ;
19842  return 0;
19843 }
19844 _ACEOF
19845 if ac_fn_c_try_link "$LINENO"; then :
19846   ac_cv_lib_z_inflateEnd=yes
19847 else
19848   ac_cv_lib_z_inflateEnd=no
19849 fi
19850 rm -f core conftest.err conftest.$ac_objext \
19851     conftest$ac_exeext conftest.$ac_ext
19852 LIBS=$ac_check_lib_save_LIBS
19853 fi
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
19855 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
19856 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
19857                      HAVE_LIBZ="1"
19858 else
19859                      OPT_ZLIB="/usr/local"
19860 fi
19861
19862
19863   fi
19864
19865     if test -n "$OPT_ZLIB"; then
19866      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
19867      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
19868   fi
19869
19870   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19871 if test "x$ac_cv_header_zlib_h" = x""yes; then :
19872
19873         HAVE_ZLIB_H="1"
19874         if test "$HAVE_LIBZ" != "1"; then
19875       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
19876 $as_echo_n "checking for gzread in -lz... " >&6; }
19877 if test "${ac_cv_lib_z_gzread+set}" = set; then :
19878   $as_echo_n "(cached) " >&6
19879 else
19880   ac_check_lib_save_LIBS=$LIBS
19881 LIBS="-lz  $LIBS"
19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h.  */
19884
19885
19886 #ifdef __cplusplus
19887 extern "C"
19888 #endif
19889 char gzread ();
19890 int main (void)
19891 {
19892 return gzread ();
19893  ;
19894  return 0;
19895 }
19896 _ACEOF
19897 if ac_fn_c_try_link "$LINENO"; then :
19898   ac_cv_lib_z_gzread=yes
19899 else
19900   ac_cv_lib_z_gzread=no
19901 fi
19902 rm -f core conftest.err conftest.$ac_objext \
19903     conftest$ac_exeext conftest.$ac_ext
19904 LIBS=$ac_check_lib_save_LIBS
19905 fi
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
19907 $as_echo "$ac_cv_lib_z_gzread" >&6; }
19908 if test "x$ac_cv_lib_z_gzread" = x""yes; then :
19909
19910                                       HAVE_LIBZ="1"
19911
19912 else
19913    CPPFLAGS=$_cppflags
19914                    LDFLAGS=$_ldflags
19915 fi
19916
19917     fi
19918
19919 else
19920
19921             CPPFLAGS=$_cppflags
19922       LDFLAGS=$_ldflags
19923
19924 fi
19925
19926
19927
19928   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
19929   then
19930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
19931 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
19932     HAVE_LIBZ=""
19933   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
19934   then
19935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
19936 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
19937   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
19938   then
19939
19940
19941 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
19942
19943
19944 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
19945
19946
19947     CURL_LIBS="$CURL_LIBS -lz"
19948     LIBS="$LIBS -lz"
19949
19950         AMFIXLIB="1"
19951     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
19952 $as_echo "$as_me: found both libz and libz.h header" >&6;}
19953     curl_zlib_msg="enabled"
19954   fi
19955 fi
19956
19957
19958
19959 if test x"$AMFIXLIB" = x1; then
19960   HAVE_LIBZ_TRUE=
19961   HAVE_LIBZ_FALSE='#'
19962 else
19963   HAVE_LIBZ_TRUE='#'
19964   HAVE_LIBZ_FALSE=
19965 fi
19966
19967
19968
19969 if test X"$OPENSSL_ENABLED" = X"1"; then
19970
19971 # Check whether --with-egd-socket was given.
19972 if test "${with_egd_socket+set}" = set; then :
19973   withval=$with_egd_socket;  EGD_SOCKET="$withval"
19974
19975 fi
19976
19977   if test -n "$EGD_SOCKET" ; then
19978
19979 cat >>confdefs.h <<_ACEOF
19980 #define EGD_SOCKET "$EGD_SOCKET"
19981 _ACEOF
19982
19983   fi
19984
19985
19986 # Check whether --with-random was given.
19987 if test "${with_random+set}" = set; then :
19988   withval=$with_random;  RANDOM_FILE="$withval"
19989 else
19990
19991                     as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
19993 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
19994 if eval "test \"\${$as_ac_File+set}\"" = set; then :
19995   $as_echo_n "(cached) " >&6
19996 else
19997   test "$cross_compiling" = yes &&
19998   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19999 if test -r ""/dev/urandom""; then
20000   eval "$as_ac_File=yes"
20001 else
20002   eval "$as_ac_File=no"
20003 fi
20004 fi
20005 eval ac_res=\$$as_ac_File
20006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20007 $as_echo "$ac_res" >&6; }
20008 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20009    RANDOM_FILE="/dev/urandom"
20010 fi
20011
20012
20013
20014 fi
20015
20016   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
20017
20018
20019 cat >>confdefs.h <<_ACEOF
20020 #define RANDOM_FILE "$RANDOM_FILE"
20021 _ACEOF
20022
20023   fi
20024 fi
20025
20026
20027 OPT_GNUTLS=no
20028
20029
20030 # Check whether --with-gnutls was given.
20031 if test "${with_gnutls+set}" = set; then :
20032   withval=$with_gnutls; OPT_GNUTLS=$withval
20033 fi
20034
20035
20036 if test "$OPENSSL_ENABLED" != "1"; then
20037
20038   if test X"$OPT_GNUTLS" != Xno; then
20039
20040     addld=""
20041     if test "x$OPT_GNUTLS" = "xyes"; then
20042
20043
20044     PKGCONFIG="no"
20045
20046     if test x$cross_compiling = xyes; then
20047             # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20048 set dummy ${host}-pkg-config; ac_word=$2
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 $as_echo_n "checking for $ac_word... " >&6; }
20051 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20052   $as_echo_n "(cached) " >&6
20053 else
20054   case $PKGCONFIG in
20055   [\\/]* | ?:[\\/]*)
20056   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20057   ;;
20058   *)
20059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20061 for as_dir in $as_dummy
20062 do
20063   IFS=$as_save_IFS
20064   test -z "$as_dir" && as_dir=.
20065     for ac_exec_ext in '' $ac_executable_extensions; do
20066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20067     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20069     break 2
20070   fi
20071 done
20072   done
20073 IFS=$as_save_IFS
20074
20075   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20076   ;;
20077 esac
20078 fi
20079 PKGCONFIG=$ac_cv_path_PKGCONFIG
20080 if test -n "$PKGCONFIG"; then
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20082 $as_echo "$PKGCONFIG" >&6; }
20083 else
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20086 fi
20087
20088
20089     fi
20090
20091     if test x$PKGCONFIG = xno; then
20092       # Extract the first word of "pkg-config", so it can be a program name with args.
20093 set dummy pkg-config; ac_word=$2
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20095 $as_echo_n "checking for $ac_word... " >&6; }
20096 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20097   $as_echo_n "(cached) " >&6
20098 else
20099   case $PKGCONFIG in
20100   [\\/]* | ?:[\\/]*)
20101   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20102   ;;
20103   *)
20104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20106 for as_dir in $as_dummy
20107 do
20108   IFS=$as_save_IFS
20109   test -z "$as_dir" && as_dir=.
20110     for ac_exec_ext in '' $ac_executable_extensions; do
20111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20112     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20114     break 2
20115   fi
20116 done
20117   done
20118 IFS=$as_save_IFS
20119
20120   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20121   ;;
20122 esac
20123 fi
20124 PKGCONFIG=$ac_cv_path_PKGCONFIG
20125 if test -n "$PKGCONFIG"; then
20126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20127 $as_echo "$PKGCONFIG" >&6; }
20128 else
20129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130 $as_echo "no" >&6; }
20131 fi
20132
20133
20134     fi
20135
20136     if test x$PKGCONFIG != xno; then
20137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
20138 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
20139             itexists=`
20140     if test -n ""; then
20141       PKG_CONFIG_LIBDIR=""
20142       export PKG_CONFIG_LIBDIR
20143     fi
20144          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
20145
20146       if test -z "$itexists"; then
20147                         PKGCONFIG="no"
20148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20150       else
20151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20152 $as_echo "found" >&6; }
20153       fi
20154     fi
20155
20156
20157       if test "$PKGCONFIG" != "no" ; then
20158         addlib=`$PKGCONFIG --libs-only-l gnutls`
20159         addld=`$PKGCONFIG --libs-only-L gnutls`
20160         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
20161         version=`$PKGCONFIG --modversion gnutls`
20162         gtlslib=`echo $addld | $SED -e 's/-L//'`
20163       else
20164                         check=`libgnutls-config --version 2>/dev/null`
20165         if test -n "$check"; then
20166           addlib=`libgnutls-config --libs`
20167           addcflags=`libgnutls-config --cflags`
20168           version=`libgnutls-config --version`
20169           gtlslib=`libgnutls-config --prefix`/lib$libsuff
20170         fi
20171       fi
20172     else
20173                   cfg=$OPT_GNUTLS/bin/libgnutls-config
20174       check=`$cfg --version 2>/dev/null`
20175       if test -n "$check"; then
20176         addlib=`$cfg --libs`
20177         addcflags=`$cfg --cflags`
20178         version=`$cfg --version`
20179         gtlslib=`$cfg --prefix`/lib$libsuff
20180       else
20181                 addlib=-lgnutls
20182         addld=-L$OPT_GNUTLS/lib$libsuff
20183         addcflags=-I$OPT_GNUTLS/include
20184         version="" # we just don't know
20185         gtlslib=$OPT_GNUTLS/lib$libsuff
20186       fi
20187     fi
20188
20189     if test -z "$version"; then
20190             version="unknown"
20191     fi
20192
20193     if test -n "$addlib"; then
20194
20195       CLEANLIBS="$LIBS"
20196       CLEANCPPFLAGS="$CPPFLAGS"
20197       CLEADLDFLAGS="$LDFLAGS"
20198
20199       LIBS="$LIBS $addlib"
20200       LDFLAGS="$LDFLAGS $addld"
20201       if test "$addcflags" != "-I/usr/include"; then
20202          CPPFLAGS="$CPPFLAGS $addcflags"
20203       fi
20204
20205       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
20206 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
20207 if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then :
20208   $as_echo_n "(cached) " >&6
20209 else
20210   ac_check_lib_save_LIBS=$LIBS
20211 LIBS="-lgnutls  $LIBS"
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h.  */
20214
20215
20216 #ifdef __cplusplus
20217 extern "C"
20218 #endif
20219 char gnutls_check_version ();
20220 int main (void)
20221 {
20222 return gnutls_check_version ();
20223  ;
20224  return 0;
20225 }
20226 _ACEOF
20227 if ac_fn_c_try_link "$LINENO"; then :
20228   ac_cv_lib_gnutls_gnutls_check_version=yes
20229 else
20230   ac_cv_lib_gnutls_gnutls_check_version=no
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext \
20233     conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20235 fi
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
20237 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
20238 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = x""yes; then :
20239
20240
20241 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
20242
20243        USE_GNUTLS=1
20244
20245        GNUTLS_ENABLED=1
20246        USE_GNUTLS="yes"
20247        curl_ssl_msg="enabled (GnuTLS)"
20248
20249 else
20250
20251          LIBS="$CLEANLIBS"
20252          CPPFLAGS="$CLEANCPPFLAGS"
20253
20254 fi
20255
20256
20257       if test "x$USE_GNUTLS" = "xyes"; then
20258         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
20259 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
20260
20261         if test -n "$gtlslib"; then
20262
20263           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
20264           export LD_LIBRARY_PATH
20265           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
20266 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
20267         fi
20268       fi
20269
20270     fi
20271
20272   fi
20273 fi
20274
20275 if test "$GNUTLS_ENABLED" = "1"; then
20276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
20277 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
20278 if test "${ac_cv_lib_gcrypt_gcry_control+set}" = set; then :
20279   $as_echo_n "(cached) " >&6
20280 else
20281   ac_check_lib_save_LIBS=$LIBS
20282 LIBS="-lgcrypt  $LIBS"
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285
20286
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char gcry_control ();
20291 int main (void)
20292 {
20293 return gcry_control ();
20294  ;
20295  return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_c_try_link "$LINENO"; then :
20299   ac_cv_lib_gcrypt_gcry_control=yes
20300 else
20301   ac_cv_lib_gcrypt_gcry_control=no
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext \
20304     conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20306 fi
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
20308 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
20309 if test "x$ac_cv_lib_gcrypt_gcry_control" = x""yes; then :
20310   cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LIBGCRYPT 1
20312 _ACEOF
20313
20314   LIBS="-lgcrypt $LIBS"
20315
20316 else
20317
20318       as_fn_error $? "need GnuTLS built with gcrypt to function with GnuTLS" "$LINENO" 5
20319
20320 fi
20321
20322 fi
20323
20324
20325 OPT_POLARSSL=no
20326
20327 _cppflags=$CPPFLAGS
20328 _ldflags=$LDFLAGS
20329
20330 # Check whether --with-polarssl was given.
20331 if test "${with_polarssl+set}" = set; then :
20332   withval=$with_polarssl; OPT_POLARSSL=$withval
20333 fi
20334
20335
20336 if test "$OPENSSL_ENABLED" != "1"; then
20337
20338   if test X"$OPT_POLARSSL" != Xno; then
20339
20340     if test "$OPT_POLARSSL" = "yes"; then
20341       OPT_POLARSSL=""
20342     fi
20343
20344     if test -z "$OPT_POLARSSL" ; then
20345
20346       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
20347 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
20348 if test "${ac_cv_lib_polarssl_havege_init+set}" = set; then :
20349   $as_echo_n "(cached) " >&6
20350 else
20351   ac_check_lib_save_LIBS=$LIBS
20352 LIBS="-lpolarssl  $LIBS"
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h.  */
20355
20356
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 char havege_init ();
20361 int main (void)
20362 {
20363 return havege_init ();
20364  ;
20365  return 0;
20366 }
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369   ac_cv_lib_polarssl_havege_init=yes
20370 else
20371   ac_cv_lib_polarssl_havege_init=no
20372 fi
20373 rm -f core conftest.err conftest.$ac_objext \
20374     conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20376 fi
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
20378 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
20379 if test "x$ac_cv_lib_polarssl_havege_init" = x""yes; then :
20380
20381
20382 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
20383
20384          USE_POLARSSL=1
20385
20386          POLARSSL_ENABLED=1
20387          USE_POLARSSL="yes"
20388          curl_ssl_msg="enabled (PolarSSL)"
20389
20390 fi
20391
20392     fi
20393
20394     if test "x$USE_POLARSSL" != "xyes"; then
20395             addld=-L$OPT_POLARSSL/lib$libsuff
20396       addcflags=-I$OPT_POLARSSL/include
20397       polarssllib=$OPT_POLARSSL/lib$libsuff
20398
20399       LDFLAGS="$LDFLAGS $addld"
20400       if test "$addcflags" != "-I/usr/include"; then
20401          CPPFLAGS="$CPPFLAGS $addcflags"
20402       fi
20403
20404       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
20405 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
20406 if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
20407   $as_echo_n "(cached) " >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lpolarssl  $LIBS"
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h.  */
20413
20414
20415 #ifdef __cplusplus
20416 extern "C"
20417 #endif
20418 char ssl_init ();
20419 int main (void)
20420 {
20421 return ssl_init ();
20422  ;
20423  return 0;
20424 }
20425 _ACEOF
20426 if ac_fn_c_try_link "$LINENO"; then :
20427   ac_cv_lib_polarssl_ssl_init=yes
20428 else
20429   ac_cv_lib_polarssl_ssl_init=no
20430 fi
20431 rm -f core conftest.err conftest.$ac_objext \
20432     conftest$ac_exeext conftest.$ac_ext
20433 LIBS=$ac_check_lib_save_LIBS
20434 fi
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
20436 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
20437 if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then :
20438
20439
20440 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
20441
20442        USE_POLARSSL=1
20443
20444        POLARSSL_ENABLED=1
20445        USE_POLARSSL="yes"
20446        curl_ssl_msg="enabled (PolarSSL)"
20447
20448 else
20449
20450          CPPFLAGS=$_cppflags
20451          LDFLAGS=$_ldflags
20452
20453 fi
20454
20455     fi
20456
20457     if test "x$USE_POLARSSL" = "xyes"; then
20458       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
20459 $as_echo "$as_me: detected PolarSSL" >&6;}
20460
20461       CURL_LIBS="$CURL_LIBS -lpolarssl"
20462       LIBS="$LIBS -lpolarssl"
20463
20464       if test -n "$polarssllib"; then
20465
20466         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
20467         export LD_LIBRARY_PATH
20468         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
20469 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
20470       fi
20471
20472     fi
20473
20474   fi
20475 fi
20476
20477 OPT_NSS=no
20478
20479
20480 # Check whether --with-nss was given.
20481 if test "${with_nss+set}" = set; then :
20482   withval=$with_nss; OPT_NSS=$withval
20483 fi
20484
20485
20486 if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
20487
20488   if test X"$OPT_NSS" != Xno; then
20489     if test "x$OPT_NSS" = "xyes"; then
20490
20491
20492
20493     PKGCONFIG="no"
20494
20495     if test x$cross_compiling = xyes; then
20496             # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20497 set dummy ${host}-pkg-config; ac_word=$2
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499 $as_echo_n "checking for $ac_word... " >&6; }
20500 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20501   $as_echo_n "(cached) " >&6
20502 else
20503   case $PKGCONFIG in
20504   [\\/]* | ?:[\\/]*)
20505   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20506   ;;
20507   *)
20508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20509 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20510 for as_dir in $as_dummy
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514     for ac_exec_ext in '' $ac_executable_extensions; do
20515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521   done
20522 IFS=$as_save_IFS
20523
20524   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20525   ;;
20526 esac
20527 fi
20528 PKGCONFIG=$ac_cv_path_PKGCONFIG
20529 if test -n "$PKGCONFIG"; then
20530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20531 $as_echo "$PKGCONFIG" >&6; }
20532 else
20533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535 fi
20536
20537
20538     fi
20539
20540     if test x$PKGCONFIG = xno; then
20541       # Extract the first word of "pkg-config", so it can be a program name with args.
20542 set dummy pkg-config; ac_word=$2
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20544 $as_echo_n "checking for $ac_word... " >&6; }
20545 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20546   $as_echo_n "(cached) " >&6
20547 else
20548   case $PKGCONFIG in
20549   [\\/]* | ?:[\\/]*)
20550   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20551   ;;
20552   *)
20553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20554 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20555 for as_dir in $as_dummy
20556 do
20557   IFS=$as_save_IFS
20558   test -z "$as_dir" && as_dir=.
20559     for ac_exec_ext in '' $ac_executable_extensions; do
20560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20561     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20563     break 2
20564   fi
20565 done
20566   done
20567 IFS=$as_save_IFS
20568
20569   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20570   ;;
20571 esac
20572 fi
20573 PKGCONFIG=$ac_cv_path_PKGCONFIG
20574 if test -n "$PKGCONFIG"; then
20575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20576 $as_echo "$PKGCONFIG" >&6; }
20577 else
20578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20579 $as_echo "no" >&6; }
20580 fi
20581
20582
20583     fi
20584
20585     if test x$PKGCONFIG != xno; then
20586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
20587 $as_echo_n "checking for nss options with pkg-config... " >&6; }
20588             itexists=`
20589     if test -n ""; then
20590       PKG_CONFIG_LIBDIR=""
20591       export PKG_CONFIG_LIBDIR
20592     fi
20593          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
20594
20595       if test -z "$itexists"; then
20596                         PKGCONFIG="no"
20597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598 $as_echo "no" >&6; }
20599       else
20600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20601 $as_echo "found" >&6; }
20602       fi
20603     fi
20604
20605
20606       if test "$PKGCONFIG" != "no" ; then
20607         addlib=`$PKGCONFIG --libs nss`
20608         addcflags=`$PKGCONFIG --cflags nss`
20609         version=`$PKGCONFIG --modversion nss`
20610         nssprefix=`$PKGCONFIG --variable=prefix nss`
20611       else
20612
20613         check=`nss-config --version 2>/dev/null`
20614         if test -n "$check"; then
20615           addlib=`nss-config --libs`
20616           addcflags=`nss-config --cflags`
20617           version=`nss-config --version`
20618           nssprefix=`nss-config --prefix`
20619         else
20620           addlib="-lnss3"
20621           addcflags=""
20622           version="unknown"
20623         fi
20624       fi
20625     else
20626         # Without pkg-config, we'll kludge in some defaults
20627         addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
20628         addcflags="-I$OPT_NSS/include"
20629         version="unknown"
20630         nssprefix=$OPT_NSS
20631     fi
20632
20633             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
20634 $as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; }
20635 if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then :
20636   $as_echo_n "(cached) " >&6
20637 else
20638   ac_check_lib_save_LIBS=$LIBS
20639 LIBS="-lnss3  $LIBS"
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642
20643
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char PK11_CreateGenericObject ();
20648 int main (void)
20649 {
20650 return PK11_CreateGenericObject ();
20651  ;
20652  return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_link "$LINENO"; then :
20656   ac_cv_lib_nss3_PK11_CreateGenericObject=yes
20657 else
20658   ac_cv_lib_nss3_PK11_CreateGenericObject=no
20659 fi
20660 rm -f core conftest.err conftest.$ac_objext \
20661     conftest$ac_exeext conftest.$ac_ext
20662 LIBS=$ac_check_lib_save_LIBS
20663 fi
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
20665 $as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
20666 if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = x""yes; then :
20667
20668
20669 $as_echo "#define HAVE_PK11_CREATEGENERICOBJECT 1" >>confdefs.h
20670
20671      HAVE_PK11_CREATEGENERICOBJECT=1
20672
20673
20674 fi
20675
20676     if test -n "$addlib"; then
20677
20678       CLEANLIBS="$LIBS"
20679       CLEANCPPFLAGS="$CPPFLAGS"
20680
20681       LIBS="$LIBS $addlib"
20682       if test "$addcflags" != "-I/usr/include"; then
20683          CPPFLAGS="$CPPFLAGS $addcflags"
20684       fi
20685
20686       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
20687 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
20688 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
20689   $as_echo_n "(cached) " >&6
20690 else
20691   ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-lnss3  $LIBS"
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h.  */
20695
20696
20697 #ifdef __cplusplus
20698 extern "C"
20699 #endif
20700 char NSS_Initialize ();
20701 int main (void)
20702 {
20703 return NSS_Initialize ();
20704  ;
20705  return 0;
20706 }
20707 _ACEOF
20708 if ac_fn_c_try_link "$LINENO"; then :
20709   ac_cv_lib_nss3_NSS_Initialize=yes
20710 else
20711   ac_cv_lib_nss3_NSS_Initialize=no
20712 fi
20713 rm -f core conftest.err conftest.$ac_objext \
20714     conftest$ac_exeext conftest.$ac_ext
20715 LIBS=$ac_check_lib_save_LIBS
20716 fi
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20718 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20719 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
20720
20721
20722 $as_echo "#define USE_NSS 1" >>confdefs.h
20723
20724        USE_NSS=1
20725
20726        USE_NSS="yes"
20727        NSS_ENABLED=1
20728        curl_ssl_msg="enabled (NSS)"
20729
20730 else
20731
20732          LIBS="$CLEANLIBS"
20733          CPPFLAGS="$CLEANCPPFLAGS"
20734
20735 fi
20736
20737
20738       if test "x$USE_NSS" = "xyes"; then
20739         { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
20740 $as_echo "$as_me: detected NSS version $version" >&6;}
20741
20742
20743         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
20744         export LD_LIBRARY_PATH
20745         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
20746 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
20747       fi
20748
20749     fi
20750
20751   fi
20752 fi
20753 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED" = "x"; then
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
20755 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
20756   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&5
20757 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&2;}
20758 else
20759   # SSL is enabled, genericly
20760
20761   SSL_ENABLED="1"
20762 fi
20763
20764
20765
20766
20767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
20768 $as_echo_n "checking default CA cert bundle/path... " >&6; }
20769
20770
20771 # Check whether --with-ca-bundle was given.
20772 if test "${with_ca_bundle+set}" = set; then :
20773   withval=$with_ca_bundle;
20774     want_ca="$withval"
20775     if test "x$want_ca" = "xyes"; then
20776       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
20777     fi
20778
20779 else
20780    want_ca="unset"
20781 fi
20782
20783
20784 # Check whether --with-ca-path was given.
20785 if test "${with_ca_path+set}" = set; then :
20786   withval=$with_ca_path;
20787     want_capath="$withval"
20788     if test "x$want_capath" = "xyes"; then
20789       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
20790     fi
20791
20792 else
20793    want_capath="unset"
20794 fi
20795
20796
20797   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
20798           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
20799         as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
20800   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
20801         ca="$want_ca"
20802     capath="no"
20803   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
20804         if test "x$OPENSSL_ENABLED" != "x1"; then
20805       as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
20806     fi
20807     capath="$want_capath"
20808     ca="no"
20809   else
20810                 ca="no"
20811     capath="no"
20812     if test "x$want_ca" = "xunset"; then
20813                         if test "x$prefix" != xNONE; then
20814         cac="${prefix}/share/curl/curl-ca-bundle.crt"
20815       else
20816         cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
20817       fi
20818
20819       for a in /etc/ssl/certs/ca-certificates.crt \
20820                /etc/pki/tls/certs/ca-bundle.crt \
20821                /usr/share/ssl/certs/ca-bundle.crt \
20822                /usr/local/share/certs/ca-root.crt \
20823                /etc/ssl/cert.pem \
20824                "$cac"; do
20825         if test -f "$a"; then
20826           ca="$a"
20827           break
20828         fi
20829       done
20830     fi
20831     if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
20832             "x$OPENSSL_ENABLED" = "x1"; then
20833       for a in /etc/ssl/certs/; do
20834         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
20835           capath="$a"
20836           break
20837         fi
20838       done
20839     fi
20840   fi
20841
20842
20843
20844   if test "x$ca" != "xno"; then
20845     CURL_CA_BUNDLE='"'$ca'"'
20846
20847 cat >>confdefs.h <<_ACEOF
20848 #define CURL_CA_BUNDLE "$ca"
20849 _ACEOF
20850
20851
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
20853 $as_echo "$ca" >&6; }
20854   elif test "x$capath" != "xno"; then
20855     CURL_CA_PATH="\"$capath\""
20856
20857 cat >>confdefs.h <<_ACEOF
20858 #define CURL_CA_PATH "$capath"
20859 _ACEOF
20860
20861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
20862 $as_echo "$capath (capath)" >&6; }
20863   else
20864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20865 $as_echo "no" >&6; }
20866   fi
20867
20868
20869
20870 OPT_LIBSSH2=off
20871
20872 # Check whether --with-libssh2 was given.
20873 if test "${with_libssh2+set}" = set; then :
20874   withval=$with_libssh2; OPT_LIBSSH2=$withval
20875 fi
20876
20877
20878 if test X"$OPT_LIBSSH2" != Xno; then
20879     CLEANLDFLAGS="$LDFLAGS"
20880   CLEANCPPFLAGS="$CPPFLAGS"
20881   CLEANLIBS="$LIBS"
20882
20883   case "$OPT_LIBSSH2" in
20884   yes)
20885
20886
20887     PKGCONFIG="no"
20888
20889     if test x$cross_compiling = xyes; then
20890             # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20891 set dummy ${host}-pkg-config; ac_word=$2
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20893 $as_echo_n "checking for $ac_word... " >&6; }
20894 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20895   $as_echo_n "(cached) " >&6
20896 else
20897   case $PKGCONFIG in
20898   [\\/]* | ?:[\\/]*)
20899   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20900   ;;
20901   *)
20902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20903 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20904 for as_dir in $as_dummy
20905 do
20906   IFS=$as_save_IFS
20907   test -z "$as_dir" && as_dir=.
20908     for ac_exec_ext in '' $ac_executable_extensions; do
20909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20910     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20912     break 2
20913   fi
20914 done
20915   done
20916 IFS=$as_save_IFS
20917
20918   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20919   ;;
20920 esac
20921 fi
20922 PKGCONFIG=$ac_cv_path_PKGCONFIG
20923 if test -n "$PKGCONFIG"; then
20924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20925 $as_echo "$PKGCONFIG" >&6; }
20926 else
20927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20929 fi
20930
20931
20932     fi
20933
20934     if test x$PKGCONFIG = xno; then
20935       # Extract the first word of "pkg-config", so it can be a program name with args.
20936 set dummy pkg-config; ac_word=$2
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20938 $as_echo_n "checking for $ac_word... " >&6; }
20939 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20940   $as_echo_n "(cached) " >&6
20941 else
20942   case $PKGCONFIG in
20943   [\\/]* | ?:[\\/]*)
20944   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20945   ;;
20946   *)
20947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20949 for as_dir in $as_dummy
20950 do
20951   IFS=$as_save_IFS
20952   test -z "$as_dir" && as_dir=.
20953     for ac_exec_ext in '' $ac_executable_extensions; do
20954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20955     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20957     break 2
20958   fi
20959 done
20960   done
20961 IFS=$as_save_IFS
20962
20963   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20964   ;;
20965 esac
20966 fi
20967 PKGCONFIG=$ac_cv_path_PKGCONFIG
20968 if test -n "$PKGCONFIG"; then
20969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20970 $as_echo "$PKGCONFIG" >&6; }
20971 else
20972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20973 $as_echo "no" >&6; }
20974 fi
20975
20976
20977     fi
20978
20979     if test x$PKGCONFIG != xno; then
20980       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
20981 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
20982             itexists=`
20983     if test -n ""; then
20984       PKG_CONFIG_LIBDIR=""
20985       export PKG_CONFIG_LIBDIR
20986     fi
20987          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
20988
20989       if test -z "$itexists"; then
20990                         PKGCONFIG="no"
20991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20992 $as_echo "no" >&6; }
20993       else
20994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20995 $as_echo "found" >&6; }
20996       fi
20997     fi
20998
20999
21000     if test "$PKGCONFIG" != "no" ; then
21001       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
21002       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
21003       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
21004       version=`$PKGCONFIG --modversion libssh2`
21005       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
21006     fi
21007
21008     ;;
21009   off)
21010         ;;
21011   *)
21012         PREFIX_SSH2=$OPT_LIBSSH2
21013     ;;
21014   esac
21015
21016     if test -n "$PREFIX_SSH2"; then
21017     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
21018     CPP_SSH2=-I${PREFIX_SSH2}/include
21019     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
21020   fi
21021
21022   LDFLAGS="$LDFLAGS $LD_SSH2"
21023   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
21024   LIBS="$LIBS $LIB_SSH2"
21025
21026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
21027 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
21028 if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then :
21029   $as_echo_n "(cached) " >&6
21030 else
21031   ac_check_lib_save_LIBS=$LIBS
21032 LIBS="-lssh2  $LIBS"
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h.  */
21035
21036
21037 #ifdef __cplusplus
21038 extern "C"
21039 #endif
21040 char libssh2_channel_open_ex ();
21041 int main (void)
21042 {
21043 return libssh2_channel_open_ex ();
21044  ;
21045  return 0;
21046 }
21047 _ACEOF
21048 if ac_fn_c_try_link "$LINENO"; then :
21049   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
21050 else
21051   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
21052 fi
21053 rm -f core conftest.err conftest.$ac_objext \
21054     conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21056 fi
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
21058 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
21059 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = x""yes; then :
21060   cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBSSH2 1
21062 _ACEOF
21063
21064   LIBS="-lssh2 $LIBS"
21065
21066 fi
21067
21068
21069   for ac_header in libssh2.h
21070 do :
21071   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
21072 if test "x$ac_cv_header_libssh2_h" = x""yes; then :
21073   cat >>confdefs.h <<_ACEOF
21074 #define HAVE_LIBSSH2_H 1
21075 _ACEOF
21076  curl_ssh_msg="enabled (libSSH2)"
21077     LIBSSH2_ENABLED=1
21078
21079 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
21080
21081     USE_LIBSSH2=1
21082
21083
21084 fi
21085
21086 done
21087
21088
21089   if test X"$OPT_LIBSSH2" != Xoff &&
21090      test "$LIBSSH2_ENABLED" != "1"; then
21091     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
21092   fi
21093
21094   if test "$LIBSSH2_ENABLED" = "1"; then
21095     if test -n "$DIR_SSH2"; then
21096
21097                                    for ac_func in libssh2_version libssh2_init libssh2_exit \
21098                        libssh2_scp_send64 libssh2_session_handshake
21099 do :
21100   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21103   cat >>confdefs.h <<_ACEOF
21104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21105 _ACEOF
21106
21107 fi
21108 done
21109
21110
21111        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
21112        export LD_LIBRARY_PATH
21113        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
21114 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
21115     fi
21116   else
21117         LDFLAGS=$CLEANLDFLAGS
21118     CPPFLAGS=$CLEANCPPFLAGS
21119     LIBS=$CLEANLIBS
21120   fi
21121 fi
21122
21123
21124 OPT_LIBRTMP=off
21125
21126 # Check whether --with-librtmp was given.
21127 if test "${with_librtmp+set}" = set; then :
21128   withval=$with_librtmp; OPT_LIBRTMP=$withval
21129 fi
21130
21131
21132 if test X"$OPT_LIBRTMP" != Xno; then
21133     CLEANLDFLAGS="$LDFLAGS"
21134   CLEANCPPFLAGS="$CPPFLAGS"
21135   CLEANLIBS="$LIBS"
21136
21137   case "$OPT_LIBRTMP" in
21138   yes)
21139
21140
21141     PKGCONFIG="no"
21142
21143     if test x$cross_compiling = xyes; then
21144             # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
21145 set dummy ${host}-pkg-config; ac_word=$2
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21147 $as_echo_n "checking for $ac_word... " >&6; }
21148 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21149   $as_echo_n "(cached) " >&6
21150 else
21151   case $PKGCONFIG in
21152   [\\/]* | ?:[\\/]*)
21153   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21154   ;;
21155   *)
21156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21158 for as_dir in $as_dummy
21159 do
21160   IFS=$as_save_IFS
21161   test -z "$as_dir" && as_dir=.
21162     for ac_exec_ext in '' $ac_executable_extensions; do
21163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21164     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21166     break 2
21167   fi
21168 done
21169   done
21170 IFS=$as_save_IFS
21171
21172   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21173   ;;
21174 esac
21175 fi
21176 PKGCONFIG=$ac_cv_path_PKGCONFIG
21177 if test -n "$PKGCONFIG"; then
21178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21179 $as_echo "$PKGCONFIG" >&6; }
21180 else
21181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21182 $as_echo "no" >&6; }
21183 fi
21184
21185
21186     fi
21187
21188     if test x$PKGCONFIG = xno; then
21189       # Extract the first word of "pkg-config", so it can be a program name with args.
21190 set dummy pkg-config; ac_word=$2
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21192 $as_echo_n "checking for $ac_word... " >&6; }
21193 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21194   $as_echo_n "(cached) " >&6
21195 else
21196   case $PKGCONFIG in
21197   [\\/]* | ?:[\\/]*)
21198   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21199   ;;
21200   *)
21201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21203 for as_dir in $as_dummy
21204 do
21205   IFS=$as_save_IFS
21206   test -z "$as_dir" && as_dir=.
21207     for ac_exec_ext in '' $ac_executable_extensions; do
21208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21209     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21211     break 2
21212   fi
21213 done
21214   done
21215 IFS=$as_save_IFS
21216
21217   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21218   ;;
21219 esac
21220 fi
21221 PKGCONFIG=$ac_cv_path_PKGCONFIG
21222 if test -n "$PKGCONFIG"; then
21223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21224 $as_echo "$PKGCONFIG" >&6; }
21225 else
21226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21227 $as_echo "no" >&6; }
21228 fi
21229
21230
21231     fi
21232
21233     if test x$PKGCONFIG != xno; then
21234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
21235 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
21236             itexists=`
21237     if test -n ""; then
21238       PKG_CONFIG_LIBDIR=""
21239       export PKG_CONFIG_LIBDIR
21240     fi
21241          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
21242
21243       if test -z "$itexists"; then
21244                         PKGCONFIG="no"
21245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21246 $as_echo "no" >&6; }
21247       else
21248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21249 $as_echo "found" >&6; }
21250       fi
21251     fi
21252
21253
21254     if test "$PKGCONFIG" != "no" ; then
21255       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
21256       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
21257       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
21258       version=`$PKGCONFIG --modversion librtmp`
21259       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
21260     else
21261                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
21262     fi
21263
21264     ;;
21265   off)
21266         LIB_RTMP="-lrtmp"
21267     ;;
21268   *)
21269         PREFIX_RTMP=$OPT_LIBRTMP
21270     ;;
21271   esac
21272
21273     if test -n "$PREFIX_RTMP"; then
21274     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
21275     CPP_RTMP=-I${PREFIX_RTMP}/include
21276     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
21277   fi
21278
21279   LDFLAGS="$LDFLAGS $LD_RTMP"
21280   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
21281   LIBS="$LIBS $LIB_RTMP"
21282
21283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
21284 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
21285 if test "${ac_cv_lib_rtmp_RTMP_Init+set}" = set; then :
21286   $as_echo_n "(cached) " >&6
21287 else
21288   ac_check_lib_save_LIBS=$LIBS
21289 LIBS="-lrtmp  $LIBS"
21290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21291 /* end confdefs.h.  */
21292
21293
21294 #ifdef __cplusplus
21295 extern "C"
21296 #endif
21297 char RTMP_Init ();
21298 int main (void)
21299 {
21300 return RTMP_Init ();
21301  ;
21302  return 0;
21303 }
21304 _ACEOF
21305 if ac_fn_c_try_link "$LINENO"; then :
21306   ac_cv_lib_rtmp_RTMP_Init=yes
21307 else
21308   ac_cv_lib_rtmp_RTMP_Init=no
21309 fi
21310 rm -f core conftest.err conftest.$ac_objext \
21311     conftest$ac_exeext conftest.$ac_ext
21312 LIBS=$ac_check_lib_save_LIBS
21313 fi
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
21315 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
21316 if test "x$ac_cv_lib_rtmp_RTMP_Init" = x""yes; then :
21317
21318      for ac_header in librtmp/rtmp.h
21319 do :
21320   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
21321 if test "x$ac_cv_header_librtmp_rtmp_h" = x""yes; then :
21322   cat >>confdefs.h <<_ACEOF
21323 #define HAVE_LIBRTMP_RTMP_H 1
21324 _ACEOF
21325  curl_rtmp_msg="enabled (librtmp)"
21326         LIBRTMP_ENABLED=1
21327
21328 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
21329
21330         USE_LIBRTMP=1
21331
21332
21333 fi
21334
21335 done
21336
21337
21338 else
21339         LDFLAGS=$CLEANLDFLAGS
21340       CPPFLAGS=$CLEANCPPFLAGS
21341       LIBS=$CLEANLIBS
21342
21343 fi
21344
21345
21346   if test X"$OPT_LIBRTMP" != Xoff &&
21347      test "$LIBRTMP_ENABLED" != "1"; then
21348     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
21349   fi
21350
21351 fi
21352
21353
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
21355 $as_echo_n "checking whether to build with libidn... " >&6; }
21356
21357 # Check whether --with-libidn was given.
21358 if test "${with_libidn+set}" = set; then :
21359   withval=$with_libidn; LIBIDN="$withval"
21360 fi
21361
21362
21363 case "$LIBIDN" in
21364   no)
21365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366 $as_echo "no" >&6; }
21367        ;;
21368   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21369 $as_echo "yes" >&6; }
21370
21371        idn=""
21372               if test -n "$LIBIDN"; then
21373          if test "x$LIBIDN" != "xyes"; then
21374             oldLDFLAGS=$LDFLAGS
21375             oldCPPFLAGS=$CPPFLAGS
21376             LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
21377             CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
21378             idn="yes"
21379             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_4i in -lidn" >&5
21380 $as_echo_n "checking for idna_to_ascii_4i in -lidn... " >&6; }
21381 if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then :
21382   $as_echo_n "(cached) " >&6
21383 else
21384   ac_check_lib_save_LIBS=$LIBS
21385 LIBS="-lidn  $LIBS"
21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h.  */
21388
21389
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 char idna_to_ascii_4i ();
21394 int main (void)
21395 {
21396 return idna_to_ascii_4i ();
21397  ;
21398  return 0;
21399 }
21400 _ACEOF
21401 if ac_fn_c_try_link "$LINENO"; then :
21402   ac_cv_lib_idn_idna_to_ascii_4i=yes
21403 else
21404   ac_cv_lib_idn_idna_to_ascii_4i=no
21405 fi
21406 rm -f core conftest.err conftest.$ac_objext \
21407     conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21409 fi
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5
21411 $as_echo "$ac_cv_lib_idn_idna_to_ascii_4i" >&6; }
21412 if test "x$ac_cv_lib_idn_idna_to_ascii_4i" = x""yes; then :
21413   cat >>confdefs.h <<_ACEOF
21414 #define HAVE_LIBIDN 1
21415 _ACEOF
21416
21417   LIBS="-lidn $LIBS"
21418
21419 else
21420   idn=""
21421                          LDFLAGS=$oldLDFLAGS
21422                          CPPFLAGS=$oldCPPFLAGS
21423 fi
21424
21425          fi
21426        fi
21427
21428        if test "x$idn" != "xyes"; then
21429                     idn="yes"
21430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_lz in -lidn" >&5
21431 $as_echo_n "checking for idna_to_ascii_lz in -lidn... " >&6; }
21432 if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then :
21433   $as_echo_n "(cached) " >&6
21434 else
21435   ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lidn  $LIBS"
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h.  */
21439
21440
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char idna_to_ascii_lz ();
21445 int main (void)
21446 {
21447 return idna_to_ascii_lz ();
21448  ;
21449  return 0;
21450 }
21451 _ACEOF
21452 if ac_fn_c_try_link "$LINENO"; then :
21453   ac_cv_lib_idn_idna_to_ascii_lz=yes
21454 else
21455   ac_cv_lib_idn_idna_to_ascii_lz=no
21456 fi
21457 rm -f core conftest.err conftest.$ac_objext \
21458     conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21460 fi
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5
21462 $as_echo "$ac_cv_lib_idn_idna_to_ascii_lz" >&6; }
21463 if test "x$ac_cv_lib_idn_idna_to_ascii_lz" = x""yes; then :
21464   cat >>confdefs.h <<_ACEOF
21465 #define HAVE_LIBIDN 1
21466 _ACEOF
21467
21468   LIBS="-lidn $LIBS"
21469
21470 else
21471   idn=""
21472 fi
21473
21474        fi
21475
21476        if test "x$idn" = "xyes"; then
21477          curl_idn_msg="enabled"
21478          IDN_ENABLED=1
21479
21480                   for ac_func in idn_free idna_strerror tld_strerror
21481 do :
21482   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21485   cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21487 _ACEOF
21488
21489 fi
21490 done
21491
21492          for ac_header in idn-free.h tld.h
21493 do :
21494   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21495 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21497   cat >>confdefs.h <<_ACEOF
21498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21499 _ACEOF
21500
21501 fi
21502
21503 done
21504
21505        fi
21506
21507        ;;
21508 esac
21509
21510
21511
21512
21513
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21515 $as_echo_n "checking for ANSI C header files... " >&6; }
21516 if test "${ac_cv_header_stdc+set}" = set; then :
21517   $as_echo_n "(cached) " >&6
21518 else
21519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520 /* end confdefs.h.  */
21521 #include <stdlib.h>
21522 #include <stdarg.h>
21523 #include <string.h>
21524 #include <float.h>
21525
21526 int main (void)
21527 {
21528
21529  ;
21530  return 0;
21531 }
21532 _ACEOF
21533 if ac_fn_c_try_compile "$LINENO"; then :
21534   ac_cv_header_stdc=yes
21535 else
21536   ac_cv_header_stdc=no
21537 fi
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539
21540 if test $ac_cv_header_stdc = yes; then
21541   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h.  */
21544 #include <string.h>
21545
21546 _ACEOF
21547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21548   $EGREP "memchr" >/dev/null 2>&1; then :
21549
21550 else
21551   ac_cv_header_stdc=no
21552 fi
21553 rm -f conftest*
21554
21555 fi
21556
21557 if test $ac_cv_header_stdc = yes; then
21558   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h.  */
21561 #include <stdlib.h>
21562
21563 _ACEOF
21564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21565   $EGREP "free" >/dev/null 2>&1; then :
21566
21567 else
21568   ac_cv_header_stdc=no
21569 fi
21570 rm -f conftest*
21571
21572 fi
21573
21574 if test $ac_cv_header_stdc = yes; then
21575   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21576   if test "$cross_compiling" = yes; then :
21577   :
21578 else
21579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h.  */
21581 #include <ctype.h>
21582 #include <stdlib.h>
21583 #if ((' ' & 0x0FF) == 0x020)
21584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21586 #else
21587 # define ISLOWER(c) \
21588                    (('a' <= (c) && (c) <= 'i') \
21589                      || ('j' <= (c) && (c) <= 'r') \
21590                      || ('s' <= (c) && (c) <= 'z'))
21591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21592 #endif
21593
21594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21595 int
21596 main ()
21597 {
21598   int i;
21599   for (i = 0; i < 256; i++)
21600     if (XOR (islower (i), ISLOWER (i))
21601         || toupper (i) != TOUPPER (i))
21602       return 2;
21603   return 0;
21604 }
21605 _ACEOF
21606 if ac_fn_c_try_run "$LINENO"; then :
21607
21608 else
21609   ac_cv_header_stdc=no
21610 fi
21611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21612   conftest.$ac_objext conftest.beam conftest.$ac_ext
21613 fi
21614
21615 fi
21616 fi
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21618 $as_echo "$ac_cv_header_stdc" >&6; }
21619 if test $ac_cv_header_stdc = yes; then
21620
21621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21622
21623 fi
21624
21625
21626
21627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
21628 $as_echo_n "checking for malloc.h... " >&6; }
21629 if test "${ac_cv_header_malloc_h+set}" = set; then :
21630   $as_echo_n "(cached) " >&6
21631 else
21632
21633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634 /* end confdefs.h.  */
21635
21636
21637 #include <malloc.h>
21638
21639 int main (void)
21640 {
21641
21642         void *p = malloc(10);
21643         void *q = calloc(10,10);
21644         free(p);
21645         free(q);
21646
21647  ;
21648  return 0;
21649 }
21650
21651 _ACEOF
21652 if ac_fn_c_try_compile "$LINENO"; then :
21653
21654       ac_cv_header_malloc_h="yes"
21655
21656 else
21657
21658       ac_cv_header_malloc_h="no"
21659
21660 fi
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662
21663 fi
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
21665 $as_echo "$ac_cv_header_malloc_h" >&6; }
21666   if test "$ac_cv_header_malloc_h" = "yes"; then
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define HAVE_MALLOC_H 1
21670 _ACEOF
21671
21672     #
21673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h.  */
21675
21676
21677 #include <stdlib.h>
21678
21679 int main (void)
21680 {
21681
21682         void *p = malloc(10);
21683         void *q = calloc(10,10);
21684         free(p);
21685         free(q);
21686
21687  ;
21688  return 0;
21689 }
21690
21691 _ACEOF
21692 if ac_fn_c_try_compile "$LINENO"; then :
21693
21694       curl_cv_need_header_malloc_h="no"
21695
21696 else
21697
21698       curl_cv_need_header_malloc_h="yes"
21699
21700 fi
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702     #
21703     case "$curl_cv_need_header_malloc_h" in
21704       yes)
21705
21706 cat >>confdefs.h <<_ACEOF
21707 #define NEED_MALLOC_H 1
21708 _ACEOF
21709
21710         ;;
21711     esac
21712   fi
21713
21714
21715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
21716 $as_echo_n "checking for memory.h... " >&6; }
21717 if test "${ac_cv_header_memory_h+set}" = set; then :
21718   $as_echo_n "(cached) " >&6
21719 else
21720
21721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h.  */
21723
21724
21725 #include <memory.h>
21726
21727 int main (void)
21728 {
21729
21730         void *p = malloc(10);
21731         void *q = calloc(10,10);
21732         free(p);
21733         free(q);
21734
21735  ;
21736  return 0;
21737 }
21738
21739 _ACEOF
21740 if ac_fn_c_try_compile "$LINENO"; then :
21741
21742       ac_cv_header_memory_h="yes"
21743
21744 else
21745
21746       ac_cv_header_memory_h="no"
21747
21748 fi
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750
21751 fi
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
21753 $as_echo "$ac_cv_header_memory_h" >&6; }
21754   if test "$ac_cv_header_memory_h" = "yes"; then
21755
21756 cat >>confdefs.h <<_ACEOF
21757 #define HAVE_MEMORY_H 1
21758 _ACEOF
21759
21760     #
21761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h.  */
21763
21764
21765 #include <stdlib.h>
21766
21767 int main (void)
21768 {
21769
21770         void *p = malloc(10);
21771         void *q = calloc(10,10);
21772         free(p);
21773         free(q);
21774
21775  ;
21776  return 0;
21777 }
21778
21779 _ACEOF
21780 if ac_fn_c_try_compile "$LINENO"; then :
21781
21782       curl_cv_need_header_memory_h="no"
21783
21784 else
21785
21786       curl_cv_need_header_memory_h="yes"
21787
21788 fi
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790     #
21791     case "$curl_cv_need_header_memory_h" in
21792       yes)
21793
21794 cat >>confdefs.h <<_ACEOF
21795 #define NEED_MEMORY_H 1
21796 _ACEOF
21797
21798         ;;
21799     esac
21800   fi
21801
21802
21803 for ac_header in sys/types.h \
21804         sys/time.h \
21805         sys/select.h \
21806         sys/socket.h \
21807         sys/ioctl.h \
21808         sys/uio.h \
21809         assert.h \
21810         unistd.h \
21811         stdlib.h \
21812         limits.h \
21813         arpa/inet.h \
21814         net/if.h \
21815         netinet/in.h \
21816         sys/un.h \
21817         netinet/tcp.h \
21818         netdb.h \
21819         sys/sockio.h \
21820         sys/stat.h \
21821         sys/param.h \
21822         termios.h \
21823         termio.h \
21824         sgtty.h \
21825         fcntl.h \
21826         alloca.h \
21827         time.h \
21828         io.h \
21829         pwd.h \
21830         utime.h \
21831         sys/utime.h \
21832         sys/poll.h \
21833         poll.h \
21834         socket.h \
21835         sys/resource.h \
21836         libgen.h \
21837         locale.h \
21838         errno.h \
21839         stdbool.h \
21840         arpa/tftp.h \
21841         sys/filio.h \
21842         setjmp.h
21843 do :
21844   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21846 #ifdef HAVE_SYS_TYPES_H
21847 #include <sys/types.h>
21848 #endif
21849 #ifdef HAVE_SYS_TIME_H
21850 #include <sys/time.h>
21851 #endif
21852 #ifdef HAVE_SYS_SELECT_H
21853 #include <sys/select.h>
21854 #endif
21855 #ifdef HAVE_SYS_SOCKET_H
21856 #include <sys/socket.h>
21857 #endif
21858 #ifdef HAVE_NETINET_IN_H
21859 #include <netinet/in.h>
21860 #endif
21861 #ifdef HAVE_SYS_UN_H
21862 #include <sys/un.h>
21863 #endif
21864
21865
21866 "
21867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21868   cat >>confdefs.h <<_ACEOF
21869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21870 _ACEOF
21871
21872 fi
21873
21874 done
21875
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21878 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21879 if test "${ac_cv_c_const+set}" = set; then :
21880   $as_echo_n "(cached) " >&6
21881 else
21882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h.  */
21884
21885 int main (void)
21886 {
21887 /* FIXME: Include the comments suggested by Paul. */
21888 #ifndef __cplusplus
21889   /* Ultrix mips cc rejects this.  */
21890   typedef int charset[2];
21891   const charset cs;
21892   /* SunOS 4.1.1 cc rejects this.  */
21893   char const *const *pcpcc;
21894   char **ppc;
21895   /* NEC SVR4.0.2 mips cc rejects this.  */
21896   struct point {int x, y;};
21897   static struct point const zero = {0,0};
21898   /* AIX XL C 1.02.0.0 rejects this.
21899      It does not let you subtract one const X* pointer from another in
21900      an arm of an if-expression whose if-part is not a constant
21901      expression */
21902   const char *g = "string";
21903   pcpcc = &g + (g ? g-g : 0);
21904   /* HPUX 7.0 cc rejects these. */
21905   ++pcpcc;
21906   ppc = (char**) pcpcc;
21907   pcpcc = (char const *const *) ppc;
21908   { /* SCO 3.2v4 cc rejects this.  */
21909     char *t;
21910     char const *s = 0 ? (char *) 0 : (char const *) 0;
21911
21912     *t++ = 0;
21913     if (s) return 0;
21914   }
21915   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21916     int x[] = {25, 17};
21917     const int *foo = &x[0];
21918     ++foo;
21919   }
21920   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21921     typedef const int *iptr;
21922     iptr p = 0;
21923     ++p;
21924   }
21925   { /* AIX XL C 1.02.0.0 rejects this saying
21926        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21927     struct s { int j; const int *ap[3]; };
21928     struct s *b; b->j = 5;
21929   }
21930   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21931     const int foo = 10;
21932     if (!foo) return 0;
21933   }
21934   return !cs[0] && !zero.x;
21935 #endif
21936
21937  ;
21938  return 0;
21939 }
21940 _ACEOF
21941 if ac_fn_c_try_compile "$LINENO"; then :
21942   ac_cv_c_const=yes
21943 else
21944   ac_cv_c_const=no
21945 fi
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 fi
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21949 $as_echo "$ac_cv_c_const" >&6; }
21950 if test $ac_cv_c_const = no; then
21951
21952 $as_echo "#define const /**/" >>confdefs.h
21953
21954 fi
21955
21956
21957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
21958 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
21959 if test "${curl_cv_variadic_macros_c99+set}" = set; then :
21960   $as_echo_n "(cached) " >&6
21961 else
21962
21963     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964 /* end confdefs.h.  */
21965
21966
21967 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
21968 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
21969         int fun3(int arg1, int arg2, int arg3);
21970         int fun2(int arg1, int arg2);
21971         int fun3(int arg1, int arg2, int arg3)
21972         { return arg1 + arg2 + arg3; }
21973         int fun2(int arg1, int arg2)
21974         { return arg1 + arg2; }
21975
21976 int main (void)
21977 {
21978
21979         int res3 = c99_vmacro3(1, 2, 3);
21980         int res2 = c99_vmacro2(1, 2);
21981
21982  ;
21983  return 0;
21984 }
21985
21986 _ACEOF
21987 if ac_fn_c_try_compile "$LINENO"; then :
21988
21989       curl_cv_variadic_macros_c99="yes"
21990
21991 else
21992
21993       curl_cv_variadic_macros_c99="no"
21994
21995 fi
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997
21998 fi
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
22000 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
22001   case "$curl_cv_variadic_macros_c99" in
22002     yes)
22003
22004 cat >>confdefs.h <<_ACEOF
22005 #define HAVE_VARIADIC_MACROS_C99 1
22006 _ACEOF
22007
22008       ;;
22009   esac
22010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
22011 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
22012 if test "${curl_cv_variadic_macros_gcc+set}" = set; then :
22013   $as_echo_n "(cached) " >&6
22014 else
22015
22016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h.  */
22018
22019
22020 #define gcc_vmacro3(first, args...) fun3(first, args)
22021 #define gcc_vmacro2(first, args...) fun2(first, args)
22022         int fun3(int arg1, int arg2, int arg3);
22023         int fun2(int arg1, int arg2);
22024         int fun3(int arg1, int arg2, int arg3)
22025         { return arg1 + arg2 + arg3; }
22026         int fun2(int arg1, int arg2)
22027         { return arg1 + arg2; }
22028
22029 int main (void)
22030 {
22031
22032         int res3 = gcc_vmacro3(1, 2, 3);
22033         int res2 = gcc_vmacro2(1, 2);
22034
22035  ;
22036  return 0;
22037 }
22038
22039 _ACEOF
22040 if ac_fn_c_try_compile "$LINENO"; then :
22041
22042       curl_cv_variadic_macros_gcc="yes"
22043
22044 else
22045
22046       curl_cv_variadic_macros_gcc="no"
22047
22048 fi
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050
22051 fi
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
22053 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
22054   case "$curl_cv_variadic_macros_gcc" in
22055     yes)
22056
22057 cat >>confdefs.h <<_ACEOF
22058 #define HAVE_VARIADIC_MACROS_GCC 1
22059 _ACEOF
22060
22061       ;;
22062   esac
22063
22064 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22065 if test "x$ac_cv_type_size_t" = x""yes; then :
22066
22067 else
22068
22069 cat >>confdefs.h <<_ACEOF
22070 #define size_t unsigned int
22071 _ACEOF
22072
22073 fi
22074
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22076 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22077 if test "${ac_cv_header_time+set}" = set; then :
22078   $as_echo_n "(cached) " >&6
22079 else
22080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h.  */
22082 #include <sys/types.h>
22083 #include <sys/time.h>
22084 #include <time.h>
22085
22086 int main (void)
22087 {
22088 if ((struct tm *) 0)
22089 return 0;
22090  ;
22091  return 0;
22092 }
22093 _ACEOF
22094 if ac_fn_c_try_compile "$LINENO"; then :
22095   ac_cv_header_time=yes
22096 else
22097   ac_cv_header_time=no
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22100 fi
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22102 $as_echo "$ac_cv_header_time" >&6; }
22103 if test $ac_cv_header_time = yes; then
22104
22105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22106
22107 fi
22108
22109
22110         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
22111 do :
22112   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22115   cat >>confdefs.h <<_ACEOF
22116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117 _ACEOF
22118
22119 fi
22120
22121 done
22122
22123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22124 $as_echo_n "checking for struct timeval... " >&6; }
22125 if test "${ac_cv_struct_timeval+set}" = set; then :
22126   $as_echo_n "(cached) " >&6
22127 else
22128
22129     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h.  */
22131
22132
22133 #undef inline
22134 #ifdef HAVE_WINDOWS_H
22135 #ifndef WIN32_LEAN_AND_MEAN
22136 #define WIN32_LEAN_AND_MEAN
22137 #endif
22138 #include <windows.h>
22139 #ifdef HAVE_WINSOCK2_H
22140 #include <winsock2.h>
22141 #else
22142 #ifdef HAVE_WINSOCK_H
22143 #include <winsock.h>
22144 #endif
22145 #endif
22146 #endif
22147 #ifdef HAVE_SYS_TYPES_H
22148 #include <sys/types.h>
22149 #endif
22150 #ifdef HAVE_SYS_TIME_H
22151 #include <sys/time.h>
22152 #ifdef TIME_WITH_SYS_TIME
22153 #include <time.h>
22154 #endif
22155 #else
22156 #ifdef HAVE_TIME_H
22157 #include <time.h>
22158 #endif
22159 #endif
22160 #ifdef HAVE_SYS_SOCKET_H
22161 #include <sys/socket.h>
22162 #endif
22163
22164 int main (void)
22165 {
22166
22167         struct timeval ts;
22168         ts.tv_sec  = 0;
22169         ts.tv_usec = 0;
22170
22171  ;
22172  return 0;
22173 }
22174
22175 _ACEOF
22176 if ac_fn_c_try_compile "$LINENO"; then :
22177
22178       ac_cv_struct_timeval="yes"
22179
22180 else
22181
22182       ac_cv_struct_timeval="no"
22183
22184 fi
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186
22187 fi
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
22189 $as_echo "$ac_cv_struct_timeval" >&6; }
22190   case "$ac_cv_struct_timeval" in
22191     yes)
22192
22193 cat >>confdefs.h <<_ACEOF
22194 #define HAVE_STRUCT_TIMEVAL 1
22195 _ACEOF
22196
22197       ;;
22198   esac
22199
22200
22201
22202     if test "x$cross_compiling" != xyes; then
22203
22204             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
22205 $as_echo_n "checking run-time libs availability... " >&6; }
22206     if test "$cross_compiling" = yes; then :
22207   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22209 as_fn_error $? "cannot run test program while cross compiling
22210 See \`config.log' for more details" "$LINENO" 5 ; }
22211 else
22212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22213 /* end confdefs.h.  */
22214
22215 main()
22216 {
22217   return 0;
22218 }
22219
22220 _ACEOF
22221 if ac_fn_c_try_run "$LINENO"; then :
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
22223 $as_echo "fine" >&6; }
22224 else
22225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
22226 $as_echo "failed" >&6; }
22227     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
22228
22229 fi
22230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22231   conftest.$ac_objext conftest.beam conftest.$ac_ext
22232 fi
22233
22234
22235       fi
22236
22237
22238 # The cast to long int works around a bug in the HP C Compiler
22239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22241 # This bug is HP SR number 8606223364.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22243 $as_echo_n "checking size of size_t... " >&6; }
22244 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
22248
22249 else
22250   if test "$ac_cv_type_size_t" = yes; then
22251      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22253 as_fn_error 77 "cannot compute sizeof (size_t)
22254 See \`config.log' for more details" "$LINENO" 5 ; }
22255    else
22256      ac_cv_sizeof_size_t=0
22257    fi
22258 fi
22259
22260 fi
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22262 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22263
22264
22265
22266 cat >>confdefs.h <<_ACEOF
22267 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22268 _ACEOF
22269
22270
22271 # The cast to long int works around a bug in the HP C Compiler
22272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22274 # This bug is HP SR number 8606223364.
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22276 $as_echo_n "checking size of long... " >&6; }
22277 if test "${ac_cv_sizeof_long+set}" = set; then :
22278   $as_echo_n "(cached) " >&6
22279 else
22280   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22281
22282 else
22283   if test "$ac_cv_type_long" = yes; then
22284      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22286 as_fn_error 77 "cannot compute sizeof (long)
22287 See \`config.log' for more details" "$LINENO" 5 ; }
22288    else
22289      ac_cv_sizeof_long=0
22290    fi
22291 fi
22292
22293 fi
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22295 $as_echo "$ac_cv_sizeof_long" >&6; }
22296
22297
22298
22299 cat >>confdefs.h <<_ACEOF
22300 #define SIZEOF_LONG $ac_cv_sizeof_long
22301 _ACEOF
22302
22303
22304 # The cast to long int works around a bug in the HP C Compiler
22305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22307 # This bug is HP SR number 8606223364.
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22309 $as_echo_n "checking size of int... " >&6; }
22310 if test "${ac_cv_sizeof_int+set}" = set; then :
22311   $as_echo_n "(cached) " >&6
22312 else
22313   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22314
22315 else
22316   if test "$ac_cv_type_int" = yes; then
22317      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22319 as_fn_error 77 "cannot compute sizeof (int)
22320 See \`config.log' for more details" "$LINENO" 5 ; }
22321    else
22322      ac_cv_sizeof_int=0
22323    fi
22324 fi
22325
22326 fi
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22328 $as_echo "$ac_cv_sizeof_int" >&6; }
22329
22330
22331
22332 cat >>confdefs.h <<_ACEOF
22333 #define SIZEOF_INT $ac_cv_sizeof_int
22334 _ACEOF
22335
22336
22337 # The cast to long int works around a bug in the HP C Compiler
22338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22340 # This bug is HP SR number 8606223364.
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22342 $as_echo_n "checking size of short... " >&6; }
22343 if test "${ac_cv_sizeof_short+set}" = set; then :
22344   $as_echo_n "(cached) " >&6
22345 else
22346   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22347
22348 else
22349   if test "$ac_cv_type_short" = yes; then
22350      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22352 as_fn_error 77 "cannot compute sizeof (short)
22353 See \`config.log' for more details" "$LINENO" 5 ; }
22354    else
22355      ac_cv_sizeof_short=0
22356    fi
22357 fi
22358
22359 fi
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22361 $as_echo "$ac_cv_sizeof_short" >&6; }
22362
22363
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define SIZEOF_SHORT $ac_cv_sizeof_short
22367 _ACEOF
22368
22369
22370
22371   if test -z "$ac_cv_sizeof_long" ||
22372     test "$ac_cv_sizeof_long" -eq "0"; then
22373     as_fn_error $? "cannot find out size of long." "$LINENO" 5
22374   fi
22375
22376 cat >>confdefs.h <<_EOF
22377 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
22378 _EOF
22379
22380
22381 # The cast to long int works around a bug in the HP C Compiler
22382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22384 # This bug is HP SR number 8606223364.
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22386 $as_echo_n "checking size of time_t... " >&6; }
22387 if test "${ac_cv_sizeof_time_t+set}" = set; then :
22388   $as_echo_n "(cached) " >&6
22389 else
22390   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22391
22392 else
22393   if test "$ac_cv_type_time_t" = yes; then
22394      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22396 as_fn_error 77 "cannot compute sizeof (time_t)
22397 See \`config.log' for more details" "$LINENO" 5 ; }
22398    else
22399      ac_cv_sizeof_time_t=0
22400    fi
22401 fi
22402
22403 fi
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22405 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22406
22407
22408
22409 cat >>confdefs.h <<_ACEOF
22410 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22411 _ACEOF
22412
22413
22414 # The cast to long int works around a bug in the HP C Compiler
22415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22417 # This bug is HP SR number 8606223364.
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22419 $as_echo_n "checking size of off_t... " >&6; }
22420 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22421   $as_echo_n "(cached) " >&6
22422 else
22423   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
22424
22425 else
22426   if test "$ac_cv_type_off_t" = yes; then
22427      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22429 as_fn_error 77 "cannot compute sizeof (off_t)
22430 See \`config.log' for more details" "$LINENO" 5 ; }
22431    else
22432      ac_cv_sizeof_off_t=0
22433    fi
22434 fi
22435
22436 fi
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22438 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22439
22440
22441
22442 cat >>confdefs.h <<_ACEOF
22443 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22444 _ACEOF
22445
22446
22447
22448 soname_bump=no
22449 if test x"$ac_cv_native_windows" != "xyes" &&
22450    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
22451   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
22452 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
22453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
22454 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
22455   soname_bump=yes
22456 fi
22457
22458
22459 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22460 if test "x$ac_cv_type_long_long" = x""yes; then :
22461
22462 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
22463
22464    longlong="yes"
22465
22466 fi
22467
22468
22469 if test "xyes" = "x$longlong"; then
22470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
22471 $as_echo_n "checking if numberLL works... " >&6; }
22472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h.  */
22474
22475
22476
22477 int main (void)
22478 {
22479
22480       long long val = 1000LL;
22481
22482  ;
22483  return 0;
22484 }
22485
22486 _ACEOF
22487 if ac_fn_c_try_compile "$LINENO"; then :
22488
22489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22490 $as_echo "yes" >&6; }
22491
22492 $as_echo "#define HAVE_LL 1" >>confdefs.h
22493
22494
22495 else
22496
22497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22498 $as_echo "no" >&6; }
22499
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503
22504
22505 # check for ssize_t
22506 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22507 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22508
22509 else
22510
22511 $as_echo "#define ssize_t int" >>confdefs.h
22512
22513 fi
22514
22515
22516 # check for bool type
22517 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
22518 #ifdef HAVE_SYS_TYPES_H
22519 #include <sys/types.h>
22520 #endif
22521 #ifdef HAVE_STDBOOL_H
22522 #include <stdbool.h>
22523 #endif
22524
22525 "
22526 if test "x$ac_cv_type_bool" = x""yes; then :
22527
22528
22529 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
22530
22531
22532 fi
22533
22534
22535
22536 curl_includes_ws2tcpip="\
22537 /* includes start */
22538 #ifdef HAVE_WINDOWS_H
22539 #  ifndef WIN32_LEAN_AND_MEAN
22540 #    define WIN32_LEAN_AND_MEAN
22541 #  endif
22542 #  include <windows.h>
22543 #  ifdef HAVE_WINSOCK2_H
22544 #    include <winsock2.h>
22545 #    ifdef HAVE_WS2TCPIP_H
22546 #       include <ws2tcpip.h>
22547 #    endif
22548 #  endif
22549 #endif
22550 /* includes end */"
22551
22552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22553 $as_echo_n "checking for windows.h... " >&6; }
22554 if test "${ac_cv_header_windows_h+set}" = set; then :
22555   $as_echo_n "(cached) " >&6
22556 else
22557
22558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22559 /* end confdefs.h.  */
22560
22561
22562 #undef inline
22563 #ifndef WIN32_LEAN_AND_MEAN
22564 #define WIN32_LEAN_AND_MEAN
22565 #endif
22566 #include <windows.h>
22567
22568 int main (void)
22569 {
22570
22571 #if defined(__CYGWIN__) || defined(__CEGCC__)
22572         HAVE_WINDOWS_H shall not be defined.
22573 #else
22574         int dummy=2*WINVER;
22575 #endif
22576
22577  ;
22578  return 0;
22579 }
22580
22581 _ACEOF
22582 if ac_fn_c_try_compile "$LINENO"; then :
22583
22584       ac_cv_header_windows_h="yes"
22585
22586 else
22587
22588       ac_cv_header_windows_h="no"
22589
22590 fi
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592
22593 fi
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22595 $as_echo "$ac_cv_header_windows_h" >&6; }
22596   case "$ac_cv_header_windows_h" in
22597     yes)
22598
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_WINDOWS_H 1
22601 _ACEOF
22602
22603
22604 cat >>confdefs.h <<_ACEOF
22605 #define WIN32_LEAN_AND_MEAN 1
22606 _ACEOF
22607
22608       ;;
22609   esac
22610
22611
22612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22613 $as_echo_n "checking for winsock2.h... " >&6; }
22614 if test "${ac_cv_header_winsock2_h+set}" = set; then :
22615   $as_echo_n "(cached) " >&6
22616 else
22617
22618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619 /* end confdefs.h.  */
22620
22621
22622 #undef inline
22623 #ifndef WIN32_LEAN_AND_MEAN
22624 #define WIN32_LEAN_AND_MEAN
22625 #endif
22626 #include <windows.h>
22627 #include <winsock2.h>
22628
22629 int main (void)
22630 {
22631
22632 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22633         HAVE_WINSOCK2_H shall not be defined.
22634 #else
22635         int dummy=2*IPPROTO_ESP;
22636 #endif
22637
22638  ;
22639  return 0;
22640 }
22641
22642 _ACEOF
22643 if ac_fn_c_try_compile "$LINENO"; then :
22644
22645       ac_cv_header_winsock2_h="yes"
22646
22647 else
22648
22649       ac_cv_header_winsock2_h="no"
22650
22651 fi
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653
22654 fi
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22656 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22657   case "$ac_cv_header_winsock2_h" in
22658     yes)
22659
22660 cat >>confdefs.h <<_ACEOF
22661 #define HAVE_WINSOCK2_H 1
22662 _ACEOF
22663
22664       ;;
22665   esac
22666
22667
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
22669 $as_echo_n "checking for ws2tcpip.h... " >&6; }
22670 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then :
22671   $as_echo_n "(cached) " >&6
22672 else
22673
22674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h.  */
22676
22677
22678 #undef inline
22679 #ifndef WIN32_LEAN_AND_MEAN
22680 #define WIN32_LEAN_AND_MEAN
22681 #endif
22682 #include <windows.h>
22683 #include <winsock2.h>
22684 #include <ws2tcpip.h>
22685
22686 int main (void)
22687 {
22688
22689 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22690         HAVE_WS2TCPIP_H shall not be defined.
22691 #else
22692         int dummy=2*IP_PKTINFO;
22693 #endif
22694
22695  ;
22696  return 0;
22697 }
22698
22699 _ACEOF
22700 if ac_fn_c_try_compile "$LINENO"; then :
22701
22702       ac_cv_header_ws2tcpip_h="yes"
22703
22704 else
22705
22706       ac_cv_header_ws2tcpip_h="no"
22707
22708 fi
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710
22711 fi
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
22713 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
22714   case "$ac_cv_header_ws2tcpip_h" in
22715     yes)
22716
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_WS2TCPIP_H 1
22719 _ACEOF
22720
22721       ;;
22722   esac
22723
22724
22725
22726 curl_includes_sys_socket="\
22727 /* includes start */
22728 #ifdef HAVE_SYS_TYPES_H
22729 #  include <sys/types.h>
22730 #endif
22731 #ifdef HAVE_SYS_SOCKET_H
22732 #  include <sys/socket.h>
22733 #endif
22734 /* includes end */"
22735   for ac_header in sys/types.h sys/socket.h
22736 do :
22737   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
22739 "
22740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22741   cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22743 _ACEOF
22744
22745 fi
22746
22747 done
22748
22749
22750
22751 curl_preprocess_callconv="\
22752 /* preprocess start */
22753 #ifdef HAVE_WINDOWS_H
22754 #  define FUNCALLCONV __stdcall
22755 #else
22756 #  define FUNCALLCONV
22757 #endif
22758 /* preprocess end */"
22759
22760
22761         #
22762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
22763 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
22764   curl_typeof_curl_socklen_t="unknown"
22765   for arg1 in int SOCKET; do
22766     for arg2 in 'struct sockaddr' void; do
22767       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
22768         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
22769           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770 /* end confdefs.h.  */
22771
22772
22773               $curl_includes_ws2tcpip
22774               $curl_includes_sys_socket
22775               $curl_preprocess_callconv
22776               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
22777
22778 int main (void)
22779 {
22780
22781               $t *lenptr = 0;
22782               if(0 != getpeername(0, 0, lenptr))
22783                 return 1;
22784
22785  ;
22786  return 0;
22787 }
22788
22789 _ACEOF
22790 if ac_fn_c_try_compile "$LINENO"; then :
22791
22792             curl_typeof_curl_socklen_t="$t"
22793
22794 fi
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796         fi
22797       done
22798     done
22799   done
22800   for t in socklen_t int; do
22801     if test "$curl_typeof_curl_socklen_t" = "void"; then
22802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h.  */
22804
22805
22806           $curl_includes_sys_socket
22807           typedef $t curl_socklen_t;
22808
22809 int main (void)
22810 {
22811
22812           curl_socklen_t dummy;
22813
22814  ;
22815  return 0;
22816 }
22817
22818 _ACEOF
22819 if ac_fn_c_try_compile "$LINENO"; then :
22820
22821         curl_typeof_curl_socklen_t="$t"
22822
22823 fi
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825     fi
22826   done
22827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
22828 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
22829   if test "$curl_typeof_curl_socklen_t" = "void" ||
22830     test "$curl_typeof_curl_socklen_t" = "unknown"; then
22831     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
22832   fi
22833   #
22834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
22835 $as_echo_n "checking size of curl_socklen_t... " >&6; }
22836   curl_sizeof_curl_socklen_t="unknown"
22837   curl_pull_headers_socklen_t="unknown"
22838   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
22839     tst_pull_header_checks='none ws2tcpip'
22840     tst_size_checks='4'
22841   else
22842     tst_pull_header_checks='none systypes syssocket'
22843     tst_size_checks='4 8 2'
22844   fi
22845   for tst_size in $tst_size_checks; do
22846     for tst_pull_headers in $tst_pull_header_checks; do
22847       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
22848         case $tst_pull_headers in
22849           ws2tcpip)
22850             tmp_includes="$curl_includes_ws2tcpip"
22851             ;;
22852           systypes)
22853             tmp_includes="$curl_includes_sys_types"
22854             ;;
22855           syssocket)
22856             tmp_includes="$curl_includes_sys_socket"
22857             ;;
22858           *)
22859             tmp_includes=""
22860             ;;
22861         esac
22862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22863 /* end confdefs.h.  */
22864
22865
22866             $tmp_includes
22867             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
22868             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
22869
22870 int main (void)
22871 {
22872
22873             curl_socklen_t dummy;
22874
22875  ;
22876  return 0;
22877 }
22878
22879 _ACEOF
22880 if ac_fn_c_try_compile "$LINENO"; then :
22881
22882           curl_sizeof_curl_socklen_t="$tst_size"
22883           curl_pull_headers_socklen_t="$tst_pull_headers"
22884
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887       fi
22888     done
22889   done
22890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
22891 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
22892   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
22893     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
22894   fi
22895   #
22896   case $curl_pull_headers_socklen_t in
22897     ws2tcpip)
22898
22899 cat >>confdefs.h <<_EOF
22900 #define CURL_PULL_WS2TCPIP_H 1
22901 _EOF
22902
22903       ;;
22904     systypes)
22905
22906 cat >>confdefs.h <<_EOF
22907 #define CURL_PULL_SYS_TYPES_H 1
22908 _EOF
22909
22910       ;;
22911     syssocket)
22912
22913 cat >>confdefs.h <<_EOF
22914 #define CURL_PULL_SYS_TYPES_H 1
22915 _EOF
22916
22917
22918 cat >>confdefs.h <<_EOF
22919 #define CURL_PULL_SYS_SOCKET_H 1
22920 _EOF
22921
22922       ;;
22923   esac
22924
22925 cat >>confdefs.h <<_EOF
22926 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
22927 _EOF
22928
22929
22930 cat >>confdefs.h <<_EOF
22931 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
22932 _EOF
22933
22934
22935
22936
22937   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
22938 #undef inline
22939 #ifdef HAVE_WINDOWS_H
22940 #ifndef WIN32_LEAN_AND_MEAN
22941 #define WIN32_LEAN_AND_MEAN
22942 #endif
22943 #include <windows.h>
22944 #ifdef HAVE_WINSOCK2_H
22945 #include <winsock2.h>
22946 #else
22947 #ifdef HAVE_WINSOCK_H
22948 #include <winsock.h>
22949 #endif
22950 #endif
22951 #else
22952 #ifdef HAVE_SYS_TYPES_H
22953 #include <sys/types.h>
22954 #endif
22955 #ifdef HAVE_SYS_SOCKET_H
22956 #include <sys/socket.h>
22957 #endif
22958 #ifdef HAVE_NETINET_IN_H
22959 #include <netinet/in.h>
22960 #endif
22961 #ifdef HAVE_ARPA_INET_H
22962 #include <arpa/inet.h>
22963 #endif
22964 #endif
22965
22966 "
22967 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
22968
22969 else
22970
22971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
22972 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
22973 if test "${curl_cv_in_addr_t_equiv+set}" = set; then :
22974   $as_echo_n "(cached) " >&6
22975 else
22976
22977       curl_cv_in_addr_t_equiv="unknown"
22978       for t in "unsigned long" int size_t unsigned long; do
22979         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
22980           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h.  */
22982
22983
22984 #undef inline
22985 #ifdef HAVE_WINDOWS_H
22986 #ifndef WIN32_LEAN_AND_MEAN
22987 #define WIN32_LEAN_AND_MEAN
22988 #endif
22989 #include <windows.h>
22990 #ifdef HAVE_WINSOCK2_H
22991 #include <winsock2.h>
22992 #else
22993 #ifdef HAVE_WINSOCK_H
22994 #include <winsock.h>
22995 #endif
22996 #endif
22997 #else
22998 #ifdef HAVE_SYS_TYPES_H
22999 #include <sys/types.h>
23000 #endif
23001 #ifdef HAVE_SYS_SOCKET_H
23002 #include <sys/socket.h>
23003 #endif
23004 #ifdef HAVE_NETINET_IN_H
23005 #include <netinet/in.h>
23006 #endif
23007 #ifdef HAVE_ARPA_INET_H
23008 #include <arpa/inet.h>
23009 #endif
23010 #endif
23011
23012 int main (void)
23013 {
23014
23015               $t data = inet_addr ("1.2.3.4");
23016
23017  ;
23018  return 0;
23019 }
23020
23021 _ACEOF
23022 if ac_fn_c_try_link "$LINENO"; then :
23023
23024             curl_cv_in_addr_t_equiv="$t"
23025
23026 fi
23027 rm -f core conftest.err conftest.$ac_objext \
23028     conftest$ac_exeext conftest.$ac_ext
23029         fi
23030       done
23031
23032 fi
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
23034 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
23035     case "$curl_cv_in_addr_t_equiv" in
23036       unknown)
23037         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
23038         ;;
23039       *)
23040
23041 cat >>confdefs.h <<_ACEOF
23042 #define in_addr_t $curl_cv_in_addr_t_equiv
23043 _ACEOF
23044
23045         ;;
23046     esac
23047
23048 fi
23049
23050
23051
23052
23053    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
23054 #undef inline
23055 #ifdef HAVE_WINDOWS_H
23056 #ifndef WIN32_LEAN_AND_MEAN
23057 #define WIN32_LEAN_AND_MEAN
23058 #endif
23059 #include <windows.h>
23060 #ifdef HAVE_WINSOCK2_H
23061 #include <winsock2.h>
23062 #endif
23063 #else
23064 #ifdef HAVE_SYS_TYPES_H
23065 #include <sys/types.h>
23066 #endif
23067 #ifdef HAVE_SYS_SOCKET_H
23068 #include <sys/socket.h>
23069 #endif
23070 #ifdef HAVE_NETINET_IN_H
23071 #include <netinet/in.h>
23072 #endif
23073 #ifdef HAVE_ARPA_INET_H
23074 #include <arpa/inet.h>
23075 #endif
23076 #endif
23077
23078 "
23079 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
23080
23081 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
23082
23083 fi
23084
23085
23086
23087
23088   for ac_header in signal.h
23089 do :
23090   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
23091 if test "x$ac_cv_header_signal_h" = x""yes; then :
23092   cat >>confdefs.h <<_ACEOF
23093 #define HAVE_SIGNAL_H 1
23094 _ACEOF
23095
23096 fi
23097
23098 done
23099
23100   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
23101 #ifdef HAVE_SIGNAL_H
23102 #include <signal.h>
23103 #endif
23104
23105 "
23106 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
23107
23108
23109 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
23110
23111
23112 fi
23113
23114   case "$ac_cv_type_sig_atomic_t" in
23115     yes)
23116       #
23117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
23118 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
23119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h.  */
23121
23122
23123 #ifdef HAVE_SIGNAL_H
23124 #include <signal.h>
23125 #endif
23126
23127 int main (void)
23128 {
23129
23130           static volatile sig_atomic_t dummy = 0;
23131
23132  ;
23133  return 0;
23134 }
23135
23136 _ACEOF
23137 if ac_fn_c_try_link "$LINENO"; then :
23138
23139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141         ac_cv_sig_atomic_t_volatile="no"
23142
23143 else
23144
23145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23147         ac_cv_sig_atomic_t_volatile="yes"
23148
23149 fi
23150 rm -f core conftest.err conftest.$ac_objext \
23151     conftest$ac_exeext conftest.$ac_ext
23152       #
23153       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
23154
23155 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
23156
23157       fi
23158       ;;
23159   esac
23160
23161
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23163 $as_echo_n "checking return type of signal handlers... " >&6; }
23164 if test "${ac_cv_type_signal+set}" = set; then :
23165   $as_echo_n "(cached) " >&6
23166 else
23167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h.  */
23169 #include <sys/types.h>
23170 #include <signal.h>
23171
23172 int main (void)
23173 {
23174 return *(signal (0, 0)) (0) == 1;
23175  ;
23176  return 0;
23177 }
23178 _ACEOF
23179 if ac_fn_c_try_compile "$LINENO"; then :
23180   ac_cv_type_signal=int
23181 else
23182   ac_cv_type_signal=void
23183 fi
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185 fi
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23187 $as_echo "$ac_cv_type_signal" >&6; }
23188
23189 cat >>confdefs.h <<_ACEOF
23190 #define RETSIGTYPE $ac_cv_type_signal
23191 _ACEOF
23192
23193
23194
23195
23196     for ac_header in sys/select.h sys/socket.h
23197 do :
23198   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23201   cat >>confdefs.h <<_ACEOF
23202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23203 _ACEOF
23204
23205 fi
23206
23207 done
23208
23209   #
23210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
23211 $as_echo_n "checking for select... " >&6; }
23212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213 /* end confdefs.h.  */
23214
23215
23216 #undef inline
23217 #ifdef HAVE_WINDOWS_H
23218 #ifndef WIN32_LEAN_AND_MEAN
23219 #define WIN32_LEAN_AND_MEAN
23220 #endif
23221 #include <windows.h>
23222 #ifdef HAVE_WINSOCK2_H
23223 #include <winsock2.h>
23224 #else
23225 #ifdef HAVE_WINSOCK_H
23226 #include <winsock.h>
23227 #endif
23228 #endif
23229 #endif
23230 #ifdef HAVE_SYS_TYPES_H
23231 #include <sys/types.h>
23232 #endif
23233 #ifdef HAVE_SYS_TIME_H
23234 #include <sys/time.h>
23235 #ifdef TIME_WITH_SYS_TIME
23236 #include <time.h>
23237 #endif
23238 #else
23239 #ifdef HAVE_TIME_H
23240 #include <time.h>
23241 #endif
23242 #endif
23243 #ifndef HAVE_WINDOWS_H
23244 #ifdef HAVE_SYS_SELECT_H
23245 #include <sys/select.h>
23246 #endif
23247 #ifdef HAVE_SYS_SOCKET_H
23248 #include <sys/socket.h>
23249 #endif
23250 #endif
23251
23252 int main (void)
23253 {
23254
23255       select(0, 0, 0, 0, 0);
23256
23257  ;
23258  return 0;
23259 }
23260
23261 _ACEOF
23262 if ac_fn_c_try_link "$LINENO"; then :
23263
23264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23265 $as_echo "yes" >&6; }
23266     curl_cv_select="yes"
23267
23268 else
23269
23270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23271 $as_echo "no" >&6; }
23272     curl_cv_select="no"
23273
23274 fi
23275 rm -f core conftest.err conftest.$ac_objext \
23276     conftest$ac_exeext conftest.$ac_ext
23277   #
23278   if test "$curl_cv_select" = "yes"; then
23279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
23280 $as_echo_n "checking types of args and return type for select... " >&6; }
23281 if test "${curl_cv_func_select_args+set}" = set; then :
23282   $as_echo_n "(cached) " >&6
23283 else
23284
23285       curl_cv_func_select_args="unknown"
23286       for sel_retv in 'int' 'ssize_t'; do
23287         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
23288           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
23289             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
23290               if test "$curl_cv_func_select_args" = "unknown"; then
23291                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23292 /* end confdefs.h.  */
23293
23294
23295 #undef inline
23296 #ifdef HAVE_WINDOWS_H
23297 #ifndef WIN32_LEAN_AND_MEAN
23298 #define WIN32_LEAN_AND_MEAN
23299 #endif
23300 #include <windows.h>
23301 #ifdef HAVE_WINSOCK2_H
23302 #include <winsock2.h>
23303 #else
23304 #ifdef HAVE_WINSOCK_H
23305 #include <winsock.h>
23306 #endif
23307 #endif
23308 #define SELECTCALLCONV PASCAL
23309 #endif
23310 #ifdef HAVE_SYS_TYPES_H
23311 #include <sys/types.h>
23312 #endif
23313 #ifdef HAVE_SYS_TIME_H
23314 #include <sys/time.h>
23315 #ifdef TIME_WITH_SYS_TIME
23316 #include <time.h>
23317 #endif
23318 #else
23319 #ifdef HAVE_TIME_H
23320 #include <time.h>
23321 #endif
23322 #endif
23323 #ifndef HAVE_WINDOWS_H
23324 #ifdef HAVE_SYS_SELECT_H
23325 #include <sys/select.h>
23326 #endif
23327 #ifdef HAVE_SYS_SOCKET_H
23328 #include <sys/socket.h>
23329 #endif
23330 #define SELECTCALLCONV
23331 #endif
23332 #ifndef HAVE_STRUCT_TIMEVAL
23333                     struct timeval {
23334                       long tv_sec;
23335                       long tv_usec;
23336                     };
23337 #endif
23338                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
23339                                                            $sel_arg234,
23340                                                            $sel_arg234,
23341                                                            $sel_arg234,
23342                                                            $sel_arg5);
23343
23344 int main (void)
23345 {
23346
23347                     $sel_arg1   nfds=0;
23348                     $sel_arg234 rfds=0;
23349                     $sel_arg234 wfds=0;
23350                     $sel_arg234 efds=0;
23351                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
23352
23353  ;
23354  return 0;
23355 }
23356
23357 _ACEOF
23358 if ac_fn_c_try_compile "$LINENO"; then :
23359
23360                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
23361
23362 fi
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364               fi
23365             done
23366           done
23367         done
23368       done
23369
23370 fi
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
23372 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
23373     if test "$curl_cv_func_select_args" = "unknown"; then
23374       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
23375 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
23376       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
23377 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
23378     else
23379       select_prev_IFS=$IFS; IFS=','
23380       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
23381       IFS=$select_prev_IFS
23382       shift
23383       #
23384       sel_qual_type_arg5=$3
23385       #
23386
23387 cat >>confdefs.h <<_ACEOF
23388 #define SELECT_TYPE_ARG1 $1
23389 _ACEOF
23390
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define SELECT_TYPE_ARG234 $2
23394 _ACEOF
23395
23396
23397 cat >>confdefs.h <<_ACEOF
23398 #define SELECT_TYPE_RETV $4
23399 _ACEOF
23400
23401       #
23402       prev_sh_opts=$-
23403       #
23404       case $prev_sh_opts in
23405         *f*)
23406           ;;
23407         *)
23408           set -f
23409           ;;
23410       esac
23411       #
23412       case "$sel_qual_type_arg5" in
23413         const*)
23414           sel_qual_arg5=const
23415           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
23416         ;;
23417         *)
23418           sel_qual_arg5=
23419           sel_type_arg5=$sel_qual_type_arg5
23420         ;;
23421       esac
23422       #
23423
23424 cat >>confdefs.h <<_ACEOF
23425 #define SELECT_QUAL_ARG5 $sel_qual_arg5
23426 _ACEOF
23427
23428
23429 cat >>confdefs.h <<_ACEOF
23430 #define SELECT_TYPE_ARG5 $sel_type_arg5
23431 _ACEOF
23432
23433       #
23434       case $prev_sh_opts in
23435         *f*)
23436           ;;
23437         *)
23438           set +f
23439           ;;
23440       esac
23441       #
23442
23443 cat >>confdefs.h <<_ACEOF
23444 #define HAVE_SELECT 1
23445 _ACEOF
23446
23447       ac_cv_func_select="yes"
23448     fi
23449   fi
23450
23451
23452
23453       for ac_header in sys/types.h sys/socket.h
23454 do :
23455   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23456 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23458   cat >>confdefs.h <<_ACEOF
23459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23460 _ACEOF
23461
23462 fi
23463
23464 done
23465
23466   #
23467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
23468 $as_echo_n "checking for recv... " >&6; }
23469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h.  */
23471
23472
23473 #undef inline
23474 #ifdef HAVE_WINDOWS_H
23475 #ifndef WIN32_LEAN_AND_MEAN
23476 #define WIN32_LEAN_AND_MEAN
23477 #endif
23478 #include <windows.h>
23479 #ifdef HAVE_WINSOCK2_H
23480 #include <winsock2.h>
23481 #else
23482 #ifdef HAVE_WINSOCK_H
23483 #include <winsock.h>
23484 #endif
23485 #endif
23486 #else
23487 #ifdef HAVE_SYS_TYPES_H
23488 #include <sys/types.h>
23489 #endif
23490 #ifdef HAVE_SYS_SOCKET_H
23491 #include <sys/socket.h>
23492 #endif
23493 #endif
23494
23495 int main (void)
23496 {
23497
23498       recv(0, 0, 0, 0);
23499
23500  ;
23501  return 0;
23502 }
23503
23504 _ACEOF
23505 if ac_fn_c_try_link "$LINENO"; then :
23506
23507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23508 $as_echo "yes" >&6; }
23509     curl_cv_recv="yes"
23510
23511 else
23512
23513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23514 $as_echo "no" >&6; }
23515     curl_cv_recv="no"
23516
23517 fi
23518 rm -f core conftest.err conftest.$ac_objext \
23519     conftest$ac_exeext conftest.$ac_ext
23520   #
23521   if test "$curl_cv_recv" = "yes"; then
23522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
23523 $as_echo_n "checking types of args and return type for recv... " >&6; }
23524 if test "${curl_cv_func_recv_args+set}" = set; then :
23525   $as_echo_n "(cached) " >&6
23526 else
23527
23528       curl_cv_func_recv_args="unknown"
23529       for recv_retv in 'int' 'ssize_t'; do
23530         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23531           for recv_arg2 in 'char *' 'void *'; do
23532             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23533               for recv_arg4 in 'int' 'unsigned int'; do
23534                 if test "$curl_cv_func_recv_args" = "unknown"; then
23535                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h.  */
23537
23538
23539 #undef inline
23540 #ifdef HAVE_WINDOWS_H
23541 #ifndef WIN32_LEAN_AND_MEAN
23542 #define WIN32_LEAN_AND_MEAN
23543 #endif
23544 #include <windows.h>
23545 #ifdef HAVE_WINSOCK2_H
23546 #include <winsock2.h>
23547 #else
23548 #ifdef HAVE_WINSOCK_H
23549 #include <winsock.h>
23550 #endif
23551 #endif
23552 #define RECVCALLCONV PASCAL
23553 #else
23554 #ifdef HAVE_SYS_TYPES_H
23555 #include <sys/types.h>
23556 #endif
23557 #ifdef HAVE_SYS_SOCKET_H
23558 #include <sys/socket.h>
23559 #endif
23560 #define RECVCALLCONV
23561 #endif
23562                       extern $recv_retv RECVCALLCONV
23563                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
23564
23565 int main (void)
23566 {
23567
23568                       $recv_arg1 s=0;
23569                       $recv_arg2 buf=0;
23570                       $recv_arg3 len=0;
23571                       $recv_arg4 flags=0;
23572                       $recv_retv res = recv(s, buf, len, flags);
23573
23574  ;
23575  return 0;
23576 }
23577
23578 _ACEOF
23579 if ac_fn_c_try_compile "$LINENO"; then :
23580
23581                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
23582
23583 fi
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585                 fi
23586               done
23587             done
23588           done
23589         done
23590       done
23591
23592 fi
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
23594 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
23595     if test "$curl_cv_func_recv_args" = "unknown"; then
23596       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
23597     else
23598       recv_prev_IFS=$IFS; IFS=','
23599       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
23600       IFS=$recv_prev_IFS
23601       shift
23602       #
23603
23604 cat >>confdefs.h <<_ACEOF
23605 #define RECV_TYPE_ARG1 $1
23606 _ACEOF
23607
23608
23609 cat >>confdefs.h <<_ACEOF
23610 #define RECV_TYPE_ARG2 $2
23611 _ACEOF
23612
23613
23614 cat >>confdefs.h <<_ACEOF
23615 #define RECV_TYPE_ARG3 $3
23616 _ACEOF
23617
23618
23619 cat >>confdefs.h <<_ACEOF
23620 #define RECV_TYPE_ARG4 $4
23621 _ACEOF
23622
23623
23624 cat >>confdefs.h <<_ACEOF
23625 #define RECV_TYPE_RETV $5
23626 _ACEOF
23627
23628       #
23629
23630 cat >>confdefs.h <<_ACEOF
23631 #define HAVE_RECV 1
23632 _ACEOF
23633
23634       ac_cv_func_recv="yes"
23635     fi
23636   else
23637     as_fn_error $? "Unable to link function recv" "$LINENO" 5
23638   fi
23639
23640
23641       for ac_header in sys/types.h sys/socket.h
23642 do :
23643   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23644 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23646   cat >>confdefs.h <<_ACEOF
23647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23648 _ACEOF
23649
23650 fi
23651
23652 done
23653
23654   #
23655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
23656 $as_echo_n "checking for recvfrom... " >&6; }
23657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h.  */
23659
23660
23661 #undef inline
23662 #ifdef HAVE_WINDOWS_H
23663 #ifndef WIN32_LEAN_AND_MEAN
23664 #define WIN32_LEAN_AND_MEAN
23665 #endif
23666 #include <windows.h>
23667 #ifdef HAVE_WINSOCK2_H
23668 #include <winsock2.h>
23669 #else
23670 #ifdef HAVE_WINSOCK_H
23671 #include <winsock.h>
23672 #endif
23673 #endif
23674 #else
23675 #ifdef HAVE_SYS_TYPES_H
23676 #include <sys/types.h>
23677 #endif
23678 #ifdef HAVE_SYS_SOCKET_H
23679 #include <sys/socket.h>
23680 #endif
23681 #endif
23682
23683 int main (void)
23684 {
23685
23686       recvfrom(0, 0, 0, 0, 0, 0);
23687
23688  ;
23689  return 0;
23690 }
23691
23692 _ACEOF
23693 if ac_fn_c_try_link "$LINENO"; then :
23694
23695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23696 $as_echo "yes" >&6; }
23697     curl_cv_recvfrom="yes"
23698
23699 else
23700
23701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23703     curl_cv_recvfrom="no"
23704
23705 fi
23706 rm -f core conftest.err conftest.$ac_objext \
23707     conftest$ac_exeext conftest.$ac_ext
23708   #
23709   if test "$curl_cv_recvfrom" = "yes"; then
23710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
23711 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
23712 if test "${curl_cv_func_recvfrom_args+set}" = set; then :
23713   $as_echo_n "(cached) " >&6
23714 else
23715
23716       curl_cv_func_recvfrom_args="unknown"
23717       for recvfrom_retv in 'int' 'ssize_t'; do
23718         for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23719           for recvfrom_arg2 in 'char *' 'void *'; do
23720             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23721               for recvfrom_arg4 in 'int' 'unsigned int'; do
23722                 for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
23723                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
23724                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
23725                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h.  */
23727
23728
23729 #undef inline
23730 #ifdef HAVE_WINDOWS_H
23731 #ifndef WIN32_LEAN_AND_MEAN
23732 #define WIN32_LEAN_AND_MEAN
23733 #endif
23734 #include <windows.h>
23735 #ifdef HAVE_WINSOCK2_H
23736 #include <winsock2.h>
23737 #else
23738 #ifdef HAVE_WINSOCK_H
23739 #include <winsock.h>
23740 #endif
23741 #endif
23742 #define RECVFROMCALLCONV PASCAL
23743 #else
23744 #ifdef HAVE_SYS_TYPES_H
23745 #include <sys/types.h>
23746 #endif
23747 #ifdef HAVE_SYS_SOCKET_H
23748 #include <sys/socket.h>
23749 #endif
23750 #define RECVFROMCALLCONV
23751 #endif
23752                           extern $recvfrom_retv RECVFROMCALLCONV
23753                           recvfrom($recvfrom_arg1, $recvfrom_arg2,
23754                                    $recvfrom_arg3, $recvfrom_arg4,
23755                                    $recvfrom_arg5, $recvfrom_arg6);
23756
23757 int main (void)
23758 {
23759
23760                           $recvfrom_arg1 s=0;
23761                           $recvfrom_arg2 buf=0;
23762                           $recvfrom_arg3 len=0;
23763                           $recvfrom_arg4 flags=0;
23764                           $recvfrom_arg5 addr=0;
23765                           $recvfrom_arg6 addrlen=0;
23766                           $recvfrom_retv res=0;
23767                           res = recvfrom(s, buf, len, flags, addr, addrlen);
23768
23769  ;
23770  return 0;
23771 }
23772
23773 _ACEOF
23774 if ac_fn_c_try_compile "$LINENO"; then :
23775
23776                         curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
23777
23778 fi
23779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780                     fi
23781                   done
23782                 done
23783               done
23784             done
23785           done
23786         done
23787       done
23788
23789 fi
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
23791 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
23792     # Nearly last minute change for this release starts here
23793
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_RECVFROM 1
23796 _ACEOF
23797
23798     ac_cv_func_recvfrom="yes"
23799     # Nearly last minute change for this release ends here
23800     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
23801       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
23802 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
23803     else
23804       recvfrom_prev_IFS=$IFS; IFS=','
23805       set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
23806       IFS=$recvfrom_prev_IFS
23807       shift
23808       #
23809       recvfrom_ptrt_arg2=$2
23810       recvfrom_ptrt_arg5=$5
23811       recvfrom_ptrt_arg6=$6
23812       #
23813
23814 cat >>confdefs.h <<_ACEOF
23815 #define RECVFROM_TYPE_ARG1 $1
23816 _ACEOF
23817
23818
23819 cat >>confdefs.h <<_ACEOF
23820 #define RECVFROM_TYPE_ARG3 $3
23821 _ACEOF
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define RECVFROM_TYPE_ARG4 $4
23826 _ACEOF
23827
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define RECVFROM_TYPE_RETV $7
23831 _ACEOF
23832
23833       #
23834       prev_sh_opts=$-
23835       #
23836       case $prev_sh_opts in
23837         *f*)
23838           ;;
23839         *)
23840           set -f
23841           ;;
23842       esac
23843       #
23844       recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
23845       recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
23846       recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
23847       #
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
23851 _ACEOF
23852
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
23856 _ACEOF
23857
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
23861 _ACEOF
23862
23863       #
23864       if test "$recvfrom_type_arg2" = "void"; then
23865
23866 cat >>confdefs.h <<_ACEOF
23867 #define RECVFROM_TYPE_ARG2_IS_VOID 1
23868 _ACEOF
23869
23870       fi
23871       if test "$recvfrom_type_arg5" = "void"; then
23872
23873 cat >>confdefs.h <<_ACEOF
23874 #define RECVFROM_TYPE_ARG5_IS_VOID 1
23875 _ACEOF
23876
23877       fi
23878       if test "$recvfrom_type_arg6" = "void"; then
23879
23880 cat >>confdefs.h <<_ACEOF
23881 #define RECVFROM_TYPE_ARG6_IS_VOID 1
23882 _ACEOF
23883
23884       fi
23885       #
23886       case $prev_sh_opts in
23887         *f*)
23888           ;;
23889         *)
23890           set +f
23891           ;;
23892       esac
23893       #
23894
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_RECVFROM 1
23897 _ACEOF
23898
23899       ac_cv_func_recvfrom="yes"
23900     fi
23901   else
23902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
23903 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
23904   fi
23905
23906
23907       for ac_header in sys/types.h sys/socket.h
23908 do :
23909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23912   cat >>confdefs.h <<_ACEOF
23913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23914 _ACEOF
23915
23916 fi
23917
23918 done
23919
23920   #
23921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
23922 $as_echo_n "checking for send... " >&6; }
23923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h.  */
23925
23926
23927 #undef inline
23928 #ifdef HAVE_WINDOWS_H
23929 #ifndef WIN32_LEAN_AND_MEAN
23930 #define WIN32_LEAN_AND_MEAN
23931 #endif
23932 #include <windows.h>
23933 #ifdef HAVE_WINSOCK2_H
23934 #include <winsock2.h>
23935 #else
23936 #ifdef HAVE_WINSOCK_H
23937 #include <winsock.h>
23938 #endif
23939 #endif
23940 #else
23941 #ifdef HAVE_SYS_TYPES_H
23942 #include <sys/types.h>
23943 #endif
23944 #ifdef HAVE_SYS_SOCKET_H
23945 #include <sys/socket.h>
23946 #endif
23947 #endif
23948
23949 int main (void)
23950 {
23951
23952       send(0, 0, 0, 0);
23953
23954  ;
23955  return 0;
23956 }
23957
23958 _ACEOF
23959 if ac_fn_c_try_link "$LINENO"; then :
23960
23961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23962 $as_echo "yes" >&6; }
23963     curl_cv_send="yes"
23964
23965 else
23966
23967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23968 $as_echo "no" >&6; }
23969     curl_cv_send="no"
23970
23971 fi
23972 rm -f core conftest.err conftest.$ac_objext \
23973     conftest$ac_exeext conftest.$ac_ext
23974   #
23975   if test "$curl_cv_send" = "yes"; then
23976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
23977 $as_echo_n "checking types of args and return type for send... " >&6; }
23978 if test "${curl_cv_func_send_args+set}" = set; then :
23979   $as_echo_n "(cached) " >&6
23980 else
23981
23982       curl_cv_func_send_args="unknown"
23983       for send_retv in 'int' 'ssize_t'; do
23984         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23985           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
23986             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23987               for send_arg4 in 'int' 'unsigned int'; do
23988                 if test "$curl_cv_func_send_args" = "unknown"; then
23989                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991
23992
23993 #undef inline
23994 #ifdef HAVE_WINDOWS_H
23995 #ifndef WIN32_LEAN_AND_MEAN
23996 #define WIN32_LEAN_AND_MEAN
23997 #endif
23998 #include <windows.h>
23999 #ifdef HAVE_WINSOCK2_H
24000 #include <winsock2.h>
24001 #else
24002 #ifdef HAVE_WINSOCK_H
24003 #include <winsock.h>
24004 #endif
24005 #endif
24006 #define SENDCALLCONV PASCAL
24007 #else
24008 #ifdef HAVE_SYS_TYPES_H
24009 #include <sys/types.h>
24010 #endif
24011 #ifdef HAVE_SYS_SOCKET_H
24012 #include <sys/socket.h>
24013 #endif
24014 #define SENDCALLCONV
24015 #endif
24016                       extern $send_retv SENDCALLCONV
24017                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
24018
24019 int main (void)
24020 {
24021
24022                       $send_arg1 s=0;
24023                       $send_arg3 len=0;
24024                       $send_arg4 flags=0;
24025                       $send_retv res = send(s, 0, len, flags);
24026
24027  ;
24028  return 0;
24029 }
24030
24031 _ACEOF
24032 if ac_fn_c_try_compile "$LINENO"; then :
24033
24034                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
24035
24036 fi
24037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038                 fi
24039               done
24040             done
24041           done
24042         done
24043       done
24044
24045 fi
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
24047 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
24048     if test "$curl_cv_func_send_args" = "unknown"; then
24049       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
24050     else
24051       send_prev_IFS=$IFS; IFS=','
24052       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
24053       IFS=$send_prev_IFS
24054       shift
24055       #
24056       send_qual_type_arg2=$2
24057       #
24058
24059 cat >>confdefs.h <<_ACEOF
24060 #define SEND_TYPE_ARG1 $1
24061 _ACEOF
24062
24063
24064 cat >>confdefs.h <<_ACEOF
24065 #define SEND_TYPE_ARG3 $3
24066 _ACEOF
24067
24068
24069 cat >>confdefs.h <<_ACEOF
24070 #define SEND_TYPE_ARG4 $4
24071 _ACEOF
24072
24073
24074 cat >>confdefs.h <<_ACEOF
24075 #define SEND_TYPE_RETV $5
24076 _ACEOF
24077
24078       #
24079       prev_sh_opts=$-
24080       #
24081       case $prev_sh_opts in
24082         *f*)
24083           ;;
24084         *)
24085           set -f
24086           ;;
24087       esac
24088       #
24089       case "$send_qual_type_arg2" in
24090         const*)
24091           send_qual_arg2=const
24092           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
24093         ;;
24094         *)
24095           send_qual_arg2=
24096           send_type_arg2=$send_qual_type_arg2
24097         ;;
24098       esac
24099       #
24100
24101 cat >>confdefs.h <<_ACEOF
24102 #define SEND_QUAL_ARG2 $send_qual_arg2
24103 _ACEOF
24104
24105
24106 cat >>confdefs.h <<_ACEOF
24107 #define SEND_TYPE_ARG2 $send_type_arg2
24108 _ACEOF
24109
24110       #
24111       case $prev_sh_opts in
24112         *f*)
24113           ;;
24114         *)
24115           set +f
24116           ;;
24117       esac
24118       #
24119
24120 cat >>confdefs.h <<_ACEOF
24121 #define HAVE_SEND 1
24122 _ACEOF
24123
24124       ac_cv_func_send="yes"
24125     fi
24126   else
24127     as_fn_error $? "Unable to link function send" "$LINENO" 5
24128   fi
24129
24130
24131   for ac_header in sys/types.h sys/socket.h
24132 do :
24133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24136   cat >>confdefs.h <<_ACEOF
24137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24138 _ACEOF
24139
24140 fi
24141
24142 done
24143
24144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
24145 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
24146 if test "${ac_cv_msg_nosignal+set}" = set; then :
24147   $as_echo_n "(cached) " >&6
24148 else
24149
24150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24151 /* end confdefs.h.  */
24152
24153
24154 #undef inline
24155 #ifdef HAVE_WINDOWS_H
24156 #ifndef WIN32_LEAN_AND_MEAN
24157 #define WIN32_LEAN_AND_MEAN
24158 #endif
24159 #include <windows.h>
24160 #ifdef HAVE_WINSOCK2_H
24161 #include <winsock2.h>
24162 #else
24163 #ifdef HAVE_WINSOCK_H
24164 #include <winsock.h>
24165 #endif
24166 #endif
24167 #else
24168 #ifdef HAVE_SYS_TYPES_H
24169 #include <sys/types.h>
24170 #endif
24171 #ifdef HAVE_SYS_SOCKET_H
24172 #include <sys/socket.h>
24173 #endif
24174 #endif
24175
24176 int main (void)
24177 {
24178
24179         int flag=MSG_NOSIGNAL;
24180
24181  ;
24182  return 0;
24183 }
24184
24185 _ACEOF
24186 if ac_fn_c_try_compile "$LINENO"; then :
24187
24188       ac_cv_msg_nosignal="yes"
24189
24190 else
24191
24192       ac_cv_msg_nosignal="no"
24193
24194 fi
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
24199 $as_echo "$ac_cv_msg_nosignal" >&6; }
24200   case "$ac_cv_msg_nosignal" in
24201     yes)
24202
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_MSG_NOSIGNAL 1
24205 _ACEOF
24206
24207       ;;
24208   esac
24209
24210
24211
24212 curl_includes_unistd="\
24213 /* includes start */
24214 #ifdef HAVE_SYS_TYPES_H
24215 #  include <sys/types.h>
24216 #endif
24217 #ifdef HAVE_UNISTD_H
24218 #  include <unistd.h>
24219 #endif
24220 /* includes end */"
24221   for ac_header in sys/types.h unistd.h
24222 do :
24223   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
24225 "
24226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24227   cat >>confdefs.h <<_ACEOF
24228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24229 _ACEOF
24230
24231 fi
24232
24233 done
24234
24235
24236
24237     #
24238   tst_links_alarm="unknown"
24239   tst_proto_alarm="unknown"
24240   tst_compi_alarm="unknown"
24241   tst_allow_alarm="unknown"
24242   #
24243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
24244 $as_echo_n "checking if alarm can be linked... " >&6; }
24245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h.  */
24247
24248
24249 #define alarm innocuous_alarm
24250 #ifdef __STDC__
24251 # include <limits.h>
24252 #else
24253 # include <assert.h>
24254 #endif
24255 #undef alarm
24256 #ifdef __cplusplus
24257 extern "C"
24258 #endif
24259 char alarm ();
24260 #if defined __stub_alarm || defined __stub___alarm
24261 choke me
24262 #endif
24263
24264 int main (void)
24265 {
24266 return alarm ();
24267  ;
24268  return 0;
24269 }
24270
24271 _ACEOF
24272 if ac_fn_c_try_link "$LINENO"; then :
24273
24274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24275 $as_echo "yes" >&6; }
24276     tst_links_alarm="yes"
24277
24278 else
24279
24280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24281 $as_echo "no" >&6; }
24282     tst_links_alarm="no"
24283
24284 fi
24285 rm -f core conftest.err conftest.$ac_objext \
24286     conftest$ac_exeext conftest.$ac_ext
24287   #
24288   if test "$tst_links_alarm" = "yes"; then
24289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
24290 $as_echo_n "checking if alarm is prototyped... " >&6; }
24291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292 /* end confdefs.h.  */
24293
24294       $curl_includes_unistd
24295
24296 _ACEOF
24297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24298   $EGREP "alarm" >/dev/null 2>&1; then :
24299
24300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24301 $as_echo "yes" >&6; }
24302       tst_proto_alarm="yes"
24303
24304 else
24305
24306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307 $as_echo "no" >&6; }
24308       tst_proto_alarm="no"
24309
24310 fi
24311 rm -f conftest*
24312
24313   fi
24314   #
24315   if test "$tst_proto_alarm" = "yes"; then
24316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
24317 $as_echo_n "checking if alarm is compilable... " >&6; }
24318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h.  */
24320
24321
24322         $curl_includes_unistd
24323
24324 int main (void)
24325 {
24326
24327         if(0 != alarm(0))
24328           return 1;
24329
24330  ;
24331  return 0;
24332 }
24333
24334 _ACEOF
24335 if ac_fn_c_try_compile "$LINENO"; then :
24336
24337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24338 $as_echo "yes" >&6; }
24339       tst_compi_alarm="yes"
24340
24341 else
24342
24343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24344 $as_echo "no" >&6; }
24345       tst_compi_alarm="no"
24346
24347 fi
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24349   fi
24350   #
24351   if test "$tst_compi_alarm" = "yes"; then
24352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
24353 $as_echo_n "checking if alarm usage allowed... " >&6; }
24354     if test "x$curl_disallow_alarm" != "xyes"; then
24355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24356 $as_echo "yes" >&6; }
24357       tst_allow_alarm="yes"
24358     else
24359       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360 $as_echo "no" >&6; }
24361       tst_allow_alarm="no"
24362     fi
24363   fi
24364   #
24365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
24366 $as_echo_n "checking if alarm might be used... " >&6; }
24367   if test "$tst_links_alarm" = "yes" &&
24368      test "$tst_proto_alarm" = "yes" &&
24369      test "$tst_compi_alarm" = "yes" &&
24370      test "$tst_allow_alarm" = "yes"; then
24371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24372 $as_echo "yes" >&6; }
24373
24374 cat >>confdefs.h <<_ACEOF
24375 #define HAVE_ALARM 1
24376 _ACEOF
24377
24378     ac_cv_func_alarm="yes"
24379   else
24380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24381 $as_echo "no" >&6; }
24382     ac_cv_func_alarm="no"
24383   fi
24384
24385
24386 curl_includes_string="\
24387 /* includes start */
24388 #ifdef HAVE_SYS_TYPES_H
24389 #  include <sys/types.h>
24390 #endif
24391 #ifdef HAVE_STRING_H
24392 #  include <string.h>
24393 #endif
24394 #ifdef HAVE_STRINGS_H
24395 #  include <strings.h>
24396 #endif
24397 /* includes end */"
24398   for ac_header in sys/types.h string.h strings.h
24399 do :
24400   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
24402 "
24403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24404   cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24406 _ACEOF
24407
24408 fi
24409
24410 done
24411
24412
24413
24414 curl_includes_libgen="\
24415 /* includes start */
24416 #ifdef HAVE_SYS_TYPES_H
24417 #  include <sys/types.h>
24418 #endif
24419 #ifdef HAVE_LIBGEN_H
24420 #  include <libgen.h>
24421 #endif
24422 /* includes end */"
24423   for ac_header in sys/types.h libgen.h
24424 do :
24425   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
24427 "
24428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24429   cat >>confdefs.h <<_ACEOF
24430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24431 _ACEOF
24432
24433 fi
24434
24435 done
24436
24437
24438
24439         #
24440   tst_links_basename="unknown"
24441   tst_proto_basename="unknown"
24442   tst_compi_basename="unknown"
24443   tst_allow_basename="unknown"
24444   #
24445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
24446 $as_echo_n "checking if basename can be linked... " >&6; }
24447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h.  */
24449
24450
24451 #define basename innocuous_basename
24452 #ifdef __STDC__
24453 # include <limits.h>
24454 #else
24455 # include <assert.h>
24456 #endif
24457 #undef basename
24458 #ifdef __cplusplus
24459 extern "C"
24460 #endif
24461 char basename ();
24462 #if defined __stub_basename || defined __stub___basename
24463 choke me
24464 #endif
24465
24466 int main (void)
24467 {
24468 return basename ();
24469  ;
24470  return 0;
24471 }
24472
24473 _ACEOF
24474 if ac_fn_c_try_link "$LINENO"; then :
24475
24476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24477 $as_echo "yes" >&6; }
24478     tst_links_basename="yes"
24479
24480 else
24481
24482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24483 $as_echo "no" >&6; }
24484     tst_links_basename="no"
24485
24486 fi
24487 rm -f core conftest.err conftest.$ac_objext \
24488     conftest$ac_exeext conftest.$ac_ext
24489   #
24490   if test "$tst_links_basename" = "yes"; then
24491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
24492 $as_echo_n "checking if basename is prototyped... " >&6; }
24493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h.  */
24495
24496       $curl_includes_string
24497       $curl_includes_libgen
24498       $curl_includes_unistd
24499
24500 _ACEOF
24501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24502   $EGREP "basename" >/dev/null 2>&1; then :
24503
24504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24505 $as_echo "yes" >&6; }
24506       tst_proto_basename="yes"
24507
24508 else
24509
24510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511 $as_echo "no" >&6; }
24512       tst_proto_basename="no"
24513
24514 fi
24515 rm -f conftest*
24516
24517   fi
24518   #
24519   if test "$tst_proto_basename" = "yes"; then
24520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
24521 $as_echo_n "checking if basename is compilable... " >&6; }
24522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24523 /* end confdefs.h.  */
24524
24525
24526         $curl_includes_string
24527         $curl_includes_libgen
24528         $curl_includes_unistd
24529
24530 int main (void)
24531 {
24532
24533         if(0 != basename(0))
24534           return 1;
24535
24536  ;
24537  return 0;
24538 }
24539
24540 _ACEOF
24541 if ac_fn_c_try_compile "$LINENO"; then :
24542
24543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24544 $as_echo "yes" >&6; }
24545       tst_compi_basename="yes"
24546
24547 else
24548
24549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24550 $as_echo "no" >&6; }
24551       tst_compi_basename="no"
24552
24553 fi
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24555   fi
24556   #
24557   if test "$tst_compi_basename" = "yes"; then
24558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
24559 $as_echo_n "checking if basename usage allowed... " >&6; }
24560     if test "x$curl_disallow_basename" != "xyes"; then
24561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24562 $as_echo "yes" >&6; }
24563       tst_allow_basename="yes"
24564     else
24565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24566 $as_echo "no" >&6; }
24567       tst_allow_basename="no"
24568     fi
24569   fi
24570   #
24571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
24572 $as_echo_n "checking if basename might be used... " >&6; }
24573   if test "$tst_links_basename" = "yes" &&
24574      test "$tst_proto_basename" = "yes" &&
24575      test "$tst_compi_basename" = "yes" &&
24576      test "$tst_allow_basename" = "yes"; then
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24578 $as_echo "yes" >&6; }
24579
24580 cat >>confdefs.h <<_ACEOF
24581 #define HAVE_BASENAME 1
24582 _ACEOF
24583
24584     ac_cv_func_basename="yes"
24585   else
24586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24588     ac_cv_func_basename="no"
24589   fi
24590
24591
24592 curl_includes_socket="\
24593 /* includes start */
24594 #ifdef HAVE_SYS_TYPES_H
24595 #  include <sys/types.h>
24596 #endif
24597 #ifdef HAVE_SOCKET_H
24598 #  include <socket.h>
24599 #endif
24600 /* includes end */"
24601   for ac_header in sys/types.h socket.h
24602 do :
24603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
24605 "
24606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24607   cat >>confdefs.h <<_ACEOF
24608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24609 _ACEOF
24610
24611 fi
24612
24613 done
24614
24615
24616
24617       #
24618   tst_links_closesocket="unknown"
24619   tst_proto_closesocket="unknown"
24620   tst_compi_closesocket="unknown"
24621   tst_allow_closesocket="unknown"
24622   #
24623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
24624 $as_echo_n "checking if closesocket can be linked... " >&6; }
24625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h.  */
24627
24628
24629       $curl_includes_winsock2
24630       $curl_includes_socket
24631
24632 int main (void)
24633 {
24634
24635       if(0 != closesocket(0))
24636         return 1;
24637
24638  ;
24639  return 0;
24640 }
24641
24642 _ACEOF
24643 if ac_fn_c_try_link "$LINENO"; then :
24644
24645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24646 $as_echo "yes" >&6; }
24647     tst_links_closesocket="yes"
24648
24649 else
24650
24651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24652 $as_echo "no" >&6; }
24653     tst_links_closesocket="no"
24654
24655 fi
24656 rm -f core conftest.err conftest.$ac_objext \
24657     conftest$ac_exeext conftest.$ac_ext
24658   #
24659   if test "$tst_links_closesocket" = "yes"; then
24660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
24661 $as_echo_n "checking if closesocket is prototyped... " >&6; }
24662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h.  */
24664
24665       $curl_includes_winsock2
24666       $curl_includes_socket
24667
24668 _ACEOF
24669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24670   $EGREP "closesocket" >/dev/null 2>&1; then :
24671
24672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24673 $as_echo "yes" >&6; }
24674       tst_proto_closesocket="yes"
24675
24676 else
24677
24678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24680       tst_proto_closesocket="no"
24681
24682 fi
24683 rm -f conftest*
24684
24685   fi
24686   #
24687   if test "$tst_proto_closesocket" = "yes"; then
24688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
24689 $as_echo_n "checking if closesocket is compilable... " >&6; }
24690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h.  */
24692
24693
24694         $curl_includes_winsock2
24695         $curl_includes_socket
24696
24697 int main (void)
24698 {
24699
24700         if(0 != closesocket(0))
24701           return 1;
24702
24703  ;
24704  return 0;
24705 }
24706
24707 _ACEOF
24708 if ac_fn_c_try_compile "$LINENO"; then :
24709
24710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24711 $as_echo "yes" >&6; }
24712       tst_compi_closesocket="yes"
24713
24714 else
24715
24716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24717 $as_echo "no" >&6; }
24718       tst_compi_closesocket="no"
24719
24720 fi
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722   fi
24723   #
24724   if test "$tst_compi_closesocket" = "yes"; then
24725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
24726 $as_echo_n "checking if closesocket usage allowed... " >&6; }
24727     if test "x$curl_disallow_closesocket" != "xyes"; then
24728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24729 $as_echo "yes" >&6; }
24730       tst_allow_closesocket="yes"
24731     else
24732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24733 $as_echo "no" >&6; }
24734       tst_allow_closesocket="no"
24735     fi
24736   fi
24737   #
24738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
24739 $as_echo_n "checking if closesocket might be used... " >&6; }
24740   if test "$tst_links_closesocket" = "yes" &&
24741      test "$tst_proto_closesocket" = "yes" &&
24742      test "$tst_compi_closesocket" = "yes" &&
24743      test "$tst_allow_closesocket" = "yes"; then
24744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24745 $as_echo "yes" >&6; }
24746
24747 cat >>confdefs.h <<_ACEOF
24748 #define HAVE_CLOSESOCKET 1
24749 _ACEOF
24750
24751     ac_cv_func_closesocket="yes"
24752   else
24753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24754 $as_echo "no" >&6; }
24755     ac_cv_func_closesocket="no"
24756   fi
24757
24758
24759     #
24760   tst_links_closesocket_camel="unknown"
24761   tst_proto_closesocket_camel="unknown"
24762   tst_compi_closesocket_camel="unknown"
24763   tst_allow_closesocket_camel="unknown"
24764   #
24765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
24766 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
24767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h.  */
24769
24770
24771       $curl_includes_sys_socket
24772
24773 int main (void)
24774 {
24775
24776       if(0 != CloseSocket(0))
24777         return 1;
24778
24779  ;
24780  return 0;
24781 }
24782
24783 _ACEOF
24784 if ac_fn_c_try_link "$LINENO"; then :
24785
24786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24787 $as_echo "yes" >&6; }
24788     tst_links_closesocket_camel="yes"
24789
24790 else
24791
24792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24793 $as_echo "no" >&6; }
24794     tst_links_closesocket_camel="no"
24795
24796 fi
24797 rm -f core conftest.err conftest.$ac_objext \
24798     conftest$ac_exeext conftest.$ac_ext
24799   #
24800   if test "$tst_links_closesocket_camel" = "yes"; then
24801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
24802 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
24803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h.  */
24805
24806       $curl_includes_sys_socket
24807
24808 _ACEOF
24809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24810   $EGREP "CloseSocket" >/dev/null 2>&1; then :
24811
24812       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24813 $as_echo "yes" >&6; }
24814       tst_proto_closesocket_camel="yes"
24815
24816 else
24817
24818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24819 $as_echo "no" >&6; }
24820       tst_proto_closesocket_camel="no"
24821
24822 fi
24823 rm -f conftest*
24824
24825   fi
24826   #
24827   if test "$tst_proto_closesocket_camel" = "yes"; then
24828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
24829 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
24830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h.  */
24832
24833
24834         $curl_includes_sys_socket
24835
24836 int main (void)
24837 {
24838
24839         if(0 != CloseSocket(0))
24840           return 1;
24841
24842  ;
24843  return 0;
24844 }
24845
24846 _ACEOF
24847 if ac_fn_c_try_compile "$LINENO"; then :
24848
24849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24850 $as_echo "yes" >&6; }
24851       tst_compi_closesocket_camel="yes"
24852
24853 else
24854
24855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857       tst_compi_closesocket_camel="no"
24858
24859 fi
24860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24861   fi
24862   #
24863   if test "$tst_compi_closesocket_camel" = "yes"; then
24864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
24865 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
24866     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
24867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24868 $as_echo "yes" >&6; }
24869       tst_allow_closesocket_camel="yes"
24870     else
24871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873       tst_allow_closesocket_camel="no"
24874     fi
24875   fi
24876   #
24877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
24878 $as_echo_n "checking if CloseSocket might be used... " >&6; }
24879   if test "$tst_links_closesocket_camel" = "yes" &&
24880      test "$tst_proto_closesocket_camel" = "yes" &&
24881      test "$tst_compi_closesocket_camel" = "yes" &&
24882      test "$tst_allow_closesocket_camel" = "yes"; then
24883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884 $as_echo "yes" >&6; }
24885
24886 cat >>confdefs.h <<_ACEOF
24887 #define HAVE_CLOSESOCKET_CAMEL 1
24888 _ACEOF
24889
24890     ac_cv_func_closesocket_camel="yes"
24891   else
24892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24893 $as_echo "no" >&6; }
24894     ac_cv_func_closesocket_camel="no"
24895   fi
24896
24897
24898         #
24899   tst_links_connect="unknown"
24900   tst_proto_connect="unknown"
24901   tst_compi_connect="unknown"
24902   tst_allow_connect="unknown"
24903   #
24904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
24905 $as_echo_n "checking if connect can be linked... " >&6; }
24906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907 /* end confdefs.h.  */
24908
24909
24910       $curl_includes_winsock2
24911       $curl_includes_sys_socket
24912       $curl_includes_socket
24913
24914 int main (void)
24915 {
24916
24917       if(0 != connect(0, 0, 0))
24918         return 1;
24919
24920  ;
24921  return 0;
24922 }
24923
24924 _ACEOF
24925 if ac_fn_c_try_link "$LINENO"; then :
24926
24927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24928 $as_echo "yes" >&6; }
24929     tst_links_connect="yes"
24930
24931 else
24932
24933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24934 $as_echo "no" >&6; }
24935     tst_links_connect="no"
24936
24937 fi
24938 rm -f core conftest.err conftest.$ac_objext \
24939     conftest$ac_exeext conftest.$ac_ext
24940   #
24941   if test "$tst_links_connect" = "yes"; then
24942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
24943 $as_echo_n "checking if connect is prototyped... " >&6; }
24944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24945 /* end confdefs.h.  */
24946
24947       $curl_includes_winsock2
24948       $curl_includes_sys_socket
24949       $curl_includes_socket
24950
24951 _ACEOF
24952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24953   $EGREP "connect" >/dev/null 2>&1; then :
24954
24955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24956 $as_echo "yes" >&6; }
24957       tst_proto_connect="yes"
24958
24959 else
24960
24961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 $as_echo "no" >&6; }
24963       tst_proto_connect="no"
24964
24965 fi
24966 rm -f conftest*
24967
24968   fi
24969   #
24970   if test "$tst_proto_connect" = "yes"; then
24971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
24972 $as_echo_n "checking if connect is compilable... " >&6; }
24973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974 /* end confdefs.h.  */
24975
24976
24977         $curl_includes_winsock2
24978         $curl_includes_sys_socket
24979         $curl_includes_socket
24980
24981 int main (void)
24982 {
24983
24984         if(0 != connect(0, 0, 0))
24985           return 1;
24986
24987  ;
24988  return 0;
24989 }
24990
24991 _ACEOF
24992 if ac_fn_c_try_compile "$LINENO"; then :
24993
24994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24995 $as_echo "yes" >&6; }
24996       tst_compi_connect="yes"
24997
24998 else
24999
25000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25002       tst_compi_connect="no"
25003
25004 fi
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006   fi
25007   #
25008   if test "$tst_compi_connect" = "yes"; then
25009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25010 $as_echo_n "checking if connect usage allowed... " >&6; }
25011     if test "x$curl_disallow_connect" != "xyes"; then
25012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25013 $as_echo "yes" >&6; }
25014       tst_allow_connect="yes"
25015     else
25016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25017 $as_echo "no" >&6; }
25018       tst_allow_connect="no"
25019     fi
25020   fi
25021   #
25022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25023 $as_echo_n "checking if connect might be used... " >&6; }
25024   if test "$tst_links_connect" = "yes" &&
25025      test "$tst_proto_connect" = "yes" &&
25026      test "$tst_compi_connect" = "yes" &&
25027      test "$tst_allow_connect" = "yes"; then
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25029 $as_echo "yes" >&6; }
25030
25031 cat >>confdefs.h <<_ACEOF
25032 #define HAVE_CONNECT 1
25033 _ACEOF
25034
25035     ac_cv_func_connect="yes"
25036   else
25037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038 $as_echo "no" >&6; }
25039     ac_cv_func_connect="no"
25040   fi
25041
25042
25043 curl_includes_fcntl="\
25044 /* includes start */
25045 #ifdef HAVE_SYS_TYPES_H
25046 #  include <sys/types.h>
25047 #endif
25048 #ifdef HAVE_UNISTD_H
25049 #  include <unistd.h>
25050 #endif
25051 #ifdef HAVE_FCNTL_H
25052 #  include <fcntl.h>
25053 #endif
25054 /* includes end */"
25055   for ac_header in sys/types.h unistd.h fcntl.h
25056 do :
25057   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25058 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
25059 "
25060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25061   cat >>confdefs.h <<_ACEOF
25062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25063 _ACEOF
25064
25065 fi
25066
25067 done
25068
25069
25070
25071     #
25072   tst_links_fcntl="unknown"
25073   tst_proto_fcntl="unknown"
25074   tst_compi_fcntl="unknown"
25075   tst_allow_fcntl="unknown"
25076   #
25077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25078 $as_echo_n "checking if fcntl can be linked... " >&6; }
25079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080 /* end confdefs.h.  */
25081
25082
25083 #define fcntl innocuous_fcntl
25084 #ifdef __STDC__
25085 # include <limits.h>
25086 #else
25087 # include <assert.h>
25088 #endif
25089 #undef fcntl
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 char fcntl ();
25094 #if defined __stub_fcntl || defined __stub___fcntl
25095 choke me
25096 #endif
25097
25098 int main (void)
25099 {
25100 return fcntl ();
25101  ;
25102  return 0;
25103 }
25104
25105 _ACEOF
25106 if ac_fn_c_try_link "$LINENO"; then :
25107
25108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25109 $as_echo "yes" >&6; }
25110     tst_links_fcntl="yes"
25111
25112 else
25113
25114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25115 $as_echo "no" >&6; }
25116     tst_links_fcntl="no"
25117
25118 fi
25119 rm -f core conftest.err conftest.$ac_objext \
25120     conftest$ac_exeext conftest.$ac_ext
25121   #
25122   if test "$tst_links_fcntl" = "yes"; then
25123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25124 $as_echo_n "checking if fcntl is prototyped... " >&6; }
25125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h.  */
25127
25128       $curl_includes_fcntl
25129
25130 _ACEOF
25131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25132   $EGREP "fcntl" >/dev/null 2>&1; then :
25133
25134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25135 $as_echo "yes" >&6; }
25136       tst_proto_fcntl="yes"
25137
25138 else
25139
25140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25141 $as_echo "no" >&6; }
25142       tst_proto_fcntl="no"
25143
25144 fi
25145 rm -f conftest*
25146
25147   fi
25148   #
25149   if test "$tst_proto_fcntl" = "yes"; then
25150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25151 $as_echo_n "checking if fcntl is compilable... " >&6; }
25152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153 /* end confdefs.h.  */
25154
25155
25156         $curl_includes_fcntl
25157
25158 int main (void)
25159 {
25160
25161         if(0 != fcntl(0, 0, 0))
25162           return 1;
25163
25164  ;
25165  return 0;
25166 }
25167
25168 _ACEOF
25169 if ac_fn_c_try_compile "$LINENO"; then :
25170
25171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25172 $as_echo "yes" >&6; }
25173       tst_compi_fcntl="yes"
25174
25175 else
25176
25177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25178 $as_echo "no" >&6; }
25179       tst_compi_fcntl="no"
25180
25181 fi
25182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183   fi
25184   #
25185   if test "$tst_compi_fcntl" = "yes"; then
25186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25187 $as_echo_n "checking if fcntl usage allowed... " >&6; }
25188     if test "x$curl_disallow_fcntl" != "xyes"; then
25189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25190 $as_echo "yes" >&6; }
25191       tst_allow_fcntl="yes"
25192     else
25193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25194 $as_echo "no" >&6; }
25195       tst_allow_fcntl="no"
25196     fi
25197   fi
25198   #
25199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25200 $as_echo_n "checking if fcntl might be used... " >&6; }
25201   if test "$tst_links_fcntl" = "yes" &&
25202      test "$tst_proto_fcntl" = "yes" &&
25203      test "$tst_compi_fcntl" = "yes" &&
25204      test "$tst_allow_fcntl" = "yes"; then
25205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25206 $as_echo "yes" >&6; }
25207
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_FCNTL 1
25210 _ACEOF
25211
25212     ac_cv_func_fcntl="yes"
25213
25214   #
25215   tst_compi_fcntl_o_nonblock="unknown"
25216   tst_allow_fcntl_o_nonblock="unknown"
25217   #
25218   case $host_os in
25219     sunos4* | aix3* | beos*)
25220             curl_disallow_fcntl_o_nonblock="yes"
25221       ;;
25222   esac
25223   #
25224   if test "$ac_cv_func_fcntl" = "yes"; then
25225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25226 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228 /* end confdefs.h.  */
25229
25230
25231         $curl_includes_fcntl
25232
25233 int main (void)
25234 {
25235
25236         int flags = 0;
25237         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25238           return 1;
25239
25240  ;
25241  return 0;
25242 }
25243
25244 _ACEOF
25245 if ac_fn_c_try_compile "$LINENO"; then :
25246
25247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25248 $as_echo "yes" >&6; }
25249       tst_compi_fcntl_o_nonblock="yes"
25250
25251 else
25252
25253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25254 $as_echo "no" >&6; }
25255       tst_compi_fcntl_o_nonblock="no"
25256
25257 fi
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259   fi
25260   #
25261   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25263 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25264     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
25265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25266 $as_echo "yes" >&6; }
25267       tst_allow_fcntl_o_nonblock="yes"
25268     else
25269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25270 $as_echo "no" >&6; }
25271       tst_allow_fcntl_o_nonblock="no"
25272     fi
25273   fi
25274   #
25275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25276 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25277   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25278      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25280 $as_echo "yes" >&6; }
25281
25282 cat >>confdefs.h <<_ACEOF
25283 #define HAVE_FCNTL_O_NONBLOCK 1
25284 _ACEOF
25285
25286     ac_cv_func_fcntl_o_nonblock="yes"
25287   else
25288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25290     ac_cv_func_fcntl_o_nonblock="no"
25291   fi
25292
25293   else
25294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25295 $as_echo "no" >&6; }
25296     ac_cv_func_fcntl="no"
25297   fi
25298
25299
25300 curl_includes_stdio="\
25301 /* includes start */
25302 #ifdef HAVE_SYS_TYPES_H
25303 #  include <sys/types.h>
25304 #endif
25305 #ifdef HAVE_STDIO_H
25306 #  include <stdio.h>
25307 #endif
25308 /* includes end */"
25309   for ac_header in sys/types.h stdio.h
25310 do :
25311   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
25313 "
25314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25315   cat >>confdefs.h <<_ACEOF
25316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25317 _ACEOF
25318
25319 fi
25320
25321 done
25322
25323
25324
25325     #
25326   tst_links_fdopen="unknown"
25327   tst_proto_fdopen="unknown"
25328   tst_compi_fdopen="unknown"
25329   tst_allow_fdopen="unknown"
25330   #
25331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
25332 $as_echo_n "checking if fdopen can be linked... " >&6; }
25333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h.  */
25335
25336
25337 #define fdopen innocuous_fdopen
25338 #ifdef __STDC__
25339 # include <limits.h>
25340 #else
25341 # include <assert.h>
25342 #endif
25343 #undef fdopen
25344 #ifdef __cplusplus
25345 extern "C"
25346 #endif
25347 char fdopen ();
25348 #if defined __stub_fdopen || defined __stub___fdopen
25349 choke me
25350 #endif
25351
25352 int main (void)
25353 {
25354 return fdopen ();
25355  ;
25356  return 0;
25357 }
25358
25359 _ACEOF
25360 if ac_fn_c_try_link "$LINENO"; then :
25361
25362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25363 $as_echo "yes" >&6; }
25364     tst_links_fdopen="yes"
25365
25366 else
25367
25368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25370     tst_links_fdopen="no"
25371
25372 fi
25373 rm -f core conftest.err conftest.$ac_objext \
25374     conftest$ac_exeext conftest.$ac_ext
25375   #
25376   if test "$tst_links_fdopen" = "yes"; then
25377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
25378 $as_echo_n "checking if fdopen is prototyped... " >&6; }
25379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h.  */
25381
25382       $curl_includes_stdio
25383
25384 _ACEOF
25385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25386   $EGREP "fdopen" >/dev/null 2>&1; then :
25387
25388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25389 $as_echo "yes" >&6; }
25390       tst_proto_fdopen="yes"
25391
25392 else
25393
25394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25395 $as_echo "no" >&6; }
25396       tst_proto_fdopen="no"
25397
25398 fi
25399 rm -f conftest*
25400
25401   fi
25402   #
25403   if test "$tst_proto_fdopen" = "yes"; then
25404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
25405 $as_echo_n "checking if fdopen is compilable... " >&6; }
25406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h.  */
25408
25409
25410         $curl_includes_stdio
25411
25412 int main (void)
25413 {
25414
25415         if(0 != fdopen(0, 0))
25416           return 1;
25417
25418  ;
25419  return 0;
25420 }
25421
25422 _ACEOF
25423 if ac_fn_c_try_compile "$LINENO"; then :
25424
25425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25426 $as_echo "yes" >&6; }
25427       tst_compi_fdopen="yes"
25428
25429 else
25430
25431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25432 $as_echo "no" >&6; }
25433       tst_compi_fdopen="no"
25434
25435 fi
25436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437   fi
25438   #
25439   if test "$tst_compi_fdopen" = "yes"; then
25440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
25441 $as_echo_n "checking if fdopen usage allowed... " >&6; }
25442     if test "x$curl_disallow_fdopen" != "xyes"; then
25443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25444 $as_echo "yes" >&6; }
25445       tst_allow_fdopen="yes"
25446     else
25447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25449       tst_allow_fdopen="no"
25450     fi
25451   fi
25452   #
25453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
25454 $as_echo_n "checking if fdopen might be used... " >&6; }
25455   if test "$tst_links_fdopen" = "yes" &&
25456      test "$tst_proto_fdopen" = "yes" &&
25457      test "$tst_compi_fdopen" = "yes" &&
25458      test "$tst_allow_fdopen" = "yes"; then
25459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25461
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_FDOPEN 1
25464 _ACEOF
25465
25466     ac_cv_func_fdopen="yes"
25467   else
25468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25469 $as_echo "no" >&6; }
25470     ac_cv_func_fdopen="no"
25471   fi
25472
25473
25474 curl_includes_netdb="\
25475 /* includes start */
25476 #ifdef HAVE_SYS_TYPES_H
25477 #  include <sys/types.h>
25478 #endif
25479 #ifdef HAVE_NETDB_H
25480 #  include <netdb.h>
25481 #endif
25482 /* includes end */"
25483   for ac_header in sys/types.h netdb.h
25484 do :
25485   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
25487 "
25488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25489   cat >>confdefs.h <<_ACEOF
25490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25491 _ACEOF
25492
25493 fi
25494
25495 done
25496
25497
25498
25499         #
25500   tst_links_freeaddrinfo="unknown"
25501   tst_proto_freeaddrinfo="unknown"
25502   tst_compi_freeaddrinfo="unknown"
25503   tst_allow_freeaddrinfo="unknown"
25504   #
25505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
25506 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
25507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h.  */
25509
25510
25511       $curl_includes_ws2tcpip
25512       $curl_includes_sys_socket
25513       $curl_includes_netdb
25514
25515 int main (void)
25516 {
25517
25518       freeaddrinfo(0);
25519
25520  ;
25521  return 0;
25522 }
25523
25524 _ACEOF
25525 if ac_fn_c_try_link "$LINENO"; then :
25526
25527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25528 $as_echo "yes" >&6; }
25529     tst_links_freeaddrinfo="yes"
25530
25531 else
25532
25533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25534 $as_echo "no" >&6; }
25535     tst_links_freeaddrinfo="no"
25536
25537 fi
25538 rm -f core conftest.err conftest.$ac_objext \
25539     conftest$ac_exeext conftest.$ac_ext
25540   #
25541   if test "$tst_links_freeaddrinfo" = "yes"; then
25542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
25543 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
25544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h.  */
25546
25547       $curl_includes_ws2tcpip
25548       $curl_includes_sys_socket
25549       $curl_includes_netdb
25550
25551 _ACEOF
25552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25553   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
25554
25555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25556 $as_echo "yes" >&6; }
25557       tst_proto_freeaddrinfo="yes"
25558
25559 else
25560
25561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25562 $as_echo "no" >&6; }
25563       tst_proto_freeaddrinfo="no"
25564
25565 fi
25566 rm -f conftest*
25567
25568   fi
25569   #
25570   if test "$tst_proto_freeaddrinfo" = "yes"; then
25571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
25572 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
25573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h.  */
25575
25576
25577         $curl_includes_ws2tcpip
25578         $curl_includes_sys_socket
25579         $curl_includes_netdb
25580
25581 int main (void)
25582 {
25583
25584         freeaddrinfo(0);
25585
25586  ;
25587  return 0;
25588 }
25589
25590 _ACEOF
25591 if ac_fn_c_try_compile "$LINENO"; then :
25592
25593       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25594 $as_echo "yes" >&6; }
25595       tst_compi_freeaddrinfo="yes"
25596
25597 else
25598
25599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25601       tst_compi_freeaddrinfo="no"
25602
25603 fi
25604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25605   fi
25606   #
25607   if test "$tst_compi_freeaddrinfo" = "yes"; then
25608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
25609 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
25610     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
25611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25612 $as_echo "yes" >&6; }
25613       tst_allow_freeaddrinfo="yes"
25614     else
25615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25616 $as_echo "no" >&6; }
25617       tst_allow_freeaddrinfo="no"
25618     fi
25619   fi
25620   #
25621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
25622 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
25623   if test "$tst_links_freeaddrinfo" = "yes" &&
25624      test "$tst_proto_freeaddrinfo" = "yes" &&
25625      test "$tst_compi_freeaddrinfo" = "yes" &&
25626      test "$tst_allow_freeaddrinfo" = "yes"; then
25627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25628 $as_echo "yes" >&6; }
25629
25630 cat >>confdefs.h <<_ACEOF
25631 #define HAVE_FREEADDRINFO 1
25632 _ACEOF
25633
25634     ac_cv_func_freeaddrinfo="yes"
25635   else
25636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25637 $as_echo "no" >&6; }
25638     ac_cv_func_freeaddrinfo="no"
25639   fi
25640
25641
25642 curl_includes_ifaddrs="\
25643 /* includes start */
25644 #ifdef HAVE_SYS_TYPES_H
25645 #  include <sys/types.h>
25646 #endif
25647 #ifdef HAVE_SYS_SOCKET_H
25648 #  include <sys/socket.h>
25649 #endif
25650 #ifdef HAVE_NETINET_IN_H
25651 #  include <netinet/in.h>
25652 #endif
25653 #ifdef HAVE_IFADDRS_H
25654 #  include <ifaddrs.h>
25655 #endif
25656 /* includes end */"
25657   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
25658 do :
25659   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
25661 "
25662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25663   cat >>confdefs.h <<_ACEOF
25664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25665 _ACEOF
25666
25667 fi
25668
25669 done
25670
25671
25672
25673     #
25674   tst_links_freeifaddrs="unknown"
25675   tst_proto_freeifaddrs="unknown"
25676   tst_compi_freeifaddrs="unknown"
25677   tst_allow_freeifaddrs="unknown"
25678   #
25679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
25680 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
25681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h.  */
25683
25684
25685 #define freeifaddrs innocuous_freeifaddrs
25686 #ifdef __STDC__
25687 # include <limits.h>
25688 #else
25689 # include <assert.h>
25690 #endif
25691 #undef freeifaddrs
25692 #ifdef __cplusplus
25693 extern "C"
25694 #endif
25695 char freeifaddrs ();
25696 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
25697 choke me
25698 #endif
25699
25700 int main (void)
25701 {
25702 return freeifaddrs ();
25703  ;
25704  return 0;
25705 }
25706
25707 _ACEOF
25708 if ac_fn_c_try_link "$LINENO"; then :
25709
25710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25711 $as_echo "yes" >&6; }
25712     tst_links_freeifaddrs="yes"
25713
25714 else
25715
25716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25717 $as_echo "no" >&6; }
25718     tst_links_freeifaddrs="no"
25719
25720 fi
25721 rm -f core conftest.err conftest.$ac_objext \
25722     conftest$ac_exeext conftest.$ac_ext
25723   #
25724   if test "$tst_links_freeifaddrs" = "yes"; then
25725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
25726 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
25727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h.  */
25729
25730       $curl_includes_ifaddrs
25731
25732 _ACEOF
25733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25734   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
25735
25736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25737 $as_echo "yes" >&6; }
25738       tst_proto_freeifaddrs="yes"
25739
25740 else
25741
25742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25743 $as_echo "no" >&6; }
25744       tst_proto_freeifaddrs="no"
25745
25746 fi
25747 rm -f conftest*
25748
25749   fi
25750   #
25751   if test "$tst_proto_freeifaddrs" = "yes"; then
25752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
25753 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
25754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757
25758         $curl_includes_ifaddrs
25759
25760 int main (void)
25761 {
25762
25763         freeifaddrs(0);
25764
25765  ;
25766  return 0;
25767 }
25768
25769 _ACEOF
25770 if ac_fn_c_try_compile "$LINENO"; then :
25771
25772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25773 $as_echo "yes" >&6; }
25774       tst_compi_freeifaddrs="yes"
25775
25776 else
25777
25778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25779 $as_echo "no" >&6; }
25780       tst_compi_freeifaddrs="no"
25781
25782 fi
25783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25784   fi
25785   #
25786   if test "$tst_compi_freeifaddrs" = "yes"; then
25787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
25788 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
25789     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
25790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25791 $as_echo "yes" >&6; }
25792       tst_allow_freeifaddrs="yes"
25793     else
25794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25795 $as_echo "no" >&6; }
25796       tst_allow_freeifaddrs="no"
25797     fi
25798   fi
25799   #
25800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
25801 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
25802   if test "$tst_links_freeifaddrs" = "yes" &&
25803      test "$tst_proto_freeifaddrs" = "yes" &&
25804      test "$tst_compi_freeifaddrs" = "yes" &&
25805      test "$tst_allow_freeifaddrs" = "yes"; then
25806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25807 $as_echo "yes" >&6; }
25808
25809 cat >>confdefs.h <<_ACEOF
25810 #define HAVE_FREEIFADDRS 1
25811 _ACEOF
25812
25813     ac_cv_func_freeifaddrs="yes"
25814   else
25815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25816 $as_echo "no" >&6; }
25817     ac_cv_func_freeifaddrs="no"
25818   fi
25819
25820
25821 curl_includes_sys_xattr="\
25822 /* includes start */
25823 #ifdef HAVE_SYS_TYPES_H
25824 #  include <sys/types.h>
25825 #endif
25826 #ifdef HAVE_SYS_XATTR_H
25827 #  include <sys/xattr.h>
25828 #endif
25829 /* includes end */"
25830   for ac_header in sys/types.h sys/xattr.h
25831 do :
25832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
25834 "
25835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25836   cat >>confdefs.h <<_ACEOF
25837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25838 _ACEOF
25839
25840 fi
25841
25842 done
25843
25844
25845
25846     #
25847   tst_links_fsetxattr="unknown"
25848   tst_proto_fsetxattr="unknown"
25849   tst_compi_fsetxattr="unknown"
25850   tst_allow_fsetxattr="unknown"
25851   tst_nargs_fsetxattr="unknown"
25852   #
25853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
25854 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
25855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h.  */
25857
25858
25859 #define fsetxattr innocuous_fsetxattr
25860 #ifdef __STDC__
25861 # include <limits.h>
25862 #else
25863 # include <assert.h>
25864 #endif
25865 #undef fsetxattr
25866 #ifdef __cplusplus
25867 extern "C"
25868 #endif
25869 char fsetxattr ();
25870 #if defined __stub_fsetxattr || defined __stub___fsetxattr
25871 choke me
25872 #endif
25873
25874 int main (void)
25875 {
25876 return fsetxattr ();
25877  ;
25878  return 0;
25879 }
25880
25881 _ACEOF
25882 if ac_fn_c_try_link "$LINENO"; then :
25883
25884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25885 $as_echo "yes" >&6; }
25886     tst_links_fsetxattr="yes"
25887
25888 else
25889
25890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25891 $as_echo "no" >&6; }
25892     tst_links_fsetxattr="no"
25893
25894 fi
25895 rm -f core conftest.err conftest.$ac_objext \
25896     conftest$ac_exeext conftest.$ac_ext
25897   #
25898   if test "$tst_links_fsetxattr" = "yes"; then
25899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
25900 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
25901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25902 /* end confdefs.h.  */
25903
25904       $curl_includes_sys_xattr
25905
25906 _ACEOF
25907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25908   $EGREP "fsetxattr" >/dev/null 2>&1; then :
25909
25910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25911 $as_echo "yes" >&6; }
25912       tst_proto_fsetxattr="yes"
25913
25914 else
25915
25916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25917 $as_echo "no" >&6; }
25918       tst_proto_fsetxattr="no"
25919
25920 fi
25921 rm -f conftest*
25922
25923   fi
25924   #
25925   if test "$tst_proto_fsetxattr" = "yes"; then
25926     if test "$tst_nargs_fsetxattr" = "unknown"; then
25927       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
25928 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
25929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h.  */
25931
25932
25933           $curl_includes_sys_xattr
25934
25935 int main (void)
25936 {
25937
25938           if(0 != fsetxattr(0, 0, 0, 0, 0))
25939             return 1;
25940
25941  ;
25942  return 0;
25943 }
25944
25945 _ACEOF
25946 if ac_fn_c_try_compile "$LINENO"; then :
25947
25948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25949 $as_echo "yes" >&6; }
25950         tst_compi_fsetxattr="yes"
25951         tst_nargs_fsetxattr="5"
25952
25953 else
25954
25955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25956 $as_echo "no" >&6; }
25957         tst_compi_fsetxattr="no"
25958
25959 fi
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961     fi
25962     if test "$tst_nargs_fsetxattr" = "unknown"; then
25963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
25964 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
25965       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h.  */
25967
25968
25969           $curl_includes_sys_xattr
25970
25971 int main (void)
25972 {
25973
25974           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
25975             return 1;
25976
25977  ;
25978  return 0;
25979 }
25980
25981 _ACEOF
25982 if ac_fn_c_try_compile "$LINENO"; then :
25983
25984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25985 $as_echo "yes" >&6; }
25986         tst_compi_fsetxattr="yes"
25987         tst_nargs_fsetxattr="6"
25988
25989 else
25990
25991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992 $as_echo "no" >&6; }
25993         tst_compi_fsetxattr="no"
25994
25995 fi
25996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25997     fi
25998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
25999 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
26000     if test "$tst_compi_fsetxattr" = "yes"; then
26001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002 $as_echo "yes" >&6; }
26003     else
26004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005 $as_echo "no" >&6; }
26006     fi
26007   fi
26008   #
26009   if test "$tst_compi_fsetxattr" = "yes"; then
26010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
26011 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
26012     if test "x$curl_disallow_fsetxattr" != "xyes"; then
26013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26014 $as_echo "yes" >&6; }
26015       tst_allow_fsetxattr="yes"
26016     else
26017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018 $as_echo "no" >&6; }
26019       tst_allow_fsetxattr="no"
26020     fi
26021   fi
26022   #
26023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
26024 $as_echo_n "checking if fsetxattr might be used... " >&6; }
26025   if test "$tst_links_fsetxattr" = "yes" &&
26026      test "$tst_proto_fsetxattr" = "yes" &&
26027      test "$tst_compi_fsetxattr" = "yes" &&
26028      test "$tst_allow_fsetxattr" = "yes"; then
26029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26030 $as_echo "yes" >&6; }
26031
26032 cat >>confdefs.h <<_ACEOF
26033 #define HAVE_FSETXATTR 1
26034 _ACEOF
26035
26036             #
26037     if test "$tst_nargs_fsetxattr" -eq "5"; then
26038
26039 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
26040
26041     elif test "$tst_nargs_fsetxattr" -eq "6"; then
26042
26043 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
26044
26045     fi
26046     #
26047     ac_cv_func_fsetxattr="yes"
26048   else
26049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26050 $as_echo "no" >&6; }
26051     ac_cv_func_fsetxattr="no"
26052   fi
26053
26054
26055     #
26056   tst_links_ftruncate="unknown"
26057   tst_proto_ftruncate="unknown"
26058   tst_compi_ftruncate="unknown"
26059   tst_allow_ftruncate="unknown"
26060   #
26061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
26062 $as_echo_n "checking if ftruncate can be linked... " >&6; }
26063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h.  */
26065
26066
26067 #define ftruncate innocuous_ftruncate
26068 #ifdef __STDC__
26069 # include <limits.h>
26070 #else
26071 # include <assert.h>
26072 #endif
26073 #undef ftruncate
26074 #ifdef __cplusplus
26075 extern "C"
26076 #endif
26077 char ftruncate ();
26078 #if defined __stub_ftruncate || defined __stub___ftruncate
26079 choke me
26080 #endif
26081
26082 int main (void)
26083 {
26084 return ftruncate ();
26085  ;
26086  return 0;
26087 }
26088
26089 _ACEOF
26090 if ac_fn_c_try_link "$LINENO"; then :
26091
26092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26093 $as_echo "yes" >&6; }
26094     tst_links_ftruncate="yes"
26095
26096 else
26097
26098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26099 $as_echo "no" >&6; }
26100     tst_links_ftruncate="no"
26101
26102 fi
26103 rm -f core conftest.err conftest.$ac_objext \
26104     conftest$ac_exeext conftest.$ac_ext
26105   #
26106   if test "$tst_links_ftruncate" = "yes"; then
26107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
26108 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
26109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26110 /* end confdefs.h.  */
26111
26112       $curl_includes_unistd
26113
26114 _ACEOF
26115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26116   $EGREP "ftruncate" >/dev/null 2>&1; then :
26117
26118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26119 $as_echo "yes" >&6; }
26120       tst_proto_ftruncate="yes"
26121
26122 else
26123
26124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26125 $as_echo "no" >&6; }
26126       tst_proto_ftruncate="no"
26127
26128 fi
26129 rm -f conftest*
26130
26131   fi
26132   #
26133   if test "$tst_proto_ftruncate" = "yes"; then
26134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
26135 $as_echo_n "checking if ftruncate is compilable... " >&6; }
26136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137 /* end confdefs.h.  */
26138
26139
26140         $curl_includes_unistd
26141
26142 int main (void)
26143 {
26144
26145         if(0 != ftruncate(0, 0))
26146           return 1;
26147
26148  ;
26149  return 0;
26150 }
26151
26152 _ACEOF
26153 if ac_fn_c_try_compile "$LINENO"; then :
26154
26155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26156 $as_echo "yes" >&6; }
26157       tst_compi_ftruncate="yes"
26158
26159 else
26160
26161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26162 $as_echo "no" >&6; }
26163       tst_compi_ftruncate="no"
26164
26165 fi
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26167   fi
26168   #
26169   if test "$tst_compi_ftruncate" = "yes"; then
26170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
26171 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
26172     if test "x$curl_disallow_ftruncate" != "xyes"; then
26173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26174 $as_echo "yes" >&6; }
26175       tst_allow_ftruncate="yes"
26176     else
26177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178 $as_echo "no" >&6; }
26179       tst_allow_ftruncate="no"
26180     fi
26181   fi
26182   #
26183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
26184 $as_echo_n "checking if ftruncate might be used... " >&6; }
26185   if test "$tst_links_ftruncate" = "yes" &&
26186      test "$tst_proto_ftruncate" = "yes" &&
26187      test "$tst_compi_ftruncate" = "yes" &&
26188      test "$tst_allow_ftruncate" = "yes"; then
26189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26190 $as_echo "yes" >&6; }
26191
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_FTRUNCATE 1
26194 _ACEOF
26195
26196     ac_cv_func_ftruncate="yes"
26197   else
26198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26199 $as_echo "no" >&6; }
26200     ac_cv_func_ftruncate="no"
26201   fi
26202
26203
26204 curl_includes_stdlib="\
26205 /* includes start */
26206 #ifdef HAVE_SYS_TYPES_H
26207 #  include <sys/types.h>
26208 #endif
26209 #ifdef HAVE_STDLIB_H
26210 #  include <stdlib.h>
26211 #endif
26212 /* includes end */"
26213   for ac_header in sys/types.h stdlib.h
26214 do :
26215   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
26217 "
26218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26219   cat >>confdefs.h <<_ACEOF
26220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26221 _ACEOF
26222
26223 fi
26224
26225 done
26226
26227
26228
26229             #
26230   tst_links_getaddrinfo="unknown"
26231   tst_proto_getaddrinfo="unknown"
26232   tst_compi_getaddrinfo="unknown"
26233   tst_works_getaddrinfo="unknown"
26234   tst_allow_getaddrinfo="unknown"
26235   tst_tsafe_getaddrinfo="unknown"
26236   #
26237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26238 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h.  */
26241
26242
26243       $curl_includes_ws2tcpip
26244       $curl_includes_sys_socket
26245       $curl_includes_netdb
26246
26247 int main (void)
26248 {
26249
26250       if(0 != getaddrinfo(0, 0, 0, 0))
26251         return 1;
26252
26253  ;
26254  return 0;
26255 }
26256
26257 _ACEOF
26258 if ac_fn_c_try_link "$LINENO"; then :
26259
26260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26262     tst_links_getaddrinfo="yes"
26263
26264 else
26265
26266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267 $as_echo "no" >&6; }
26268     tst_links_getaddrinfo="no"
26269
26270 fi
26271 rm -f core conftest.err conftest.$ac_objext \
26272     conftest$ac_exeext conftest.$ac_ext
26273   #
26274   if test "$tst_links_getaddrinfo" = "yes"; then
26275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26276 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h.  */
26279
26280       $curl_includes_ws2tcpip
26281       $curl_includes_sys_socket
26282       $curl_includes_netdb
26283
26284 _ACEOF
26285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26286   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26287
26288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26289 $as_echo "yes" >&6; }
26290       tst_proto_getaddrinfo="yes"
26291
26292 else
26293
26294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26295 $as_echo "no" >&6; }
26296       tst_proto_getaddrinfo="no"
26297
26298 fi
26299 rm -f conftest*
26300
26301   fi
26302   #
26303   if test "$tst_proto_getaddrinfo" = "yes"; then
26304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26305 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h.  */
26308
26309
26310         $curl_includes_ws2tcpip
26311         $curl_includes_sys_socket
26312         $curl_includes_netdb
26313
26314 int main (void)
26315 {
26316
26317         if(0 != getaddrinfo(0, 0, 0, 0))
26318           return 1;
26319
26320  ;
26321  return 0;
26322 }
26323
26324 _ACEOF
26325 if ac_fn_c_try_compile "$LINENO"; then :
26326
26327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26328 $as_echo "yes" >&6; }
26329       tst_compi_getaddrinfo="yes"
26330
26331 else
26332
26333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26334 $as_echo "no" >&6; }
26335       tst_compi_getaddrinfo="no"
26336
26337 fi
26338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26339   fi
26340   #
26341     if test "x$cross_compiling" != "xyes" &&
26342     test "$tst_compi_getaddrinfo" = "yes"; then
26343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26344 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26345     if test "$cross_compiling" = yes; then :
26346   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26348 as_fn_error $? "cannot run test program while cross compiling
26349 See \`config.log' for more details" "$LINENO" 5 ; }
26350 else
26351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h.  */
26353
26354
26355         $curl_includes_ws2tcpip
26356         $curl_includes_stdlib
26357         $curl_includes_string
26358         $curl_includes_sys_socket
26359         $curl_includes_netdb
26360
26361 int main (void)
26362 {
26363
26364         struct addrinfo hints;
26365         struct addrinfo *ai = 0;
26366         int error;
26367
26368         memset(&hints, 0, sizeof(hints));
26369         hints.ai_flags = AI_NUMERICHOST;
26370         hints.ai_family = AF_UNSPEC;
26371         hints.ai_socktype = SOCK_STREAM;
26372         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26373         if(error || !ai)
26374           exit(1); /* fail */
26375         else
26376           exit(0);
26377
26378  ;
26379  return 0;
26380 }
26381
26382 _ACEOF
26383 if ac_fn_c_try_run "$LINENO"; then :
26384
26385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26386 $as_echo "yes" >&6; }
26387       tst_works_getaddrinfo="yes"
26388
26389 else
26390
26391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26392 $as_echo "no" >&6; }
26393       tst_works_getaddrinfo="no"
26394
26395 fi
26396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26397   conftest.$ac_objext conftest.beam conftest.$ac_ext
26398 fi
26399
26400   fi
26401   #
26402   if test "$tst_compi_getaddrinfo" = "yes" &&
26403     test "$tst_works_getaddrinfo" != "no"; then
26404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26405 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26406     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
26407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26408 $as_echo "yes" >&6; }
26409       tst_allow_getaddrinfo="yes"
26410     else
26411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26412 $as_echo "no" >&6; }
26413       tst_allow_getaddrinfo="no"
26414     fi
26415   fi
26416   #
26417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26418 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
26419   if test "$tst_links_getaddrinfo" = "yes" &&
26420      test "$tst_proto_getaddrinfo" = "yes" &&
26421      test "$tst_compi_getaddrinfo" = "yes" &&
26422      test "$tst_allow_getaddrinfo" = "yes" &&
26423      test "$tst_works_getaddrinfo" != "no"; then
26424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26425 $as_echo "yes" >&6; }
26426
26427 cat >>confdefs.h <<_ACEOF
26428 #define HAVE_GETADDRINFO 1
26429 _ACEOF
26430
26431     ac_cv_func_getaddrinfo="yes"
26432   else
26433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26434 $as_echo "no" >&6; }
26435     ac_cv_func_getaddrinfo="no"
26436     ac_cv_func_getaddrinfo_threadsafe="no"
26437   fi
26438   #
26439   if test "$ac_cv_func_getaddrinfo" = "yes"; then
26440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26441 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26442     case $host_os in
26443       aix[1234].* | aix5.[01].*)
26444                 tst_tsafe_getaddrinfo="no"
26445         ;;
26446       aix*)
26447                 tst_tsafe_getaddrinfo="yes"
26448         ;;
26449       darwin[12345].*)
26450                 tst_tsafe_getaddrinfo="no"
26451         ;;
26452       darwin*)
26453                 tst_tsafe_getaddrinfo="yes"
26454         ;;
26455       freebsd[1234].* | freebsd5.[1234]*)
26456                 tst_tsafe_getaddrinfo="no"
26457         ;;
26458       freebsd*)
26459                 tst_tsafe_getaddrinfo="yes"
26460         ;;
26461       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26462                 tst_tsafe_getaddrinfo="no"
26463         ;;
26464       hpux*)
26465                 tst_tsafe_getaddrinfo="yes"
26466         ;;
26467       netbsd[123].*)
26468                 tst_tsafe_getaddrinfo="no"
26469         ;;
26470       netbsd*)
26471                 tst_tsafe_getaddrinfo="yes"
26472         ;;
26473       *bsd*)
26474                 tst_tsafe_getaddrinfo="no"
26475         ;;
26476       solaris2*)
26477                 tst_tsafe_getaddrinfo="yes"
26478         ;;
26479     esac
26480     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26481
26482
26483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h.  */
26485
26486
26487         $curl_includes_ws2tcpip
26488         $curl_includes_sys_socket
26489         $curl_includes_netdb
26490
26491 int main (void)
26492 {
26493 #ifdef h_errno
26494   return 0;
26495 #else
26496   force compilation error
26497 #endif
26498 }
26499
26500
26501 _ACEOF
26502 if ac_fn_c_try_compile "$LINENO"; then :
26503
26504     tst_symbol_defined="yes"
26505
26506 else
26507
26508     tst_symbol_defined="no"
26509
26510 fi
26511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512   if test "$tst_symbol_defined" = "yes"; then
26513     curl_cv_have_def_h_errno=yes
26514
26515   else
26516     curl_cv_have_def_h_errno=no
26517
26518   fi
26519
26520       if test "$curl_cv_have_def_h_errno" = "no"; then
26521         tst_tsafe_getaddrinfo="no"
26522       fi
26523     fi
26524     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26525       tst_tsafe_getaddrinfo="yes"
26526     fi
26527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26528 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
26529     if test "$tst_tsafe_getaddrinfo" = "yes"; then
26530
26531 cat >>confdefs.h <<_ACEOF
26532 #define HAVE_GETADDRINFO_THREADSAFE 1
26533 _ACEOF
26534
26535       ac_cv_func_getaddrinfo_threadsafe="yes"
26536     else
26537       ac_cv_func_getaddrinfo_threadsafe="no"
26538     fi
26539   fi
26540
26541
26542       #
26543   tst_links_gethostbyaddr="unknown"
26544   tst_proto_gethostbyaddr="unknown"
26545   tst_compi_gethostbyaddr="unknown"
26546   tst_allow_gethostbyaddr="unknown"
26547   #
26548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26549 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h.  */
26552
26553
26554       $curl_includes_winsock2
26555       $curl_includes_netdb
26556
26557 int main (void)
26558 {
26559
26560       if(0 != gethostbyaddr(0, 0, 0))
26561         return 1;
26562
26563  ;
26564  return 0;
26565 }
26566
26567 _ACEOF
26568 if ac_fn_c_try_link "$LINENO"; then :
26569
26570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26571 $as_echo "yes" >&6; }
26572     tst_links_gethostbyaddr="yes"
26573
26574 else
26575
26576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26577 $as_echo "no" >&6; }
26578     tst_links_gethostbyaddr="no"
26579
26580 fi
26581 rm -f core conftest.err conftest.$ac_objext \
26582     conftest$ac_exeext conftest.$ac_ext
26583   #
26584   if test "$tst_links_gethostbyaddr" = "yes"; then
26585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26586 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26587     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h.  */
26589
26590       $curl_includes_winsock2
26591       $curl_includes_netdb
26592
26593 _ACEOF
26594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26595   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26596
26597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26598 $as_echo "yes" >&6; }
26599       tst_proto_gethostbyaddr="yes"
26600
26601 else
26602
26603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26604 $as_echo "no" >&6; }
26605       tst_proto_gethostbyaddr="no"
26606
26607 fi
26608 rm -f conftest*
26609
26610   fi
26611   #
26612   if test "$tst_proto_gethostbyaddr" = "yes"; then
26613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26614 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26616 /* end confdefs.h.  */
26617
26618
26619         $curl_includes_winsock2
26620         $curl_includes_netdb
26621
26622 int main (void)
26623 {
26624
26625         if(0 != gethostbyaddr(0, 0, 0))
26626           return 1;
26627
26628  ;
26629  return 0;
26630 }
26631
26632 _ACEOF
26633 if ac_fn_c_try_compile "$LINENO"; then :
26634
26635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26636 $as_echo "yes" >&6; }
26637       tst_compi_gethostbyaddr="yes"
26638
26639 else
26640
26641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26642 $as_echo "no" >&6; }
26643       tst_compi_gethostbyaddr="no"
26644
26645 fi
26646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26647   fi
26648   #
26649   if test "$tst_compi_gethostbyaddr" = "yes"; then
26650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26651 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26652     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
26653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26654 $as_echo "yes" >&6; }
26655       tst_allow_gethostbyaddr="yes"
26656     else
26657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 $as_echo "no" >&6; }
26659       tst_allow_gethostbyaddr="no"
26660     fi
26661   fi
26662   #
26663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26664 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26665   if test "$tst_links_gethostbyaddr" = "yes" &&
26666      test "$tst_proto_gethostbyaddr" = "yes" &&
26667      test "$tst_compi_gethostbyaddr" = "yes" &&
26668      test "$tst_allow_gethostbyaddr" = "yes"; then
26669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26670 $as_echo "yes" >&6; }
26671
26672 cat >>confdefs.h <<_ACEOF
26673 #define HAVE_GETHOSTBYADDR 1
26674 _ACEOF
26675
26676     ac_cv_func_gethostbyaddr="yes"
26677   else
26678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26679 $as_echo "no" >&6; }
26680     ac_cv_func_gethostbyaddr="no"
26681   fi
26682
26683
26684     #
26685   tst_links_gethostbyaddr_r="unknown"
26686   tst_proto_gethostbyaddr_r="unknown"
26687   tst_compi_gethostbyaddr_r="unknown"
26688   tst_allow_gethostbyaddr_r="unknown"
26689   tst_nargs_gethostbyaddr_r="unknown"
26690   #
26691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
26692 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
26693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h.  */
26695
26696
26697 #define gethostbyaddr_r innocuous_gethostbyaddr_r
26698 #ifdef __STDC__
26699 # include <limits.h>
26700 #else
26701 # include <assert.h>
26702 #endif
26703 #undef gethostbyaddr_r
26704 #ifdef __cplusplus
26705 extern "C"
26706 #endif
26707 char gethostbyaddr_r ();
26708 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
26709 choke me
26710 #endif
26711
26712 int main (void)
26713 {
26714 return gethostbyaddr_r ();
26715  ;
26716  return 0;
26717 }
26718
26719 _ACEOF
26720 if ac_fn_c_try_link "$LINENO"; then :
26721
26722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26723 $as_echo "yes" >&6; }
26724     tst_links_gethostbyaddr_r="yes"
26725
26726 else
26727
26728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26729 $as_echo "no" >&6; }
26730     tst_links_gethostbyaddr_r="no"
26731
26732 fi
26733 rm -f core conftest.err conftest.$ac_objext \
26734     conftest$ac_exeext conftest.$ac_ext
26735   #
26736   if test "$tst_links_gethostbyaddr_r" = "yes"; then
26737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
26738 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
26739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h.  */
26741
26742       $curl_includes_netdb
26743
26744 _ACEOF
26745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26746   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
26747
26748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26749 $as_echo "yes" >&6; }
26750       tst_proto_gethostbyaddr_r="yes"
26751
26752 else
26753
26754       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26755 $as_echo "no" >&6; }
26756       tst_proto_gethostbyaddr_r="no"
26757
26758 fi
26759 rm -f conftest*
26760
26761   fi
26762   #
26763   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
26764     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
26766 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
26767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h.  */
26769
26770
26771           $curl_includes_netdb
26772
26773 int main (void)
26774 {
26775
26776           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
26777             return 1;
26778
26779  ;
26780  return 0;
26781 }
26782
26783 _ACEOF
26784 if ac_fn_c_try_compile "$LINENO"; then :
26785
26786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26787 $as_echo "yes" >&6; }
26788         tst_compi_gethostbyaddr_r="yes"
26789         tst_nargs_gethostbyaddr_r="5"
26790
26791 else
26792
26793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26794 $as_echo "no" >&6; }
26795         tst_compi_gethostbyaddr_r="no"
26796
26797 fi
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26799     fi
26800     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
26802 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
26803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h.  */
26805
26806
26807           $curl_includes_netdb
26808
26809 int main (void)
26810 {
26811
26812           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
26813             return 1;
26814
26815  ;
26816  return 0;
26817 }
26818
26819 _ACEOF
26820 if ac_fn_c_try_compile "$LINENO"; then :
26821
26822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26823 $as_echo "yes" >&6; }
26824         tst_compi_gethostbyaddr_r="yes"
26825         tst_nargs_gethostbyaddr_r="7"
26826
26827 else
26828
26829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26830 $as_echo "no" >&6; }
26831         tst_compi_gethostbyaddr_r="no"
26832
26833 fi
26834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26835     fi
26836     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26837       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
26838 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
26839       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26840 /* end confdefs.h.  */
26841
26842
26843           $curl_includes_netdb
26844
26845 int main (void)
26846 {
26847
26848           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
26849             return 1;
26850
26851  ;
26852  return 0;
26853 }
26854
26855 _ACEOF
26856 if ac_fn_c_try_compile "$LINENO"; then :
26857
26858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26859 $as_echo "yes" >&6; }
26860         tst_compi_gethostbyaddr_r="yes"
26861         tst_nargs_gethostbyaddr_r="8"
26862
26863 else
26864
26865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866 $as_echo "no" >&6; }
26867         tst_compi_gethostbyaddr_r="no"
26868
26869 fi
26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871     fi
26872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
26873 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
26874     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
26875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26877     else
26878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26879 $as_echo "no" >&6; }
26880     fi
26881   fi
26882   #
26883   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
26884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
26885 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
26886     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
26887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26888 $as_echo "yes" >&6; }
26889       tst_allow_gethostbyaddr_r="yes"
26890     else
26891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26892 $as_echo "no" >&6; }
26893       tst_allow_gethostbyaddr_r="no"
26894     fi
26895   fi
26896   #
26897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
26898 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
26899   if test "$tst_links_gethostbyaddr_r" = "yes" &&
26900      test "$tst_proto_gethostbyaddr_r" = "yes" &&
26901      test "$tst_compi_gethostbyaddr_r" = "yes" &&
26902      test "$tst_allow_gethostbyaddr_r" = "yes"; then
26903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26904 $as_echo "yes" >&6; }
26905
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_GETHOSTBYADDR_R 1
26908 _ACEOF
26909
26910             #
26911     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
26912
26913 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
26914
26915     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
26916
26917 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
26918
26919     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
26920
26921 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
26922
26923     fi
26924     #
26925     ac_cv_func_gethostbyaddr_r="yes"
26926   else
26927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26928 $as_echo "no" >&6; }
26929     ac_cv_func_gethostbyaddr_r="no"
26930   fi
26931
26932
26933       #
26934   tst_links_gethostbyname="unknown"
26935   tst_proto_gethostbyname="unknown"
26936   tst_compi_gethostbyname="unknown"
26937   tst_allow_gethostbyname="unknown"
26938   #
26939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26940 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
26941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26942 /* end confdefs.h.  */
26943
26944
26945       $curl_includes_winsock2
26946       $curl_includes_netdb
26947
26948 int main (void)
26949 {
26950
26951       if(0 != gethostbyname(0))
26952         return 1;
26953
26954  ;
26955  return 0;
26956 }
26957
26958 _ACEOF
26959 if ac_fn_c_try_link "$LINENO"; then :
26960
26961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26962 $as_echo "yes" >&6; }
26963     tst_links_gethostbyname="yes"
26964
26965 else
26966
26967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26968 $as_echo "no" >&6; }
26969     tst_links_gethostbyname="no"
26970
26971 fi
26972 rm -f core conftest.err conftest.$ac_objext \
26973     conftest$ac_exeext conftest.$ac_ext
26974   #
26975   if test "$tst_links_gethostbyname" = "yes"; then
26976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26977 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26979 /* end confdefs.h.  */
26980
26981       $curl_includes_winsock2
26982       $curl_includes_netdb
26983
26984 _ACEOF
26985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26986   $EGREP "gethostbyname" >/dev/null 2>&1; then :
26987
26988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989 $as_echo "yes" >&6; }
26990       tst_proto_gethostbyname="yes"
26991
26992 else
26993
26994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26995 $as_echo "no" >&6; }
26996       tst_proto_gethostbyname="no"
26997
26998 fi
26999 rm -f conftest*
27000
27001   fi
27002   #
27003   if test "$tst_proto_gethostbyname" = "yes"; then
27004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
27005 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
27006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27007 /* end confdefs.h.  */
27008
27009
27010         $curl_includes_winsock2
27011         $curl_includes_netdb
27012
27013 int main (void)
27014 {
27015
27016         if(0 != gethostbyname(0))
27017           return 1;
27018
27019  ;
27020  return 0;
27021 }
27022
27023 _ACEOF
27024 if ac_fn_c_try_compile "$LINENO"; then :
27025
27026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27028       tst_compi_gethostbyname="yes"
27029
27030 else
27031
27032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27033 $as_echo "no" >&6; }
27034       tst_compi_gethostbyname="no"
27035
27036 fi
27037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038   fi
27039   #
27040   if test "$tst_compi_gethostbyname" = "yes"; then
27041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
27042 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
27043     if test "x$curl_disallow_gethostbyname" != "xyes"; then
27044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27045 $as_echo "yes" >&6; }
27046       tst_allow_gethostbyname="yes"
27047     else
27048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27049 $as_echo "no" >&6; }
27050       tst_allow_gethostbyname="no"
27051     fi
27052   fi
27053   #
27054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
27055 $as_echo_n "checking if gethostbyname might be used... " >&6; }
27056   if test "$tst_links_gethostbyname" = "yes" &&
27057      test "$tst_proto_gethostbyname" = "yes" &&
27058      test "$tst_compi_gethostbyname" = "yes" &&
27059      test "$tst_allow_gethostbyname" = "yes"; then
27060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27061 $as_echo "yes" >&6; }
27062
27063 cat >>confdefs.h <<_ACEOF
27064 #define HAVE_GETHOSTBYNAME 1
27065 _ACEOF
27066
27067     ac_cv_func_gethostbyname="yes"
27068   else
27069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070 $as_echo "no" >&6; }
27071     ac_cv_func_gethostbyname="no"
27072   fi
27073
27074
27075     #
27076   tst_links_gethostbyname_r="unknown"
27077   tst_proto_gethostbyname_r="unknown"
27078   tst_compi_gethostbyname_r="unknown"
27079   tst_allow_gethostbyname_r="unknown"
27080   tst_nargs_gethostbyname_r="unknown"
27081   #
27082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
27083 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
27084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h.  */
27086
27087
27088 #define gethostbyname_r innocuous_gethostbyname_r
27089 #ifdef __STDC__
27090 # include <limits.h>
27091 #else
27092 # include <assert.h>
27093 #endif
27094 #undef gethostbyname_r
27095 #ifdef __cplusplus
27096 extern "C"
27097 #endif
27098 char gethostbyname_r ();
27099 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27100 choke me
27101 #endif
27102
27103 int main (void)
27104 {
27105 return gethostbyname_r ();
27106  ;
27107  return 0;
27108 }
27109
27110 _ACEOF
27111 if ac_fn_c_try_link "$LINENO"; then :
27112
27113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27114 $as_echo "yes" >&6; }
27115     tst_links_gethostbyname_r="yes"
27116
27117 else
27118
27119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27120 $as_echo "no" >&6; }
27121     tst_links_gethostbyname_r="no"
27122
27123 fi
27124 rm -f core conftest.err conftest.$ac_objext \
27125     conftest$ac_exeext conftest.$ac_ext
27126   #
27127   if test "$tst_links_gethostbyname_r" = "yes"; then
27128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
27129 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
27130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h.  */
27132
27133       $curl_includes_netdb
27134
27135 _ACEOF
27136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27137   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
27138
27139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27140 $as_echo "yes" >&6; }
27141       tst_proto_gethostbyname_r="yes"
27142
27143 else
27144
27145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27146 $as_echo "no" >&6; }
27147       tst_proto_gethostbyname_r="no"
27148
27149 fi
27150 rm -f conftest*
27151
27152   fi
27153   #
27154   if test "$tst_proto_gethostbyname_r" = "yes"; then
27155     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27156       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
27157 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
27158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27159 /* end confdefs.h.  */
27160
27161
27162           $curl_includes_netdb
27163
27164 int main (void)
27165 {
27166
27167           if(0 != gethostbyname_r(0, 0, 0))
27168             return 1;
27169
27170  ;
27171  return 0;
27172 }
27173
27174 _ACEOF
27175 if ac_fn_c_try_compile "$LINENO"; then :
27176
27177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27178 $as_echo "yes" >&6; }
27179         tst_compi_gethostbyname_r="yes"
27180         tst_nargs_gethostbyname_r="3"
27181
27182 else
27183
27184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185 $as_echo "no" >&6; }
27186         tst_compi_gethostbyname_r="no"
27187
27188 fi
27189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190     fi
27191     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27192       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
27193 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
27194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h.  */
27196
27197
27198           $curl_includes_netdb
27199
27200 int main (void)
27201 {
27202
27203           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
27204             return 1;
27205
27206  ;
27207  return 0;
27208 }
27209
27210 _ACEOF
27211 if ac_fn_c_try_compile "$LINENO"; then :
27212
27213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27214 $as_echo "yes" >&6; }
27215         tst_compi_gethostbyname_r="yes"
27216         tst_nargs_gethostbyname_r="5"
27217
27218 else
27219
27220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27221 $as_echo "no" >&6; }
27222         tst_compi_gethostbyname_r="no"
27223
27224 fi
27225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226     fi
27227     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27228       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
27229 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
27230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27231 /* end confdefs.h.  */
27232
27233
27234           $curl_includes_netdb
27235
27236 int main (void)
27237 {
27238
27239           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
27240             return 1;
27241
27242  ;
27243  return 0;
27244 }
27245
27246 _ACEOF
27247 if ac_fn_c_try_compile "$LINENO"; then :
27248
27249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27250 $as_echo "yes" >&6; }
27251         tst_compi_gethostbyname_r="yes"
27252         tst_nargs_gethostbyname_r="6"
27253
27254 else
27255
27256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27257 $as_echo "no" >&6; }
27258         tst_compi_gethostbyname_r="no"
27259
27260 fi
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262     fi
27263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
27264 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
27265     if test "$tst_compi_gethostbyname_r" = "yes"; then
27266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27267 $as_echo "yes" >&6; }
27268     else
27269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27270 $as_echo "no" >&6; }
27271     fi
27272   fi
27273   #
27274   if test "$tst_compi_gethostbyname_r" = "yes"; then
27275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
27276 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
27277     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
27278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27279 $as_echo "yes" >&6; }
27280       tst_allow_gethostbyname_r="yes"
27281     else
27282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27283 $as_echo "no" >&6; }
27284       tst_allow_gethostbyname_r="no"
27285     fi
27286   fi
27287   #
27288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
27289 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
27290   if test "$tst_links_gethostbyname_r" = "yes" &&
27291      test "$tst_proto_gethostbyname_r" = "yes" &&
27292      test "$tst_compi_gethostbyname_r" = "yes" &&
27293      test "$tst_allow_gethostbyname_r" = "yes"; then
27294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27295 $as_echo "yes" >&6; }
27296
27297 cat >>confdefs.h <<_ACEOF
27298 #define HAVE_GETHOSTBYNAME_R 1
27299 _ACEOF
27300
27301             #
27302     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
27303
27304 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
27305
27306     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
27307
27308 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
27309
27310     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
27311
27312 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
27313
27314     fi
27315     #
27316     ac_cv_func_gethostbyname_r="yes"
27317   else
27318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27319 $as_echo "no" >&6; }
27320     ac_cv_func_gethostbyname_r="no"
27321   fi
27322
27323
27324       #
27325   tst_links_gethostname="unknown"
27326   tst_proto_gethostname="unknown"
27327   tst_compi_gethostname="unknown"
27328   tst_allow_gethostname="unknown"
27329   #
27330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
27331 $as_echo_n "checking if gethostname can be linked... " >&6; }
27332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27333 /* end confdefs.h.  */
27334
27335
27336       $curl_includes_winsock2
27337       $curl_includes_unistd
27338
27339 int main (void)
27340 {
27341
27342       if(0 != gethostname(0, 0))
27343         return 1;
27344
27345  ;
27346  return 0;
27347 }
27348
27349 _ACEOF
27350 if ac_fn_c_try_link "$LINENO"; then :
27351
27352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27353 $as_echo "yes" >&6; }
27354     tst_links_gethostname="yes"
27355
27356 else
27357
27358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27359 $as_echo "no" >&6; }
27360     tst_links_gethostname="no"
27361
27362 fi
27363 rm -f core conftest.err conftest.$ac_objext \
27364     conftest$ac_exeext conftest.$ac_ext
27365   #
27366   if test "$tst_links_gethostname" = "yes"; then
27367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27368 $as_echo_n "checking if gethostname is prototyped... " >&6; }
27369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27370 /* end confdefs.h.  */
27371
27372       $curl_includes_winsock2
27373       $curl_includes_unistd
27374
27375 _ACEOF
27376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27377   $EGREP "gethostname" >/dev/null 2>&1; then :
27378
27379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27380 $as_echo "yes" >&6; }
27381       tst_proto_gethostname="yes"
27382
27383 else
27384
27385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27386 $as_echo "no" >&6; }
27387       tst_proto_gethostname="no"
27388
27389 fi
27390 rm -f conftest*
27391
27392   fi
27393   #
27394   if test "$tst_proto_gethostname" = "yes"; then
27395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27396 $as_echo_n "checking if gethostname is compilable... " >&6; }
27397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27398 /* end confdefs.h.  */
27399
27400
27401         $curl_includes_winsock2
27402         $curl_includes_unistd
27403
27404 int main (void)
27405 {
27406
27407         if(0 != gethostname(0, 0))
27408           return 1;
27409
27410  ;
27411  return 0;
27412 }
27413
27414 _ACEOF
27415 if ac_fn_c_try_compile "$LINENO"; then :
27416
27417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27418 $as_echo "yes" >&6; }
27419       tst_compi_gethostname="yes"
27420
27421 else
27422
27423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27424 $as_echo "no" >&6; }
27425       tst_compi_gethostname="no"
27426
27427 fi
27428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27429   fi
27430   #
27431   if test "$tst_compi_gethostname" = "yes"; then
27432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27433 $as_echo_n "checking if gethostname usage allowed... " >&6; }
27434     if test "x$curl_disallow_gethostname" != "xyes"; then
27435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27436 $as_echo "yes" >&6; }
27437       tst_allow_gethostname="yes"
27438     else
27439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27440 $as_echo "no" >&6; }
27441       tst_allow_gethostname="no"
27442     fi
27443   fi
27444   #
27445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27446 $as_echo_n "checking if gethostname might be used... " >&6; }
27447   if test "$tst_links_gethostname" = "yes" &&
27448      test "$tst_proto_gethostname" = "yes" &&
27449      test "$tst_compi_gethostname" = "yes" &&
27450      test "$tst_allow_gethostname" = "yes"; then
27451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27452 $as_echo "yes" >&6; }
27453
27454 cat >>confdefs.h <<_ACEOF
27455 #define HAVE_GETHOSTNAME 1
27456 _ACEOF
27457
27458     ac_cv_func_gethostname="yes"
27459   else
27460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27461 $as_echo "no" >&6; }
27462     ac_cv_func_gethostname="no"
27463   fi
27464
27465
27466       #
27467   tst_links_getifaddrs="unknown"
27468   tst_proto_getifaddrs="unknown"
27469   tst_compi_getifaddrs="unknown"
27470   tst_works_getifaddrs="unknown"
27471   tst_allow_getifaddrs="unknown"
27472   #
27473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
27474 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
27475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27476 /* end confdefs.h.  */
27477
27478
27479 #define getifaddrs innocuous_getifaddrs
27480 #ifdef __STDC__
27481 # include <limits.h>
27482 #else
27483 # include <assert.h>
27484 #endif
27485 #undef getifaddrs
27486 #ifdef __cplusplus
27487 extern "C"
27488 #endif
27489 char getifaddrs ();
27490 #if defined __stub_getifaddrs || defined __stub___getifaddrs
27491 choke me
27492 #endif
27493
27494 int main (void)
27495 {
27496 return getifaddrs ();
27497  ;
27498  return 0;
27499 }
27500
27501 _ACEOF
27502 if ac_fn_c_try_link "$LINENO"; then :
27503
27504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27505 $as_echo "yes" >&6; }
27506     tst_links_getifaddrs="yes"
27507
27508 else
27509
27510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27511 $as_echo "no" >&6; }
27512     tst_links_getifaddrs="no"
27513
27514 fi
27515 rm -f core conftest.err conftest.$ac_objext \
27516     conftest$ac_exeext conftest.$ac_ext
27517   #
27518   if test "$tst_links_getifaddrs" = "yes"; then
27519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
27520 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
27521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h.  */
27523
27524       $curl_includes_ifaddrs
27525
27526 _ACEOF
27527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27528   $EGREP "getifaddrs" >/dev/null 2>&1; then :
27529
27530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27531 $as_echo "yes" >&6; }
27532       tst_proto_getifaddrs="yes"
27533
27534 else
27535
27536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27537 $as_echo "no" >&6; }
27538       tst_proto_getifaddrs="no"
27539
27540 fi
27541 rm -f conftest*
27542
27543   fi
27544   #
27545   if test "$tst_proto_getifaddrs" = "yes"; then
27546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
27547 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
27548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27549 /* end confdefs.h.  */
27550
27551
27552         $curl_includes_ifaddrs
27553
27554 int main (void)
27555 {
27556
27557         if(0 != getifaddrs(0))
27558           return 1;
27559
27560  ;
27561  return 0;
27562 }
27563
27564 _ACEOF
27565 if ac_fn_c_try_compile "$LINENO"; then :
27566
27567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27568 $as_echo "yes" >&6; }
27569       tst_compi_getifaddrs="yes"
27570
27571 else
27572
27573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27574 $as_echo "no" >&6; }
27575       tst_compi_getifaddrs="no"
27576
27577 fi
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579   fi
27580   #
27581     if test "x$cross_compiling" != "xyes" &&
27582     test "$tst_compi_getifaddrs" = "yes"; then
27583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
27584 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
27585     if test "$cross_compiling" = yes; then :
27586   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27588 as_fn_error $? "cannot run test program while cross compiling
27589 See \`config.log' for more details" "$LINENO" 5 ; }
27590 else
27591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592 /* end confdefs.h.  */
27593
27594
27595         $curl_includes_stdlib
27596         $curl_includes_ifaddrs
27597
27598 int main (void)
27599 {
27600
27601         struct ifaddrs *ifa = 0;
27602         int error;
27603
27604         error = getifaddrs(&ifa);
27605         if(error || !ifa)
27606           exit(1); /* fail */
27607         else
27608           exit(0);
27609
27610  ;
27611  return 0;
27612 }
27613
27614 _ACEOF
27615 if ac_fn_c_try_run "$LINENO"; then :
27616
27617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27618 $as_echo "yes" >&6; }
27619       tst_works_getifaddrs="yes"
27620
27621 else
27622
27623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27624 $as_echo "no" >&6; }
27625       tst_works_getifaddrs="no"
27626
27627 fi
27628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27629   conftest.$ac_objext conftest.beam conftest.$ac_ext
27630 fi
27631
27632   fi
27633   #
27634   if test "$tst_compi_getifaddrs" = "yes" &&
27635     test "$tst_works_getifaddrs" != "no"; then
27636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
27637 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
27638     if test "x$curl_disallow_getifaddrs" != "xyes"; then
27639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27640 $as_echo "yes" >&6; }
27641       tst_allow_getifaddrs="yes"
27642     else
27643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27644 $as_echo "no" >&6; }
27645       tst_allow_getifaddrs="no"
27646     fi
27647   fi
27648   #
27649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
27650 $as_echo_n "checking if getifaddrs might be used... " >&6; }
27651   if test "$tst_links_getifaddrs" = "yes" &&
27652      test "$tst_proto_getifaddrs" = "yes" &&
27653      test "$tst_compi_getifaddrs" = "yes" &&
27654      test "$tst_allow_getifaddrs" = "yes" &&
27655      test "$tst_works_getifaddrs" != "no"; then
27656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27657 $as_echo "yes" >&6; }
27658
27659 cat >>confdefs.h <<_ACEOF
27660 #define HAVE_GETIFADDRS 1
27661 _ACEOF
27662
27663     ac_cv_func_getifaddrs="yes"
27664   else
27665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27666 $as_echo "no" >&6; }
27667     ac_cv_func_getifaddrs="no"
27668   fi
27669
27670
27671     #
27672   tst_links_getservbyport_r="unknown"
27673   tst_proto_getservbyport_r="unknown"
27674   tst_compi_getservbyport_r="unknown"
27675   tst_allow_getservbyport_r="unknown"
27676   tst_nargs_getservbyport_r="unknown"
27677   #
27678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27679 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27681 /* end confdefs.h.  */
27682
27683
27684 #define getservbyport_r innocuous_getservbyport_r
27685 #ifdef __STDC__
27686 # include <limits.h>
27687 #else
27688 # include <assert.h>
27689 #endif
27690 #undef getservbyport_r
27691 #ifdef __cplusplus
27692 extern "C"
27693 #endif
27694 char getservbyport_r ();
27695 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27696 choke me
27697 #endif
27698
27699 int main (void)
27700 {
27701 return getservbyport_r ();
27702  ;
27703  return 0;
27704 }
27705
27706 _ACEOF
27707 if ac_fn_c_try_link "$LINENO"; then :
27708
27709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27710 $as_echo "yes" >&6; }
27711     tst_links_getservbyport_r="yes"
27712
27713 else
27714
27715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27716 $as_echo "no" >&6; }
27717     tst_links_getservbyport_r="no"
27718
27719 fi
27720 rm -f core conftest.err conftest.$ac_objext \
27721     conftest$ac_exeext conftest.$ac_ext
27722   #
27723   if test "$tst_links_getservbyport_r" = "yes"; then
27724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27725 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727 /* end confdefs.h.  */
27728
27729       $curl_includes_netdb
27730
27731 _ACEOF
27732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27733   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27734
27735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27736 $as_echo "yes" >&6; }
27737       tst_proto_getservbyport_r="yes"
27738
27739 else
27740
27741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27742 $as_echo "no" >&6; }
27743       tst_proto_getservbyport_r="no"
27744
27745 fi
27746 rm -f conftest*
27747
27748   fi
27749   #
27750   if test "$tst_proto_getservbyport_r" = "yes"; then
27751     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27753 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27754       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27755 /* end confdefs.h.  */
27756
27757
27758           $curl_includes_netdb
27759
27760 int main (void)
27761 {
27762
27763           if(0 != getservbyport_r(0, 0, 0, 0))
27764             return 1;
27765
27766  ;
27767  return 0;
27768 }
27769
27770 _ACEOF
27771 if ac_fn_c_try_compile "$LINENO"; then :
27772
27773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27774 $as_echo "yes" >&6; }
27775         tst_compi_getservbyport_r="yes"
27776         tst_nargs_getservbyport_r="4"
27777
27778 else
27779
27780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27781 $as_echo "no" >&6; }
27782         tst_compi_getservbyport_r="no"
27783
27784 fi
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786     fi
27787     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27788       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27789 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h.  */
27792
27793
27794           $curl_includes_netdb
27795
27796 int main (void)
27797 {
27798
27799           if(0 != getservbyport_r(0, 0, 0, 0, 0))
27800             return 1;
27801
27802  ;
27803  return 0;
27804 }
27805
27806 _ACEOF
27807 if ac_fn_c_try_compile "$LINENO"; then :
27808
27809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27810 $as_echo "yes" >&6; }
27811         tst_compi_getservbyport_r="yes"
27812         tst_nargs_getservbyport_r="5"
27813
27814 else
27815
27816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27817 $as_echo "no" >&6; }
27818         tst_compi_getservbyport_r="no"
27819
27820 fi
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822     fi
27823     if test "$tst_nargs_getservbyport_r" = "unknown"; then
27824       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27825 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27826       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h.  */
27828
27829
27830           $curl_includes_netdb
27831
27832 int main (void)
27833 {
27834
27835           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27836             return 1;
27837
27838  ;
27839  return 0;
27840 }
27841
27842 _ACEOF
27843 if ac_fn_c_try_compile "$LINENO"; then :
27844
27845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27846 $as_echo "yes" >&6; }
27847         tst_compi_getservbyport_r="yes"
27848         tst_nargs_getservbyport_r="6"
27849
27850 else
27851
27852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27853 $as_echo "no" >&6; }
27854         tst_compi_getservbyport_r="no"
27855
27856 fi
27857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27858     fi
27859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27860 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27861     if test "$tst_compi_getservbyport_r" = "yes"; then
27862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27863 $as_echo "yes" >&6; }
27864     else
27865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27866 $as_echo "no" >&6; }
27867     fi
27868   fi
27869   #
27870   if test "$tst_compi_getservbyport_r" = "yes"; then
27871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27872 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27873     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
27874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27875 $as_echo "yes" >&6; }
27876       tst_allow_getservbyport_r="yes"
27877     else
27878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27879 $as_echo "no" >&6; }
27880       tst_allow_getservbyport_r="no"
27881     fi
27882   fi
27883   #
27884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27885 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
27886   if test "$tst_links_getservbyport_r" = "yes" &&
27887      test "$tst_proto_getservbyport_r" = "yes" &&
27888      test "$tst_compi_getservbyport_r" = "yes" &&
27889      test "$tst_allow_getservbyport_r" = "yes"; then
27890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27891 $as_echo "yes" >&6; }
27892
27893 cat >>confdefs.h <<_ACEOF
27894 #define HAVE_GETSERVBYPORT_R 1
27895 _ACEOF
27896
27897
27898 cat >>confdefs.h <<_ACEOF
27899 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27900 _ACEOF
27901
27902     if test "$tst_nargs_getservbyport_r" -eq "4"; then
27903
27904 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27905
27906     else
27907
27908 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27909
27910     fi
27911     ac_cv_func_getservbyport_r="yes"
27912   else
27913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27914 $as_echo "no" >&6; }
27915     ac_cv_func_getservbyport_r="no"
27916   fi
27917
27918
27919 curl_includes_time="\
27920 /* includes start */
27921 #ifdef HAVE_SYS_TYPES_H
27922 #  include <sys/types.h>
27923 #endif
27924 #ifdef HAVE_SYS_TIME_H
27925 #  include <sys/time.h>
27926 #  ifdef TIME_WITH_SYS_TIME
27927 #    include <time.h>
27928 #  endif
27929 #else
27930 #  ifdef HAVE_TIME_H
27931 #    include <time.h>
27932 #  endif
27933 #endif
27934 /* includes end */"
27935   for ac_header in sys/types.h sys/time.h time.h
27936 do :
27937   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
27939 "
27940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27941   cat >>confdefs.h <<_ACEOF
27942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27943 _ACEOF
27944
27945 fi
27946
27947 done
27948
27949
27950
27951       #
27952   tst_links_gmtime_r="unknown"
27953   tst_proto_gmtime_r="unknown"
27954   tst_compi_gmtime_r="unknown"
27955   tst_works_gmtime_r="unknown"
27956   tst_allow_gmtime_r="unknown"
27957   #
27958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
27959 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
27960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h.  */
27962
27963
27964 #define gmtime_r innocuous_gmtime_r
27965 #ifdef __STDC__
27966 # include <limits.h>
27967 #else
27968 # include <assert.h>
27969 #endif
27970 #undef gmtime_r
27971 #ifdef __cplusplus
27972 extern "C"
27973 #endif
27974 char gmtime_r ();
27975 #if defined __stub_gmtime_r || defined __stub___gmtime_r
27976 choke me
27977 #endif
27978
27979 int main (void)
27980 {
27981 return gmtime_r ();
27982  ;
27983  return 0;
27984 }
27985
27986 _ACEOF
27987 if ac_fn_c_try_link "$LINENO"; then :
27988
27989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27990 $as_echo "yes" >&6; }
27991     tst_links_gmtime_r="yes"
27992
27993 else
27994
27995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27996 $as_echo "no" >&6; }
27997     tst_links_gmtime_r="no"
27998
27999 fi
28000 rm -f core conftest.err conftest.$ac_objext \
28001     conftest$ac_exeext conftest.$ac_ext
28002   #
28003   if test "$tst_links_gmtime_r" = "yes"; then
28004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
28005 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
28006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h.  */
28008
28009       $curl_includes_time
28010
28011 _ACEOF
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013   $EGREP "gmtime_r" >/dev/null 2>&1; then :
28014
28015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 $as_echo "yes" >&6; }
28017       tst_proto_gmtime_r="yes"
28018
28019 else
28020
28021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28022 $as_echo "no" >&6; }
28023       tst_proto_gmtime_r="no"
28024
28025 fi
28026 rm -f conftest*
28027
28028   fi
28029   #
28030   if test "$tst_proto_gmtime_r" = "yes"; then
28031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
28032 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
28033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h.  */
28035
28036
28037         $curl_includes_time
28038
28039 int main (void)
28040 {
28041
28042         if(0 != gmtime_r(0, 0))
28043           return 1;
28044
28045  ;
28046  return 0;
28047 }
28048
28049 _ACEOF
28050 if ac_fn_c_try_compile "$LINENO"; then :
28051
28052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28053 $as_echo "yes" >&6; }
28054       tst_compi_gmtime_r="yes"
28055
28056 else
28057
28058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28059 $as_echo "no" >&6; }
28060       tst_compi_gmtime_r="no"
28061
28062 fi
28063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28064   fi
28065   #
28066     if test "x$cross_compiling" != "xyes" &&
28067     test "$tst_compi_gmtime_r" = "yes"; then
28068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
28069 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
28070     if test "$cross_compiling" = yes; then :
28071   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28073 as_fn_error $? "cannot run test program while cross compiling
28074 See \`config.log' for more details" "$LINENO" 5 ; }
28075 else
28076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h.  */
28078
28079
28080         $curl_includes_stdlib
28081         $curl_includes_time
28082
28083 int main (void)
28084 {
28085
28086         time_t local = 1170352587;
28087         struct tm *gmt = 0;
28088         struct tm result;
28089         gmt = gmtime_r(&local, &result);
28090         if(gmt)
28091           exit(0);
28092         else
28093           exit(1);
28094
28095  ;
28096  return 0;
28097 }
28098
28099 _ACEOF
28100 if ac_fn_c_try_run "$LINENO"; then :
28101
28102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28103 $as_echo "yes" >&6; }
28104       tst_works_gmtime_r="yes"
28105
28106 else
28107
28108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28109 $as_echo "no" >&6; }
28110       tst_works_gmtime_r="no"
28111
28112 fi
28113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28114   conftest.$ac_objext conftest.beam conftest.$ac_ext
28115 fi
28116
28117   fi
28118   #
28119   if test "$tst_compi_gmtime_r" = "yes" &&
28120     test "$tst_works_gmtime_r" != "no"; then
28121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
28122 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
28123     if test "x$curl_disallow_gmtime_r" != "xyes"; then
28124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125 $as_echo "yes" >&6; }
28126       tst_allow_gmtime_r="yes"
28127     else
28128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28129 $as_echo "no" >&6; }
28130       tst_allow_gmtime_r="no"
28131     fi
28132   fi
28133   #
28134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
28135 $as_echo_n "checking if gmtime_r might be used... " >&6; }
28136   if test "$tst_links_gmtime_r" = "yes" &&
28137      test "$tst_proto_gmtime_r" = "yes" &&
28138      test "$tst_compi_gmtime_r" = "yes" &&
28139      test "$tst_allow_gmtime_r" = "yes" &&
28140      test "$tst_works_gmtime_r" != "no"; then
28141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28142 $as_echo "yes" >&6; }
28143
28144 cat >>confdefs.h <<_ACEOF
28145 #define HAVE_GMTIME_R 1
28146 _ACEOF
28147
28148     ac_cv_func_gmtime_r="yes"
28149   else
28150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28151 $as_echo "no" >&6; }
28152     ac_cv_func_gmtime_r="no"
28153   fi
28154
28155
28156 curl_includes_arpa_inet="\
28157 /* includes start */
28158 #ifdef HAVE_SYS_TYPES_H
28159 #  include <sys/types.h>
28160 #endif
28161 #ifdef HAVE_SYS_SOCKET_H
28162 #  include <sys/socket.h>
28163 #endif
28164 #ifdef HAVE_NETINET_IN_H
28165 #  include <netinet/in.h>
28166 #endif
28167 #ifdef HAVE_ARPA_INET_H
28168 #  include <arpa/inet.h>
28169 #endif
28170 /* includes end */"
28171   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
28172 do :
28173   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
28175 "
28176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28177   cat >>confdefs.h <<_ACEOF
28178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28179 _ACEOF
28180
28181 fi
28182
28183 done
28184
28185
28186
28187     #
28188   tst_links_inet_ntoa_r="unknown"
28189   tst_proto_inet_ntoa_r="unknown"
28190   tst_compi_inet_ntoa_r="unknown"
28191   tst_allow_inet_ntoa_r="unknown"
28192   tst_nargs_inet_ntoa_r="unknown"
28193   #
28194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
28195 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
28196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28197 /* end confdefs.h.  */
28198
28199
28200 #define inet_ntoa_r innocuous_inet_ntoa_r
28201 #ifdef __STDC__
28202 # include <limits.h>
28203 #else
28204 # include <assert.h>
28205 #endif
28206 #undef inet_ntoa_r
28207 #ifdef __cplusplus
28208 extern "C"
28209 #endif
28210 char inet_ntoa_r ();
28211 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
28212 choke me
28213 #endif
28214
28215 int main (void)
28216 {
28217 return inet_ntoa_r ();
28218  ;
28219  return 0;
28220 }
28221
28222 _ACEOF
28223 if ac_fn_c_try_link "$LINENO"; then :
28224
28225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28226 $as_echo "yes" >&6; }
28227     tst_links_inet_ntoa_r="yes"
28228
28229 else
28230
28231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28233     tst_links_inet_ntoa_r="no"
28234
28235 fi
28236 rm -f core conftest.err conftest.$ac_objext \
28237     conftest$ac_exeext conftest.$ac_ext
28238   #
28239   if test "$tst_links_inet_ntoa_r" = "yes"; then
28240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
28241 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
28242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28243 /* end confdefs.h.  */
28244
28245       $curl_includes_arpa_inet
28246
28247 _ACEOF
28248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28249   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
28250
28251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28252 $as_echo "yes" >&6; }
28253       tst_proto_inet_ntoa_r="yes"
28254
28255 else
28256
28257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28258 $as_echo "no" >&6; }
28259       tst_proto_inet_ntoa_r="no"
28260
28261 fi
28262 rm -f conftest*
28263
28264   fi
28265   #
28266   if test "$tst_proto_inet_ntoa_r" = "yes"; then
28267     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
28268       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
28269 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
28270       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28271 /* end confdefs.h.  */
28272
28273
28274           $curl_includes_arpa_inet
28275
28276 int main (void)
28277 {
28278
28279           struct in_addr addr;
28280           if(0 != inet_ntoa_r(addr, 0))
28281             return 1;
28282
28283  ;
28284  return 0;
28285 }
28286
28287 _ACEOF
28288 if ac_fn_c_try_compile "$LINENO"; then :
28289
28290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28291 $as_echo "yes" >&6; }
28292         tst_compi_inet_ntoa_r="yes"
28293         tst_nargs_inet_ntoa_r="2"
28294
28295 else
28296
28297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28298 $as_echo "no" >&6; }
28299         tst_compi_inet_ntoa_r="no"
28300
28301 fi
28302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28303     fi
28304     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
28305       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
28306 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
28307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h.  */
28309
28310
28311           $curl_includes_arpa_inet
28312
28313 int main (void)
28314 {
28315
28316           struct in_addr addr;
28317           if(0 != inet_ntoa_r(addr, 0, 0))
28318             return 1;
28319
28320  ;
28321  return 0;
28322 }
28323
28324 _ACEOF
28325 if ac_fn_c_try_compile "$LINENO"; then :
28326
28327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28328 $as_echo "yes" >&6; }
28329         tst_compi_inet_ntoa_r="yes"
28330         tst_nargs_inet_ntoa_r="3"
28331
28332 else
28333
28334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28335 $as_echo "no" >&6; }
28336         tst_compi_inet_ntoa_r="no"
28337
28338 fi
28339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28340     fi
28341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
28342 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
28343     if test "$tst_compi_inet_ntoa_r" = "yes"; then
28344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28345 $as_echo "yes" >&6; }
28346     else
28347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28348 $as_echo "no" >&6; }
28349     fi
28350   fi
28351   #
28352   if test "$tst_compi_inet_ntoa_r" = "yes"; then
28353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
28354 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
28355     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
28356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28357 $as_echo "yes" >&6; }
28358       tst_allow_inet_ntoa_r="yes"
28359     else
28360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28361 $as_echo "no" >&6; }
28362       tst_allow_inet_ntoa_r="no"
28363     fi
28364   fi
28365   #
28366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
28367 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
28368   if test "$tst_links_inet_ntoa_r" = "yes" &&
28369      test "$tst_proto_inet_ntoa_r" = "yes" &&
28370      test "$tst_compi_inet_ntoa_r" = "yes" &&
28371      test "$tst_allow_inet_ntoa_r" = "yes"; then
28372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28373 $as_echo "yes" >&6; }
28374
28375 cat >>confdefs.h <<_ACEOF
28376 #define HAVE_INET_NTOA_R 1
28377 _ACEOF
28378
28379             #
28380     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
28381
28382 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
28383
28384     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
28385
28386 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
28387
28388     fi
28389     #
28390     ac_cv_func_inet_ntoa_r="yes"
28391   else
28392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28393 $as_echo "no" >&6; }
28394     ac_cv_func_inet_ntoa_r="no"
28395   fi
28396
28397
28398         #
28399   tst_links_inet_ntop="unknown"
28400   tst_proto_inet_ntop="unknown"
28401   tst_compi_inet_ntop="unknown"
28402   tst_works_inet_ntop="unknown"
28403   tst_allow_inet_ntop="unknown"
28404   #
28405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
28406 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
28407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28408 /* end confdefs.h.  */
28409
28410
28411 #define inet_ntop innocuous_inet_ntop
28412 #ifdef __STDC__
28413 # include <limits.h>
28414 #else
28415 # include <assert.h>
28416 #endif
28417 #undef inet_ntop
28418 #ifdef __cplusplus
28419 extern "C"
28420 #endif
28421 char inet_ntop ();
28422 #if defined __stub_inet_ntop || defined __stub___inet_ntop
28423 choke me
28424 #endif
28425
28426 int main (void)
28427 {
28428 return inet_ntop ();
28429  ;
28430  return 0;
28431 }
28432
28433 _ACEOF
28434 if ac_fn_c_try_link "$LINENO"; then :
28435
28436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28437 $as_echo "yes" >&6; }
28438     tst_links_inet_ntop="yes"
28439
28440 else
28441
28442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443 $as_echo "no" >&6; }
28444     tst_links_inet_ntop="no"
28445
28446 fi
28447 rm -f core conftest.err conftest.$ac_objext \
28448     conftest$ac_exeext conftest.$ac_ext
28449   #
28450   if test "$tst_links_inet_ntop" = "yes"; then
28451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
28452 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
28453     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28454 /* end confdefs.h.  */
28455
28456       $curl_includes_arpa_inet
28457
28458 _ACEOF
28459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28460   $EGREP "inet_ntop" >/dev/null 2>&1; then :
28461
28462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463 $as_echo "yes" >&6; }
28464       tst_proto_inet_ntop="yes"
28465
28466 else
28467
28468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28469 $as_echo "no" >&6; }
28470       tst_proto_inet_ntop="no"
28471
28472 fi
28473 rm -f conftest*
28474
28475   fi
28476   #
28477   if test "$tst_proto_inet_ntop" = "yes"; then
28478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
28479 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
28480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28481 /* end confdefs.h.  */
28482
28483
28484         $curl_includes_arpa_inet
28485
28486 int main (void)
28487 {
28488
28489         if(0 != inet_ntop(0, 0, 0, 0))
28490           return 1;
28491
28492  ;
28493  return 0;
28494 }
28495
28496 _ACEOF
28497 if ac_fn_c_try_compile "$LINENO"; then :
28498
28499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28500 $as_echo "yes" >&6; }
28501       tst_compi_inet_ntop="yes"
28502
28503 else
28504
28505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28506 $as_echo "no" >&6; }
28507       tst_compi_inet_ntop="no"
28508
28509 fi
28510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28511   fi
28512   #
28513     if test "x$cross_compiling" != "xyes" &&
28514     test "$tst_compi_inet_ntop" = "yes"; then
28515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
28516 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
28517     if test "$cross_compiling" = yes; then :
28518   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28520 as_fn_error $? "cannot run test program while cross compiling
28521 See \`config.log' for more details" "$LINENO" 5 ; }
28522 else
28523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h.  */
28525
28526
28527         $curl_includes_stdlib
28528         $curl_includes_arpa_inet
28529         $curl_includes_string
28530
28531 int main (void)
28532 {
28533
28534         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
28535         char ipv4res[sizeof "255.255.255.255"];
28536         unsigned char ipv6a[26];
28537         unsigned char ipv4a[5];
28538         char *ipv6ptr = 0;
28539         char *ipv4ptr = 0;
28540         /* - */
28541         ipv4res[0] = '\0';
28542         ipv4a[0] = 0xc0;
28543         ipv4a[1] = 0xa8;
28544         ipv4a[2] = 0x64;
28545         ipv4a[3] = 0x01;
28546         ipv4a[4] = 0x01;
28547         /* - */
28548         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
28549         if(!ipv4ptr)
28550           exit(1); /* fail */
28551         if(ipv4ptr != ipv4res)
28552           exit(1); /* fail */
28553         if(!ipv4ptr[0])
28554           exit(1); /* fail */
28555         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
28556           exit(1); /* fail */
28557         /* - */
28558         ipv6res[0] = '\0';
28559         memset(ipv6a, 0, sizeof(ipv6a));
28560         ipv6a[0] = 0xfe;
28561         ipv6a[1] = 0x80;
28562         ipv6a[8] = 0x02;
28563         ipv6a[9] = 0x14;
28564         ipv6a[10] = 0x4f;
28565         ipv6a[11] = 0xff;
28566         ipv6a[12] = 0xfe;
28567         ipv6a[13] = 0x0b;
28568         ipv6a[14] = 0x76;
28569         ipv6a[15] = 0xc8;
28570         ipv6a[25] = 0x01;
28571         /* - */
28572         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
28573         if(!ipv6ptr)
28574           exit(1); /* fail */
28575         if(ipv6ptr != ipv6res)
28576           exit(1); /* fail */
28577         if(!ipv6ptr[0])
28578           exit(1); /* fail */
28579         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
28580           exit(1); /* fail */
28581         /* - */
28582         exit(0);
28583
28584  ;
28585  return 0;
28586 }
28587
28588 _ACEOF
28589 if ac_fn_c_try_run "$LINENO"; then :
28590
28591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28592 $as_echo "yes" >&6; }
28593       tst_works_inet_ntop="yes"
28594
28595 else
28596
28597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598 $as_echo "no" >&6; }
28599       tst_works_inet_ntop="no"
28600
28601 fi
28602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28603   conftest.$ac_objext conftest.beam conftest.$ac_ext
28604 fi
28605
28606   fi
28607   #
28608   if test "$tst_compi_inet_ntop" = "yes" &&
28609     test "$tst_works_inet_ntop" != "no"; then
28610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
28611 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
28612     if test "x$curl_disallow_inet_ntop" != "xyes"; then
28613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28614 $as_echo "yes" >&6; }
28615       tst_allow_inet_ntop="yes"
28616     else
28617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618 $as_echo "no" >&6; }
28619       tst_allow_inet_ntop="no"
28620     fi
28621   fi
28622   #
28623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
28624 $as_echo_n "checking if inet_ntop might be used... " >&6; }
28625   if test "$tst_links_inet_ntop" = "yes" &&
28626      test "$tst_proto_inet_ntop" = "yes" &&
28627      test "$tst_compi_inet_ntop" = "yes" &&
28628      test "$tst_allow_inet_ntop" = "yes" &&
28629      test "$tst_works_inet_ntop" != "no"; then
28630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28631 $as_echo "yes" >&6; }
28632
28633 cat >>confdefs.h <<_ACEOF
28634 #define HAVE_INET_NTOP 1
28635 _ACEOF
28636
28637     ac_cv_func_inet_ntop="yes"
28638   else
28639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28640 $as_echo "no" >&6; }
28641     ac_cv_func_inet_ntop="no"
28642   fi
28643
28644
28645         #
28646   tst_links_inet_pton="unknown"
28647   tst_proto_inet_pton="unknown"
28648   tst_compi_inet_pton="unknown"
28649   tst_works_inet_pton="unknown"
28650   tst_allow_inet_pton="unknown"
28651   #
28652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28653 $as_echo_n "checking if inet_pton can be linked... " >&6; }
28654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h.  */
28656
28657
28658 #define inet_pton innocuous_inet_pton
28659 #ifdef __STDC__
28660 # include <limits.h>
28661 #else
28662 # include <assert.h>
28663 #endif
28664 #undef inet_pton
28665 #ifdef __cplusplus
28666 extern "C"
28667 #endif
28668 char inet_pton ();
28669 #if defined __stub_inet_pton || defined __stub___inet_pton
28670 choke me
28671 #endif
28672
28673 int main (void)
28674 {
28675 return inet_pton ();
28676  ;
28677  return 0;
28678 }
28679
28680 _ACEOF
28681 if ac_fn_c_try_link "$LINENO"; then :
28682
28683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28684 $as_echo "yes" >&6; }
28685     tst_links_inet_pton="yes"
28686
28687 else
28688
28689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28690 $as_echo "no" >&6; }
28691     tst_links_inet_pton="no"
28692
28693 fi
28694 rm -f core conftest.err conftest.$ac_objext \
28695     conftest$ac_exeext conftest.$ac_ext
28696   #
28697   if test "$tst_links_inet_pton" = "yes"; then
28698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28699 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
28700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h.  */
28702
28703       $curl_includes_arpa_inet
28704
28705 _ACEOF
28706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28707   $EGREP "inet_pton" >/dev/null 2>&1; then :
28708
28709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28710 $as_echo "yes" >&6; }
28711       tst_proto_inet_pton="yes"
28712
28713 else
28714
28715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28716 $as_echo "no" >&6; }
28717       tst_proto_inet_pton="no"
28718
28719 fi
28720 rm -f conftest*
28721
28722   fi
28723   #
28724   if test "$tst_proto_inet_pton" = "yes"; then
28725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28726 $as_echo_n "checking if inet_pton is compilable... " >&6; }
28727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28728 /* end confdefs.h.  */
28729
28730
28731         $curl_includes_arpa_inet
28732
28733 int main (void)
28734 {
28735
28736         if(0 != inet_pton(0, 0, 0))
28737           return 1;
28738
28739  ;
28740  return 0;
28741 }
28742
28743 _ACEOF
28744 if ac_fn_c_try_compile "$LINENO"; then :
28745
28746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28747 $as_echo "yes" >&6; }
28748       tst_compi_inet_pton="yes"
28749
28750 else
28751
28752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28753 $as_echo "no" >&6; }
28754       tst_compi_inet_pton="no"
28755
28756 fi
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28758   fi
28759   #
28760     if test "x$cross_compiling" != "xyes" &&
28761     test "$tst_compi_inet_pton" = "yes"; then
28762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28763 $as_echo_n "checking if inet_pton seems to work... " >&6; }
28764     if test "$cross_compiling" = yes; then :
28765   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28767 as_fn_error $? "cannot run test program while cross compiling
28768 See \`config.log' for more details" "$LINENO" 5 ; }
28769 else
28770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28771 /* end confdefs.h.  */
28772
28773
28774         $curl_includes_stdlib
28775         $curl_includes_arpa_inet
28776         $curl_includes_string
28777
28778 int main (void)
28779 {
28780
28781         unsigned char ipv6a[16+1];
28782         unsigned char ipv4a[4+1];
28783         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28784         const char *ipv4src = "192.168.100.1";
28785         /* - */
28786         memset(ipv4a, 1, sizeof(ipv4a));
28787         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28788           exit(1); /* fail */
28789         /* - */
28790         if( (ipv4a[0] != 0xc0) ||
28791             (ipv4a[1] != 0xa8) ||
28792             (ipv4a[2] != 0x64) ||
28793             (ipv4a[3] != 0x01) ||
28794             (ipv4a[4] != 0x01) )
28795           exit(1); /* fail */
28796         /* - */
28797         memset(ipv6a, 1, sizeof(ipv6a));
28798         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28799           exit(1); /* fail */
28800         /* - */
28801         if( (ipv6a[0]  != 0xfe) ||
28802             (ipv6a[1]  != 0x80) ||
28803             (ipv6a[8]  != 0x02) ||
28804             (ipv6a[9]  != 0x14) ||
28805             (ipv6a[10] != 0x4f) ||
28806             (ipv6a[11] != 0xff) ||
28807             (ipv6a[12] != 0xfe) ||
28808             (ipv6a[13] != 0x0b) ||
28809             (ipv6a[14] != 0x76) ||
28810             (ipv6a[15] != 0xc8) ||
28811             (ipv6a[16] != 0x01) )
28812           exit(1); /* fail */
28813         /* - */
28814         if( (ipv6a[2]  != 0x0) ||
28815             (ipv6a[3]  != 0x0) ||
28816             (ipv6a[4]  != 0x0) ||
28817             (ipv6a[5]  != 0x0) ||
28818             (ipv6a[6]  != 0x0) ||
28819             (ipv6a[7]  != 0x0) )
28820           exit(1); /* fail */
28821         /* - */
28822         exit(0);
28823
28824  ;
28825  return 0;
28826 }
28827
28828 _ACEOF
28829 if ac_fn_c_try_run "$LINENO"; then :
28830
28831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28832 $as_echo "yes" >&6; }
28833       tst_works_inet_pton="yes"
28834
28835 else
28836
28837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838 $as_echo "no" >&6; }
28839       tst_works_inet_pton="no"
28840
28841 fi
28842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28843   conftest.$ac_objext conftest.beam conftest.$ac_ext
28844 fi
28845
28846   fi
28847   #
28848   if test "$tst_compi_inet_pton" = "yes" &&
28849     test "$tst_works_inet_pton" != "no"; then
28850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28851 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
28852     if test "x$curl_disallow_inet_pton" != "xyes"; then
28853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28854 $as_echo "yes" >&6; }
28855       tst_allow_inet_pton="yes"
28856     else
28857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28859       tst_allow_inet_pton="no"
28860     fi
28861   fi
28862   #
28863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28864 $as_echo_n "checking if inet_pton might be used... " >&6; }
28865   if test "$tst_links_inet_pton" = "yes" &&
28866      test "$tst_proto_inet_pton" = "yes" &&
28867      test "$tst_compi_inet_pton" = "yes" &&
28868      test "$tst_allow_inet_pton" = "yes" &&
28869      test "$tst_works_inet_pton" != "no"; then
28870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28871 $as_echo "yes" >&6; }
28872
28873 cat >>confdefs.h <<_ACEOF
28874 #define HAVE_INET_PTON 1
28875 _ACEOF
28876
28877     ac_cv_func_inet_pton="yes"
28878   else
28879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28880 $as_echo "no" >&6; }
28881     ac_cv_func_inet_pton="no"
28882   fi
28883
28884
28885 curl_includes_stropts="\
28886 /* includes start */
28887 #ifdef HAVE_SYS_TYPES_H
28888 #  include <sys/types.h>
28889 #endif
28890 #ifdef HAVE_UNISTD_H
28891 #  include <unistd.h>
28892 #endif
28893 #ifdef HAVE_SYS_SOCKET_H
28894 #  include <sys/socket.h>
28895 #endif
28896 #ifdef HAVE_SYS_IOCTL_H
28897 #  include <sys/ioctl.h>
28898 #endif
28899 #ifdef HAVE_STROPTS_H
28900 #  include <stropts.h>
28901 #endif
28902 /* includes end */"
28903   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28904 do :
28905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
28907 "
28908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28909   cat >>confdefs.h <<_ACEOF
28910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28911 _ACEOF
28912
28913 fi
28914
28915 done
28916
28917
28918
28919     #
28920   tst_links_ioctl="unknown"
28921   tst_proto_ioctl="unknown"
28922   tst_compi_ioctl="unknown"
28923   tst_allow_ioctl="unknown"
28924   #
28925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28926 $as_echo_n "checking if ioctl can be linked... " >&6; }
28927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28928 /* end confdefs.h.  */
28929
28930
28931 #define ioctl innocuous_ioctl
28932 #ifdef __STDC__
28933 # include <limits.h>
28934 #else
28935 # include <assert.h>
28936 #endif
28937 #undef ioctl
28938 #ifdef __cplusplus
28939 extern "C"
28940 #endif
28941 char ioctl ();
28942 #if defined __stub_ioctl || defined __stub___ioctl
28943 choke me
28944 #endif
28945
28946 int main (void)
28947 {
28948 return ioctl ();
28949  ;
28950  return 0;
28951 }
28952
28953 _ACEOF
28954 if ac_fn_c_try_link "$LINENO"; then :
28955
28956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28957 $as_echo "yes" >&6; }
28958     tst_links_ioctl="yes"
28959
28960 else
28961
28962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28963 $as_echo "no" >&6; }
28964     tst_links_ioctl="no"
28965
28966 fi
28967 rm -f core conftest.err conftest.$ac_objext \
28968     conftest$ac_exeext conftest.$ac_ext
28969   #
28970   if test "$tst_links_ioctl" = "yes"; then
28971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28972 $as_echo_n "checking if ioctl is prototyped... " >&6; }
28973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974 /* end confdefs.h.  */
28975
28976       $curl_includes_stropts
28977
28978 _ACEOF
28979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28980   $EGREP "ioctl" >/dev/null 2>&1; then :
28981
28982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983 $as_echo "yes" >&6; }
28984       tst_proto_ioctl="yes"
28985
28986 else
28987
28988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989 $as_echo "no" >&6; }
28990       tst_proto_ioctl="no"
28991
28992 fi
28993 rm -f conftest*
28994
28995   fi
28996   #
28997   if test "$tst_proto_ioctl" = "yes"; then
28998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28999 $as_echo_n "checking if ioctl is compilable... " >&6; }
29000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29001 /* end confdefs.h.  */
29002
29003
29004         $curl_includes_stropts
29005
29006 int main (void)
29007 {
29008
29009         if(0 != ioctl(0, 0, 0))
29010           return 1;
29011
29012  ;
29013  return 0;
29014 }
29015
29016 _ACEOF
29017 if ac_fn_c_try_compile "$LINENO"; then :
29018
29019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29020 $as_echo "yes" >&6; }
29021       tst_compi_ioctl="yes"
29022
29023 else
29024
29025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29026 $as_echo "no" >&6; }
29027       tst_compi_ioctl="no"
29028
29029 fi
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031   fi
29032   #
29033   if test "$tst_compi_ioctl" = "yes"; then
29034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
29035 $as_echo_n "checking if ioctl usage allowed... " >&6; }
29036     if test "x$curl_disallow_ioctl" != "xyes"; then
29037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29038 $as_echo "yes" >&6; }
29039       tst_allow_ioctl="yes"
29040     else
29041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29042 $as_echo "no" >&6; }
29043       tst_allow_ioctl="no"
29044     fi
29045   fi
29046   #
29047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
29048 $as_echo_n "checking if ioctl might be used... " >&6; }
29049   if test "$tst_links_ioctl" = "yes" &&
29050      test "$tst_proto_ioctl" = "yes" &&
29051      test "$tst_compi_ioctl" = "yes" &&
29052      test "$tst_allow_ioctl" = "yes"; then
29053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29054 $as_echo "yes" >&6; }
29055
29056 cat >>confdefs.h <<_ACEOF
29057 #define HAVE_IOCTL 1
29058 _ACEOF
29059
29060     ac_cv_func_ioctl="yes"
29061
29062   #
29063   tst_compi_ioctl_fionbio="unknown"
29064   tst_allow_ioctl_fionbio="unknown"
29065   #
29066   if test "$ac_cv_func_ioctl" = "yes"; then
29067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
29068 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
29069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29070 /* end confdefs.h.  */
29071
29072
29073         $curl_includes_stropts
29074
29075 int main (void)
29076 {
29077
29078         int flags = 0;
29079         if(0 != ioctl(0, FIONBIO, &flags))
29080           return 1;
29081
29082  ;
29083  return 0;
29084 }
29085
29086 _ACEOF
29087 if ac_fn_c_try_compile "$LINENO"; then :
29088
29089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29090 $as_echo "yes" >&6; }
29091       tst_compi_ioctl_fionbio="yes"
29092
29093 else
29094
29095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29096 $as_echo "no" >&6; }
29097       tst_compi_ioctl_fionbio="no"
29098
29099 fi
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101   fi
29102   #
29103   if test "$tst_compi_ioctl_fionbio" = "yes"; then
29104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
29105 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
29106     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
29107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29108 $as_echo "yes" >&6; }
29109       tst_allow_ioctl_fionbio="yes"
29110     else
29111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29112 $as_echo "no" >&6; }
29113       tst_allow_ioctl_fionbio="no"
29114     fi
29115   fi
29116   #
29117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
29118 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
29119   if test "$tst_compi_ioctl_fionbio" = "yes" &&
29120      test "$tst_allow_ioctl_fionbio" = "yes"; then
29121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29122 $as_echo "yes" >&6; }
29123
29124 cat >>confdefs.h <<_ACEOF
29125 #define HAVE_IOCTL_FIONBIO 1
29126 _ACEOF
29127
29128     ac_cv_func_ioctl_fionbio="yes"
29129   else
29130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29131 $as_echo "no" >&6; }
29132     ac_cv_func_ioctl_fionbio="no"
29133   fi
29134
29135
29136   #
29137   tst_compi_ioctl_siocgifaddr="unknown"
29138   tst_allow_ioctl_siocgifaddr="unknown"
29139   #
29140   if test "$ac_cv_func_ioctl" = "yes"; then
29141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
29142 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
29143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144 /* end confdefs.h.  */
29145
29146
29147         $curl_includes_stropts
29148         #include <net/if.h>
29149
29150 int main (void)
29151 {
29152
29153         struct ifreq ifr;
29154         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
29155           return 1;
29156
29157  ;
29158  return 0;
29159 }
29160
29161 _ACEOF
29162 if ac_fn_c_try_compile "$LINENO"; then :
29163
29164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29165 $as_echo "yes" >&6; }
29166       tst_compi_ioctl_siocgifaddr="yes"
29167
29168 else
29169
29170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29171 $as_echo "no" >&6; }
29172       tst_compi_ioctl_siocgifaddr="no"
29173
29174 fi
29175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29176   fi
29177   #
29178   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
29179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
29180 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
29181     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
29182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29183 $as_echo "yes" >&6; }
29184       tst_allow_ioctl_siocgifaddr="yes"
29185     else
29186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29187 $as_echo "no" >&6; }
29188       tst_allow_ioctl_siocgifaddr="no"
29189     fi
29190   fi
29191   #
29192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
29193 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
29194   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
29195      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
29196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29197 $as_echo "yes" >&6; }
29198
29199 cat >>confdefs.h <<_ACEOF
29200 #define HAVE_IOCTL_SIOCGIFADDR 1
29201 _ACEOF
29202
29203     ac_cv_func_ioctl_siocgifaddr="yes"
29204   else
29205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29206 $as_echo "no" >&6; }
29207     ac_cv_func_ioctl_siocgifaddr="no"
29208   fi
29209
29210   else
29211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29212 $as_echo "no" >&6; }
29213     ac_cv_func_ioctl="no"
29214   fi
29215
29216
29217     #
29218   tst_links_ioctlsocket="unknown"
29219   tst_proto_ioctlsocket="unknown"
29220   tst_compi_ioctlsocket="unknown"
29221   tst_allow_ioctlsocket="unknown"
29222   #
29223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
29224 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
29225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h.  */
29227
29228
29229       $curl_includes_winsock2
29230
29231 int main (void)
29232 {
29233
29234       if(0 != ioctlsocket(0, 0, 0))
29235         return 1;
29236
29237  ;
29238  return 0;
29239 }
29240
29241 _ACEOF
29242 if ac_fn_c_try_link "$LINENO"; then :
29243
29244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29245 $as_echo "yes" >&6; }
29246     tst_links_ioctlsocket="yes"
29247
29248 else
29249
29250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29251 $as_echo "no" >&6; }
29252     tst_links_ioctlsocket="no"
29253
29254 fi
29255 rm -f core conftest.err conftest.$ac_objext \
29256     conftest$ac_exeext conftest.$ac_ext
29257   #
29258   if test "$tst_links_ioctlsocket" = "yes"; then
29259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
29260 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
29261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29262 /* end confdefs.h.  */
29263
29264       $curl_includes_winsock2
29265
29266 _ACEOF
29267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29268   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
29269
29270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29271 $as_echo "yes" >&6; }
29272       tst_proto_ioctlsocket="yes"
29273
29274 else
29275
29276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29277 $as_echo "no" >&6; }
29278       tst_proto_ioctlsocket="no"
29279
29280 fi
29281 rm -f conftest*
29282
29283   fi
29284   #
29285   if test "$tst_proto_ioctlsocket" = "yes"; then
29286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
29287 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
29288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289 /* end confdefs.h.  */
29290
29291
29292         $curl_includes_winsock2
29293
29294 int main (void)
29295 {
29296
29297         if(0 != ioctlsocket(0, 0, 0))
29298           return 1;
29299
29300  ;
29301  return 0;
29302 }
29303
29304 _ACEOF
29305 if ac_fn_c_try_compile "$LINENO"; then :
29306
29307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29309       tst_compi_ioctlsocket="yes"
29310
29311 else
29312
29313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29314 $as_echo "no" >&6; }
29315       tst_compi_ioctlsocket="no"
29316
29317 fi
29318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319   fi
29320   #
29321   if test "$tst_compi_ioctlsocket" = "yes"; then
29322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
29323 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
29324     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
29325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29326 $as_echo "yes" >&6; }
29327       tst_allow_ioctlsocket="yes"
29328     else
29329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330 $as_echo "no" >&6; }
29331       tst_allow_ioctlsocket="no"
29332     fi
29333   fi
29334   #
29335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
29336 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
29337   if test "$tst_links_ioctlsocket" = "yes" &&
29338      test "$tst_proto_ioctlsocket" = "yes" &&
29339      test "$tst_compi_ioctlsocket" = "yes" &&
29340      test "$tst_allow_ioctlsocket" = "yes"; then
29341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29342 $as_echo "yes" >&6; }
29343
29344 cat >>confdefs.h <<_ACEOF
29345 #define HAVE_IOCTLSOCKET 1
29346 _ACEOF
29347
29348     ac_cv_func_ioctlsocket="yes"
29349
29350   #
29351   tst_compi_ioctlsocket_fionbio="unknown"
29352   tst_allow_ioctlsocket_fionbio="unknown"
29353   #
29354   if test "$ac_cv_func_ioctlsocket" = "yes"; then
29355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
29356 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
29357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29358 /* end confdefs.h.  */
29359
29360
29361         $curl_includes_winsock2
29362
29363 int main (void)
29364 {
29365
29366         int flags = 0;
29367         if(0 != ioctlsocket(0, FIONBIO, &flags))
29368           return 1;
29369
29370  ;
29371  return 0;
29372 }
29373
29374 _ACEOF
29375 if ac_fn_c_try_compile "$LINENO"; then :
29376
29377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378 $as_echo "yes" >&6; }
29379       tst_compi_ioctlsocket_fionbio="yes"
29380
29381 else
29382
29383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29384 $as_echo "no" >&6; }
29385       tst_compi_ioctlsocket_fionbio="no"
29386
29387 fi
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389   fi
29390   #
29391   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
29392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
29393 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
29394     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
29395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29396 $as_echo "yes" >&6; }
29397       tst_allow_ioctlsocket_fionbio="yes"
29398     else
29399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29400 $as_echo "no" >&6; }
29401       tst_allow_ioctlsocket_fionbio="no"
29402     fi
29403   fi
29404   #
29405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
29406 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
29407   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
29408      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
29409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29410 $as_echo "yes" >&6; }
29411
29412 cat >>confdefs.h <<_ACEOF
29413 #define HAVE_IOCTLSOCKET_FIONBIO 1
29414 _ACEOF
29415
29416     ac_cv_func_ioctlsocket_fionbio="yes"
29417   else
29418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29419 $as_echo "no" >&6; }
29420     ac_cv_func_ioctlsocket_fionbio="no"
29421   fi
29422
29423   else
29424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29426     ac_cv_func_ioctlsocket="no"
29427   fi
29428
29429
29430     #
29431   tst_links_ioctlsocket_camel="unknown"
29432   tst_proto_ioctlsocket_camel="unknown"
29433   tst_compi_ioctlsocket_camel="unknown"
29434   tst_allow_ioctlsocket_camel="unknown"
29435   #
29436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
29437 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
29438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439 /* end confdefs.h.  */
29440
29441
29442 #define IoctlSocket innocuous_IoctlSocket
29443 #ifdef __STDC__
29444 # include <limits.h>
29445 #else
29446 # include <assert.h>
29447 #endif
29448 #undef IoctlSocket
29449 #ifdef __cplusplus
29450 extern "C"
29451 #endif
29452 char IoctlSocket ();
29453 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
29454 choke me
29455 #endif
29456
29457 int main (void)
29458 {
29459 return IoctlSocket ();
29460  ;
29461  return 0;
29462 }
29463
29464 _ACEOF
29465 if ac_fn_c_try_link "$LINENO"; then :
29466
29467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29468 $as_echo "yes" >&6; }
29469     tst_links_ioctlsocket_camel="yes"
29470
29471 else
29472
29473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29474 $as_echo "no" >&6; }
29475     tst_links_ioctlsocket_camel="no"
29476
29477 fi
29478 rm -f core conftest.err conftest.$ac_objext \
29479     conftest$ac_exeext conftest.$ac_ext
29480   #
29481   if test "$tst_links_ioctlsocket_camel" = "yes"; then
29482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
29483 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
29484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29485 /* end confdefs.h.  */
29486
29487       $curl_includes_stropts
29488
29489 _ACEOF
29490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29491   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
29492
29493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29494 $as_echo "yes" >&6; }
29495       tst_proto_ioctlsocket_camel="yes"
29496
29497 else
29498
29499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29500 $as_echo "no" >&6; }
29501       tst_proto_ioctlsocket_camel="no"
29502
29503 fi
29504 rm -f conftest*
29505
29506   fi
29507   #
29508   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
29509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
29510 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
29511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h.  */
29513
29514
29515         $curl_includes_stropts
29516
29517 int main (void)
29518 {
29519
29520         if(0 != IoctlSocket(0, 0, 0))
29521           return 1;
29522
29523  ;
29524  return 0;
29525 }
29526
29527 _ACEOF
29528 if ac_fn_c_try_compile "$LINENO"; then :
29529
29530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531 $as_echo "yes" >&6; }
29532       tst_compi_ioctlsocket_camel="yes"
29533
29534 else
29535
29536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29537 $as_echo "no" >&6; }
29538       tst_compi_ioctlsocket_camel="no"
29539
29540 fi
29541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29542   fi
29543   #
29544   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
29545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
29546 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
29547     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
29548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549 $as_echo "yes" >&6; }
29550       tst_allow_ioctlsocket_camel="yes"
29551     else
29552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29553 $as_echo "no" >&6; }
29554       tst_allow_ioctlsocket_camel="no"
29555     fi
29556   fi
29557   #
29558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
29559 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
29560   if test "$tst_links_ioctlsocket_camel" = "yes" &&
29561      test "$tst_proto_ioctlsocket_camel" = "yes" &&
29562      test "$tst_compi_ioctlsocket_camel" = "yes" &&
29563      test "$tst_allow_ioctlsocket_camel" = "yes"; then
29564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29565 $as_echo "yes" >&6; }
29566
29567 cat >>confdefs.h <<_ACEOF
29568 #define HAVE_IOCTLSOCKET_CAMEL 1
29569 _ACEOF
29570
29571     ac_cv_func_ioctlsocket_camel="yes"
29572
29573   #
29574   tst_compi_ioctlsocket_camel_fionbio="unknown"
29575   tst_allow_ioctlsocket_camel_fionbio="unknown"
29576   #
29577   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
29578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
29579 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
29580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29581 /* end confdefs.h.  */
29582
29583
29584         $curl_includes_stropts
29585
29586 int main (void)
29587 {
29588
29589         long flags = 0;
29590         if(0 != ioctlsocket(0, FIONBIO, &flags))
29591           return 1;
29592
29593  ;
29594  return 0;
29595 }
29596
29597 _ACEOF
29598 if ac_fn_c_try_compile "$LINENO"; then :
29599
29600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29601 $as_echo "yes" >&6; }
29602       tst_compi_ioctlsocket_camel_fionbio="yes"
29603
29604 else
29605
29606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29607 $as_echo "no" >&6; }
29608       tst_compi_ioctlsocket_camel_fionbio="no"
29609
29610 fi
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612   fi
29613   #
29614   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
29615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
29616 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
29617     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
29618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29619 $as_echo "yes" >&6; }
29620       tst_allow_ioctlsocket_camel_fionbio="yes"
29621     else
29622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29623 $as_echo "no" >&6; }
29624       tst_allow_ioctlsocket_camel_fionbio="no"
29625     fi
29626   fi
29627   #
29628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
29629 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
29630   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
29631      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
29632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29633 $as_echo "yes" >&6; }
29634
29635 cat >>confdefs.h <<_ACEOF
29636 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
29637 _ACEOF
29638
29639     ac_cv_func_ioctlsocket_camel_fionbio="yes"
29640   else
29641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29643     ac_cv_func_ioctlsocket_camel_fionbio="no"
29644   fi
29645
29646   else
29647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648 $as_echo "no" >&6; }
29649     ac_cv_func_ioctlsocket_camel="no"
29650   fi
29651
29652
29653       #
29654   tst_links_localtime_r="unknown"
29655   tst_proto_localtime_r="unknown"
29656   tst_compi_localtime_r="unknown"
29657   tst_works_localtime_r="unknown"
29658   tst_allow_localtime_r="unknown"
29659   #
29660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
29661 $as_echo_n "checking if localtime_r can be linked... " >&6; }
29662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29663 /* end confdefs.h.  */
29664
29665
29666 #define localtime_r innocuous_localtime_r
29667 #ifdef __STDC__
29668 # include <limits.h>
29669 #else
29670 # include <assert.h>
29671 #endif
29672 #undef localtime_r
29673 #ifdef __cplusplus
29674 extern "C"
29675 #endif
29676 char localtime_r ();
29677 #if defined __stub_localtime_r || defined __stub___localtime_r
29678 choke me
29679 #endif
29680
29681 int main (void)
29682 {
29683 return localtime_r ();
29684  ;
29685  return 0;
29686 }
29687
29688 _ACEOF
29689 if ac_fn_c_try_link "$LINENO"; then :
29690
29691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29692 $as_echo "yes" >&6; }
29693     tst_links_localtime_r="yes"
29694
29695 else
29696
29697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29698 $as_echo "no" >&6; }
29699     tst_links_localtime_r="no"
29700
29701 fi
29702 rm -f core conftest.err conftest.$ac_objext \
29703     conftest$ac_exeext conftest.$ac_ext
29704   #
29705   if test "$tst_links_localtime_r" = "yes"; then
29706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
29707 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
29708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29709 /* end confdefs.h.  */
29710
29711       $curl_includes_time
29712
29713 _ACEOF
29714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29715   $EGREP "localtime_r" >/dev/null 2>&1; then :
29716
29717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29718 $as_echo "yes" >&6; }
29719       tst_proto_localtime_r="yes"
29720
29721 else
29722
29723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29724 $as_echo "no" >&6; }
29725       tst_proto_localtime_r="no"
29726
29727 fi
29728 rm -f conftest*
29729
29730   fi
29731   #
29732   if test "$tst_proto_localtime_r" = "yes"; then
29733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
29734 $as_echo_n "checking if localtime_r is compilable... " >&6; }
29735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h.  */
29737
29738
29739         $curl_includes_time
29740
29741 int main (void)
29742 {
29743
29744         if(0 != localtime_r(0, 0))
29745           return 1;
29746
29747  ;
29748  return 0;
29749 }
29750
29751 _ACEOF
29752 if ac_fn_c_try_compile "$LINENO"; then :
29753
29754       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29755 $as_echo "yes" >&6; }
29756       tst_compi_localtime_r="yes"
29757
29758 else
29759
29760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29762       tst_compi_localtime_r="no"
29763
29764 fi
29765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29766   fi
29767   #
29768     if test "x$cross_compiling" != "xyes" &&
29769     test "$tst_compi_localtime_r" = "yes"; then
29770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
29771 $as_echo_n "checking if localtime_r seems to work... " >&6; }
29772     if test "$cross_compiling" = yes; then :
29773   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29775 as_fn_error $? "cannot run test program while cross compiling
29776 See \`config.log' for more details" "$LINENO" 5 ; }
29777 else
29778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29779 /* end confdefs.h.  */
29780
29781
29782         $curl_includes_stdlib
29783         $curl_includes_time
29784
29785 int main (void)
29786 {
29787
29788         time_t clock = 1170352587;
29789         struct tm *tmp = 0;
29790         struct tm result;
29791         tmp = localtime_r(&clock, &result);
29792         if(tmp)
29793           exit(0);
29794         else
29795           exit(1);
29796
29797  ;
29798  return 0;
29799 }
29800
29801 _ACEOF
29802 if ac_fn_c_try_run "$LINENO"; then :
29803
29804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29805 $as_echo "yes" >&6; }
29806       tst_works_localtime_r="yes"
29807
29808 else
29809
29810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812       tst_works_localtime_r="no"
29813
29814 fi
29815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29816   conftest.$ac_objext conftest.beam conftest.$ac_ext
29817 fi
29818
29819   fi
29820   #
29821   if test "$tst_compi_localtime_r" = "yes" &&
29822     test "$tst_works_localtime_r" != "no"; then
29823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
29824 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
29825     if test "x$curl_disallow_localtime_r" != "xyes"; then
29826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29827 $as_echo "yes" >&6; }
29828       tst_allow_localtime_r="yes"
29829     else
29830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29831 $as_echo "no" >&6; }
29832       tst_allow_localtime_r="no"
29833     fi
29834   fi
29835   #
29836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
29837 $as_echo_n "checking if localtime_r might be used... " >&6; }
29838   if test "$tst_links_localtime_r" = "yes" &&
29839      test "$tst_proto_localtime_r" = "yes" &&
29840      test "$tst_compi_localtime_r" = "yes" &&
29841      test "$tst_allow_localtime_r" = "yes" &&
29842      test "$tst_works_localtime_r" != "no"; then
29843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29844 $as_echo "yes" >&6; }
29845
29846 cat >>confdefs.h <<_ACEOF
29847 #define HAVE_LOCALTIME_R 1
29848 _ACEOF
29849
29850     ac_cv_func_localtime_r="yes"
29851   else
29852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29853 $as_echo "no" >&6; }
29854     ac_cv_func_localtime_r="no"
29855   fi
29856
29857
29858     #
29859   tst_links_memrchr="unknown"
29860   tst_macro_memrchr="unknown"
29861   tst_proto_memrchr="unknown"
29862   tst_compi_memrchr="unknown"
29863   tst_allow_memrchr="unknown"
29864   #
29865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
29866 $as_echo_n "checking if memrchr can be linked... " >&6; }
29867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29868 /* end confdefs.h.  */
29869
29870
29871 #define memrchr innocuous_memrchr
29872 #ifdef __STDC__
29873 # include <limits.h>
29874 #else
29875 # include <assert.h>
29876 #endif
29877 #undef memrchr
29878 #ifdef __cplusplus
29879 extern "C"
29880 #endif
29881 char memrchr ();
29882 #if defined __stub_memrchr || defined __stub___memrchr
29883 choke me
29884 #endif
29885
29886 int main (void)
29887 {
29888 return memrchr ();
29889  ;
29890  return 0;
29891 }
29892
29893 _ACEOF
29894 if ac_fn_c_try_link "$LINENO"; then :
29895
29896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897 $as_echo "yes" >&6; }
29898     tst_links_memrchr="yes"
29899
29900 else
29901
29902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29903 $as_echo "no" >&6; }
29904     tst_links_memrchr="no"
29905
29906 fi
29907 rm -f core conftest.err conftest.$ac_objext \
29908     conftest$ac_exeext conftest.$ac_ext
29909   #
29910   if test "$tst_links_memrchr" = "no"; then
29911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
29912 $as_echo_n "checking if memrchr seems a macro... " >&6; }
29913     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29914 /* end confdefs.h.  */
29915
29916
29917         $curl_includes_string
29918
29919 int main (void)
29920 {
29921
29922         if(0 != memrchr(0, 0, 0))
29923           return 1;
29924
29925  ;
29926  return 0;
29927 }
29928
29929 _ACEOF
29930 if ac_fn_c_try_link "$LINENO"; then :
29931
29932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29933 $as_echo "yes" >&6; }
29934       tst_macro_memrchr="yes"
29935
29936 else
29937
29938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940       tst_macro_memrchr="no"
29941
29942 fi
29943 rm -f core conftest.err conftest.$ac_objext \
29944     conftest$ac_exeext conftest.$ac_ext
29945   fi
29946   #
29947   if test "$tst_links_memrchr" = "yes"; then
29948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
29949 $as_echo_n "checking if memrchr is prototyped... " >&6; }
29950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29951 /* end confdefs.h.  */
29952
29953       $curl_includes_string
29954
29955 _ACEOF
29956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29957   $EGREP "memrchr" >/dev/null 2>&1; then :
29958
29959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29960 $as_echo "yes" >&6; }
29961       tst_proto_memrchr="yes"
29962
29963 else
29964
29965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 $as_echo "no" >&6; }
29967       tst_proto_memrchr="no"
29968
29969 fi
29970 rm -f conftest*
29971
29972   fi
29973   #
29974   if test "$tst_proto_memrchr" = "yes" ||
29975      test "$tst_macro_memrchr" = "yes"; then
29976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
29977 $as_echo_n "checking if memrchr is compilable... " >&6; }
29978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29979 /* end confdefs.h.  */
29980
29981
29982         $curl_includes_string
29983
29984 int main (void)
29985 {
29986
29987         if(0 != memrchr(0, 0, 0))
29988           return 1;
29989
29990  ;
29991  return 0;
29992 }
29993
29994 _ACEOF
29995 if ac_fn_c_try_compile "$LINENO"; then :
29996
29997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29998 $as_echo "yes" >&6; }
29999       tst_compi_memrchr="yes"
30000
30001 else
30002
30003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30004 $as_echo "no" >&6; }
30005       tst_compi_memrchr="no"
30006
30007 fi
30008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30009   fi
30010   #
30011   if test "$tst_compi_memrchr" = "yes"; then
30012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
30013 $as_echo_n "checking if memrchr usage allowed... " >&6; }
30014     if test "x$curl_disallow_memrchr" != "xyes"; then
30015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30016 $as_echo "yes" >&6; }
30017       tst_allow_memrchr="yes"
30018     else
30019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30021       tst_allow_memrchr="no"
30022     fi
30023   fi
30024   #
30025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
30026 $as_echo_n "checking if memrchr might be used... " >&6; }
30027   if (test "$tst_proto_memrchr" = "yes" ||
30028       test "$tst_macro_memrchr" = "yes") &&
30029      test "$tst_compi_memrchr" = "yes" &&
30030      test "$tst_allow_memrchr" = "yes"; then
30031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30032 $as_echo "yes" >&6; }
30033
30034 cat >>confdefs.h <<_ACEOF
30035 #define HAVE_MEMRCHR 1
30036 _ACEOF
30037
30038     ac_cv_func_memrchr="yes"
30039   else
30040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042     ac_cv_func_memrchr="no"
30043   fi
30044
30045
30046 curl_includes_poll="\
30047 /* includes start */
30048 #ifdef HAVE_SYS_TYPES_H
30049 #  include <sys/types.h>
30050 #endif
30051 #ifdef HAVE_POLL_H
30052 #  include <poll.h>
30053 #endif
30054 #ifdef HAVE_SYS_POLL_H
30055 #  include <sys/poll.h>
30056 #endif
30057 /* includes end */"
30058   for ac_header in sys/types.h poll.h sys/poll.h
30059 do :
30060   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
30062 "
30063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30064   cat >>confdefs.h <<_ACEOF
30065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30066 _ACEOF
30067
30068 fi
30069
30070 done
30071
30072
30073
30074       #
30075   tst_links_poll="unknown"
30076   tst_proto_poll="unknown"
30077   tst_compi_poll="unknown"
30078   tst_works_poll="unknown"
30079   tst_allow_poll="unknown"
30080   #
30081   case $host_os in
30082     darwin*|interix*)
30083                               curl_disallow_poll="yes"
30084       ;;
30085   esac
30086   #
30087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
30088 $as_echo_n "checking if poll can be linked... " >&6; }
30089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30090 /* end confdefs.h.  */
30091
30092
30093       $curl_includes_poll
30094
30095 int main (void)
30096 {
30097
30098       if(0 != poll(0, 0, 0))
30099         return 1;
30100
30101  ;
30102  return 0;
30103 }
30104
30105 _ACEOF
30106 if ac_fn_c_try_link "$LINENO"; then :
30107
30108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30109 $as_echo "yes" >&6; }
30110     tst_links_poll="yes"
30111
30112 else
30113
30114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115 $as_echo "no" >&6; }
30116     tst_links_poll="no"
30117
30118 fi
30119 rm -f core conftest.err conftest.$ac_objext \
30120     conftest$ac_exeext conftest.$ac_ext
30121   #
30122   if test "$tst_links_poll" = "yes"; then
30123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
30124 $as_echo_n "checking if poll is prototyped... " >&6; }
30125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30126 /* end confdefs.h.  */
30127
30128       $curl_includes_poll
30129
30130 _ACEOF
30131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30132   $EGREP "poll" >/dev/null 2>&1; then :
30133
30134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135 $as_echo "yes" >&6; }
30136       tst_proto_poll="yes"
30137
30138 else
30139
30140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30141 $as_echo "no" >&6; }
30142       tst_proto_poll="no"
30143
30144 fi
30145 rm -f conftest*
30146
30147   fi
30148   #
30149   if test "$tst_proto_poll" = "yes"; then
30150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
30151 $as_echo_n "checking if poll is compilable... " >&6; }
30152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30153 /* end confdefs.h.  */
30154
30155
30156         $curl_includes_poll
30157
30158 int main (void)
30159 {
30160
30161         if(0 != poll(0, 0, 0))
30162           return 1;
30163
30164  ;
30165  return 0;
30166 }
30167
30168 _ACEOF
30169 if ac_fn_c_try_compile "$LINENO"; then :
30170
30171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30172 $as_echo "yes" >&6; }
30173       tst_compi_poll="yes"
30174
30175 else
30176
30177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30178 $as_echo "no" >&6; }
30179       tst_compi_poll="no"
30180
30181 fi
30182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30183   fi
30184   #
30185     if test "x$cross_compiling" != "xyes" &&
30186     test "$tst_compi_poll" = "yes"; then
30187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
30188 $as_echo_n "checking if poll seems to work... " >&6; }
30189     if test "$cross_compiling" = yes; then :
30190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30192 as_fn_error $? "cannot run test program while cross compiling
30193 See \`config.log' for more details" "$LINENO" 5 ; }
30194 else
30195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30196 /* end confdefs.h.  */
30197
30198
30199         $curl_includes_stdlib
30200         $curl_includes_poll
30201
30202 int main (void)
30203 {
30204
30205         if(0 != poll(0, 0, 10))
30206           exit(1); /* fail */
30207         else
30208           exit(0);
30209
30210  ;
30211  return 0;
30212 }
30213
30214 _ACEOF
30215 if ac_fn_c_try_run "$LINENO"; then :
30216
30217       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30218 $as_echo "yes" >&6; }
30219       tst_works_poll="yes"
30220
30221 else
30222
30223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30224 $as_echo "no" >&6; }
30225       tst_works_poll="no"
30226
30227 fi
30228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30229   conftest.$ac_objext conftest.beam conftest.$ac_ext
30230 fi
30231
30232   fi
30233   #
30234   if test "$tst_compi_poll" = "yes" &&
30235     test "$tst_works_poll" != "no"; then
30236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
30237 $as_echo_n "checking if poll usage allowed... " >&6; }
30238     if test "x$curl_disallow_poll" != "xyes"; then
30239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30240 $as_echo "yes" >&6; }
30241       tst_allow_poll="yes"
30242     else
30243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30244 $as_echo "no" >&6; }
30245       tst_allow_poll="no"
30246     fi
30247   fi
30248   #
30249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
30250 $as_echo_n "checking if poll might be used... " >&6; }
30251   if test "$tst_links_poll" = "yes" &&
30252      test "$tst_proto_poll" = "yes" &&
30253      test "$tst_compi_poll" = "yes" &&
30254      test "$tst_allow_poll" = "yes" &&
30255      test "$tst_works_poll" != "no"; then
30256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30257 $as_echo "yes" >&6; }
30258
30259 cat >>confdefs.h <<_ACEOF
30260 #define HAVE_POLL 1
30261 _ACEOF
30262
30263
30264 cat >>confdefs.h <<_ACEOF
30265 #define HAVE_POLL_FINE 1
30266 _ACEOF
30267
30268     ac_cv_func_poll="yes"
30269   else
30270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271 $as_echo "no" >&6; }
30272     ac_cv_func_poll="no"
30273   fi
30274
30275
30276       #
30277   tst_links_setsockopt="unknown"
30278   tst_proto_setsockopt="unknown"
30279   tst_compi_setsockopt="unknown"
30280   tst_allow_setsockopt="unknown"
30281   #
30282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
30283 $as_echo_n "checking if setsockopt can be linked... " >&6; }
30284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30285 /* end confdefs.h.  */
30286
30287
30288       $curl_includes_winsock2
30289       $curl_includes_sys_socket
30290
30291 int main (void)
30292 {
30293
30294       if(0 != setsockopt(0, 0, 0, 0, 0))
30295         return 1;
30296
30297  ;
30298  return 0;
30299 }
30300
30301 _ACEOF
30302 if ac_fn_c_try_link "$LINENO"; then :
30303
30304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30305 $as_echo "yes" >&6; }
30306     tst_links_setsockopt="yes"
30307
30308 else
30309
30310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30311 $as_echo "no" >&6; }
30312     tst_links_setsockopt="no"
30313
30314 fi
30315 rm -f core conftest.err conftest.$ac_objext \
30316     conftest$ac_exeext conftest.$ac_ext
30317   #
30318   if test "$tst_links_setsockopt" = "yes"; then
30319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
30320 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
30321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30322 /* end confdefs.h.  */
30323
30324       $curl_includes_winsock2
30325       $curl_includes_sys_socket
30326
30327 _ACEOF
30328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30329   $EGREP "setsockopt" >/dev/null 2>&1; then :
30330
30331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30332 $as_echo "yes" >&6; }
30333       tst_proto_setsockopt="yes"
30334
30335 else
30336
30337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30338 $as_echo "no" >&6; }
30339       tst_proto_setsockopt="no"
30340
30341 fi
30342 rm -f conftest*
30343
30344   fi
30345   #
30346   if test "$tst_proto_setsockopt" = "yes"; then
30347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
30348 $as_echo_n "checking if setsockopt is compilable... " >&6; }
30349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30350 /* end confdefs.h.  */
30351
30352
30353         $curl_includes_winsock2
30354         $curl_includes_sys_socket
30355
30356 int main (void)
30357 {
30358
30359         if(0 != setsockopt(0, 0, 0, 0, 0))
30360           return 1;
30361
30362  ;
30363  return 0;
30364 }
30365
30366 _ACEOF
30367 if ac_fn_c_try_compile "$LINENO"; then :
30368
30369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30370 $as_echo "yes" >&6; }
30371       tst_compi_setsockopt="yes"
30372
30373 else
30374
30375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376 $as_echo "no" >&6; }
30377       tst_compi_setsockopt="no"
30378
30379 fi
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381   fi
30382   #
30383   if test "$tst_compi_setsockopt" = "yes"; then
30384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
30385 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
30386     if test "x$curl_disallow_setsockopt" != "xyes"; then
30387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30388 $as_echo "yes" >&6; }
30389       tst_allow_setsockopt="yes"
30390     else
30391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30392 $as_echo "no" >&6; }
30393       tst_allow_setsockopt="no"
30394     fi
30395   fi
30396   #
30397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
30398 $as_echo_n "checking if setsockopt might be used... " >&6; }
30399   if test "$tst_links_setsockopt" = "yes" &&
30400      test "$tst_proto_setsockopt" = "yes" &&
30401      test "$tst_compi_setsockopt" = "yes" &&
30402      test "$tst_allow_setsockopt" = "yes"; then
30403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30404 $as_echo "yes" >&6; }
30405
30406 cat >>confdefs.h <<_ACEOF
30407 #define HAVE_SETSOCKOPT 1
30408 _ACEOF
30409
30410     ac_cv_func_setsockopt="yes"
30411
30412   #
30413   tst_compi_setsockopt_so_nonblock="unknown"
30414   tst_allow_setsockopt_so_nonblock="unknown"
30415   #
30416   if test "$ac_cv_func_setsockopt" = "yes"; then
30417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
30418 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
30419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30420 /* end confdefs.h.  */
30421
30422
30423         $curl_includes_winsock2
30424         $curl_includes_sys_socket
30425
30426 int main (void)
30427 {
30428
30429         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
30430           return 1;
30431
30432  ;
30433  return 0;
30434 }
30435
30436 _ACEOF
30437 if ac_fn_c_try_compile "$LINENO"; then :
30438
30439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30440 $as_echo "yes" >&6; }
30441       tst_compi_setsockopt_so_nonblock="yes"
30442
30443 else
30444
30445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446 $as_echo "no" >&6; }
30447       tst_compi_setsockopt_so_nonblock="no"
30448
30449 fi
30450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30451   fi
30452   #
30453   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
30454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
30455 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
30456     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
30457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }
30459       tst_allow_setsockopt_so_nonblock="yes"
30460     else
30461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30462 $as_echo "no" >&6; }
30463       tst_allow_setsockopt_so_nonblock="no"
30464     fi
30465   fi
30466   #
30467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
30468 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
30469   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
30470      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
30471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472 $as_echo "yes" >&6; }
30473
30474 cat >>confdefs.h <<_ACEOF
30475 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
30476 _ACEOF
30477
30478     ac_cv_func_setsockopt_so_nonblock="yes"
30479   else
30480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482     ac_cv_func_setsockopt_so_nonblock="no"
30483   fi
30484
30485   else
30486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30488     ac_cv_func_setsockopt="no"
30489   fi
30490
30491
30492 curl_includes_signal="\
30493 /* includes start */
30494 #ifdef HAVE_SYS_TYPES_H
30495 #  include <sys/types.h>
30496 #endif
30497 #ifdef HAVE_SIGNAL_H
30498 #  include <signal.h>
30499 #endif
30500 /* includes end */"
30501   for ac_header in sys/types.h signal.h
30502 do :
30503   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
30505 "
30506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30507   cat >>confdefs.h <<_ACEOF
30508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30509 _ACEOF
30510
30511 fi
30512
30513 done
30514
30515
30516
30517     #
30518   tst_links_sigaction="unknown"
30519   tst_proto_sigaction="unknown"
30520   tst_compi_sigaction="unknown"
30521   tst_allow_sigaction="unknown"
30522   #
30523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
30524 $as_echo_n "checking if sigaction can be linked... " >&6; }
30525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30526 /* end confdefs.h.  */
30527
30528
30529 #define sigaction innocuous_sigaction
30530 #ifdef __STDC__
30531 # include <limits.h>
30532 #else
30533 # include <assert.h>
30534 #endif
30535 #undef sigaction
30536 #ifdef __cplusplus
30537 extern "C"
30538 #endif
30539 char sigaction ();
30540 #if defined __stub_sigaction || defined __stub___sigaction
30541 choke me
30542 #endif
30543
30544 int main (void)
30545 {
30546 return sigaction ();
30547  ;
30548  return 0;
30549 }
30550
30551 _ACEOF
30552 if ac_fn_c_try_link "$LINENO"; then :
30553
30554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30555 $as_echo "yes" >&6; }
30556     tst_links_sigaction="yes"
30557
30558 else
30559
30560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561 $as_echo "no" >&6; }
30562     tst_links_sigaction="no"
30563
30564 fi
30565 rm -f core conftest.err conftest.$ac_objext \
30566     conftest$ac_exeext conftest.$ac_ext
30567   #
30568   if test "$tst_links_sigaction" = "yes"; then
30569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
30570 $as_echo_n "checking if sigaction is prototyped... " >&6; }
30571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30572 /* end confdefs.h.  */
30573
30574       $curl_includes_signal
30575
30576 _ACEOF
30577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30578   $EGREP "sigaction" >/dev/null 2>&1; then :
30579
30580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30581 $as_echo "yes" >&6; }
30582       tst_proto_sigaction="yes"
30583
30584 else
30585
30586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30587 $as_echo "no" >&6; }
30588       tst_proto_sigaction="no"
30589
30590 fi
30591 rm -f conftest*
30592
30593   fi
30594   #
30595   if test "$tst_proto_sigaction" = "yes"; then
30596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
30597 $as_echo_n "checking if sigaction is compilable... " >&6; }
30598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30599 /* end confdefs.h.  */
30600
30601
30602         $curl_includes_signal
30603
30604 int main (void)
30605 {
30606
30607         if(0 != sigaction(0, 0, 0))
30608           return 1;
30609
30610  ;
30611  return 0;
30612 }
30613
30614 _ACEOF
30615 if ac_fn_c_try_compile "$LINENO"; then :
30616
30617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30618 $as_echo "yes" >&6; }
30619       tst_compi_sigaction="yes"
30620
30621 else
30622
30623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30624 $as_echo "no" >&6; }
30625       tst_compi_sigaction="no"
30626
30627 fi
30628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629   fi
30630   #
30631   if test "$tst_compi_sigaction" = "yes"; then
30632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
30633 $as_echo_n "checking if sigaction usage allowed... " >&6; }
30634     if test "x$curl_disallow_sigaction" != "xyes"; then
30635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30636 $as_echo "yes" >&6; }
30637       tst_allow_sigaction="yes"
30638     else
30639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30640 $as_echo "no" >&6; }
30641       tst_allow_sigaction="no"
30642     fi
30643   fi
30644   #
30645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
30646 $as_echo_n "checking if sigaction might be used... " >&6; }
30647   if test "$tst_links_sigaction" = "yes" &&
30648      test "$tst_proto_sigaction" = "yes" &&
30649      test "$tst_compi_sigaction" = "yes" &&
30650      test "$tst_allow_sigaction" = "yes"; then
30651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652 $as_echo "yes" >&6; }
30653
30654 cat >>confdefs.h <<_ACEOF
30655 #define HAVE_SIGACTION 1
30656 _ACEOF
30657
30658     ac_cv_func_sigaction="yes"
30659   else
30660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30661 $as_echo "no" >&6; }
30662     ac_cv_func_sigaction="no"
30663   fi
30664
30665
30666     #
30667   tst_links_siginterrupt="unknown"
30668   tst_proto_siginterrupt="unknown"
30669   tst_compi_siginterrupt="unknown"
30670   tst_allow_siginterrupt="unknown"
30671   #
30672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
30673 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
30674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h.  */
30676
30677
30678 #define siginterrupt innocuous_siginterrupt
30679 #ifdef __STDC__
30680 # include <limits.h>
30681 #else
30682 # include <assert.h>
30683 #endif
30684 #undef siginterrupt
30685 #ifdef __cplusplus
30686 extern "C"
30687 #endif
30688 char siginterrupt ();
30689 #if defined __stub_siginterrupt || defined __stub___siginterrupt
30690 choke me
30691 #endif
30692
30693 int main (void)
30694 {
30695 return siginterrupt ();
30696  ;
30697  return 0;
30698 }
30699
30700 _ACEOF
30701 if ac_fn_c_try_link "$LINENO"; then :
30702
30703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30704 $as_echo "yes" >&6; }
30705     tst_links_siginterrupt="yes"
30706
30707 else
30708
30709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30710 $as_echo "no" >&6; }
30711     tst_links_siginterrupt="no"
30712
30713 fi
30714 rm -f core conftest.err conftest.$ac_objext \
30715     conftest$ac_exeext conftest.$ac_ext
30716   #
30717   if test "$tst_links_siginterrupt" = "yes"; then
30718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
30719 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
30720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30721 /* end confdefs.h.  */
30722
30723       $curl_includes_signal
30724
30725 _ACEOF
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727   $EGREP "siginterrupt" >/dev/null 2>&1; then :
30728
30729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30730 $as_echo "yes" >&6; }
30731       tst_proto_siginterrupt="yes"
30732
30733 else
30734
30735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30736 $as_echo "no" >&6; }
30737       tst_proto_siginterrupt="no"
30738
30739 fi
30740 rm -f conftest*
30741
30742   fi
30743   #
30744   if test "$tst_proto_siginterrupt" = "yes"; then
30745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
30746 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
30747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748 /* end confdefs.h.  */
30749
30750
30751         $curl_includes_signal
30752
30753 int main (void)
30754 {
30755
30756         if(0 != siginterrupt(0, 0))
30757           return 1;
30758
30759  ;
30760  return 0;
30761 }
30762
30763 _ACEOF
30764 if ac_fn_c_try_compile "$LINENO"; then :
30765
30766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30767 $as_echo "yes" >&6; }
30768       tst_compi_siginterrupt="yes"
30769
30770 else
30771
30772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30773 $as_echo "no" >&6; }
30774       tst_compi_siginterrupt="no"
30775
30776 fi
30777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778   fi
30779   #
30780   if test "$tst_compi_siginterrupt" = "yes"; then
30781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
30782 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
30783     if test "x$curl_disallow_siginterrupt" != "xyes"; then
30784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785 $as_echo "yes" >&6; }
30786       tst_allow_siginterrupt="yes"
30787     else
30788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30789 $as_echo "no" >&6; }
30790       tst_allow_siginterrupt="no"
30791     fi
30792   fi
30793   #
30794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
30795 $as_echo_n "checking if siginterrupt might be used... " >&6; }
30796   if test "$tst_links_siginterrupt" = "yes" &&
30797      test "$tst_proto_siginterrupt" = "yes" &&
30798      test "$tst_compi_siginterrupt" = "yes" &&
30799      test "$tst_allow_siginterrupt" = "yes"; then
30800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30801 $as_echo "yes" >&6; }
30802
30803 cat >>confdefs.h <<_ACEOF
30804 #define HAVE_SIGINTERRUPT 1
30805 _ACEOF
30806
30807     ac_cv_func_siginterrupt="yes"
30808   else
30809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30810 $as_echo "no" >&6; }
30811     ac_cv_func_siginterrupt="no"
30812   fi
30813
30814
30815     #
30816   tst_links_signal="unknown"
30817   tst_proto_signal="unknown"
30818   tst_compi_signal="unknown"
30819   tst_allow_signal="unknown"
30820   #
30821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
30822 $as_echo_n "checking if signal can be linked... " >&6; }
30823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824 /* end confdefs.h.  */
30825
30826
30827 #define signal innocuous_signal
30828 #ifdef __STDC__
30829 # include <limits.h>
30830 #else
30831 # include <assert.h>
30832 #endif
30833 #undef signal
30834 #ifdef __cplusplus
30835 extern "C"
30836 #endif
30837 char signal ();
30838 #if defined __stub_signal || defined __stub___signal
30839 choke me
30840 #endif
30841
30842 int main (void)
30843 {
30844 return signal ();
30845  ;
30846  return 0;
30847 }
30848
30849 _ACEOF
30850 if ac_fn_c_try_link "$LINENO"; then :
30851
30852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30853 $as_echo "yes" >&6; }
30854     tst_links_signal="yes"
30855
30856 else
30857
30858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859 $as_echo "no" >&6; }
30860     tst_links_signal="no"
30861
30862 fi
30863 rm -f core conftest.err conftest.$ac_objext \
30864     conftest$ac_exeext conftest.$ac_ext
30865   #
30866   if test "$tst_links_signal" = "yes"; then
30867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
30868 $as_echo_n "checking if signal is prototyped... " >&6; }
30869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870 /* end confdefs.h.  */
30871
30872       $curl_includes_signal
30873
30874 _ACEOF
30875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30876   $EGREP "signal" >/dev/null 2>&1; then :
30877
30878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30879 $as_echo "yes" >&6; }
30880       tst_proto_signal="yes"
30881
30882 else
30883
30884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 $as_echo "no" >&6; }
30886       tst_proto_signal="no"
30887
30888 fi
30889 rm -f conftest*
30890
30891   fi
30892   #
30893   if test "$tst_proto_signal" = "yes"; then
30894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
30895 $as_echo_n "checking if signal is compilable... " >&6; }
30896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30897 /* end confdefs.h.  */
30898
30899
30900         $curl_includes_signal
30901
30902 int main (void)
30903 {
30904
30905         if(0 != signal(0, 0))
30906           return 1;
30907
30908  ;
30909  return 0;
30910 }
30911
30912 _ACEOF
30913 if ac_fn_c_try_compile "$LINENO"; then :
30914
30915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30916 $as_echo "yes" >&6; }
30917       tst_compi_signal="yes"
30918
30919 else
30920
30921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30922 $as_echo "no" >&6; }
30923       tst_compi_signal="no"
30924
30925 fi
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30927   fi
30928   #
30929   if test "$tst_compi_signal" = "yes"; then
30930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
30931 $as_echo_n "checking if signal usage allowed... " >&6; }
30932     if test "x$curl_disallow_signal" != "xyes"; then
30933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30934 $as_echo "yes" >&6; }
30935       tst_allow_signal="yes"
30936     else
30937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938 $as_echo "no" >&6; }
30939       tst_allow_signal="no"
30940     fi
30941   fi
30942   #
30943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
30944 $as_echo_n "checking if signal might be used... " >&6; }
30945   if test "$tst_links_signal" = "yes" &&
30946      test "$tst_proto_signal" = "yes" &&
30947      test "$tst_compi_signal" = "yes" &&
30948      test "$tst_allow_signal" = "yes"; then
30949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30950 $as_echo "yes" >&6; }
30951
30952 cat >>confdefs.h <<_ACEOF
30953 #define HAVE_SIGNAL 1
30954 _ACEOF
30955
30956     ac_cv_func_signal="yes"
30957   else
30958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30959 $as_echo "no" >&6; }
30960     ac_cv_func_signal="no"
30961   fi
30962
30963
30964 curl_includes_setjmp="\
30965 /* includes start */
30966 #ifdef HAVE_SYS_TYPES_H
30967 #  include <sys/types.h>
30968 #endif
30969 #ifdef HAVE_SETJMP_H
30970 #  include <setjmp.h>
30971 #endif
30972 /* includes end */"
30973   for ac_header in sys/types.h setjmp.h
30974 do :
30975   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
30977 "
30978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30979   cat >>confdefs.h <<_ACEOF
30980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30981 _ACEOF
30982
30983 fi
30984
30985 done
30986
30987
30988
30989     #
30990   tst_links_sigsetjmp="unknown"
30991   tst_macro_sigsetjmp="unknown"
30992   tst_proto_sigsetjmp="unknown"
30993   tst_compi_sigsetjmp="unknown"
30994   tst_allow_sigsetjmp="unknown"
30995   #
30996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
30997 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
30998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30999 /* end confdefs.h.  */
31000
31001
31002 #define sigsetjmp innocuous_sigsetjmp
31003 #ifdef __STDC__
31004 # include <limits.h>
31005 #else
31006 # include <assert.h>
31007 #endif
31008 #undef sigsetjmp
31009 #ifdef __cplusplus
31010 extern "C"
31011 #endif
31012 char sigsetjmp ();
31013 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
31014 choke me
31015 #endif
31016
31017 int main (void)
31018 {
31019 return sigsetjmp ();
31020  ;
31021  return 0;
31022 }
31023
31024 _ACEOF
31025 if ac_fn_c_try_link "$LINENO"; then :
31026
31027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 $as_echo "yes" >&6; }
31029     tst_links_sigsetjmp="yes"
31030
31031 else
31032
31033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31034 $as_echo "no" >&6; }
31035     tst_links_sigsetjmp="no"
31036
31037 fi
31038 rm -f core conftest.err conftest.$ac_objext \
31039     conftest$ac_exeext conftest.$ac_ext
31040   #
31041   if test "$tst_links_sigsetjmp" = "no"; then
31042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
31043 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
31044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31045 /* end confdefs.h.  */
31046
31047
31048         $curl_includes_setjmp
31049
31050 int main (void)
31051 {
31052
31053         sigjmp_buf env;
31054         if(0 != sigsetjmp(env, 0))
31055           return 1;
31056
31057  ;
31058  return 0;
31059 }
31060
31061 _ACEOF
31062 if ac_fn_c_try_link "$LINENO"; then :
31063
31064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31065 $as_echo "yes" >&6; }
31066       tst_macro_sigsetjmp="yes"
31067
31068 else
31069
31070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071 $as_echo "no" >&6; }
31072       tst_macro_sigsetjmp="no"
31073
31074 fi
31075 rm -f core conftest.err conftest.$ac_objext \
31076     conftest$ac_exeext conftest.$ac_ext
31077   fi
31078   #
31079   if test "$tst_links_sigsetjmp" = "yes"; then
31080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
31081 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
31082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31083 /* end confdefs.h.  */
31084
31085       $curl_includes_setjmp
31086
31087 _ACEOF
31088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31089   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
31090
31091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093       tst_proto_sigsetjmp="yes"
31094
31095 else
31096
31097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31099       tst_proto_sigsetjmp="no"
31100
31101 fi
31102 rm -f conftest*
31103
31104   fi
31105   #
31106   if test "$tst_proto_sigsetjmp" = "yes" ||
31107      test "$tst_macro_sigsetjmp" = "yes"; then
31108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
31109 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
31110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31111 /* end confdefs.h.  */
31112
31113
31114         $curl_includes_setjmp
31115
31116 int main (void)
31117 {
31118
31119         sigjmp_buf env;
31120         if(0 != sigsetjmp(env, 0))
31121           return 1;
31122
31123  ;
31124  return 0;
31125 }
31126
31127 _ACEOF
31128 if ac_fn_c_try_compile "$LINENO"; then :
31129
31130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31131 $as_echo "yes" >&6; }
31132       tst_compi_sigsetjmp="yes"
31133
31134 else
31135
31136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137 $as_echo "no" >&6; }
31138       tst_compi_sigsetjmp="no"
31139
31140 fi
31141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31142   fi
31143   #
31144   if test "$tst_compi_sigsetjmp" = "yes"; then
31145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
31146 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
31147     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
31148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31149 $as_echo "yes" >&6; }
31150       tst_allow_sigsetjmp="yes"
31151     else
31152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153 $as_echo "no" >&6; }
31154       tst_allow_sigsetjmp="no"
31155     fi
31156   fi
31157   #
31158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
31159 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
31160   if (test "$tst_proto_sigsetjmp" = "yes" ||
31161       test "$tst_macro_sigsetjmp" = "yes") &&
31162      test "$tst_compi_sigsetjmp" = "yes" &&
31163      test "$tst_allow_sigsetjmp" = "yes"; then
31164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165 $as_echo "yes" >&6; }
31166
31167 cat >>confdefs.h <<_ACEOF
31168 #define HAVE_SIGSETJMP 1
31169 _ACEOF
31170
31171     ac_cv_func_sigsetjmp="yes"
31172   else
31173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31175     ac_cv_func_sigsetjmp="no"
31176   fi
31177
31178
31179         #
31180   tst_links_socket="unknown"
31181   tst_proto_socket="unknown"
31182   tst_compi_socket="unknown"
31183   tst_allow_socket="unknown"
31184   #
31185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
31186 $as_echo_n "checking if socket can be linked... " >&6; }
31187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188 /* end confdefs.h.  */
31189
31190
31191       $curl_includes_winsock2
31192       $curl_includes_sys_socket
31193       $curl_includes_socket
31194
31195 int main (void)
31196 {
31197
31198       if(0 != socket(0, 0, 0))
31199         return 1;
31200
31201  ;
31202  return 0;
31203 }
31204
31205 _ACEOF
31206 if ac_fn_c_try_link "$LINENO"; then :
31207
31208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31210     tst_links_socket="yes"
31211
31212 else
31213
31214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31216     tst_links_socket="no"
31217
31218 fi
31219 rm -f core conftest.err conftest.$ac_objext \
31220     conftest$ac_exeext conftest.$ac_ext
31221   #
31222   if test "$tst_links_socket" = "yes"; then
31223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
31224 $as_echo_n "checking if socket is prototyped... " >&6; }
31225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31226 /* end confdefs.h.  */
31227
31228       $curl_includes_winsock2
31229       $curl_includes_sys_socket
31230       $curl_includes_socket
31231
31232 _ACEOF
31233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234   $EGREP "socket" >/dev/null 2>&1; then :
31235
31236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237 $as_echo "yes" >&6; }
31238       tst_proto_socket="yes"
31239
31240 else
31241
31242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31243 $as_echo "no" >&6; }
31244       tst_proto_socket="no"
31245
31246 fi
31247 rm -f conftest*
31248
31249   fi
31250   #
31251   if test "$tst_proto_socket" = "yes"; then
31252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
31253 $as_echo_n "checking if socket is compilable... " >&6; }
31254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255 /* end confdefs.h.  */
31256
31257
31258         $curl_includes_winsock2
31259         $curl_includes_sys_socket
31260         $curl_includes_socket
31261
31262 int main (void)
31263 {
31264
31265         if(0 != socket(0, 0, 0))
31266           return 1;
31267
31268  ;
31269  return 0;
31270 }
31271
31272 _ACEOF
31273 if ac_fn_c_try_compile "$LINENO"; then :
31274
31275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31276 $as_echo "yes" >&6; }
31277       tst_compi_socket="yes"
31278
31279 else
31280
31281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31282 $as_echo "no" >&6; }
31283       tst_compi_socket="no"
31284
31285 fi
31286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31287   fi
31288   #
31289   if test "$tst_compi_socket" = "yes"; then
31290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
31291 $as_echo_n "checking if socket usage allowed... " >&6; }
31292     if test "x$curl_disallow_socket" != "xyes"; then
31293       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31294 $as_echo "yes" >&6; }
31295       tst_allow_socket="yes"
31296     else
31297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31298 $as_echo "no" >&6; }
31299       tst_allow_socket="no"
31300     fi
31301   fi
31302   #
31303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
31304 $as_echo_n "checking if socket might be used... " >&6; }
31305   if test "$tst_links_socket" = "yes" &&
31306      test "$tst_proto_socket" = "yes" &&
31307      test "$tst_compi_socket" = "yes" &&
31308      test "$tst_allow_socket" = "yes"; then
31309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31310 $as_echo "yes" >&6; }
31311
31312 cat >>confdefs.h <<_ACEOF
31313 #define HAVE_SOCKET 1
31314 _ACEOF
31315
31316     ac_cv_func_socket="yes"
31317   else
31318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319 $as_echo "no" >&6; }
31320     ac_cv_func_socket="no"
31321   fi
31322
31323
31324     #
31325   tst_links_strcasecmp="unknown"
31326   tst_proto_strcasecmp="unknown"
31327   tst_compi_strcasecmp="unknown"
31328   tst_allow_strcasecmp="unknown"
31329   #
31330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
31331 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
31332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333 /* end confdefs.h.  */
31334
31335
31336 #define strcasecmp innocuous_strcasecmp
31337 #ifdef __STDC__
31338 # include <limits.h>
31339 #else
31340 # include <assert.h>
31341 #endif
31342 #undef strcasecmp
31343 #ifdef __cplusplus
31344 extern "C"
31345 #endif
31346 char strcasecmp ();
31347 #if defined __stub_strcasecmp || defined __stub___strcasecmp
31348 choke me
31349 #endif
31350
31351 int main (void)
31352 {
31353 return strcasecmp ();
31354  ;
31355  return 0;
31356 }
31357
31358 _ACEOF
31359 if ac_fn_c_try_link "$LINENO"; then :
31360
31361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31362 $as_echo "yes" >&6; }
31363     tst_links_strcasecmp="yes"
31364
31365 else
31366
31367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31368 $as_echo "no" >&6; }
31369     tst_links_strcasecmp="no"
31370
31371 fi
31372 rm -f core conftest.err conftest.$ac_objext \
31373     conftest$ac_exeext conftest.$ac_ext
31374   #
31375   if test "$tst_links_strcasecmp" = "yes"; then
31376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
31377 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
31378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379 /* end confdefs.h.  */
31380
31381       $curl_includes_string
31382
31383 _ACEOF
31384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31385   $EGREP "strcasecmp" >/dev/null 2>&1; then :
31386
31387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31388 $as_echo "yes" >&6; }
31389       tst_proto_strcasecmp="yes"
31390
31391 else
31392
31393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31394 $as_echo "no" >&6; }
31395       tst_proto_strcasecmp="no"
31396
31397 fi
31398 rm -f conftest*
31399
31400   fi
31401   #
31402   if test "$tst_proto_strcasecmp" = "yes"; then
31403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
31404 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
31405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31406 /* end confdefs.h.  */
31407
31408
31409         $curl_includes_string
31410
31411 int main (void)
31412 {
31413
31414         if(0 != strcasecmp(0, 0))
31415           return 1;
31416
31417  ;
31418  return 0;
31419 }
31420
31421 _ACEOF
31422 if ac_fn_c_try_compile "$LINENO"; then :
31423
31424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31425 $as_echo "yes" >&6; }
31426       tst_compi_strcasecmp="yes"
31427
31428 else
31429
31430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31431 $as_echo "no" >&6; }
31432       tst_compi_strcasecmp="no"
31433
31434 fi
31435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31436   fi
31437   #
31438   if test "$tst_compi_strcasecmp" = "yes"; then
31439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
31440 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
31441     if test "x$curl_disallow_strcasecmp" != "xyes"; then
31442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31443 $as_echo "yes" >&6; }
31444       tst_allow_strcasecmp="yes"
31445     else
31446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447 $as_echo "no" >&6; }
31448       tst_allow_strcasecmp="no"
31449     fi
31450   fi
31451   #
31452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
31453 $as_echo_n "checking if strcasecmp might be used... " >&6; }
31454   if test "$tst_links_strcasecmp" = "yes" &&
31455      test "$tst_proto_strcasecmp" = "yes" &&
31456      test "$tst_compi_strcasecmp" = "yes" &&
31457      test "$tst_allow_strcasecmp" = "yes"; then
31458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31459 $as_echo "yes" >&6; }
31460
31461 cat >>confdefs.h <<_ACEOF
31462 #define HAVE_STRCASECMP 1
31463 _ACEOF
31464
31465     ac_cv_func_strcasecmp="yes"
31466   else
31467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31468 $as_echo "no" >&6; }
31469     ac_cv_func_strcasecmp="no"
31470   fi
31471
31472
31473     #
31474   tst_links_strcasestr="unknown"
31475   tst_proto_strcasestr="unknown"
31476   tst_compi_strcasestr="unknown"
31477   tst_allow_strcasestr="unknown"
31478   #
31479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr can be linked" >&5
31480 $as_echo_n "checking if strcasestr can be linked... " >&6; }
31481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31482 /* end confdefs.h.  */
31483
31484
31485 #define strcasestr innocuous_strcasestr
31486 #ifdef __STDC__
31487 # include <limits.h>
31488 #else
31489 # include <assert.h>
31490 #endif
31491 #undef strcasestr
31492 #ifdef __cplusplus
31493 extern "C"
31494 #endif
31495 char strcasestr ();
31496 #if defined __stub_strcasestr || defined __stub___strcasestr
31497 choke me
31498 #endif
31499
31500 int main (void)
31501 {
31502 return strcasestr ();
31503  ;
31504  return 0;
31505 }
31506
31507 _ACEOF
31508 if ac_fn_c_try_link "$LINENO"; then :
31509
31510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31511 $as_echo "yes" >&6; }
31512     tst_links_strcasestr="yes"
31513
31514 else
31515
31516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31517 $as_echo "no" >&6; }
31518     tst_links_strcasestr="no"
31519
31520 fi
31521 rm -f core conftest.err conftest.$ac_objext \
31522     conftest$ac_exeext conftest.$ac_ext
31523   #
31524   if test "$tst_links_strcasestr" = "yes"; then
31525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is prototyped" >&5
31526 $as_echo_n "checking if strcasestr is prototyped... " >&6; }
31527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h.  */
31529
31530       $curl_includes_string
31531
31532 _ACEOF
31533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31534   $EGREP "strcasestr" >/dev/null 2>&1; then :
31535
31536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31537 $as_echo "yes" >&6; }
31538       tst_proto_strcasestr="yes"
31539
31540 else
31541
31542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31543 $as_echo "no" >&6; }
31544       tst_proto_strcasestr="no"
31545
31546 fi
31547 rm -f conftest*
31548
31549   fi
31550   #
31551   if test "$tst_proto_strcasestr" = "yes"; then
31552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is compilable" >&5
31553 $as_echo_n "checking if strcasestr is compilable... " >&6; }
31554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31555 /* end confdefs.h.  */
31556
31557
31558         $curl_includes_string
31559
31560 int main (void)
31561 {
31562
31563         if(0 != strcasestr(0, 0))
31564           return 1;
31565
31566  ;
31567  return 0;
31568 }
31569
31570 _ACEOF
31571 if ac_fn_c_try_compile "$LINENO"; then :
31572
31573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574 $as_echo "yes" >&6; }
31575       tst_compi_strcasestr="yes"
31576
31577 else
31578
31579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31580 $as_echo "no" >&6; }
31581       tst_compi_strcasestr="no"
31582
31583 fi
31584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31585   fi
31586   #
31587   if test "$tst_compi_strcasestr" = "yes"; then
31588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr usage allowed" >&5
31589 $as_echo_n "checking if strcasestr usage allowed... " >&6; }
31590     if test "x$curl_disallow_strcasestr" != "xyes"; then
31591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31592 $as_echo "yes" >&6; }
31593       tst_allow_strcasestr="yes"
31594     else
31595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31596 $as_echo "no" >&6; }
31597       tst_allow_strcasestr="no"
31598     fi
31599   fi
31600   #
31601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr might be used" >&5
31602 $as_echo_n "checking if strcasestr might be used... " >&6; }
31603   if test "$tst_links_strcasestr" = "yes" &&
31604      test "$tst_proto_strcasestr" = "yes" &&
31605      test "$tst_compi_strcasestr" = "yes" &&
31606      test "$tst_allow_strcasestr" = "yes"; then
31607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31608 $as_echo "yes" >&6; }
31609
31610 cat >>confdefs.h <<_ACEOF
31611 #define HAVE_STRCASESTR 1
31612 _ACEOF
31613
31614     ac_cv_func_strcasestr="yes"
31615   else
31616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 $as_echo "no" >&6; }
31618     ac_cv_func_strcasestr="no"
31619   fi
31620
31621
31622     #
31623   tst_links_strcmpi="unknown"
31624   tst_proto_strcmpi="unknown"
31625   tst_compi_strcmpi="unknown"
31626   tst_allow_strcmpi="unknown"
31627   #
31628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
31629 $as_echo_n "checking if strcmpi can be linked... " >&6; }
31630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31631 /* end confdefs.h.  */
31632
31633
31634 #define strcmpi innocuous_strcmpi
31635 #ifdef __STDC__
31636 # include <limits.h>
31637 #else
31638 # include <assert.h>
31639 #endif
31640 #undef strcmpi
31641 #ifdef __cplusplus
31642 extern "C"
31643 #endif
31644 char strcmpi ();
31645 #if defined __stub_strcmpi || defined __stub___strcmpi
31646 choke me
31647 #endif
31648
31649 int main (void)
31650 {
31651 return strcmpi ();
31652  ;
31653  return 0;
31654 }
31655
31656 _ACEOF
31657 if ac_fn_c_try_link "$LINENO"; then :
31658
31659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31660 $as_echo "yes" >&6; }
31661     tst_links_strcmpi="yes"
31662
31663 else
31664
31665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31666 $as_echo "no" >&6; }
31667     tst_links_strcmpi="no"
31668
31669 fi
31670 rm -f core conftest.err conftest.$ac_objext \
31671     conftest$ac_exeext conftest.$ac_ext
31672   #
31673   if test "$tst_links_strcmpi" = "yes"; then
31674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
31675 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
31676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31677 /* end confdefs.h.  */
31678
31679       $curl_includes_string
31680
31681 _ACEOF
31682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31683   $EGREP "strcmpi" >/dev/null 2>&1; then :
31684
31685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686 $as_echo "yes" >&6; }
31687       tst_proto_strcmpi="yes"
31688
31689 else
31690
31691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692 $as_echo "no" >&6; }
31693       tst_proto_strcmpi="no"
31694
31695 fi
31696 rm -f conftest*
31697
31698   fi
31699   #
31700   if test "$tst_proto_strcmpi" = "yes"; then
31701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
31702 $as_echo_n "checking if strcmpi is compilable... " >&6; }
31703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31704 /* end confdefs.h.  */
31705
31706
31707         $curl_includes_string
31708
31709 int main (void)
31710 {
31711
31712         if(0 != strcmpi(0, 0))
31713           return 1;
31714
31715  ;
31716  return 0;
31717 }
31718
31719 _ACEOF
31720 if ac_fn_c_try_compile "$LINENO"; then :
31721
31722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31723 $as_echo "yes" >&6; }
31724       tst_compi_strcmpi="yes"
31725
31726 else
31727
31728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31730       tst_compi_strcmpi="no"
31731
31732 fi
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31734   fi
31735   #
31736   if test "$tst_compi_strcmpi" = "yes"; then
31737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
31738 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
31739     if test "x$curl_disallow_strcmpi" != "xyes"; then
31740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741 $as_echo "yes" >&6; }
31742       tst_allow_strcmpi="yes"
31743     else
31744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31745 $as_echo "no" >&6; }
31746       tst_allow_strcmpi="no"
31747     fi
31748   fi
31749   #
31750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
31751 $as_echo_n "checking if strcmpi might be used... " >&6; }
31752   if test "$tst_links_strcmpi" = "yes" &&
31753      test "$tst_proto_strcmpi" = "yes" &&
31754      test "$tst_compi_strcmpi" = "yes" &&
31755      test "$tst_allow_strcmpi" = "yes"; then
31756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31757 $as_echo "yes" >&6; }
31758
31759 cat >>confdefs.h <<_ACEOF
31760 #define HAVE_STRCMPI 1
31761 _ACEOF
31762
31763     ac_cv_func_strcmpi="yes"
31764   else
31765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31766 $as_echo "no" >&6; }
31767     ac_cv_func_strcmpi="no"
31768   fi
31769
31770
31771     #
31772   tst_links_strdup="unknown"
31773   tst_proto_strdup="unknown"
31774   tst_compi_strdup="unknown"
31775   tst_allow_strdup="unknown"
31776   #
31777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
31778 $as_echo_n "checking if strdup can be linked... " >&6; }
31779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31780 /* end confdefs.h.  */
31781
31782
31783 #define strdup innocuous_strdup
31784 #ifdef __STDC__
31785 # include <limits.h>
31786 #else
31787 # include <assert.h>
31788 #endif
31789 #undef strdup
31790 #ifdef __cplusplus
31791 extern "C"
31792 #endif
31793 char strdup ();
31794 #if defined __stub_strdup || defined __stub___strdup
31795 choke me
31796 #endif
31797
31798 int main (void)
31799 {
31800 return strdup ();
31801  ;
31802  return 0;
31803 }
31804
31805 _ACEOF
31806 if ac_fn_c_try_link "$LINENO"; then :
31807
31808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31809 $as_echo "yes" >&6; }
31810     tst_links_strdup="yes"
31811
31812 else
31813
31814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31815 $as_echo "no" >&6; }
31816     tst_links_strdup="no"
31817
31818 fi
31819 rm -f core conftest.err conftest.$ac_objext \
31820     conftest$ac_exeext conftest.$ac_ext
31821   #
31822   if test "$tst_links_strdup" = "yes"; then
31823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
31824 $as_echo_n "checking if strdup is prototyped... " >&6; }
31825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h.  */
31827
31828       $curl_includes_string
31829
31830 _ACEOF
31831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31832   $EGREP "strdup" >/dev/null 2>&1; then :
31833
31834       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31835 $as_echo "yes" >&6; }
31836       tst_proto_strdup="yes"
31837
31838 else
31839
31840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841 $as_echo "no" >&6; }
31842       tst_proto_strdup="no"
31843
31844 fi
31845 rm -f conftest*
31846
31847   fi
31848   #
31849   if test "$tst_proto_strdup" = "yes"; then
31850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
31851 $as_echo_n "checking if strdup is compilable... " >&6; }
31852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31853 /* end confdefs.h.  */
31854
31855
31856         $curl_includes_string
31857
31858 int main (void)
31859 {
31860
31861         if(0 != strdup(0))
31862           return 1;
31863
31864  ;
31865  return 0;
31866 }
31867
31868 _ACEOF
31869 if ac_fn_c_try_compile "$LINENO"; then :
31870
31871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873       tst_compi_strdup="yes"
31874
31875 else
31876
31877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879       tst_compi_strdup="no"
31880
31881 fi
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31883   fi
31884   #
31885   if test "$tst_compi_strdup" = "yes"; then
31886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
31887 $as_echo_n "checking if strdup usage allowed... " >&6; }
31888     if test "x$curl_disallow_strdup" != "xyes"; then
31889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31890 $as_echo "yes" >&6; }
31891       tst_allow_strdup="yes"
31892     else
31893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31894 $as_echo "no" >&6; }
31895       tst_allow_strdup="no"
31896     fi
31897   fi
31898   #
31899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
31900 $as_echo_n "checking if strdup might be used... " >&6; }
31901   if test "$tst_links_strdup" = "yes" &&
31902      test "$tst_proto_strdup" = "yes" &&
31903      test "$tst_compi_strdup" = "yes" &&
31904      test "$tst_allow_strdup" = "yes"; then
31905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31906 $as_echo "yes" >&6; }
31907
31908 cat >>confdefs.h <<_ACEOF
31909 #define HAVE_STRDUP 1
31910 _ACEOF
31911
31912     ac_cv_func_strdup="yes"
31913   else
31914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31915 $as_echo "no" >&6; }
31916     ac_cv_func_strdup="no"
31917   fi
31918
31919
31920       #
31921   tst_links_strerror_r="unknown"
31922   tst_proto_strerror_r="unknown"
31923   tst_compi_strerror_r="unknown"
31924   tst_glibc_strerror_r="unknown"
31925   tst_posix_strerror_r="unknown"
31926   tst_allow_strerror_r="unknown"
31927   tst_works_glibc_strerror_r="unknown"
31928   tst_works_posix_strerror_r="unknown"
31929   tst_glibc_strerror_r_type_arg3="unknown"
31930   tst_posix_strerror_r_type_arg3="unknown"
31931   #
31932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
31933 $as_echo_n "checking if strerror_r can be linked... " >&6; }
31934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31935 /* end confdefs.h.  */
31936
31937
31938 #define strerror_r innocuous_strerror_r
31939 #ifdef __STDC__
31940 # include <limits.h>
31941 #else
31942 # include <assert.h>
31943 #endif
31944 #undef strerror_r
31945 #ifdef __cplusplus
31946 extern "C"
31947 #endif
31948 char strerror_r ();
31949 #if defined __stub_strerror_r || defined __stub___strerror_r
31950 choke me
31951 #endif
31952
31953 int main (void)
31954 {
31955 return strerror_r ();
31956  ;
31957  return 0;
31958 }
31959
31960 _ACEOF
31961 if ac_fn_c_try_link "$LINENO"; then :
31962
31963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31964 $as_echo "yes" >&6; }
31965     tst_links_strerror_r="yes"
31966
31967 else
31968
31969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31970 $as_echo "no" >&6; }
31971     tst_links_strerror_r="no"
31972
31973 fi
31974 rm -f core conftest.err conftest.$ac_objext \
31975     conftest$ac_exeext conftest.$ac_ext
31976   #
31977   if test "$tst_links_strerror_r" = "yes"; then
31978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
31979 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
31980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h.  */
31982
31983       $curl_includes_string
31984
31985 _ACEOF
31986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31987   $EGREP "strerror_r" >/dev/null 2>&1; then :
31988
31989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31990 $as_echo "yes" >&6; }
31991       tst_proto_strerror_r="yes"
31992
31993 else
31994
31995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }
31997       tst_proto_strerror_r="no"
31998
31999 fi
32000 rm -f conftest*
32001
32002   fi
32003   #
32004   if test "$tst_proto_strerror_r" = "yes"; then
32005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
32006 $as_echo_n "checking if strerror_r is compilable... " >&6; }
32007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32008 /* end confdefs.h.  */
32009
32010
32011         $curl_includes_string
32012
32013 int main (void)
32014 {
32015
32016         if(0 != strerror_r(0, 0, 0))
32017           return 1;
32018
32019  ;
32020  return 0;
32021 }
32022
32023 _ACEOF
32024 if ac_fn_c_try_compile "$LINENO"; then :
32025
32026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32027 $as_echo "yes" >&6; }
32028       tst_compi_strerror_r="yes"
32029
32030 else
32031
32032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32033 $as_echo "no" >&6; }
32034       tst_compi_strerror_r="no"
32035
32036 fi
32037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32038   fi
32039   #
32040   if test "$tst_compi_strerror_r" = "yes"; then
32041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
32042 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
32043     tst_glibc_strerror_r_type_arg3="unknown"
32044     for arg3 in 'size_t' 'int' 'unsigned int'; do
32045       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
32046         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32047 /* end confdefs.h.  */
32048
32049
32050             $curl_includes_string
32051
32052 int main (void)
32053 {
32054
32055             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
32056             if(0 != strerror_r(0, 0, 0))
32057               return 1;
32058
32059  ;
32060  return 0;
32061 }
32062
32063 _ACEOF
32064 if ac_fn_c_try_compile "$LINENO"; then :
32065
32066           tst_glibc_strerror_r_type_arg3="$arg3"
32067
32068 fi
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32070       fi
32071     done
32072     case "$tst_glibc_strerror_r_type_arg3" in
32073       unknown)
32074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32075 $as_echo "no" >&6; }
32076         tst_glibc_strerror_r="no"
32077         ;;
32078       *)
32079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32080 $as_echo "yes" >&6; }
32081         tst_glibc_strerror_r="yes"
32082         ;;
32083     esac
32084   fi
32085   #
32086     if test "x$cross_compiling" != "xyes" &&
32087     test "$tst_glibc_strerror_r" = "yes"; then
32088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
32089 $as_echo_n "checking if strerror_r seems to work... " >&6; }
32090     if test "$cross_compiling" = yes; then :
32091   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32093 as_fn_error $? "cannot run test program while cross compiling
32094 See \`config.log' for more details" "$LINENO" 5 ; }
32095 else
32096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32097 /* end confdefs.h.  */
32098
32099
32100         $curl_includes_stdlib
32101         $curl_includes_string
32102 #       include <errno.h>
32103
32104 int main (void)
32105 {
32106
32107         char buffer[1024];
32108         char *string = 0;
32109         buffer[0] = '\0';
32110         string = strerror_r(EACCES, buffer, sizeof(buffer));
32111         if(!string)
32112           exit(1); /* fail */
32113         if(!string[0])
32114           exit(1); /* fail */
32115         else
32116           exit(0);
32117
32118  ;
32119  return 0;
32120 }
32121
32122 _ACEOF
32123 if ac_fn_c_try_run "$LINENO"; then :
32124
32125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126 $as_echo "yes" >&6; }
32127       tst_works_glibc_strerror_r="yes"
32128
32129 else
32130
32131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 $as_echo "no" >&6; }
32133       tst_works_glibc_strerror_r="no"
32134
32135 fi
32136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32137   conftest.$ac_objext conftest.beam conftest.$ac_ext
32138 fi
32139
32140   fi
32141   #
32142   if test "$tst_compi_strerror_r" = "yes" &&
32143     test "$tst_works_glibc_strerror_r" != "yes"; then
32144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
32145 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
32146     tst_posix_strerror_r_type_arg3="unknown"
32147     for arg3 in 'size_t' 'int' 'unsigned int'; do
32148       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
32149         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32150 /* end confdefs.h.  */
32151
32152
32153             $curl_includes_string
32154
32155 int main (void)
32156 {
32157
32158             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
32159             if(0 != strerror_r(0, 0, 0))
32160               return 1;
32161
32162  ;
32163  return 0;
32164 }
32165
32166 _ACEOF
32167 if ac_fn_c_try_compile "$LINENO"; then :
32168
32169           tst_posix_strerror_r_type_arg3="$arg3"
32170
32171 fi
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173       fi
32174     done
32175     case "$tst_posix_strerror_r_type_arg3" in
32176       unknown)
32177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32178 $as_echo "no" >&6; }
32179         tst_posix_strerror_r="no"
32180         ;;
32181       *)
32182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32183 $as_echo "yes" >&6; }
32184         tst_posix_strerror_r="yes"
32185         ;;
32186     esac
32187   fi
32188   #
32189     if test "x$cross_compiling" != "xyes" &&
32190     test "$tst_posix_strerror_r" = "yes"; then
32191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
32192 $as_echo_n "checking if strerror_r seems to work... " >&6; }
32193     if test "$cross_compiling" = yes; then :
32194   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32196 as_fn_error $? "cannot run test program while cross compiling
32197 See \`config.log' for more details" "$LINENO" 5 ; }
32198 else
32199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32200 /* end confdefs.h.  */
32201
32202
32203         $curl_includes_stdlib
32204         $curl_includes_string
32205 #       include <errno.h>
32206
32207 int main (void)
32208 {
32209
32210         char buffer[1024];
32211         int error = 1;
32212         buffer[0] = '\0';
32213         error = strerror_r(EACCES, buffer, sizeof(buffer));
32214         if(error)
32215           exit(1); /* fail */
32216         if(buffer[0] == '\0')
32217           exit(1); /* fail */
32218         else
32219           exit(0);
32220
32221  ;
32222  return 0;
32223 }
32224
32225 _ACEOF
32226 if ac_fn_c_try_run "$LINENO"; then :
32227
32228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32229 $as_echo "yes" >&6; }
32230       tst_works_posix_strerror_r="yes"
32231
32232 else
32233
32234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32235 $as_echo "no" >&6; }
32236       tst_works_posix_strerror_r="no"
32237
32238 fi
32239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32240   conftest.$ac_objext conftest.beam conftest.$ac_ext
32241 fi
32242
32243   fi
32244   #
32245   if test "$tst_works_glibc_strerror_r" = "yes"; then
32246     tst_posix_strerror_r="no"
32247   fi
32248   if test "$tst_works_posix_strerror_r" = "yes"; then
32249     tst_glibc_strerror_r="no"
32250   fi
32251   if test "$tst_glibc_strerror_r" = "yes" &&
32252     test "$tst_works_glibc_strerror_r" != "no" &&
32253     test "$tst_posix_strerror_r" != "yes"; then
32254     tst_allow_strerror_r="check"
32255   fi
32256   if test "$tst_posix_strerror_r" = "yes" &&
32257     test "$tst_works_posix_strerror_r" != "no" &&
32258     test "$tst_glibc_strerror_r" != "yes"; then
32259     tst_allow_strerror_r="check"
32260   fi
32261   if test "$tst_allow_strerror_r" = "check"; then
32262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
32263 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
32264     if test "x$curl_disallow_strerror_r" != "xyes"; then
32265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266 $as_echo "yes" >&6; }
32267       tst_allow_strerror_r="yes"
32268     else
32269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32270 $as_echo "no" >&6; }
32271       tst_allow_strerror_r="no"
32272     fi
32273   fi
32274   #
32275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
32276 $as_echo_n "checking if strerror_r might be used... " >&6; }
32277   if test "$tst_links_strerror_r" = "yes" &&
32278      test "$tst_proto_strerror_r" = "yes" &&
32279      test "$tst_compi_strerror_r" = "yes" &&
32280      test "$tst_allow_strerror_r" = "yes"; then
32281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32282 $as_echo "yes" >&6; }
32283     if test "$tst_glibc_strerror_r" = "yes"; then
32284
32285 cat >>confdefs.h <<_ACEOF
32286 #define HAVE_STRERROR_R 1
32287 _ACEOF
32288
32289
32290 cat >>confdefs.h <<_ACEOF
32291 #define HAVE_GLIBC_STRERROR_R 1
32292 _ACEOF
32293
32294
32295 cat >>confdefs.h <<_ACEOF
32296 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
32297 _ACEOF
32298
32299     fi
32300     if test "$tst_posix_strerror_r" = "yes"; then
32301
32302 cat >>confdefs.h <<_ACEOF
32303 #define HAVE_STRERROR_R 1
32304 _ACEOF
32305
32306
32307 cat >>confdefs.h <<_ACEOF
32308 #define HAVE_POSIX_STRERROR_R 1
32309 _ACEOF
32310
32311
32312 cat >>confdefs.h <<_ACEOF
32313 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
32314 _ACEOF
32315
32316     fi
32317     ac_cv_func_strerror_r="yes"
32318   else
32319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32320 $as_echo "no" >&6; }
32321     ac_cv_func_strerror_r="no"
32322   fi
32323   #
32324   if test "$tst_compi_strerror_r" = "yes" &&
32325      test "$tst_allow_strerror_r" = "unknown"; then
32326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
32327 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
32328   fi
32329   #
32330
32331
32332     #
32333   tst_links_stricmp="unknown"
32334   tst_proto_stricmp="unknown"
32335   tst_compi_stricmp="unknown"
32336   tst_allow_stricmp="unknown"
32337   #
32338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
32339 $as_echo_n "checking if stricmp can be linked... " >&6; }
32340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32341 /* end confdefs.h.  */
32342
32343
32344 #define stricmp innocuous_stricmp
32345 #ifdef __STDC__
32346 # include <limits.h>
32347 #else
32348 # include <assert.h>
32349 #endif
32350 #undef stricmp
32351 #ifdef __cplusplus
32352 extern "C"
32353 #endif
32354 char stricmp ();
32355 #if defined __stub_stricmp || defined __stub___stricmp
32356 choke me
32357 #endif
32358
32359 int main (void)
32360 {
32361 return stricmp ();
32362  ;
32363  return 0;
32364 }
32365
32366 _ACEOF
32367 if ac_fn_c_try_link "$LINENO"; then :
32368
32369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32370 $as_echo "yes" >&6; }
32371     tst_links_stricmp="yes"
32372
32373 else
32374
32375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32376 $as_echo "no" >&6; }
32377     tst_links_stricmp="no"
32378
32379 fi
32380 rm -f core conftest.err conftest.$ac_objext \
32381     conftest$ac_exeext conftest.$ac_ext
32382   #
32383   if test "$tst_links_stricmp" = "yes"; then
32384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
32385 $as_echo_n "checking if stricmp is prototyped... " >&6; }
32386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32387 /* end confdefs.h.  */
32388
32389       $curl_includes_string
32390
32391 _ACEOF
32392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32393   $EGREP "stricmp" >/dev/null 2>&1; then :
32394
32395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32396 $as_echo "yes" >&6; }
32397       tst_proto_stricmp="yes"
32398
32399 else
32400
32401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32402 $as_echo "no" >&6; }
32403       tst_proto_stricmp="no"
32404
32405 fi
32406 rm -f conftest*
32407
32408   fi
32409   #
32410   if test "$tst_proto_stricmp" = "yes"; then
32411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
32412 $as_echo_n "checking if stricmp is compilable... " >&6; }
32413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32414 /* end confdefs.h.  */
32415
32416
32417         $curl_includes_string
32418
32419 int main (void)
32420 {
32421
32422         if(0 != stricmp(0, 0))
32423           return 1;
32424
32425  ;
32426  return 0;
32427 }
32428
32429 _ACEOF
32430 if ac_fn_c_try_compile "$LINENO"; then :
32431
32432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32433 $as_echo "yes" >&6; }
32434       tst_compi_stricmp="yes"
32435
32436 else
32437
32438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32439 $as_echo "no" >&6; }
32440       tst_compi_stricmp="no"
32441
32442 fi
32443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32444   fi
32445   #
32446   if test "$tst_compi_stricmp" = "yes"; then
32447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
32448 $as_echo_n "checking if stricmp usage allowed... " >&6; }
32449     if test "x$curl_disallow_stricmp" != "xyes"; then
32450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32451 $as_echo "yes" >&6; }
32452       tst_allow_stricmp="yes"
32453     else
32454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32456       tst_allow_stricmp="no"
32457     fi
32458   fi
32459   #
32460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
32461 $as_echo_n "checking if stricmp might be used... " >&6; }
32462   if test "$tst_links_stricmp" = "yes" &&
32463      test "$tst_proto_stricmp" = "yes" &&
32464      test "$tst_compi_stricmp" = "yes" &&
32465      test "$tst_allow_stricmp" = "yes"; then
32466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32467 $as_echo "yes" >&6; }
32468
32469 cat >>confdefs.h <<_ACEOF
32470 #define HAVE_STRICMP 1
32471 _ACEOF
32472
32473     ac_cv_func_stricmp="yes"
32474   else
32475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32476 $as_echo "no" >&6; }
32477     ac_cv_func_stricmp="no"
32478   fi
32479
32480
32481     #
32482   tst_links_strlcat="unknown"
32483   tst_proto_strlcat="unknown"
32484   tst_compi_strlcat="unknown"
32485   tst_allow_strlcat="unknown"
32486   #
32487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat can be linked" >&5
32488 $as_echo_n "checking if strlcat can be linked... " >&6; }
32489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490 /* end confdefs.h.  */
32491
32492
32493 #define strlcat innocuous_strlcat
32494 #ifdef __STDC__
32495 # include <limits.h>
32496 #else
32497 # include <assert.h>
32498 #endif
32499 #undef strlcat
32500 #ifdef __cplusplus
32501 extern "C"
32502 #endif
32503 char strlcat ();
32504 #if defined __stub_strlcat || defined __stub___strlcat
32505 choke me
32506 #endif
32507
32508 int main (void)
32509 {
32510 return strlcat ();
32511  ;
32512  return 0;
32513 }
32514
32515 _ACEOF
32516 if ac_fn_c_try_link "$LINENO"; then :
32517
32518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32519 $as_echo "yes" >&6; }
32520     tst_links_strlcat="yes"
32521
32522 else
32523
32524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32525 $as_echo "no" >&6; }
32526     tst_links_strlcat="no"
32527
32528 fi
32529 rm -f core conftest.err conftest.$ac_objext \
32530     conftest$ac_exeext conftest.$ac_ext
32531   #
32532   if test "$tst_links_strlcat" = "yes"; then
32533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is prototyped" >&5
32534 $as_echo_n "checking if strlcat is prototyped... " >&6; }
32535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536 /* end confdefs.h.  */
32537
32538       $curl_includes_string
32539
32540 _ACEOF
32541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32542   $EGREP "strlcat" >/dev/null 2>&1; then :
32543
32544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32545 $as_echo "yes" >&6; }
32546       tst_proto_strlcat="yes"
32547
32548 else
32549
32550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32551 $as_echo "no" >&6; }
32552       tst_proto_strlcat="no"
32553
32554 fi
32555 rm -f conftest*
32556
32557   fi
32558   #
32559   if test "$tst_proto_strlcat" = "yes"; then
32560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is compilable" >&5
32561 $as_echo_n "checking if strlcat is compilable... " >&6; }
32562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32563 /* end confdefs.h.  */
32564
32565
32566         $curl_includes_string
32567
32568 int main (void)
32569 {
32570
32571         if(0 != strlcat(0, 0, 0))
32572           return 1;
32573
32574  ;
32575  return 0;
32576 }
32577
32578 _ACEOF
32579 if ac_fn_c_try_compile "$LINENO"; then :
32580
32581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32582 $as_echo "yes" >&6; }
32583       tst_compi_strlcat="yes"
32584
32585 else
32586
32587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32588 $as_echo "no" >&6; }
32589       tst_compi_strlcat="no"
32590
32591 fi
32592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593   fi
32594   #
32595   if test "$tst_compi_strlcat" = "yes"; then
32596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat usage allowed" >&5
32597 $as_echo_n "checking if strlcat usage allowed... " >&6; }
32598     if test "x$curl_disallow_strlcat" != "xyes"; then
32599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32600 $as_echo "yes" >&6; }
32601       tst_allow_strlcat="yes"
32602     else
32603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32604 $as_echo "no" >&6; }
32605       tst_allow_strlcat="no"
32606     fi
32607   fi
32608   #
32609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat might be used" >&5
32610 $as_echo_n "checking if strlcat might be used... " >&6; }
32611   if test "$tst_links_strlcat" = "yes" &&
32612      test "$tst_proto_strlcat" = "yes" &&
32613      test "$tst_compi_strlcat" = "yes" &&
32614      test "$tst_allow_strlcat" = "yes"; then
32615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32616 $as_echo "yes" >&6; }
32617
32618 cat >>confdefs.h <<_ACEOF
32619 #define HAVE_STRLCAT 1
32620 _ACEOF
32621
32622     ac_cv_func_strlcat="yes"
32623   else
32624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626     ac_cv_func_strlcat="no"
32627   fi
32628
32629
32630     #
32631   tst_links_strncasecmp="unknown"
32632   tst_proto_strncasecmp="unknown"
32633   tst_compi_strncasecmp="unknown"
32634   tst_allow_strncasecmp="unknown"
32635   #
32636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
32637 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
32638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32639 /* end confdefs.h.  */
32640
32641
32642 #define strncasecmp innocuous_strncasecmp
32643 #ifdef __STDC__
32644 # include <limits.h>
32645 #else
32646 # include <assert.h>
32647 #endif
32648 #undef strncasecmp
32649 #ifdef __cplusplus
32650 extern "C"
32651 #endif
32652 char strncasecmp ();
32653 #if defined __stub_strncasecmp || defined __stub___strncasecmp
32654 choke me
32655 #endif
32656
32657 int main (void)
32658 {
32659 return strncasecmp ();
32660  ;
32661  return 0;
32662 }
32663
32664 _ACEOF
32665 if ac_fn_c_try_link "$LINENO"; then :
32666
32667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32668 $as_echo "yes" >&6; }
32669     tst_links_strncasecmp="yes"
32670
32671 else
32672
32673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32674 $as_echo "no" >&6; }
32675     tst_links_strncasecmp="no"
32676
32677 fi
32678 rm -f core conftest.err conftest.$ac_objext \
32679     conftest$ac_exeext conftest.$ac_ext
32680   #
32681   if test "$tst_links_strncasecmp" = "yes"; then
32682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
32683 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
32684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32685 /* end confdefs.h.  */
32686
32687       $curl_includes_string
32688
32689 _ACEOF
32690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32691   $EGREP "strncasecmp" >/dev/null 2>&1; then :
32692
32693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32694 $as_echo "yes" >&6; }
32695       tst_proto_strncasecmp="yes"
32696
32697 else
32698
32699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32700 $as_echo "no" >&6; }
32701       tst_proto_strncasecmp="no"
32702
32703 fi
32704 rm -f conftest*
32705
32706   fi
32707   #
32708   if test "$tst_proto_strncasecmp" = "yes"; then
32709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
32710 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
32711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32712 /* end confdefs.h.  */
32713
32714
32715         $curl_includes_string
32716
32717 int main (void)
32718 {
32719
32720         if(0 != strncasecmp(0, 0, 0))
32721           return 1;
32722
32723  ;
32724  return 0;
32725 }
32726
32727 _ACEOF
32728 if ac_fn_c_try_compile "$LINENO"; then :
32729
32730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32731 $as_echo "yes" >&6; }
32732       tst_compi_strncasecmp="yes"
32733
32734 else
32735
32736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32737 $as_echo "no" >&6; }
32738       tst_compi_strncasecmp="no"
32739
32740 fi
32741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32742   fi
32743   #
32744   if test "$tst_compi_strncasecmp" = "yes"; then
32745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
32746 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
32747     if test "x$curl_disallow_strncasecmp" != "xyes"; then
32748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32749 $as_echo "yes" >&6; }
32750       tst_allow_strncasecmp="yes"
32751     else
32752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32753 $as_echo "no" >&6; }
32754       tst_allow_strncasecmp="no"
32755     fi
32756   fi
32757   #
32758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
32759 $as_echo_n "checking if strncasecmp might be used... " >&6; }
32760   if test "$tst_links_strncasecmp" = "yes" &&
32761      test "$tst_proto_strncasecmp" = "yes" &&
32762      test "$tst_compi_strncasecmp" = "yes" &&
32763      test "$tst_allow_strncasecmp" = "yes"; then
32764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32765 $as_echo "yes" >&6; }
32766
32767 cat >>confdefs.h <<_ACEOF
32768 #define HAVE_STRNCASECMP 1
32769 _ACEOF
32770
32771     ac_cv_func_strncasecmp="yes"
32772   else
32773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32774 $as_echo "no" >&6; }
32775     ac_cv_func_strncasecmp="no"
32776   fi
32777
32778
32779     #
32780   tst_links_strncmpi="unknown"
32781   tst_proto_strncmpi="unknown"
32782   tst_compi_strncmpi="unknown"
32783   tst_allow_strncmpi="unknown"
32784   #
32785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
32786 $as_echo_n "checking if strncmpi can be linked... " >&6; }
32787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32788 /* end confdefs.h.  */
32789
32790
32791 #define strncmpi innocuous_strncmpi
32792 #ifdef __STDC__
32793 # include <limits.h>
32794 #else
32795 # include <assert.h>
32796 #endif
32797 #undef strncmpi
32798 #ifdef __cplusplus
32799 extern "C"
32800 #endif
32801 char strncmpi ();
32802 #if defined __stub_strncmpi || defined __stub___strncmpi
32803 choke me
32804 #endif
32805
32806 int main (void)
32807 {
32808 return strncmpi ();
32809  ;
32810  return 0;
32811 }
32812
32813 _ACEOF
32814 if ac_fn_c_try_link "$LINENO"; then :
32815
32816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32817 $as_echo "yes" >&6; }
32818     tst_links_strncmpi="yes"
32819
32820 else
32821
32822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32823 $as_echo "no" >&6; }
32824     tst_links_strncmpi="no"
32825
32826 fi
32827 rm -f core conftest.err conftest.$ac_objext \
32828     conftest$ac_exeext conftest.$ac_ext
32829   #
32830   if test "$tst_links_strncmpi" = "yes"; then
32831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
32832 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
32833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32834 /* end confdefs.h.  */
32835
32836       $curl_includes_string
32837
32838 _ACEOF
32839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32840   $EGREP "strncmpi" >/dev/null 2>&1; then :
32841
32842       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32843 $as_echo "yes" >&6; }
32844       tst_proto_strncmpi="yes"
32845
32846 else
32847
32848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32849 $as_echo "no" >&6; }
32850       tst_proto_strncmpi="no"
32851
32852 fi
32853 rm -f conftest*
32854
32855   fi
32856   #
32857   if test "$tst_proto_strncmpi" = "yes"; then
32858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
32859 $as_echo_n "checking if strncmpi is compilable... " >&6; }
32860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32861 /* end confdefs.h.  */
32862
32863
32864         $curl_includes_string
32865
32866 int main (void)
32867 {
32868
32869         if(0 != strncmpi(0, 0))
32870           return 1;
32871
32872  ;
32873  return 0;
32874 }
32875
32876 _ACEOF
32877 if ac_fn_c_try_compile "$LINENO"; then :
32878
32879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32880 $as_echo "yes" >&6; }
32881       tst_compi_strncmpi="yes"
32882
32883 else
32884
32885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32886 $as_echo "no" >&6; }
32887       tst_compi_strncmpi="no"
32888
32889 fi
32890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32891   fi
32892   #
32893   if test "$tst_compi_strncmpi" = "yes"; then
32894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
32895 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
32896     if test "x$curl_disallow_strncmpi" != "xyes"; then
32897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32898 $as_echo "yes" >&6; }
32899       tst_allow_strncmpi="yes"
32900     else
32901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32902 $as_echo "no" >&6; }
32903       tst_allow_strncmpi="no"
32904     fi
32905   fi
32906   #
32907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
32908 $as_echo_n "checking if strncmpi might be used... " >&6; }
32909   if test "$tst_links_strncmpi" = "yes" &&
32910      test "$tst_proto_strncmpi" = "yes" &&
32911      test "$tst_compi_strncmpi" = "yes" &&
32912      test "$tst_allow_strncmpi" = "yes"; then
32913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32915
32916 cat >>confdefs.h <<_ACEOF
32917 #define HAVE_STRNCMPI 1
32918 _ACEOF
32919
32920     ac_cv_func_strncmpi="yes"
32921   else
32922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32923 $as_echo "no" >&6; }
32924     ac_cv_func_strncmpi="no"
32925   fi
32926
32927
32928     #
32929   tst_links_strnicmp="unknown"
32930   tst_proto_strnicmp="unknown"
32931   tst_compi_strnicmp="unknown"
32932   tst_allow_strnicmp="unknown"
32933   #
32934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
32935 $as_echo_n "checking if strnicmp can be linked... " >&6; }
32936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32937 /* end confdefs.h.  */
32938
32939
32940 #define strnicmp innocuous_strnicmp
32941 #ifdef __STDC__
32942 # include <limits.h>
32943 #else
32944 # include <assert.h>
32945 #endif
32946 #undef strnicmp
32947 #ifdef __cplusplus
32948 extern "C"
32949 #endif
32950 char strnicmp ();
32951 #if defined __stub_strnicmp || defined __stub___strnicmp
32952 choke me
32953 #endif
32954
32955 int main (void)
32956 {
32957 return strnicmp ();
32958  ;
32959  return 0;
32960 }
32961
32962 _ACEOF
32963 if ac_fn_c_try_link "$LINENO"; then :
32964
32965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32966 $as_echo "yes" >&6; }
32967     tst_links_strnicmp="yes"
32968
32969 else
32970
32971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32972 $as_echo "no" >&6; }
32973     tst_links_strnicmp="no"
32974
32975 fi
32976 rm -f core conftest.err conftest.$ac_objext \
32977     conftest$ac_exeext conftest.$ac_ext
32978   #
32979   if test "$tst_links_strnicmp" = "yes"; then
32980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
32981 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
32982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32983 /* end confdefs.h.  */
32984
32985       $curl_includes_string
32986
32987 _ACEOF
32988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32989   $EGREP "strnicmp" >/dev/null 2>&1; then :
32990
32991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992 $as_echo "yes" >&6; }
32993       tst_proto_strnicmp="yes"
32994
32995 else
32996
32997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32998 $as_echo "no" >&6; }
32999       tst_proto_strnicmp="no"
33000
33001 fi
33002 rm -f conftest*
33003
33004   fi
33005   #
33006   if test "$tst_proto_strnicmp" = "yes"; then
33007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
33008 $as_echo_n "checking if strnicmp is compilable... " >&6; }
33009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33010 /* end confdefs.h.  */
33011
33012
33013         $curl_includes_string
33014
33015 int main (void)
33016 {
33017
33018         if(0 != strnicmp(0, 0))
33019           return 1;
33020
33021  ;
33022  return 0;
33023 }
33024
33025 _ACEOF
33026 if ac_fn_c_try_compile "$LINENO"; then :
33027
33028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33029 $as_echo "yes" >&6; }
33030       tst_compi_strnicmp="yes"
33031
33032 else
33033
33034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33035 $as_echo "no" >&6; }
33036       tst_compi_strnicmp="no"
33037
33038 fi
33039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33040   fi
33041   #
33042   if test "$tst_compi_strnicmp" = "yes"; then
33043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
33044 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
33045     if test "x$curl_disallow_strnicmp" != "xyes"; then
33046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33047 $as_echo "yes" >&6; }
33048       tst_allow_strnicmp="yes"
33049     else
33050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33051 $as_echo "no" >&6; }
33052       tst_allow_strnicmp="no"
33053     fi
33054   fi
33055   #
33056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
33057 $as_echo_n "checking if strnicmp might be used... " >&6; }
33058   if test "$tst_links_strnicmp" = "yes" &&
33059      test "$tst_proto_strnicmp" = "yes" &&
33060      test "$tst_compi_strnicmp" = "yes" &&
33061      test "$tst_allow_strnicmp" = "yes"; then
33062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33063 $as_echo "yes" >&6; }
33064
33065 cat >>confdefs.h <<_ACEOF
33066 #define HAVE_STRNICMP 1
33067 _ACEOF
33068
33069     ac_cv_func_strnicmp="yes"
33070   else
33071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33072 $as_echo "no" >&6; }
33073     ac_cv_func_strnicmp="no"
33074   fi
33075
33076
33077     #
33078   tst_links_strstr="unknown"
33079   tst_proto_strstr="unknown"
33080   tst_compi_strstr="unknown"
33081   tst_allow_strstr="unknown"
33082   #
33083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
33084 $as_echo_n "checking if strstr can be linked... " >&6; }
33085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33086 /* end confdefs.h.  */
33087
33088
33089 #define strstr innocuous_strstr
33090 #ifdef __STDC__
33091 # include <limits.h>
33092 #else
33093 # include <assert.h>
33094 #endif
33095 #undef strstr
33096 #ifdef __cplusplus
33097 extern "C"
33098 #endif
33099 char strstr ();
33100 #if defined __stub_strstr || defined __stub___strstr
33101 choke me
33102 #endif
33103
33104 int main (void)
33105 {
33106 return strstr ();
33107  ;
33108  return 0;
33109 }
33110
33111 _ACEOF
33112 if ac_fn_c_try_link "$LINENO"; then :
33113
33114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33115 $as_echo "yes" >&6; }
33116     tst_links_strstr="yes"
33117
33118 else
33119
33120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33121 $as_echo "no" >&6; }
33122     tst_links_strstr="no"
33123
33124 fi
33125 rm -f core conftest.err conftest.$ac_objext \
33126     conftest$ac_exeext conftest.$ac_ext
33127   #
33128   if test "$tst_links_strstr" = "yes"; then
33129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
33130 $as_echo_n "checking if strstr is prototyped... " >&6; }
33131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33132 /* end confdefs.h.  */
33133
33134       $curl_includes_string
33135
33136 _ACEOF
33137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33138   $EGREP "strstr" >/dev/null 2>&1; then :
33139
33140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33141 $as_echo "yes" >&6; }
33142       tst_proto_strstr="yes"
33143
33144 else
33145
33146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33147 $as_echo "no" >&6; }
33148       tst_proto_strstr="no"
33149
33150 fi
33151 rm -f conftest*
33152
33153   fi
33154   #
33155   if test "$tst_proto_strstr" = "yes"; then
33156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
33157 $as_echo_n "checking if strstr is compilable... " >&6; }
33158     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33159 /* end confdefs.h.  */
33160
33161
33162         $curl_includes_string
33163
33164 int main (void)
33165 {
33166
33167         if(0 != strstr(0, 0))
33168           return 1;
33169
33170  ;
33171  return 0;
33172 }
33173
33174 _ACEOF
33175 if ac_fn_c_try_compile "$LINENO"; then :
33176
33177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179       tst_compi_strstr="yes"
33180
33181 else
33182
33183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185       tst_compi_strstr="no"
33186
33187 fi
33188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33189   fi
33190   #
33191   if test "$tst_compi_strstr" = "yes"; then
33192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
33193 $as_echo_n "checking if strstr usage allowed... " >&6; }
33194     if test "x$curl_disallow_strstr" != "xyes"; then
33195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196 $as_echo "yes" >&6; }
33197       tst_allow_strstr="yes"
33198     else
33199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33200 $as_echo "no" >&6; }
33201       tst_allow_strstr="no"
33202     fi
33203   fi
33204   #
33205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
33206 $as_echo_n "checking if strstr might be used... " >&6; }
33207   if test "$tst_links_strstr" = "yes" &&
33208      test "$tst_proto_strstr" = "yes" &&
33209      test "$tst_compi_strstr" = "yes" &&
33210      test "$tst_allow_strstr" = "yes"; then
33211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33212 $as_echo "yes" >&6; }
33213
33214 cat >>confdefs.h <<_ACEOF
33215 #define HAVE_STRSTR 1
33216 _ACEOF
33217
33218     ac_cv_func_strstr="yes"
33219   else
33220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221 $as_echo "no" >&6; }
33222     ac_cv_func_strstr="no"
33223   fi
33224
33225
33226     #
33227   tst_links_strtok_r="unknown"
33228   tst_proto_strtok_r="unknown"
33229   tst_compi_strtok_r="unknown"
33230   tst_allow_strtok_r="unknown"
33231   #
33232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
33233 $as_echo_n "checking if strtok_r can be linked... " >&6; }
33234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33235 /* end confdefs.h.  */
33236
33237
33238 #define strtok_r innocuous_strtok_r
33239 #ifdef __STDC__
33240 # include <limits.h>
33241 #else
33242 # include <assert.h>
33243 #endif
33244 #undef strtok_r
33245 #ifdef __cplusplus
33246 extern "C"
33247 #endif
33248 char strtok_r ();
33249 #if defined __stub_strtok_r || defined __stub___strtok_r
33250 choke me
33251 #endif
33252
33253 int main (void)
33254 {
33255 return strtok_r ();
33256  ;
33257  return 0;
33258 }
33259
33260 _ACEOF
33261 if ac_fn_c_try_link "$LINENO"; then :
33262
33263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33264 $as_echo "yes" >&6; }
33265     tst_links_strtok_r="yes"
33266
33267 else
33268
33269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33270 $as_echo "no" >&6; }
33271     tst_links_strtok_r="no"
33272
33273 fi
33274 rm -f core conftest.err conftest.$ac_objext \
33275     conftest$ac_exeext conftest.$ac_ext
33276   #
33277   if test "$tst_links_strtok_r" = "yes"; then
33278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
33279 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
33280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33281 /* end confdefs.h.  */
33282
33283       $curl_includes_string
33284
33285 _ACEOF
33286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33287   $EGREP "strtok_r" >/dev/null 2>&1; then :
33288
33289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33290 $as_echo "yes" >&6; }
33291       tst_proto_strtok_r="yes"
33292
33293 else
33294
33295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33296 $as_echo "no" >&6; }
33297       tst_proto_strtok_r="no"
33298
33299 fi
33300 rm -f conftest*
33301
33302   fi
33303   #
33304   if test "$tst_proto_strtok_r" = "yes"; then
33305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
33306 $as_echo_n "checking if strtok_r is compilable... " >&6; }
33307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33308 /* end confdefs.h.  */
33309
33310
33311         $curl_includes_string
33312
33313 int main (void)
33314 {
33315
33316         if(0 != strtok_r(0, 0, 0))
33317           return 1;
33318
33319  ;
33320  return 0;
33321 }
33322
33323 _ACEOF
33324 if ac_fn_c_try_compile "$LINENO"; then :
33325
33326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33327 $as_echo "yes" >&6; }
33328       tst_compi_strtok_r="yes"
33329
33330 else
33331
33332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33333 $as_echo "no" >&6; }
33334       tst_compi_strtok_r="no"
33335
33336 fi
33337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33338   fi
33339   #
33340   if test "$tst_compi_strtok_r" = "yes"; then
33341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
33342 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
33343     if test "x$curl_disallow_strtok_r" != "xyes"; then
33344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33345 $as_echo "yes" >&6; }
33346       tst_allow_strtok_r="yes"
33347     else
33348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33349 $as_echo "no" >&6; }
33350       tst_allow_strtok_r="no"
33351     fi
33352   fi
33353   #
33354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
33355 $as_echo_n "checking if strtok_r might be used... " >&6; }
33356   if test "$tst_links_strtok_r" = "yes" &&
33357      test "$tst_proto_strtok_r" = "yes" &&
33358      test "$tst_compi_strtok_r" = "yes" &&
33359      test "$tst_allow_strtok_r" = "yes"; then
33360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33361 $as_echo "yes" >&6; }
33362
33363 cat >>confdefs.h <<_ACEOF
33364 #define HAVE_STRTOK_R 1
33365 _ACEOF
33366
33367     ac_cv_func_strtok_r="yes"
33368   else
33369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33370 $as_echo "no" >&6; }
33371     ac_cv_func_strtok_r="no"
33372   fi
33373
33374
33375     #
33376   tst_links_strtoll="unknown"
33377   tst_proto_strtoll="unknown"
33378   tst_compi_strtoll="unknown"
33379   tst_allow_strtoll="unknown"
33380   #
33381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
33382 $as_echo_n "checking if strtoll can be linked... " >&6; }
33383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33384 /* end confdefs.h.  */
33385
33386
33387 #define strtoll innocuous_strtoll
33388 #ifdef __STDC__
33389 # include <limits.h>
33390 #else
33391 # include <assert.h>
33392 #endif
33393 #undef strtoll
33394 #ifdef __cplusplus
33395 extern "C"
33396 #endif
33397 char strtoll ();
33398 #if defined __stub_strtoll || defined __stub___strtoll
33399 choke me
33400 #endif
33401
33402 int main (void)
33403 {
33404 return strtoll ();
33405  ;
33406  return 0;
33407 }
33408
33409 _ACEOF
33410 if ac_fn_c_try_link "$LINENO"; then :
33411
33412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33413 $as_echo "yes" >&6; }
33414     tst_links_strtoll="yes"
33415
33416 else
33417
33418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33419 $as_echo "no" >&6; }
33420     tst_links_strtoll="no"
33421
33422 fi
33423 rm -f core conftest.err conftest.$ac_objext \
33424     conftest$ac_exeext conftest.$ac_ext
33425   #
33426   if test "$tst_links_strtoll" = "yes"; then
33427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
33428 $as_echo_n "checking if strtoll is prototyped... " >&6; }
33429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h.  */
33431
33432       $curl_includes_stdlib
33433
33434 _ACEOF
33435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33436   $EGREP "strtoll" >/dev/null 2>&1; then :
33437
33438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33439 $as_echo "yes" >&6; }
33440       tst_proto_strtoll="yes"
33441
33442 else
33443
33444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33445 $as_echo "no" >&6; }
33446       tst_proto_strtoll="no"
33447
33448 fi
33449 rm -f conftest*
33450
33451   fi
33452   #
33453   if test "$tst_proto_strtoll" = "yes"; then
33454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
33455 $as_echo_n "checking if strtoll is compilable... " >&6; }
33456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33457 /* end confdefs.h.  */
33458
33459
33460         $curl_includes_stdlib
33461
33462 int main (void)
33463 {
33464
33465         if(0 != strtoll(0, 0, 0))
33466           return 1;
33467
33468  ;
33469  return 0;
33470 }
33471
33472 _ACEOF
33473 if ac_fn_c_try_compile "$LINENO"; then :
33474
33475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33476 $as_echo "yes" >&6; }
33477       tst_compi_strtoll="yes"
33478
33479 else
33480
33481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33482 $as_echo "no" >&6; }
33483       tst_compi_strtoll="no"
33484
33485 fi
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487   fi
33488   #
33489   if test "$tst_compi_strtoll" = "yes"; then
33490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
33491 $as_echo_n "checking if strtoll usage allowed... " >&6; }
33492     if test "x$curl_disallow_strtoll" != "xyes"; then
33493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33494 $as_echo "yes" >&6; }
33495       tst_allow_strtoll="yes"
33496     else
33497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33498 $as_echo "no" >&6; }
33499       tst_allow_strtoll="no"
33500     fi
33501   fi
33502   #
33503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
33504 $as_echo_n "checking if strtoll might be used... " >&6; }
33505   if test "$tst_links_strtoll" = "yes" &&
33506      test "$tst_proto_strtoll" = "yes" &&
33507      test "$tst_compi_strtoll" = "yes" &&
33508      test "$tst_allow_strtoll" = "yes"; then
33509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33510 $as_echo "yes" >&6; }
33511
33512 cat >>confdefs.h <<_ACEOF
33513 #define HAVE_STRTOLL 1
33514 _ACEOF
33515
33516     ac_cv_func_strtoll="yes"
33517   else
33518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33519 $as_echo "no" >&6; }
33520     ac_cv_func_strtoll="no"
33521   fi
33522
33523
33524 curl_includes_sys_uio="\
33525 /* includes start */
33526 #ifdef HAVE_SYS_TYPES_H
33527 #  include <sys/types.h>
33528 #endif
33529 #ifdef HAVE_SYS_UIO_H
33530 #  include <sys/uio.h>
33531 #endif
33532 /* includes end */"
33533   for ac_header in sys/types.h sys/uio.h
33534 do :
33535   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
33537 "
33538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33539   cat >>confdefs.h <<_ACEOF
33540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33541 _ACEOF
33542
33543 fi
33544
33545 done
33546
33547
33548
33549     #
33550   tst_links_writev="unknown"
33551   tst_proto_writev="unknown"
33552   tst_compi_writev="unknown"
33553   tst_allow_writev="unknown"
33554   #
33555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
33556 $as_echo_n "checking if writev can be linked... " >&6; }
33557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33558 /* end confdefs.h.  */
33559
33560
33561 #define writev innocuous_writev
33562 #ifdef __STDC__
33563 # include <limits.h>
33564 #else
33565 # include <assert.h>
33566 #endif
33567 #undef writev
33568 #ifdef __cplusplus
33569 extern "C"
33570 #endif
33571 char writev ();
33572 #if defined __stub_writev || defined __stub___writev
33573 choke me
33574 #endif
33575
33576 int main (void)
33577 {
33578 return writev ();
33579  ;
33580  return 0;
33581 }
33582
33583 _ACEOF
33584 if ac_fn_c_try_link "$LINENO"; then :
33585
33586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33587 $as_echo "yes" >&6; }
33588     tst_links_writev="yes"
33589
33590 else
33591
33592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33593 $as_echo "no" >&6; }
33594     tst_links_writev="no"
33595
33596 fi
33597 rm -f core conftest.err conftest.$ac_objext \
33598     conftest$ac_exeext conftest.$ac_ext
33599   #
33600   if test "$tst_links_writev" = "yes"; then
33601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
33602 $as_echo_n "checking if writev is prototyped... " >&6; }
33603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33604 /* end confdefs.h.  */
33605
33606       $curl_includes_sys_uio
33607
33608 _ACEOF
33609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33610   $EGREP "writev" >/dev/null 2>&1; then :
33611
33612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33613 $as_echo "yes" >&6; }
33614       tst_proto_writev="yes"
33615
33616 else
33617
33618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33619 $as_echo "no" >&6; }
33620       tst_proto_writev="no"
33621
33622 fi
33623 rm -f conftest*
33624
33625   fi
33626   #
33627   if test "$tst_proto_writev" = "yes"; then
33628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
33629 $as_echo_n "checking if writev is compilable... " >&6; }
33630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33631 /* end confdefs.h.  */
33632
33633
33634         $curl_includes_sys_uio
33635
33636 int main (void)
33637 {
33638
33639         if(0 != writev(0, 0, 0))
33640           return 1;
33641
33642  ;
33643  return 0;
33644 }
33645
33646 _ACEOF
33647 if ac_fn_c_try_compile "$LINENO"; then :
33648
33649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33650 $as_echo "yes" >&6; }
33651       tst_compi_writev="yes"
33652
33653 else
33654
33655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33656 $as_echo "no" >&6; }
33657       tst_compi_writev="no"
33658
33659 fi
33660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33661   fi
33662   #
33663   if test "$tst_compi_writev" = "yes"; then
33664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
33665 $as_echo_n "checking if writev usage allowed... " >&6; }
33666     if test "x$curl_disallow_writev" != "xyes"; then
33667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33668 $as_echo "yes" >&6; }
33669       tst_allow_writev="yes"
33670     else
33671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33672 $as_echo "no" >&6; }
33673       tst_allow_writev="no"
33674     fi
33675   fi
33676   #
33677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
33678 $as_echo_n "checking if writev might be used... " >&6; }
33679   if test "$tst_links_writev" = "yes" &&
33680      test "$tst_proto_writev" = "yes" &&
33681      test "$tst_compi_writev" = "yes" &&
33682      test "$tst_allow_writev" = "yes"; then
33683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33684 $as_echo "yes" >&6; }
33685
33686 cat >>confdefs.h <<_ACEOF
33687 #define HAVE_WRITEV 1
33688 _ACEOF
33689
33690     ac_cv_func_writev="yes"
33691   else
33692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33693 $as_echo "no" >&6; }
33694     ac_cv_func_writev="no"
33695   fi
33696
33697
33698 case $host in
33699   *msdosdjgpp)
33700      ac_cv_func_pipe=no
33701      skipcheck_pipe=yes
33702      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
33703 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
33704     ;;
33705 esac
33706
33707 for ac_func in fork \
33708   geteuid \
33709   getpass_r \
33710   getppid \
33711   getprotobyname \
33712   getpwuid \
33713   getrlimit \
33714   gettimeofday \
33715   inet_addr \
33716   perror \
33717   pipe \
33718   setlocale \
33719   setmode \
33720   setrlimit \
33721   uname \
33722   utime
33723
33724 do :
33725   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33728   cat >>confdefs.h <<_ACEOF
33729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33730 _ACEOF
33731
33732
33733 else
33734
33735   func="$ac_func"
33736   eval skipcheck=\$skipcheck_$func
33737   if test "x$skipcheck" != "xyes"; then
33738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
33739 $as_echo_n "checking deeper for $func... " >&6; }
33740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33741 /* end confdefs.h.  */
33742
33743
33744
33745 int main (void)
33746 {
33747
33748         $func ();
33749
33750  ;
33751  return 0;
33752 }
33753
33754 _ACEOF
33755 if ac_fn_c_try_link "$LINENO"; then :
33756
33757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33758 $as_echo "yes" >&6; }
33759       eval "ac_cv_func_$func=yes"
33760
33761 cat >>confdefs.h <<_ACEOF
33762 #define `$as_echo "HAVE_$func" | $as_tr_cpp` 1
33763 _ACEOF
33764
33765
33766 else
33767
33768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33769 $as_echo "but still no" >&6; }
33770
33771 fi
33772 rm -f core conftest.err conftest.$ac_objext \
33773     conftest$ac_exeext conftest.$ac_ext
33774   fi
33775
33776 fi
33777 done
33778
33779
33780
33781     for ac_header in sys/types.h sys/socket.h netdb.h
33782 do :
33783   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33786   cat >>confdefs.h <<_ACEOF
33787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33788 _ACEOF
33789
33790 fi
33791
33792 done
33793
33794   #
33795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
33796 $as_echo_n "checking for getnameinfo... " >&6; }
33797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33798 /* end confdefs.h.  */
33799
33800
33801 #define getnameinfo innocuous_getnameinfo
33802 #ifdef __STDC__
33803 # include <limits.h>
33804 #else
33805 # include <assert.h>
33806 #endif
33807 #undef getnameinfo
33808 #ifdef __cplusplus
33809 extern "C"
33810 #endif
33811 char getnameinfo ();
33812 #if defined __stub_getnameinfo || defined __stub___getnameinfo
33813 choke me
33814 #endif
33815
33816 int main (void)
33817 {
33818 return getnameinfo ();
33819  ;
33820  return 0;
33821 }
33822
33823 _ACEOF
33824 if ac_fn_c_try_link "$LINENO"; then :
33825
33826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33827 $as_echo "yes" >&6; }
33828     curl_cv_getnameinfo="yes"
33829
33830 else
33831
33832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33833 $as_echo "no" >&6; }
33834     curl_cv_getnameinfo="no"
33835
33836 fi
33837 rm -f core conftest.err conftest.$ac_objext \
33838     conftest$ac_exeext conftest.$ac_ext
33839   #
33840   if test "$curl_cv_getnameinfo" != "yes"; then
33841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
33842 $as_echo_n "checking deeper for getnameinfo... " >&6; }
33843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33844 /* end confdefs.h.  */
33845
33846
33847
33848 int main (void)
33849 {
33850
33851         getnameinfo();
33852
33853  ;
33854  return 0;
33855 }
33856
33857 _ACEOF
33858 if ac_fn_c_try_link "$LINENO"; then :
33859
33860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33861 $as_echo "yes" >&6; }
33862       curl_cv_getnameinfo="yes"
33863
33864 else
33865
33866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33867 $as_echo "but still no" >&6; }
33868       curl_cv_getnameinfo="no"
33869
33870 fi
33871 rm -f core conftest.err conftest.$ac_objext \
33872     conftest$ac_exeext conftest.$ac_ext
33873   fi
33874   #
33875   if test "$curl_cv_getnameinfo" != "yes"; then
33876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
33877 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
33878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33879 /* end confdefs.h.  */
33880
33881
33882 #undef inline
33883 #ifdef HAVE_WINDOWS_H
33884 #ifndef WIN32_LEAN_AND_MEAN
33885 #define WIN32_LEAN_AND_MEAN
33886 #endif
33887 #include <windows.h>
33888 #ifdef HAVE_WINSOCK2_H
33889 #include <winsock2.h>
33890 #ifdef HAVE_WS2TCPIP_H
33891 #include <ws2tcpip.h>
33892 #endif
33893 #endif
33894 #else
33895 #ifdef HAVE_SYS_TYPES_H
33896 #include <sys/types.h>
33897 #endif
33898 #ifdef HAVE_SYS_SOCKET_H
33899 #include <sys/socket.h>
33900 #endif
33901 #ifdef HAVE_NETDB_H
33902 #include <netdb.h>
33903 #endif
33904 #endif
33905
33906 int main (void)
33907 {
33908
33909         getnameinfo(0, 0, 0, 0, 0, 0, 0);
33910
33911  ;
33912  return 0;
33913 }
33914
33915 _ACEOF
33916 if ac_fn_c_try_link "$LINENO"; then :
33917
33918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920       curl_cv_getnameinfo="yes"
33921
33922 else
33923
33924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33925 $as_echo "but still no" >&6; }
33926       curl_cv_getnameinfo="no"
33927
33928 fi
33929 rm -f core conftest.err conftest.$ac_objext \
33930     conftest$ac_exeext conftest.$ac_ext
33931   fi
33932   #
33933   if test "$curl_cv_getnameinfo" = "yes"; then
33934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
33935 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
33936 if test "${curl_cv_func_getnameinfo_args+set}" = set; then :
33937   $as_echo_n "(cached) " >&6
33938 else
33939
33940       curl_cv_func_getnameinfo_args="unknown"
33941       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
33942         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
33943           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
33944             for gni_arg7 in 'int' 'unsigned int'; do
33945               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33946                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33947 /* end confdefs.h.  */
33948
33949
33950 #undef inline
33951 #ifdef HAVE_WINDOWS_H
33952 #ifndef WIN32_LEAN_AND_MEAN
33953 #define WIN32_LEAN_AND_MEAN
33954 #endif
33955 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
33956 #undef _WIN32_WINNT
33957 #define _WIN32_WINNT 0x0501
33958 #endif
33959 #include <windows.h>
33960 #ifdef HAVE_WINSOCK2_H
33961 #include <winsock2.h>
33962 #ifdef HAVE_WS2TCPIP_H
33963 #include <ws2tcpip.h>
33964 #endif
33965 #endif
33966 #define GNICALLCONV WSAAPI
33967 #else
33968 #ifdef HAVE_SYS_TYPES_H
33969 #include <sys/types.h>
33970 #endif
33971 #ifdef HAVE_SYS_SOCKET_H
33972 #include <sys/socket.h>
33973 #endif
33974 #ifdef HAVE_NETDB_H
33975 #include <netdb.h>
33976 #endif
33977 #define GNICALLCONV
33978 #endif
33979                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
33980                                            char *, $gni_arg46,
33981                                            char *, $gni_arg46,
33982                                            $gni_arg7);
33983
33984 int main (void)
33985 {
33986
33987                     $gni_arg2 salen=0;
33988                     $gni_arg46 hostlen=0;
33989                     $gni_arg46 servlen=0;
33990                     $gni_arg7 flags=0;
33991                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
33992
33993  ;
33994  return 0;
33995 }
33996
33997 _ACEOF
33998 if ac_fn_c_try_compile "$LINENO"; then :
33999
34000                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
34001
34002 fi
34003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34004               fi
34005             done
34006           done
34007         done
34008       done
34009
34010 fi
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
34012 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
34013     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
34014       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
34015 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
34016       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
34017 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
34018     else
34019       gni_prev_IFS=$IFS; IFS=','
34020       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
34021       IFS=$gni_prev_IFS
34022       shift
34023       #
34024       gni_qual_type_arg1=$1
34025       #
34026
34027 cat >>confdefs.h <<_ACEOF
34028 #define GETNAMEINFO_TYPE_ARG2 $2
34029 _ACEOF
34030
34031
34032 cat >>confdefs.h <<_ACEOF
34033 #define GETNAMEINFO_TYPE_ARG46 $3
34034 _ACEOF
34035
34036
34037 cat >>confdefs.h <<_ACEOF
34038 #define GETNAMEINFO_TYPE_ARG7 $4
34039 _ACEOF
34040
34041       #
34042       prev_sh_opts=$-
34043       #
34044       case $prev_sh_opts in
34045         *f*)
34046           ;;
34047         *)
34048           set -f
34049           ;;
34050       esac
34051       #
34052       case "$gni_qual_type_arg1" in
34053         const*)
34054           gni_qual_arg1=const
34055           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
34056         ;;
34057         *)
34058           gni_qual_arg1=
34059           gni_type_arg1=$gni_qual_type_arg1
34060         ;;
34061       esac
34062       #
34063
34064 cat >>confdefs.h <<_ACEOF
34065 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
34066 _ACEOF
34067
34068
34069 cat >>confdefs.h <<_ACEOF
34070 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
34071 _ACEOF
34072
34073       #
34074       case $prev_sh_opts in
34075         *f*)
34076           ;;
34077         *)
34078           set +f
34079           ;;
34080       esac
34081       #
34082
34083 cat >>confdefs.h <<_ACEOF
34084 #define HAVE_GETNAMEINFO 1
34085 _ACEOF
34086
34087       ac_cv_func_getnameinfo="yes"
34088     fi
34089   fi
34090
34091
34092 if test "$ipv6" = "yes"; then
34093   if test "$ac_cv_func_getaddrinfo" = "yes"; then
34094
34095 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
34096
34097     IPV6_ENABLED=1
34098
34099   fi
34100
34101       for ac_header in stdio.h sys/types.h sys/socket.h \
34102                    netdb.h netinet/in.h arpa/inet.h
34103 do :
34104   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34105 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
34106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34107   cat >>confdefs.h <<_ACEOF
34108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34109 _ACEOF
34110
34111 fi
34112
34113 done
34114
34115   #
34116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
34117 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
34118 if test "${ac_cv_working_ni_withscopeid+set}" = set; then :
34119   $as_echo_n "(cached) " >&6
34120 else
34121
34122     if test "$cross_compiling" = yes; then :
34123
34124       # Program is not run when cross-compiling. So we assume
34125       # NI_WITHSCOPEID will work if we are able to compile it.
34126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34127 /* end confdefs.h.  */
34128
34129
34130 #include <sys/types.h>
34131 #include <sys/socket.h>
34132 #include <netdb.h>
34133
34134 int main (void)
34135 {
34136
34137           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
34138
34139  ;
34140  return 0;
34141 }
34142
34143 _ACEOF
34144 if ac_fn_c_try_compile "$LINENO"; then :
34145
34146         ac_cv_working_ni_withscopeid="yes"
34147
34148 else
34149
34150         ac_cv_working_ni_withscopeid="no"
34151
34152 fi
34153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
34154
34155 else
34156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h.  */
34158
34159
34160 #ifdef HAVE_STDLIB_H
34161 #include <stdlib.h>
34162 #endif
34163 #ifdef HAVE_STDIO_H
34164 #include <stdio.h>
34165 #endif
34166 #ifdef HAVE_SYS_TYPES_H
34167 #include <sys/types.h>
34168 #endif
34169 #ifdef HAVE_SYS_SOCKET_H
34170 #include <sys/socket.h>
34171 #endif
34172 #ifdef HAVE_NETDB_H
34173 #include <netdb.h>
34174 #endif
34175 #ifdef HAVE_NETINET_IN_H
34176 #include <netinet/in.h>
34177 #endif
34178 #ifdef HAVE_ARPA_INET_H
34179 #include <arpa/inet.h>
34180 #endif
34181
34182 int main (void)
34183 {
34184
34185 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
34186 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
34187         struct sockaddr_storage sa;
34188 #else
34189         unsigned char sa[256];
34190 #endif
34191         char hostbuf[NI_MAXHOST];
34192         int rc;
34193         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
34194         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
34195         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
34196         int fd = socket(AF_INET6, SOCK_STREAM, 0);
34197         if(fd < 0) {
34198           perror("socket()");
34199           return 1; /* Error creating socket */
34200         }
34201         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
34202         if(rc) {
34203           perror("getsockname()");
34204           return 2; /* Error retrieving socket name */
34205         }
34206         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
34207         if(rc) {
34208           printf("rc = %s\n", gai_strerror(rc));
34209           return 3; /* Error translating socket address */
34210         }
34211         return 0; /* Ok, NI_WITHSCOPEID works */
34212 #else
34213         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
34214 #endif
34215
34216  ;
34217  return 0;
34218 } # AC-LANG-PROGRAM
34219
34220 _ACEOF
34221 if ac_fn_c_try_run "$LINENO"; then :
34222
34223       # Exit code == 0. Program worked.
34224       ac_cv_working_ni_withscopeid="yes"
34225
34226 else
34227
34228       # Exit code != 0. Program failed.
34229       ac_cv_working_ni_withscopeid="no"
34230
34231 fi
34232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34233   conftest.$ac_objext conftest.beam conftest.$ac_ext
34234 fi
34235  # AC-RUN-IFELSE
34236
34237 fi
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
34239 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
34240   case "$ac_cv_working_ni_withscopeid" in
34241     yes)
34242
34243 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
34244
34245       ;;
34246   esac
34247
34248 fi
34249
34250
34251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
34252 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
34253   OPT_NONBLOCKING="default"
34254   # Check whether --enable-nonblocking was given.
34255 if test "${enable_nonblocking+set}" = set; then :
34256   enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
34257 fi
34258
34259   case "$OPT_NONBLOCKING" in
34260     no)
34261             want_nonblocking="no"
34262       ;;
34263     default)
34264             want_nonblocking="yes"
34265       ;;
34266     *)
34267             want_nonblocking="yes"
34268       ;;
34269   esac
34270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
34271 $as_echo "$want_nonblocking" >&6; }
34272
34273
34274               #
34275   tst_method="unknown"
34276   if test "$want_nonblocking" = "yes"; then
34277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
34278 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
34279     if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
34280       tst_method="fcntl O_NONBLOCK"
34281     elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
34282       tst_method="ioctl FIONBIO"
34283     elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
34284       tst_method="ioctlsocket FIONBIO"
34285     elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
34286       tst_method="IoctlSocket FIONBIO"
34287     elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
34288       tst_method="setsockopt SO_NONBLOCK"
34289     fi
34290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
34291 $as_echo "$tst_method" >&6; }
34292     if test "$tst_method" = "unknown"; then
34293       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
34294 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
34295     fi
34296   fi
34297   if test "$tst_method" = "unknown"; then
34298
34299 cat >>confdefs.h <<_ACEOF
34300 #define USE_BLOCKING_SOCKETS 1
34301 _ACEOF
34302
34303     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
34304 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
34305   fi
34306
34307
34308
34309 # Extract the first word of "perl", so it can be a program name with args.
34310 set dummy perl; ac_word=$2
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34312 $as_echo_n "checking for $ac_word... " >&6; }
34313 if test "${ac_cv_path_PERL+set}" = set; then :
34314   $as_echo_n "(cached) " >&6
34315 else
34316   case $PERL in
34317   [\\/]* | ?:[\\/]*)
34318   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34319   ;;
34320   *)
34321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34322 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
34323 for as_dir in $as_dummy
34324 do
34325   IFS=$as_save_IFS
34326   test -z "$as_dir" && as_dir=.
34327     for ac_exec_ext in '' $ac_executable_extensions; do
34328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34329     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34331     break 2
34332   fi
34333 done
34334   done
34335 IFS=$as_save_IFS
34336
34337   ;;
34338 esac
34339 fi
34340 PERL=$ac_cv_path_PERL
34341 if test -n "$PERL"; then
34342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34343 $as_echo "$PERL" >&6; }
34344 else
34345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34346 $as_echo "no" >&6; }
34347 fi
34348
34349
34350
34351
34352 for ac_prog in gnroff nroff
34353 do
34354   # Extract the first word of "$ac_prog", so it can be a program name with args.
34355 set dummy $ac_prog; ac_word=$2
34356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34357 $as_echo_n "checking for $ac_word... " >&6; }
34358 if test "${ac_cv_path_NROFF+set}" = set; then :
34359   $as_echo_n "(cached) " >&6
34360 else
34361   case $NROFF in
34362   [\\/]* | ?:[\\/]*)
34363   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34364   ;;
34365   *)
34366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34367 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
34368 for as_dir in $as_dummy
34369 do
34370   IFS=$as_save_IFS
34371   test -z "$as_dir" && as_dir=.
34372     for ac_exec_ext in '' $ac_executable_extensions; do
34373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34374     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34376     break 2
34377   fi
34378 done
34379   done
34380 IFS=$as_save_IFS
34381
34382   ;;
34383 esac
34384 fi
34385 NROFF=$ac_cv_path_NROFF
34386 if test -n "$NROFF"; then
34387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
34388 $as_echo "$NROFF" >&6; }
34389 else
34390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34391 $as_echo "no" >&6; }
34392 fi
34393
34394
34395   test -n "$NROFF" && break
34396 done
34397
34398
34399
34400 if test -n "$NROFF"; then
34401
34402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
34403 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
34404   MANOPT="-man"
34405   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
34406   if test -z "$mancheck"; then
34407     MANOPT="-mandoc"
34408    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
34409     if test -z "$mancheck"; then
34410       MANOPT=""
34411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34412 $as_echo "failed" >&6; }
34413       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
34414 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
34415     else
34416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
34417 $as_echo "$MANOPT" >&6; }
34418     fi
34419   else
34420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
34421 $as_echo "$MANOPT" >&6; }
34422   fi
34423
34424 fi
34425
34426 if test -z "$MANOPT"
34427 then
34428       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
34429 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
34430   USE_MANUAL="no";
34431 fi
34432
34433
34434 if test "$USE_MANUAL" = "1"; then
34435
34436 $as_echo "#define USE_MANUAL 1" >>confdefs.h
34437
34438   curl_manual_msg="enabled"
34439 fi
34440
34441
34442
34443 if test x"$USE_MANUAL" = x1; then
34444   USE_MANUAL_TRUE=
34445   USE_MANUAL_FALSE='#'
34446 else
34447   USE_MANUAL_TRUE='#'
34448   USE_MANUAL_FALSE=
34449 fi
34450
34451
34452
34453
34454
34455   #
34456   if test "$want_ares" = "yes"; then
34457         clean_CPPFLAGS="$CPPFLAGS"
34458     clean_LDFLAGS="$LDFLAGS"
34459     clean_LIBS="$LIBS"
34460     embedded_ares="unknown"
34461     configure_runpath=`pwd`
34462     embedded_ares_builddir="$configure_runpath/ares"
34463     if test -n "$want_ares_path"; then
34464             ares_CPPFLAGS="-I$want_ares_path/include"
34465       ares_LDFLAGS="-L$want_ares_path/lib"
34466       ares_LIBS="-lcares"
34467     else
34468             if test -d "$srcdir/ares"; then
34469                 embedded_ares="yes"
34470         subdirs="$subdirs ares"
34471
34472                         ares_CPPFLAGS=""
34473         ares_LDFLAGS="-L$embedded_ares_builddir"
34474         ares_LIBS="-lcares"
34475       else
34476                 ares_CPPFLAGS=""
34477         ares_LDFLAGS=""
34478         ares_LIBS="-lcares"
34479       fi
34480     fi
34481     #
34482     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
34483     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
34484     LIBS="$ares_LIBS $clean_LIBS"
34485     #
34486     if test "$embedded_ares" != "yes"; then
34487                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
34488 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
34489       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34490 /* end confdefs.h.  */
34491
34492
34493 #include <ares.h>
34494           /* set of dummy functions in case c-ares was built with debug */
34495           void curl_dofree() { }
34496           void curl_sclose() { }
34497           void curl_domalloc() { }
34498           void curl_docalloc() { }
34499           void curl_socket() { }
34500
34501 int main (void)
34502 {
34503
34504           ares_channel channel;
34505           ares_cancel(channel); /* added in 1.2.0 */
34506           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
34507           ares_dup(&channel, channel); /* added in 1.6.0 */
34508
34509  ;
34510  return 0;
34511 }
34512
34513 _ACEOF
34514 if ac_fn_c_try_link "$LINENO"; then :
34515
34516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34517 $as_echo "yes" >&6; }
34518
34519 else
34520
34521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34522 $as_echo "no" >&6; }
34523         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
34524                 CPPFLAGS="$clean_CPPFLAGS"
34525         LDFLAGS="$clean_LDFLAGS"
34526         LIBS="$clean_LIBS"
34527         # prevent usage
34528         want_ares="no"
34529
34530 fi
34531 rm -f core conftest.err conftest.$ac_objext \
34532     conftest$ac_exeext conftest.$ac_ext
34533     fi
34534     if test "$want_ares" = "yes"; then
34535
34536 $as_echo "#define USE_ARES 1" >>confdefs.h
34537
34538       USE_ARES=1
34539
34540       curl_res_msg="c-ares"
34541     fi
34542   fi
34543
34544
34545
34546 if test x$embedded_ares = xyes; then
34547   USE_EMBEDDED_ARES_TRUE=
34548   USE_EMBEDDED_ARES_FALSE='#'
34549 else
34550   USE_EMBEDDED_ARES_TRUE='#'
34551   USE_EMBEDDED_ARES_FALSE=
34552 fi
34553
34554
34555 if test "x$enable_shared" = "xyes"; then
34556   build_libhostname=yes
34557 else
34558   build_libhostname=no
34559 fi
34560
34561
34562 if test x$build_libhostname = xyes; then
34563   BUILD_LIBHOSTNAME_TRUE=
34564   BUILD_LIBHOSTNAME_FALSE='#'
34565 else
34566   BUILD_LIBHOSTNAME_TRUE='#'
34567   BUILD_LIBHOSTNAME_FALSE=
34568 fi
34569
34570
34571
34572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
34573 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
34574   OPT_THRES="default"
34575   # Check whether --enable-threaded_resolver was given.
34576 if test "${enable_threaded_resolver+set}" = set; then :
34577   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
34578 fi
34579
34580   case "$OPT_THRES" in
34581     yes)
34582             want_thres="yes"
34583       ;;
34584     *)
34585             want_thres="no"
34586       ;;
34587   esac
34588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
34589 $as_echo "$want_thres" >&6; }
34590
34591
34592 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
34593   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
34594 fi
34595
34596 if test "$want_thres" = "yes"; then
34597   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
34598 if test "x$ac_cv_header_pthread_h" = x""yes; then :
34599
34600 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
34601
34602       save_CFLAGS="$CFLAGS"
34603       CFLAGS="$CFLAGS -pthread"
34604       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
34605 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
34606 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
34607   $as_echo_n "(cached) " >&6
34608 else
34609   ac_check_lib_save_LIBS=$LIBS
34610 LIBS="-lpthread  $LIBS"
34611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34612 /* end confdefs.h.  */
34613
34614
34615 #ifdef __cplusplus
34616 extern "C"
34617 #endif
34618 char pthread_create ();
34619 int main (void)
34620 {
34621 return pthread_create ();
34622  ;
34623  return 0;
34624 }
34625 _ACEOF
34626 if ac_fn_c_try_link "$LINENO"; then :
34627   ac_cv_lib_pthread_pthread_create=yes
34628 else
34629   ac_cv_lib_pthread_pthread_create=no
34630 fi
34631 rm -f core conftest.err conftest.$ac_objext \
34632     conftest$ac_exeext conftest.$ac_ext
34633 LIBS=$ac_check_lib_save_LIBS
34634 fi
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
34636 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
34637 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
34638    { $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5
34639 $as_echo "$as_me: using POSIX threaded DNS lookup" >&6;}
34640
34641 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
34642
34643           USE_THREADS_POSIX=1
34644           curl_res_msg="threaded"
34645
34646 else
34647    CFLAGS="$save_CFLAGS"
34648 fi
34649
34650
34651 fi
34652
34653
34654 fi
34655
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
34657 $as_echo_n "checking whether to enable verbose strings... " >&6; }
34658 # Check whether --enable-verbose was given.
34659 if test "${enable_verbose+set}" = set; then :
34660   enableval=$enable_verbose;  case "$enableval" in
34661   no)
34662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34663 $as_echo "no" >&6; }
34664
34665 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
34666
34667        curl_verbose_msg="no"
34668        ;;
34669   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34670 $as_echo "yes" >&6; }
34671        ;;
34672   esac
34673 else
34674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34675 $as_echo "yes" >&6; }
34676
34677 fi
34678
34679
34680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
34681 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
34682 # Check whether --enable-sspi was given.
34683 if test "${enable_sspi+set}" = set; then :
34684   enableval=$enable_sspi;  case "$enableval" in
34685   yes)
34686        if test "$ac_cv_native_windows" = "yes"; then
34687          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34688 $as_echo "yes" >&6; }
34689
34690 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
34691
34692          USE_WINDOWS_SSPI=1
34693
34694          curl_sspi_msg="enabled"
34695        else
34696          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34697 $as_echo "no" >&6; }
34698          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
34699 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
34700        fi
34701        ;;
34702   *)
34703        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34704 $as_echo "no" >&6; }
34705        ;;
34706   esac
34707 else
34708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34709 $as_echo "no" >&6; }
34710
34711 fi
34712
34713
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
34715 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
34716 # Check whether --enable-crypto-auth was given.
34717 if test "${enable_crypto_auth+set}" = set; then :
34718   enableval=$enable_crypto_auth;  case "$enableval" in
34719   no)
34720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34721 $as_echo "no" >&6; }
34722
34723 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
34724
34725        ;;
34726   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34727 $as_echo "yes" >&6; }
34728        ;;
34729   esac
34730 else
34731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34732 $as_echo "yes" >&6; }
34733
34734 fi
34735
34736
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
34738 $as_echo_n "checking whether to enable support for cookies... " >&6; }
34739 # Check whether --enable-cookies was given.
34740 if test "${enable_cookies+set}" = set; then :
34741   enableval=$enable_cookies;  case "$enableval" in
34742   no)
34743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34744 $as_echo "no" >&6; }
34745
34746 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
34747
34748        ;;
34749   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34750 $as_echo "yes" >&6; }
34751        ;;
34752   esac
34753 else
34754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34755 $as_echo "yes" >&6; }
34756
34757 fi
34758
34759
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5
34761 $as_echo_n "checking whether to enable hidden symbols in the library... " >&6; }
34762 # Check whether --enable-hidden-symbols was given.
34763 if test "${enable_hidden_symbols+set}" = set; then :
34764   enableval=$enable_hidden_symbols;  case "$enableval" in
34765   no)
34766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34768        ;;
34769   *)
34770        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5
34771 $as_echo_n "checking whether $CC supports it... " >&6; }
34772        if test "$GCC" = yes ; then
34773          if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ||
34774                                  test "$compiler_id" = "CLANG"; then
34775            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34776 $as_echo "yes" >&6; }
34777
34778 $as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h
34779
34780
34781 $as_echo "#define CURL_EXTERN_SYMBOL __attribute__ ((visibility (\"default\")))" >>confdefs.h
34782
34783            CFLAGS="$CFLAGS -fvisibility=hidden"
34784          else
34785             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34786 $as_echo "no" >&6; }
34787           fi
34788
34789        else
34790                   if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
34791            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34792 $as_echo "yes" >&6; }
34793
34794 $as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h
34795
34796
34797 $as_echo "#define CURL_EXTERN_SYMBOL __global" >>confdefs.h
34798
34799            CFLAGS="$CFLAGS -xldscope=hidden"
34800          else
34801            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34802 $as_echo "no" >&6; }
34803          fi
34804        fi
34805        ;;
34806   esac
34807 else
34808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34810
34811 fi
34812
34813
34814
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
34816 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
34817 # Check whether --enable-soname-bump was given.
34818 if test "${enable_soname_bump+set}" = set; then :
34819   enableval=$enable_soname_bump;  case "$enableval" in
34820   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34821 $as_echo "yes" >&6; }
34822          soname_bump=yes
34823          ;;
34824   *)
34825          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34826 $as_echo "no" >&6; }
34827          ;;
34828   esac
34829 else
34830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
34831 $as_echo "$soname_bump" >&6; }
34832
34833 fi
34834
34835
34836
34837 if test x$soname_bump = xyes; then
34838   SONAME_BUMP_TRUE=
34839   SONAME_BUMP_FALSE='#'
34840 else
34841   SONAME_BUMP_TRUE='#'
34842   SONAME_BUMP_FALSE=
34843 fi
34844
34845
34846
34847 if test ! -z "$winsock_LIB"; then
34848
34849
34850   LIBS="$LIBS $winsock_LIB"
34851   TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
34852
34853 fi
34854
34855 LIBCURL_LIBS=$LIBS
34856
34857
34858
34859
34860
34861 LIBS=$ALL_LIBS
34862
34863
34864 if test x$cross_compiling = xyes; then
34865   CROSSCOMPILING_TRUE=
34866   CROSSCOMPILING_FALSE='#'
34867 else
34868   CROSSCOMPILING_TRUE='#'
34869   CROSSCOMPILING_FALSE=
34870 fi
34871
34872
34873 ENABLE_SHARED="$enable_shared"
34874
34875
34876
34877 if test "x$USE_SSLEAY" = "x1"; then
34878   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
34879 elif test -n "$SSL_ENABLED"; then
34880   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
34881 fi
34882 if test "@KRB4_ENABLED@" = "x1"; then
34883   SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
34884 fi
34885 if test "x$IPV6_ENABLED" = "x1"; then
34886   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
34887 fi
34888 if test "x$HAVE_LIBZ" = "x1"; then
34889   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
34890 fi
34891 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
34892   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
34893 fi
34894 if test "x$IDN_ENABLED" = "x1"; then
34895   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
34896 fi
34897 if test "x$USE_WINDOWS_SSPI" = "x1"; then
34898   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
34899 fi
34900 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
34901     -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then
34902   SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
34903 fi
34904
34905
34906
34907 if test "x$CURL_DISABLE_HTTP" != "x1"; then
34908   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
34909   if test "x$SSL_ENABLED" = "x1"; then
34910     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
34911   fi
34912 fi
34913 if test "x$CURL_DISABLE_FTP" != "x1"; then
34914   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
34915   if test "x$SSL_ENABLED" = "x1"; then
34916     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
34917   fi
34918 fi
34919 if test "x$CURL_DISABLE_FILE" != "x1"; then
34920   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
34921 fi
34922 if test "x$CURL_DISABLE_TELNET" != "x1"; then
34923   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
34924 fi
34925 if test "x$CURL_DISABLE_LDAP" != "x1"; then
34926   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
34927   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
34928     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
34929       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
34930       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
34931     fi
34932   fi
34933 fi
34934 if test "x$CURL_DISABLE_DICT" != "x1"; then
34935   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
34936 fi
34937 if test "x$CURL_DISABLE_TFTP" != "x1"; then
34938   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
34939 fi
34940 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
34941   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
34942 fi
34943 if test "x$CURL_DISABLE_POP3" != "x1"; then
34944   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
34945   if test "x$SSL_ENABLED" = "x1"; then
34946     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
34947   fi
34948 fi
34949 if test "x$CURL_DISABLE_IMAP" != "x1"; then
34950   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
34951   if test "x$SSL_ENABLED" = "x1"; then
34952     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
34953   fi
34954 fi
34955 if test "x$CURL_DISABLE_SMTP" != "x1"; then
34956   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
34957   if test "x$SSL_ENABLED" = "x1"; then
34958     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
34959   fi
34960 fi
34961 if test "x$USE_LIBSSH2" = "x1"; then
34962   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
34963   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
34964 fi
34965 if test "x$CURL_DISABLE_RTSP" != "x1"; then
34966   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
34967 fi
34968 if test "x$USE_LIBRTMP" = "x1"; then
34969   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
34970 fi
34971
34972 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
34973
34974
34975
34976
34977 squeeze CFLAGS
34978 squeeze CPPFLAGS
34979 squeeze DEFS
34980 squeeze LDFLAGS
34981 squeeze LIBS
34982
34983 squeeze CURL_LIBS
34984 squeeze LIBCURL_LIBS
34985 squeeze TEST_SERVER_LIBS
34986 squeeze CURL_NETWORK_LIBS
34987
34988 squeeze SUPPORT_FEATURES
34989 squeeze SUPPORT_PROTOCOLS
34990
34991 if test "x$want_curldebug_assumed" = "xyes" &&
34992   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
34993   ac_configure_args="$ac_configure_args --enable-curldebug"
34994 fi
34995
34996 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
34997
34998 cat >confcache <<\_ACEOF
34999 # This file is a shell script that caches the results of configure
35000 # tests run on this system so they can be shared between configure
35001 # scripts and configure runs, see configure's option --config-cache.
35002 # It is not useful on other systems.  If it contains results you don't
35003 # want to keep, you may remove or edit it.
35004 #
35005 # config.status only pays attention to the cache file if you give it
35006 # the --recheck option to rerun configure.
35007 #
35008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35010 # following values.
35011
35012 _ACEOF
35013
35014 # The following way of writing the cache mishandles newlines in values,
35015 # but we know of no workaround that is simple, portable, and efficient.
35016 # So, we kill variables containing newlines.
35017 # Ultrix sh set writes to stderr and can't be redirected directly,
35018 # and sets the high bit in the cache file unless we assign to the vars.
35019 (
35020   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35021     eval ac_val=\$$ac_var
35022     case $ac_val in #(
35023     *${as_nl}*)
35024       case $ac_var in #(
35025       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35027       esac
35028       case $ac_var in #(
35029       _ | IFS | as_nl) ;; #(
35030       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35031       *) { eval $ac_var=; unset $ac_var;} ;;
35032       esac ;;
35033     esac
35034   done
35035
35036   (set) 2>&1 |
35037     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35038     *${as_nl}ac_space=\ *)
35039       # `set' does not quote correctly, so add quotes: double-quote
35040       # substitution turns \\\\ into \\, and sed turns \\ into \.
35041       sed -n \
35042         "s/'/'\\\\''/g;
35043           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35044       ;; #(
35045     *)
35046       # `set' quotes correctly as required by POSIX, so do not add quotes.
35047       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35048       ;;
35049     esac |
35050     sort
35051 ) |
35052   sed '
35053      /^ac_cv_env_/b end
35054      t clear
35055      :clear
35056      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35057      t end
35058      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35059      :end' >>confcache
35060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35061   if test -w "$cache_file"; then
35062     test "x$cache_file" != "x/dev/null" &&
35063       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35064 $as_echo "$as_me: updating cache $cache_file" >&6;}
35065     cat confcache >$cache_file
35066   else
35067     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35069   fi
35070 fi
35071 rm -f confcache
35072
35073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35074 # Let make expand exec_prefix.
35075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35076
35077 DEFS=-DHAVE_CONFIG_H
35078
35079 ac_libobjs=
35080 ac_ltlibobjs=
35081 U=
35082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35083   # 1. Remove the extension, and $U if already installed.
35084   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35085   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35086   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35087   #    will be set to the directory where LIBOBJS objects are built.
35088   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35089   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35090 done
35091 LIBOBJS=$ac_libobjs
35092
35093 LTLIBOBJS=$ac_ltlibobjs
35094
35095
35096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35097   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
35098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35099 fi
35100 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35101   as_fn_error $? "conditional \"AMDEP\" was never defined.
35102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35103 fi
35104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35105   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35107 fi
35108 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
35109   as_fn_error $? "conditional \"MIMPURE\" was never defined.
35110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35111 fi
35112 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
35113   as_fn_error $? "conditional \"STATICLIB\" was never defined.
35114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35115 fi
35116 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
35117   as_fn_error $? "conditional \"STATICLIB\" was never defined.
35118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35119 fi
35120 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
35121   as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
35122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35123 fi
35124 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
35125   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
35126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35127 fi
35128 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
35129   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
35130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35131 fi
35132 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
35133   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
35134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35135 fi
35136 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
35137   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
35138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35139 fi
35140 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
35141   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
35142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35143 fi
35144 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
35145   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
35146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35147 fi
35148 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
35149   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
35150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35151 fi
35152
35153 : ${CONFIG_STATUS=./config.status}
35154 ac_write_fail=0
35155 ac_clean_files_save=$ac_clean_files
35156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35158 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35159 as_write_fail=0
35160 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35161 #! $SHELL
35162 # Generated by $as_me.
35163 # Run this file to recreate the current configuration.
35164 # Compiler output produced by configure, useful for debugging
35165 # configure, is in config.log if it exists.
35166
35167 debug=false
35168 ac_cs_recheck=false
35169 ac_cs_silent=false
35170
35171 SHELL=\${CONFIG_SHELL-$SHELL}
35172 export SHELL
35173 _ASEOF
35174 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35175 ## -------------------- ##
35176 ## M4sh Initialization. ##
35177 ## -------------------- ##
35178
35179 # Be more Bourne compatible
35180 DUALCASE=1; export DUALCASE # for MKS sh
35181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35182   emulate sh
35183   NULLCMD=:
35184   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35185   # is contrary to our usage.  Disable this feature.
35186   alias -g '${1+"$@"}'='"$@"'
35187   setopt NO_GLOB_SUBST
35188 else
35189   case `(set -o) 2>/dev/null` in #(
35190   *posix*) :
35191     set -o posix ;; #(
35192   *) :
35193      ;;
35194 esac
35195 fi
35196
35197
35198 as_nl='
35199 '
35200 export as_nl
35201 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35202 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35203 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35205 # Prefer a ksh shell builtin over an external printf program on Solaris,
35206 # but without wasting forks for bash or zsh.
35207 if test -z "$BASH_VERSION$ZSH_VERSION" \
35208     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35209   as_echo='print -r --'
35210   as_echo_n='print -rn --'
35211 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35212   as_echo='printf %s\n'
35213   as_echo_n='printf %s'
35214 else
35215   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35216     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35217     as_echo_n='/usr/ucb/echo -n'
35218   else
35219     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35220     as_echo_n_body='eval
35221       arg=$1;
35222       case $arg in #(
35223       *"$as_nl"*)
35224         expr "X$arg" : "X\\(.*\\)$as_nl";
35225         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35226       esac;
35227       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35228     '
35229     export as_echo_n_body
35230     as_echo_n='sh -c $as_echo_n_body as_echo'
35231   fi
35232   export as_echo_body
35233   as_echo='sh -c $as_echo_body as_echo'
35234 fi
35235
35236
35237
35238 # IFS
35239 # We need space, tab and new line, in precisely that order.  Quoting is
35240 # there to prevent editors from complaining about space-tab.
35241 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35242 # splitting by setting IFS to empty value.)
35243 IFS=" ""        $as_nl"
35244
35245 # Find who we are.  Look in the path if we contain no directory separator.
35246 case $0 in #((
35247   *[\\/]* ) as_myself=$0 ;;
35248   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35249 for as_dir in $PATH
35250 do
35251   IFS=$as_save_IFS
35252   test -z "$as_dir" && as_dir=.
35253     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35254   done
35255 IFS=$as_save_IFS
35256
35257      ;;
35258 esac
35259 # We did not find ourselves, most probably we were run as `sh COMMAND'
35260 # in which case we are not to be found in the path.
35261 if test "x$as_myself" = x; then
35262   as_myself=$0
35263 fi
35264 if test ! -f "$as_myself"; then
35265   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35266   exit 1
35267 fi
35268
35269 # Unset variables that we do not need and which cause bugs (e.g. in
35270 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35271 # suppresses any "Segmentation fault" message there.  '((' could
35272 # trigger a bug in pdksh 5.2.14.
35273 for as_var in BASH_ENV ENV MAIL MAILPATH
35274 do eval test x\${$as_var+set} = xset \
35275   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35276 done
35277 PS1='$ '
35278 PS2='> '
35279 PS4='+ '
35280
35281 # NLS nuisances.
35282 LC_ALL=C
35283 export LC_ALL
35284 LANGUAGE=C
35285 export LANGUAGE
35286
35287 # CDPATH.
35288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35289
35290
35291 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35292 # ----------------------------------------
35293 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35294 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35295 # script with STATUS, using 1 if that was 0.
35296 as_fn_error ()
35297 {
35298   as_status=$1; test $as_status -eq 0 && as_status=1
35299   if test "$4"; then
35300     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35301     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35302   fi
35303   $as_echo "$as_me: error: $2" >&2
35304   as_fn_exit $as_status
35305 } # as_fn_error
35306
35307
35308 # as_fn_set_status STATUS
35309 # -----------------------
35310 # Set $? to STATUS, without forking.
35311 as_fn_set_status ()
35312 {
35313   return $1
35314 } # as_fn_set_status
35315
35316 # as_fn_exit STATUS
35317 # -----------------
35318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35319 as_fn_exit ()
35320 {
35321   set +e
35322   as_fn_set_status $1
35323   exit $1
35324 } # as_fn_exit
35325
35326 # as_fn_unset VAR
35327 # ---------------
35328 # Portably unset VAR.
35329 as_fn_unset ()
35330 {
35331   { eval $1=; unset $1;}
35332 }
35333 as_unset=as_fn_unset
35334 # as_fn_append VAR VALUE
35335 # ----------------------
35336 # Append the text in VALUE to the end of the definition contained in VAR. Take
35337 # advantage of any shell optimizations that allow amortized linear growth over
35338 # repeated appends, instead of the typical quadratic growth present in naive
35339 # implementations.
35340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35341   eval 'as_fn_append ()
35342   {
35343     eval $1+=\$2
35344   }'
35345 else
35346   as_fn_append ()
35347   {
35348     eval $1=\$$1\$2
35349   }
35350 fi # as_fn_append
35351
35352 # as_fn_arith ARG...
35353 # ------------------
35354 # Perform arithmetic evaluation on the ARGs, and store the result in the
35355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35356 # must be portable across $(()) and expr.
35357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35358   eval 'as_fn_arith ()
35359   {
35360     as_val=$(( $* ))
35361   }'
35362 else
35363   as_fn_arith ()
35364   {
35365     as_val=`expr "$@" || test $? -eq 1`
35366   }
35367 fi # as_fn_arith
35368
35369
35370 if expr a : '\(a\)' >/dev/null 2>&1 &&
35371    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35372   as_expr=expr
35373 else
35374   as_expr=false
35375 fi
35376
35377 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35378   as_basename=basename
35379 else
35380   as_basename=false
35381 fi
35382
35383 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35384   as_dirname=dirname
35385 else
35386   as_dirname=false
35387 fi
35388
35389 as_me=`$as_basename -- "$0" ||
35390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35391          X"$0" : 'X\(//\)$' \| \
35392          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35393 $as_echo X/"$0" |
35394     sed '/^.*\/\([^/][^/]*\)\/*$/{
35395             s//\1/
35396             q
35397           }
35398           /^X\/\(\/\/\)$/{
35399             s//\1/
35400             q
35401           }
35402           /^X\/\(\/\).*/{
35403             s//\1/
35404             q
35405           }
35406           s/.*/./; q'`
35407
35408 # Avoid depending upon Character Ranges.
35409 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35410 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35411 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35412 as_cr_digits='0123456789'
35413 as_cr_alnum=$as_cr_Letters$as_cr_digits
35414
35415 ECHO_C= ECHO_N= ECHO_T=
35416 case `echo -n x` in #(((((
35417 -n*)
35418   case `echo 'xy\c'` in
35419   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35420   xy)  ECHO_C='\c';;
35421   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35422        ECHO_T=' ';;
35423   esac;;
35424 *)
35425   ECHO_N='-n';;
35426 esac
35427
35428 rm -f conf$$ conf$$.exe conf$$.file
35429 if test -d conf$$.dir; then
35430   rm -f conf$$.dir/conf$$.file
35431 else
35432   rm -f conf$$.dir
35433   mkdir conf$$.dir 2>/dev/null
35434 fi
35435 if (echo >conf$$.file) 2>/dev/null; then
35436   if ln -s conf$$.file conf$$ 2>/dev/null; then
35437     as_ln_s='ln -s'
35438     # ... but there are two gotchas:
35439     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35440     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35441     # In both cases, we have to default to `cp -p'.
35442     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35443       as_ln_s='cp -p'
35444   elif ln conf$$.file conf$$ 2>/dev/null; then
35445     as_ln_s=ln
35446   else
35447     as_ln_s='cp -p'
35448   fi
35449 else
35450   as_ln_s='cp -p'
35451 fi
35452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35453 rmdir conf$$.dir 2>/dev/null
35454
35455
35456 # as_fn_mkdir_p
35457 # -------------
35458 # Create "$as_dir" as a directory, including parents if necessary.
35459 as_fn_mkdir_p ()
35460 {
35461
35462   case $as_dir in #(
35463   -*) as_dir=./$as_dir;;
35464   esac
35465   test -d "$as_dir" || eval $as_mkdir_p || {
35466     as_dirs=
35467     while :; do
35468       case $as_dir in #(
35469       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35470       *) as_qdir=$as_dir;;
35471       esac
35472       as_dirs="'$as_qdir' $as_dirs"
35473       as_dir=`$as_dirname -- "$as_dir" ||
35474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35475          X"$as_dir" : 'X\(//\)[^/]' \| \
35476          X"$as_dir" : 'X\(//\)$' \| \
35477          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35478 $as_echo X"$as_dir" |
35479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35480             s//\1/
35481             q
35482           }
35483           /^X\(\/\/\)[^/].*/{
35484             s//\1/
35485             q
35486           }
35487           /^X\(\/\/\)$/{
35488             s//\1/
35489             q
35490           }
35491           /^X\(\/\).*/{
35492             s//\1/
35493             q
35494           }
35495           s/.*/./; q'`
35496       test -d "$as_dir" && break
35497     done
35498     test -z "$as_dirs" || eval "mkdir $as_dirs"
35499   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35500
35501
35502 } # as_fn_mkdir_p
35503 if mkdir -p . 2>/dev/null; then
35504   as_mkdir_p='mkdir -p "$as_dir"'
35505 else
35506   test -d ./-p && rmdir ./-p
35507   as_mkdir_p=false
35508 fi
35509
35510 if test -x / >/dev/null 2>&1; then
35511   as_test_x='test -x'
35512 else
35513   if ls -dL / >/dev/null 2>&1; then
35514     as_ls_L_option=L
35515   else
35516     as_ls_L_option=
35517   fi
35518   as_test_x='
35519     eval sh -c '\''
35520       if test -d "$1"; then
35521         test -d "$1/.";
35522       else
35523         case $1 in #(
35524         -*)set "./$1";;
35525         esac;
35526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35527         ???[sx]*):;;*)false;;esac;fi
35528     '\'' sh
35529   '
35530 fi
35531 as_executable_p=$as_test_x
35532
35533 # Sed expression to map a string onto a valid CPP name.
35534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35535
35536 # Sed expression to map a string onto a valid variable name.
35537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35538
35539
35540 exec 6>&1
35541 ## ----------------------------------- ##
35542 ## Main body of $CONFIG_STATUS script. ##
35543 ## ----------------------------------- ##
35544 _ASEOF
35545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35546
35547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35548 # Save the log message, to keep $0 and so on meaningful, and to
35549 # report actual input values of CONFIG_FILES etc. instead of their
35550 # values after options handling.
35551 ac_log="
35552 This file was extended by curl $as_me -, which was
35553 generated by GNU Autoconf 2.67.  Invocation command line was
35554
35555   CONFIG_FILES    = $CONFIG_FILES
35556   CONFIG_HEADERS  = $CONFIG_HEADERS
35557   CONFIG_LINKS    = $CONFIG_LINKS
35558   CONFIG_COMMANDS = $CONFIG_COMMANDS
35559   $ $0 $@
35560
35561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35562 "
35563
35564 _ACEOF
35565
35566 case $ac_config_files in *"
35567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35568 esac
35569
35570 case $ac_config_headers in *"
35571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35572 esac
35573
35574
35575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35576 # Files that config.status was made for.
35577 config_files="$ac_config_files"
35578 config_headers="$ac_config_headers"
35579 config_commands="$ac_config_commands"
35580
35581 _ACEOF
35582
35583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35584 ac_cs_usage="\
35585 \`$as_me' instantiates files and other configuration actions
35586 from templates according to the current configuration.  Unless the files
35587 and actions are specified as TAGs, all are instantiated by default.
35588
35589 Usage: $0 [OPTION]... [TAG]...
35590
35591   -h, --help       print this help, then exit
35592   -V, --version    print version number and configuration settings, then exit
35593       --config     print configuration, then exit
35594   -q, --quiet, --silent
35595                    do not print progress messages
35596   -d, --debug      don't remove temporary files
35597       --recheck    update $as_me by reconfiguring in the same conditions
35598       --file=FILE[:TEMPLATE]
35599                    instantiate the configuration file FILE
35600       --header=FILE[:TEMPLATE]
35601                    instantiate the configuration header FILE
35602
35603 Configuration files:
35604 $config_files
35605
35606 Configuration headers:
35607 $config_headers
35608
35609 Configuration commands:
35610 $config_commands
35611
35612 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
35613
35614 _ACEOF
35615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35616 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35617 ac_cs_version="\\
35618 curl config.status -
35619 configured by $0, generated by GNU Autoconf 2.67,
35620   with options \\"\$ac_cs_config\\"
35621
35622 Copyright (C) 2010 Free Software Foundation, Inc.
35623 This config.status script is free software; the Free Software Foundation
35624 gives unlimited permission to copy, distribute and modify it."
35625
35626 ac_pwd='$ac_pwd'
35627 srcdir='$srcdir'
35628 INSTALL='$INSTALL'
35629 AWK='$AWK'
35630 test -n "\$AWK" || AWK=awk
35631 _ACEOF
35632
35633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35634 # The default lists apply if the user does not specify any file.
35635 ac_need_defaults=:
35636 while test $# != 0
35637 do
35638   case $1 in
35639   --*=?*)
35640     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35641     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35642     ac_shift=:
35643     ;;
35644   --*=)
35645     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35646     ac_optarg=
35647     ac_shift=:
35648     ;;
35649   *)
35650     ac_option=$1
35651     ac_optarg=$2
35652     ac_shift=shift
35653     ;;
35654   esac
35655
35656   case $ac_option in
35657   # Handling of the options.
35658   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35659     ac_cs_recheck=: ;;
35660   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35661     $as_echo "$ac_cs_version"; exit ;;
35662   --config | --confi | --conf | --con | --co | --c )
35663     $as_echo "$ac_cs_config"; exit ;;
35664   --debug | --debu | --deb | --de | --d | -d )
35665     debug=: ;;
35666   --file | --fil | --fi | --f )
35667     $ac_shift
35668     case $ac_optarg in
35669     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35670     '') as_fn_error $? "missing file argument" ;;
35671     esac
35672     as_fn_append CONFIG_FILES " '$ac_optarg'"
35673     ac_need_defaults=false;;
35674   --header | --heade | --head | --hea )
35675     $ac_shift
35676     case $ac_optarg in
35677     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35678     esac
35679     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35680     ac_need_defaults=false;;
35681   --he | --h)
35682     # Conflict between --help and --header
35683     as_fn_error $? "ambiguous option: \`$1'
35684 Try \`$0 --help' for more information.";;
35685   --help | --hel | -h )
35686     $as_echo "$ac_cs_usage"; exit ;;
35687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35688   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35689     ac_cs_silent=: ;;
35690
35691   # This is an error.
35692   -*) as_fn_error $? "unrecognized option: \`$1'
35693 Try \`$0 --help' for more information." ;;
35694
35695   *) as_fn_append ac_config_targets " $1"
35696      ac_need_defaults=false ;;
35697
35698   esac
35699   shift
35700 done
35701
35702 ac_configure_extra_args=
35703
35704 if $ac_cs_silent; then
35705   exec 6>/dev/null
35706   ac_configure_extra_args="$ac_configure_extra_args --silent"
35707 fi
35708
35709 _ACEOF
35710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35711 if \$ac_cs_recheck; then
35712   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35713   shift
35714   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35715   CONFIG_SHELL='$SHELL'
35716   export CONFIG_SHELL
35717   exec "\$@"
35718 fi
35719
35720 _ACEOF
35721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35722 exec 5>>config.log
35723 {
35724   echo
35725   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35726 ## Running $as_me. ##
35727 _ASBOX
35728   $as_echo "$ac_log"
35729 } >&5
35730
35731 _ACEOF
35732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35733 #
35734 # INIT-COMMANDS
35735 #
35736 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35737
35738
35739 # The HP-UX ksh and POSIX shell print the target directory to stdout
35740 # if CDPATH is set.
35741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35742
35743 sed_quote_subst='$sed_quote_subst'
35744 double_quote_subst='$double_quote_subst'
35745 delay_variable_subst='$delay_variable_subst'
35746 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
35747 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35748 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
35749 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
35750 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
35751 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
35752 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
35753 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
35754 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
35755 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
35756 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
35757 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
35758 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
35759 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
35760 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
35761 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
35762 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
35763 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
35764 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
35765 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
35766 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
35767 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
35768 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
35769 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
35770 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
35771 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
35772 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
35773 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
35774 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
35775 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
35776 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35777 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
35778 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
35779 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
35780 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35781 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
35782 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
35783 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35784 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35785 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35786 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
35787 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35788 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
35789 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
35790 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
35791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
35792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
35793 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
35794 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
35795 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
35796 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
35797 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
35798 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
35799 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
35800 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
35801 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
35802 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
35803 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
35804 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
35805 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
35806 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
35807 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35808 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
35809 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
35810 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35811 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35812 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
35813 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
35814 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35815 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35816 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
35817 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35818 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35819 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35820 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35821 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35822 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35823 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
35824 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35825 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35826 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35827 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
35828 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
35829 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
35830 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
35831 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
35832 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35833 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
35834 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
35835 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
35836 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
35837 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
35838 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35839 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35840 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35841 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35842 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
35843 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
35844 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
35845 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
35846 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
35847 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35848 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35849 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
35850 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35851 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
35852 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35853 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35854 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35855 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35856 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
35857 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
35858 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35859 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35860 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
35861 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
35862 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
35863 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
35864 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
35865 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
35866
35867 LTCC='$LTCC'
35868 LTCFLAGS='$LTCFLAGS'
35869 compiler='$compiler_DEFAULT'
35870
35871 # Quote evaled strings.
35872 for var in SED \
35873 GREP \
35874 EGREP \
35875 FGREP \
35876 LD \
35877 NM \
35878 LN_S \
35879 lt_SP2NL \
35880 lt_NL2SP \
35881 reload_flag \
35882 deplibs_check_method \
35883 file_magic_cmd \
35884 AR \
35885 AR_FLAGS \
35886 STRIP \
35887 RANLIB \
35888 CC \
35889 CFLAGS \
35890 compiler \
35891 lt_cv_sys_global_symbol_pipe \
35892 lt_cv_sys_global_symbol_to_cdecl \
35893 lt_cv_sys_global_symbol_to_c_name_address \
35894 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35895 SHELL \
35896 ECHO \
35897 lt_prog_compiler_no_builtin_flag \
35898 lt_prog_compiler_wl \
35899 lt_prog_compiler_pic \
35900 lt_prog_compiler_static \
35901 lt_cv_prog_compiler_c_o \
35902 need_locks \
35903 DSYMUTIL \
35904 NMEDIT \
35905 LIPO \
35906 OTOOL \
35907 OTOOL64 \
35908 shrext_cmds \
35909 export_dynamic_flag_spec \
35910 whole_archive_flag_spec \
35911 compiler_needs_object \
35912 with_gnu_ld \
35913 allow_undefined_flag \
35914 no_undefined_flag \
35915 hardcode_libdir_flag_spec \
35916 hardcode_libdir_flag_spec_ld \
35917 hardcode_libdir_separator \
35918 fix_srcfile_path \
35919 exclude_expsyms \
35920 include_expsyms \
35921 file_list_spec \
35922 variables_saved_for_relink \
35923 libname_spec \
35924 library_names_spec \
35925 soname_spec \
35926 finish_eval \
35927 old_striplib \
35928 striplib; do
35929     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35930     *[\\\\\\\`\\"\\\$]*)
35931       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35932       ;;
35933     *)
35934       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35935       ;;
35936     esac
35937 done
35938
35939 # Double-quote double-evaled strings.
35940 for var in reload_cmds \
35941 old_postinstall_cmds \
35942 old_postuninstall_cmds \
35943 old_archive_cmds \
35944 extract_expsyms_cmds \
35945 old_archive_from_new_cmds \
35946 old_archive_from_expsyms_cmds \
35947 archive_cmds \
35948 archive_expsym_cmds \
35949 module_cmds \
35950 module_expsym_cmds \
35951 export_symbols_cmds \
35952 prelink_cmds \
35953 postinstall_cmds \
35954 postuninstall_cmds \
35955 finish_cmds \
35956 sys_lib_search_path_spec \
35957 sys_lib_dlsearch_path_spec; do
35958     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35959     *[\\\\\\\`\\"\\\$]*)
35960       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35961       ;;
35962     *)
35963       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35964       ;;
35965     esac
35966 done
35967
35968 # Fix-up fallback echo if it was mangled by the above quoting rules.
35969 case \$lt_ECHO in
35970 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
35971   ;;
35972 esac
35973
35974 ac_aux_dir='$ac_aux_dir'
35975 xsi_shell='$xsi_shell'
35976 lt_shell_append='$lt_shell_append'
35977
35978 # See if we are running on zsh, and set the options which allow our
35979 # commands through without removal of \ escapes INIT.
35980 if test -n "\${ZSH_VERSION+set}" ; then
35981    setopt NO_GLOB_SUBST
35982 fi
35983
35984
35985     PACKAGE='$PACKAGE'
35986     VERSION='$VERSION'
35987     TIMESTAMP='$TIMESTAMP'
35988     RM='$RM'
35989     ofile='$ofile'
35990
35991
35992
35993
35994 _ACEOF
35995
35996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35997
35998 # Handling of arguments.
35999 for ac_config_target in $ac_config_targets
36000 do
36001   case $ac_config_target in
36002     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
36003     "src/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/curl_config.h" ;;
36004     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
36005     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36006     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36007     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36008     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
36009     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
36010     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
36011     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36012     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
36013     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36014     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36015     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
36016     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
36017     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
36018     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
36019     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
36020     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
36021     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
36022     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
36023     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
36024     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
36025     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
36026     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
36027     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
36028     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
36029     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
36030     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
36031     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
36032     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
36033     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
36034     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
36035
36036   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
36037   esac
36038 done
36039
36040
36041 # If the user did not use the arguments to specify the items to instantiate,
36042 # then the envvar interface is used.  Set only those that are not.
36043 # We use the long form for the default assignment because of an extremely
36044 # bizarre bug on SunOS 4.1.3.
36045 if $ac_need_defaults; then
36046   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36047   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36048   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36049 fi
36050
36051 # Have a temporary directory for convenience.  Make it in the build tree
36052 # simply because there is no reason against having it here, and in addition,
36053 # creating and moving files from /tmp can sometimes cause problems.
36054 # Hook for its removal unless debugging.
36055 # Note that there is a small window in which the directory will not be cleaned:
36056 # after its creation but before its name has been assigned to `$tmp'.
36057 $debug ||
36058 {
36059   tmp=
36060   trap 'exit_status=$?
36061   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36062 ' 0
36063   trap 'as_fn_exit 1' 1 2 13 15
36064 }
36065 # Create a (secure) tmp directory for tmp files.
36066
36067 {
36068   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36069   test -n "$tmp" && test -d "$tmp"
36070 }  ||
36071 {
36072   tmp=./conf$$-$RANDOM
36073   (umask 077 && mkdir "$tmp")
36074 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36075
36076 # Set up the scripts for CONFIG_FILES section.
36077 # No need to generate them if there are no CONFIG_FILES.
36078 # This happens for instance with `./config.status config.h'.
36079 if test -n "$CONFIG_FILES"; then
36080
36081
36082 ac_cr=`echo X | tr X '\015'`
36083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36084 # But we know of no other shell where ac_cr would be empty at this
36085 # point, so we can use a bashism as a fallback.
36086 if test "x$ac_cr" = x; then
36087   eval ac_cr=\$\'\\r\'
36088 fi
36089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36091   ac_cs_awk_cr='\\r'
36092 else
36093   ac_cs_awk_cr=$ac_cr
36094 fi
36095
36096 echo 'BEGIN {' >"$tmp/subs1.awk" &&
36097 _ACEOF
36098
36099
36100 {
36101   echo "cat >conf$$subs.awk <<_ACEOF" &&
36102   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36103   echo "_ACEOF"
36104 } >conf$$subs.sh ||
36105   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36107 ac_delim='%!_!# '
36108 for ac_last_try in false false false false false :; do
36109   . ./conf$$subs.sh ||
36110     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36111
36112   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36113   if test $ac_delim_n = $ac_delim_num; then
36114     break
36115   elif $ac_last_try; then
36116     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36117   else
36118     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36119   fi
36120 done
36121 rm -f conf$$subs.sh
36122
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
36125 _ACEOF
36126 sed -n '
36127 h
36128 s/^/S["/; s/!.*/"]=/
36129 p
36130 g
36131 s/^[^!]*!//
36132 :repl
36133 t repl
36134 s/'"$ac_delim"'$//
36135 t delim
36136 :nl
36137 h
36138 s/\(.\{148\}\)..*/\1/
36139 t more1
36140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36141 p
36142 n
36143 b repl
36144 :more1
36145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36146 p
36147 g
36148 s/.\{148\}//
36149 t nl
36150 :delim
36151 h
36152 s/\(.\{148\}\)..*/\1/
36153 t more2
36154 s/["\\]/\\&/g; s/^/"/; s/$/"/
36155 p
36156 b
36157 :more2
36158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36159 p
36160 g
36161 s/.\{148\}//
36162 t delim
36163 ' <conf$$subs.awk | sed '
36164 /^[^""]/{
36165   N
36166   s/\n//
36167 }
36168 ' >>$CONFIG_STATUS || ac_write_fail=1
36169 rm -f conf$$subs.awk
36170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36171 _ACAWK
36172 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
36173   for (key in S) S_is_set[key] = 1
36174   FS = "\a"
36175
36176 }
36177 {
36178   line = $ 0
36179   nfields = split(line, field, "@")
36180   substed = 0
36181   len = length(field[1])
36182   for (i = 2; i < nfields; i++) {
36183     key = field[i]
36184     keylen = length(key)
36185     if (S_is_set[key]) {
36186       value = S[key]
36187       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36188       len += length(value) + length(field[++i])
36189       substed = 1
36190     } else
36191       len += 1 + keylen
36192   }
36193
36194   print line
36195 }
36196
36197 _ACAWK
36198 _ACEOF
36199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36201   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36202 else
36203   cat
36204 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36205   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36206 _ACEOF
36207
36208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36210 # trailing colons and then remove the whole line if VPATH becomes empty
36211 # (actually we leave an empty line to preserve line numbers).
36212 if test "x$srcdir" = x.; then
36213   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
36214 h
36215 s///
36216 s/^/:/
36217 s/[      ]*$/:/
36218 s/:\$(srcdir):/:/g
36219 s/:\${srcdir}:/:/g
36220 s/:@srcdir@:/:/g
36221 s/^:*//
36222 s/:*$//
36223 x
36224 s/\(=[   ]*\).*/\1/
36225 G
36226 s/\n//
36227 s/^[^=]*=[       ]*$//
36228 }'
36229 fi
36230
36231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36232 fi # test -n "$CONFIG_FILES"
36233
36234 # Set up the scripts for CONFIG_HEADERS section.
36235 # No need to generate them if there are no CONFIG_HEADERS.
36236 # This happens for instance with `./config.status Makefile'.
36237 if test -n "$CONFIG_HEADERS"; then
36238 cat >"$tmp/defines.awk" <<\_ACAWK ||
36239 BEGIN {
36240 _ACEOF
36241
36242 # Transform confdefs.h into an awk script `defines.awk', embedded as
36243 # here-document in config.status, that substitutes the proper values into
36244 # config.h.in to produce config.h.
36245
36246 # Create a delimiter string that does not exist in confdefs.h, to ease
36247 # handling of long lines.
36248 ac_delim='%!_!# '
36249 for ac_last_try in false false :; do
36250   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36251   if test -z "$ac_t"; then
36252     break
36253   elif $ac_last_try; then
36254     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36255   else
36256     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36257   fi
36258 done
36259
36260 # For the awk script, D is an array of macro values keyed by name,
36261 # likewise P contains macro parameters if any.  Preserve backslash
36262 # newline sequences.
36263
36264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36265 sed -n '
36266 s/.\{148\}/&'"$ac_delim"'/g
36267 t rset
36268 :rset
36269 s/^[     ]*#[    ]*define[       ][      ]*/ /
36270 t def
36271 d
36272 :def
36273 s/\\$//
36274 t bsnl
36275 s/["\\]/\\&/g
36276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36277 D["\1"]=" \3"/p
36278 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36279 d
36280 :bsnl
36281 s/["\\]/\\&/g
36282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36283 D["\1"]=" \3\\\\\\n"\\/p
36284 t cont
36285 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36286 t cont
36287 d
36288 :cont
36289 n
36290 s/.\{148\}/&'"$ac_delim"'/g
36291 t clear
36292 :clear
36293 s/\\$//
36294 t bsnlc
36295 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36296 d
36297 :bsnlc
36298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36299 b cont
36300 ' <confdefs.h | sed '
36301 s/'"$ac_delim"'/"\\\
36302 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36303
36304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36305   for (key in D) D_is_set[key] = 1
36306   FS = "\a"
36307 }
36308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36309   line = \$ 0
36310   split(line, arg, " ")
36311   if (arg[1] == "#") {
36312     defundef = arg[2]
36313     mac1 = arg[3]
36314   } else {
36315     defundef = substr(arg[1], 2)
36316     mac1 = arg[2]
36317   }
36318   split(mac1, mac2, "(") #)
36319   macro = mac2[1]
36320   prefix = substr(line, 1, index(line, defundef) - 1)
36321   if (D_is_set[macro]) {
36322     # Preserve the white space surrounding the "#".
36323     print prefix "define", macro P[macro] D[macro]
36324     next
36325   } else {
36326     # Replace #undef with comments.  This is necessary, for example,
36327     # in the case of _POSIX_SOURCE, which is predefined and required
36328     # on some systems where configure will not decide to define it.
36329     if (defundef == "undef") {
36330       print "/*", prefix defundef, macro, "*/"
36331       next
36332     }
36333   }
36334 }
36335 { print }
36336 _ACAWK
36337 _ACEOF
36338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36339   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36340 fi # test -n "$CONFIG_HEADERS"
36341
36342
36343 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36344 shift
36345 for ac_tag
36346 do
36347   case $ac_tag in
36348   :[FHLC]) ac_mode=$ac_tag; continue;;
36349   esac
36350   case $ac_mode$ac_tag in
36351   :[FHL]*:*);;
36352   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
36353   :[FH]-) ac_tag=-:-;;
36354   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36355   esac
36356   ac_save_IFS=$IFS
36357   IFS=:
36358   set x $ac_tag
36359   IFS=$ac_save_IFS
36360   shift
36361   ac_file=$1
36362   shift
36363
36364   case $ac_mode in
36365   :L) ac_source=$1;;
36366   :[FH])
36367     ac_file_inputs=
36368     for ac_f
36369     do
36370       case $ac_f in
36371       -) ac_f="$tmp/stdin";;
36372       *) # Look for the file first in the build tree, then in the source tree
36373          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36374          # because $ac_f cannot contain `:'.
36375          test -f "$ac_f" ||
36376            case $ac_f in
36377            [\\/$]*) false;;
36378            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36379            esac ||
36380            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
36381       esac
36382       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36383       as_fn_append ac_file_inputs " '$ac_f'"
36384     done
36385
36386     # Let's still pretend it is `configure' which instantiates (i.e., don't
36387     # use $as_me), people would be surprised to read:
36388     #    /* config.h.  Generated by config.status.  */
36389     configure_input='Generated from '`
36390           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36391         `' by configure.'
36392     if test x"$ac_file" != x-; then
36393       configure_input="$ac_file.  $configure_input"
36394       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36395 $as_echo "$as_me: creating $ac_file" >&6;}
36396     fi
36397     # Neutralize special characters interpreted by sed in replacement strings.
36398     case $configure_input in #(
36399     *\&* | *\|* | *\\* )
36400        ac_sed_conf_input=`$as_echo "$configure_input" |
36401        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36402     *) ac_sed_conf_input=$configure_input;;
36403     esac
36404
36405     case $ac_tag in
36406     *:-:* | *:-) cat >"$tmp/stdin" \
36407       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
36408     esac
36409     ;;
36410   esac
36411
36412   ac_dir=`$as_dirname -- "$ac_file" ||
36413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36414          X"$ac_file" : 'X\(//\)[^/]' \| \
36415          X"$ac_file" : 'X\(//\)$' \| \
36416          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36417 $as_echo X"$ac_file" |
36418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36419             s//\1/
36420             q
36421           }
36422           /^X\(\/\/\)[^/].*/{
36423             s//\1/
36424             q
36425           }
36426           /^X\(\/\/\)$/{
36427             s//\1/
36428             q
36429           }
36430           /^X\(\/\).*/{
36431             s//\1/
36432             q
36433           }
36434           s/.*/./; q'`
36435   as_dir="$ac_dir"; as_fn_mkdir_p
36436   ac_builddir=.
36437
36438 case "$ac_dir" in
36439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36440 *)
36441   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36442   # A ".." for each directory in $ac_dir_suffix.
36443   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36444   case $ac_top_builddir_sub in
36445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36447   esac ;;
36448 esac
36449 ac_abs_top_builddir=$ac_pwd
36450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36451 # for backward compatibility:
36452 ac_top_builddir=$ac_top_build_prefix
36453
36454 case $srcdir in
36455   .)  # We are building in place.
36456     ac_srcdir=.
36457     ac_top_srcdir=$ac_top_builddir_sub
36458     ac_abs_top_srcdir=$ac_pwd ;;
36459   [\\/]* | ?:[\\/]* )  # Absolute name.
36460     ac_srcdir=$srcdir$ac_dir_suffix;
36461     ac_top_srcdir=$srcdir
36462     ac_abs_top_srcdir=$srcdir ;;
36463   *) # Relative name.
36464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36465     ac_top_srcdir=$ac_top_build_prefix$srcdir
36466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36467 esac
36468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36469
36470
36471   case $ac_mode in
36472   :F)
36473   #
36474   # CONFIG_FILE
36475   #
36476
36477   case $INSTALL in
36478   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36479   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36480   esac
36481 _ACEOF
36482
36483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36484 # If the template does not know about datarootdir, expand it.
36485 # FIXME: This hack should be removed a few years after 2.60.
36486 ac_datarootdir_hack=; ac_datarootdir_seen=
36487 ac_sed_dataroot='
36488 /datarootdir/ {
36489   p
36490   q
36491 }
36492 /@datadir@/p
36493 /@docdir@/p
36494 /@infodir@/p
36495 /@localedir@/p
36496 /@mandir@/p'
36497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36498 *datarootdir*) ac_datarootdir_seen=yes;;
36499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36500   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36502 _ACEOF
36503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36504   ac_datarootdir_hack='
36505   s&@datadir@&$datadir&g
36506   s&@docdir@&$docdir&g
36507   s&@infodir@&$infodir&g
36508   s&@localedir@&$localedir&g
36509   s&@mandir@&$mandir&g
36510   s&\\\${datarootdir}&$datarootdir&g' ;;
36511 esac
36512 _ACEOF
36513
36514 # Neutralize VPATH when `$srcdir' = `.'.
36515 # Shell code in configure.ac might set extrasub.
36516 # FIXME: do we really want to maintain this feature?
36517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36518 ac_sed_extra="$ac_vpsub
36519 $extrasub
36520 _ACEOF
36521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36522 :t
36523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36524 s|@configure_input@|$ac_sed_conf_input|;t t
36525 s&@top_builddir@&$ac_top_builddir_sub&;t t
36526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36527 s&@srcdir@&$ac_srcdir&;t t
36528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36529 s&@top_srcdir@&$ac_top_srcdir&;t t
36530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36531 s&@builddir@&$ac_builddir&;t t
36532 s&@abs_builddir@&$ac_abs_builddir&;t t
36533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36534 s&@INSTALL@&$ac_INSTALL&;t t
36535 $ac_datarootdir_hack
36536 "
36537 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36538   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36539
36540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36541   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36542   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36544 which seems to be undefined.  Please make sure it is defined" >&5
36545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36546 which seems to be undefined.  Please make sure it is defined" >&2;}
36547
36548   rm -f "$tmp/stdin"
36549   case $ac_file in
36550   -) cat "$tmp/out" && rm -f "$tmp/out";;
36551   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
36552   esac \
36553   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36554  ;;
36555   :H)
36556   #
36557   # CONFIG_HEADER
36558   #
36559   if test x"$ac_file" != x-; then
36560     {
36561       $as_echo "/* $configure_input  */" \
36562       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
36563     } >"$tmp/config.h" \
36564       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36565     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36566       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36568     else
36569       rm -f "$ac_file"
36570       mv "$tmp/config.h" "$ac_file" \
36571         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36572     fi
36573   else
36574     $as_echo "/* $configure_input  */" \
36575       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36576       || as_fn_error $? "could not create -" "$LINENO" 5
36577   fi
36578 # Compute "$ac_file"'s index in $config_headers.
36579 _am_stamp_count=1
36580 for _am_header in $config_headers :; do
36581   case $_am_header in
36582     "$ac_file" | "$ac_file":* )
36583       break ;;
36584     * )
36585       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36586   esac
36587 done
36588 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
36589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36590          X"$ac_file" : 'X\(//\)[^/]' \| \
36591          X"$ac_file" : 'X\(//\)$' \| \
36592          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36593 $as_echo X"$ac_file" |
36594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36595             s//\1/
36596             q
36597           }
36598           /^X\(\/\/\)[^/].*/{
36599             s//\1/
36600             q
36601           }
36602           /^X\(\/\/\)$/{
36603             s//\1/
36604             q
36605           }
36606           /^X\(\/\).*/{
36607             s//\1/
36608             q
36609           }
36610           s/.*/./; q'`/stamp-h$_am_stamp_count
36611  ;;
36612
36613   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36614 $as_echo "$as_me: executing $ac_file commands" >&6;}
36615  ;;
36616   esac
36617
36618
36619   case $ac_file$ac_mode in
36620     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
36621   # Strip MF so we end up with the name of the file.
36622   mf=`echo "$mf" | sed -e 's/:.*$//'`
36623   # Check whether this is an Automake generated Makefile or not.
36624   # We used to match only the files named `Makefile.in', but
36625   # some people rename them; so instead we look at the file content.
36626   # Grep'ing the first line is not enough: some people post-process
36627   # each Makefile.in and add a new line on top of each file to say so.
36628   # So let's grep whole file.
36629   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
36630     dirpart=`$as_dirname -- "$mf" ||
36631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36632          X"$mf" : 'X\(//\)[^/]' \| \
36633          X"$mf" : 'X\(//\)$' \| \
36634          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36635 $as_echo X"$mf" |
36636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36637             s//\1/
36638             q
36639           }
36640           /^X\(\/\/\)[^/].*/{
36641             s//\1/
36642             q
36643           }
36644           /^X\(\/\/\)$/{
36645             s//\1/
36646             q
36647           }
36648           /^X\(\/\).*/{
36649             s//\1/
36650             q
36651           }
36652           s/.*/./; q'`
36653   else
36654     continue
36655   fi
36656   # Extract the definition of DEPDIR, am__include, and am__quote
36657   # from the Makefile without running `make'.
36658   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36659   test -z "$DEPDIR" && continue
36660   am__include=`sed -n 's/^am__include = //p' < "$mf"`
36661   test -z "am__include" && continue
36662   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36663   # When using ansi2knr, U may be empty or an underscore; expand it
36664   U=`sed -n 's/^U = //p' < "$mf"`
36665   # Find all dependency output files, they are included files with
36666   # $(DEPDIR) in their names.  We invoke sed twice because it is the
36667   # simplest approach to changing $(DEPDIR) to its actual value in the
36668   # expansion.
36669   for file in `sed -n "
36670     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36671        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36672     # Make sure the directory exists.
36673     test -f "$dirpart/$file" && continue
36674     fdir=`$as_dirname -- "$file" ||
36675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36676          X"$file" : 'X\(//\)[^/]' \| \
36677          X"$file" : 'X\(//\)$' \| \
36678          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36679 $as_echo X"$file" |
36680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36681             s//\1/
36682             q
36683           }
36684           /^X\(\/\/\)[^/].*/{
36685             s//\1/
36686             q
36687           }
36688           /^X\(\/\/\)$/{
36689             s//\1/
36690             q
36691           }
36692           /^X\(\/\).*/{
36693             s//\1/
36694             q
36695           }
36696           s/.*/./; q'`
36697     as_dir=$dirpart/$fdir; as_fn_mkdir_p
36698     # echo "creating $dirpart/$file"
36699     echo '# dummy' > "$dirpart/$file"
36700   done
36701 done
36702  ;;
36703     "libtool":C)
36704
36705     # See if we are running on zsh, and set the options which allow our
36706     # commands through without removal of \ escapes.
36707     if test -n "${ZSH_VERSION+set}" ; then
36708       setopt NO_GLOB_SUBST
36709     fi
36710
36711     cfgfile="${ofile}T"
36712     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36713     $RM "$cfgfile"
36714
36715     cat <<_LT_EOF >> "$cfgfile"
36716 #! $SHELL
36717
36718 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36719 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36721 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36722 #
36723 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36724 #                 2006, 2007, 2008 Free Software Foundation, Inc.
36725 #   Written by Gordon Matzigkeit, 1996
36726 #
36727 #   This file is part of GNU Libtool.
36728 #
36729 # GNU Libtool is free software; you can redistribute it and/or
36730 # modify it under the terms of the GNU General Public License as
36731 # published by the Free Software Foundation; either version 2 of
36732 # the License, or (at your option) any later version.
36733 #
36734 # As a special exception to the GNU General Public License,
36735 # if you distribute this file as part of a program or library that
36736 # is built using GNU Libtool, you may include this file under the
36737 # same distribution terms that you use for the rest of that program.
36738 #
36739 # GNU Libtool is distributed in the hope that it will be useful,
36740 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36741 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36742 # GNU General Public License for more details.
36743 #
36744 # You should have received a copy of the GNU General Public License
36745 # along with GNU Libtool; see the file COPYING.  If not, a copy
36746 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36747 # obtained by writing to the Free Software Foundation, Inc.,
36748 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36749
36750
36751 # The names of the tagged configurations supported by this script.
36752 available_tags=""
36753
36754 # ### BEGIN LIBTOOL CONFIG
36755
36756 # Assembler program.
36757 AS=$AS
36758
36759 # DLL creation program.
36760 DLLTOOL=$DLLTOOL
36761
36762 # Object dumper program.
36763 OBJDUMP=$OBJDUMP
36764
36765 # Which release of libtool.m4 was used?
36766 macro_version=$macro_version
36767 macro_revision=$macro_revision
36768
36769 # Whether or not to build shared libraries.
36770 build_libtool_libs=$enable_shared
36771
36772 # Whether or not to build static libraries.
36773 build_old_libs=$enable_static
36774
36775 # What type of objects to build.
36776 pic_mode=$pic_mode
36777
36778 # Whether or not to optimize for fast installation.
36779 fast_install=$enable_fast_install
36780
36781 # The host system.
36782 host_alias=$host_alias
36783 host=$host
36784 host_os=$host_os
36785
36786 # The build system.
36787 build_alias=$build_alias
36788 build=$build
36789 build_os=$build_os
36790
36791 # A sed program that does not truncate output.
36792 SED=$lt_SED
36793
36794 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36795 Xsed="\$SED -e 1s/^X//"
36796
36797 # A grep program that handles long lines.
36798 GREP=$lt_GREP
36799
36800 # An ERE matcher.
36801 EGREP=$lt_EGREP
36802
36803 # A literal string matcher.
36804 FGREP=$lt_FGREP
36805
36806 # A BSD- or MS-compatible name lister.
36807 NM=$lt_NM
36808
36809 # Whether we need soft or hard links.
36810 LN_S=$lt_LN_S
36811
36812 # What is the maximum length of a command?
36813 max_cmd_len=$max_cmd_len
36814
36815 # Object file suffix (normally "o").
36816 objext=$ac_objext
36817
36818 # Executable file suffix (normally "").
36819 exeext=$exeext
36820
36821 # whether the shell understands "unset".
36822 lt_unset=$lt_unset
36823
36824 # turn spaces into newlines.
36825 SP2NL=$lt_lt_SP2NL
36826
36827 # turn newlines into spaces.
36828 NL2SP=$lt_lt_NL2SP
36829
36830 # How to create reloadable object files.
36831 reload_flag=$lt_reload_flag
36832 reload_cmds=$lt_reload_cmds
36833
36834 # Method to check whether dependent libraries are shared objects.
36835 deplibs_check_method=$lt_deplibs_check_method
36836
36837 # Command to use when deplibs_check_method == "file_magic".
36838 file_magic_cmd=$lt_file_magic_cmd
36839
36840 # The archiver.
36841 AR=$lt_AR
36842 AR_FLAGS=$lt_AR_FLAGS
36843
36844 # A symbol stripping program.
36845 STRIP=$lt_STRIP
36846
36847 # Commands used to install an old-style archive.
36848 RANLIB=$lt_RANLIB
36849 old_postinstall_cmds=$lt_old_postinstall_cmds
36850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36851
36852 # A C compiler.
36853 LTCC=$lt_CC
36854
36855 # LTCC compiler flags.
36856 LTCFLAGS=$lt_CFLAGS
36857
36858 # Take the output of nm and produce a listing of raw symbols and C names.
36859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36860
36861 # Transform the output of nm in a proper C declaration.
36862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36863
36864 # Transform the output of nm in a C name address pair.
36865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36866
36867 # Transform the output of nm in a C name address pair when lib prefix is needed.
36868 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36869
36870 # The name of the directory that contains temporary libtool files.
36871 objdir=$objdir
36872
36873 # Shell to use when invoking shell scripts.
36874 SHELL=$lt_SHELL
36875
36876 # An echo program that does not interpret backslashes.
36877 ECHO=$lt_ECHO
36878
36879 # Used to examine libraries when file_magic_cmd begins with "file".
36880 MAGIC_CMD=$MAGIC_CMD
36881
36882 # Must we lock files when doing compilation?
36883 need_locks=$lt_need_locks
36884
36885 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36886 DSYMUTIL=$lt_DSYMUTIL
36887
36888 # Tool to change global to local symbols on Mac OS X.
36889 NMEDIT=$lt_NMEDIT
36890
36891 # Tool to manipulate fat objects and archives on Mac OS X.
36892 LIPO=$lt_LIPO
36893
36894 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36895 OTOOL=$lt_OTOOL
36896
36897 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36898 OTOOL64=$lt_OTOOL64
36899
36900 # Old archive suffix (normally "a").
36901 libext=$libext
36902
36903 # Shared library suffix (normally ".so").
36904 shrext_cmds=$lt_shrext_cmds
36905
36906 # The commands to extract the exported symbol list from a shared archive.
36907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36908
36909 # Variables whose values should be saved in libtool wrapper scripts and
36910 # restored at link time.
36911 variables_saved_for_relink=$lt_variables_saved_for_relink
36912
36913 # Do we need the "lib" prefix for modules?
36914 need_lib_prefix=$need_lib_prefix
36915
36916 # Do we need a version for libraries?
36917 need_version=$need_version
36918
36919 # Library versioning type.
36920 version_type=$version_type
36921
36922 # Shared library runtime path variable.
36923 runpath_var=$runpath_var
36924
36925 # Shared library path variable.
36926 shlibpath_var=$shlibpath_var
36927
36928 # Is shlibpath searched before the hard-coded library search path?
36929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36930
36931 # Format of library name prefix.
36932 libname_spec=$lt_libname_spec
36933
36934 # List of archive names.  First name is the real one, the rest are links.
36935 # The last name is the one that the linker finds with -lNAME
36936 library_names_spec=$lt_library_names_spec
36937
36938 # The coded name of the library, if different from the real name.
36939 soname_spec=$lt_soname_spec
36940
36941 # Command to use after installation of a shared archive.
36942 postinstall_cmds=$lt_postinstall_cmds
36943
36944 # Command to use after uninstallation of a shared archive.
36945 postuninstall_cmds=$lt_postuninstall_cmds
36946
36947 # Commands used to finish a libtool library installation in a directory.
36948 finish_cmds=$lt_finish_cmds
36949
36950 # As "finish_cmds", except a single script fragment to be evaled but
36951 # not shown.
36952 finish_eval=$lt_finish_eval
36953
36954 # Whether we should hardcode library paths into libraries.
36955 hardcode_into_libs=$hardcode_into_libs
36956
36957 # Compile-time system search path for libraries.
36958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36959
36960 # Run-time system search path for libraries.
36961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36962
36963 # Whether dlopen is supported.
36964 dlopen_support=$enable_dlopen
36965
36966 # Whether dlopen of programs is supported.
36967 dlopen_self=$enable_dlopen_self
36968
36969 # Whether dlopen of statically linked programs is supported.
36970 dlopen_self_static=$enable_dlopen_self_static
36971
36972 # Commands to strip libraries.
36973 old_striplib=$lt_old_striplib
36974 striplib=$lt_striplib
36975
36976
36977 # The linker used to build libraries.
36978 LD=$lt_LD
36979
36980 # Commands used to build an old-style archive.
36981 old_archive_cmds=$lt_old_archive_cmds
36982
36983 # A language specific compiler.
36984 CC=$lt_compiler
36985
36986 # Is the compiler the GNU compiler?
36987 with_gcc=$GCC
36988
36989 # Compiler flag to turn off builtin functions.
36990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36991
36992 # How to pass a linker flag through the compiler.
36993 wl=$lt_lt_prog_compiler_wl
36994
36995 # Additional compiler flags for building library objects.
36996 pic_flag=$lt_lt_prog_compiler_pic
36997
36998 # Compiler flag to prevent dynamic linking.
36999 link_static_flag=$lt_lt_prog_compiler_static
37000
37001 # Does compiler simultaneously support -c and -o options?
37002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37003
37004 # Whether or not to add -lc for building shared libraries.
37005 build_libtool_need_lc=$archive_cmds_need_lc
37006
37007 # Whether or not to disallow shared libs when runtime libs are static.
37008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37009
37010 # Compiler flag to allow reflexive dlopens.
37011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37012
37013 # Compiler flag to generate shared objects directly from archives.
37014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37015
37016 # Whether the compiler copes with passing no objects directly.
37017 compiler_needs_object=$lt_compiler_needs_object
37018
37019 # Create an old-style archive from a shared archive.
37020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37021
37022 # Create a temporary old-style archive to link instead of a shared archive.
37023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37024
37025 # Commands used to build a shared archive.
37026 archive_cmds=$lt_archive_cmds
37027 archive_expsym_cmds=$lt_archive_expsym_cmds
37028
37029 # Commands used to build a loadable module if different from building
37030 # a shared archive.
37031 module_cmds=$lt_module_cmds
37032 module_expsym_cmds=$lt_module_expsym_cmds
37033
37034 # Whether we are building with GNU ld or not.
37035 with_gnu_ld=$lt_with_gnu_ld
37036
37037 # Flag that allows shared libraries with undefined symbols to be built.
37038 allow_undefined_flag=$lt_allow_undefined_flag
37039
37040 # Flag that enforces no undefined symbols.
37041 no_undefined_flag=$lt_no_undefined_flag
37042
37043 # Flag to hardcode \$libdir into a binary during linking.
37044 # This must work even if \$libdir does not exist
37045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37046
37047 # If ld is used when linking, flag to hardcode \$libdir into a binary
37048 # during linking.  This must work even if \$libdir does not exist.
37049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37050
37051 # Whether we need a single "-rpath" flag with a separated argument.
37052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37053
37054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37055 # DIR into the resulting binary.
37056 hardcode_direct=$hardcode_direct
37057
37058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37059 # DIR into the resulting binary and the resulting library dependency is
37060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37061 # library is relocated.
37062 hardcode_direct_absolute=$hardcode_direct_absolute
37063
37064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37065 # into the resulting binary.
37066 hardcode_minus_L=$hardcode_minus_L
37067
37068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37069 # into the resulting binary.
37070 hardcode_shlibpath_var=$hardcode_shlibpath_var
37071
37072 # Set to "yes" if building a shared library automatically hardcodes DIR
37073 # into the library and all subsequent libraries and executables linked
37074 # against it.
37075 hardcode_automatic=$hardcode_automatic
37076
37077 # Set to yes if linker adds runtime paths of dependent libraries
37078 # to runtime path list.
37079 inherit_rpath=$inherit_rpath
37080
37081 # Whether libtool must link a program against all its dependency libraries.
37082 link_all_deplibs=$link_all_deplibs
37083
37084 # Fix the shell variable \$srcfile for the compiler.
37085 fix_srcfile_path=$lt_fix_srcfile_path
37086
37087 # Set to "yes" if exported symbols are required.
37088 always_export_symbols=$always_export_symbols
37089
37090 # The commands to list exported symbols.
37091 export_symbols_cmds=$lt_export_symbols_cmds
37092
37093 # Symbols that should not be listed in the preloaded symbols.
37094 exclude_expsyms=$lt_exclude_expsyms
37095
37096 # Symbols that must always be exported.
37097 include_expsyms=$lt_include_expsyms
37098
37099 # Commands necessary for linking programs (against libraries) with templates.
37100 prelink_cmds=$lt_prelink_cmds
37101
37102 # Specify filename containing input files.
37103 file_list_spec=$lt_file_list_spec
37104
37105 # How to hardcode a shared library path into an executable.
37106 hardcode_action=$hardcode_action
37107
37108 # ### END LIBTOOL CONFIG
37109
37110 _LT_EOF
37111
37112   case $host_os in
37113   aix3*)
37114     cat <<\_LT_EOF >> "$cfgfile"
37115 # AIX sometimes has problems with the GCC collect2 program.  For some
37116 # reason, if we set the COLLECT_NAMES environment variable, the problems
37117 # vanish in a puff of smoke.
37118 if test "X${COLLECT_NAMES+set}" != Xset; then
37119   COLLECT_NAMES=
37120   export COLLECT_NAMES
37121 fi
37122 _LT_EOF
37123     ;;
37124   esac
37125
37126
37127 ltmain="$ac_aux_dir/ltmain.sh"
37128
37129
37130   # We use sed instead of cat because bash on DJGPP gets confused if
37131   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37132   # text mode, it properly converts lines to CR/LF.  This bash problem
37133   # is reportedly fixed, but why not run on old versions too?
37134   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
37135     || (rm -f "$cfgfile"; exit 1)
37136
37137   case $xsi_shell in
37138   yes)
37139     cat << \_LT_EOF >> "$cfgfile"
37140
37141 # func_dirname file append nondir_replacement
37142 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37143 # otherwise set result to NONDIR_REPLACEMENT.
37144 func_dirname ()
37145 {
37146   case ${1} in
37147     */*) func_dirname_result="${1%/*}${2}" ;;
37148     *  ) func_dirname_result="${3}" ;;
37149   esac
37150 }
37151
37152 # func_basename file
37153 func_basename ()
37154 {
37155   func_basename_result="${1##*/}"
37156 }
37157
37158 # func_dirname_and_basename file append nondir_replacement
37159 # perform func_basename and func_dirname in a single function
37160 # call:
37161 #   dirname:  Compute the dirname of FILE.  If nonempty,
37162 #             add APPEND to the result, otherwise set result
37163 #             to NONDIR_REPLACEMENT.
37164 #             value returned in "$func_dirname_result"
37165 #   basename: Compute filename of FILE.
37166 #             value retuned in "$func_basename_result"
37167 # Implementation must be kept synchronized with func_dirname
37168 # and func_basename. For efficiency, we do not delegate to
37169 # those functions but instead duplicate the functionality here.
37170 func_dirname_and_basename ()
37171 {
37172   case ${1} in
37173     */*) func_dirname_result="${1%/*}${2}" ;;
37174     *  ) func_dirname_result="${3}" ;;
37175   esac
37176   func_basename_result="${1##*/}"
37177 }
37178
37179 # func_stripname prefix suffix name
37180 # strip PREFIX and SUFFIX off of NAME.
37181 # PREFIX and SUFFIX must not contain globbing or regex special
37182 # characters, hashes, percent signs, but SUFFIX may contain a leading
37183 # dot (in which case that matches only a dot).
37184 func_stripname ()
37185 {
37186   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
37187   # positional parameters, so assign one to ordinary parameter first.
37188   func_stripname_result=${3}
37189   func_stripname_result=${func_stripname_result#"${1}"}
37190   func_stripname_result=${func_stripname_result%"${2}"}
37191 }
37192
37193 # func_opt_split
37194 func_opt_split ()
37195 {
37196   func_opt_split_opt=${1%%=*}
37197   func_opt_split_arg=${1#*=}
37198 }
37199
37200 # func_lo2o object
37201 func_lo2o ()
37202 {
37203   case ${1} in
37204     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
37205     *)    func_lo2o_result=${1} ;;
37206   esac
37207 }
37208
37209 # func_xform libobj-or-source
37210 func_xform ()
37211 {
37212   func_xform_result=${1%.*}.lo
37213 }
37214
37215 # func_arith arithmetic-term...
37216 func_arith ()
37217 {
37218   func_arith_result=$(( $* ))
37219 }
37220
37221 # func_len string
37222 # STRING may not start with a hyphen.
37223 func_len ()
37224 {
37225   func_len_result=${#1}
37226 }
37227
37228 _LT_EOF
37229     ;;
37230   *) # Bourne compatible functions.
37231     cat << \_LT_EOF >> "$cfgfile"
37232
37233 # func_dirname file append nondir_replacement
37234 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37235 # otherwise set result to NONDIR_REPLACEMENT.
37236 func_dirname ()
37237 {
37238   # Extract subdirectory from the argument.
37239   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
37240   if test "X$func_dirname_result" = "X${1}"; then
37241     func_dirname_result="${3}"
37242   else
37243     func_dirname_result="$func_dirname_result${2}"
37244   fi
37245 }
37246
37247 # func_basename file
37248 func_basename ()
37249 {
37250   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
37251 }
37252
37253
37254 # func_stripname prefix suffix name
37255 # strip PREFIX and SUFFIX off of NAME.
37256 # PREFIX and SUFFIX must not contain globbing or regex special
37257 # characters, hashes, percent signs, but SUFFIX may contain a leading
37258 # dot (in which case that matches only a dot).
37259 # func_strip_suffix prefix name
37260 func_stripname ()
37261 {
37262   case ${2} in
37263     .*) func_stripname_result=`$ECHO "X${3}" \
37264            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
37265     *)  func_stripname_result=`$ECHO "X${3}" \
37266            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
37267   esac
37268 }
37269
37270 # sed scripts:
37271 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
37272 my_sed_long_arg='1s/^-[^=]*=//'
37273
37274 # func_opt_split
37275 func_opt_split ()
37276 {
37277   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
37278   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
37279 }
37280
37281 # func_lo2o object
37282 func_lo2o ()
37283 {
37284   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
37285 }
37286
37287 # func_xform libobj-or-source
37288 func_xform ()
37289 {
37290   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
37291 }
37292
37293 # func_arith arithmetic-term...
37294 func_arith ()
37295 {
37296   func_arith_result=`expr "$@"`
37297 }
37298
37299 # func_len string
37300 # STRING may not start with a hyphen.
37301 func_len ()
37302 {
37303   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
37304 }
37305
37306 _LT_EOF
37307 esac
37308
37309 case $lt_shell_append in
37310   yes)
37311     cat << \_LT_EOF >> "$cfgfile"
37312
37313 # func_append var value
37314 # Append VALUE to the end of shell variable VAR.
37315 func_append ()
37316 {
37317   eval "$1+=\$2"
37318 }
37319 _LT_EOF
37320     ;;
37321   *)
37322     cat << \_LT_EOF >> "$cfgfile"
37323
37324 # func_append var value
37325 # Append VALUE to the end of shell variable VAR.
37326 func_append ()
37327 {
37328   eval "$1=\$$1\$2"
37329 }
37330
37331 _LT_EOF
37332     ;;
37333   esac
37334
37335
37336   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
37337     || (rm -f "$cfgfile"; exit 1)
37338
37339   mv -f "$cfgfile" "$ofile" ||
37340     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37341   chmod +x "$ofile"
37342
37343  ;;
37344
37345   esac
37346 done # for ac_tag
37347
37348
37349 as_fn_exit 0
37350 _ACEOF
37351 ac_clean_files=$ac_clean_files_save
37352
37353 test $ac_write_fail = 0 ||
37354   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37355
37356
37357 # configure is writing to config.log, and then calls config.status.
37358 # config.status does its own redirection, appending to config.log.
37359 # Unfortunately, on DOS this fails, as config.log is still kept open
37360 # by configure, so config.status won't be able to write to it; its
37361 # output is simply discarded.  So we exec the FD to /dev/null,
37362 # effectively closing config.log, so it can be properly (re)opened and
37363 # appended to by config.status.  When coming back to configure, we
37364 # need to make the FD available again.
37365 if test "$no_create" != yes; then
37366   ac_cs_success=:
37367   ac_config_status_args=
37368   test "$silent" = yes &&
37369     ac_config_status_args="$ac_config_status_args --quiet"
37370   exec 5>/dev/null
37371   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37372   exec 5>>config.log
37373   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37374   # would make configure fail if this is the last instruction.
37375   $ac_cs_success || as_fn_exit 1
37376 fi
37377
37378 #
37379 # CONFIG_SUBDIRS section.
37380 #
37381 if test "$no_recursion" != yes; then
37382
37383   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
37384   # so they do not pile up.
37385   ac_sub_configure_args=
37386   ac_prev=
37387   eval "set x $ac_configure_args"
37388   shift
37389   for ac_arg
37390   do
37391     if test -n "$ac_prev"; then
37392       ac_prev=
37393       continue
37394     fi
37395     case $ac_arg in
37396     -cache-file | --cache-file | --cache-fil | --cache-fi \
37397     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37398       ac_prev=cache_file ;;
37399     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37400     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37401     | --c=*)
37402       ;;
37403     --config-cache | -C)
37404       ;;
37405     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37406       ac_prev=srcdir ;;
37407     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37408       ;;
37409     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37410       ac_prev=prefix ;;
37411     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37412       ;;
37413     --disable-option-checking)
37414       ;;
37415     *)
37416       case $ac_arg in
37417       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37418       esac
37419       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
37420     esac
37421   done
37422
37423   # Always prepend --prefix to ensure using the same prefix
37424   # in subdir configurations.
37425   ac_arg="--prefix=$prefix"
37426   case $ac_arg in
37427   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37428   esac
37429   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
37430
37431   # Pass --silent
37432   if test "$silent" = yes; then
37433     ac_sub_configure_args="--silent $ac_sub_configure_args"
37434   fi
37435
37436   # Always prepend --disable-option-checking to silence warnings, since
37437   # different subdirs can have different --enable and --with options.
37438   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
37439
37440   ac_popdir=`pwd`
37441   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37442
37443     # Do not complain, so a configure script can configure whichever
37444     # parts of a large source tree are present.
37445     test -d "$srcdir/$ac_dir" || continue
37446
37447     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
37448     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
37449     $as_echo "$ac_msg" >&6
37450     as_dir="$ac_dir"; as_fn_mkdir_p
37451     ac_builddir=.
37452
37453 case "$ac_dir" in
37454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37455 *)
37456   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37457   # A ".." for each directory in $ac_dir_suffix.
37458   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37459   case $ac_top_builddir_sub in
37460   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37461   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37462   esac ;;
37463 esac
37464 ac_abs_top_builddir=$ac_pwd
37465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37466 # for backward compatibility:
37467 ac_top_builddir=$ac_top_build_prefix
37468
37469 case $srcdir in
37470   .)  # We are building in place.
37471     ac_srcdir=.
37472     ac_top_srcdir=$ac_top_builddir_sub
37473     ac_abs_top_srcdir=$ac_pwd ;;
37474   [\\/]* | ?:[\\/]* )  # Absolute name.
37475     ac_srcdir=$srcdir$ac_dir_suffix;
37476     ac_top_srcdir=$srcdir
37477     ac_abs_top_srcdir=$srcdir ;;
37478   *) # Relative name.
37479     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37480     ac_top_srcdir=$ac_top_build_prefix$srcdir
37481     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37482 esac
37483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37484
37485
37486     cd "$ac_dir"
37487
37488     # Check for guested configure; otherwise get Cygnus style configure.
37489     if test -f "$ac_srcdir/configure.gnu"; then
37490       ac_sub_configure=$ac_srcdir/configure.gnu
37491     elif test -f "$ac_srcdir/configure"; then
37492       ac_sub_configure=$ac_srcdir/configure
37493     elif test -f "$ac_srcdir/configure.in"; then
37494       # This should be Cygnus configure.
37495       ac_sub_configure=$ac_aux_dir/configure
37496     else
37497       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
37498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37499       ac_sub_configure=
37500     fi
37501
37502     # The recursion is here.
37503     if test -n "$ac_sub_configure"; then
37504       # Make the cache file name correct relative to the subdirectory.
37505       case $cache_file in
37506       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37507       *) # Relative name.
37508         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
37509       esac
37510
37511       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37512 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37513       # The eval makes quoting arguments work.
37514       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
37515            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
37516         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
37517     fi
37518
37519     cd "$ac_popdir"
37520   done
37521 fi
37522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37523   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37525 fi
37526
37527
37528
37529     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
37530   if test -z "$tmp_cpp"; then
37531     tmp_cpp='cpp'
37532   fi
37533   cat >./tests/configurehelp.pm <<_EOF
37534 # This is a generated file.  Do not edit.
37535
37536 package configurehelp;
37537
37538 use strict;
37539 use warnings;
37540 use Exporter;
37541
37542 use vars qw(
37543     @ISA
37544     @EXPORT_OK
37545     \$Cpreprocessor
37546     );
37547
37548 @ISA = qw(Exporter);
37549
37550 @EXPORT_OK = qw(
37551     \$Cpreprocessor
37552     );
37553
37554 \$Cpreprocessor = '$tmp_cpp';
37555
37556 1;
37557 _EOF
37558
37559
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
37561
37562   curl version:    ${VERSION}
37563   Host setup:      ${host}
37564   Install prefix:  ${prefix}
37565   Compiler:        ${CC}
37566   SSL support:     ${curl_ssl_msg}
37567   SSH support:     ${curl_ssh_msg}
37568   zlib support:    ${curl_zlib_msg}
37569   krb4 support:    ${curl_krb4_msg}
37570   GSSAPI support:  ${curl_gss_msg}
37571   SPNEGO support:  ${curl_spnego_msg}
37572   resolver:        ${curl_res_msg}
37573   ipv6 support:    ${curl_ipv6_msg}
37574   IDN support:     ${curl_idn_msg}
37575   Build libcurl:   Shared=${enable_shared}, Static=${enable_static}
37576   Built-in manual: ${curl_manual_msg}
37577   Verbose errors:  ${curl_verbose_msg}
37578   SSPI support:    ${curl_sspi_msg}
37579   ca cert bundle:  ${ca}
37580   ca cert path:    ${capath}
37581   LDAP support:    ${curl_ldap_msg}
37582   LDAPS support:   ${curl_ldaps_msg}
37583   RTSP support:    ${curl_rtsp_msg}
37584   RTMP support:    ${curl_rtmp_msg}
37585   Protocols:       ${SUPPORT_PROTOCOLS}
37586 " >&5
37587 $as_echo "$as_me: Configured to build curl/libcurl:
37588
37589   curl version:    ${VERSION}
37590   Host setup:      ${host}
37591   Install prefix:  ${prefix}
37592   Compiler:        ${CC}
37593   SSL support:     ${curl_ssl_msg}
37594   SSH support:     ${curl_ssh_msg}
37595   zlib support:    ${curl_zlib_msg}
37596   krb4 support:    ${curl_krb4_msg}
37597   GSSAPI support:  ${curl_gss_msg}
37598   SPNEGO support:  ${curl_spnego_msg}
37599   resolver:        ${curl_res_msg}
37600   ipv6 support:    ${curl_ipv6_msg}
37601   IDN support:     ${curl_idn_msg}
37602   Build libcurl:   Shared=${enable_shared}, Static=${enable_static}
37603   Built-in manual: ${curl_manual_msg}
37604   Verbose errors:  ${curl_verbose_msg}
37605   SSPI support:    ${curl_sspi_msg}
37606   ca cert bundle:  ${ca}
37607   ca cert path:    ${capath}
37608   LDAP support:    ${curl_ldap_msg}
37609   LDAPS support:   ${curl_ldaps_msg}
37610   RTSP support:    ${curl_rtsp_msg}
37611   RTMP support:    ${curl_rtmp_msg}
37612   Protocols:       ${SUPPORT_PROTOCOLS}
37613 " >&6;}
37614
37615 if test "x$soname_bump" = "xyes"; then
37616
37617 cat <<EOM
37618   SONAME bump:     yes - WARNING: this library will be built with the SONAME
37619                    number bumped due to (a detected) ABI breakage.
37620                    See lib/README.curl_off_t for details on this.
37621 EOM
37622
37623 fi
37624