• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for c-ares 1.7.5.
4#
5# Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
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## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76
77  if test -z "$cares_cv_PATH_SEPARATOR"; then
78    if test -z "$PATH"; then
79      as_fn_error $? "PATH not set. Cannot continue without PATH being set."
80    fi
81        tst_dirs_col=0
82    tst_save_IFS=$IFS; IFS=':'
83    for tst_dir in $PATH; do
84      IFS=$tst_save_IFS
85      test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
86    done
87    IFS=$tst_save_IFS
88        tst_dirs_sem=0
89    tst_save_IFS=$IFS; IFS=';'
90    for tst_dir in $PATH; do
91      IFS=$tst_save_IFS
92      test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
93    done
94    IFS=$tst_save_IFS
95    if test $tst_dirs_sem -eq $tst_dirs_col; then
96                  if test -z "$PATH_SEPARATOR"; then
97                as_fn_error $? "PATH_SEPARATOR not set. Cannot continue without it."
98      fi
99    else
100            if test $tst_dirs_sem -gt $tst_dirs_col; then
101        tst_auto_separator=';'
102      else
103        tst_auto_separator=':'
104      fi
105      if test -z "$PATH_SEPARATOR"; then
106                PATH_SEPARATOR="$tst_auto_separator"
107      fi
108    fi
109    cares_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
110  fi
111
112
113
114
115
116# IFS
117# We need space, tab and new line, in precisely that order.  Quoting is
118# there to prevent editors from complaining about space-tab.
119# (If _AS_PATH_WALK were called with IFS unset, it would disable word
120# splitting by setting IFS to empty value.)
121IFS=" ""	$as_nl"
122
123# Find who we are.  Look in the path if we contain no directory separator.
124as_myself=
125case $0 in #((
126  *[\\/]* ) as_myself=$0 ;;
127  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in $PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
133  done
134IFS=$as_save_IFS
135
136     ;;
137esac
138# We did not find ourselves, most probably we were run as `sh COMMAND'
139# in which case we are not to be found in the path.
140if test "x$as_myself" = x; then
141  as_myself=$0
142fi
143if test ! -f "$as_myself"; then
144  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
145  exit 1
146fi
147
148# Unset variables that we do not need and which cause bugs (e.g. in
149# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
150# suppresses any "Segmentation fault" message there.  '((' could
151# trigger a bug in pdksh 5.2.14.
152for as_var in BASH_ENV ENV MAIL MAILPATH
153do eval test x\${$as_var+set} = xset \
154  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
155done
156PS1='$ '
157PS2='> '
158PS4='+ '
159
160# NLS nuisances.
161LC_ALL=C
162export LC_ALL
163LANGUAGE=C
164export LANGUAGE
165
166# CDPATH.
167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
168
169if test "x$CONFIG_SHELL" = x; then
170  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
171  emulate sh
172  NULLCMD=:
173  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
174  # is contrary to our usage.  Disable this feature.
175  alias -g '\${1+\"\$@\"}'='\"\$@\"'
176  setopt NO_GLOB_SUBST
177else
178  case \`(set -o) 2>/dev/null\` in #(
179  *posix*) :
180    set -o posix ;; #(
181  *) :
182     ;;
183esac
184fi
185"
186  as_required="as_fn_return () { (exit \$1); }
187as_fn_success () { as_fn_return 0; }
188as_fn_failure () { as_fn_return 1; }
189as_fn_ret_success () { return 0; }
190as_fn_ret_failure () { return 1; }
191
192exitcode=0
193as_fn_success || { exitcode=1; echo as_fn_success failed.; }
194as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
195as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
196as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
197if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
198
199else
200  exitcode=1; echo positional parameters were not saved.
201fi
202test x\$exitcode = x0 || exit 1"
203  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
204  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
205  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
206  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1
208
209  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
210    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
211    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
212    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
213    PATH=/empty FPATH=/empty; export PATH FPATH
214    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
215      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
216  if (eval "$as_required") 2>/dev/null; then :
217  as_have_required=yes
218else
219  as_have_required=no
220fi
221  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
222
223else
224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225as_found=false
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228  IFS=$as_save_IFS
229  test -z "$as_dir" && as_dir=.
230  as_found=:
231  case $as_dir in #(
232	 /*)
233	   for as_base in sh bash ksh sh5; do
234	     # Try only shells that exist, to save several forks.
235	     as_shell=$as_dir/$as_base
236	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
238  CONFIG_SHELL=$as_shell as_have_required=yes
239		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
240  break 2
241fi
242fi
243	   done;;
244       esac
245  as_found=false
246done
247$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
248	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
249  CONFIG_SHELL=$SHELL as_have_required=yes
250fi; }
251IFS=$as_save_IFS
252
253
254      if test "x$CONFIG_SHELL" != x; then :
255  # We cannot yet assume a decent shell, so we have to provide a
256	# neutralization value for shells without unset; and this also
257	# works around shells that cannot unset nonexistent variables.
258	# Preserve -v and -x to the replacement shell.
259	BASH_ENV=/dev/null
260	ENV=/dev/null
261	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
262	export CONFIG_SHELL
263	case $- in # ((((
264	  *v*x* | *x*v* ) as_opts=-vx ;;
265	  *v* ) as_opts=-v ;;
266	  *x* ) as_opts=-x ;;
267	  * ) as_opts= ;;
268	esac
269	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
270fi
271
272    if test x$as_have_required = xno; then :
273  $as_echo "$0: This script requires a shell more modern than all"
274  $as_echo "$0: the shells that I found on your system."
275  if test x${ZSH_VERSION+set} = xset ; then
276    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
280$0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
281$0: your system, including any error possibly output before
282$0: this message. Then install a modern shell, or manually
283$0: run the script under such a shell if you do have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331  case $as_dir in #(
332  -*) as_dir=./$as_dir;;
333  esac
334  test -d "$as_dir" || eval $as_mkdir_p || {
335    as_dirs=
336    while :; do
337      case $as_dir in #(
338      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339      *) as_qdir=$as_dir;;
340      esac
341      as_dirs="'$as_qdir' $as_dirs"
342      as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344	 X"$as_dir" : 'X\(//\)[^/]' \| \
345	 X"$as_dir" : 'X\(//\)$' \| \
346	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)[^/].*/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\).*/{
361	    s//\1/
362	    q
363	  }
364	  s/.*/./; q'`
365      test -d "$as_dir" && break
366    done
367    test -z "$as_dirs" || eval "mkdir $as_dirs"
368  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
372# as_fn_append VAR VALUE
373# ----------------------
374# Append the text in VALUE to the end of the definition contained in VAR. Take
375# advantage of any shell optimizations that allow amortized linear growth over
376# repeated appends, instead of the typical quadratic growth present in naive
377# implementations.
378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379  eval 'as_fn_append ()
380  {
381    eval $1+=\$2
382  }'
383else
384  as_fn_append ()
385  {
386    eval $1=\$$1\$2
387  }
388fi # as_fn_append
389
390# as_fn_arith ARG...
391# ------------------
392# Perform arithmetic evaluation on the ARGs, and store the result in the
393# global $as_val. Take advantage of shells that can avoid forks. The arguments
394# must be portable across $(()) and expr.
395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396  eval 'as_fn_arith ()
397  {
398    as_val=$(( $* ))
399  }'
400else
401  as_fn_arith ()
402  {
403    as_val=`expr "$@" || test $? -eq 1`
404  }
405fi # as_fn_arith
406
407
408# as_fn_error STATUS ERROR [LINENO LOG_FD]
409# ----------------------------------------
410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412# script with STATUS, using 1 if that was 0.
413as_fn_error ()
414{
415  as_status=$1; test $as_status -eq 0 && as_status=1
416  if test "$4"; then
417    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419  fi
420  $as_echo "$as_me: error: $2" >&2
421  as_fn_exit $as_status
422} # as_fn_error
423
424if expr a : '\(a\)' >/dev/null 2>&1 &&
425   test "X`expr 00001 : '.*\(...\)'`" = X001; then
426  as_expr=expr
427else
428  as_expr=false
429fi
430
431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432  as_basename=basename
433else
434  as_basename=false
435fi
436
437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438  as_dirname=dirname
439else
440  as_dirname=false
441fi
442
443as_me=`$as_basename -- "$0" ||
444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445	 X"$0" : 'X\(//\)$' \| \
446	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447$as_echo X/"$0" |
448    sed '/^.*\/\([^/][^/]*\)\/*$/{
449	    s//\1/
450	    q
451	  }
452	  /^X\/\(\/\/\)$/{
453	    s//\1/
454	    q
455	  }
456	  /^X\/\(\/\).*/{
457	    s//\1/
458	    q
459	  }
460	  s/.*/./; q'`
461
462# Avoid depending upon Character Ranges.
463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466as_cr_digits='0123456789'
467as_cr_alnum=$as_cr_Letters$as_cr_digits
468
469
470  as_lineno_1=$LINENO as_lineno_1a=$LINENO
471  as_lineno_2=$LINENO as_lineno_2a=$LINENO
472  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
475  sed -n '
476    p
477    /[$]LINENO/=
478  ' <$as_myself |
479    sed '
480      s/[$]LINENO.*/&-/
481      t lineno
482      b
483      :lineno
484      N
485      :loop
486      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487      t loop
488      s/-\n.*//
489    ' >$as_me.lineno &&
490  chmod +x "$as_me.lineno" ||
491    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492
493  # Don't try to exec as it changes $[0], causing all sort of problems
494  # (the dirname of $[0] is not the place where we might find the
495  # original and so on.  Autoconf is especially sensitive to this).
496  . "./$as_me.lineno"
497  # Exit status is that of the last command.
498  exit
499}
500
501ECHO_C= ECHO_N= ECHO_T=
502case `echo -n x` in #(((((
503-n*)
504  case `echo 'xy\c'` in
505  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
506  xy)  ECHO_C='\c';;
507  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
508       ECHO_T='	';;
509  esac;;
510*)
511  ECHO_N='-n';;
512esac
513
514rm -f conf$$ conf$$.exe conf$$.file
515if test -d conf$$.dir; then
516  rm -f conf$$.dir/conf$$.file
517else
518  rm -f conf$$.dir
519  mkdir conf$$.dir 2>/dev/null
520fi
521if (echo >conf$$.file) 2>/dev/null; then
522  if ln -s conf$$.file conf$$ 2>/dev/null; then
523    as_ln_s='ln -s'
524    # ... but there are two gotchas:
525    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527    # In both cases, we have to default to `cp -p'.
528    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529      as_ln_s='cp -p'
530  elif ln conf$$.file conf$$ 2>/dev/null; then
531    as_ln_s=ln
532  else
533    as_ln_s='cp -p'
534  fi
535else
536  as_ln_s='cp -p'
537fi
538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539rmdir conf$$.dir 2>/dev/null
540
541if mkdir -p . 2>/dev/null; then
542  as_mkdir_p='mkdir -p "$as_dir"'
543else
544  test -d ./-p && rmdir ./-p
545  as_mkdir_p=false
546fi
547
548if test -x / >/dev/null 2>&1; then
549  as_test_x='test -x'
550else
551  if ls -dL / >/dev/null 2>&1; then
552    as_ls_L_option=L
553  else
554    as_ls_L_option=
555  fi
556  as_test_x='
557    eval sh -c '\''
558      if test -d "$1"; then
559	test -d "$1/.";
560      else
561	case $1 in #(
562	-*)set "./$1";;
563	esac;
564	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
565	???[sx]*):;;*)false;;esac;fi
566    '\'' sh
567  '
568fi
569as_executable_p=$as_test_x
570
571# Sed expression to map a string onto a valid CPP name.
572as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573
574# Sed expression to map a string onto a valid variable name.
575as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576
577SHELL=${CONFIG_SHELL-/bin/sh}
578
579
580test -n "$DJDIR" || exec 7<&0 </dev/null
581exec 6>&1
582
583# Name of the host.
584# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585# so uname gets run too.
586ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588#
589# Initializations.
590#
591ac_default_prefix=/usr/local
592ac_clean_files=
593ac_config_libobj_dir=.
594LIBOBJS=
595cross_compiling=no
596subdirs=
597MFLAGS=
598MAKEFLAGS=
599
600# Identity of this package.
601PACKAGE_NAME='c-ares'
602PACKAGE_TARNAME='c-ares'
603PACKAGE_VERSION='1.7.5'
604PACKAGE_STRING='c-ares 1.7.5'
605PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
606PACKAGE_URL=''
607
608ac_unique_file="ares_ipv6.h"
609# Factoring default headers for most tests.
610ac_includes_default="\
611#include <stdio.h>
612#ifdef HAVE_SYS_TYPES_H
613# include <sys/types.h>
614#endif
615#ifdef HAVE_SYS_STAT_H
616# include <sys/stat.h>
617#endif
618#ifdef STDC_HEADERS
619# include <stdlib.h>
620# include <stddef.h>
621#else
622# ifdef HAVE_STDLIB_H
623#  include <stdlib.h>
624# endif
625#endif
626#ifdef HAVE_STRING_H
627# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
628#  include <memory.h>
629# endif
630# include <string.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_INTTYPES_H
636# include <inttypes.h>
637#endif
638#ifdef HAVE_STDINT_H
639# include <stdint.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_subst_vars='LTLIBOBJS
646LIBOBJS
647CARES_CFLAG_EXTRAS
648CARES_PRIVATE_LIBS
649RANDOM_FILE
650CURLDEBUG_FALSE
651CURLDEBUG_TRUE
652NO_UNDEFINED_FALSE
653NO_UNDEFINED_TRUE
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668LIBTOOL
669OBJDUMP
670DLLTOOL
671AS
672CPP
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718AR
719EGREP
720GREP
721SED
722MAINT
723MAINTAINER_MODE_FALSE
724MAINTAINER_MODE_TRUE
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761SHELL
762PATH
763PATH_SEPARATOR'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767enable_maintainer_mode
768enable_debug
769enable_optimize
770enable_warnings
771enable_werror
772enable_curldebug
773enable_symbol_hiding
774enable_dependency_tracking
775enable_largefile
776enable_shared
777enable_static
778with_pic
779enable_fast_install
780with_gnu_ld
781with_sysroot
782enable_libtool_lock
783enable_libgcc
784with_random
785enable_nonblocking
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CPP'
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  # Accept the important Cygnus configure options, so we can diagnose typos.
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: $ac_useropt"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1252    If a cross compiler is detected then cross compile mode will be used" >&2
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338\`configure' configures c-ares 1.7.5 to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print \`checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for \`--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --libdir=DIR            object code libraries [EPREFIX/lib]
1379  --includedir=DIR        C header files [PREFIX/include]
1380  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383  --infodir=DIR           info documentation [DATAROOTDIR/info]
1384  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385  --mandir=DIR            man documentation [DATAROOTDIR/man]
1386  --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares]
1387  --htmldir=DIR           html documentation [DOCDIR]
1388  --dvidir=DIR            dvi documentation [DOCDIR]
1389  --pdfdir=DIR            pdf documentation [DOCDIR]
1390  --psdir=DIR             ps documentation [DOCDIR]
1391_ACEOF
1392
1393  cat <<\_ACEOF
1394
1395Program names:
1396  --program-prefix=PREFIX            prepend PREFIX to installed program names
1397  --program-suffix=SUFFIX            append SUFFIX to installed program names
1398  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400System types:
1401  --build=BUILD     configure for building on BUILD [guessed]
1402  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407  case $ac_init_help in
1408     short | recursive ) echo "Configuration of c-ares 1.7.5:";;
1409   esac
1410  cat <<\_ACEOF
1411
1412Optional Features:
1413  --disable-option-checking  ignore unrecognized --enable/--with options
1414  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416  --enable-maintainer-mode  enable make rules and dependencies not useful
1417			  (and sometimes confusing) to the casual installer
1418  --enable-debug          Enable debug build options
1419  --disable-debug         Disable debug build options
1420  --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1421  --disable-optimize      Disable compiler optimizations
1422  --enable-warnings       Enable strict compiler warnings
1423  --disable-warnings      Disable strict compiler warnings
1424  --enable-werror         Enable compiler warnings as errors
1425  --disable-werror        Disable compiler warnings as errors
1426  --enable-curldebug      Enable curl debug memory tracking
1427  --disable-curldebug     Disable curl debug memory tracking
1428  --enable-symbol-hiding  Enable hiding of library internal symbols
1429  --disable-symbol-hiding Disable hiding of library internal symbols
1430  --disable-dependency-tracking  speeds up one-time build
1431  --enable-dependency-tracking   do not reject slow dependency extractors
1432  --disable-largefile     omit support for large files
1433  --enable-shared[=PKGS]  build shared libraries [default=yes]
1434  --enable-static[=PKGS]  build static libraries [default=yes]
1435  --enable-fast-install[=PKGS]
1436                          optimize for fast installation [default=yes]
1437  --disable-libtool-lock  avoid locking (might break parallel builds)
1438  --enable-libgcc         use libgcc when linking
1439  --enable-nonblocking    Enable non-blocking communications
1440  --disable-nonblocking   Disable non-blocking communications
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445  --with-pic              try to use only PIC/non-PIC objects [default=use
1446                          both]
1447  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448  --with-sysroot=DIR Search for dependent libraries within DIR
1449                        (or the compiler's sysroot if not specified).
1450  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1451
1452Some influential environment variables:
1453  CC          C compiler command
1454  CFLAGS      C compiler flags
1455  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456              nonstandard directory <lib dir>
1457  LIBS        libraries to pass to the linker, e.g. -l<library>
1458  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459              you have headers in a nonstandard directory <include dir>
1460  CPP         C preprocessor
1461
1462Use these variables to override the choices made by `configure' or to help
1463it to find libraries and programs with nonstandard names/locations.
1464
1465Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1466_ACEOF
1467ac_status=$?
1468fi
1469
1470if test "$ac_init_help" = "recursive"; then
1471  # If there are subdirs, report their specific --help.
1472  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473    test -d "$ac_dir" ||
1474      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475      continue
1476    ac_builddir=.
1477
1478case "$ac_dir" in
1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480*)
1481  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482  # A ".." for each directory in $ac_dir_suffix.
1483  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484  case $ac_top_builddir_sub in
1485  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487  esac ;;
1488esac
1489ac_abs_top_builddir=$ac_pwd
1490ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491# for backward compatibility:
1492ac_top_builddir=$ac_top_build_prefix
1493
1494case $srcdir in
1495  .)  # We are building in place.
1496    ac_srcdir=.
1497    ac_top_srcdir=$ac_top_builddir_sub
1498    ac_abs_top_srcdir=$ac_pwd ;;
1499  [\\/]* | ?:[\\/]* )  # Absolute name.
1500    ac_srcdir=$srcdir$ac_dir_suffix;
1501    ac_top_srcdir=$srcdir
1502    ac_abs_top_srcdir=$srcdir ;;
1503  *) # Relative name.
1504    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505    ac_top_srcdir=$ac_top_build_prefix$srcdir
1506    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507esac
1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510    cd "$ac_dir" || { ac_status=$?; continue; }
1511    # Check for guested configure.
1512    if test -f "$ac_srcdir/configure.gnu"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515    elif test -f "$ac_srcdir/configure"; then
1516      echo &&
1517      $SHELL "$ac_srcdir/configure" --help=recursive
1518    else
1519      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520    fi || ac_status=$?
1521    cd "$ac_pwd" || { ac_status=$?; break; }
1522  done
1523fi
1524
1525test -n "$ac_init_help" && exit $ac_status
1526if $ac_init_version; then
1527  cat <<\_ACEOF
1528c-ares configure 1.7.5
1529generated by GNU Autoconf 2.68
1530
1531Copyright (C) 2010 Free Software Foundation, Inc.
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
1535  exit
1536fi
1537
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
1541
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  rm -f conftest.$ac_objext
1549  if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556  (eval "$ac_compile") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } && {
1565	 test -z "$ac_c_werror_flag" ||
1566	 test ! -s conftest.err
1567       } && test -s conftest.$ac_objext; then :
1568  ac_retval=0
1569else
1570  $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573	ac_retval=1
1574fi
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576  as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_try_cpp LINENO
1581# ----------------------
1582# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_cpp ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  if { { ac_try="$ac_cpp conftest.$ac_ext"
1587case "(($ac_try" in
1588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589  *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594  ac_status=$?
1595  if test -s conftest.err; then
1596    grep -v '^ *+' conftest.err >conftest.er1
1597    cat conftest.er1 >&5
1598    mv -f conftest.er1 conftest.err
1599  fi
1600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601  test $ac_status = 0; } > conftest.i && {
1602	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603	 test ! -s conftest.err
1604       }; then :
1605  ac_retval=0
1606else
1607  $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610    ac_retval=1
1611fi
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_cpp
1616
1617# ac_fn_c_try_link LINENO
1618# -----------------------
1619# Try to link conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_link ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  rm -f conftest.$ac_objext conftest$ac_exeext
1624  if { { ac_try="$ac_link"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_link") 2>conftest.err
1632  ac_status=$?
1633  if test -s conftest.err; then
1634    grep -v '^ *+' conftest.err >conftest.er1
1635    cat conftest.er1 >&5
1636    mv -f conftest.er1 conftest.err
1637  fi
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; } && {
1640	 test -z "$ac_c_werror_flag" ||
1641	 test ! -s conftest.err
1642       } && test -s conftest$ac_exeext && {
1643	 test "$cross_compiling" = yes ||
1644	 $as_test_x conftest$ac_exeext
1645       }; then :
1646  ac_retval=0
1647else
1648  $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651	ac_retval=1
1652fi
1653  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655  # interfere with the next link command; also delete a directory that is
1656  # left behind by Apple's compiler.  We do this before executing the actions.
1657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_link
1662
1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists and can be compiled using the include files in
1666# INCLUDES, setting the cache variable VAR accordingly.
1667ac_fn_c_check_header_compile ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if eval \${$3+:} false; then :
1673  $as_echo_n "(cached) " >&6
1674else
1675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681  eval "$3=yes"
1682else
1683  eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692} # ac_fn_c_check_header_compile
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_func LINENO FUNC VAR
1737# ----------------------------------
1738# Tests whether FUNC exists, setting the cache variable VAR accordingly
1739ac_fn_c_check_func ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749
1750#define $2 innocuous_$2
1751#ifdef __STDC__
1752# include <limits.h>
1753#else
1754# include <assert.h>
1755#endif
1756#undef $2
1757#ifdef __cplusplus
1758extern "C"
1759#endif
1760char $2 ();
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int main (void)
1766{
1767return $2 ();
1768 ;
1769 return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_link "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext \
1778    conftest$ac_exeext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_func
1786
1787# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790# the include files in INCLUDES and setting the cache variable VAR
1791# accordingly.
1792ac_fn_c_check_header_mongrel ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  if eval \${$3+:} false; then :
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804else
1805  # Is the header compilable?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807$as_echo_n "checking $2 usability... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  ac_header_compiler=yes
1815else
1816  ac_header_compiler=no
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820$as_echo "$ac_header_compiler" >&6; }
1821
1822# Is the header present?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824$as_echo_n "checking $2 presence... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_cpp "$LINENO"; then :
1830  ac_header_preproc=yes
1831else
1832  ac_header_preproc=no
1833fi
1834rm -f conftest.err conftest.i conftest.$ac_ext
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836$as_echo "$ac_header_preproc" >&6; }
1837
1838# So?  What about this header?
1839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1840  yes:no: )
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845    ;;
1846  no:yes:* )
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1850$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1854$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857( $as_echo "## ------------------------------------------------------------------------------- ##
1858## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
1859## ------------------------------------------------------------------------------- ##"
1860     ) | sed "s/^/$as_me: WARNING:     /" >&2
1861    ;;
1862esac
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  eval "$3=\$ac_header_compiler"
1869fi
1870eval ac_res=\$$3
1871	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873fi
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_header_mongrel
1877
1878# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879# -------------------------------------------
1880# Tests whether TYPE exists after having included INCLUDES, setting cache
1881# variable VAR accordingly.
1882ac_fn_c_check_type ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888  $as_echo_n "(cached) " >&6
1889else
1890  eval "$3=no"
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894int main (void)
1895{
1896if (sizeof ($2))
1897	 return 0;
1898 ;
1899 return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906int main (void)
1907{
1908if (sizeof (($2)))
1909	    return 0;
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915
1916else
1917  eval "$3=yes"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_type
1929
1930# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1931# --------------------------------------------
1932# Tries to find the compile-time value of EXPR in a program that includes
1933# INCLUDES, setting VAR accordingly. Returns whether the value could be
1934# computed
1935ac_fn_c_compute_int ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  if test "$cross_compiling" = yes; then
1939    # Depending upon the size, compute the lo and hi bounds.
1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int main (void)
1944{
1945static int test_array [1 - 2 * !(($2) >= 0)];
1946test_array [0] = 0
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953  ac_lo=0 ac_mid=0
1954  while :; do
1955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957$4
1958int main (void)
1959{
1960static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1961test_array [0] = 0
1962
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968  ac_hi=$ac_mid; break
1969else
1970  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1971			if test $ac_lo -le $ac_mid; then
1972			  ac_lo= ac_hi=
1973			  break
1974			fi
1975			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978  done
1979else
1980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983int main (void)
1984{
1985static int test_array [1 - 2 * !(($2) < 0)];
1986test_array [0] = 0
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_hi=-1 ac_mid=-1
1994  while :; do
1995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997$4
1998int main (void)
1999{
2000static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2001test_array [0] = 0
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008  ac_lo=$ac_mid; break
2009else
2010  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2011			if test $ac_mid -le $ac_hi; then
2012			  ac_lo= ac_hi=
2013			  break
2014			fi
2015			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018  done
2019else
2020  ac_lo= ac_hi=
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025# Binary search between lo and hi bounds.
2026while test "x$ac_lo" != "x$ac_hi"; do
2027  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030$4
2031int main (void)
2032{
2033static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034test_array [0] = 0
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041  ac_hi=$ac_mid
2042else
2043  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046done
2047case $ac_lo in #((
2048?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2049'') ac_retval=1 ;;
2050esac
2051  else
2052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h.  */
2054$4
2055static long int longval () { return $2; }
2056static unsigned long int ulongval () { return $2; }
2057#include <stdio.h>
2058#include <stdlib.h>
2059int main (void)
2060{
2061
2062  FILE *f = fopen ("conftest.val", "w");
2063  if (! f)
2064    return 1;
2065  if (($2) < 0)
2066    {
2067      long int i = longval ();
2068      if (i != ($2))
2069	return 1;
2070      fprintf (f, "%ld", i);
2071    }
2072  else
2073    {
2074      unsigned long int i = ulongval ();
2075      if (i != ($2))
2076	return 1;
2077      fprintf (f, "%lu", i);
2078    }
2079  /* Do not output a trailing newline, as this causes \r\n confusion
2080     on some platforms.  */
2081  return ferror (f) || fclose (f) != 0;
2082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_run "$LINENO"; then :
2088  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2089else
2090  ac_retval=1
2091fi
2092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2093  conftest.$ac_objext conftest.beam conftest.$ac_ext
2094rm -f conftest.val
2095
2096  fi
2097  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098  as_fn_set_status $ac_retval
2099
2100} # ac_fn_c_compute_int
2101
2102# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2103# ----------------------------------------------------
2104# Tries to find if the field MEMBER exists in type AGGR, after including
2105# INCLUDES, setting cache variable VAR accordingly.
2106ac_fn_c_check_member ()
2107{
2108  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2110$as_echo_n "checking for $2.$3... " >&6; }
2111if eval \${$4+:} false; then :
2112  $as_echo_n "(cached) " >&6
2113else
2114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$5
2117int main (void)
2118{
2119static $2 ac_aggr;
2120if (ac_aggr.$3)
2121return 0;
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127  eval "$4=yes"
2128else
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$5
2132int main (void)
2133{
2134static $2 ac_aggr;
2135if (sizeof ac_aggr.$3)
2136return 0;
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  eval "$4=yes"
2143else
2144  eval "$4=no"
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150eval ac_res=\$$4
2151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155} # ac_fn_c_check_member
2156cat >config.log <<_ACEOF
2157This file contains any messages produced by compilers while
2158running configure, to aid debugging if configure makes a mistake.
2159
2160It was created by c-ares $as_me 1.7.5, which was
2161generated by GNU Autoconf 2.68.  Invocation command line was
2162
2163  $ $0 $@
2164
2165_ACEOF
2166exec 5>>config.log
2167{
2168cat <<_ASUNAME
2169## --------- ##
2170## Platform. ##
2171## --------- ##
2172
2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178
2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2181
2182/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2183/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2186/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2187/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2188/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2189
2190_ASUNAME
2191
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197    $as_echo "PATH: $as_dir"
2198  done
2199IFS=$as_save_IFS
2200
2201} >&5
2202
2203cat >&5 <<_ACEOF
2204
2205
2206## ----------- ##
2207## Core tests. ##
2208## ----------- ##
2209
2210_ACEOF
2211
2212
2213# Keep a trace of the command line.
2214# Strip out --no-create and --no-recursion so they do not pile up.
2215# Strip out --silent because we don't want to record it for future runs.
2216# Also quote any args containing shell meta-characters.
2217# Make two passes to allow for proper duplicate-argument suppression.
2218ac_configure_args=
2219ac_configure_args0=
2220ac_configure_args1=
2221ac_must_keep_next=false
2222for ac_pass in 1 2
2223do
2224  for ac_arg
2225  do
2226    case $ac_arg in
2227    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229    | -silent | --silent | --silen | --sile | --sil)
2230      continue ;;
2231    *\'*)
2232      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233    esac
2234    case $ac_pass in
2235    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236    2)
2237      as_fn_append ac_configure_args1 " '$ac_arg'"
2238      if test $ac_must_keep_next = true; then
2239	ac_must_keep_next=false # Got value, back to normal.
2240      else
2241	case $ac_arg in
2242	  *=* | --config-cache | -C | -disable-* | --disable-* \
2243	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245	  | -with-* | --with-* | -without-* | --without-* | --x)
2246	    case "$ac_configure_args0 " in
2247	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248	    esac
2249	    ;;
2250	  -* ) ac_must_keep_next=true ;;
2251	esac
2252      fi
2253      as_fn_append ac_configure_args " '$ac_arg'"
2254      ;;
2255    esac
2256  done
2257done
2258{ ac_configure_args0=; unset ac_configure_args0;}
2259{ ac_configure_args1=; unset ac_configure_args1;}
2260
2261# When interrupted or exit'd, cleanup temporary files, and complete
2262# config.log.  We remove comments because anyway the quotes in there
2263# would cause problems or look ugly.
2264# WARNING: Use '\'' to represent an apostrophe within the trap.
2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266trap 'exit_status=$?
2267  # Save into config.log some information that might help in debugging.
2268  {
2269    echo
2270
2271    $as_echo "## ---------------- ##
2272## Cache variables. ##
2273## ---------------- ##"
2274    echo
2275    # The following way of writing the cache mishandles newlines in values,
2276(
2277  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278    eval ac_val=\$$ac_var
2279    case $ac_val in #(
2280    *${as_nl}*)
2281      case $ac_var in #(
2282      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284      esac
2285      case $ac_var in #(
2286      _ | IFS | as_nl) ;; #(
2287      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288      *) { eval $ac_var=; unset $ac_var;} ;;
2289      esac ;;
2290    esac
2291  done
2292  (set) 2>&1 |
2293    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294    *${as_nl}ac_space=\ *)
2295      sed -n \
2296	"s/'\''/'\''\\\\'\'''\''/g;
2297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298      ;; #(
2299    *)
2300      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301      ;;
2302    esac |
2303    sort
2304)
2305    echo
2306
2307    $as_echo "## ----------------- ##
2308## Output variables. ##
2309## ----------------- ##"
2310    echo
2311    for ac_var in $ac_subst_vars
2312    do
2313      eval ac_val=\$$ac_var
2314      case $ac_val in
2315      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316      esac
2317      $as_echo "$ac_var='\''$ac_val'\''"
2318    done | sort
2319    echo
2320
2321    if test -n "$ac_subst_files"; then
2322      $as_echo "## ------------------- ##
2323## File substitutions. ##
2324## ------------------- ##"
2325      echo
2326      for ac_var in $ac_subst_files
2327      do
2328	eval ac_val=\$$ac_var
2329	case $ac_val in
2330	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331	esac
2332	$as_echo "$ac_var='\''$ac_val'\''"
2333      done | sort
2334      echo
2335    fi
2336
2337    if test -s confdefs.h; then
2338      $as_echo "## ----------- ##
2339## confdefs.h. ##
2340## ----------- ##"
2341      echo
2342      cat confdefs.h
2343      echo
2344    fi
2345    test "$ac_signal" != 0 &&
2346      $as_echo "$as_me: caught signal $ac_signal"
2347    $as_echo "$as_me: exit $exit_status"
2348  } >&5
2349  rm -f core *.core core.conftest.* &&
2350    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351    exit $exit_status
2352' 0
2353for ac_signal in 1 2 13 15; do
2354  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355done
2356ac_signal=0
2357
2358# confdefs.h avoids OS command line length limits that DEFS can exceed.
2359rm -f -r conftest* confdefs.h
2360
2361$as_echo "/* confdefs.h */" > confdefs.h
2362
2363# Predefined preprocessor variables.
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_NAME "$PACKAGE_NAME"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_VERSION "$PACKAGE_VERSION"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_STRING "$PACKAGE_STRING"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_URL "$PACKAGE_URL"
2387_ACEOF
2388
2389
2390# Let the site file select an alternate cache file if it wants to.
2391# Prefer an explicitly selected file to automatically selected ones.
2392ac_site_file1=NONE
2393ac_site_file2=NONE
2394if test -n "$CONFIG_SITE"; then
2395  # We do not want a PATH search for config.site.
2396  case $CONFIG_SITE in #((
2397    -*)  ac_site_file1=./$CONFIG_SITE;;
2398    */*) ac_site_file1=$CONFIG_SITE;;
2399    *)   ac_site_file1=./$CONFIG_SITE;;
2400  esac
2401elif test "x$prefix" != xNONE; then
2402  ac_site_file1=$prefix/share/config.site
2403  ac_site_file2=$prefix/etc/config.site
2404else
2405  ac_site_file1=$ac_default_prefix/share/config.site
2406  ac_site_file2=$ac_default_prefix/etc/config.site
2407fi
2408for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409do
2410  test "x$ac_site_file" = xNONE && continue
2411  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414    sed 's/^/| /' "$ac_site_file" >&5
2415    . "$ac_site_file" \
2416      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418as_fn_error $? "failed to load site script $ac_site_file
2419See \`config.log' for more details" "$LINENO" 5; }
2420  fi
2421done
2422
2423if test -r "$cache_file"; then
2424  # Some versions of bash will fail to source /dev/null (special files
2425  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2426  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2427    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428$as_echo "$as_me: loading cache $cache_file" >&6;}
2429    case $cache_file in
2430      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431      *)                      . "./$cache_file";;
2432    esac
2433  fi
2434else
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436$as_echo "$as_me: creating cache $cache_file" >&6;}
2437  >$cache_file
2438fi
2439
2440# Check that the precious variables saved in the cache have kept the same
2441# value.
2442ac_cache_corrupted=false
2443for ac_var in $ac_precious_vars; do
2444  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445  eval ac_new_set=\$ac_env_${ac_var}_set
2446  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447  eval ac_new_val=\$ac_env_${ac_var}_value
2448  case $ac_old_set,$ac_new_set in
2449    set,)
2450      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452      ac_cache_corrupted=: ;;
2453    ,set)
2454      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456      ac_cache_corrupted=: ;;
2457    ,);;
2458    *)
2459      if test "x$ac_old_val" != "x$ac_new_val"; then
2460	# differences in whitespace do not lead to failure.
2461	ac_old_val_w=`echo x $ac_old_val`
2462	ac_new_val_w=`echo x $ac_new_val`
2463	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466	  ac_cache_corrupted=:
2467	else
2468	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470	  eval $ac_var=\$ac_old_val
2471	fi
2472	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2473$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2474	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2475$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2476      fi;;
2477  esac
2478  # Pass precious variables to config.status.
2479  if test "$ac_new_set" = set; then
2480    case $ac_new_val in
2481    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482    *) ac_arg=$ac_var=$ac_new_val ;;
2483    esac
2484    case " $ac_configure_args " in
2485      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2486      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487    esac
2488  fi
2489done
2490if $ac_cache_corrupted; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496fi
2497## -------------------- ##
2498## Main body of script. ##
2499## -------------------- ##
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508
2509
2510
2511# using cares-override.m4
2512
2513
2514
2515ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2516
2517:
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2519$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2520    # Check whether --enable-maintainer-mode was given.
2521if test "${enable_maintainer_mode+set}" = set; then :
2522  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2523else
2524  USE_MAINTAINER_MODE=no
2525fi
2526
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2528$as_echo "$USE_MAINTAINER_MODE" >&6; }
2529
2530
2531if test $USE_MAINTAINER_MODE = yes; then
2532  MAINTAINER_MODE_TRUE=
2533  MAINTAINER_MODE_FALSE='#'
2534else
2535  MAINTAINER_MODE_TRUE='#'
2536  MAINTAINER_MODE_FALSE=
2537fi
2538
2539  MAINT=$MAINTAINER_MODE_TRUE
2540
2541
2542
2543
2544        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2545$as_echo_n "checking whether to enable debug build options... " >&6; }
2546  OPT_DEBUG_BUILD="default"
2547  # Check whether --enable-debug was given.
2548if test "${enable_debug+set}" = set; then :
2549  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2550fi
2551
2552  case "$OPT_DEBUG_BUILD" in
2553    no)
2554            want_debug="no"
2555      ;;
2556    default)
2557            want_debug="no"
2558      ;;
2559    *)
2560            want_debug="yes"
2561      ;;
2562  esac
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2564$as_echo "$want_debug" >&6; }
2565
2566
2567      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2568$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2569  OPT_COMPILER_OPTIMIZE="default"
2570  # Check whether --enable-optimize was given.
2571if test "${enable_optimize+set}" = set; then :
2572  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2573fi
2574
2575  case "$OPT_COMPILER_OPTIMIZE" in
2576    no)
2577                              want_optimize="no"
2578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579$as_echo "no" >&6; }
2580      ;;
2581    default)
2582                                                                        if test "$want_debug" = "yes"; then
2583        want_optimize="assume_no"
2584        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2585$as_echo "not specified (assuming no)" >&6; }
2586      else
2587        want_optimize="assume_yes"
2588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2589$as_echo "not specified (assuming yes)" >&6; }
2590      fi
2591      ;;
2592    *)
2593                              want_optimize="yes"
2594      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595$as_echo "yes" >&6; }
2596      ;;
2597  esac
2598
2599
2600        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2601$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2602  OPT_COMPILER_WARNINGS="default"
2603  # Check whether --enable-warnings was given.
2604if test "${enable_warnings+set}" = set; then :
2605  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2606fi
2607
2608  case "$OPT_COMPILER_WARNINGS" in
2609    no)
2610            want_warnings="no"
2611      ;;
2612    default)
2613                  want_warnings="$want_debug"
2614      ;;
2615    *)
2616            want_warnings="yes"
2617      ;;
2618  esac
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2620$as_echo "$want_warnings" >&6; }
2621
2622
2623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2624$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2625  OPT_COMPILER_WERROR="default"
2626  # Check whether --enable-werror was given.
2627if test "${enable_werror+set}" = set; then :
2628  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2629fi
2630
2631  case "$OPT_COMPILER_WERROR" in
2632    no)
2633            want_werror="no"
2634      ;;
2635    default)
2636            want_werror="no"
2637      ;;
2638    *)
2639            want_werror="yes"
2640      ;;
2641  esac
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2643$as_echo "$want_werror" >&6; }
2644
2645
2646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2647$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2648  OPT_CURLDEBUG_BUILD="default"
2649  # Check whether --enable-curldebug was given.
2650if test "${enable_curldebug+set}" = set; then :
2651  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2652fi
2653
2654  case "$OPT_CURLDEBUG_BUILD" in
2655    no)
2656            want_curldebug="no"
2657      ;;
2658    default)
2659            want_curldebug="no"
2660      ;;
2661    *)
2662                                                      want_curldebug="yes"
2663      ;;
2664  esac
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2666$as_echo "$want_curldebug" >&6; }
2667
2668
2669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2670$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2671  OPT_SYMBOL_HIDING="default"
2672  # Check whether --enable-symbol-hiding was given.
2673if test "${enable_symbol_hiding+set}" = set; then :
2674  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2675fi
2676
2677  case "$OPT_SYMBOL_HIDING" in
2678    no)
2679                              want_symbol_hiding="no"
2680      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682      ;;
2683    default)
2684                  want_symbol_hiding="yes"
2685      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686$as_echo "yes" >&6; }
2687      ;;
2688    *)
2689                        want_symbol_hiding="yes"
2690      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2691$as_echo "yes" >&6; }
2692      ;;
2693  esac
2694
2695
2696
2697
2698
2699# Extract the first word of "sed", so it can be a program name with args.
2700set dummy sed; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_path_SED+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  case $SED in
2707  [\\/]* | ?:[\\/]*)
2708  ac_cv_path_SED="$SED" # Let the user override the test with a path.
2709  ;;
2710  *)
2711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712as_dummy="$PATH:/usr/bin:/usr/local/bin"
2713for as_dir in $as_dummy
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717    for ac_exec_ext in '' $ac_executable_extensions; do
2718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724  done
2725IFS=$as_save_IFS
2726
2727  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
2728  ;;
2729esac
2730fi
2731SED=$ac_cv_path_SED
2732if test -n "$SED"; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
2734$as_echo "$SED" >&6; }
2735else
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741if test -z "$SED" || test "$SED" = "not_found"; then
2742  as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
2743fi
2744
2745
2746# Extract the first word of "grep", so it can be a program name with args.
2747set dummy grep; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if ${ac_cv_path_GREP+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  case $GREP in
2754  [\\/]* | ?:[\\/]*)
2755  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2756  ;;
2757  *)
2758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759as_dummy="$PATH:/usr/bin:/usr/local/bin"
2760for as_dir in $as_dummy
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
2775  ;;
2776esac
2777fi
2778GREP=$ac_cv_path_GREP
2779if test -n "$GREP"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
2781$as_echo "$GREP" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788if test -z "$GREP" || test "$GREP" = "not_found"; then
2789  as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
2790fi
2791
2792
2793if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2795$as_echo_n "checking for egrep... " >&6; }
2796  EGREP="$GREP -E"
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
2798$as_echo "$EGREP" >&6; }
2799else
2800  # Extract the first word of "egrep", so it can be a program name with args.
2801set dummy egrep; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if ${ac_cv_path_EGREP+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  case $EGREP in
2808  [\\/]* | ?:[\\/]*)
2809  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2810  ;;
2811  *)
2812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813as_dummy="$PATH:/usr/bin:/usr/local/bin"
2814for as_dir in $as_dummy
2815do
2816  IFS=$as_save_IFS
2817  test -z "$as_dir" && as_dir=.
2818    for ac_exec_ext in '' $ac_executable_extensions; do
2819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
2821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825  done
2826IFS=$as_save_IFS
2827
2828  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
2829  ;;
2830esac
2831fi
2832EGREP=$ac_cv_path_EGREP
2833if test -n "$EGREP"; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
2835$as_echo "$EGREP" >&6; }
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$EGREP" || test "$EGREP" = "not_found"; then
2844  as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
2845fi
2846
2847
2848if test -n "$ac_tool_prefix"; then
2849  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}ar; ac_word=$2
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if ${ac_cv_path_AR+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  case $AR in
2857  [\\/]* | ?:[\\/]*)
2858  ac_cv_path_AR="$AR" # Let the user override the test with a path.
2859  ;;
2860  *)
2861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862as_dummy="$PATH:/usr/bin:/usr/local/bin"
2863for as_dir in $as_dummy
2864do
2865  IFS=$as_save_IFS
2866  test -z "$as_dir" && as_dir=.
2867    for ac_exec_ext in '' $ac_executable_extensions; do
2868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871    break 2
2872  fi
2873done
2874  done
2875IFS=$as_save_IFS
2876
2877  ;;
2878esac
2879fi
2880AR=$ac_cv_path_AR
2881if test -n "$AR"; then
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2883$as_echo "$AR" >&6; }
2884else
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886$as_echo "no" >&6; }
2887fi
2888
2889
2890fi
2891if test -z "$ac_cv_path_AR"; then
2892  ac_pt_AR=$AR
2893  # Extract the first word of "ar", so it can be a program name with args.
2894set dummy ar; ac_word=$2
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896$as_echo_n "checking for $ac_word... " >&6; }
2897if ${ac_cv_path_ac_pt_AR+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  case $ac_pt_AR in
2901  [\\/]* | ?:[\\/]*)
2902  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
2903  ;;
2904  *)
2905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906as_dummy="$PATH:/usr/bin:/usr/local/bin"
2907for as_dir in $as_dummy
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911    for ac_exec_ext in '' $ac_executable_extensions; do
2912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
2914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918  done
2919IFS=$as_save_IFS
2920
2921  ;;
2922esac
2923fi
2924ac_pt_AR=$ac_cv_path_ac_pt_AR
2925if test -n "$ac_pt_AR"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
2927$as_echo "$ac_pt_AR" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933  if test "x$ac_pt_AR" = x; then
2934    AR="not_found"
2935  else
2936    case $cross_compiling:$ac_tool_warned in
2937yes:)
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940ac_tool_warned=yes ;;
2941esac
2942    AR=$ac_pt_AR
2943  fi
2944else
2945  AR="$ac_cv_path_AR"
2946fi
2947
2948if test -z "$AR" || test "$AR" = "not_found"; then
2949  as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
2950fi
2951
2952
2953if test -f ${srcdir}/ares_build.h; then
2954  rm -f ${srcdir}/ares_build.h
2955fi
2956
2957am__api_version="1.9"
2958ac_aux_dir=
2959for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2960  if test -f "$ac_dir/install-sh"; then
2961    ac_aux_dir=$ac_dir
2962    ac_install_sh="$ac_aux_dir/install-sh -c"
2963    break
2964  elif test -f "$ac_dir/install.sh"; then
2965    ac_aux_dir=$ac_dir
2966    ac_install_sh="$ac_aux_dir/install.sh -c"
2967    break
2968  elif test -f "$ac_dir/shtool"; then
2969    ac_aux_dir=$ac_dir
2970    ac_install_sh="$ac_aux_dir/shtool install -c"
2971    break
2972  fi
2973done
2974if test -z "$ac_aux_dir"; then
2975  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2976fi
2977
2978# These three variables are undocumented and unsupported,
2979# and are intended to be withdrawn in a future Autoconf release.
2980# They can cause serious problems if a builder's source tree is in a directory
2981# whose full name contains unusual characters.
2982ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2983ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2984ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2985
2986
2987# Find a good install program.  We prefer a C program (faster),
2988# so one script is as good as another.  But avoid the broken or
2989# incompatible versions:
2990# SysV /etc/install, /usr/sbin/install
2991# SunOS /usr/etc/install
2992# IRIX /sbin/install
2993# AIX /bin/install
2994# AmigaOS /C/install, which installs bootblocks on floppy discs
2995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2998# OS/2's system install, which has a completely different semantic
2999# ./install, which can be erroneously created by make from ./install.sh.
3000# Reject install programs that cannot install multiple files.
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3002$as_echo_n "checking for a BSD-compatible install... " >&6; }
3003if test -z "$INSTALL"; then
3004if ${ac_cv_path_install+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012    # Account for people who put trailing slashes in PATH elements.
3013case $as_dir/ in #((
3014  ./ | .// | /[cC]/* | \
3015  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3016  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3017  /usr/ucb/* ) ;;
3018  *)
3019    # OSF1 and SCO ODT 3.0 have their own names for install.
3020    # Don't use installbsd from OSF since it installs stuff as root
3021    # by default.
3022    for ac_prog in ginstall scoinst install; do
3023      for ac_exec_ext in '' $ac_executable_extensions; do
3024	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3025	  if test $ac_prog = install &&
3026	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027	    # AIX install.  It has an incompatible calling convention.
3028	    :
3029	  elif test $ac_prog = install &&
3030	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3031	    # program-specific install script used by HP pwplus--don't use.
3032	    :
3033	  else
3034	    rm -rf conftest.one conftest.two conftest.dir
3035	    echo one > conftest.one
3036	    echo two > conftest.two
3037	    mkdir conftest.dir
3038	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3039	      test -s conftest.one && test -s conftest.two &&
3040	      test -s conftest.dir/conftest.one &&
3041	      test -s conftest.dir/conftest.two
3042	    then
3043	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3044	      break 3
3045	    fi
3046	  fi
3047	fi
3048      done
3049    done
3050    ;;
3051esac
3052
3053  done
3054IFS=$as_save_IFS
3055
3056rm -rf conftest.one conftest.two conftest.dir
3057
3058fi
3059  if test "${ac_cv_path_install+set}" = set; then
3060    INSTALL=$ac_cv_path_install
3061  else
3062    # As a last resort, use the slow shell script.  Don't cache a
3063    # value for INSTALL within a source directory, because that will
3064    # break other packages using the cache if that directory is
3065    # removed, or if the value is a relative name.
3066    INSTALL=$ac_install_sh
3067  fi
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3070$as_echo "$INSTALL" >&6; }
3071
3072# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3073# It thinks the first close brace ends the variable substitution.
3074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3075
3076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3077
3078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3079
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3081$as_echo_n "checking whether build environment is sane... " >&6; }
3082# Just in case
3083sleep 1
3084echo timestamp > conftest.file
3085# Do `set' in a subshell so we don't clobber the current shell's
3086# arguments.  Must try -L first in case configure is actually a
3087# symlink; some systems play weird games with the mod time of symlinks
3088# (eg FreeBSD returns the mod time of the symlink's containing
3089# directory).
3090if (
3091   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3092   if test "$*" = "X"; then
3093      # -L didn't work.
3094      set X `ls -t $srcdir/configure conftest.file`
3095   fi
3096   rm -f conftest.file
3097   if test "$*" != "X $srcdir/configure conftest.file" \
3098      && test "$*" != "X conftest.file $srcdir/configure"; then
3099
3100      # If neither matched, then we have a broken ls.  This can happen
3101      # if, for instance, CONFIG_SHELL is bash and it inherits a
3102      # broken ls alias from the environment.  This has actually
3103      # happened.  Such a system could not be considered "sane".
3104      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3105alias in your environment" "$LINENO" 5
3106   fi
3107
3108   test "$2" = conftest.file
3109   )
3110then
3111   # Ok.
3112   :
3113else
3114   as_fn_error $? "newly created file is older than distributed files!
3115Check your system clock" "$LINENO" 5
3116fi
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118$as_echo "yes" >&6; }
3119test "$program_prefix" != NONE &&
3120  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3121# Use a double $ so make ignores it.
3122test "$program_suffix" != NONE &&
3123  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3124# Double any \ or $.
3125# By default was `s,x,x', remove it if useless.
3126ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3127program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3128
3129# expand $ac_aux_dir to an absolute path
3130am_aux_dir=`cd $ac_aux_dir && pwd`
3131
3132test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3133# Use eval to expand $SHELL
3134if eval "$MISSING --run true"; then
3135  am_missing_run="$MISSING --run "
3136else
3137  am_missing_run=
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3139$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3140fi
3141
3142if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3143  # We used to keeping the `.' as first argument, in order to
3144  # allow $(mkdir_p) to be used without argument.  As in
3145  #   $(mkdir_p) $(somedir)
3146  # where $(somedir) is conditionally defined.  However this is wrong
3147  # for two reasons:
3148  #  1. if the package is installed by a user who cannot write `.'
3149  #     make install will fail,
3150  #  2. the above comment should most certainly read
3151  #     $(mkdir_p) $(DESTDIR)$(somedir)
3152  #     so it does not work when $(somedir) is undefined and
3153  #     $(DESTDIR) is not.
3154  #  To support the latter case, we have to write
3155  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3156  #  so the `.' trick is pointless.
3157  mkdir_p='mkdir -p --'
3158else
3159  # On NextStep and OpenStep, the `mkdir' command does not
3160  # recognize any option.  It will interpret all options as
3161  # directories to create, and then abort because `.' already
3162  # exists.
3163  for d in ./-p ./--version;
3164  do
3165    test -d $d && rmdir $d
3166  done
3167  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3168  if test -f "$ac_aux_dir/mkinstalldirs"; then
3169    mkdir_p='$(mkinstalldirs)'
3170  else
3171    mkdir_p='$(install_sh) -d'
3172  fi
3173fi
3174
3175for ac_prog in gawk mawk nawk awk
3176do
3177  # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_AWK+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  if test -n "$AWK"; then
3185  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194    ac_cv_prog_AWK="$ac_prog"
3195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204AWK=$ac_cv_prog_AWK
3205if test -n "$AWK"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3207$as_echo "$AWK" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214  test -n "$AWK" && break
3215done
3216
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3218$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3219set x ${MAKE-make}
3220ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3221if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3222  $as_echo_n "(cached) " >&6
3223else
3224  cat >conftest.make <<\_ACEOF
3225SHELL = /bin/sh
3226all:
3227	@echo '@@@%%%=$(MAKE)=@@@%%%'
3228_ACEOF
3229# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3230case `${MAKE-make} -f conftest.make 2>/dev/null` in
3231  *@@@%%%=?*=@@@%%%*)
3232    eval ac_cv_prog_make_${ac_make}_set=yes;;
3233  *)
3234    eval ac_cv_prog_make_${ac_make}_set=no;;
3235esac
3236rm -f conftest.make
3237fi
3238if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241  SET_MAKE=
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245  SET_MAKE="MAKE=${MAKE-make}"
3246fi
3247
3248rm -rf .tst 2>/dev/null
3249mkdir .tst 2>/dev/null
3250if test -d .tst; then
3251  am__leading_dot=.
3252else
3253  am__leading_dot=_
3254fi
3255rmdir .tst 2>/dev/null
3256
3257# test to see if srcdir already configured
3258if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259   test -f $srcdir/config.status; then
3260  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261fi
3262
3263# test whether we have cygpath
3264if test -z "$CYGPATH_W"; then
3265  if (cygpath --version) >/dev/null 2>/dev/null; then
3266    CYGPATH_W='cygpath -w'
3267  else
3268    CYGPATH_W=echo
3269  fi
3270fi
3271
3272
3273# Define the identity of the package.
3274 PACKAGE='c-ares'
3275 VERSION='1.7.5'
3276
3277
3278cat >>confdefs.h <<_ACEOF
3279#define PACKAGE "$PACKAGE"
3280_ACEOF
3281
3282
3283cat >>confdefs.h <<_ACEOF
3284#define VERSION "$VERSION"
3285_ACEOF
3286
3287# Some tools Automake needs.
3288
3289ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290
3291
3292AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293
3294
3295AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296
3297
3298AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299
3300
3301MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302
3303install_sh=${install_sh-"$am_aux_dir/install-sh"}
3304
3305# Installed binaries are usually stripped using `strip' when the user
3306# run `make install-strip'.  However `strip' might not be the right
3307# tool to use in cross-compilation environments, therefore Automake
3308# will honor the `STRIP' environment variable to overrule this program.
3309if test "$cross_compiling" != no; then
3310  if test -n "$ac_tool_prefix"; then
3311  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3312set dummy ${ac_tool_prefix}strip; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_STRIP+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$STRIP"; then
3319  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338STRIP=$ac_cv_prog_STRIP
3339if test -n "$STRIP"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3341$as_echo "$STRIP" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347
3348fi
3349if test -z "$ac_cv_prog_STRIP"; then
3350  ac_ct_STRIP=$STRIP
3351  # Extract the first word of "strip", so it can be a program name with args.
3352set dummy strip; ac_word=$2
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354$as_echo_n "checking for $ac_word... " >&6; }
3355if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  if test -n "$ac_ct_STRIP"; then
3359  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3360else
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364  IFS=$as_save_IFS
3365  test -z "$as_dir" && as_dir=.
3366    for ac_exec_ext in '' $ac_executable_extensions; do
3367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368    ac_cv_prog_ac_ct_STRIP="strip"
3369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370    break 2
3371  fi
3372done
3373  done
3374IFS=$as_save_IFS
3375
3376fi
3377fi
3378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3379if test -n "$ac_ct_STRIP"; then
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3381$as_echo "$ac_ct_STRIP" >&6; }
3382else
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
3385fi
3386
3387  if test "x$ac_ct_STRIP" = x; then
3388    STRIP=":"
3389  else
3390    case $cross_compiling:$ac_tool_warned in
3391yes:)
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394ac_tool_warned=yes ;;
3395esac
3396    STRIP=$ac_ct_STRIP
3397  fi
3398else
3399  STRIP="$ac_cv_prog_STRIP"
3400fi
3401
3402fi
3403INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3404
3405# We need awk for the "check" target.  The system "awk" is bad on
3406# some platforms.
3407# Always define AMTAR for backward compatibility.
3408
3409AMTAR=${AMTAR-"${am_missing_run}tar"}
3410
3411am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3412
3413
3414
3415
3416
3417
3418
3419# Make sure we can run config.sub.
3420$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3421  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3422
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3424$as_echo_n "checking build system type... " >&6; }
3425if ${ac_cv_build+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  ac_build_alias=$build_alias
3429test "x$ac_build_alias" = x &&
3430  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3431test "x$ac_build_alias" = x &&
3432  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3433ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3434  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3435
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3438$as_echo "$ac_cv_build" >&6; }
3439case $ac_cv_build in
3440*-*-*) ;;
3441*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3442esac
3443build=$ac_cv_build
3444ac_save_IFS=$IFS; IFS='-'
3445set x $ac_cv_build
3446shift
3447build_cpu=$1
3448build_vendor=$2
3449shift; shift
3450# Remember, the first character of IFS is used to create $*,
3451# except with old shells:
3452build_os=$*
3453IFS=$ac_save_IFS
3454case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3455
3456
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3458$as_echo_n "checking host system type... " >&6; }
3459if ${ac_cv_host+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test "x$host_alias" = x; then
3463  ac_cv_host=$ac_cv_build
3464else
3465  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3466    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3467fi
3468
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3471$as_echo "$ac_cv_host" >&6; }
3472case $ac_cv_host in
3473*-*-*) ;;
3474*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3475esac
3476host=$ac_cv_host
3477ac_save_IFS=$IFS; IFS='-'
3478set x $ac_cv_host
3479shift
3480host_cpu=$1
3481host_vendor=$2
3482shift; shift
3483# Remember, the first character of IFS is used to create $*,
3484# except with old shells:
3485host_os=$*
3486IFS=$ac_save_IFS
3487case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3488
3489
3490
3491cat >>confdefs.h <<_ACEOF
3492#define OS "${host}"
3493_ACEOF
3494
3495
3496DEPDIR="${am__leading_dot}deps"
3497
3498ac_config_commands="$ac_config_commands depfiles"
3499
3500
3501am_make=${MAKE-make}
3502cat > confinc << 'END'
3503am__doit:
3504	@echo done
3505.PHONY: am__doit
3506END
3507# If we don't find an include directive, just comment out the code.
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3509$as_echo_n "checking for style of include used by $am_make... " >&6; }
3510am__include="#"
3511am__quote=
3512_am_result=none
3513# First try GNU make style include.
3514echo "include confinc" > confmf
3515# We grep out `Entering directory' and `Leaving directory'
3516# messages which can occur if `w' ends up in MAKEFLAGS.
3517# In particular we don't look at `^make:' because GNU make might
3518# be invoked under some other name (usually "gmake"), in which
3519# case it prints its new name instead of `make'.
3520if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3521   am__include=include
3522   am__quote=
3523   _am_result=GNU
3524fi
3525# Now try BSD make style include.
3526if test "$am__include" = "#"; then
3527   echo '.include "confinc"' > confmf
3528   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3529      am__include=.include
3530      am__quote="\""
3531      _am_result=BSD
3532   fi
3533fi
3534
3535
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3537$as_echo "$_am_result" >&6; }
3538rm -f confinc confmf
3539
3540# Check whether --enable-dependency-tracking was given.
3541if test "${enable_dependency_tracking+set}" = set; then :
3542  enableval=$enable_dependency_tracking;
3543fi
3544
3545if test "x$enable_dependency_tracking" != xno; then
3546  am_depcomp="$ac_aux_dir/depcomp"
3547  AMDEPBACKSLASH='\'
3548fi
3549
3550
3551if test "x$enable_dependency_tracking" != xno; then
3552  AMDEP_TRUE=
3553  AMDEP_FALSE='#'
3554else
3555  AMDEP_TRUE='#'
3556  AMDEP_FALSE=
3557fi
3558
3559
3560
3561
3562  ac_save_CFLAGS="$CFLAGS"
3563  ac_save_CPPFLAGS="$CPPFLAGS"
3564  ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569if test -n "$ac_tool_prefix"; then
3570  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3571set dummy ${ac_tool_prefix}gcc; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
3574if ${ac_cv_prog_CC+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  if test -n "$CC"; then
3578  ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583  IFS=$as_save_IFS
3584  test -z "$as_dir" && as_dir=.
3585    for ac_exec_ext in '' $ac_executable_extensions; do
3586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589    break 2
3590  fi
3591done
3592  done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597CC=$ac_cv_prog_CC
3598if test -n "$CC"; then
3599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600$as_echo "$CC" >&6; }
3601else
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604fi
3605
3606
3607fi
3608if test -z "$ac_cv_prog_CC"; then
3609  ac_ct_CC=$CC
3610  # Extract the first word of "gcc", so it can be a program name with args.
3611set dummy gcc; ac_word=$2
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613$as_echo_n "checking for $ac_word... " >&6; }
3614if ${ac_cv_prog_ac_ct_CC+:} false; then :
3615  $as_echo_n "(cached) " >&6
3616else
3617  if test -n "$ac_ct_CC"; then
3618  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619else
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623  IFS=$as_save_IFS
3624  test -z "$as_dir" && as_dir=.
3625    for ac_exec_ext in '' $ac_executable_extensions; do
3626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627    ac_cv_prog_ac_ct_CC="gcc"
3628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629    break 2
3630  fi
3631done
3632  done
3633IFS=$as_save_IFS
3634
3635fi
3636fi
3637ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638if test -n "$ac_ct_CC"; then
3639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640$as_echo "$ac_ct_CC" >&6; }
3641else
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644fi
3645
3646  if test "x$ac_ct_CC" = x; then
3647    CC=""
3648  else
3649    case $cross_compiling:$ac_tool_warned in
3650yes:)
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653ac_tool_warned=yes ;;
3654esac
3655    CC=$ac_ct_CC
3656  fi
3657else
3658  CC="$ac_cv_prog_CC"
3659fi
3660
3661if test -z "$CC"; then
3662          if test -n "$ac_tool_prefix"; then
3663    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3664set dummy ${ac_tool_prefix}cc; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if ${ac_cv_prog_CC+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$CC"; then
3671  ac_cv_prog_CC="$CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680    ac_cv_prog_CC="${ac_tool_prefix}cc"
3681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690CC=$ac_cv_prog_CC
3691if test -n "$CC"; then
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693$as_echo "$CC" >&6; }
3694else
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699
3700  fi
3701fi
3702if test -z "$CC"; then
3703  # Extract the first word of "cc", so it can be a program name with args.
3704set dummy cc; ac_word=$2
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
3707if ${ac_cv_prog_CC+:} false; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  if test -n "$CC"; then
3711  ac_cv_prog_CC="$CC" # Let the user override the test.
3712else
3713  ac_prog_rejected=no
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717  IFS=$as_save_IFS
3718  test -z "$as_dir" && as_dir=.
3719    for ac_exec_ext in '' $ac_executable_extensions; do
3720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3722       ac_prog_rejected=yes
3723       continue
3724     fi
3725    ac_cv_prog_CC="cc"
3726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727    break 2
3728  fi
3729done
3730  done
3731IFS=$as_save_IFS
3732
3733if test $ac_prog_rejected = yes; then
3734  # We found a bogon in the path, so make sure we never use it.
3735  set dummy $ac_cv_prog_CC
3736  shift
3737  if test $# != 0; then
3738    # We chose a different compiler from the bogus one.
3739    # However, it has the same basename, so the bogon will be chosen
3740    # first if we set CC to just the basename; use the full file name.
3741    shift
3742    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3743  fi
3744fi
3745fi
3746fi
3747CC=$ac_cv_prog_CC
3748if test -n "$CC"; then
3749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750$as_echo "$CC" >&6; }
3751else
3752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753$as_echo "no" >&6; }
3754fi
3755
3756
3757fi
3758if test -z "$CC"; then
3759  if test -n "$ac_tool_prefix"; then
3760  for ac_prog in cl.exe
3761  do
3762    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if ${ac_cv_prog_CC+:} false; then :
3767  $as_echo_n "(cached) " >&6
3768else
3769  if test -n "$CC"; then
3770  ac_cv_prog_CC="$CC" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775  IFS=$as_save_IFS
3776  test -z "$as_dir" && as_dir=.
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784  done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789CC=$ac_cv_prog_CC
3790if test -n "$CC"; then
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792$as_echo "$CC" >&6; }
3793else
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799    test -n "$CC" && break
3800  done
3801fi
3802if test -z "$CC"; then
3803  ac_ct_CC=$CC
3804  for ac_prog in cl.exe
3805do
3806  # Extract the first word of "$ac_prog", so it can be a program name with args.
3807set dummy $ac_prog; ac_word=$2
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809$as_echo_n "checking for $ac_word... " >&6; }
3810if ${ac_cv_prog_ac_ct_CC+:} false; then :
3811  $as_echo_n "(cached) " >&6
3812else
3813  if test -n "$ac_ct_CC"; then
3814  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821    for ac_exec_ext in '' $ac_executable_extensions; do
3822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823    ac_cv_prog_ac_ct_CC="$ac_prog"
3824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825    break 2
3826  fi
3827done
3828  done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834if test -n "$ac_ct_CC"; then
3835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836$as_echo "$ac_ct_CC" >&6; }
3837else
3838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
3840fi
3841
3842
3843  test -n "$ac_ct_CC" && break
3844done
3845
3846  if test "x$ac_ct_CC" = x; then
3847    CC=""
3848  else
3849    case $cross_compiling:$ac_tool_warned in
3850yes:)
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853ac_tool_warned=yes ;;
3854esac
3855    CC=$ac_ct_CC
3856  fi
3857fi
3858
3859fi
3860
3861
3862test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864as_fn_error $? "no acceptable C compiler found in \$PATH
3865See \`config.log' for more details" "$LINENO" 5; }
3866
3867# Provide some information about the compiler.
3868$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3869set X $ac_compile
3870ac_compiler=$2
3871for ac_option in --version -v -V -qversion; do
3872  { { ac_try="$ac_compiler $ac_option >&5"
3873case "(($ac_try" in
3874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875  *) ac_try_echo=$ac_try;;
3876esac
3877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878$as_echo "$ac_try_echo"; } >&5
3879  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3880  ac_status=$?
3881  if test -s conftest.err; then
3882    sed '10a\
3883... rest of stderr output deleted ...
3884         10q' conftest.err >conftest.er1
3885    cat conftest.er1 >&5
3886  fi
3887  rm -f conftest.er1 conftest.err
3888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889  test $ac_status = 0; }
3890done
3891
3892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int main (void)
3896{
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902ac_clean_files_save=$ac_clean_files
3903ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3904# Try to create an executable without -o first, disregard a.out.
3905# It will help us diagnose broken compilers, and finding out an intuition
3906# of exeext.
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3908$as_echo_n "checking whether the C compiler works... " >&6; }
3909ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3910
3911# The possible output files:
3912ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3913
3914ac_rmfiles=
3915for ac_file in $ac_files
3916do
3917  case $ac_file in
3918    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3920  esac
3921done
3922rm -f $ac_rmfiles
3923
3924if { { ac_try="$ac_link_default"
3925case "(($ac_try" in
3926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927  *) ac_try_echo=$ac_try;;
3928esac
3929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930$as_echo "$ac_try_echo"; } >&5
3931  (eval "$ac_link_default") 2>&5
3932  ac_status=$?
3933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934  test $ac_status = 0; }; then :
3935  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3936# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3937# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3938# so that the user can short-circuit this test for compilers unknown to
3939# Autoconf.
3940for ac_file in $ac_files ''
3941do
3942  test -f "$ac_file" || continue
3943  case $ac_file in
3944    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3945	;;
3946    [ab].out )
3947	# We found the default executable, but exeext='' is most
3948	# certainly right.
3949	break;;
3950    *.* )
3951	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3952	then :; else
3953	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954	fi
3955	# We set ac_cv_exeext here because the later test for it is not
3956	# safe: cross compilers may not add the suffix if given an `-o'
3957	# argument, so we may need to know it at that point already.
3958	# Even if this section looks crufty: it has the advantage of
3959	# actually working.
3960	break;;
3961    * )
3962	break;;
3963  esac
3964done
3965test "$ac_cv_exeext" = no && ac_cv_exeext=
3966
3967else
3968  ac_file=''
3969fi
3970if test -z "$ac_file"; then :
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973$as_echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978as_fn_error 77 "C compiler cannot create executables
3979See \`config.log' for more details" "$LINENO" 5; }
3980else
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982$as_echo "yes" >&6; }
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985$as_echo_n "checking for C compiler default output file name... " >&6; }
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987$as_echo "$ac_file" >&6; }
3988ac_exeext=$ac_cv_exeext
3989
3990rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3991ac_clean_files=$ac_clean_files_save
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993$as_echo_n "checking for suffix of executables... " >&6; }
3994if { { ac_try="$ac_link"
3995case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998esac
3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000$as_echo "$ac_try_echo"; } >&5
4001  (eval "$ac_link") 2>&5
4002  ac_status=$?
4003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004  test $ac_status = 0; }; then :
4005  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4007# work properly (i.e., refer to `conftest.exe'), while it won't with
4008# `rm'.
4009for ac_file in conftest.exe conftest conftest.*; do
4010  test -f "$ac_file" || continue
4011  case $ac_file in
4012    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014	  break;;
4015    * ) break;;
4016  esac
4017done
4018else
4019  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4022See \`config.log' for more details" "$LINENO" 5; }
4023fi
4024rm -f conftest conftest$ac_cv_exeext
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026$as_echo "$ac_cv_exeext" >&6; }
4027
4028rm -f conftest.$ac_ext
4029EXEEXT=$ac_cv_exeext
4030ac_exeext=$EXEEXT
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033#include <stdio.h>
4034int main (void)
4035{
4036FILE *f = fopen ("conftest.out", "w");
4037 return ferror (f) || fclose (f) != 0;
4038
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043ac_clean_files="$ac_clean_files conftest.out"
4044# Check that the compiler produces executables we can run.  If not, either
4045# the compiler is broken, or we cross compile.
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4047$as_echo_n "checking whether we are cross compiling... " >&6; }
4048if test "$cross_compiling" != yes; then
4049  { { ac_try="$ac_link"
4050case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055$as_echo "$ac_try_echo"; } >&5
4056  (eval "$ac_link") 2>&5
4057  ac_status=$?
4058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059  test $ac_status = 0; }
4060  if { ac_try='./conftest$ac_cv_exeext'
4061  { { case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066$as_echo "$ac_try_echo"; } >&5
4067  (eval "$ac_try") 2>&5
4068  ac_status=$?
4069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070  test $ac_status = 0; }; }; then
4071    cross_compiling=no
4072  else
4073    if test "$cross_compiling" = maybe; then
4074	cross_compiling=yes
4075    else
4076	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078as_fn_error $? "cannot run C compiled programs.
4079If you meant to cross compile, use \`--host'.
4080See \`config.log' for more details" "$LINENO" 5; }
4081    fi
4082  fi
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4085$as_echo "$cross_compiling" >&6; }
4086
4087rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4088ac_clean_files=$ac_clean_files_save
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4090$as_echo_n "checking for suffix of object files... " >&6; }
4091if ${ac_cv_objext+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h.  */
4096
4097int main (void)
4098{
4099
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.o conftest.obj
4105if { { ac_try="$ac_compile"
4106case "(($ac_try" in
4107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108  *) ac_try_echo=$ac_try;;
4109esac
4110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4111$as_echo "$ac_try_echo"; } >&5
4112  (eval "$ac_compile") 2>&5
4113  ac_status=$?
4114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115  test $ac_status = 0; }; then :
4116  for ac_file in conftest.o conftest.obj conftest.*; do
4117  test -f "$ac_file" || continue;
4118  case $ac_file in
4119    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4120    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4121       break;;
4122  esac
4123done
4124else
4125  $as_echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error $? "cannot compute suffix of object files: cannot compile
4131See \`config.log' for more details" "$LINENO" 5; }
4132fi
4133rm -f conftest.$ac_cv_objext conftest.$ac_ext
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4136$as_echo "$ac_cv_objext" >&6; }
4137OBJEXT=$ac_cv_objext
4138ac_objext=$OBJEXT
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4141if ${ac_cv_c_compiler_gnu+:} false; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146
4147int main (void)
4148{
4149#ifndef __GNUC__
4150       choke me
4151#endif
4152
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157if ac_fn_c_try_compile "$LINENO"; then :
4158  ac_compiler_gnu=yes
4159else
4160  ac_compiler_gnu=no
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163ac_cv_c_compiler_gnu=$ac_compiler_gnu
4164
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4167$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4168if test $ac_compiler_gnu = yes; then
4169  GCC=yes
4170else
4171  GCC=
4172fi
4173ac_test_CFLAGS=${CFLAGS+set}
4174ac_save_CFLAGS=$CFLAGS
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4176$as_echo_n "checking whether $CC accepts -g... " >&6; }
4177if ${ac_cv_prog_cc_g+:} false; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  ac_save_c_werror_flag=$ac_c_werror_flag
4181   ac_c_werror_flag=yes
4182   ac_cv_prog_cc_g=no
4183   CFLAGS="-g"
4184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186
4187int main (void)
4188{
4189
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"; then :
4195  ac_cv_prog_cc_g=yes
4196else
4197  CFLAGS=""
4198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int main (void)
4202{
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_compile "$LINENO"; then :
4209
4210else
4211  ac_c_werror_flag=$ac_save_c_werror_flag
4212	 CFLAGS="-g"
4213	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215
4216int main (void)
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"; then :
4224  ac_cv_prog_cc_g=yes
4225fi
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229fi
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231   ac_c_werror_flag=$ac_save_c_werror_flag
4232fi
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4234$as_echo "$ac_cv_prog_cc_g" >&6; }
4235if test "$ac_test_CFLAGS" = set; then
4236  CFLAGS=$ac_save_CFLAGS
4237elif test $ac_cv_prog_cc_g = yes; then
4238  if test "$GCC" = yes; then
4239    CFLAGS="-g -O2"
4240  else
4241    CFLAGS="-g"
4242  fi
4243else
4244  if test "$GCC" = yes; then
4245    CFLAGS="-O2"
4246  else
4247    CFLAGS=
4248  fi
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252if ${ac_cv_prog_cc_c89+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  ac_cv_prog_cc_c89=no
4256ac_save_CC=$CC
4257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259#include <stdarg.h>
4260#include <stdio.h>
4261#include <sys/types.h>
4262#include <sys/stat.h>
4263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4264struct buf { int x; };
4265FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266static char *e (p, i)
4267     char **p;
4268     int i;
4269{
4270  return p[i];
4271}
4272static char *f (char * (*g) (char **, int), char **p, ...)
4273{
4274  char *s;
4275  va_list v;
4276  va_start (v,p);
4277  s = g (p, va_arg (v,int));
4278  va_end (v);
4279  return s;
4280}
4281
4282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4283   function prototypes and stuff, but not '\xHH' hex character constants.
4284   These don't provoke an error unfortunately, instead are silently treated
4285   as 'x'.  The following induces an error, until -std is added to get
4286   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4287   array size at least.  It's necessary to write '\x00'==0 to get something
4288   that's true only with -std.  */
4289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290
4291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292   inside strings and character constants.  */
4293#define FOO(x) 'x'
4294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295
4296int test (int i, double x);
4297struct s1 {int (*f) (int a);};
4298struct s2 {int (*f) (double a);};
4299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300int argc;
4301char **argv;
4302int main (void)
4303{
4304return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311do
4312  CC="$ac_save_CC $ac_arg"
4313  if ac_fn_c_try_compile "$LINENO"; then :
4314  ac_cv_prog_cc_c89=$ac_arg
4315fi
4316rm -f core conftest.err conftest.$ac_objext
4317  test "x$ac_cv_prog_cc_c89" != "xno" && break
4318done
4319rm -f conftest.$ac_ext
4320CC=$ac_save_CC
4321
4322fi
4323# AC_CACHE_VAL
4324case "x$ac_cv_prog_cc_c89" in
4325  x)
4326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327$as_echo "none needed" >&6; } ;;
4328  xno)
4329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330$as_echo "unsupported" >&6; } ;;
4331  *)
4332    CC="$CC $ac_cv_prog_cc_c89"
4333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335esac
4336if test "x$ac_cv_prog_cc_c89" != xno; then :
4337
4338fi
4339
4340ac_ext=c
4341ac_cpp='$CPP $CPPFLAGS'
4342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
4346depcc="$CC"   am_compiler_list=
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349$as_echo_n "checking dependency style of $depcc... " >&6; }
4350if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354  # We make a subdir and do the tests there.  Otherwise we can end up
4355  # making bogus files that we don't know about and never remove.  For
4356  # instance it was reported that on HP-UX the gcc test will end up
4357  # making a dummy file named `D' -- because `-MD' means `put the output
4358  # in D'.
4359  mkdir conftest.dir
4360  # Copy depcomp to subdir because otherwise we won't find it if we're
4361  # using a relative directory.
4362  cp "$am_depcomp" conftest.dir
4363  cd conftest.dir
4364  # We will build objects and dependencies in a subdirectory because
4365  # it helps to detect inapplicable dependency modes.  For instance
4366  # both Tru64's cc and ICC support -MD to output dependencies as a
4367  # side effect of compilation, but ICC will put the dependencies in
4368  # the current directory while Tru64 will put them in the object
4369  # directory.
4370  mkdir sub
4371
4372  am_cv_CC_dependencies_compiler_type=none
4373  if test "$am_compiler_list" = ""; then
4374     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4375  fi
4376  for depmode in $am_compiler_list; do
4377    # Setup a source with many dependencies, because some compilers
4378    # like to wrap large dependency lists on column 80 (with \), and
4379    # we should not choose a depcomp mode which is confused by this.
4380    #
4381    # We need to recreate these files for each test, as the compiler may
4382    # overwrite some of them when testing with obscure command lines.
4383    # This happens at least with the AIX C compiler.
4384    : > sub/conftest.c
4385    for i in 1 2 3 4 5 6; do
4386      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4387      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4388      # Solaris 8's {/usr,}/bin/sh.
4389      touch sub/conftst$i.h
4390    done
4391    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392
4393    case $depmode in
4394    nosideeffect)
4395      # after this tag, mechanisms are not by side-effect, so they'll
4396      # only be used when explicitly requested
4397      if test "x$enable_dependency_tracking" = xyes; then
4398	continue
4399      else
4400	break
4401      fi
4402      ;;
4403    none) break ;;
4404    esac
4405    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4406    # mode.  It turns out that the SunPro C++ compiler does not properly
4407    # handle `-M -o', and we need to detect this.
4408    if depmode=$depmode \
4409       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4410       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4412         >/dev/null 2>conftest.err &&
4413       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4415       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416      # icc doesn't choke on unknown options, it will just issue warnings
4417      # or remarks (even with -Werror).  So we grep stderr for any message
4418      # that says an option was ignored or not supported.
4419      # When given -MP, icc 7.0 and 7.1 complain thusly:
4420      #   icc: Command line warning: ignoring option '-M'; no argument required
4421      # The diagnosis changed in icc 8.0:
4422      #   icc: Command line remark: option '-MP' not supported
4423      if (grep 'ignoring option' conftest.err ||
4424          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425        am_cv_CC_dependencies_compiler_type=$depmode
4426        break
4427      fi
4428    fi
4429  done
4430
4431  cd ..
4432  rm -rf conftest.dir
4433else
4434  am_cv_CC_dependencies_compiler_type=none
4435fi
4436
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4439$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441
4442
4443
4444if
4445  test "x$enable_dependency_tracking" != xno \
4446  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447  am__fastdepCC_TRUE=
4448  am__fastdepCC_FALSE='#'
4449else
4450  am__fastdepCC_TRUE='#'
4451  am__fastdepCC_FALSE=
4452fi
4453
4454
4455  CFLAGS="$ac_save_CFLAGS"
4456  CPPFLAGS="$ac_save_CPPFLAGS"
4457
4458if test "x$CC" != xcc; then
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4460$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4461else
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4463$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4464fi
4465set dummy $CC; ac_cc=`$as_echo "$2" |
4466		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4467if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472
4473int main (void)
4474{
4475
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480# Make sure it works both with $CC and with simple cc.
4481# We do the test twice because some compilers refuse to overwrite an
4482# existing .o file with -o, though they will create one.
4483ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4484rm -f conftest2.*
4485if { { case "(($ac_try" in
4486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487  *) ac_try_echo=$ac_try;;
4488esac
4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490$as_echo "$ac_try_echo"; } >&5
4491  (eval "$ac_try") 2>&5
4492  ac_status=$?
4493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494  test $ac_status = 0; } &&
4495   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501  (eval "$ac_try") 2>&5
4502  ac_status=$?
4503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504  test $ac_status = 0; };
4505then
4506  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4507  if test "x$CC" != xcc; then
4508    # Test first that cc exists at all.
4509    if { ac_try='cc -c conftest.$ac_ext >&5'
4510  { { case "(($ac_try" in
4511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512  *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516  (eval "$ac_try") 2>&5
4517  ac_status=$?
4518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519  test $ac_status = 0; }; }; then
4520      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4521      rm -f conftest2.*
4522      if { { case "(($ac_try" in
4523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524  *) ac_try_echo=$ac_try;;
4525esac
4526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527$as_echo "$ac_try_echo"; } >&5
4528  (eval "$ac_try") 2>&5
4529  ac_status=$?
4530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531  test $ac_status = 0; } &&
4532	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534  *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538  (eval "$ac_try") 2>&5
4539  ac_status=$?
4540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541  test $ac_status = 0; };
4542      then
4543	# cc works too.
4544	:
4545      else
4546	# cc exists but doesn't like -o.
4547	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4548      fi
4549    fi
4550  fi
4551else
4552  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4553fi
4554rm -f core conftest*
4555
4556fi
4557if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559$as_echo "yes" >&6; }
4560else
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562$as_echo "no" >&6; }
4563
4564$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4565
4566fi
4567
4568# FIXME: we rely on the cache variable name because
4569# there is no other way.
4570set dummy $CC
4571ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4572if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4573   # Losing compiler, so override with the script.
4574   # FIXME: It is wrong to rewrite CC.
4575   # But if we don't then we get into trouble of one sort or another.
4576   # A longer-term fix would be to have automake use am__CC in this case,
4577   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578   CC="$am_aux_dir/compile $CC"
4579fi
4580
4581
4582
4583
4584ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4590$as_echo_n "checking how to run the C preprocessor... " >&6; }
4591# On Suns, sometimes $CPP names a directory.
4592if test -n "$CPP" && test -d "$CPP"; then
4593  CPP=
4594fi
4595if test -z "$CPP"; then
4596  if ${ac_cv_prog_CPP+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599      # Double quotes because CPP needs to be expanded
4600    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4601    do
4602      ac_preproc_ok=false
4603for ac_c_preproc_warn_flag in '' yes
4604do
4605  # Use a header file that comes with gcc, so configuring glibc
4606  # with a fresh cross-compiler works.
4607  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608  # <limits.h> exists even on freestanding compilers.
4609  # On the NeXT, cc -E runs the code through the compiler's parser,
4610  # not just through cpp. "Syntax error" is here to catch this case.
4611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h.  */
4613#ifdef __STDC__
4614# include <limits.h>
4615#else
4616# include <assert.h>
4617#endif
4618		     Syntax error
4619_ACEOF
4620if ac_fn_c_try_cpp "$LINENO"; then :
4621
4622else
4623  # Broken: fails on valid input.
4624continue
4625fi
4626rm -f conftest.err conftest.i conftest.$ac_ext
4627
4628  # OK, works on sane cases.  Now check whether nonexistent headers
4629  # can be detected and how.
4630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632#include <ac_nonexistent.h>
4633_ACEOF
4634if ac_fn_c_try_cpp "$LINENO"; then :
4635  # Broken: success on invalid input.
4636continue
4637else
4638  # Passes both tests.
4639ac_preproc_ok=:
4640break
4641fi
4642rm -f conftest.err conftest.i conftest.$ac_ext
4643
4644done
4645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646rm -f conftest.i conftest.err conftest.$ac_ext
4647if $ac_preproc_ok; then :
4648  break
4649fi
4650
4651    done
4652    ac_cv_prog_CPP=$CPP
4653
4654fi
4655  CPP=$ac_cv_prog_CPP
4656else
4657  ac_cv_prog_CPP=$CPP
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4660$as_echo "$CPP" >&6; }
4661ac_preproc_ok=false
4662for ac_c_preproc_warn_flag in '' yes
4663do
4664  # Use a header file that comes with gcc, so configuring glibc
4665  # with a fresh cross-compiler works.
4666  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667  # <limits.h> exists even on freestanding compilers.
4668  # On the NeXT, cc -E runs the code through the compiler's parser,
4669  # not just through cpp. "Syntax error" is here to catch this case.
4670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671/* end confdefs.h.  */
4672#ifdef __STDC__
4673# include <limits.h>
4674#else
4675# include <assert.h>
4676#endif
4677		     Syntax error
4678_ACEOF
4679if ac_fn_c_try_cpp "$LINENO"; then :
4680
4681else
4682  # Broken: fails on valid input.
4683continue
4684fi
4685rm -f conftest.err conftest.i conftest.$ac_ext
4686
4687  # OK, works on sane cases.  Now check whether nonexistent headers
4688  # can be detected and how.
4689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h.  */
4691#include <ac_nonexistent.h>
4692_ACEOF
4693if ac_fn_c_try_cpp "$LINENO"; then :
4694  # Broken: success on invalid input.
4695continue
4696else
4697  # Passes both tests.
4698ac_preproc_ok=:
4699break
4700fi
4701rm -f conftest.err conftest.i conftest.$ac_ext
4702
4703done
4704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4705rm -f conftest.i conftest.err conftest.$ac_ext
4706if $ac_preproc_ok; then :
4707
4708else
4709  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4712See \`config.log' for more details" "$LINENO" 5; }
4713fi
4714
4715ac_ext=c
4716ac_cpp='$CPP $CPPFLAGS'
4717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724if ${ac_cv_path_GREP+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  if test -z "$GREP"; then
4728  ac_path_GREP_found=false
4729  # Loop through the user's path and test for each of PROGNAME-LIST
4730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732do
4733  IFS=$as_save_IFS
4734  test -z "$as_dir" && as_dir=.
4735    for ac_prog in grep ggrep; do
4736    for ac_exec_ext in '' $ac_executable_extensions; do
4737      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4739# Check for GNU ac_path_GREP and select it if it is found.
4740  # Check for GNU $ac_path_GREP
4741case `"$ac_path_GREP" --version 2>&1` in
4742*GNU*)
4743  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4744*)
4745  ac_count=0
4746  $as_echo_n 0123456789 >"conftest.in"
4747  while :
4748  do
4749    cat "conftest.in" "conftest.in" >"conftest.tmp"
4750    mv "conftest.tmp" "conftest.in"
4751    cp "conftest.in" "conftest.nl"
4752    $as_echo 'GREP' >> "conftest.nl"
4753    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755    as_fn_arith $ac_count + 1 && ac_count=$as_val
4756    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757      # Best one so far, save it but keep looking for a better one
4758      ac_cv_path_GREP="$ac_path_GREP"
4759      ac_path_GREP_max=$ac_count
4760    fi
4761    # 10*(2^10) chars as input seems more than enough
4762    test $ac_count -gt 10 && break
4763  done
4764  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765esac
4766
4767      $ac_path_GREP_found && break 3
4768    done
4769  done
4770  done
4771IFS=$as_save_IFS
4772  if test -z "$ac_cv_path_GREP"; then
4773    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774  fi
4775else
4776  ac_cv_path_GREP=$GREP
4777fi
4778
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781$as_echo "$ac_cv_path_GREP" >&6; }
4782 GREP="$ac_cv_path_GREP"
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786$as_echo_n "checking for egrep... " >&6; }
4787if ${ac_cv_path_EGREP+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791   then ac_cv_path_EGREP="$GREP -E"
4792   else
4793     if test -z "$EGREP"; then
4794  ac_path_EGREP_found=false
4795  # Loop through the user's path and test for each of PROGNAME-LIST
4796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_prog in egrep; do
4802    for ac_exec_ext in '' $ac_executable_extensions; do
4803      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4805# Check for GNU ac_path_EGREP and select it if it is found.
4806  # Check for GNU $ac_path_EGREP
4807case `"$ac_path_EGREP" --version 2>&1` in
4808*GNU*)
4809  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4810*)
4811  ac_count=0
4812  $as_echo_n 0123456789 >"conftest.in"
4813  while :
4814  do
4815    cat "conftest.in" "conftest.in" >"conftest.tmp"
4816    mv "conftest.tmp" "conftest.in"
4817    cp "conftest.in" "conftest.nl"
4818    $as_echo 'EGREP' >> "conftest.nl"
4819    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821    as_fn_arith $ac_count + 1 && ac_count=$as_val
4822    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823      # Best one so far, save it but keep looking for a better one
4824      ac_cv_path_EGREP="$ac_path_EGREP"
4825      ac_path_EGREP_max=$ac_count
4826    fi
4827    # 10*(2^10) chars as input seems more than enough
4828    test $ac_count -gt 10 && break
4829  done
4830  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831esac
4832
4833      $ac_path_EGREP_found && break 3
4834    done
4835  done
4836  done
4837IFS=$as_save_IFS
4838  if test -z "$ac_cv_path_EGREP"; then
4839    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840  fi
4841else
4842  ac_cv_path_EGREP=$EGREP
4843fi
4844
4845   fi
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848$as_echo "$ac_cv_path_EGREP" >&6; }
4849 EGREP="$ac_cv_path_EGREP"
4850
4851
4852
4853
4854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
4855$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858
4859#ifdef _AIX
4860   yes_this_is_aix
4861#endif
4862
4863_ACEOF
4864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865  $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
4866
4867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868$as_echo "yes" >&6; }
4869    $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4870
4871
4872else
4873
4874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876
4877fi
4878rm -f conftest*
4879
4880
4881
4882
4883    #
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
4885$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
4886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888
4889
4890
4891int main (void)
4892{
4893
4894#ifdef _THREAD_SAFE
4895      int dummy=1;
4896#else
4897      force compilation error
4898#endif
4899
4900 ;
4901 return 0;
4902}
4903
4904_ACEOF
4905if ac_fn_c_try_compile "$LINENO"; then :
4906
4907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908$as_echo "yes" >&6; }
4909    tmp_thread_safe_initially_defined="yes"
4910
4911else
4912
4913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914$as_echo "no" >&6; }
4915    tmp_thread_safe_initially_defined="no"
4916
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919  #
4920  if test "$tmp_thread_safe_initially_defined" = "no"; then
4921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
4922$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
4923
4924  case $host_os in
4925    aix[123].* | aix4.[012].*)
4926            tmp_need_thread_safe="no"
4927      ;;
4928    aix*)
4929            tmp_need_thread_safe="yes"
4930      ;;
4931    *)
4932      tmp_need_thread_safe="no"
4933      ;;
4934  esac
4935
4936    if test "$tmp_need_thread_safe" = "yes"; then
4937      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938$as_echo "yes" >&6; }
4939    else
4940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
4942    fi
4943  fi
4944  #
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
4946$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
4947  if test "$tmp_thread_safe_initially_defined" = "yes" ||
4948    test "$tmp_need_thread_safe" = "yes"; then
4949
4950
4951$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
4952
4953cat >>confdefs.h <<_EOF
4954#ifndef _THREAD_SAFE
4955#  define _THREAD_SAFE
4956#endif
4957_EOF
4958
4959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4960$as_echo "yes" >&6; }
4961  else
4962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
4964  fi
4965  #
4966
4967
4968    #
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
4970$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
4971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973
4974
4975
4976int main (void)
4977{
4978
4979#ifdef _REENTRANT
4980      int dummy=1;
4981#else
4982      force compilation error
4983#endif
4984
4985 ;
4986 return 0;
4987}
4988
4989_ACEOF
4990if ac_fn_c_try_compile "$LINENO"; then :
4991
4992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4993$as_echo "yes" >&6; }
4994    tmp_reentrant_initially_defined="yes"
4995
4996else
4997
4998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000    tmp_reentrant_initially_defined="no"
5001
5002fi
5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004  #
5005  if test "$tmp_reentrant_initially_defined" = "no"; then
5006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
5007$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
5008
5009  case $host_os in
5010    solaris*)
5011      tmp_need_reentrant="yes"
5012      ;;
5013    *)
5014      tmp_need_reentrant="no"
5015      ;;
5016  esac
5017
5018    if test "$tmp_need_reentrant" = "no"; then
5019
5020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022
5023
5024#include <errno.h>
5025
5026int main (void)
5027{
5028
5029      if(0 != errno)
5030        return 1;
5031
5032 ;
5033 return 0;
5034}
5035
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"; then :
5038
5039    tmp_errno="yes"
5040
5041else
5042
5043    tmp_errno="no"
5044
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047  if test "$tmp_errno" = "yes"; then
5048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050
5051
5052#include <errno.h>
5053
5054int main (void)
5055{
5056
5057#ifdef errno
5058        int dummy=1;
5059#else
5060        force compilation error
5061#endif
5062
5063 ;
5064 return 0;
5065}
5066
5067_ACEOF
5068if ac_fn_c_try_compile "$LINENO"; then :
5069
5070      tmp_errno="errno_macro_defined"
5071
5072else
5073
5074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076
5077
5078#define _REENTRANT
5079#include <errno.h>
5080
5081int main (void)
5082{
5083
5084#ifdef errno
5085          int dummy=1;
5086#else
5087          force compilation error
5088#endif
5089
5090 ;
5091 return 0;
5092}
5093
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"; then :
5096
5097        tmp_errno="errno_macro_needs_reentrant"
5098        tmp_need_reentrant="yes"
5099
5100fi
5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105  fi
5106
5107    fi
5108    if test "$tmp_need_reentrant" = "no"; then
5109
5110  if test "$tmp_need_reentrant" = "no"; then
5111
5112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114
5115
5116#define gmtime_r innocuous_gmtime_r
5117#ifdef __STDC__
5118# include <limits.h>
5119#else
5120# include <assert.h>
5121#endif
5122#undef gmtime_r
5123#ifdef __cplusplus
5124extern "C"
5125#endif
5126char gmtime_r ();
5127#if defined __stub_gmtime_r || defined __stub___gmtime_r
5128choke me
5129#endif
5130
5131int main (void)
5132{
5133return gmtime_r ();
5134 ;
5135 return 0;
5136}
5137
5138_ACEOF
5139if ac_fn_c_try_link "$LINENO"; then :
5140
5141    tmp_gmtime_r="yes"
5142
5143else
5144
5145    tmp_gmtime_r="no"
5146
5147fi
5148rm -f core conftest.err conftest.$ac_objext \
5149    conftest$ac_exeext conftest.$ac_ext
5150  if test "$tmp_gmtime_r" = "yes"; then
5151    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153
5154#include <sys/types.h>
5155#include <time.h>
5156
5157_ACEOF
5158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159  $EGREP "gmtime_r" >/dev/null 2>&1; then :
5160
5161      tmp_gmtime_r="proto_declared"
5162
5163else
5164
5165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h.  */
5167
5168#define _REENTRANT
5169#include <sys/types.h>
5170#include <time.h>
5171
5172_ACEOF
5173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174  $EGREP "gmtime_r" >/dev/null 2>&1; then :
5175
5176        tmp_gmtime_r="proto_needs_reentrant"
5177        tmp_need_reentrant="yes"
5178
5179fi
5180rm -f conftest*
5181
5182
5183fi
5184rm -f conftest*
5185
5186  fi
5187
5188  fi
5189  if test "$tmp_need_reentrant" = "no"; then
5190
5191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193
5194
5195#define localtime_r innocuous_localtime_r
5196#ifdef __STDC__
5197# include <limits.h>
5198#else
5199# include <assert.h>
5200#endif
5201#undef localtime_r
5202#ifdef __cplusplus
5203extern "C"
5204#endif
5205char localtime_r ();
5206#if defined __stub_localtime_r || defined __stub___localtime_r
5207choke me
5208#endif
5209
5210int main (void)
5211{
5212return localtime_r ();
5213 ;
5214 return 0;
5215}
5216
5217_ACEOF
5218if ac_fn_c_try_link "$LINENO"; then :
5219
5220    tmp_localtime_r="yes"
5221
5222else
5223
5224    tmp_localtime_r="no"
5225
5226fi
5227rm -f core conftest.err conftest.$ac_objext \
5228    conftest$ac_exeext conftest.$ac_ext
5229  if test "$tmp_localtime_r" = "yes"; then
5230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232
5233#include <sys/types.h>
5234#include <time.h>
5235
5236_ACEOF
5237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238  $EGREP "localtime_r" >/dev/null 2>&1; then :
5239
5240      tmp_localtime_r="proto_declared"
5241
5242else
5243
5244      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246
5247#define _REENTRANT
5248#include <sys/types.h>
5249#include <time.h>
5250
5251_ACEOF
5252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5253  $EGREP "localtime_r" >/dev/null 2>&1; then :
5254
5255        tmp_localtime_r="proto_needs_reentrant"
5256        tmp_need_reentrant="yes"
5257
5258fi
5259rm -f conftest*
5260
5261
5262fi
5263rm -f conftest*
5264
5265  fi
5266
5267  fi
5268  if test "$tmp_need_reentrant" = "no"; then
5269
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272
5273
5274#define strerror_r innocuous_strerror_r
5275#ifdef __STDC__
5276# include <limits.h>
5277#else
5278# include <assert.h>
5279#endif
5280#undef strerror_r
5281#ifdef __cplusplus
5282extern "C"
5283#endif
5284char strerror_r ();
5285#if defined __stub_strerror_r || defined __stub___strerror_r
5286choke me
5287#endif
5288
5289int main (void)
5290{
5291return strerror_r ();
5292 ;
5293 return 0;
5294}
5295
5296_ACEOF
5297if ac_fn_c_try_link "$LINENO"; then :
5298
5299    tmp_strerror_r="yes"
5300
5301else
5302
5303    tmp_strerror_r="no"
5304
5305fi
5306rm -f core conftest.err conftest.$ac_objext \
5307    conftest$ac_exeext conftest.$ac_ext
5308  if test "$tmp_strerror_r" = "yes"; then
5309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311
5312#include <sys/types.h>
5313#include <string.h>
5314
5315_ACEOF
5316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317  $EGREP "strerror_r" >/dev/null 2>&1; then :
5318
5319      tmp_strerror_r="proto_declared"
5320
5321else
5322
5323      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325
5326#define _REENTRANT
5327#include <sys/types.h>
5328#include <string.h>
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332  $EGREP "strerror_r" >/dev/null 2>&1; then :
5333
5334        tmp_strerror_r="proto_needs_reentrant"
5335        tmp_need_reentrant="yes"
5336
5337fi
5338rm -f conftest*
5339
5340
5341fi
5342rm -f conftest*
5343
5344  fi
5345
5346  fi
5347  if test "$tmp_need_reentrant" = "no"; then
5348
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351
5352
5353#define strtok_r innocuous_strtok_r
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359#undef strtok_r
5360#ifdef __cplusplus
5361extern "C"
5362#endif
5363char strtok_r ();
5364#if defined __stub_strtok_r || defined __stub___strtok_r
5365choke me
5366#endif
5367
5368int main (void)
5369{
5370return strtok_r ();
5371 ;
5372 return 0;
5373}
5374
5375_ACEOF
5376if ac_fn_c_try_link "$LINENO"; then :
5377
5378    tmp_strtok_r="yes"
5379
5380else
5381
5382    tmp_strtok_r="no"
5383
5384fi
5385rm -f core conftest.err conftest.$ac_objext \
5386    conftest$ac_exeext conftest.$ac_ext
5387  if test "$tmp_strtok_r" = "yes"; then
5388    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390
5391#include <sys/types.h>
5392#include <string.h>
5393
5394_ACEOF
5395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396  $EGREP "strtok_r" >/dev/null 2>&1; then :
5397
5398      tmp_strtok_r="proto_declared"
5399
5400else
5401
5402      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404
5405#define _REENTRANT
5406#include <sys/types.h>
5407#include <string.h>
5408
5409_ACEOF
5410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411  $EGREP "strtok_r" >/dev/null 2>&1; then :
5412
5413        tmp_strtok_r="proto_needs_reentrant"
5414        tmp_need_reentrant="yes"
5415
5416fi
5417rm -f conftest*
5418
5419
5420fi
5421rm -f conftest*
5422
5423  fi
5424
5425  fi
5426  if test "$tmp_need_reentrant" = "no"; then
5427
5428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h.  */
5430
5431
5432#define inet_ntoa_r innocuous_inet_ntoa_r
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438#undef inet_ntoa_r
5439#ifdef __cplusplus
5440extern "C"
5441#endif
5442char inet_ntoa_r ();
5443#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
5444choke me
5445#endif
5446
5447int main (void)
5448{
5449return inet_ntoa_r ();
5450 ;
5451 return 0;
5452}
5453
5454_ACEOF
5455if ac_fn_c_try_link "$LINENO"; then :
5456
5457    tmp_inet_ntoa_r="yes"
5458
5459else
5460
5461    tmp_inet_ntoa_r="no"
5462
5463fi
5464rm -f core conftest.err conftest.$ac_objext \
5465    conftest$ac_exeext conftest.$ac_ext
5466  if test "$tmp_inet_ntoa_r" = "yes"; then
5467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469
5470#include <sys/types.h>
5471#include <sys/socket.h>
5472#include <netinet/in.h>
5473#include <arpa/inet.h>
5474
5475_ACEOF
5476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
5478
5479      tmp_inet_ntoa_r="proto_declared"
5480
5481else
5482
5483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h.  */
5485
5486#define _REENTRANT
5487#include <sys/types.h>
5488#include <sys/socket.h>
5489#include <netinet/in.h>
5490#include <arpa/inet.h>
5491
5492_ACEOF
5493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
5495
5496        tmp_inet_ntoa_r="proto_needs_reentrant"
5497        tmp_need_reentrant="yes"
5498
5499fi
5500rm -f conftest*
5501
5502
5503fi
5504rm -f conftest*
5505
5506  fi
5507
5508  fi
5509  if test "$tmp_need_reentrant" = "no"; then
5510
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513
5514
5515#define gethostbyaddr_r innocuous_gethostbyaddr_r
5516#ifdef __STDC__
5517# include <limits.h>
5518#else
5519# include <assert.h>
5520#endif
5521#undef gethostbyaddr_r
5522#ifdef __cplusplus
5523extern "C"
5524#endif
5525char gethostbyaddr_r ();
5526#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
5527choke me
5528#endif
5529
5530int main (void)
5531{
5532return gethostbyaddr_r ();
5533 ;
5534 return 0;
5535}
5536
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539
5540    tmp_gethostbyaddr_r="yes"
5541
5542else
5543
5544    tmp_gethostbyaddr_r="no"
5545
5546fi
5547rm -f core conftest.err conftest.$ac_objext \
5548    conftest$ac_exeext conftest.$ac_ext
5549  if test "$tmp_gethostbyaddr_r" = "yes"; then
5550    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552
5553#include <sys/types.h>
5554#include <netdb.h>
5555
5556_ACEOF
5557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
5559
5560      tmp_gethostbyaddr_r="proto_declared"
5561
5562else
5563
5564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566
5567#define _REENTRANT
5568#include <sys/types.h>
5569#include <netdb.h>
5570
5571_ACEOF
5572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
5574
5575        tmp_gethostbyaddr_r="proto_needs_reentrant"
5576        tmp_need_reentrant="yes"
5577
5578fi
5579rm -f conftest*
5580
5581
5582fi
5583rm -f conftest*
5584
5585  fi
5586
5587  fi
5588  if test "$tmp_need_reentrant" = "no"; then
5589
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592
5593
5594#define gethostbyname_r innocuous_gethostbyname_r
5595#ifdef __STDC__
5596# include <limits.h>
5597#else
5598# include <assert.h>
5599#endif
5600#undef gethostbyname_r
5601#ifdef __cplusplus
5602extern "C"
5603#endif
5604char gethostbyname_r ();
5605#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
5606choke me
5607#endif
5608
5609int main (void)
5610{
5611return gethostbyname_r ();
5612 ;
5613 return 0;
5614}
5615
5616_ACEOF
5617if ac_fn_c_try_link "$LINENO"; then :
5618
5619    tmp_gethostbyname_r="yes"
5620
5621else
5622
5623    tmp_gethostbyname_r="no"
5624
5625fi
5626rm -f core conftest.err conftest.$ac_objext \
5627    conftest$ac_exeext conftest.$ac_ext
5628  if test "$tmp_gethostbyname_r" = "yes"; then
5629    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h.  */
5631
5632#include <sys/types.h>
5633#include <netdb.h>
5634
5635_ACEOF
5636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5637  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
5638
5639      tmp_gethostbyname_r="proto_declared"
5640
5641else
5642
5643      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645
5646#define _REENTRANT
5647#include <sys/types.h>
5648#include <netdb.h>
5649
5650_ACEOF
5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
5653
5654        tmp_gethostbyname_r="proto_needs_reentrant"
5655        tmp_need_reentrant="yes"
5656
5657fi
5658rm -f conftest*
5659
5660
5661fi
5662rm -f conftest*
5663
5664  fi
5665
5666  fi
5667  if test "$tmp_need_reentrant" = "no"; then
5668
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671
5672
5673#define getprotobyname_r innocuous_getprotobyname_r
5674#ifdef __STDC__
5675# include <limits.h>
5676#else
5677# include <assert.h>
5678#endif
5679#undef getprotobyname_r
5680#ifdef __cplusplus
5681extern "C"
5682#endif
5683char getprotobyname_r ();
5684#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
5685choke me
5686#endif
5687
5688int main (void)
5689{
5690return getprotobyname_r ();
5691 ;
5692 return 0;
5693}
5694
5695_ACEOF
5696if ac_fn_c_try_link "$LINENO"; then :
5697
5698    tmp_getprotobyname_r="yes"
5699
5700else
5701
5702    tmp_getprotobyname_r="no"
5703
5704fi
5705rm -f core conftest.err conftest.$ac_objext \
5706    conftest$ac_exeext conftest.$ac_ext
5707  if test "$tmp_getprotobyname_r" = "yes"; then
5708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h.  */
5710
5711#include <sys/types.h>
5712#include <netdb.h>
5713
5714_ACEOF
5715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5716  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
5717
5718      tmp_getprotobyname_r="proto_declared"
5719
5720else
5721
5722      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724
5725#define _REENTRANT
5726#include <sys/types.h>
5727#include <netdb.h>
5728
5729_ACEOF
5730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5731  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
5732
5733        tmp_getprotobyname_r="proto_needs_reentrant"
5734        tmp_need_reentrant="yes"
5735
5736fi
5737rm -f conftest*
5738
5739
5740fi
5741rm -f conftest*
5742
5743  fi
5744
5745  fi
5746  if test "$tmp_need_reentrant" = "no"; then
5747
5748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750
5751
5752#define getservbyport_r innocuous_getservbyport_r
5753#ifdef __STDC__
5754# include <limits.h>
5755#else
5756# include <assert.h>
5757#endif
5758#undef getservbyport_r
5759#ifdef __cplusplus
5760extern "C"
5761#endif
5762char getservbyport_r ();
5763#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
5764choke me
5765#endif
5766
5767int main (void)
5768{
5769return getservbyport_r ();
5770 ;
5771 return 0;
5772}
5773
5774_ACEOF
5775if ac_fn_c_try_link "$LINENO"; then :
5776
5777    tmp_getservbyport_r="yes"
5778
5779else
5780
5781    tmp_getservbyport_r="no"
5782
5783fi
5784rm -f core conftest.err conftest.$ac_objext \
5785    conftest$ac_exeext conftest.$ac_ext
5786  if test "$tmp_getservbyport_r" = "yes"; then
5787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789
5790#include <sys/types.h>
5791#include <netdb.h>
5792
5793_ACEOF
5794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
5796
5797      tmp_getservbyport_r="proto_declared"
5798
5799else
5800
5801      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803
5804#define _REENTRANT
5805#include <sys/types.h>
5806#include <netdb.h>
5807
5808_ACEOF
5809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5810  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
5811
5812        tmp_getservbyport_r="proto_needs_reentrant"
5813        tmp_need_reentrant="yes"
5814
5815fi
5816rm -f conftest*
5817
5818
5819fi
5820rm -f conftest*
5821
5822  fi
5823
5824  fi
5825
5826    fi
5827    if test "$tmp_need_reentrant" = "yes"; then
5828      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5829$as_echo "yes" >&6; }
5830    else
5831      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833    fi
5834  fi
5835  #
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
5837$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
5838  if test "$tmp_reentrant_initially_defined" = "yes" ||
5839    test "$tmp_need_reentrant" = "yes"; then
5840
5841
5842$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
5843
5844cat >>confdefs.h <<_EOF
5845#ifndef _REENTRANT
5846#  define _REENTRANT
5847#endif
5848_EOF
5849
5850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5851$as_echo "yes" >&6; }
5852  else
5853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855  fi
5856  #
5857
5858
5859# Check whether --enable-largefile was given.
5860if test "${enable_largefile+set}" = set; then :
5861  enableval=$enable_largefile;
5862fi
5863
5864if test "$enable_largefile" != no; then
5865
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5867$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5868if ${ac_cv_sys_largefile_CC+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  ac_cv_sys_largefile_CC=no
5872     if test "$GCC" != yes; then
5873       ac_save_CC=$CC
5874       while :; do
5875	 # IRIX 6.2 and later do not support large files by default,
5876	 # so use the C compiler's -n32 option if that helps.
5877	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879#include <sys/types.h>
5880 /* Check that off_t can represent 2**63 - 1 correctly.
5881    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5882    since some C++ compilers masquerading as C compilers
5883    incorrectly reject 9223372036854775807.  */
5884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5885  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5886		       && LARGE_OFF_T % 2147483647 == 1)
5887		      ? 1 : -1];
5888int main (void)
5889{
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895	 if ac_fn_c_try_compile "$LINENO"; then :
5896  break
5897fi
5898rm -f core conftest.err conftest.$ac_objext
5899	 CC="$CC -n32"
5900	 if ac_fn_c_try_compile "$LINENO"; then :
5901  ac_cv_sys_largefile_CC=' -n32'; break
5902fi
5903rm -f core conftest.err conftest.$ac_objext
5904	 break
5905       done
5906       CC=$ac_save_CC
5907       rm -f conftest.$ac_ext
5908    fi
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5911$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5912  if test "$ac_cv_sys_largefile_CC" != no; then
5913    CC=$CC$ac_cv_sys_largefile_CC
5914  fi
5915
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5917$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5918if ${ac_cv_sys_file_offset_bits+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  while :; do
5922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924#include <sys/types.h>
5925 /* Check that off_t can represent 2**63 - 1 correctly.
5926    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5927    since some C++ compilers masquerading as C compilers
5928    incorrectly reject 9223372036854775807.  */
5929#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5930  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5931		       && LARGE_OFF_T % 2147483647 == 1)
5932		      ? 1 : -1];
5933int main (void)
5934{
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"; then :
5941  ac_cv_sys_file_offset_bits=no; break
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946#define _FILE_OFFSET_BITS 64
5947#include <sys/types.h>
5948 /* Check that off_t can represent 2**63 - 1 correctly.
5949    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5950    since some C++ compilers masquerading as C compilers
5951    incorrectly reject 9223372036854775807.  */
5952#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5953  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5954		       && LARGE_OFF_T % 2147483647 == 1)
5955		      ? 1 : -1];
5956int main (void)
5957{
5958
5959 ;
5960 return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_compile "$LINENO"; then :
5964  ac_cv_sys_file_offset_bits=64; break
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967  ac_cv_sys_file_offset_bits=unknown
5968  break
5969done
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5972$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5973case $ac_cv_sys_file_offset_bits in #(
5974  no | unknown) ;;
5975  *)
5976cat >>confdefs.h <<_ACEOF
5977#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5978_ACEOF
5979;;
5980esac
5981rm -rf conftest*
5982  if test $ac_cv_sys_file_offset_bits = unknown; then
5983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5984$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5985if ${ac_cv_sys_large_files+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  while :; do
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991#include <sys/types.h>
5992 /* Check that off_t can represent 2**63 - 1 correctly.
5993    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5994    since some C++ compilers masquerading as C compilers
5995    incorrectly reject 9223372036854775807.  */
5996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5997  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5998		       && LARGE_OFF_T % 2147483647 == 1)
5999		      ? 1 : -1];
6000int main (void)
6001{
6002
6003 ;
6004 return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_compile "$LINENO"; then :
6008  ac_cv_sys_large_files=no; break
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013#define _LARGE_FILES 1
6014#include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017    since some C++ compilers masquerading as C compilers
6018    incorrectly reject 9223372036854775807.  */
6019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021		       && LARGE_OFF_T % 2147483647 == 1)
6022		      ? 1 : -1];
6023int main (void)
6024{
6025
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_compile "$LINENO"; then :
6031  ac_cv_sys_large_files=1; break
6032fi
6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034  ac_cv_sys_large_files=unknown
6035  break
6036done
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6039$as_echo "$ac_cv_sys_large_files" >&6; }
6040case $ac_cv_sys_large_files in #(
6041  no | unknown) ;;
6042  *)
6043cat >>confdefs.h <<_ACEOF
6044#define _LARGE_FILES $ac_cv_sys_large_files
6045_ACEOF
6046;;
6047esac
6048rm -rf conftest*
6049  fi
6050fi
6051
6052
6053case $host_os in
6054  solaris*)
6055
6056$as_echo "#define ETC_INET 1" >>confdefs.h
6057
6058    ;;
6059esac
6060
6061enable_win32_dll=yes
6062
6063case $host in
6064*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6065  if test -n "$ac_tool_prefix"; then
6066  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}as; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
6070if ${ac_cv_prog_AS+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  if test -n "$AS"; then
6074  ac_cv_prog_AS="$AS" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079  IFS=$as_save_IFS
6080  test -z "$as_dir" && as_dir=.
6081    for ac_exec_ext in '' $ac_executable_extensions; do
6082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083    ac_cv_prog_AS="${ac_tool_prefix}as"
6084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088  done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093AS=$ac_cv_prog_AS
6094if test -n "$AS"; then
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6096$as_echo "$AS" >&6; }
6097else
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102
6103fi
6104if test -z "$ac_cv_prog_AS"; then
6105  ac_ct_AS=$AS
6106  # Extract the first word of "as", so it can be a program name with args.
6107set dummy as; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_ac_ct_AS+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  if test -n "$ac_ct_AS"; then
6114  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  test -z "$as_dir" && as_dir=.
6121    for ac_exec_ext in '' $ac_executable_extensions; do
6122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123    ac_cv_prog_ac_ct_AS="as"
6124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125    break 2
6126  fi
6127done
6128  done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133ac_ct_AS=$ac_cv_prog_ac_ct_AS
6134if test -n "$ac_ct_AS"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6136$as_echo "$ac_ct_AS" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142  if test "x$ac_ct_AS" = x; then
6143    AS="false"
6144  else
6145    case $cross_compiling:$ac_tool_warned in
6146yes:)
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149ac_tool_warned=yes ;;
6150esac
6151    AS=$ac_ct_AS
6152  fi
6153else
6154  AS="$ac_cv_prog_AS"
6155fi
6156
6157  if test -n "$ac_tool_prefix"; then
6158  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161$as_echo_n "checking for $ac_word... " >&6; }
6162if ${ac_cv_prog_DLLTOOL+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -n "$DLLTOOL"; then
6166  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  test -z "$as_dir" && as_dir=.
6173    for ac_exec_ext in '' $ac_executable_extensions; do
6174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177    break 2
6178  fi
6179done
6180  done
6181IFS=$as_save_IFS
6182
6183fi
6184fi
6185DLLTOOL=$ac_cv_prog_DLLTOOL
6186if test -n "$DLLTOOL"; then
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6188$as_echo "$DLLTOOL" >&6; }
6189else
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191$as_echo "no" >&6; }
6192fi
6193
6194
6195fi
6196if test -z "$ac_cv_prog_DLLTOOL"; then
6197  ac_ct_DLLTOOL=$DLLTOOL
6198  # Extract the first word of "dlltool", so it can be a program name with args.
6199set dummy dlltool; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if test -n "$ac_ct_DLLTOOL"; then
6206  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211  IFS=$as_save_IFS
6212  test -z "$as_dir" && as_dir=.
6213    for ac_exec_ext in '' $ac_executable_extensions; do
6214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217    break 2
6218  fi
6219done
6220  done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6226if test -n "$ac_ct_DLLTOOL"; then
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6228$as_echo "$ac_ct_DLLTOOL" >&6; }
6229else
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234  if test "x$ac_ct_DLLTOOL" = x; then
6235    DLLTOOL="false"
6236  else
6237    case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243    DLLTOOL=$ac_ct_DLLTOOL
6244  fi
6245else
6246  DLLTOOL="$ac_cv_prog_DLLTOOL"
6247fi
6248
6249  if test -n "$ac_tool_prefix"; then
6250  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6251set dummy ${ac_tool_prefix}objdump; ac_word=$2
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if ${ac_cv_prog_OBJDUMP+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  if test -n "$OBJDUMP"; then
6258  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263  IFS=$as_save_IFS
6264  test -z "$as_dir" && as_dir=.
6265    for ac_exec_ext in '' $ac_executable_extensions; do
6266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269    break 2
6270  fi
6271done
6272  done
6273IFS=$as_save_IFS
6274
6275fi
6276fi
6277OBJDUMP=$ac_cv_prog_OBJDUMP
6278if test -n "$OBJDUMP"; then
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6280$as_echo "$OBJDUMP" >&6; }
6281else
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
6284fi
6285
6286
6287fi
6288if test -z "$ac_cv_prog_OBJDUMP"; then
6289  ac_ct_OBJDUMP=$OBJDUMP
6290  # Extract the first word of "objdump", so it can be a program name with args.
6291set dummy objdump; ac_word=$2
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
6294if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  if test -n "$ac_ct_OBJDUMP"; then
6298  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303  IFS=$as_save_IFS
6304  test -z "$as_dir" && as_dir=.
6305    for ac_exec_ext in '' $ac_executable_extensions; do
6306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309    break 2
6310  fi
6311done
6312  done
6313IFS=$as_save_IFS
6314
6315fi
6316fi
6317ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6318if test -n "$ac_ct_OBJDUMP"; then
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6320$as_echo "$ac_ct_OBJDUMP" >&6; }
6321else
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6324fi
6325
6326  if test "x$ac_ct_OBJDUMP" = x; then
6327    OBJDUMP="false"
6328  else
6329    case $cross_compiling:$ac_tool_warned in
6330yes:)
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333ac_tool_warned=yes ;;
6334esac
6335    OBJDUMP=$ac_ct_OBJDUMP
6336  fi
6337else
6338  OBJDUMP="$ac_cv_prog_OBJDUMP"
6339fi
6340
6341  ;;
6342esac
6343
6344test -z "$AS" && AS=as
6345
6346
6347
6348
6349
6350test -z "$DLLTOOL" && DLLTOOL=dlltool
6351
6352
6353
6354
6355
6356test -z "$OBJDUMP" && OBJDUMP=objdump
6357
6358
6359
6360
6361
6362
6363
6364
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5
6366$as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; }
6367case $host in
6368  x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
6369    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6370$as_echo "yes" >&6; }
6371    with_pic=yes
6372    ;;
6373  *)
6374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375$as_echo "no" >&6; }
6376    ;;
6377esac
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5
6380$as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; }
6381case $CC in
6382  icc | */icc)
6383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6384$as_echo "yes" >&6; }
6385    with_pic=yes
6386    ;;
6387  *)
6388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390    ;;
6391esac
6392
6393case `pwd` in
6394  *\ * | *\	*)
6395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6396$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6397esac
6398
6399
6400
6401macro_version='2.4'
6402macro_revision='1.3293'
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416ltmain="$ac_aux_dir/ltmain.sh"
6417
6418# Backslashify metacharacters that are still active within
6419# double-quoted strings.
6420sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6421
6422# Same as above, but do not quote variable references.
6423double_quote_subst='s/\(["`\\]\)/\\\1/g'
6424
6425# Sed substitution to delay expansion of an escaped shell variable in a
6426# double_quote_subst'ed string.
6427delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6428
6429# Sed substitution to delay expansion of an escaped single quote.
6430delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6431
6432# Sed substitution to avoid accidental globbing in evaled expressions
6433no_glob_subst='s/\*/\\\*/g'
6434
6435ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6436ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6440$as_echo_n "checking how to print strings... " >&6; }
6441# Test print first, because it will be a builtin if present.
6442if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6443   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6444  ECHO='print -r --'
6445elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6446  ECHO='printf %s\n'
6447else
6448  # Use this function as a fallback that always works.
6449  func_fallback_echo ()
6450  {
6451    eval 'cat <<_LTECHO_EOF
6452$1
6453_LTECHO_EOF'
6454  }
6455  ECHO='func_fallback_echo'
6456fi
6457
6458# func_echo_all arg...
6459# Invoke $ECHO with all args, space-separated.
6460func_echo_all ()
6461{
6462    $ECHO ""
6463}
6464
6465case "$ECHO" in
6466  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6467$as_echo "printf" >&6; } ;;
6468  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6469$as_echo "print -r" >&6; } ;;
6470  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6471$as_echo "cat" >&6; } ;;
6472esac
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6488$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6489if ${ac_cv_path_SED+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6493     for ac_i in 1 2 3 4 5 6 7; do
6494       ac_script="$ac_script$as_nl$ac_script"
6495     done
6496     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6497     { ac_script=; unset ac_script;}
6498     if test -z "$SED"; then
6499  ac_path_SED_found=false
6500  # Loop through the user's path and test for each of PROGNAME-LIST
6501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_prog in sed gsed; do
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6509      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6510# Check for GNU ac_path_SED and select it if it is found.
6511  # Check for GNU $ac_path_SED
6512case `"$ac_path_SED" --version 2>&1` in
6513*GNU*)
6514  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6515*)
6516  ac_count=0
6517  $as_echo_n 0123456789 >"conftest.in"
6518  while :
6519  do
6520    cat "conftest.in" "conftest.in" >"conftest.tmp"
6521    mv "conftest.tmp" "conftest.in"
6522    cp "conftest.in" "conftest.nl"
6523    $as_echo '' >> "conftest.nl"
6524    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6525    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6526    as_fn_arith $ac_count + 1 && ac_count=$as_val
6527    if test $ac_count -gt ${ac_path_SED_max-0}; then
6528      # Best one so far, save it but keep looking for a better one
6529      ac_cv_path_SED="$ac_path_SED"
6530      ac_path_SED_max=$ac_count
6531    fi
6532    # 10*(2^10) chars as input seems more than enough
6533    test $ac_count -gt 10 && break
6534  done
6535  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6536esac
6537
6538      $ac_path_SED_found && break 3
6539    done
6540  done
6541  done
6542IFS=$as_save_IFS
6543  if test -z "$ac_cv_path_SED"; then
6544    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6545  fi
6546else
6547  ac_cv_path_SED=$SED
6548fi
6549
6550fi
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6552$as_echo "$ac_cv_path_SED" >&6; }
6553 SED="$ac_cv_path_SED"
6554  rm -f conftest.sed
6555
6556test -z "$SED" && SED=sed
6557Xsed="$SED -e 1s/^X//"
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6570$as_echo_n "checking for fgrep... " >&6; }
6571if ${ac_cv_path_FGREP+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6575   then ac_cv_path_FGREP="$GREP -F"
6576   else
6577     if test -z "$FGREP"; then
6578  ac_path_FGREP_found=false
6579  # Loop through the user's path and test for each of PROGNAME-LIST
6580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6582do
6583  IFS=$as_save_IFS
6584  test -z "$as_dir" && as_dir=.
6585    for ac_prog in fgrep; do
6586    for ac_exec_ext in '' $ac_executable_extensions; do
6587      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6588      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6589# Check for GNU ac_path_FGREP and select it if it is found.
6590  # Check for GNU $ac_path_FGREP
6591case `"$ac_path_FGREP" --version 2>&1` in
6592*GNU*)
6593  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6594*)
6595  ac_count=0
6596  $as_echo_n 0123456789 >"conftest.in"
6597  while :
6598  do
6599    cat "conftest.in" "conftest.in" >"conftest.tmp"
6600    mv "conftest.tmp" "conftest.in"
6601    cp "conftest.in" "conftest.nl"
6602    $as_echo 'FGREP' >> "conftest.nl"
6603    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6604    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6605    as_fn_arith $ac_count + 1 && ac_count=$as_val
6606    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6607      # Best one so far, save it but keep looking for a better one
6608      ac_cv_path_FGREP="$ac_path_FGREP"
6609      ac_path_FGREP_max=$ac_count
6610    fi
6611    # 10*(2^10) chars as input seems more than enough
6612    test $ac_count -gt 10 && break
6613  done
6614  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6615esac
6616
6617      $ac_path_FGREP_found && break 3
6618    done
6619  done
6620  done
6621IFS=$as_save_IFS
6622  if test -z "$ac_cv_path_FGREP"; then
6623    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6624  fi
6625else
6626  ac_cv_path_FGREP=$FGREP
6627fi
6628
6629   fi
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6632$as_echo "$ac_cv_path_FGREP" >&6; }
6633 FGREP="$ac_cv_path_FGREP"
6634
6635
6636test -z "$GREP" && GREP=grep
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656# Check whether --with-gnu-ld was given.
6657if test "${with_gnu_ld+set}" = set; then :
6658  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6659else
6660  with_gnu_ld=no
6661fi
6662
6663ac_prog=ld
6664if test "$GCC" = yes; then
6665  # Check if gcc -print-prog-name=ld gives a path.
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6667$as_echo_n "checking for ld used by $CC... " >&6; }
6668  case $host in
6669  *-*-mingw*)
6670    # gcc leaves a trailing carriage return which upsets mingw
6671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6672  *)
6673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6674  esac
6675  case $ac_prog in
6676    # Accept absolute paths.
6677    [\\/]* | ?:[\\/]*)
6678      re_direlt='/[^/][^/]*/\.\./'
6679      # Canonicalize the pathname of ld
6680      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6681      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6682	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6683      done
6684      test -z "$LD" && LD="$ac_prog"
6685      ;;
6686  "")
6687    # If it fails, then pretend we aren't using GCC.
6688    ac_prog=ld
6689    ;;
6690  *)
6691    # If it is relative, then search for the first ld in PATH.
6692    with_gnu_ld=unknown
6693    ;;
6694  esac
6695elif test "$with_gnu_ld" = yes; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6697$as_echo_n "checking for GNU ld... " >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6700$as_echo_n "checking for non-GNU ld... " >&6; }
6701fi
6702if ${lt_cv_path_LD+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705  if test -z "$LD"; then
6706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707  for ac_dir in $PATH; do
6708    IFS="$lt_save_ifs"
6709    test -z "$ac_dir" && ac_dir=.
6710    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6711      lt_cv_path_LD="$ac_dir/$ac_prog"
6712      # Check to see if the program is GNU ld.  I'd rather use --version,
6713      # but apparently some variants of GNU ld only accept -v.
6714      # Break only if it was the GNU/non-GNU ld that we prefer.
6715      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6716      *GNU* | *'with BFD'*)
6717	test "$with_gnu_ld" != no && break
6718	;;
6719      *)
6720	test "$with_gnu_ld" != yes && break
6721	;;
6722      esac
6723    fi
6724  done
6725  IFS="$lt_save_ifs"
6726else
6727  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6728fi
6729fi
6730
6731LD="$lt_cv_path_LD"
6732if test -n "$LD"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6734$as_echo "$LD" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6742if ${lt_cv_prog_gnu_ld+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6746case `$LD -v 2>&1 </dev/null` in
6747*GNU* | *'with BFD'*)
6748  lt_cv_prog_gnu_ld=yes
6749  ;;
6750*)
6751  lt_cv_prog_gnu_ld=no
6752  ;;
6753esac
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6756$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6757with_gnu_ld=$lt_cv_prog_gnu_ld
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6768$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6769if ${lt_cv_path_NM+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$NM"; then
6773  # Let the user override the test.
6774  lt_cv_path_NM="$NM"
6775else
6776  lt_nm_to_check="${ac_tool_prefix}nm"
6777  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6778    lt_nm_to_check="$lt_nm_to_check nm"
6779  fi
6780  for lt_tmp_nm in $lt_nm_to_check; do
6781    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6782    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6783      IFS="$lt_save_ifs"
6784      test -z "$ac_dir" && ac_dir=.
6785      tmp_nm="$ac_dir/$lt_tmp_nm"
6786      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6787	# Check to see if the nm accepts a BSD-compat flag.
6788	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6789	#   nm: unknown option "B" ignored
6790	# Tru64's nm complains that /dev/null is an invalid object file
6791	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6792	*/dev/null* | *'Invalid file or object type'*)
6793	  lt_cv_path_NM="$tmp_nm -B"
6794	  break
6795	  ;;
6796	*)
6797	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6798	  */dev/null*)
6799	    lt_cv_path_NM="$tmp_nm -p"
6800	    break
6801	    ;;
6802	  *)
6803	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6804	    continue # so that we can try to find one that supports BSD flags
6805	    ;;
6806	  esac
6807	  ;;
6808	esac
6809      fi
6810    done
6811    IFS="$lt_save_ifs"
6812  done
6813  : ${lt_cv_path_NM=no}
6814fi
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6817$as_echo "$lt_cv_path_NM" >&6; }
6818if test "$lt_cv_path_NM" != "no"; then
6819  NM="$lt_cv_path_NM"
6820else
6821  # Didn't find any BSD compatible name lister, look for dumpbin.
6822  if test -n "$DUMPBIN"; then :
6823    # Let the user override the test.
6824  else
6825    if test -n "$ac_tool_prefix"; then
6826  for ac_prog in dumpbin "link -dump"
6827  do
6828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if ${ac_cv_prog_DUMPBIN+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$DUMPBIN"; then
6836  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855DUMPBIN=$ac_cv_prog_DUMPBIN
6856if test -n "$DUMPBIN"; then
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6858$as_echo "$DUMPBIN" >&6; }
6859else
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864
6865    test -n "$DUMPBIN" && break
6866  done
6867fi
6868if test -z "$DUMPBIN"; then
6869  ac_ct_DUMPBIN=$DUMPBIN
6870  for ac_prog in dumpbin "link -dump"
6871do
6872  # Extract the first word of "$ac_prog", so it can be a program name with args.
6873set dummy $ac_prog; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  if test -n "$ac_ct_DUMPBIN"; then
6880  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6900if test -n "$ac_ct_DUMPBIN"; then
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6902$as_echo "$ac_ct_DUMPBIN" >&6; }
6903else
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909  test -n "$ac_ct_DUMPBIN" && break
6910done
6911
6912  if test "x$ac_ct_DUMPBIN" = x; then
6913    DUMPBIN=":"
6914  else
6915    case $cross_compiling:$ac_tool_warned in
6916yes:)
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919ac_tool_warned=yes ;;
6920esac
6921    DUMPBIN=$ac_ct_DUMPBIN
6922  fi
6923fi
6924
6925    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6926    *COFF*)
6927      DUMPBIN="$DUMPBIN -symbols"
6928      ;;
6929    *)
6930      DUMPBIN=:
6931      ;;
6932    esac
6933  fi
6934
6935  if test "$DUMPBIN" != ":"; then
6936    NM="$DUMPBIN"
6937  fi
6938fi
6939test -z "$NM" && NM=nm
6940
6941
6942
6943
6944
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6947$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6948if ${lt_cv_nm_interface+:} false; then :
6949  $as_echo_n "(cached) " >&6
6950else
6951  lt_cv_nm_interface="BSD nm"
6952  echo "int some_variable = 0;" > conftest.$ac_ext
6953  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6954  (eval "$ac_compile" 2>conftest.err)
6955  cat conftest.err >&5
6956  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6957  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6958  cat conftest.err >&5
6959  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6960  cat conftest.out >&5
6961  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6962    lt_cv_nm_interface="MS dumpbin"
6963  fi
6964  rm -f conftest*
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6967$as_echo "$lt_cv_nm_interface" >&6; }
6968
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6970$as_echo_n "checking whether ln -s works... " >&6; }
6971LN_S=$as_ln_s
6972if test "$LN_S" = "ln -s"; then
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6974$as_echo "yes" >&6; }
6975else
6976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6977$as_echo "no, using $LN_S" >&6; }
6978fi
6979
6980# find the maximum length of command line arguments
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6982$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6983if ${lt_cv_sys_max_cmd_len+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986    i=0
6987  teststring="ABCD"
6988
6989  case $build_os in
6990  msdosdjgpp*)
6991    # On DJGPP, this test can blow up pretty badly due to problems in libc
6992    # (any single argument exceeding 2000 bytes causes a buffer overrun
6993    # during glob expansion).  Even if it were fixed, the result of this
6994    # check would be larger than it should be.
6995    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6996    ;;
6997
6998  gnu*)
6999    # Under GNU Hurd, this test is not required because there is
7000    # no limit to the length of command line arguments.
7001    # Libtool will interpret -1 as no limit whatsoever
7002    lt_cv_sys_max_cmd_len=-1;
7003    ;;
7004
7005  cygwin* | mingw* | cegcc*)
7006    # On Win9x/ME, this test blows up -- it succeeds, but takes
7007    # about 5 minutes as the teststring grows exponentially.
7008    # Worse, since 9x/ME are not pre-emptively multitasking,
7009    # you end up with a "frozen" computer, even though with patience
7010    # the test eventually succeeds (with a max line length of 256k).
7011    # Instead, let's just punt: use the minimum linelength reported by
7012    # all of the supported platforms: 8192 (on NT/2K/XP).
7013    lt_cv_sys_max_cmd_len=8192;
7014    ;;
7015
7016  mint*)
7017    # On MiNT this can take a long time and run out of memory.
7018    lt_cv_sys_max_cmd_len=8192;
7019    ;;
7020
7021  amigaos*)
7022    # On AmigaOS with pdksh, this test takes hours, literally.
7023    # So we just punt and use a minimum line length of 8192.
7024    lt_cv_sys_max_cmd_len=8192;
7025    ;;
7026
7027  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7028    # This has been around since 386BSD, at least.  Likely further.
7029    if test -x /sbin/sysctl; then
7030      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7031    elif test -x /usr/sbin/sysctl; then
7032      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7033    else
7034      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7035    fi
7036    # And add a safety zone
7037    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7038    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7039    ;;
7040
7041  interix*)
7042    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7043    lt_cv_sys_max_cmd_len=196608
7044    ;;
7045
7046  osf*)
7047    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7048    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7049    # nice to cause kernel panics so lets avoid the loop below.
7050    # First set a reasonable default.
7051    lt_cv_sys_max_cmd_len=16384
7052    #
7053    if test -x /sbin/sysconfig; then
7054      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7055        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7056      esac
7057    fi
7058    ;;
7059  sco3.2v5*)
7060    lt_cv_sys_max_cmd_len=102400
7061    ;;
7062  sysv5* | sco5v6* | sysv4.2uw2*)
7063    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7064    if test -n "$kargmax"; then
7065      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7066    else
7067      lt_cv_sys_max_cmd_len=32768
7068    fi
7069    ;;
7070  *)
7071    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7072    if test -n "$lt_cv_sys_max_cmd_len"; then
7073      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7074      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7075    else
7076      # Make teststring a little bigger before we do anything with it.
7077      # a 1K string should be a reasonable start.
7078      for i in 1 2 3 4 5 6 7 8 ; do
7079        teststring=$teststring$teststring
7080      done
7081      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7082      # If test is not a shell built-in, we'll probably end up computing a
7083      # maximum length that is only half of the actual maximum length, but
7084      # we can't tell.
7085      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7086	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7087	      test $i != 17 # 1/2 MB should be enough
7088      do
7089        i=`expr $i + 1`
7090        teststring=$teststring$teststring
7091      done
7092      # Only check the string length outside the loop.
7093      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7094      teststring=
7095      # Add a significant safety factor because C++ compilers can tack on
7096      # massive amounts of additional arguments before passing them to the
7097      # linker.  It appears as though 1/2 is a usable value.
7098      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7099    fi
7100    ;;
7101  esac
7102
7103fi
7104
7105if test -n $lt_cv_sys_max_cmd_len ; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7107$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7110$as_echo "none" >&6; }
7111fi
7112max_cmd_len=$lt_cv_sys_max_cmd_len
7113
7114
7115
7116
7117
7118
7119: ${CP="cp -f"}
7120: ${MV="mv -f"}
7121: ${RM="rm -f"}
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7124$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7125# Try some XSI features
7126xsi_shell=no
7127( _lt_dummy="a/b/c"
7128  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7129      = c,a/b,b/c, \
7130    && eval 'test $(( 1 + 1 )) -eq 2 \
7131    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7132  && xsi_shell=yes
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7134$as_echo "$xsi_shell" >&6; }
7135
7136
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7138$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7139lt_shell_append=no
7140( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7141    >/dev/null 2>&1 \
7142  && lt_shell_append=yes
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7144$as_echo "$lt_shell_append" >&6; }
7145
7146
7147if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7148  lt_unset=unset
7149else
7150  lt_unset=false
7151fi
7152
7153
7154
7155
7156
7157# test EBCDIC or ASCII
7158case `echo X|tr X '\101'` in
7159 A) # ASCII based system
7160    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7161  lt_SP2NL='tr \040 \012'
7162  lt_NL2SP='tr \015\012 \040\040'
7163  ;;
7164 *) # EBCDIC based system
7165  lt_SP2NL='tr \100 \n'
7166  lt_NL2SP='tr \r\n \100\100'
7167  ;;
7168esac
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7179$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7180if ${lt_cv_to_host_file_cmd+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  case $host in
7184  *-*-mingw* )
7185    case $build in
7186      *-*-mingw* ) # actually msys
7187        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7188        ;;
7189      *-*-cygwin* )
7190        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7191        ;;
7192      * ) # otherwise, assume *nix
7193        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7194        ;;
7195    esac
7196    ;;
7197  *-*-cygwin* )
7198    case $build in
7199      *-*-mingw* ) # actually msys
7200        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7201        ;;
7202      *-*-cygwin* )
7203        lt_cv_to_host_file_cmd=func_convert_file_noop
7204        ;;
7205      * ) # otherwise, assume *nix
7206        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7207        ;;
7208    esac
7209    ;;
7210  * ) # unhandled hosts (and "normal" native builds)
7211    lt_cv_to_host_file_cmd=func_convert_file_noop
7212    ;;
7213esac
7214
7215fi
7216
7217to_host_file_cmd=$lt_cv_to_host_file_cmd
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7219$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7220
7221
7222
7223
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7226$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7227if ${lt_cv_to_tool_file_cmd+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  #assume ordinary cross tools, or native build.
7231lt_cv_to_tool_file_cmd=func_convert_file_noop
7232case $host in
7233  *-*-mingw* )
7234    case $build in
7235      *-*-mingw* ) # actually msys
7236        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7237        ;;
7238    esac
7239    ;;
7240esac
7241
7242fi
7243
7244to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7246$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7247
7248
7249
7250
7251
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7253$as_echo_n "checking for $LD option to reload object files... " >&6; }
7254if ${lt_cv_ld_reload_flag+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  lt_cv_ld_reload_flag='-r'
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7260$as_echo "$lt_cv_ld_reload_flag" >&6; }
7261reload_flag=$lt_cv_ld_reload_flag
7262case $reload_flag in
7263"" | " "*) ;;
7264*) reload_flag=" $reload_flag" ;;
7265esac
7266reload_cmds='$LD$reload_flag -o $output$reload_objs'
7267case $host_os in
7268  cygwin* | mingw* | pw32* | cegcc*)
7269    if test "$GCC" != yes; then
7270      reload_cmds=false
7271    fi
7272    ;;
7273  darwin*)
7274    if test "$GCC" = yes; then
7275      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7276    else
7277      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7278    fi
7279    ;;
7280esac
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290if test -n "$ac_tool_prefix"; then
7291  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7292set dummy ${ac_tool_prefix}objdump; ac_word=$2
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
7295if ${ac_cv_prog_OBJDUMP+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  if test -n "$OBJDUMP"; then
7299  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306    for ac_exec_ext in '' $ac_executable_extensions; do
7307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313  done
7314IFS=$as_save_IFS
7315
7316fi
7317fi
7318OBJDUMP=$ac_cv_prog_OBJDUMP
7319if test -n "$OBJDUMP"; then
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7321$as_echo "$OBJDUMP" >&6; }
7322else
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
7325fi
7326
7327
7328fi
7329if test -z "$ac_cv_prog_OBJDUMP"; then
7330  ac_ct_OBJDUMP=$OBJDUMP
7331  # Extract the first word of "objdump", so it can be a program name with args.
7332set dummy objdump; ac_word=$2
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334$as_echo_n "checking for $ac_word... " >&6; }
7335if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  if test -n "$ac_ct_OBJDUMP"; then
7339  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346    for ac_exec_ext in '' $ac_executable_extensions; do
7347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353  done
7354IFS=$as_save_IFS
7355
7356fi
7357fi
7358ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7359if test -n "$ac_ct_OBJDUMP"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7361$as_echo "$ac_ct_OBJDUMP" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365fi
7366
7367  if test "x$ac_ct_OBJDUMP" = x; then
7368    OBJDUMP="false"
7369  else
7370    case $cross_compiling:$ac_tool_warned in
7371yes:)
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374ac_tool_warned=yes ;;
7375esac
7376    OBJDUMP=$ac_ct_OBJDUMP
7377  fi
7378else
7379  OBJDUMP="$ac_cv_prog_OBJDUMP"
7380fi
7381
7382test -z "$OBJDUMP" && OBJDUMP=objdump
7383
7384
7385
7386
7387
7388
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7390$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7391if ${lt_cv_deplibs_check_method+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  lt_cv_file_magic_cmd='$MAGIC_CMD'
7395lt_cv_file_magic_test_file=
7396lt_cv_deplibs_check_method='unknown'
7397# Need to set the preceding variable on all platforms that support
7398# interlibrary dependencies.
7399# 'none' -- dependencies not supported.
7400# `unknown' -- same as none, but documents that we really don't know.
7401# 'pass_all' -- all dependencies passed with no checks.
7402# 'test_compile' -- check by making test program.
7403# 'file_magic [[regex]]' -- check by looking for files in library path
7404# which responds to the $file_magic_cmd with a given extended regex.
7405# If you have `file' or equivalent on your system and you're not sure
7406# whether `pass_all' will *always* work, you probably want this one.
7407
7408case $host_os in
7409aix[4-9]*)
7410  lt_cv_deplibs_check_method=pass_all
7411  ;;
7412
7413beos*)
7414  lt_cv_deplibs_check_method=pass_all
7415  ;;
7416
7417bsdi[45]*)
7418  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7419  lt_cv_file_magic_cmd='/usr/bin/file -L'
7420  lt_cv_file_magic_test_file=/shlib/libc.so
7421  ;;
7422
7423cygwin*)
7424  # func_win32_libid is a shell function defined in ltmain.sh
7425  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7426  lt_cv_file_magic_cmd='func_win32_libid'
7427  ;;
7428
7429mingw* | pw32*)
7430  # Base MSYS/MinGW do not provide the 'file' command needed by
7431  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7432  # unless we find 'file', for example because we are cross-compiling.
7433  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7434  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7435    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7436    lt_cv_file_magic_cmd='func_win32_libid'
7437  else
7438    # Keep this pattern in sync with the one in func_win32_libid.
7439    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7440    lt_cv_file_magic_cmd='$OBJDUMP -f'
7441  fi
7442  ;;
7443
7444cegcc*)
7445  # use the weaker test based on 'objdump'. See mingw*.
7446  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7447  lt_cv_file_magic_cmd='$OBJDUMP -f'
7448  ;;
7449
7450darwin* | rhapsody*)
7451  lt_cv_deplibs_check_method=pass_all
7452  ;;
7453
7454freebsd* | dragonfly*)
7455  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7456    case $host_cpu in
7457    i*86 )
7458      # Not sure whether the presence of OpenBSD here was a mistake.
7459      # Let's accept both of them until this is cleared up.
7460      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7461      lt_cv_file_magic_cmd=/usr/bin/file
7462      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7463      ;;
7464    esac
7465  else
7466    lt_cv_deplibs_check_method=pass_all
7467  fi
7468  ;;
7469
7470gnu*)
7471  lt_cv_deplibs_check_method=pass_all
7472  ;;
7473
7474haiku*)
7475  lt_cv_deplibs_check_method=pass_all
7476  ;;
7477
7478hpux10.20* | hpux11*)
7479  lt_cv_file_magic_cmd=/usr/bin/file
7480  case $host_cpu in
7481  ia64*)
7482    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7483    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7484    ;;
7485  hppa*64*)
7486    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7487    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7488    ;;
7489  *)
7490    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7491    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7492    ;;
7493  esac
7494  ;;
7495
7496interix[3-9]*)
7497  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7498  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7499  ;;
7500
7501irix5* | irix6* | nonstopux*)
7502  case $LD in
7503  *-32|*"-32 ") libmagic=32-bit;;
7504  *-n32|*"-n32 ") libmagic=N32;;
7505  *-64|*"-64 ") libmagic=64-bit;;
7506  *) libmagic=never-match;;
7507  esac
7508  lt_cv_deplibs_check_method=pass_all
7509  ;;
7510
7511# This must be Linux ELF.
7512linux* | k*bsd*-gnu | kopensolaris*-gnu)
7513  lt_cv_deplibs_check_method=pass_all
7514  ;;
7515
7516netbsd* | netbsdelf*-gnu)
7517  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7518    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7519  else
7520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7521  fi
7522  ;;
7523
7524newos6*)
7525  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7526  lt_cv_file_magic_cmd=/usr/bin/file
7527  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7528  ;;
7529
7530*nto* | *qnx*)
7531  lt_cv_deplibs_check_method=pass_all
7532  ;;
7533
7534openbsd*)
7535  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7537  else
7538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7539  fi
7540  ;;
7541
7542osf3* | osf4* | osf5*)
7543  lt_cv_deplibs_check_method=pass_all
7544  ;;
7545
7546rdos*)
7547  lt_cv_deplibs_check_method=pass_all
7548  ;;
7549
7550solaris*)
7551  lt_cv_deplibs_check_method=pass_all
7552  ;;
7553
7554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7555  lt_cv_deplibs_check_method=pass_all
7556  ;;
7557
7558sysv4 | sysv4.3*)
7559  case $host_vendor in
7560  motorola)
7561    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]'
7562    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7563    ;;
7564  ncr)
7565    lt_cv_deplibs_check_method=pass_all
7566    ;;
7567  sequent)
7568    lt_cv_file_magic_cmd='/bin/file'
7569    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7570    ;;
7571  sni)
7572    lt_cv_file_magic_cmd='/bin/file'
7573    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7574    lt_cv_file_magic_test_file=/lib/libc.so
7575    ;;
7576  siemens)
7577    lt_cv_deplibs_check_method=pass_all
7578    ;;
7579  pc)
7580    lt_cv_deplibs_check_method=pass_all
7581    ;;
7582  esac
7583  ;;
7584
7585tpf*)
7586  lt_cv_deplibs_check_method=pass_all
7587  ;;
7588esac
7589
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7592$as_echo "$lt_cv_deplibs_check_method" >&6; }
7593
7594file_magic_glob=
7595want_nocaseglob=no
7596if test "$build" = "$host"; then
7597  case $host_os in
7598  mingw* | pw32*)
7599    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7600      want_nocaseglob=yes
7601    else
7602      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7603    fi
7604    ;;
7605  esac
7606fi
7607
7608file_magic_cmd=$lt_cv_file_magic_cmd
7609deplibs_check_method=$lt_cv_deplibs_check_method
7610test -z "$deplibs_check_method" && deplibs_check_method=unknown
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if ${ac_cv_prog_DLLTOOL+:} false; then :
7639  $as_echo_n "(cached) " >&6
7640else
7641  if test -n "$DLLTOOL"; then
7642  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649    for ac_exec_ext in '' $ac_executable_extensions; do
7650  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656  done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661DLLTOOL=$ac_cv_prog_DLLTOOL
7662if test -n "$DLLTOOL"; then
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7664$as_echo "$DLLTOOL" >&6; }
7665else
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670
7671fi
7672if test -z "$ac_cv_prog_DLLTOOL"; then
7673  ac_ct_DLLTOOL=$DLLTOOL
7674  # Extract the first word of "dlltool", so it can be a program name with args.
7675set dummy dlltool; ac_word=$2
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  if test -n "$ac_ct_DLLTOOL"; then
7682  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  test -z "$as_dir" && as_dir=.
7689    for ac_exec_ext in '' $ac_executable_extensions; do
7690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693    break 2
7694  fi
7695done
7696  done
7697IFS=$as_save_IFS
7698
7699fi
7700fi
7701ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7702if test -n "$ac_ct_DLLTOOL"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7704$as_echo "$ac_ct_DLLTOOL" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710  if test "x$ac_ct_DLLTOOL" = x; then
7711    DLLTOOL="false"
7712  else
7713    case $cross_compiling:$ac_tool_warned in
7714yes:)
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717ac_tool_warned=yes ;;
7718esac
7719    DLLTOOL=$ac_ct_DLLTOOL
7720  fi
7721else
7722  DLLTOOL="$ac_cv_prog_DLLTOOL"
7723fi
7724
7725test -z "$DLLTOOL" && DLLTOOL=dlltool
7726
7727
7728
7729
7730
7731
7732
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7734$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7735if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7736  $as_echo_n "(cached) " >&6
7737else
7738  lt_cv_sharedlib_from_linklib_cmd='unknown'
7739
7740case $host_os in
7741cygwin* | mingw* | pw32* | cegcc*)
7742  # two different shell functions defined in ltmain.sh
7743  # decide which to use based on capabilities of $DLLTOOL
7744  case `$DLLTOOL --help 2>&1` in
7745  *--identify-strict*)
7746    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7747    ;;
7748  *)
7749    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7750    ;;
7751  esac
7752  ;;
7753*)
7754  # fallback: assume linklib IS sharedlib
7755  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7756  ;;
7757esac
7758
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7761$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7762sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7763test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7764
7765
7766
7767
7768
7769
7770
7771if test -n "$ac_tool_prefix"; then
7772  for ac_prog in ar
7773  do
7774    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if ${ac_cv_prog_AR+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  if test -n "$AR"; then
7782  ac_cv_prog_AR="$AR" # Let the user override the test.
7783else
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787  IFS=$as_save_IFS
7788  test -z "$as_dir" && as_dir=.
7789    for ac_exec_ext in '' $ac_executable_extensions; do
7790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793    break 2
7794  fi
7795done
7796  done
7797IFS=$as_save_IFS
7798
7799fi
7800fi
7801AR=$ac_cv_prog_AR
7802if test -n "$AR"; then
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7804$as_echo "$AR" >&6; }
7805else
7806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808fi
7809
7810
7811    test -n "$AR" && break
7812  done
7813fi
7814if test -z "$AR"; then
7815  ac_ct_AR=$AR
7816  for ac_prog in ar
7817do
7818  # Extract the first word of "$ac_prog", so it can be a program name with args.
7819set dummy $ac_prog; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if ${ac_cv_prog_ac_ct_AR+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  if test -n "$ac_ct_AR"; then
7826  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833    for ac_exec_ext in '' $ac_executable_extensions; do
7834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835    ac_cv_prog_ac_ct_AR="$ac_prog"
7836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837    break 2
7838  fi
7839done
7840  done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845ac_ct_AR=$ac_cv_prog_ac_ct_AR
7846if test -n "$ac_ct_AR"; then
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7848$as_echo "$ac_ct_AR" >&6; }
7849else
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854
7855  test -n "$ac_ct_AR" && break
7856done
7857
7858  if test "x$ac_ct_AR" = x; then
7859    AR="false"
7860  else
7861    case $cross_compiling:$ac_tool_warned in
7862yes:)
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865ac_tool_warned=yes ;;
7866esac
7867    AR=$ac_ct_AR
7868  fi
7869fi
7870
7871: ${AR=ar}
7872: ${AR_FLAGS=cru}
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7885$as_echo_n "checking for archiver @FILE support... " >&6; }
7886if ${lt_cv_ar_at_file+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  lt_cv_ar_at_file=no
7890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892
7893int main (void)
7894{
7895
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901  echo conftest.$ac_objext > conftest.lst
7902      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7903      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7904  (eval $lt_ar_try) 2>&5
7905  ac_status=$?
7906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907  test $ac_status = 0; }
7908      if test "$ac_status" -eq 0; then
7909	# Ensure the archiver fails upon bogus file names.
7910	rm -f conftest.$ac_objext libconftest.a
7911	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7912  (eval $lt_ar_try) 2>&5
7913  ac_status=$?
7914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7915  test $ac_status = 0; }
7916	if test "$ac_status" -ne 0; then
7917          lt_cv_ar_at_file=@
7918        fi
7919      fi
7920      rm -f conftest.* libconftest.a
7921
7922fi
7923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924
7925fi
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7927$as_echo "$lt_cv_ar_at_file" >&6; }
7928
7929if test "x$lt_cv_ar_at_file" = xno; then
7930  archiver_list_spec=
7931else
7932  archiver_list_spec=$lt_cv_ar_at_file
7933fi
7934
7935
7936
7937
7938
7939
7940
7941if test -n "$ac_tool_prefix"; then
7942  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7943set dummy ${ac_tool_prefix}strip; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_STRIP+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  if test -n "$STRIP"; then
7950  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955  IFS=$as_save_IFS
7956  test -z "$as_dir" && as_dir=.
7957    for ac_exec_ext in '' $ac_executable_extensions; do
7958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961    break 2
7962  fi
7963done
7964  done
7965IFS=$as_save_IFS
7966
7967fi
7968fi
7969STRIP=$ac_cv_prog_STRIP
7970if test -n "$STRIP"; then
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7972$as_echo "$STRIP" >&6; }
7973else
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
7978
7979fi
7980if test -z "$ac_cv_prog_STRIP"; then
7981  ac_ct_STRIP=$STRIP
7982  # Extract the first word of "strip", so it can be a program name with args.
7983set dummy strip; ac_word=$2
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test -n "$ac_ct_STRIP"; then
7990  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997    for ac_exec_ext in '' $ac_executable_extensions; do
7998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999    ac_cv_prog_ac_ct_STRIP="strip"
8000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004  done
8005IFS=$as_save_IFS
8006
8007fi
8008fi
8009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8010if test -n "$ac_ct_STRIP"; then
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8012$as_echo "$ac_ct_STRIP" >&6; }
8013else
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018  if test "x$ac_ct_STRIP" = x; then
8019    STRIP=":"
8020  else
8021    case $cross_compiling:$ac_tool_warned in
8022yes:)
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025ac_tool_warned=yes ;;
8026esac
8027    STRIP=$ac_ct_STRIP
8028  fi
8029else
8030  STRIP="$ac_cv_prog_STRIP"
8031fi
8032
8033test -z "$STRIP" && STRIP=:
8034
8035
8036
8037
8038
8039
8040if test -n "$ac_tool_prefix"; then
8041  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8042set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if ${ac_cv_prog_RANLIB+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  if test -n "$RANLIB"; then
8049  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054  IFS=$as_save_IFS
8055  test -z "$as_dir" && as_dir=.
8056    for ac_exec_ext in '' $ac_executable_extensions; do
8057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060    break 2
8061  fi
8062done
8063  done
8064IFS=$as_save_IFS
8065
8066fi
8067fi
8068RANLIB=$ac_cv_prog_RANLIB
8069if test -n "$RANLIB"; then
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8071$as_echo "$RANLIB" >&6; }
8072else
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
8075fi
8076
8077
8078fi
8079if test -z "$ac_cv_prog_RANLIB"; then
8080  ac_ct_RANLIB=$RANLIB
8081  # Extract the first word of "ranlib", so it can be a program name with args.
8082set dummy ranlib; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  if test -n "$ac_ct_RANLIB"; then
8089  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094  IFS=$as_save_IFS
8095  test -z "$as_dir" && as_dir=.
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098    ac_cv_prog_ac_ct_RANLIB="ranlib"
8099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103  done
8104IFS=$as_save_IFS
8105
8106fi
8107fi
8108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8109if test -n "$ac_ct_RANLIB"; then
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8111$as_echo "$ac_ct_RANLIB" >&6; }
8112else
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
8116
8117  if test "x$ac_ct_RANLIB" = x; then
8118    RANLIB=":"
8119  else
8120    case $cross_compiling:$ac_tool_warned in
8121yes:)
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124ac_tool_warned=yes ;;
8125esac
8126    RANLIB=$ac_ct_RANLIB
8127  fi
8128else
8129  RANLIB="$ac_cv_prog_RANLIB"
8130fi
8131
8132test -z "$RANLIB" && RANLIB=:
8133
8134
8135
8136
8137
8138
8139# Determine commands to create old-style static archives.
8140old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8141old_postinstall_cmds='chmod 644 $oldlib'
8142old_postuninstall_cmds=
8143
8144if test -n "$RANLIB"; then
8145  case $host_os in
8146  openbsd*)
8147    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8148    ;;
8149  *)
8150    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8151    ;;
8152  esac
8153  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8154fi
8155
8156case $host_os in
8157  darwin*)
8158    lock_old_archive_extraction=yes ;;
8159  *)
8160    lock_old_archive_extraction=no ;;
8161esac
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201# If no C compiler was specified, use CC.
8202LTCC=${LTCC-"$CC"}
8203
8204# If no C compiler flags were specified, use CFLAGS.
8205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8206
8207# Allow CC to be a program name with arguments.
8208compiler=$CC
8209
8210
8211# Check for command to grab the raw symbol name followed by C symbol from nm.
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8213$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8214if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217
8218# These are sane defaults that work on at least a few old systems.
8219# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8220
8221# Character class describing NM global symbol codes.
8222symcode='[BCDEGRST]'
8223
8224# Regexp to match symbols that can be accessed directly from C.
8225sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8226
8227# Define system-specific variables.
8228case $host_os in
8229aix*)
8230  symcode='[BCDT]'
8231  ;;
8232cygwin* | mingw* | pw32* | cegcc*)
8233  symcode='[ABCDGISTW]'
8234  ;;
8235hpux*)
8236  if test "$host_cpu" = ia64; then
8237    symcode='[ABCDEGRST]'
8238  fi
8239  ;;
8240irix* | nonstopux*)
8241  symcode='[BCDEGRST]'
8242  ;;
8243osf*)
8244  symcode='[BCDEGQRST]'
8245  ;;
8246solaris*)
8247  symcode='[BDRT]'
8248  ;;
8249sco3.2v5*)
8250  symcode='[DT]'
8251  ;;
8252sysv4.2uw2*)
8253  symcode='[DT]'
8254  ;;
8255sysv5* | sco5v6* | unixware* | OpenUNIX*)
8256  symcode='[ABDT]'
8257  ;;
8258sysv4)
8259  symcode='[DFNSTU]'
8260  ;;
8261esac
8262
8263# If we're using GNU nm, then use its standard symbol codes.
8264case `$NM -V 2>&1` in
8265*GNU* | *'with BFD'*)
8266  symcode='[ABCDGIRSTW]' ;;
8267esac
8268
8269# Transform an extracted symbol line into a proper C declaration.
8270# Some systems (esp. on ia64) link data and code symbols differently,
8271# so use this general approach.
8272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8273
8274# Transform an extracted symbol line into symbol name and symbol address
8275lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8276lt_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'"
8277
8278# Handle CRLF in mingw tool chain
8279opt_cr=
8280case $build_os in
8281mingw*)
8282  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8283  ;;
8284esac
8285
8286# Try without a prefix underscore, then with it.
8287for ac_symprfx in "" "_"; do
8288
8289  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8290  symxfrm="\\1 $ac_symprfx\\2 \\2"
8291
8292  # Write the raw and C identifiers.
8293  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8294    # Fake it for dumpbin and say T for any non-static function
8295    # and D for any global variable.
8296    # Also find C++ and __fastcall symbols from MSVC++,
8297    # which start with @ or ?.
8298    lt_cv_sys_global_symbol_pipe="$AWK '"\
8299"     {last_section=section; section=\$ 3};"\
8300"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8301"     \$ 0!~/External *\|/{next};"\
8302"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8303"     {if(hide[section]) next};"\
8304"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8305"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8306"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8307"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8308"     ' prfx=^$ac_symprfx"
8309  else
8310    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8311  fi
8312  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8313
8314  # Check to see that the pipe works correctly.
8315  pipe_works=no
8316
8317  rm -f conftest*
8318  cat > conftest.$ac_ext <<_LT_EOF
8319#ifdef __cplusplus
8320extern "C" {
8321#endif
8322char nm_test_var;
8323void nm_test_func(void);
8324void nm_test_func(void){}
8325#ifdef __cplusplus
8326}
8327#endif
8328int main(){nm_test_var='a';nm_test_func();return(0);}
8329_LT_EOF
8330
8331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8332  (eval $ac_compile) 2>&5
8333  ac_status=$?
8334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8335  test $ac_status = 0; }; then
8336    # Now try to grab the symbols.
8337    nlist=conftest.nm
8338    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8339  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8340  ac_status=$?
8341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342  test $ac_status = 0; } && test -s "$nlist"; then
8343      # Try sorting and uniquifying the output.
8344      if sort "$nlist" | uniq > "$nlist"T; then
8345	mv -f "$nlist"T "$nlist"
8346      else
8347	rm -f "$nlist"T
8348      fi
8349
8350      # Make sure that we snagged all the symbols we need.
8351      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8352	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8353	  cat <<_LT_EOF > conftest.$ac_ext
8354/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8355#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8356/* DATA imports from DLLs on WIN32 con't be const, because runtime
8357   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8358# define LT_DLSYM_CONST
8359#elif defined(__osf__)
8360/* This system does not cope well with relocations in const data.  */
8361# define LT_DLSYM_CONST
8362#else
8363# define LT_DLSYM_CONST const
8364#endif
8365
8366#ifdef __cplusplus
8367extern "C" {
8368#endif
8369
8370_LT_EOF
8371	  # Now generate the symbol file.
8372	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8373
8374	  cat <<_LT_EOF >> conftest.$ac_ext
8375
8376/* The mapping between symbol names and symbols.  */
8377LT_DLSYM_CONST struct {
8378  const char *name;
8379  void       *address;
8380}
8381lt__PROGRAM__LTX_preloaded_symbols[] =
8382{
8383  { "@PROGRAM@", (void *) 0 },
8384_LT_EOF
8385	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8386	  cat <<\_LT_EOF >> conftest.$ac_ext
8387  {0, (void *) 0}
8388};
8389
8390/* This works around a problem in FreeBSD linker */
8391#ifdef FREEBSD_WORKAROUND
8392static const void *lt_preloaded_setup() {
8393  return lt__PROGRAM__LTX_preloaded_symbols;
8394}
8395#endif
8396
8397#ifdef __cplusplus
8398}
8399#endif
8400_LT_EOF
8401	  # Now try linking the two files.
8402	  mv conftest.$ac_objext conftstm.$ac_objext
8403	  lt_globsym_save_LIBS=$LIBS
8404	  lt_globsym_save_CFLAGS=$CFLAGS
8405	  LIBS="conftstm.$ac_objext"
8406	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8407	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8408  (eval $ac_link) 2>&5
8409  ac_status=$?
8410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8412	    pipe_works=yes
8413	  fi
8414	  LIBS=$lt_globsym_save_LIBS
8415	  CFLAGS=$lt_globsym_save_CFLAGS
8416	else
8417	  echo "cannot find nm_test_func in $nlist" >&5
8418	fi
8419      else
8420	echo "cannot find nm_test_var in $nlist" >&5
8421      fi
8422    else
8423      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8424    fi
8425  else
8426    echo "$progname: failed program was:" >&5
8427    cat conftest.$ac_ext >&5
8428  fi
8429  rm -rf conftest* conftst*
8430
8431  # Do not use the global_symbol_pipe unless it works.
8432  if test "$pipe_works" = yes; then
8433    break
8434  else
8435    lt_cv_sys_global_symbol_pipe=
8436  fi
8437done
8438
8439fi
8440
8441if test -z "$lt_cv_sys_global_symbol_pipe"; then
8442  lt_cv_sys_global_symbol_to_cdecl=
8443fi
8444if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8446$as_echo "failed" >&6; }
8447else
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8449$as_echo "ok" >&6; }
8450fi
8451
8452# Response file support.
8453if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8454  nm_file_list_spec='@'
8455elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8456  nm_file_list_spec='@'
8457fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8486$as_echo_n "checking for sysroot... " >&6; }
8487
8488# Check whether --with-sysroot was given.
8489if test "${with_sysroot+set}" = set; then :
8490  withval=$with_sysroot;
8491else
8492  with_sysroot=no
8493fi
8494
8495
8496lt_sysroot=
8497case ${with_sysroot} in #(
8498 yes)
8499   if test "$GCC" = yes; then
8500     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8501   fi
8502   ;; #(
8503 /*)
8504   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8505   ;; #(
8506 no|'')
8507   ;; #(
8508 *)
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8510$as_echo "${with_sysroot}" >&6; }
8511   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8512   ;;
8513esac
8514
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8516$as_echo "${lt_sysroot:-no}" >&6; }
8517
8518
8519
8520
8521
8522# Check whether --enable-libtool-lock was given.
8523if test "${enable_libtool_lock+set}" = set; then :
8524  enableval=$enable_libtool_lock;
8525fi
8526
8527test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8528
8529# Some flags need to be propagated to the compiler or linker for good
8530# libtool support.
8531case $host in
8532ia64-*-hpux*)
8533  # Find out which ABI we are using.
8534  echo 'int i;' > conftest.$ac_ext
8535  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8536  (eval $ac_compile) 2>&5
8537  ac_status=$?
8538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8539  test $ac_status = 0; }; then
8540    case `/usr/bin/file conftest.$ac_objext` in
8541      *ELF-32*)
8542	HPUX_IA64_MODE="32"
8543	;;
8544      *ELF-64*)
8545	HPUX_IA64_MODE="64"
8546	;;
8547    esac
8548  fi
8549  rm -rf conftest*
8550  ;;
8551*-*-irix6*)
8552  # Find out which ABI we are using.
8553  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8554  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8555  (eval $ac_compile) 2>&5
8556  ac_status=$?
8557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558  test $ac_status = 0; }; then
8559    if test "$lt_cv_prog_gnu_ld" = yes; then
8560      case `/usr/bin/file conftest.$ac_objext` in
8561	*32-bit*)
8562	  LD="${LD-ld} -melf32bsmip"
8563	  ;;
8564	*N32*)
8565	  LD="${LD-ld} -melf32bmipn32"
8566	  ;;
8567	*64-bit*)
8568	  LD="${LD-ld} -melf64bmip"
8569	;;
8570      esac
8571    else
8572      case `/usr/bin/file conftest.$ac_objext` in
8573	*32-bit*)
8574	  LD="${LD-ld} -32"
8575	  ;;
8576	*N32*)
8577	  LD="${LD-ld} -n32"
8578	  ;;
8579	*64-bit*)
8580	  LD="${LD-ld} -64"
8581	  ;;
8582      esac
8583    fi
8584  fi
8585  rm -rf conftest*
8586  ;;
8587
8588x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8589s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8590  # Find out which ABI we are using.
8591  echo 'int i;' > conftest.$ac_ext
8592  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8593  (eval $ac_compile) 2>&5
8594  ac_status=$?
8595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8596  test $ac_status = 0; }; then
8597    case `/usr/bin/file conftest.o` in
8598      *32-bit*)
8599	case $host in
8600	  x86_64-*kfreebsd*-gnu)
8601	    LD="${LD-ld} -m elf_i386_fbsd"
8602	    ;;
8603	  x86_64-*linux*)
8604	    LD="${LD-ld} -m elf_i386"
8605	    ;;
8606	  ppc64-*linux*|powerpc64-*linux*)
8607	    LD="${LD-ld} -m elf32ppclinux"
8608	    ;;
8609	  s390x-*linux*)
8610	    LD="${LD-ld} -m elf_s390"
8611	    ;;
8612	  sparc64-*linux*)
8613	    LD="${LD-ld} -m elf32_sparc"
8614	    ;;
8615	esac
8616	;;
8617      *64-bit*)
8618	case $host in
8619	  x86_64-*kfreebsd*-gnu)
8620	    LD="${LD-ld} -m elf_x86_64_fbsd"
8621	    ;;
8622	  x86_64-*linux*)
8623	    LD="${LD-ld} -m elf_x86_64"
8624	    ;;
8625	  ppc*-*linux*|powerpc*-*linux*)
8626	    LD="${LD-ld} -m elf64ppc"
8627	    ;;
8628	  s390*-*linux*|s390*-*tpf*)
8629	    LD="${LD-ld} -m elf64_s390"
8630	    ;;
8631	  sparc*-*linux*)
8632	    LD="${LD-ld} -m elf64_sparc"
8633	    ;;
8634	esac
8635	;;
8636    esac
8637  fi
8638  rm -rf conftest*
8639  ;;
8640
8641*-*-sco3.2v5*)
8642  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8643  SAVE_CFLAGS="$CFLAGS"
8644  CFLAGS="$CFLAGS -belf"
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8646$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8647if ${lt_cv_cc_needs_belf+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  ac_ext=c
8651ac_cpp='$CPP $CPPFLAGS'
8652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658
8659int main (void)
8660{
8661
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667  lt_cv_cc_needs_belf=yes
8668else
8669  lt_cv_cc_needs_belf=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext \
8672    conftest$ac_exeext conftest.$ac_ext
8673     ac_ext=c
8674ac_cpp='$CPP $CPPFLAGS'
8675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8677ac_compiler_gnu=$ac_cv_c_compiler_gnu
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8681$as_echo "$lt_cv_cc_needs_belf" >&6; }
8682  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8683    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8684    CFLAGS="$SAVE_CFLAGS"
8685  fi
8686  ;;
8687sparc*-*solaris*)
8688  # Find out which ABI we are using.
8689  echo 'int i;' > conftest.$ac_ext
8690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8691  (eval $ac_compile) 2>&5
8692  ac_status=$?
8693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8694  test $ac_status = 0; }; then
8695    case `/usr/bin/file conftest.o` in
8696    *64-bit*)
8697      case $lt_cv_prog_gnu_ld in
8698      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8699      *)
8700	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8701	  LD="${LD-ld} -64"
8702	fi
8703	;;
8704      esac
8705      ;;
8706    esac
8707  fi
8708  rm -rf conftest*
8709  ;;
8710esac
8711
8712need_locks="$enable_libtool_lock"
8713
8714if test -n "$ac_tool_prefix"; then
8715  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8716set dummy ${ac_tool_prefix}mt; ac_word=$2
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718$as_echo_n "checking for $ac_word... " >&6; }
8719if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  if test -n "$MANIFEST_TOOL"; then
8723  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8724else
8725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728  IFS=$as_save_IFS
8729  test -z "$as_dir" && as_dir=.
8730    for ac_exec_ext in '' $ac_executable_extensions; do
8731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734    break 2
8735  fi
8736done
8737  done
8738IFS=$as_save_IFS
8739
8740fi
8741fi
8742MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8743if test -n "$MANIFEST_TOOL"; then
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8745$as_echo "$MANIFEST_TOOL" >&6; }
8746else
8747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749fi
8750
8751
8752fi
8753if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8754  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8755  # Extract the first word of "mt", so it can be a program name with args.
8756set dummy mt; ac_word=$2
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758$as_echo_n "checking for $ac_word... " >&6; }
8759if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8760  $as_echo_n "(cached) " >&6
8761else
8762  if test -n "$ac_ct_MANIFEST_TOOL"; then
8763  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8764else
8765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768  IFS=$as_save_IFS
8769  test -z "$as_dir" && as_dir=.
8770    for ac_exec_ext in '' $ac_executable_extensions; do
8771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774    break 2
8775  fi
8776done
8777  done
8778IFS=$as_save_IFS
8779
8780fi
8781fi
8782ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8783if test -n "$ac_ct_MANIFEST_TOOL"; then
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8785$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8786else
8787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788$as_echo "no" >&6; }
8789fi
8790
8791  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8792    MANIFEST_TOOL=":"
8793  else
8794    case $cross_compiling:$ac_tool_warned in
8795yes:)
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8798ac_tool_warned=yes ;;
8799esac
8800    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8801  fi
8802else
8803  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8804fi
8805
8806test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8808$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8809if ${lt_cv_path_mainfest_tool+:} false; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  lt_cv_path_mainfest_tool=no
8813  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8814  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8815  cat conftest.err >&5
8816  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8817    lt_cv_path_mainfest_tool=yes
8818  fi
8819  rm -f conftest*
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8822$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8823if test "x$lt_cv_path_mainfest_tool" != xyes; then
8824  MANIFEST_TOOL=:
8825fi
8826
8827
8828
8829
8830
8831
8832  case $host_os in
8833    rhapsody* | darwin*)
8834    if test -n "$ac_tool_prefix"; then
8835  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8836set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
8839if ${ac_cv_prog_DSYMUTIL+:} false; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  if test -n "$DSYMUTIL"; then
8843  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8844else
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848  IFS=$as_save_IFS
8849  test -z "$as_dir" && as_dir=.
8850    for ac_exec_ext in '' $ac_executable_extensions; do
8851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854    break 2
8855  fi
8856done
8857  done
8858IFS=$as_save_IFS
8859
8860fi
8861fi
8862DSYMUTIL=$ac_cv_prog_DSYMUTIL
8863if test -n "$DSYMUTIL"; then
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8865$as_echo "$DSYMUTIL" >&6; }
8866else
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
8869fi
8870
8871
8872fi
8873if test -z "$ac_cv_prog_DSYMUTIL"; then
8874  ac_ct_DSYMUTIL=$DSYMUTIL
8875  # Extract the first word of "dsymutil", so it can be a program name with args.
8876set dummy dsymutil; ac_word=$2
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878$as_echo_n "checking for $ac_word... " >&6; }
8879if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  if test -n "$ac_ct_DSYMUTIL"; then
8883  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8884else
8885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886for as_dir in $PATH
8887do
8888  IFS=$as_save_IFS
8889  test -z "$as_dir" && as_dir=.
8890    for ac_exec_ext in '' $ac_executable_extensions; do
8891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894    break 2
8895  fi
8896done
8897  done
8898IFS=$as_save_IFS
8899
8900fi
8901fi
8902ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8903if test -n "$ac_ct_DSYMUTIL"; then
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8905$as_echo "$ac_ct_DSYMUTIL" >&6; }
8906else
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909fi
8910
8911  if test "x$ac_ct_DSYMUTIL" = x; then
8912    DSYMUTIL=":"
8913  else
8914    case $cross_compiling:$ac_tool_warned in
8915yes:)
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8918ac_tool_warned=yes ;;
8919esac
8920    DSYMUTIL=$ac_ct_DSYMUTIL
8921  fi
8922else
8923  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8924fi
8925
8926    if test -n "$ac_tool_prefix"; then
8927  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8928set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930$as_echo_n "checking for $ac_word... " >&6; }
8931if ${ac_cv_prog_NMEDIT+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  if test -n "$NMEDIT"; then
8935  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8936else
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940  IFS=$as_save_IFS
8941  test -z "$as_dir" && as_dir=.
8942    for ac_exec_ext in '' $ac_executable_extensions; do
8943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946    break 2
8947  fi
8948done
8949  done
8950IFS=$as_save_IFS
8951
8952fi
8953fi
8954NMEDIT=$ac_cv_prog_NMEDIT
8955if test -n "$NMEDIT"; then
8956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8957$as_echo "$NMEDIT" >&6; }
8958else
8959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960$as_echo "no" >&6; }
8961fi
8962
8963
8964fi
8965if test -z "$ac_cv_prog_NMEDIT"; then
8966  ac_ct_NMEDIT=$NMEDIT
8967  # Extract the first word of "nmedit", so it can be a program name with args.
8968set dummy nmedit; ac_word=$2
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970$as_echo_n "checking for $ac_word... " >&6; }
8971if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974  if test -n "$ac_ct_NMEDIT"; then
8975  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980  IFS=$as_save_IFS
8981  test -z "$as_dir" && as_dir=.
8982    for ac_exec_ext in '' $ac_executable_extensions; do
8983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986    break 2
8987  fi
8988done
8989  done
8990IFS=$as_save_IFS
8991
8992fi
8993fi
8994ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8995if test -n "$ac_ct_NMEDIT"; then
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8997$as_echo "$ac_ct_NMEDIT" >&6; }
8998else
8999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
9001fi
9002
9003  if test "x$ac_ct_NMEDIT" = x; then
9004    NMEDIT=":"
9005  else
9006    case $cross_compiling:$ac_tool_warned in
9007yes:)
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010ac_tool_warned=yes ;;
9011esac
9012    NMEDIT=$ac_ct_NMEDIT
9013  fi
9014else
9015  NMEDIT="$ac_cv_prog_NMEDIT"
9016fi
9017
9018    if test -n "$ac_tool_prefix"; then
9019  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9020set dummy ${ac_tool_prefix}lipo; ac_word=$2
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if ${ac_cv_prog_LIPO+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  if test -n "$LIPO"; then
9027  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032  IFS=$as_save_IFS
9033  test -z "$as_dir" && as_dir=.
9034    for ac_exec_ext in '' $ac_executable_extensions; do
9035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038    break 2
9039  fi
9040done
9041  done
9042IFS=$as_save_IFS
9043
9044fi
9045fi
9046LIPO=$ac_cv_prog_LIPO
9047if test -n "$LIPO"; then
9048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9049$as_echo "$LIPO" >&6; }
9050else
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9054
9055
9056fi
9057if test -z "$ac_cv_prog_LIPO"; then
9058  ac_ct_LIPO=$LIPO
9059  # Extract the first word of "lipo", so it can be a program name with args.
9060set dummy lipo; ac_word=$2
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062$as_echo_n "checking for $ac_word... " >&6; }
9063if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  if test -n "$ac_ct_LIPO"; then
9067  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9068else
9069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070for as_dir in $PATH
9071do
9072  IFS=$as_save_IFS
9073  test -z "$as_dir" && as_dir=.
9074    for ac_exec_ext in '' $ac_executable_extensions; do
9075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9076    ac_cv_prog_ac_ct_LIPO="lipo"
9077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078    break 2
9079  fi
9080done
9081  done
9082IFS=$as_save_IFS
9083
9084fi
9085fi
9086ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9087if test -n "$ac_ct_LIPO"; then
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9089$as_echo "$ac_ct_LIPO" >&6; }
9090else
9091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092$as_echo "no" >&6; }
9093fi
9094
9095  if test "x$ac_ct_LIPO" = x; then
9096    LIPO=":"
9097  else
9098    case $cross_compiling:$ac_tool_warned in
9099yes:)
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9102ac_tool_warned=yes ;;
9103esac
9104    LIPO=$ac_ct_LIPO
9105  fi
9106else
9107  LIPO="$ac_cv_prog_LIPO"
9108fi
9109
9110    if test -n "$ac_tool_prefix"; then
9111  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9112set dummy ${ac_tool_prefix}otool; ac_word=$2
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
9115if ${ac_cv_prog_OTOOL+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  if test -n "$OTOOL"; then
9119  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9120else
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124  IFS=$as_save_IFS
9125  test -z "$as_dir" && as_dir=.
9126    for ac_exec_ext in '' $ac_executable_extensions; do
9127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130    break 2
9131  fi
9132done
9133  done
9134IFS=$as_save_IFS
9135
9136fi
9137fi
9138OTOOL=$ac_cv_prog_OTOOL
9139if test -n "$OTOOL"; then
9140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9141$as_echo "$OTOOL" >&6; }
9142else
9143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
9145fi
9146
9147
9148fi
9149if test -z "$ac_cv_prog_OTOOL"; then
9150  ac_ct_OTOOL=$OTOOL
9151  # Extract the first word of "otool", so it can be a program name with args.
9152set dummy otool; ac_word=$2
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154$as_echo_n "checking for $ac_word... " >&6; }
9155if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9156  $as_echo_n "(cached) " >&6
9157else
9158  if test -n "$ac_ct_OTOOL"; then
9159  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9160else
9161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162for as_dir in $PATH
9163do
9164  IFS=$as_save_IFS
9165  test -z "$as_dir" && as_dir=.
9166    for ac_exec_ext in '' $ac_executable_extensions; do
9167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168    ac_cv_prog_ac_ct_OTOOL="otool"
9169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170    break 2
9171  fi
9172done
9173  done
9174IFS=$as_save_IFS
9175
9176fi
9177fi
9178ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9179if test -n "$ac_ct_OTOOL"; then
9180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9181$as_echo "$ac_ct_OTOOL" >&6; }
9182else
9183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185fi
9186
9187  if test "x$ac_ct_OTOOL" = x; then
9188    OTOOL=":"
9189  else
9190    case $cross_compiling:$ac_tool_warned in
9191yes:)
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194ac_tool_warned=yes ;;
9195esac
9196    OTOOL=$ac_ct_OTOOL
9197  fi
9198else
9199  OTOOL="$ac_cv_prog_OTOOL"
9200fi
9201
9202    if test -n "$ac_tool_prefix"; then
9203  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9204set dummy ${ac_tool_prefix}otool64; ac_word=$2
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if ${ac_cv_prog_OTOOL64+:} false; then :
9208  $as_echo_n "(cached) " >&6
9209else
9210  if test -n "$OTOOL64"; then
9211  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9212else
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216  IFS=$as_save_IFS
9217  test -z "$as_dir" && as_dir=.
9218    for ac_exec_ext in '' $ac_executable_extensions; do
9219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222    break 2
9223  fi
9224done
9225  done
9226IFS=$as_save_IFS
9227
9228fi
9229fi
9230OTOOL64=$ac_cv_prog_OTOOL64
9231if test -n "$OTOOL64"; then
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9233$as_echo "$OTOOL64" >&6; }
9234else
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236$as_echo "no" >&6; }
9237fi
9238
9239
9240fi
9241if test -z "$ac_cv_prog_OTOOL64"; then
9242  ac_ct_OTOOL64=$OTOOL64
9243  # Extract the first word of "otool64", so it can be a program name with args.
9244set dummy otool64; ac_word=$2
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246$as_echo_n "checking for $ac_word... " >&6; }
9247if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  if test -n "$ac_ct_OTOOL64"; then
9251  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9252else
9253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $PATH
9255do
9256  IFS=$as_save_IFS
9257  test -z "$as_dir" && as_dir=.
9258    for ac_exec_ext in '' $ac_executable_extensions; do
9259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260    ac_cv_prog_ac_ct_OTOOL64="otool64"
9261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262    break 2
9263  fi
9264done
9265  done
9266IFS=$as_save_IFS
9267
9268fi
9269fi
9270ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9271if test -n "$ac_ct_OTOOL64"; then
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9273$as_echo "$ac_ct_OTOOL64" >&6; }
9274else
9275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276$as_echo "no" >&6; }
9277fi
9278
9279  if test "x$ac_ct_OTOOL64" = x; then
9280    OTOOL64=":"
9281  else
9282    case $cross_compiling:$ac_tool_warned in
9283yes:)
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286ac_tool_warned=yes ;;
9287esac
9288    OTOOL64=$ac_ct_OTOOL64
9289  fi
9290else
9291  OTOOL64="$ac_cv_prog_OTOOL64"
9292fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9321$as_echo_n "checking for -single_module linker flag... " >&6; }
9322if ${lt_cv_apple_cc_single_mod+:} false; then :
9323  $as_echo_n "(cached) " >&6
9324else
9325  lt_cv_apple_cc_single_mod=no
9326      if test -z "${LT_MULTI_MODULE}"; then
9327	# By default we will add the -single_module flag. You can override
9328	# by either setting the environment variable LT_MULTI_MODULE
9329	# non-empty at configure time, or by adding -multi_module to the
9330	# link flags.
9331	rm -rf libconftest.dylib*
9332	echo "int foo(void){return 1;}" > conftest.c
9333	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9334-dynamiclib -Wl,-single_module conftest.c" >&5
9335	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9336	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9337        _lt_result=$?
9338	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9339	  lt_cv_apple_cc_single_mod=yes
9340	else
9341	  cat conftest.err >&5
9342	fi
9343	rm -rf libconftest.dylib*
9344	rm -f conftest.*
9345      fi
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9348$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9350$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9351if ${lt_cv_ld_exported_symbols_list+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  lt_cv_ld_exported_symbols_list=no
9355      save_LDFLAGS=$LDFLAGS
9356      echo "_main" > conftest.sym
9357      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360
9361int main (void)
9362{
9363
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369  lt_cv_ld_exported_symbols_list=yes
9370else
9371  lt_cv_ld_exported_symbols_list=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374    conftest$ac_exeext conftest.$ac_ext
9375	LDFLAGS="$save_LDFLAGS"
9376
9377fi
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9379$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9381$as_echo_n "checking for -force_load linker flag... " >&6; }
9382if ${lt_cv_ld_force_load+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  lt_cv_ld_force_load=no
9386      cat > conftest.c << _LT_EOF
9387int forced_loaded() { return 2;}
9388_LT_EOF
9389      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9390      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9391      echo "$AR cru libconftest.a conftest.o" >&5
9392      $AR cru libconftest.a conftest.o 2>&5
9393      echo "$RANLIB libconftest.a" >&5
9394      $RANLIB libconftest.a 2>&5
9395      cat > conftest.c << _LT_EOF
9396int main() { return 0;}
9397_LT_EOF
9398      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9399      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9400      _lt_result=$?
9401      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9402	lt_cv_ld_force_load=yes
9403      else
9404	cat conftest.err >&5
9405      fi
9406        rm -f conftest.err libconftest.a conftest conftest.c
9407        rm -rf conftest.dSYM
9408
9409fi
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9411$as_echo "$lt_cv_ld_force_load" >&6; }
9412    case $host_os in
9413    rhapsody* | darwin1.[012])
9414      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9415    darwin1.*)
9416      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9417    darwin*) # darwin 5.x on
9418      # if running on 10.5 or later, the deployment target defaults
9419      # to the OS version, if on x86, and 10.4, the deployment
9420      # target defaults to 10.4. Don't you love it?
9421      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9422	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9423	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9424	10.[012]*)
9425	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9426	10.*)
9427	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9428      esac
9429    ;;
9430  esac
9431    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9432      _lt_dar_single_mod='$single_module'
9433    fi
9434    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9435      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9436    else
9437      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9438    fi
9439    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9440      _lt_dsymutil='~$DSYMUTIL $lib || :'
9441    else
9442      _lt_dsymutil=
9443    fi
9444    ;;
9445  esac
9446
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9448$as_echo_n "checking for ANSI C header files... " >&6; }
9449if ${ac_cv_header_stdc+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454#include <stdlib.h>
9455#include <stdarg.h>
9456#include <string.h>
9457#include <float.h>
9458
9459int main (void)
9460{
9461
9462 ;
9463 return 0;
9464}
9465_ACEOF
9466if ac_fn_c_try_compile "$LINENO"; then :
9467  ac_cv_header_stdc=yes
9468else
9469  ac_cv_header_stdc=no
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472
9473if test $ac_cv_header_stdc = yes; then
9474  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477#include <string.h>
9478
9479_ACEOF
9480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9481  $EGREP "memchr" >/dev/null 2>&1; then :
9482
9483else
9484  ac_cv_header_stdc=no
9485fi
9486rm -f conftest*
9487
9488fi
9489
9490if test $ac_cv_header_stdc = yes; then
9491  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493/* end confdefs.h.  */
9494#include <stdlib.h>
9495
9496_ACEOF
9497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9498  $EGREP "free" >/dev/null 2>&1; then :
9499
9500else
9501  ac_cv_header_stdc=no
9502fi
9503rm -f conftest*
9504
9505fi
9506
9507if test $ac_cv_header_stdc = yes; then
9508  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9509  if test "$cross_compiling" = yes; then :
9510  :
9511else
9512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513/* end confdefs.h.  */
9514#include <ctype.h>
9515#include <stdlib.h>
9516#if ((' ' & 0x0FF) == 0x020)
9517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9519#else
9520# define ISLOWER(c) \
9521		   (('a' <= (c) && (c) <= 'i') \
9522		     || ('j' <= (c) && (c) <= 'r') \
9523		     || ('s' <= (c) && (c) <= 'z'))
9524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9525#endif
9526
9527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9528int
9529main ()
9530{
9531  int i;
9532  for (i = 0; i < 256; i++)
9533    if (XOR (islower (i), ISLOWER (i))
9534	|| toupper (i) != TOUPPER (i))
9535      return 2;
9536  return 0;
9537}
9538_ACEOF
9539if ac_fn_c_try_run "$LINENO"; then :
9540
9541else
9542  ac_cv_header_stdc=no
9543fi
9544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545  conftest.$ac_objext conftest.beam conftest.$ac_ext
9546fi
9547
9548fi
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9551$as_echo "$ac_cv_header_stdc" >&6; }
9552if test $ac_cv_header_stdc = yes; then
9553
9554$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9555
9556fi
9557
9558# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9559for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9560		  inttypes.h stdint.h unistd.h
9561do :
9562  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9564"
9565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9566  cat >>confdefs.h <<_ACEOF
9567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9568_ACEOF
9569
9570fi
9571
9572done
9573
9574
9575for ac_header in dlfcn.h
9576do :
9577  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9578"
9579if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9580  cat >>confdefs.h <<_ACEOF
9581#define HAVE_DLFCN_H 1
9582_ACEOF
9583
9584fi
9585
9586done
9587
9588
9589
9590
9591
9592# Set options
9593
9594
9595
9596        enable_dlopen=no
9597
9598
9599
9600            # Check whether --enable-shared was given.
9601if test "${enable_shared+set}" = set; then :
9602  enableval=$enable_shared; p=${PACKAGE-default}
9603    case $enableval in
9604    yes) enable_shared=yes ;;
9605    no) enable_shared=no ;;
9606    *)
9607      enable_shared=no
9608      # Look at the argument we got.  We use all the common list separators.
9609      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9610      for pkg in $enableval; do
9611	IFS="$lt_save_ifs"
9612	if test "X$pkg" = "X$p"; then
9613	  enable_shared=yes
9614	fi
9615      done
9616      IFS="$lt_save_ifs"
9617      ;;
9618    esac
9619else
9620  enable_shared=yes
9621fi
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631  # Check whether --enable-static was given.
9632if test "${enable_static+set}" = set; then :
9633  enableval=$enable_static; p=${PACKAGE-default}
9634    case $enableval in
9635    yes) enable_static=yes ;;
9636    no) enable_static=no ;;
9637    *)
9638     enable_static=no
9639      # Look at the argument we got.  We use all the common list separators.
9640      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9641      for pkg in $enableval; do
9642	IFS="$lt_save_ifs"
9643	if test "X$pkg" = "X$p"; then
9644	  enable_static=yes
9645	fi
9646      done
9647      IFS="$lt_save_ifs"
9648      ;;
9649    esac
9650else
9651  enable_static=yes
9652fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663# Check whether --with-pic was given.
9664if test "${with_pic+set}" = set; then :
9665  withval=$with_pic; pic_mode="$withval"
9666else
9667  pic_mode=default
9668fi
9669
9670
9671test -z "$pic_mode" && pic_mode=default
9672
9673
9674
9675
9676
9677
9678
9679  # Check whether --enable-fast-install was given.
9680if test "${enable_fast_install+set}" = set; then :
9681  enableval=$enable_fast_install; p=${PACKAGE-default}
9682    case $enableval in
9683    yes) enable_fast_install=yes ;;
9684    no) enable_fast_install=no ;;
9685    *)
9686      enable_fast_install=no
9687      # Look at the argument we got.  We use all the common list separators.
9688      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9689      for pkg in $enableval; do
9690	IFS="$lt_save_ifs"
9691	if test "X$pkg" = "X$p"; then
9692	  enable_fast_install=yes
9693	fi
9694      done
9695      IFS="$lt_save_ifs"
9696      ;;
9697    esac
9698else
9699  enable_fast_install=yes
9700fi
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712# This can be used to rebuild libtool when needed
9713LIBTOOL_DEPS="$ltmain"
9714
9715# Always use our own libtool.
9716LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743test -z "$LN_S" && LN_S="ln -s"
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758if test -n "${ZSH_VERSION+set}" ; then
9759   setopt NO_GLOB_SUBST
9760fi
9761
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9763$as_echo_n "checking for objdir... " >&6; }
9764if ${lt_cv_objdir+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  rm -f .libs 2>/dev/null
9768mkdir .libs 2>/dev/null
9769if test -d .libs; then
9770  lt_cv_objdir=.libs
9771else
9772  # MS-DOS does not allow filenames that begin with a dot.
9773  lt_cv_objdir=_libs
9774fi
9775rmdir .libs 2>/dev/null
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9778$as_echo "$lt_cv_objdir" >&6; }
9779objdir=$lt_cv_objdir
9780
9781
9782
9783
9784
9785cat >>confdefs.h <<_ACEOF
9786#define LT_OBJDIR "$lt_cv_objdir/"
9787_ACEOF
9788
9789
9790
9791
9792case $host_os in
9793aix3*)
9794  # AIX sometimes has problems with the GCC collect2 program.  For some
9795  # reason, if we set the COLLECT_NAMES environment variable, the problems
9796  # vanish in a puff of smoke.
9797  if test "X${COLLECT_NAMES+set}" != Xset; then
9798    COLLECT_NAMES=
9799    export COLLECT_NAMES
9800  fi
9801  ;;
9802esac
9803
9804# Global variables:
9805ofile=libtool
9806can_build_shared=yes
9807
9808# All known linkers require a `.a' archive for static linking (except MSVC,
9809# which needs '.lib').
9810libext=a
9811
9812with_gnu_ld="$lt_cv_prog_gnu_ld"
9813
9814old_CC="$CC"
9815old_CFLAGS="$CFLAGS"
9816
9817# Set sane defaults for various variables
9818test -z "$CC" && CC=cc
9819test -z "$LTCC" && LTCC=$CC
9820test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9821test -z "$LD" && LD=ld
9822test -z "$ac_objext" && ac_objext=o
9823
9824for cc_temp in $compiler""; do
9825  case $cc_temp in
9826    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9827    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9828    \-*) ;;
9829    *) break;;
9830  esac
9831done
9832cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9833
9834
9835# Only perform the check for file, if the check method requires it
9836test -z "$MAGIC_CMD" && MAGIC_CMD=file
9837case $deplibs_check_method in
9838file_magic*)
9839  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9841$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9842if ${lt_cv_path_MAGIC_CMD+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  case $MAGIC_CMD in
9846[\\/*] |  ?:[\\/]*)
9847  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9848  ;;
9849*)
9850  lt_save_MAGIC_CMD="$MAGIC_CMD"
9851  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9852  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9853  for ac_dir in $ac_dummy; do
9854    IFS="$lt_save_ifs"
9855    test -z "$ac_dir" && ac_dir=.
9856    if test -f $ac_dir/${ac_tool_prefix}file; then
9857      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9858      if test -n "$file_magic_test_file"; then
9859	case $deplibs_check_method in
9860	"file_magic "*)
9861	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9862	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9863	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9864	    $EGREP "$file_magic_regex" > /dev/null; then
9865	    :
9866	  else
9867	    cat <<_LT_EOF 1>&2
9868
9869*** Warning: the command libtool uses to detect shared libraries,
9870*** $file_magic_cmd, produces output that libtool cannot recognize.
9871*** The result is that libtool may fail to recognize shared libraries
9872*** as such.  This will affect the creation of libtool libraries that
9873*** depend on shared libraries, but programs linked with such libtool
9874*** libraries will work regardless of this problem.  Nevertheless, you
9875*** may want to report the problem to your system manager and/or to
9876*** bug-libtool@gnu.org
9877
9878_LT_EOF
9879	  fi ;;
9880	esac
9881      fi
9882      break
9883    fi
9884  done
9885  IFS="$lt_save_ifs"
9886  MAGIC_CMD="$lt_save_MAGIC_CMD"
9887  ;;
9888esac
9889fi
9890
9891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9892if test -n "$MAGIC_CMD"; then
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9894$as_echo "$MAGIC_CMD" >&6; }
9895else
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
9901
9902
9903
9904if test -z "$lt_cv_path_MAGIC_CMD"; then
9905  if test -n "$ac_tool_prefix"; then
9906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9907$as_echo_n "checking for file... " >&6; }
9908if ${lt_cv_path_MAGIC_CMD+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  case $MAGIC_CMD in
9912[\\/*] |  ?:[\\/]*)
9913  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9914  ;;
9915*)
9916  lt_save_MAGIC_CMD="$MAGIC_CMD"
9917  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9918  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9919  for ac_dir in $ac_dummy; do
9920    IFS="$lt_save_ifs"
9921    test -z "$ac_dir" && ac_dir=.
9922    if test -f $ac_dir/file; then
9923      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9924      if test -n "$file_magic_test_file"; then
9925	case $deplibs_check_method in
9926	"file_magic "*)
9927	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9928	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9929	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9930	    $EGREP "$file_magic_regex" > /dev/null; then
9931	    :
9932	  else
9933	    cat <<_LT_EOF 1>&2
9934
9935*** Warning: the command libtool uses to detect shared libraries,
9936*** $file_magic_cmd, produces output that libtool cannot recognize.
9937*** The result is that libtool may fail to recognize shared libraries
9938*** as such.  This will affect the creation of libtool libraries that
9939*** depend on shared libraries, but programs linked with such libtool
9940*** libraries will work regardless of this problem.  Nevertheless, you
9941*** may want to report the problem to your system manager and/or to
9942*** bug-libtool@gnu.org
9943
9944_LT_EOF
9945	  fi ;;
9946	esac
9947      fi
9948      break
9949    fi
9950  done
9951  IFS="$lt_save_ifs"
9952  MAGIC_CMD="$lt_save_MAGIC_CMD"
9953  ;;
9954esac
9955fi
9956
9957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9958if test -n "$MAGIC_CMD"; then
9959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9960$as_echo "$MAGIC_CMD" >&6; }
9961else
9962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9964fi
9965
9966
9967  else
9968    MAGIC_CMD=:
9969  fi
9970fi
9971
9972  fi
9973  ;;
9974esac
9975
9976# Use C for the default configuration in the libtool script
9977
9978lt_save_CC="$CC"
9979ac_ext=c
9980ac_cpp='$CPP $CPPFLAGS'
9981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9983ac_compiler_gnu=$ac_cv_c_compiler_gnu
9984
9985
9986# Source file extension for C test sources.
9987ac_ext=c
9988
9989# Object file extension for compiled C test sources.
9990objext=o
9991objext=$objext
9992
9993# Code to be used in simple compile tests
9994lt_simple_compile_test_code="int some_variable = 0;"
9995
9996# Code to be used in simple link tests
9997lt_simple_link_test_code='int main(){return(0);}'
9998
9999
10000
10001
10002
10003
10004
10005# If no C compiler was specified, use CC.
10006LTCC=${LTCC-"$CC"}
10007
10008# If no C compiler flags were specified, use CFLAGS.
10009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10010
10011# Allow CC to be a program name with arguments.
10012compiler=$CC
10013
10014# Save the default compiler, since it gets overwritten when the other
10015# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10016compiler_DEFAULT=$CC
10017
10018# save warnings/boilerplate of simple test code
10019ac_outfile=conftest.$ac_objext
10020echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10022_lt_compiler_boilerplate=`cat conftest.err`
10023$RM conftest*
10024
10025ac_outfile=conftest.$ac_objext
10026echo "$lt_simple_link_test_code" >conftest.$ac_ext
10027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10028_lt_linker_boilerplate=`cat conftest.err`
10029$RM -r conftest*
10030
10031
10032## CAVEAT EMPTOR:
10033## There is no encapsulation within the following macros, do not change
10034## the running order or otherwise move them around unless you know exactly
10035## what you are doing...
10036if test -n "$compiler"; then
10037
10038lt_prog_compiler_no_builtin_flag=
10039
10040if test "$GCC" = yes; then
10041  case $cc_basename in
10042  nvcc*)
10043    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10044  *)
10045    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10046  esac
10047
10048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10049$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10050if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10051  $as_echo_n "(cached) " >&6
10052else
10053  lt_cv_prog_compiler_rtti_exceptions=no
10054   ac_outfile=conftest.$ac_objext
10055   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10056   lt_compiler_flag="-fno-rtti -fno-exceptions"
10057   # Insert the option either (1) after the last *FLAGS variable, or
10058   # (2) before a word containing "conftest.", or (3) at the end.
10059   # Note that $ac_compile itself does not contain backslashes and begins
10060   # with a dollar sign (not a hyphen), so the echo should work correctly.
10061   # The option is referenced via a variable to avoid confusing sed.
10062   lt_compile=`echo "$ac_compile" | $SED \
10063   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10064   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10065   -e 's:$: $lt_compiler_flag:'`
10066   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10067   (eval "$lt_compile" 2>conftest.err)
10068   ac_status=$?
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   if (exit $ac_status) && test -s "$ac_outfile"; then
10072     # The compiler can only warn and ignore the option if not recognized
10073     # So say no if there are warnings other than the usual output.
10074     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10075     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10076     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10077       lt_cv_prog_compiler_rtti_exceptions=yes
10078     fi
10079   fi
10080   $RM conftest*
10081
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10084$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10085
10086if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10087    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10088else
10089    :
10090fi
10091
10092fi
10093
10094
10095
10096
10097
10098
10099  lt_prog_compiler_wl=
10100lt_prog_compiler_pic=
10101lt_prog_compiler_static=
10102
10103
10104  if test "$GCC" = yes; then
10105    lt_prog_compiler_wl='-Wl,'
10106    lt_prog_compiler_static='-static'
10107
10108    case $host_os in
10109      aix*)
10110      # All AIX code is PIC.
10111      if test "$host_cpu" = ia64; then
10112	# AIX 5 now supports IA64 processor
10113	lt_prog_compiler_static='-Bstatic'
10114      fi
10115      ;;
10116
10117    amigaos*)
10118      case $host_cpu in
10119      powerpc)
10120            # see comment about AmigaOS4 .so support
10121            lt_prog_compiler_pic='-fPIC'
10122        ;;
10123      m68k)
10124            # FIXME: we need at least 68020 code to build shared libraries, but
10125            # adding the `-m68020' flag to GCC prevents building anything better,
10126            # like `-m68040'.
10127            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10128        ;;
10129      esac
10130      ;;
10131
10132    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10133      # PIC is the default for these OSes.
10134      ;;
10135
10136    mingw* | cygwin* | pw32* | os2* | cegcc*)
10137      # This hack is so that the source file can tell whether it is being
10138      # built for inclusion in a dll (and should export symbols for example).
10139      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10140      # (--disable-auto-import) libraries
10141      lt_prog_compiler_pic='-DDLL_EXPORT'
10142      ;;
10143
10144    darwin* | rhapsody*)
10145      # PIC is the default on this platform
10146      # Common symbols not allowed in MH_DYLIB files
10147      lt_prog_compiler_pic='-fno-common'
10148      ;;
10149
10150    haiku*)
10151      # PIC is the default for Haiku.
10152      # The "-static" flag exists, but is broken.
10153      lt_prog_compiler_static=
10154      ;;
10155
10156    hpux*)
10157      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10158      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10159      # sets the default TLS model and affects inlining.
10160      case $host_cpu in
10161      hppa*64*)
10162	# +Z the default
10163	;;
10164      *)
10165	lt_prog_compiler_pic='-fPIC'
10166	;;
10167      esac
10168      ;;
10169
10170    interix[3-9]*)
10171      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10172      # Instead, we relocate shared libraries at runtime.
10173      ;;
10174
10175    msdosdjgpp*)
10176      # Just because we use GCC doesn't mean we suddenly get shared libraries
10177      # on systems that don't support them.
10178      lt_prog_compiler_can_build_shared=no
10179      enable_shared=no
10180      ;;
10181
10182    *nto* | *qnx*)
10183      # QNX uses GNU C++, but need to define -shared option too, otherwise
10184      # it will coredump.
10185      lt_prog_compiler_pic='-fPIC -shared'
10186      ;;
10187
10188    sysv4*MP*)
10189      if test -d /usr/nec; then
10190	lt_prog_compiler_pic=-Kconform_pic
10191      fi
10192      ;;
10193
10194    *)
10195      lt_prog_compiler_pic='-fPIC'
10196      ;;
10197    esac
10198
10199    case $cc_basename in
10200    nvcc*) # Cuda Compiler Driver 2.2
10201      lt_prog_compiler_wl='-Xlinker '
10202      lt_prog_compiler_pic='-Xcompiler -fPIC'
10203      ;;
10204    esac
10205  else
10206    # PORTME Check for flag to pass linker flags through the system compiler.
10207    case $host_os in
10208    aix*)
10209      lt_prog_compiler_wl='-Wl,'
10210      if test "$host_cpu" = ia64; then
10211	# AIX 5 now supports IA64 processor
10212	lt_prog_compiler_static='-Bstatic'
10213      else
10214	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10215      fi
10216      ;;
10217
10218    mingw* | cygwin* | pw32* | os2* | cegcc*)
10219      # This hack is so that the source file can tell whether it is being
10220      # built for inclusion in a dll (and should export symbols for example).
10221      lt_prog_compiler_pic='-DDLL_EXPORT'
10222      ;;
10223
10224    hpux9* | hpux10* | hpux11*)
10225      lt_prog_compiler_wl='-Wl,'
10226      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10227      # not for PA HP-UX.
10228      case $host_cpu in
10229      hppa*64*|ia64*)
10230	# +Z the default
10231	;;
10232      *)
10233	lt_prog_compiler_pic='+Z'
10234	;;
10235      esac
10236      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10237      lt_prog_compiler_static='${wl}-a ${wl}archive'
10238      ;;
10239
10240    irix5* | irix6* | nonstopux*)
10241      lt_prog_compiler_wl='-Wl,'
10242      # PIC (with -KPIC) is the default.
10243      lt_prog_compiler_static='-non_shared'
10244      ;;
10245
10246    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10247      case $cc_basename in
10248      # old Intel for x86_64 which still supported -KPIC.
10249      ecc*)
10250	lt_prog_compiler_wl='-Wl,'
10251	lt_prog_compiler_pic='-KPIC'
10252	lt_prog_compiler_static='-static'
10253        ;;
10254      # icc used to be incompatible with GCC.
10255      # ICC 10 doesn't accept -KPIC any more.
10256      icc* | ifort*)
10257	lt_prog_compiler_wl='-Wl,'
10258	lt_prog_compiler_pic='-fPIC'
10259	lt_prog_compiler_static='-static'
10260        ;;
10261      # Lahey Fortran 8.1.
10262      lf95*)
10263	lt_prog_compiler_wl='-Wl,'
10264	lt_prog_compiler_pic='--shared'
10265	lt_prog_compiler_static='--static'
10266	;;
10267      nagfor*)
10268	# NAG Fortran compiler
10269	lt_prog_compiler_wl='-Wl,-Wl,,'
10270	lt_prog_compiler_pic='-PIC'
10271	lt_prog_compiler_static='-Bstatic'
10272	;;
10273      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10274        # Portland Group compilers (*not* the Pentium gcc compiler,
10275	# which looks to be a dead project)
10276	lt_prog_compiler_wl='-Wl,'
10277	lt_prog_compiler_pic='-fpic'
10278	lt_prog_compiler_static='-Bstatic'
10279        ;;
10280      ccc*)
10281        lt_prog_compiler_wl='-Wl,'
10282        # All Alpha code is PIC.
10283        lt_prog_compiler_static='-non_shared'
10284        ;;
10285      xl* | bgxl* | bgf* | mpixl*)
10286	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10287	lt_prog_compiler_wl='-Wl,'
10288	lt_prog_compiler_pic='-qpic'
10289	lt_prog_compiler_static='-qstaticlink'
10290	;;
10291      *)
10292	case `$CC -V 2>&1 | sed 5q` in
10293	*Sun\ F* | *Sun*Fortran*)
10294	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10295	  lt_prog_compiler_pic='-KPIC'
10296	  lt_prog_compiler_static='-Bstatic'
10297	  lt_prog_compiler_wl=''
10298	  ;;
10299	*Sun\ C*)
10300	  # Sun C 5.9
10301	  lt_prog_compiler_pic='-KPIC'
10302	  lt_prog_compiler_static='-Bstatic'
10303	  lt_prog_compiler_wl='-Wl,'
10304	  ;;
10305	esac
10306	;;
10307      esac
10308      ;;
10309
10310    newsos6)
10311      lt_prog_compiler_pic='-KPIC'
10312      lt_prog_compiler_static='-Bstatic'
10313      ;;
10314
10315    *nto* | *qnx*)
10316      # QNX uses GNU C++, but need to define -shared option too, otherwise
10317      # it will coredump.
10318      lt_prog_compiler_pic='-fPIC -shared'
10319      ;;
10320
10321    osf3* | osf4* | osf5*)
10322      lt_prog_compiler_wl='-Wl,'
10323      # All OSF/1 code is PIC.
10324      lt_prog_compiler_static='-non_shared'
10325      ;;
10326
10327    rdos*)
10328      lt_prog_compiler_static='-non_shared'
10329      ;;
10330
10331    solaris*)
10332      lt_prog_compiler_pic='-KPIC'
10333      lt_prog_compiler_static='-Bstatic'
10334      case $cc_basename in
10335      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10336	lt_prog_compiler_wl='-Qoption ld ';;
10337      *)
10338	lt_prog_compiler_wl='-Wl,';;
10339      esac
10340      ;;
10341
10342    sunos4*)
10343      lt_prog_compiler_wl='-Qoption ld '
10344      lt_prog_compiler_pic='-PIC'
10345      lt_prog_compiler_static='-Bstatic'
10346      ;;
10347
10348    sysv4 | sysv4.2uw2* | sysv4.3*)
10349      lt_prog_compiler_wl='-Wl,'
10350      lt_prog_compiler_pic='-KPIC'
10351      lt_prog_compiler_static='-Bstatic'
10352      ;;
10353
10354    sysv4*MP*)
10355      if test -d /usr/nec ;then
10356	lt_prog_compiler_pic='-Kconform_pic'
10357	lt_prog_compiler_static='-Bstatic'
10358      fi
10359      ;;
10360
10361    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10362      lt_prog_compiler_wl='-Wl,'
10363      lt_prog_compiler_pic='-KPIC'
10364      lt_prog_compiler_static='-Bstatic'
10365      ;;
10366
10367    unicos*)
10368      lt_prog_compiler_wl='-Wl,'
10369      lt_prog_compiler_can_build_shared=no
10370      ;;
10371
10372    uts4*)
10373      lt_prog_compiler_pic='-pic'
10374      lt_prog_compiler_static='-Bstatic'
10375      ;;
10376
10377    *)
10378      lt_prog_compiler_can_build_shared=no
10379      ;;
10380    esac
10381  fi
10382
10383case $host_os in
10384  # For platforms which do not support PIC, -DPIC is meaningless:
10385  *djgpp*)
10386    lt_prog_compiler_pic=
10387    ;;
10388  *)
10389    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10390    ;;
10391esac
10392
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10394$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10395if ${lt_cv_prog_compiler_pic+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10401$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10402lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10403
10404#
10405# Check to make sure the PIC flag actually works.
10406#
10407if test -n "$lt_prog_compiler_pic"; then
10408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10409$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10410if ${lt_cv_prog_compiler_pic_works+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  lt_cv_prog_compiler_pic_works=no
10414   ac_outfile=conftest.$ac_objext
10415   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10417   # Insert the option either (1) after the last *FLAGS variable, or
10418   # (2) before a word containing "conftest.", or (3) at the end.
10419   # Note that $ac_compile itself does not contain backslashes and begins
10420   # with a dollar sign (not a hyphen), so the echo should work correctly.
10421   # The option is referenced via a variable to avoid confusing sed.
10422   lt_compile=`echo "$ac_compile" | $SED \
10423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425   -e 's:$: $lt_compiler_flag:'`
10426   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10427   (eval "$lt_compile" 2>conftest.err)
10428   ac_status=$?
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   if (exit $ac_status) && test -s "$ac_outfile"; then
10432     # The compiler can only warn and ignore the option if not recognized
10433     # So say no if there are warnings other than the usual output.
10434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10435     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10436     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10437       lt_cv_prog_compiler_pic_works=yes
10438     fi
10439   fi
10440   $RM conftest*
10441
10442fi
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10444$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10445
10446if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10447    case $lt_prog_compiler_pic in
10448     "" | " "*) ;;
10449     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10450     esac
10451else
10452    lt_prog_compiler_pic=
10453     lt_prog_compiler_can_build_shared=no
10454fi
10455
10456fi
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468#
10469# Check to make sure the static flag actually works.
10470#
10471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10473$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10474if ${lt_cv_prog_compiler_static_works+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  lt_cv_prog_compiler_static_works=no
10478   save_LDFLAGS="$LDFLAGS"
10479   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10480   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10481   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10482     # The linker can only warn and ignore the option if not recognized
10483     # So say no if there are warnings
10484     if test -s conftest.err; then
10485       # Append any errors to the config.log.
10486       cat conftest.err 1>&5
10487       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10488       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10489       if diff conftest.exp conftest.er2 >/dev/null; then
10490         lt_cv_prog_compiler_static_works=yes
10491       fi
10492     else
10493       lt_cv_prog_compiler_static_works=yes
10494     fi
10495   fi
10496   $RM -r conftest*
10497   LDFLAGS="$save_LDFLAGS"
10498
10499fi
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10501$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10502
10503if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10504    :
10505else
10506    lt_prog_compiler_static=
10507fi
10508
10509
10510
10511
10512
10513
10514
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10517if ${lt_cv_prog_compiler_c_o+:} false; then :
10518  $as_echo_n "(cached) " >&6
10519else
10520  lt_cv_prog_compiler_c_o=no
10521   $RM -r conftest 2>/dev/null
10522   mkdir conftest
10523   cd conftest
10524   mkdir out
10525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526
10527   lt_compiler_flag="-o out/conftest2.$ac_objext"
10528   # Insert the option either (1) after the last *FLAGS variable, or
10529   # (2) before a word containing "conftest.", or (3) at the end.
10530   # Note that $ac_compile itself does not contain backslashes and begins
10531   # with a dollar sign (not a hyphen), so the echo should work correctly.
10532   lt_compile=`echo "$ac_compile" | $SED \
10533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535   -e 's:$: $lt_compiler_flag:'`
10536   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10537   (eval "$lt_compile" 2>out/conftest.err)
10538   ac_status=$?
10539   cat out/conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10542   then
10543     # The compiler can only warn and ignore the option if not recognized
10544     # So say no if there are warnings
10545     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10546     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10547     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10548       lt_cv_prog_compiler_c_o=yes
10549     fi
10550   fi
10551   chmod u+w . 2>&5
10552   $RM conftest*
10553   # SGI C++ compiler will create directory out/ii_files/ for
10554   # template instantiation
10555   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10556   $RM out/* && rmdir out
10557   cd ..
10558   $RM -r conftest
10559   $RM conftest*
10560
10561fi
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10563$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10564
10565
10566
10567
10568
10569
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10572if ${lt_cv_prog_compiler_c_o+:} false; then :
10573  $as_echo_n "(cached) " >&6
10574else
10575  lt_cv_prog_compiler_c_o=no
10576   $RM -r conftest 2>/dev/null
10577   mkdir conftest
10578   cd conftest
10579   mkdir out
10580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10581
10582   lt_compiler_flag="-o out/conftest2.$ac_objext"
10583   # Insert the option either (1) after the last *FLAGS variable, or
10584   # (2) before a word containing "conftest.", or (3) at the end.
10585   # Note that $ac_compile itself does not contain backslashes and begins
10586   # with a dollar sign (not a hyphen), so the echo should work correctly.
10587   lt_compile=`echo "$ac_compile" | $SED \
10588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10590   -e 's:$: $lt_compiler_flag:'`
10591   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10592   (eval "$lt_compile" 2>out/conftest.err)
10593   ac_status=$?
10594   cat out/conftest.err >&5
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10597   then
10598     # The compiler can only warn and ignore the option if not recognized
10599     # So say no if there are warnings
10600     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10601     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10602     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10603       lt_cv_prog_compiler_c_o=yes
10604     fi
10605   fi
10606   chmod u+w . 2>&5
10607   $RM conftest*
10608   # SGI C++ compiler will create directory out/ii_files/ for
10609   # template instantiation
10610   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10611   $RM out/* && rmdir out
10612   cd ..
10613   $RM -r conftest
10614   $RM conftest*
10615
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10618$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10619
10620
10621
10622
10623hard_links="nottested"
10624if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10625  # do not overwrite the value of need_locks provided by the user
10626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10627$as_echo_n "checking if we can lock with hard links... " >&6; }
10628  hard_links=yes
10629  $RM conftest*
10630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10631  touch conftest.a
10632  ln conftest.a conftest.b 2>&5 || hard_links=no
10633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10635$as_echo "$hard_links" >&6; }
10636  if test "$hard_links" = no; then
10637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10638$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10639    need_locks=warn
10640  fi
10641else
10642  need_locks=no
10643fi
10644
10645
10646
10647
10648
10649
10650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10651$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10652
10653  runpath_var=
10654  allow_undefined_flag=
10655  always_export_symbols=no
10656  archive_cmds=
10657  archive_expsym_cmds=
10658  compiler_needs_object=no
10659  enable_shared_with_static_runtimes=no
10660  export_dynamic_flag_spec=
10661  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10662  hardcode_automatic=no
10663  hardcode_direct=no
10664  hardcode_direct_absolute=no
10665  hardcode_libdir_flag_spec=
10666  hardcode_libdir_flag_spec_ld=
10667  hardcode_libdir_separator=
10668  hardcode_minus_L=no
10669  hardcode_shlibpath_var=unsupported
10670  inherit_rpath=no
10671  link_all_deplibs=unknown
10672  module_cmds=
10673  module_expsym_cmds=
10674  old_archive_from_new_cmds=
10675  old_archive_from_expsyms_cmds=
10676  thread_safe_flag_spec=
10677  whole_archive_flag_spec=
10678  # include_expsyms should be a list of space-separated symbols to be *always*
10679  # included in the symbol list
10680  include_expsyms=
10681  # exclude_expsyms can be an extended regexp of symbols to exclude
10682  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10683  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10684  # as well as any symbol that contains `d'.
10685  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10686  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10687  # platforms (ab)use it in PIC code, but their linkers get confused if
10688  # the symbol is explicitly referenced.  Since portable code cannot
10689  # rely on this symbol name, it's probably fine to never include it in
10690  # preloaded symbol tables.
10691  # Exclude shared library initialization/finalization symbols.
10692  extract_expsyms_cmds=
10693
10694  case $host_os in
10695  cygwin* | mingw* | pw32* | cegcc*)
10696    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10697    # When not using gcc, we currently assume that we are using
10698    # Microsoft Visual C++.
10699    if test "$GCC" != yes; then
10700      with_gnu_ld=no
10701    fi
10702    ;;
10703  interix*)
10704    # we just hope/assume this is gcc and not c89 (= MSVC++)
10705    with_gnu_ld=yes
10706    ;;
10707  openbsd*)
10708    with_gnu_ld=no
10709    ;;
10710  linux* | k*bsd*-gnu | gnu*)
10711    link_all_deplibs=no
10712    ;;
10713  esac
10714
10715  ld_shlibs=yes
10716
10717  # On some targets, GNU ld is compatible enough with the native linker
10718  # that we're better off using the native interface for both.
10719  lt_use_gnu_ld_interface=no
10720  if test "$with_gnu_ld" = yes; then
10721    case $host_os in
10722      aix*)
10723	# The AIX port of GNU ld has always aspired to compatibility
10724	# with the native linker.  However, as the warning in the GNU ld
10725	# block says, versions before 2.19.5* couldn't really create working
10726	# shared libraries, regardless of the interface used.
10727	case `$LD -v 2>&1` in
10728	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10729	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10730	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10731	  *)
10732	    lt_use_gnu_ld_interface=yes
10733	    ;;
10734	esac
10735	;;
10736      *)
10737	lt_use_gnu_ld_interface=yes
10738	;;
10739    esac
10740  fi
10741
10742  if test "$lt_use_gnu_ld_interface" = yes; then
10743    # If archive_cmds runs LD, not CC, wlarc should be empty
10744    wlarc='${wl}'
10745
10746    # Set some defaults for GNU ld with shared library support. These
10747    # are reset later if shared libraries are not supported. Putting them
10748    # here allows them to be overridden if necessary.
10749    runpath_var=LD_RUN_PATH
10750    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10751    export_dynamic_flag_spec='${wl}--export-dynamic'
10752    # ancient GNU ld didn't support --whole-archive et. al.
10753    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10754      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10755    else
10756      whole_archive_flag_spec=
10757    fi
10758    supports_anon_versioning=no
10759    case `$LD -v 2>&1` in
10760      *GNU\ gold*) supports_anon_versioning=yes ;;
10761      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10762      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10763      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10764      *\ 2.11.*) ;; # other 2.11 versions
10765      *) supports_anon_versioning=yes ;;
10766    esac
10767
10768    # See if GNU ld supports shared libraries.
10769    case $host_os in
10770    aix[3-9]*)
10771      # On AIX/PPC, the GNU linker is very broken
10772      if test "$host_cpu" != ia64; then
10773	ld_shlibs=no
10774	cat <<_LT_EOF 1>&2
10775
10776*** Warning: the GNU linker, at least up to release 2.19, is reported
10777*** to be unable to reliably create shared libraries on AIX.
10778*** Therefore, libtool is disabling shared libraries support.  If you
10779*** really care for shared libraries, you may want to install binutils
10780*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10781*** You will then need to restart the configuration process.
10782
10783_LT_EOF
10784      fi
10785      ;;
10786
10787    amigaos*)
10788      case $host_cpu in
10789      powerpc)
10790            # see comment about AmigaOS4 .so support
10791            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10792            archive_expsym_cmds=''
10793        ;;
10794      m68k)
10795            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)'
10796            hardcode_libdir_flag_spec='-L$libdir'
10797            hardcode_minus_L=yes
10798        ;;
10799      esac
10800      ;;
10801
10802    beos*)
10803      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10804	allow_undefined_flag=unsupported
10805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10806	# support --undefined.  This deserves some investigation.  FIXME
10807	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10808      else
10809	ld_shlibs=no
10810      fi
10811      ;;
10812
10813    cygwin* | mingw* | pw32* | cegcc*)
10814      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10815      # as there is no search path for DLLs.
10816      hardcode_libdir_flag_spec='-L$libdir'
10817      export_dynamic_flag_spec='${wl}--export-all-symbols'
10818      allow_undefined_flag=unsupported
10819      always_export_symbols=no
10820      enable_shared_with_static_runtimes=yes
10821      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10822      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10823
10824      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10825        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10826	# If the export-symbols file already is a .def file (1st line
10827	# is EXPORTS), use it as is; otherwise, prepend...
10828	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10829	  cp $export_symbols $output_objdir/$soname.def;
10830	else
10831	  echo EXPORTS > $output_objdir/$soname.def;
10832	  cat $export_symbols >> $output_objdir/$soname.def;
10833	fi~
10834	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10835      else
10836	ld_shlibs=no
10837      fi
10838      ;;
10839
10840    haiku*)
10841      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10842      link_all_deplibs=yes
10843      ;;
10844
10845    interix[3-9]*)
10846      hardcode_direct=no
10847      hardcode_shlibpath_var=no
10848      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10849      export_dynamic_flag_spec='${wl}-E'
10850      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10851      # Instead, shared libraries are loaded at an image base (0x10000000 by
10852      # default) and relocated if they conflict, which is a slow very memory
10853      # consuming and fragmenting process.  To avoid this, we pick a random,
10854      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10855      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10856      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10857      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'
10858      ;;
10859
10860    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10861      tmp_diet=no
10862      if test "$host_os" = linux-dietlibc; then
10863	case $cc_basename in
10864	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10865	esac
10866      fi
10867      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10868	 && test "$tmp_diet" = no
10869      then
10870	tmp_addflag=' $pic_flag'
10871	tmp_sharedflag='-shared'
10872	case $cc_basename,$host_cpu in
10873        pgcc*)				# Portland Group C compiler
10874	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10875	  tmp_addflag=' $pic_flag'
10876	  ;;
10877	pgf77* | pgf90* | pgf95* | pgfortran*)
10878					# Portland Group f77 and f90 compilers
10879	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10880	  tmp_addflag=' $pic_flag -Mnomain' ;;
10881	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10882	  tmp_addflag=' -i_dynamic' ;;
10883	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10884	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10885	ifc* | ifort*)			# Intel Fortran compiler
10886	  tmp_addflag=' -nofor_main' ;;
10887	lf95*)				# Lahey Fortran 8.1
10888	  whole_archive_flag_spec=
10889	  tmp_sharedflag='--shared' ;;
10890	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10891	  tmp_sharedflag='-qmkshrobj'
10892	  tmp_addflag= ;;
10893	nvcc*)	# Cuda Compiler Driver 2.2
10894	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10895	  compiler_needs_object=yes
10896	  ;;
10897	esac
10898	case `$CC -V 2>&1 | sed 5q` in
10899	*Sun\ C*)			# Sun C 5.9
10900	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10901	  compiler_needs_object=yes
10902	  tmp_sharedflag='-G' ;;
10903	*Sun\ F*)			# Sun Fortran 8.3
10904	  tmp_sharedflag='-G' ;;
10905	esac
10906	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907
10908        if test "x$supports_anon_versioning" = xyes; then
10909          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10910	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10911	    echo "local: *; };" >> $output_objdir/$libname.ver~
10912	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10913        fi
10914
10915	case $cc_basename in
10916	xlf* | bgf* | bgxlf* | mpixlf*)
10917	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10918	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10919	  hardcode_libdir_flag_spec=
10920	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10921	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10922	  if test "x$supports_anon_versioning" = xyes; then
10923	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10924	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10925	      echo "local: *; };" >> $output_objdir/$libname.ver~
10926	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10927	  fi
10928	  ;;
10929	esac
10930      else
10931        ld_shlibs=no
10932      fi
10933      ;;
10934
10935    netbsd* | netbsdelf*-gnu)
10936      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10938	wlarc=
10939      else
10940	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10941	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10942      fi
10943      ;;
10944
10945    solaris*)
10946      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10947	ld_shlibs=no
10948	cat <<_LT_EOF 1>&2
10949
10950*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10951*** create shared libraries on Solaris systems.  Therefore, libtool
10952*** is disabling shared libraries support.  We urge you to upgrade GNU
10953*** binutils to release 2.9.1 or newer.  Another option is to modify
10954*** your PATH or compiler configuration so that the native linker is
10955*** used, and then restart.
10956
10957_LT_EOF
10958      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10959	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10960	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10961      else
10962	ld_shlibs=no
10963      fi
10964      ;;
10965
10966    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10967      case `$LD -v 2>&1` in
10968        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10969	ld_shlibs=no
10970	cat <<_LT_EOF 1>&2
10971
10972*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10973*** reliably create shared libraries on SCO systems.  Therefore, libtool
10974*** is disabling shared libraries support.  We urge you to upgrade GNU
10975*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10976*** your PATH or compiler configuration so that the native linker is
10977*** used, and then restart.
10978
10979_LT_EOF
10980	;;
10981	*)
10982	  # For security reasons, it is highly recommended that you always
10983	  # use absolute paths for naming shared libraries, and exclude the
10984	  # DT_RUNPATH tag from executables and libraries.  But doing so
10985	  # requires that you compile everything twice, which is a pain.
10986	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10987	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10988	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10990	  else
10991	    ld_shlibs=no
10992	  fi
10993	;;
10994      esac
10995      ;;
10996
10997    sunos4*)
10998      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10999      wlarc=
11000      hardcode_direct=yes
11001      hardcode_shlibpath_var=no
11002      ;;
11003
11004    *)
11005      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11006	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11008      else
11009	ld_shlibs=no
11010      fi
11011      ;;
11012    esac
11013
11014    if test "$ld_shlibs" = no; then
11015      runpath_var=
11016      hardcode_libdir_flag_spec=
11017      export_dynamic_flag_spec=
11018      whole_archive_flag_spec=
11019    fi
11020  else
11021    # PORTME fill in a description of your system's linker (not GNU ld)
11022    case $host_os in
11023    aix3*)
11024      allow_undefined_flag=unsupported
11025      always_export_symbols=yes
11026      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'
11027      # Note: this linker hardcodes the directories in LIBPATH if there
11028      # are no directories specified by -L.
11029      hardcode_minus_L=yes
11030      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11031	# Neither direct hardcoding nor static linking is supported with a
11032	# broken collect2.
11033	hardcode_direct=unsupported
11034      fi
11035      ;;
11036
11037    aix[4-9]*)
11038      if test "$host_cpu" = ia64; then
11039	# On IA64, the linker does run time linking by default, so we don't
11040	# have to do anything special.
11041	aix_use_runtimelinking=no
11042	exp_sym_flag='-Bexport'
11043	no_entry_flag=""
11044      else
11045	# If we're using GNU nm, then we don't want the "-C" option.
11046	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11047	# Also, AIX nm treats weak defined symbols like other global
11048	# defined symbols, whereas GNU nm marks them as "W".
11049	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11050	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11051	else
11052	  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'
11053	fi
11054	aix_use_runtimelinking=no
11055
11056	# Test if we are trying to use run time linking or normal
11057	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11058	# need to do runtime linking.
11059	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11060	  for ld_flag in $LDFLAGS; do
11061	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11062	    aix_use_runtimelinking=yes
11063	    break
11064	  fi
11065	  done
11066	  ;;
11067	esac
11068
11069	exp_sym_flag='-bexport'
11070	no_entry_flag='-bnoentry'
11071      fi
11072
11073      # When large executables or shared objects are built, AIX ld can
11074      # have problems creating the table of contents.  If linking a library
11075      # or program results in "error TOC overflow" add -mminimal-toc to
11076      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11077      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11078
11079      archive_cmds=''
11080      hardcode_direct=yes
11081      hardcode_direct_absolute=yes
11082      hardcode_libdir_separator=':'
11083      link_all_deplibs=yes
11084      file_list_spec='${wl}-f,'
11085
11086      if test "$GCC" = yes; then
11087	case $host_os in aix4.[012]|aix4.[012].*)
11088	# We only want to do this on AIX 4.2 and lower, the check
11089	# below for broken collect2 doesn't work under 4.3+
11090	  collect2name=`${CC} -print-prog-name=collect2`
11091	  if test -f "$collect2name" &&
11092	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11093	  then
11094	  # We have reworked collect2
11095	  :
11096	  else
11097	  # We have old collect2
11098	  hardcode_direct=unsupported
11099	  # It fails to find uninstalled libraries when the uninstalled
11100	  # path is not listed in the libpath.  Setting hardcode_minus_L
11101	  # to unsupported forces relinking
11102	  hardcode_minus_L=yes
11103	  hardcode_libdir_flag_spec='-L$libdir'
11104	  hardcode_libdir_separator=
11105	  fi
11106	  ;;
11107	esac
11108	shared_flag='-shared'
11109	if test "$aix_use_runtimelinking" = yes; then
11110	  shared_flag="$shared_flag "'${wl}-G'
11111	fi
11112	link_all_deplibs=no
11113      else
11114	# not using gcc
11115	if test "$host_cpu" = ia64; then
11116	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11117	# chokes on -Wl,-G. The following line is correct:
11118	  shared_flag='-G'
11119	else
11120	  if test "$aix_use_runtimelinking" = yes; then
11121	    shared_flag='${wl}-G'
11122	  else
11123	    shared_flag='${wl}-bM:SRE'
11124	  fi
11125	fi
11126      fi
11127
11128      export_dynamic_flag_spec='${wl}-bexpall'
11129      # It seems that -bexpall does not export symbols beginning with
11130      # underscore (_), so it is better to generate a list of symbols to export.
11131      always_export_symbols=yes
11132      if test "$aix_use_runtimelinking" = yes; then
11133	# Warning - without using the other runtime loading flags (-brtl),
11134	# -berok will link without error, but may produce a broken library.
11135	allow_undefined_flag='-berok'
11136        # Determine the default libpath from the value encoded in an
11137        # empty executable.
11138        if test "${lt_cv_aix_libpath+set}" = set; then
11139  aix_libpath=$lt_cv_aix_libpath
11140else
11141  if ${lt_cv_aix_libpath_+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145/* end confdefs.h.  */
11146
11147int main (void)
11148{
11149
11150 ;
11151 return 0;
11152}
11153_ACEOF
11154if ac_fn_c_try_link "$LINENO"; then :
11155
11156  lt_aix_libpath_sed='
11157      /Import File Strings/,/^$/ {
11158	  /^0/ {
11159	      s/^0  *\([^ ]*\) *$/\1/
11160	      p
11161	  }
11162      }'
11163  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164  # Check for a 64-bit object if we didn't find anything.
11165  if test -z "$lt_cv_aix_libpath_"; then
11166    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11167  fi
11168fi
11169rm -f core conftest.err conftest.$ac_objext \
11170    conftest$ac_exeext conftest.$ac_ext
11171  if test -z "$lt_cv_aix_libpath_"; then
11172    lt_cv_aix_libpath_="/usr/lib:/lib"
11173  fi
11174
11175fi
11176
11177  aix_libpath=$lt_cv_aix_libpath_
11178fi
11179
11180        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11181        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11182      else
11183	if test "$host_cpu" = ia64; then
11184	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11185	  allow_undefined_flag="-z nodefs"
11186	  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"
11187	else
11188	 # Determine the default libpath from the value encoded in an
11189	 # empty executable.
11190	 if test "${lt_cv_aix_libpath+set}" = set; then
11191  aix_libpath=$lt_cv_aix_libpath
11192else
11193  if ${lt_cv_aix_libpath_+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197/* end confdefs.h.  */
11198
11199int main (void)
11200{
11201
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206if ac_fn_c_try_link "$LINENO"; then :
11207
11208  lt_aix_libpath_sed='
11209      /Import File Strings/,/^$/ {
11210	  /^0/ {
11211	      s/^0  *\([^ ]*\) *$/\1/
11212	      p
11213	  }
11214      }'
11215  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11216  # Check for a 64-bit object if we didn't find anything.
11217  if test -z "$lt_cv_aix_libpath_"; then
11218    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11219  fi
11220fi
11221rm -f core conftest.err conftest.$ac_objext \
11222    conftest$ac_exeext conftest.$ac_ext
11223  if test -z "$lt_cv_aix_libpath_"; then
11224    lt_cv_aix_libpath_="/usr/lib:/lib"
11225  fi
11226
11227fi
11228
11229  aix_libpath=$lt_cv_aix_libpath_
11230fi
11231
11232	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11233	  # Warning - without using the other run time loading flags,
11234	  # -berok will link without error, but may produce a broken library.
11235	  no_undefined_flag=' ${wl}-bernotok'
11236	  allow_undefined_flag=' ${wl}-berok'
11237	  if test "$with_gnu_ld" = yes; then
11238	    # We only use this code for GNU lds that support --whole-archive.
11239	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11240	  else
11241	    # Exported symbols can be pulled into shared objects from archives
11242	    whole_archive_flag_spec='$convenience'
11243	  fi
11244	  archive_cmds_need_lc=yes
11245	  # This is similar to how AIX traditionally builds its shared libraries.
11246	  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'
11247	fi
11248      fi
11249      ;;
11250
11251    amigaos*)
11252      case $host_cpu in
11253      powerpc)
11254            # see comment about AmigaOS4 .so support
11255            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256            archive_expsym_cmds=''
11257        ;;
11258      m68k)
11259            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)'
11260            hardcode_libdir_flag_spec='-L$libdir'
11261            hardcode_minus_L=yes
11262        ;;
11263      esac
11264      ;;
11265
11266    bsdi[45]*)
11267      export_dynamic_flag_spec=-rdynamic
11268      ;;
11269
11270    cygwin* | mingw* | pw32* | cegcc*)
11271      # When not using gcc, we currently assume that we are using
11272      # Microsoft Visual C++.
11273      # hardcode_libdir_flag_spec is actually meaningless, as there is
11274      # no search path for DLLs.
11275      case $cc_basename in
11276      cl*)
11277	# Native MSVC
11278	hardcode_libdir_flag_spec=' '
11279	allow_undefined_flag=unsupported
11280	always_export_symbols=yes
11281	file_list_spec='@'
11282	# Tell ltmain to make .lib files, not .a files.
11283	libext=lib
11284	# Tell ltmain to make .dll files, not .so files.
11285	shrext_cmds=".dll"
11286	# FIXME: Setting linknames here is a bad hack.
11287	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11288	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11289	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11290	  else
11291	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11292	  fi~
11293	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11294	  linknames='
11295	# The linker will not automatically build a static lib if we build a DLL.
11296	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11297	enable_shared_with_static_runtimes=yes
11298	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11299	# Don't use ranlib
11300	old_postinstall_cmds='chmod 644 $oldlib'
11301	postlink_cmds='lt_outputfile="@OUTPUT@"~
11302	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11303	  case $lt_outputfile in
11304	    *.exe|*.EXE) ;;
11305	    *)
11306	      lt_outputfile="$lt_outputfile.exe"
11307	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11308	      ;;
11309	  esac~
11310	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11311	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11312	    $RM "$lt_outputfile.manifest";
11313	  fi'
11314	;;
11315      *)
11316	# Assume MSVC wrapper
11317	hardcode_libdir_flag_spec=' '
11318	allow_undefined_flag=unsupported
11319	# Tell ltmain to make .lib files, not .a files.
11320	libext=lib
11321	# Tell ltmain to make .dll files, not .so files.
11322	shrext_cmds=".dll"
11323	# FIXME: Setting linknames here is a bad hack.
11324	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11325	# The linker will automatically build a .lib file if we build a DLL.
11326	old_archive_from_new_cmds='true'
11327	# FIXME: Should let the user specify the lib program.
11328	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11329	enable_shared_with_static_runtimes=yes
11330	;;
11331      esac
11332      ;;
11333
11334    darwin* | rhapsody*)
11335
11336
11337  archive_cmds_need_lc=no
11338  hardcode_direct=no
11339  hardcode_automatic=yes
11340  hardcode_shlibpath_var=unsupported
11341  if test "$lt_cv_ld_force_load" = "yes"; then
11342    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11343  else
11344    whole_archive_flag_spec=''
11345  fi
11346  link_all_deplibs=yes
11347  allow_undefined_flag="$_lt_dar_allow_undefined"
11348  case $cc_basename in
11349     ifort*) _lt_dar_can_shared=yes ;;
11350     *) _lt_dar_can_shared=$GCC ;;
11351  esac
11352  if test "$_lt_dar_can_shared" = "yes"; then
11353    output_verbose_link_cmd=func_echo_all
11354    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11355    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11356    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}"
11357    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}"
11358
11359  else
11360  ld_shlibs=no
11361  fi
11362
11363      ;;
11364
11365    dgux*)
11366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11367      hardcode_libdir_flag_spec='-L$libdir'
11368      hardcode_shlibpath_var=no
11369      ;;
11370
11371    freebsd1*)
11372      ld_shlibs=no
11373      ;;
11374
11375    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11376    # support.  Future versions do this automatically, but an explicit c++rt0.o
11377    # does not break anything, and helps significantly (at the cost of a little
11378    # extra space).
11379    freebsd2.2*)
11380      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11381      hardcode_libdir_flag_spec='-R$libdir'
11382      hardcode_direct=yes
11383      hardcode_shlibpath_var=no
11384      ;;
11385
11386    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11387    freebsd2*)
11388      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11389      hardcode_direct=yes
11390      hardcode_minus_L=yes
11391      hardcode_shlibpath_var=no
11392      ;;
11393
11394    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11395    freebsd* | dragonfly*)
11396      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11397      hardcode_libdir_flag_spec='-R$libdir'
11398      hardcode_direct=yes
11399      hardcode_shlibpath_var=no
11400      ;;
11401
11402    hpux9*)
11403      if test "$GCC" = yes; then
11404	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11405      else
11406	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'
11407      fi
11408      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11409      hardcode_libdir_separator=:
11410      hardcode_direct=yes
11411
11412      # hardcode_minus_L: Not really in the search PATH,
11413      # but as the default location of the library.
11414      hardcode_minus_L=yes
11415      export_dynamic_flag_spec='${wl}-E'
11416      ;;
11417
11418    hpux10*)
11419      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11420	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11421      else
11422	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11423      fi
11424      if test "$with_gnu_ld" = no; then
11425	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11426	hardcode_libdir_flag_spec_ld='+b $libdir'
11427	hardcode_libdir_separator=:
11428	hardcode_direct=yes
11429	hardcode_direct_absolute=yes
11430	export_dynamic_flag_spec='${wl}-E'
11431	# hardcode_minus_L: Not really in the search PATH,
11432	# but as the default location of the library.
11433	hardcode_minus_L=yes
11434      fi
11435      ;;
11436
11437    hpux11*)
11438      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11439	case $host_cpu in
11440	hppa*64*)
11441	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11442	  ;;
11443	ia64*)
11444	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11445	  ;;
11446	*)
11447	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11448	  ;;
11449	esac
11450      else
11451	case $host_cpu in
11452	hppa*64*)
11453	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11454	  ;;
11455	ia64*)
11456	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11457	  ;;
11458	*)
11459
11460	  # Older versions of the 11.00 compiler do not understand -b yet
11461	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11462	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11463$as_echo_n "checking if $CC understands -b... " >&6; }
11464if ${lt_cv_prog_compiler__b+:} false; then :
11465  $as_echo_n "(cached) " >&6
11466else
11467  lt_cv_prog_compiler__b=no
11468   save_LDFLAGS="$LDFLAGS"
11469   LDFLAGS="$LDFLAGS -b"
11470   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11471   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11472     # The linker can only warn and ignore the option if not recognized
11473     # So say no if there are warnings
11474     if test -s conftest.err; then
11475       # Append any errors to the config.log.
11476       cat conftest.err 1>&5
11477       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11478       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11479       if diff conftest.exp conftest.er2 >/dev/null; then
11480         lt_cv_prog_compiler__b=yes
11481       fi
11482     else
11483       lt_cv_prog_compiler__b=yes
11484     fi
11485   fi
11486   $RM -r conftest*
11487   LDFLAGS="$save_LDFLAGS"
11488
11489fi
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11491$as_echo "$lt_cv_prog_compiler__b" >&6; }
11492
11493if test x"$lt_cv_prog_compiler__b" = xyes; then
11494    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11495else
11496    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11497fi
11498
11499	  ;;
11500	esac
11501      fi
11502      if test "$with_gnu_ld" = no; then
11503	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11504	hardcode_libdir_separator=:
11505
11506	case $host_cpu in
11507	hppa*64*|ia64*)
11508	  hardcode_direct=no
11509	  hardcode_shlibpath_var=no
11510	  ;;
11511	*)
11512	  hardcode_direct=yes
11513	  hardcode_direct_absolute=yes
11514	  export_dynamic_flag_spec='${wl}-E'
11515
11516	  # hardcode_minus_L: Not really in the search PATH,
11517	  # but as the default location of the library.
11518	  hardcode_minus_L=yes
11519	  ;;
11520	esac
11521      fi
11522      ;;
11523
11524    irix5* | irix6* | nonstopux*)
11525      if test "$GCC" = yes; then
11526	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11527	# Try to use the -exported_symbol ld option, if it does not
11528	# work, assume that -exports_file does not work either and
11529	# implicitly export all symbols.
11530	# This should be the same for all languages, so no per-tag cache variable.
11531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11532$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11533if ${lt_cv_irix_exported_symbol+:} false; then :
11534  $as_echo_n "(cached) " >&6
11535else
11536  save_LDFLAGS="$LDFLAGS"
11537	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11538	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539/* end confdefs.h.  */
11540int foo (void) { return 0; }
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  lt_cv_irix_exported_symbol=yes
11544else
11545  lt_cv_irix_exported_symbol=no
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548    conftest$ac_exeext conftest.$ac_ext
11549           LDFLAGS="$save_LDFLAGS"
11550fi
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11552$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11553	if test "$lt_cv_irix_exported_symbol" = yes; then
11554          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11555	fi
11556      else
11557	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11558	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11559      fi
11560      archive_cmds_need_lc='no'
11561      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11562      hardcode_libdir_separator=:
11563      inherit_rpath=yes
11564      link_all_deplibs=yes
11565      ;;
11566
11567    netbsd* | netbsdelf*-gnu)
11568      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11569	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11570      else
11571	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11572      fi
11573      hardcode_libdir_flag_spec='-R$libdir'
11574      hardcode_direct=yes
11575      hardcode_shlibpath_var=no
11576      ;;
11577
11578    newsos6)
11579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11580      hardcode_direct=yes
11581      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11582      hardcode_libdir_separator=:
11583      hardcode_shlibpath_var=no
11584      ;;
11585
11586    *nto* | *qnx*)
11587      ;;
11588
11589    openbsd*)
11590      if test -f /usr/libexec/ld.so; then
11591	hardcode_direct=yes
11592	hardcode_shlibpath_var=no
11593	hardcode_direct_absolute=yes
11594	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11596	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11597	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11598	  export_dynamic_flag_spec='${wl}-E'
11599	else
11600	  case $host_os in
11601	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11602	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11603	     hardcode_libdir_flag_spec='-R$libdir'
11604	     ;;
11605	   *)
11606	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11607	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11608	     ;;
11609	  esac
11610	fi
11611      else
11612	ld_shlibs=no
11613      fi
11614      ;;
11615
11616    os2*)
11617      hardcode_libdir_flag_spec='-L$libdir'
11618      hardcode_minus_L=yes
11619      allow_undefined_flag=unsupported
11620      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'
11621      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11622      ;;
11623
11624    osf3*)
11625      if test "$GCC" = yes; then
11626	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11627	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11628      else
11629	allow_undefined_flag=' -expect_unresolved \*'
11630	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11631      fi
11632      archive_cmds_need_lc='no'
11633      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11634      hardcode_libdir_separator=:
11635      ;;
11636
11637    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11638      if test "$GCC" = yes; then
11639	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11640	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11641	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11642      else
11643	allow_undefined_flag=' -expect_unresolved \*'
11644	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11645	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~
11646	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11647
11648	# Both c and cxx compiler support -rpath directly
11649	hardcode_libdir_flag_spec='-rpath $libdir'
11650      fi
11651      archive_cmds_need_lc='no'
11652      hardcode_libdir_separator=:
11653      ;;
11654
11655    solaris*)
11656      no_undefined_flag=' -z defs'
11657      if test "$GCC" = yes; then
11658	wlarc='${wl}'
11659	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11660	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11661	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11662      else
11663	case `$CC -V 2>&1` in
11664	*"Compilers 5.0"*)
11665	  wlarc=''
11666	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11667	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11668	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11669	  ;;
11670	*)
11671	  wlarc='${wl}'
11672	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11673	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11674	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11675	  ;;
11676	esac
11677      fi
11678      hardcode_libdir_flag_spec='-R$libdir'
11679      hardcode_shlibpath_var=no
11680      case $host_os in
11681      solaris2.[0-5] | solaris2.[0-5].*) ;;
11682      *)
11683	# The compiler driver will combine and reorder linker options,
11684	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11685	# but is careful enough not to reorder.
11686	# Supported since Solaris 2.6 (maybe 2.5.1?)
11687	if test "$GCC" = yes; then
11688	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11689	else
11690	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11691	fi
11692	;;
11693      esac
11694      link_all_deplibs=yes
11695      ;;
11696
11697    sunos4*)
11698      if test "x$host_vendor" = xsequent; then
11699	# Use $CC to link under sequent, because it throws in some extra .o
11700	# files that make .init and .fini sections work.
11701	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11702      else
11703	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11704      fi
11705      hardcode_libdir_flag_spec='-L$libdir'
11706      hardcode_direct=yes
11707      hardcode_minus_L=yes
11708      hardcode_shlibpath_var=no
11709      ;;
11710
11711    sysv4)
11712      case $host_vendor in
11713	sni)
11714	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11715	  hardcode_direct=yes # is this really true???
11716	;;
11717	siemens)
11718	  ## LD is ld it makes a PLAMLIB
11719	  ## CC just makes a GrossModule.
11720	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11721	  reload_cmds='$CC -r -o $output$reload_objs'
11722	  hardcode_direct=no
11723        ;;
11724	motorola)
11725	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11726	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11727	;;
11728      esac
11729      runpath_var='LD_RUN_PATH'
11730      hardcode_shlibpath_var=no
11731      ;;
11732
11733    sysv4.3*)
11734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11735      hardcode_shlibpath_var=no
11736      export_dynamic_flag_spec='-Bexport'
11737      ;;
11738
11739    sysv4*MP*)
11740      if test -d /usr/nec; then
11741	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11742	hardcode_shlibpath_var=no
11743	runpath_var=LD_RUN_PATH
11744	hardcode_runpath_var=yes
11745	ld_shlibs=yes
11746      fi
11747      ;;
11748
11749    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11750      no_undefined_flag='${wl}-z,text'
11751      archive_cmds_need_lc=no
11752      hardcode_shlibpath_var=no
11753      runpath_var='LD_RUN_PATH'
11754
11755      if test "$GCC" = yes; then
11756	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11757	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758      else
11759	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761      fi
11762      ;;
11763
11764    sysv5* | sco3.2v5* | sco5v6*)
11765      # Note: We can NOT use -z defs as we might desire, because we do not
11766      # link with -lc, and that would cause any symbols used from libc to
11767      # always be unresolved, which means just about no library would
11768      # ever link correctly.  If we're not using GNU ld we use -z text
11769      # though, which does catch some bad symbols but isn't as heavy-handed
11770      # as -z defs.
11771      no_undefined_flag='${wl}-z,text'
11772      allow_undefined_flag='${wl}-z,nodefs'
11773      archive_cmds_need_lc=no
11774      hardcode_shlibpath_var=no
11775      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11776      hardcode_libdir_separator=':'
11777      link_all_deplibs=yes
11778      export_dynamic_flag_spec='${wl}-Bexport'
11779      runpath_var='LD_RUN_PATH'
11780
11781      if test "$GCC" = yes; then
11782	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784      else
11785	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787      fi
11788      ;;
11789
11790    uts4*)
11791      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11792      hardcode_libdir_flag_spec='-L$libdir'
11793      hardcode_shlibpath_var=no
11794      ;;
11795
11796    *)
11797      ld_shlibs=no
11798      ;;
11799    esac
11800
11801    if test x$host_vendor = xsni; then
11802      case $host in
11803      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11804	export_dynamic_flag_spec='${wl}-Blargedynsym'
11805	;;
11806      esac
11807    fi
11808  fi
11809
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11811$as_echo "$ld_shlibs" >&6; }
11812test "$ld_shlibs" = no && can_build_shared=no
11813
11814with_gnu_ld=$with_gnu_ld
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830#
11831# Do we need to explicitly link libc?
11832#
11833case "x$archive_cmds_need_lc" in
11834x|xyes)
11835  # Assume -lc should be added
11836  archive_cmds_need_lc=yes
11837
11838  if test "$enable_shared" = yes && test "$GCC" = yes; then
11839    case $archive_cmds in
11840    *'~'*)
11841      # FIXME: we may have to deal with multi-command sequences.
11842      ;;
11843    '$CC '*)
11844      # Test whether the compiler implicitly links with -lc since on some
11845      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11846      # to ld, don't add -lc before -lgcc.
11847      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11848$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11849if ${lt_cv_archive_cmds_need_lc+:} false; then :
11850  $as_echo_n "(cached) " >&6
11851else
11852  $RM conftest*
11853	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11854
11855	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11856  (eval $ac_compile) 2>&5
11857  ac_status=$?
11858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859  test $ac_status = 0; } 2>conftest.err; then
11860	  soname=conftest
11861	  lib=conftest
11862	  libobjs=conftest.$ac_objext
11863	  deplibs=
11864	  wl=$lt_prog_compiler_wl
11865	  pic_flag=$lt_prog_compiler_pic
11866	  compiler_flags=-v
11867	  linker_flags=-v
11868	  verstring=
11869	  output_objdir=.
11870	  libname=conftest
11871	  lt_save_allow_undefined_flag=$allow_undefined_flag
11872	  allow_undefined_flag=
11873	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11874  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11875  ac_status=$?
11876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877  test $ac_status = 0; }
11878	  then
11879	    lt_cv_archive_cmds_need_lc=no
11880	  else
11881	    lt_cv_archive_cmds_need_lc=yes
11882	  fi
11883	  allow_undefined_flag=$lt_save_allow_undefined_flag
11884	else
11885	  cat conftest.err 1>&5
11886	fi
11887	$RM conftest*
11888
11889fi
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11891$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11892      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11893      ;;
11894    esac
11895  fi
11896  ;;
11897esac
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12056$as_echo_n "checking dynamic linker characteristics... " >&6; }
12057
12058if test "$GCC" = yes; then
12059  case $host_os in
12060    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12061    *) lt_awk_arg="/^libraries:/" ;;
12062  esac
12063  case $host_os in
12064    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12065    *) lt_sed_strip_eq="s,=/,/,g" ;;
12066  esac
12067  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12068  case $lt_search_path_spec in
12069  *\;*)
12070    # if the path contains ";" then we assume it to be the separator
12071    # otherwise default to the standard path separator (i.e. ":") - it is
12072    # assumed that no part of a normal pathname contains ";" but that should
12073    # okay in the real world where ";" in dirpaths is itself problematic.
12074    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12075    ;;
12076  *)
12077    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12078    ;;
12079  esac
12080  # Ok, now we have the path, separated by spaces, we can step through it
12081  # and add multilib dir if necessary.
12082  lt_tmp_lt_search_path_spec=
12083  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12084  for lt_sys_path in $lt_search_path_spec; do
12085    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12086      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12087    else
12088      test -d "$lt_sys_path" && \
12089	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12090    fi
12091  done
12092  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12093BEGIN {RS=" "; FS="/|\n";} {
12094  lt_foo="";
12095  lt_count=0;
12096  for (lt_i = NF; lt_i > 0; lt_i--) {
12097    if ($lt_i != "" && $lt_i != ".") {
12098      if ($lt_i == "..") {
12099        lt_count++;
12100      } else {
12101        if (lt_count == 0) {
12102          lt_foo="/" $lt_i lt_foo;
12103        } else {
12104          lt_count--;
12105        }
12106      }
12107    }
12108  }
12109  if (lt_foo != "") { lt_freq[lt_foo]++; }
12110  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12111}'`
12112  # AWK program above erroneously prepends '/' to C:/dos/paths
12113  # for these hosts.
12114  case $host_os in
12115    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12116      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12117  esac
12118  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12119else
12120  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12121fi
12122library_names_spec=
12123libname_spec='lib$name'
12124soname_spec=
12125shrext_cmds=".so"
12126postinstall_cmds=
12127postuninstall_cmds=
12128finish_cmds=
12129finish_eval=
12130shlibpath_var=
12131shlibpath_overrides_runpath=unknown
12132version_type=none
12133dynamic_linker="$host_os ld.so"
12134sys_lib_dlsearch_path_spec="/lib /usr/lib"
12135need_lib_prefix=unknown
12136hardcode_into_libs=no
12137
12138# when you set need_version to no, make sure it does not cause -set_version
12139# flags to be left without arguments
12140need_version=unknown
12141
12142case $host_os in
12143aix3*)
12144  version_type=linux
12145  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12146  shlibpath_var=LIBPATH
12147
12148  # AIX 3 has no versioning support, so we append a major version to the name.
12149  soname_spec='${libname}${release}${shared_ext}$major'
12150  ;;
12151
12152aix[4-9]*)
12153  version_type=linux
12154  need_lib_prefix=no
12155  need_version=no
12156  hardcode_into_libs=yes
12157  if test "$host_cpu" = ia64; then
12158    # AIX 5 supports IA64
12159    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12160    shlibpath_var=LD_LIBRARY_PATH
12161  else
12162    # With GCC up to 2.95.x, collect2 would create an import file
12163    # for dependence libraries.  The import file would start with
12164    # the line `#! .'.  This would cause the generated library to
12165    # depend on `.', always an invalid library.  This was fixed in
12166    # development snapshots of GCC prior to 3.0.
12167    case $host_os in
12168      aix4 | aix4.[01] | aix4.[01].*)
12169      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12170	   echo ' yes '
12171	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12172	:
12173      else
12174	can_build_shared=no
12175      fi
12176      ;;
12177    esac
12178    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12179    # soname into executable. Probably we can add versioning support to
12180    # collect2, so additional links can be useful in future.
12181    if test "$aix_use_runtimelinking" = yes; then
12182      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12183      # instead of lib<name>.a to let people know that these are not
12184      # typical AIX shared libraries.
12185      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186    else
12187      # We preserve .a as extension for shared libraries through AIX4.2
12188      # and later when we are not doing run time linking.
12189      library_names_spec='${libname}${release}.a $libname.a'
12190      soname_spec='${libname}${release}${shared_ext}$major'
12191    fi
12192    shlibpath_var=LIBPATH
12193  fi
12194  ;;
12195
12196amigaos*)
12197  case $host_cpu in
12198  powerpc)
12199    # Since July 2007 AmigaOS4 officially supports .so libraries.
12200    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12201    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202    ;;
12203  m68k)
12204    library_names_spec='$libname.ixlibrary $libname.a'
12205    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12206    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12207    ;;
12208  esac
12209  ;;
12210
12211beos*)
12212  library_names_spec='${libname}${shared_ext}'
12213  dynamic_linker="$host_os ld.so"
12214  shlibpath_var=LIBRARY_PATH
12215  ;;
12216
12217bsdi[45]*)
12218  version_type=linux
12219  need_version=no
12220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221  soname_spec='${libname}${release}${shared_ext}$major'
12222  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12223  shlibpath_var=LD_LIBRARY_PATH
12224  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12225  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12226  # the default ld.so.conf also contains /usr/contrib/lib and
12227  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12228  # libtool to hard-code these into programs
12229  ;;
12230
12231cygwin* | mingw* | pw32* | cegcc*)
12232  version_type=windows
12233  shrext_cmds=".dll"
12234  need_version=no
12235  need_lib_prefix=no
12236
12237  case $GCC,$cc_basename in
12238  yes,*)
12239    # gcc
12240    library_names_spec='$libname.dll.a'
12241    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12242    postinstall_cmds='base_file=`basename \${file}`~
12243      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12244      dldir=$destdir/`dirname \$dlpath`~
12245      test -d \$dldir || mkdir -p \$dldir~
12246      $install_prog $dir/$dlname \$dldir/$dlname~
12247      chmod a+x \$dldir/$dlname~
12248      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12249        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12250      fi'
12251    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12252      dlpath=$dir/\$dldll~
12253       $RM \$dlpath'
12254    shlibpath_overrides_runpath=yes
12255
12256    case $host_os in
12257    cygwin*)
12258      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12259      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12260
12261      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12262      ;;
12263    mingw* | cegcc*)
12264      # MinGW DLLs use traditional 'lib' prefix
12265      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12266      ;;
12267    pw32*)
12268      # pw32 DLLs use 'pw' prefix rather than 'lib'
12269      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12270      ;;
12271    esac
12272    dynamic_linker='Win32 ld.exe'
12273    ;;
12274
12275  *,cl*)
12276    # Native MSVC
12277    libname_spec='$name'
12278    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12279    library_names_spec='${libname}.dll.lib'
12280
12281    case $build_os in
12282    mingw*)
12283      sys_lib_search_path_spec=
12284      lt_save_ifs=$IFS
12285      IFS=';'
12286      for lt_path in $LIB
12287      do
12288        IFS=$lt_save_ifs
12289        # Let DOS variable expansion print the short 8.3 style file name.
12290        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12291        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12292      done
12293      IFS=$lt_save_ifs
12294      # Convert to MSYS style.
12295      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12296      ;;
12297    cygwin*)
12298      # Convert to unix form, then to dos form, then back to unix form
12299      # but this time dos style (no spaces!) so that the unix form looks
12300      # like /cygdrive/c/PROGRA~1:/cygdr...
12301      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12302      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12303      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12304      ;;
12305    *)
12306      sys_lib_search_path_spec="$LIB"
12307      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12308        # It is most probably a Windows format PATH.
12309        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12310      else
12311        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12312      fi
12313      # FIXME: find the short name or the path components, as spaces are
12314      # common. (e.g. "Program Files" -> "PROGRA~1")
12315      ;;
12316    esac
12317
12318    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12319    postinstall_cmds='base_file=`basename \${file}`~
12320      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12321      dldir=$destdir/`dirname \$dlpath`~
12322      test -d \$dldir || mkdir -p \$dldir~
12323      $install_prog $dir/$dlname \$dldir/$dlname'
12324    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12325      dlpath=$dir/\$dldll~
12326       $RM \$dlpath'
12327    shlibpath_overrides_runpath=yes
12328    dynamic_linker='Win32 link.exe'
12329    ;;
12330
12331  *)
12332    # Assume MSVC wrapper
12333    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12334    dynamic_linker='Win32 ld.exe'
12335    ;;
12336  esac
12337  # FIXME: first we should search . and the directory the executable is in
12338  shlibpath_var=PATH
12339  ;;
12340
12341darwin* | rhapsody*)
12342  dynamic_linker="$host_os dyld"
12343  version_type=darwin
12344  need_lib_prefix=no
12345  need_version=no
12346  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12347  soname_spec='${libname}${release}${major}$shared_ext'
12348  shlibpath_overrides_runpath=yes
12349  shlibpath_var=DYLD_LIBRARY_PATH
12350  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12351
12352  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12353  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12354  ;;
12355
12356dgux*)
12357  version_type=linux
12358  need_lib_prefix=no
12359  need_version=no
12360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12361  soname_spec='${libname}${release}${shared_ext}$major'
12362  shlibpath_var=LD_LIBRARY_PATH
12363  ;;
12364
12365freebsd1*)
12366  dynamic_linker=no
12367  ;;
12368
12369freebsd* | dragonfly*)
12370  # DragonFly does not have aout.  When/if they implement a new
12371  # versioning mechanism, adjust this.
12372  if test -x /usr/bin/objformat; then
12373    objformat=`/usr/bin/objformat`
12374  else
12375    case $host_os in
12376    freebsd[123]*) objformat=aout ;;
12377    *) objformat=elf ;;
12378    esac
12379  fi
12380  version_type=freebsd-$objformat
12381  case $version_type in
12382    freebsd-elf*)
12383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12384      need_version=no
12385      need_lib_prefix=no
12386      ;;
12387    freebsd-*)
12388      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12389      need_version=yes
12390      ;;
12391  esac
12392  shlibpath_var=LD_LIBRARY_PATH
12393  case $host_os in
12394  freebsd2*)
12395    shlibpath_overrides_runpath=yes
12396    ;;
12397  freebsd3.[01]* | freebsdelf3.[01]*)
12398    shlibpath_overrides_runpath=yes
12399    hardcode_into_libs=yes
12400    ;;
12401  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12402  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12403    shlibpath_overrides_runpath=no
12404    hardcode_into_libs=yes
12405    ;;
12406  *) # from 4.6 on, and DragonFly
12407    shlibpath_overrides_runpath=yes
12408    hardcode_into_libs=yes
12409    ;;
12410  esac
12411  ;;
12412
12413gnu*)
12414  version_type=linux
12415  need_lib_prefix=no
12416  need_version=no
12417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12418  soname_spec='${libname}${release}${shared_ext}$major'
12419  shlibpath_var=LD_LIBRARY_PATH
12420  shlibpath_overrides_runpath=no
12421  hardcode_into_libs=yes
12422  ;;
12423
12424haiku*)
12425  version_type=linux
12426  need_lib_prefix=no
12427  need_version=no
12428  dynamic_linker="$host_os runtime_loader"
12429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12430  soname_spec='${libname}${release}${shared_ext}$major'
12431  shlibpath_var=LIBRARY_PATH
12432  shlibpath_overrides_runpath=yes
12433  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12434  hardcode_into_libs=yes
12435  ;;
12436
12437hpux9* | hpux10* | hpux11*)
12438  # Give a soname corresponding to the major version so that dld.sl refuses to
12439  # link against other versions.
12440  version_type=sunos
12441  need_lib_prefix=no
12442  need_version=no
12443  case $host_cpu in
12444  ia64*)
12445    shrext_cmds='.so'
12446    hardcode_into_libs=yes
12447    dynamic_linker="$host_os dld.so"
12448    shlibpath_var=LD_LIBRARY_PATH
12449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451    soname_spec='${libname}${release}${shared_ext}$major'
12452    if test "X$HPUX_IA64_MODE" = X32; then
12453      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12454    else
12455      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12456    fi
12457    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12458    ;;
12459  hppa*64*)
12460    shrext_cmds='.sl'
12461    hardcode_into_libs=yes
12462    dynamic_linker="$host_os dld.sl"
12463    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12464    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12465    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12466    soname_spec='${libname}${release}${shared_ext}$major'
12467    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12468    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469    ;;
12470  *)
12471    shrext_cmds='.sl'
12472    dynamic_linker="$host_os dld.sl"
12473    shlibpath_var=SHLIB_PATH
12474    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12476    soname_spec='${libname}${release}${shared_ext}$major'
12477    ;;
12478  esac
12479  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12480  postinstall_cmds='chmod 555 $lib'
12481  # or fails outright, so override atomically:
12482  install_override_mode=555
12483  ;;
12484
12485interix[3-9]*)
12486  version_type=linux
12487  need_lib_prefix=no
12488  need_version=no
12489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12490  soname_spec='${libname}${release}${shared_ext}$major'
12491  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12492  shlibpath_var=LD_LIBRARY_PATH
12493  shlibpath_overrides_runpath=no
12494  hardcode_into_libs=yes
12495  ;;
12496
12497irix5* | irix6* | nonstopux*)
12498  case $host_os in
12499    nonstopux*) version_type=nonstopux ;;
12500    *)
12501	if test "$lt_cv_prog_gnu_ld" = yes; then
12502		version_type=linux
12503	else
12504		version_type=irix
12505	fi ;;
12506  esac
12507  need_lib_prefix=no
12508  need_version=no
12509  soname_spec='${libname}${release}${shared_ext}$major'
12510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12511  case $host_os in
12512  irix5* | nonstopux*)
12513    libsuff= shlibsuff=
12514    ;;
12515  *)
12516    case $LD in # libtool.m4 will add one of these switches to LD
12517    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12518      libsuff= shlibsuff= libmagic=32-bit;;
12519    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12520      libsuff=32 shlibsuff=N32 libmagic=N32;;
12521    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12522      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12523    *) libsuff= shlibsuff= libmagic=never-match;;
12524    esac
12525    ;;
12526  esac
12527  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12528  shlibpath_overrides_runpath=no
12529  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12530  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12531  hardcode_into_libs=yes
12532  ;;
12533
12534# No shared lib support for Linux oldld, aout, or coff.
12535linux*oldld* | linux*aout* | linux*coff*)
12536  dynamic_linker=no
12537  ;;
12538
12539# This must be Linux ELF.
12540linux* | k*bsd*-gnu | kopensolaris*-gnu)
12541  version_type=linux
12542  need_lib_prefix=no
12543  need_version=no
12544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545  soname_spec='${libname}${release}${shared_ext}$major'
12546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  shlibpath_overrides_runpath=no
12549
12550  # Some binutils ld are patched to set DT_RUNPATH
12551  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  lt_cv_shlibpath_overrides_runpath=no
12555    save_LDFLAGS=$LDFLAGS
12556    save_libdir=$libdir
12557    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12558	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h.  */
12561
12562int main (void)
12563{
12564
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569if ac_fn_c_try_link "$LINENO"; then :
12570  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12571  lt_cv_shlibpath_overrides_runpath=yes
12572fi
12573fi
12574rm -f core conftest.err conftest.$ac_objext \
12575    conftest$ac_exeext conftest.$ac_ext
12576    LDFLAGS=$save_LDFLAGS
12577    libdir=$save_libdir
12578
12579fi
12580
12581  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12582
12583  # This implies no fast_install, which is unacceptable.
12584  # Some rework will be needed to allow for fast_install
12585  # before this can be enabled.
12586  hardcode_into_libs=yes
12587
12588  # Append ld.so.conf contents to the search path
12589  if test -f /etc/ld.so.conf; then
12590    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12591    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12592  fi
12593
12594  # We used to test for /lib/ld.so.1 and disable shared libraries on
12595  # powerpc, because MkLinux only supported shared libraries with the
12596  # GNU dynamic linker.  Since this was broken with cross compilers,
12597  # most powerpc-linux boxes support dynamic linking these days and
12598  # people can always --disable-shared, the test was removed, and we
12599  # assume the GNU/Linux dynamic linker is in use.
12600  dynamic_linker='GNU/Linux ld.so'
12601  ;;
12602
12603netbsdelf*-gnu)
12604  version_type=linux
12605  need_lib_prefix=no
12606  need_version=no
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12608  soname_spec='${libname}${release}${shared_ext}$major'
12609  shlibpath_var=LD_LIBRARY_PATH
12610  shlibpath_overrides_runpath=no
12611  hardcode_into_libs=yes
12612  dynamic_linker='NetBSD ld.elf_so'
12613  ;;
12614
12615netbsd*)
12616  version_type=sunos
12617  need_lib_prefix=no
12618  need_version=no
12619  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622    dynamic_linker='NetBSD (a.out) ld.so'
12623  else
12624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625    soname_spec='${libname}${release}${shared_ext}$major'
12626    dynamic_linker='NetBSD ld.elf_so'
12627  fi
12628  shlibpath_var=LD_LIBRARY_PATH
12629  shlibpath_overrides_runpath=yes
12630  hardcode_into_libs=yes
12631  ;;
12632
12633newsos6)
12634  version_type=linux
12635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636  shlibpath_var=LD_LIBRARY_PATH
12637  shlibpath_overrides_runpath=yes
12638  ;;
12639
12640*nto* | *qnx*)
12641  version_type=qnx
12642  need_lib_prefix=no
12643  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
12647  shlibpath_overrides_runpath=no
12648  hardcode_into_libs=yes
12649  dynamic_linker='ldqnx.so'
12650  ;;
12651
12652openbsd*)
12653  version_type=sunos
12654  sys_lib_dlsearch_path_spec="/usr/lib"
12655  need_lib_prefix=no
12656  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12657  case $host_os in
12658    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12659    *)				need_version=no  ;;
12660  esac
12661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12662  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12663  shlibpath_var=LD_LIBRARY_PATH
12664  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12665    case $host_os in
12666      openbsd2.[89] | openbsd2.[89].*)
12667	shlibpath_overrides_runpath=no
12668	;;
12669      *)
12670	shlibpath_overrides_runpath=yes
12671	;;
12672      esac
12673  else
12674    shlibpath_overrides_runpath=yes
12675  fi
12676  ;;
12677
12678os2*)
12679  libname_spec='$name'
12680  shrext_cmds=".dll"
12681  need_lib_prefix=no
12682  library_names_spec='$libname${shared_ext} $libname.a'
12683  dynamic_linker='OS/2 ld.exe'
12684  shlibpath_var=LIBPATH
12685  ;;
12686
12687osf3* | osf4* | osf5*)
12688  version_type=osf
12689  need_lib_prefix=no
12690  need_version=no
12691  soname_spec='${libname}${release}${shared_ext}$major'
12692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693  shlibpath_var=LD_LIBRARY_PATH
12694  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12695  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12696  ;;
12697
12698rdos*)
12699  dynamic_linker=no
12700  ;;
12701
12702solaris*)
12703  version_type=linux
12704  need_lib_prefix=no
12705  need_version=no
12706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707  soname_spec='${libname}${release}${shared_ext}$major'
12708  shlibpath_var=LD_LIBRARY_PATH
12709  shlibpath_overrides_runpath=yes
12710  hardcode_into_libs=yes
12711  # ldd complains unless libraries are executable
12712  postinstall_cmds='chmod +x $lib'
12713  ;;
12714
12715sunos4*)
12716  version_type=sunos
12717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12718  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12719  shlibpath_var=LD_LIBRARY_PATH
12720  shlibpath_overrides_runpath=yes
12721  if test "$with_gnu_ld" = yes; then
12722    need_lib_prefix=no
12723  fi
12724  need_version=yes
12725  ;;
12726
12727sysv4 | sysv4.3*)
12728  version_type=linux
12729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730  soname_spec='${libname}${release}${shared_ext}$major'
12731  shlibpath_var=LD_LIBRARY_PATH
12732  case $host_vendor in
12733    sni)
12734      shlibpath_overrides_runpath=no
12735      need_lib_prefix=no
12736      runpath_var=LD_RUN_PATH
12737      ;;
12738    siemens)
12739      need_lib_prefix=no
12740      ;;
12741    motorola)
12742      need_lib_prefix=no
12743      need_version=no
12744      shlibpath_overrides_runpath=no
12745      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12746      ;;
12747  esac
12748  ;;
12749
12750sysv4*MP*)
12751  if test -d /usr/nec ;then
12752    version_type=linux
12753    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12754    soname_spec='$libname${shared_ext}.$major'
12755    shlibpath_var=LD_LIBRARY_PATH
12756  fi
12757  ;;
12758
12759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12760  version_type=freebsd-elf
12761  need_lib_prefix=no
12762  need_version=no
12763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12764  soname_spec='${libname}${release}${shared_ext}$major'
12765  shlibpath_var=LD_LIBRARY_PATH
12766  shlibpath_overrides_runpath=yes
12767  hardcode_into_libs=yes
12768  if test "$with_gnu_ld" = yes; then
12769    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12770  else
12771    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12772    case $host_os in
12773      sco3.2v5*)
12774        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12775	;;
12776    esac
12777  fi
12778  sys_lib_dlsearch_path_spec='/usr/lib'
12779  ;;
12780
12781tpf*)
12782  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12783  version_type=linux
12784  need_lib_prefix=no
12785  need_version=no
12786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787  shlibpath_var=LD_LIBRARY_PATH
12788  shlibpath_overrides_runpath=no
12789  hardcode_into_libs=yes
12790  ;;
12791
12792uts4*)
12793  version_type=linux
12794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795  soname_spec='${libname}${release}${shared_ext}$major'
12796  shlibpath_var=LD_LIBRARY_PATH
12797  ;;
12798
12799*)
12800  dynamic_linker=no
12801  ;;
12802esac
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12804$as_echo "$dynamic_linker" >&6; }
12805test "$dynamic_linker" = no && can_build_shared=no
12806
12807variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12808if test "$GCC" = yes; then
12809  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12810fi
12811
12812if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12813  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12814fi
12815if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12816  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12817fi
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12911$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12912hardcode_action=
12913if test -n "$hardcode_libdir_flag_spec" ||
12914   test -n "$runpath_var" ||
12915   test "X$hardcode_automatic" = "Xyes" ; then
12916
12917  # We can hardcode non-existent directories.
12918  if test "$hardcode_direct" != no &&
12919     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12920     # have to relink, otherwise we might link with an installed library
12921     # when we should be linking with a yet-to-be-installed one
12922     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12923     test "$hardcode_minus_L" != no; then
12924    # Linking always hardcodes the temporary library directory.
12925    hardcode_action=relink
12926  else
12927    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12928    hardcode_action=immediate
12929  fi
12930else
12931  # We cannot hardcode anything, or else we can only hardcode existing
12932  # directories.
12933  hardcode_action=unsupported
12934fi
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12936$as_echo "$hardcode_action" >&6; }
12937
12938if test "$hardcode_action" = relink ||
12939   test "$inherit_rpath" = yes; then
12940  # Fast installation is not supported
12941  enable_fast_install=no
12942elif test "$shlibpath_overrides_runpath" = yes ||
12943     test "$enable_shared" = no; then
12944  # Fast installation is not necessary
12945  enable_fast_install=needless
12946fi
12947
12948
12949
12950
12951
12952
12953  if test "x$enable_dlopen" != xyes; then
12954  enable_dlopen=unknown
12955  enable_dlopen_self=unknown
12956  enable_dlopen_self_static=unknown
12957else
12958  lt_cv_dlopen=no
12959  lt_cv_dlopen_libs=
12960
12961  case $host_os in
12962  beos*)
12963    lt_cv_dlopen="load_add_on"
12964    lt_cv_dlopen_libs=
12965    lt_cv_dlopen_self=yes
12966    ;;
12967
12968  mingw* | pw32* | cegcc*)
12969    lt_cv_dlopen="LoadLibrary"
12970    lt_cv_dlopen_libs=
12971    ;;
12972
12973  cygwin*)
12974    lt_cv_dlopen="dlopen"
12975    lt_cv_dlopen_libs=
12976    ;;
12977
12978  darwin*)
12979  # if libdl is installed we need to link against it
12980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12981$as_echo_n "checking for dlopen in -ldl... " >&6; }
12982if ${ac_cv_lib_dl_dlopen+:} false; then :
12983  $as_echo_n "(cached) " >&6
12984else
12985  ac_check_lib_save_LIBS=$LIBS
12986LIBS="-ldl  $LIBS"
12987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988/* end confdefs.h.  */
12989
12990
12991#ifdef __cplusplus
12992extern "C"
12993#endif
12994char dlopen ();
12995int main (void)
12996{
12997return dlopen ();
12998 ;
12999 return 0;
13000}
13001_ACEOF
13002if ac_fn_c_try_link "$LINENO"; then :
13003  ac_cv_lib_dl_dlopen=yes
13004else
13005  ac_cv_lib_dl_dlopen=no
13006fi
13007rm -f core conftest.err conftest.$ac_objext \
13008    conftest$ac_exeext conftest.$ac_ext
13009LIBS=$ac_check_lib_save_LIBS
13010fi
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13012$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13013if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13014  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13015else
13016
13017    lt_cv_dlopen="dyld"
13018    lt_cv_dlopen_libs=
13019    lt_cv_dlopen_self=yes
13020
13021fi
13022
13023    ;;
13024
13025  *)
13026    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13027if test "x$ac_cv_func_shl_load" = xyes; then :
13028  lt_cv_dlopen="shl_load"
13029else
13030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13031$as_echo_n "checking for shl_load in -ldld... " >&6; }
13032if ${ac_cv_lib_dld_shl_load+:} false; then :
13033  $as_echo_n "(cached) " >&6
13034else
13035  ac_check_lib_save_LIBS=$LIBS
13036LIBS="-ldld  $LIBS"
13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h.  */
13039
13040
13041#ifdef __cplusplus
13042extern "C"
13043#endif
13044char shl_load ();
13045int main (void)
13046{
13047return shl_load ();
13048 ;
13049 return 0;
13050}
13051_ACEOF
13052if ac_fn_c_try_link "$LINENO"; then :
13053  ac_cv_lib_dld_shl_load=yes
13054else
13055  ac_cv_lib_dld_shl_load=no
13056fi
13057rm -f core conftest.err conftest.$ac_objext \
13058    conftest$ac_exeext conftest.$ac_ext
13059LIBS=$ac_check_lib_save_LIBS
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13062$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13063if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13064  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13065else
13066  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13067if test "x$ac_cv_func_dlopen" = xyes; then :
13068  lt_cv_dlopen="dlopen"
13069else
13070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13071$as_echo_n "checking for dlopen in -ldl... " >&6; }
13072if ${ac_cv_lib_dl_dlopen+:} false; then :
13073  $as_echo_n "(cached) " >&6
13074else
13075  ac_check_lib_save_LIBS=$LIBS
13076LIBS="-ldl  $LIBS"
13077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h.  */
13079
13080
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084char dlopen ();
13085int main (void)
13086{
13087return dlopen ();
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092if ac_fn_c_try_link "$LINENO"; then :
13093  ac_cv_lib_dl_dlopen=yes
13094else
13095  ac_cv_lib_dl_dlopen=no
13096fi
13097rm -f core conftest.err conftest.$ac_objext \
13098    conftest$ac_exeext conftest.$ac_ext
13099LIBS=$ac_check_lib_save_LIBS
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13102$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13103if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13104  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13105else
13106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13107$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13108if ${ac_cv_lib_svld_dlopen+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  ac_check_lib_save_LIBS=$LIBS
13112LIBS="-lsvld  $LIBS"
13113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115
13116
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char dlopen ();
13121int main (void)
13122{
13123return dlopen ();
13124 ;
13125 return 0;
13126}
13127_ACEOF
13128if ac_fn_c_try_link "$LINENO"; then :
13129  ac_cv_lib_svld_dlopen=yes
13130else
13131  ac_cv_lib_svld_dlopen=no
13132fi
13133rm -f core conftest.err conftest.$ac_objext \
13134    conftest$ac_exeext conftest.$ac_ext
13135LIBS=$ac_check_lib_save_LIBS
13136fi
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13138$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13139if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13140  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13141else
13142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13143$as_echo_n "checking for dld_link in -ldld... " >&6; }
13144if ${ac_cv_lib_dld_dld_link+:} false; then :
13145  $as_echo_n "(cached) " >&6
13146else
13147  ac_check_lib_save_LIBS=$LIBS
13148LIBS="-ldld  $LIBS"
13149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h.  */
13151
13152
13153#ifdef __cplusplus
13154extern "C"
13155#endif
13156char dld_link ();
13157int main (void)
13158{
13159return dld_link ();
13160 ;
13161 return 0;
13162}
13163_ACEOF
13164if ac_fn_c_try_link "$LINENO"; then :
13165  ac_cv_lib_dld_dld_link=yes
13166else
13167  ac_cv_lib_dld_dld_link=no
13168fi
13169rm -f core conftest.err conftest.$ac_objext \
13170    conftest$ac_exeext conftest.$ac_ext
13171LIBS=$ac_check_lib_save_LIBS
13172fi
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13174$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13175if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13176  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13177fi
13178
13179
13180fi
13181
13182
13183fi
13184
13185
13186fi
13187
13188
13189fi
13190
13191
13192fi
13193
13194    ;;
13195  esac
13196
13197  if test "x$lt_cv_dlopen" != xno; then
13198    enable_dlopen=yes
13199  else
13200    enable_dlopen=no
13201  fi
13202
13203  case $lt_cv_dlopen in
13204  dlopen)
13205    save_CPPFLAGS="$CPPFLAGS"
13206    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13207
13208    save_LDFLAGS="$LDFLAGS"
13209    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13210
13211    save_LIBS="$LIBS"
13212    LIBS="$lt_cv_dlopen_libs $LIBS"
13213
13214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13215$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13216if ${lt_cv_dlopen_self+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  	  if test "$cross_compiling" = yes; then :
13220  lt_cv_dlopen_self=cross
13221else
13222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13223  lt_status=$lt_dlunknown
13224  cat > conftest.$ac_ext <<_LT_EOF
13225#line $LINENO "configure"
13226#include "confdefs.h"
13227
13228#if HAVE_DLFCN_H
13229#include <dlfcn.h>
13230#endif
13231
13232#include <stdio.h>
13233
13234#ifdef RTLD_GLOBAL
13235#  define LT_DLGLOBAL		RTLD_GLOBAL
13236#else
13237#  ifdef DL_GLOBAL
13238#    define LT_DLGLOBAL		DL_GLOBAL
13239#  else
13240#    define LT_DLGLOBAL		0
13241#  endif
13242#endif
13243
13244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13245   find out it does not work in some platform. */
13246#ifndef LT_DLLAZY_OR_NOW
13247#  ifdef RTLD_LAZY
13248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13249#  else
13250#    ifdef DL_LAZY
13251#      define LT_DLLAZY_OR_NOW		DL_LAZY
13252#    else
13253#      ifdef RTLD_NOW
13254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13255#      else
13256#        ifdef DL_NOW
13257#          define LT_DLLAZY_OR_NOW	DL_NOW
13258#        else
13259#          define LT_DLLAZY_OR_NOW	0
13260#        endif
13261#      endif
13262#    endif
13263#  endif
13264#endif
13265
13266/* When -fvisbility=hidden is used, assume the code has been annotated
13267   correspondingly for the symbols needed.  */
13268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13269int fnord () __attribute__((visibility("default")));
13270#endif
13271
13272int fnord () { return 42; }
13273int main ()
13274{
13275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13276  int status = $lt_dlunknown;
13277
13278  if (self)
13279    {
13280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13281      else
13282        {
13283	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13284          else puts (dlerror ());
13285	}
13286      /* dlclose (self); */
13287    }
13288  else
13289    puts (dlerror ());
13290
13291  return status;
13292}
13293_LT_EOF
13294  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13295  (eval $ac_link) 2>&5
13296  ac_status=$?
13297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13298  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13299    (./conftest; exit; ) >&5 2>/dev/null
13300    lt_status=$?
13301    case x$lt_status in
13302      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13303      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13304      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13305    esac
13306  else :
13307    # compilation failed
13308    lt_cv_dlopen_self=no
13309  fi
13310fi
13311rm -fr conftest*
13312
13313
13314fi
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13316$as_echo "$lt_cv_dlopen_self" >&6; }
13317
13318    if test "x$lt_cv_dlopen_self" = xyes; then
13319      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13321$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13322if ${lt_cv_dlopen_self_static+:} false; then :
13323  $as_echo_n "(cached) " >&6
13324else
13325  	  if test "$cross_compiling" = yes; then :
13326  lt_cv_dlopen_self_static=cross
13327else
13328  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13329  lt_status=$lt_dlunknown
13330  cat > conftest.$ac_ext <<_LT_EOF
13331#line $LINENO "configure"
13332#include "confdefs.h"
13333
13334#if HAVE_DLFCN_H
13335#include <dlfcn.h>
13336#endif
13337
13338#include <stdio.h>
13339
13340#ifdef RTLD_GLOBAL
13341#  define LT_DLGLOBAL		RTLD_GLOBAL
13342#else
13343#  ifdef DL_GLOBAL
13344#    define LT_DLGLOBAL		DL_GLOBAL
13345#  else
13346#    define LT_DLGLOBAL		0
13347#  endif
13348#endif
13349
13350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13351   find out it does not work in some platform. */
13352#ifndef LT_DLLAZY_OR_NOW
13353#  ifdef RTLD_LAZY
13354#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13355#  else
13356#    ifdef DL_LAZY
13357#      define LT_DLLAZY_OR_NOW		DL_LAZY
13358#    else
13359#      ifdef RTLD_NOW
13360#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13361#      else
13362#        ifdef DL_NOW
13363#          define LT_DLLAZY_OR_NOW	DL_NOW
13364#        else
13365#          define LT_DLLAZY_OR_NOW	0
13366#        endif
13367#      endif
13368#    endif
13369#  endif
13370#endif
13371
13372/* When -fvisbility=hidden is used, assume the code has been annotated
13373   correspondingly for the symbols needed.  */
13374#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13375int fnord () __attribute__((visibility("default")));
13376#endif
13377
13378int fnord () { return 42; }
13379int main ()
13380{
13381  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13382  int status = $lt_dlunknown;
13383
13384  if (self)
13385    {
13386      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13387      else
13388        {
13389	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13390          else puts (dlerror ());
13391	}
13392      /* dlclose (self); */
13393    }
13394  else
13395    puts (dlerror ());
13396
13397  return status;
13398}
13399_LT_EOF
13400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13401  (eval $ac_link) 2>&5
13402  ac_status=$?
13403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13404  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13405    (./conftest; exit; ) >&5 2>/dev/null
13406    lt_status=$?
13407    case x$lt_status in
13408      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13409      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13410      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13411    esac
13412  else :
13413    # compilation failed
13414    lt_cv_dlopen_self_static=no
13415  fi
13416fi
13417rm -fr conftest*
13418
13419
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13422$as_echo "$lt_cv_dlopen_self_static" >&6; }
13423    fi
13424
13425    CPPFLAGS="$save_CPPFLAGS"
13426    LDFLAGS="$save_LDFLAGS"
13427    LIBS="$save_LIBS"
13428    ;;
13429  esac
13430
13431  case $lt_cv_dlopen_self in
13432  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13433  *) enable_dlopen_self=unknown ;;
13434  esac
13435
13436  case $lt_cv_dlopen_self_static in
13437  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13438  *) enable_dlopen_self_static=unknown ;;
13439  esac
13440fi
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458striplib=
13459old_striplib=
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13461$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13462if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13463  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13464  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13466$as_echo "yes" >&6; }
13467else
13468# FIXME - insert some real tests, host_os isn't really good enough
13469  case $host_os in
13470  darwin*)
13471    if test -n "$STRIP" ; then
13472      striplib="$STRIP -x"
13473      old_striplib="$STRIP -S"
13474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13475$as_echo "yes" >&6; }
13476    else
13477      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478$as_echo "no" >&6; }
13479    fi
13480    ;;
13481  *)
13482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
13484    ;;
13485  esac
13486fi
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499  # Report which library types will actually be built
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13501$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13503$as_echo "$can_build_shared" >&6; }
13504
13505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13506$as_echo_n "checking whether to build shared libraries... " >&6; }
13507  test "$can_build_shared" = "no" && enable_shared=no
13508
13509  # On AIX, shared libraries and static libraries use the same namespace, and
13510  # are all built from PIC.
13511  case $host_os in
13512  aix3*)
13513    test "$enable_shared" = yes && enable_static=no
13514    if test -n "$RANLIB"; then
13515      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13516      postinstall_cmds='$RANLIB $lib'
13517    fi
13518    ;;
13519
13520  aix[4-9]*)
13521    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13522      test "$enable_shared" = yes && enable_static=no
13523    fi
13524    ;;
13525  esac
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13527$as_echo "$enable_shared" >&6; }
13528
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13530$as_echo_n "checking whether to build static libraries... " >&6; }
13531  # Make sure either enable_shared or enable_static is yes.
13532  test "$enable_shared" = yes || enable_static=yes
13533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13534$as_echo "$enable_static" >&6; }
13535
13536
13537
13538
13539fi
13540ac_ext=c
13541ac_cpp='$CPP $CPPFLAGS'
13542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544ac_compiler_gnu=$ac_cv_c_compiler_gnu
13545
13546CC="$lt_save_CC"
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560        ac_config_commands="$ac_config_commands libtool"
13561
13562
13563
13564
13565# Only expand once:
13566
13567
13568
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CARES_BUILDING_LIBRARY" >&5
13570$as_echo_n "checking if we need CARES_BUILDING_LIBRARY... " >&6; }
13571case $host in
13572  *-*-mingw*)
13573
13574$as_echo "#define CARES_BUILDING_LIBRARY 1" >>confdefs.h
13575
13576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577$as_echo "yes" >&6; }
13578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CARES_STATICLIB" >&5
13579$as_echo_n "checking if we need CARES_STATICLIB... " >&6; }
13580    if test "X$enable_shared" = "Xno"
13581    then
13582
13583$as_echo "#define CARES_STATICLIB 1" >>confdefs.h
13584
13585      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13586$as_echo "yes" >&6; }
13587    else
13588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590    fi
13591    ;;
13592  *)
13593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
13595    ;;
13596esac
13597
13598
13599
13600    #
13601  compiler_id="unknown"
13602  compiler_num="0"
13603  #
13604  flags_dbg_all="unknown"
13605  flags_dbg_yes="unknown"
13606  flags_dbg_off="unknown"
13607  flags_opt_all="unknown"
13608  flags_opt_yes="unknown"
13609  flags_opt_off="unknown"
13610  #
13611  flags_prefer_cppflags="no"
13612  #
13613
13614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
13615$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
13616
13617      if test -z "$SED"; then
13618    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13619  fi
13620  if test -z "$GREP"; then
13621    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13622  fi
13623
13624  tmp_exp=""
13625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627
13628
13629#ifdef __DECC
13630CURL_DEF_TOKEN __DECC
13631#endif
13632
13633
13634_ACEOF
13635if ac_fn_c_try_cpp "$LINENO"; then :
13636
13637    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13638      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13639      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13640      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13641    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
13642      tmp_exp=""
13643    fi
13644
13645fi
13646rm -f conftest.err conftest.i conftest.$ac_ext
13647  if test -z "$tmp_exp"; then
13648    curl_cv_have_def___DECC=no
13649
13650  else
13651    curl_cv_have_def___DECC=yes
13652    curl_cv_def___DECC=$tmp_exp
13653
13654  fi
13655
13656
13657      if test -z "$SED"; then
13658    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13659  fi
13660  if test -z "$GREP"; then
13661    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13662  fi
13663
13664  tmp_exp=""
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667
13668
13669#ifdef __DECC_VER
13670CURL_DEF_TOKEN __DECC_VER
13671#endif
13672
13673
13674_ACEOF
13675if ac_fn_c_try_cpp "$LINENO"; then :
13676
13677    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13678      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13679      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13680      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13681    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
13682      tmp_exp=""
13683    fi
13684
13685fi
13686rm -f conftest.err conftest.i conftest.$ac_ext
13687  if test -z "$tmp_exp"; then
13688    curl_cv_have_def___DECC_VER=no
13689
13690  else
13691    curl_cv_have_def___DECC_VER=yes
13692    curl_cv_def___DECC_VER=$tmp_exp
13693
13694  fi
13695
13696  if test "$curl_cv_have_def___DECC" = "yes" &&
13697    test "$curl_cv_have_def___DECC_VER" = "yes"; then
13698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13699$as_echo "yes" >&6; }
13700    compiler_id="DEC_C"
13701    flags_dbg_all="-g -g0 -g1 -g2 -g3"
13702    flags_dbg_yes="-g2"
13703    flags_dbg_off="-g0"
13704    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
13705    flags_opt_yes="-O1"
13706    flags_opt_off="-O0"
13707  else
13708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709$as_echo "no" >&6; }
13710  fi
13711
13712
13713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
13714$as_echo_n "checking if compiler is HP-UX C... " >&6; }
13715
13716      if test -z "$SED"; then
13717    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13718  fi
13719  if test -z "$GREP"; then
13720    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13721  fi
13722
13723  tmp_exp=""
13724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726
13727
13728#ifdef __HP_cc
13729CURL_DEF_TOKEN __HP_cc
13730#endif
13731
13732
13733_ACEOF
13734if ac_fn_c_try_cpp "$LINENO"; then :
13735
13736    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13737      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13738      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13739      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13740    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
13741      tmp_exp=""
13742    fi
13743
13744fi
13745rm -f conftest.err conftest.i conftest.$ac_ext
13746  if test -z "$tmp_exp"; then
13747    curl_cv_have_def___HP_cc=no
13748
13749  else
13750    curl_cv_have_def___HP_cc=yes
13751    curl_cv_def___HP_cc=$tmp_exp
13752
13753  fi
13754
13755  if test "$curl_cv_have_def___HP_cc" = "yes"; then
13756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757$as_echo "yes" >&6; }
13758    compiler_id="HP_UX_C"
13759    flags_dbg_all="-g -s"
13760    flags_dbg_yes="-g"
13761    flags_dbg_off="-s"
13762    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
13763    flags_opt_yes="+O2"
13764    flags_opt_off="+O0"
13765  else
13766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768  fi
13769
13770
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
13772$as_echo_n "checking if compiler is IBM C... " >&6; }
13773
13774      if test -z "$SED"; then
13775    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13776  fi
13777  if test -z "$GREP"; then
13778    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13779  fi
13780
13781  tmp_exp=""
13782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784
13785
13786#ifdef __IBMC__
13787CURL_DEF_TOKEN __IBMC__
13788#endif
13789
13790
13791_ACEOF
13792if ac_fn_c_try_cpp "$LINENO"; then :
13793
13794    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13795      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13796      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13797      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13798    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
13799      tmp_exp=""
13800    fi
13801
13802fi
13803rm -f conftest.err conftest.i conftest.$ac_ext
13804  if test -z "$tmp_exp"; then
13805    curl_cv_have_def___IBMC__=no
13806
13807  else
13808    curl_cv_have_def___IBMC__=yes
13809    curl_cv_def___IBMC__=$tmp_exp
13810
13811  fi
13812
13813  if test "$curl_cv_have_def___IBMC__" = "yes"; then
13814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13815$as_echo "yes" >&6; }
13816    compiler_id="IBM_C"
13817    flags_dbg_all="-g -g0 -g1 -g2 -g3"
13818    flags_dbg_yes="-g"
13819    flags_dbg_off=""
13820    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
13821    flags_opt_all="$flags_opt_all -qnooptimize"
13822    flags_opt_all="$flags_opt_all -qoptimize=0"
13823    flags_opt_all="$flags_opt_all -qoptimize=1"
13824    flags_opt_all="$flags_opt_all -qoptimize=2"
13825    flags_opt_all="$flags_opt_all -qoptimize=3"
13826    flags_opt_all="$flags_opt_all -qoptimize=4"
13827    flags_opt_all="$flags_opt_all -qoptimize=5"
13828    flags_opt_yes="-O2"
13829    flags_opt_off="-qnooptimize"
13830    flags_prefer_cppflags="yes"
13831  else
13832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834  fi
13835
13836
13837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
13838$as_echo_n "checking if compiler is Intel C... " >&6; }
13839
13840      if test -z "$SED"; then
13841    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13842  fi
13843  if test -z "$GREP"; then
13844    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13845  fi
13846
13847  tmp_exp=""
13848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849/* end confdefs.h.  */
13850
13851
13852#ifdef __INTEL_COMPILER
13853CURL_DEF_TOKEN __INTEL_COMPILER
13854#endif
13855
13856
13857_ACEOF
13858if ac_fn_c_try_cpp "$LINENO"; then :
13859
13860    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13861      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13862      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13863      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13864    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
13865      tmp_exp=""
13866    fi
13867
13868fi
13869rm -f conftest.err conftest.i conftest.$ac_ext
13870  if test -z "$tmp_exp"; then
13871    curl_cv_have_def___INTEL_COMPILER=no
13872
13873  else
13874    curl_cv_have_def___INTEL_COMPILER=yes
13875    curl_cv_def___INTEL_COMPILER=$tmp_exp
13876
13877  fi
13878
13879  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
13880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13881$as_echo "yes" >&6; }
13882    compiler_num="$curl_cv_def___INTEL_COMPILER"
13883
13884      if test -z "$SED"; then
13885    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13886  fi
13887  if test -z "$GREP"; then
13888    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13889  fi
13890
13891  tmp_exp=""
13892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893/* end confdefs.h.  */
13894
13895
13896#ifdef __unix__
13897CURL_DEF_TOKEN __unix__
13898#endif
13899
13900
13901_ACEOF
13902if ac_fn_c_try_cpp "$LINENO"; then :
13903
13904    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13905      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13906      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13907      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13908    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
13909      tmp_exp=""
13910    fi
13911
13912fi
13913rm -f conftest.err conftest.i conftest.$ac_ext
13914  if test -z "$tmp_exp"; then
13915    curl_cv_have_def___unix__=no
13916
13917  else
13918    curl_cv_have_def___unix__=yes
13919    curl_cv_def___unix__=$tmp_exp
13920
13921  fi
13922
13923    if test "$curl_cv_have_def___unix__" = "yes"; then
13924      compiler_id="INTEL_UNIX_C"
13925      flags_dbg_all="-g -g0"
13926      flags_dbg_yes="-g"
13927      flags_dbg_off="-g0"
13928      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
13929      flags_opt_yes="-O2"
13930      flags_opt_off="-O0"
13931    else
13932      compiler_id="INTEL_WINDOWS_C"
13933      flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
13934      flags_dbg_all="$flags_dbg_all /debug"
13935      flags_dbg_all="$flags_dbg_all /debug:none"
13936      flags_dbg_all="$flags_dbg_all /debug:minimal"
13937      flags_dbg_all="$flags_dbg_all /debug:partial"
13938      flags_dbg_all="$flags_dbg_all /debug:full"
13939      flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
13940      flags_dbg_all="$flags_dbg_all /debug:extended"
13941      flags_dbg_yes="/Zi /Oy-"
13942      flags_dbg_off="/debug:none /Oy-"
13943      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
13944      flags_opt_yes="/O2"
13945      flags_opt_off="/Od"
13946    fi
13947  else
13948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949$as_echo "no" >&6; }
13950  fi
13951
13952
13953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
13954$as_echo_n "checking if compiler is clang... " >&6; }
13955
13956      if test -z "$SED"; then
13957    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13958  fi
13959  if test -z "$GREP"; then
13960    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13961  fi
13962
13963  tmp_exp=""
13964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966
13967
13968#ifdef __clang__
13969CURL_DEF_TOKEN __clang__
13970#endif
13971
13972
13973_ACEOF
13974if ac_fn_c_try_cpp "$LINENO"; then :
13975
13976    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13977      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13978      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13979      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13980    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
13981      tmp_exp=""
13982    fi
13983
13984fi
13985rm -f conftest.err conftest.i conftest.$ac_ext
13986  if test -z "$tmp_exp"; then
13987    curl_cv_have_def___clang__=no
13988
13989  else
13990    curl_cv_have_def___clang__=yes
13991    curl_cv_def___clang__=$tmp_exp
13992
13993  fi
13994
13995  if test "$curl_cv_have_def___clang__" = "yes"; then
13996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13997$as_echo "yes" >&6; }
13998    compiler_id="CLANG"
13999    clangver=`$CC -dumpversion`
14000    clangvhi=`echo $clangver | cut -d . -f1`
14001    clangvlo=`echo $clangver | cut -d . -f2`
14002    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14003    flags_dbg_all="-g -g0 -g1 -g2 -g3"
14004    flags_dbg_all="$flags_dbg_all -ggdb"
14005    flags_dbg_all="$flags_dbg_all -gstabs"
14006    flags_dbg_all="$flags_dbg_all -gstabs+"
14007    flags_dbg_all="$flags_dbg_all -gcoff"
14008    flags_dbg_all="$flags_dbg_all -gxcoff"
14009    flags_dbg_all="$flags_dbg_all -gdwarf-2"
14010    flags_dbg_all="$flags_dbg_all -gvms"
14011    flags_dbg_yes="-g"
14012    flags_dbg_off="-g0"
14013    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14014    flags_opt_yes="-Os"
14015    flags_opt_off="-O0"
14016  else
14017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019  fi
14020
14021
14022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14023$as_echo_n "checking if compiler is GNU C... " >&6; }
14024
14025      if test -z "$SED"; then
14026    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14027  fi
14028  if test -z "$GREP"; then
14029    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14030  fi
14031
14032  tmp_exp=""
14033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034/* end confdefs.h.  */
14035
14036
14037#ifdef __GNUC__
14038CURL_DEF_TOKEN __GNUC__
14039#endif
14040
14041
14042_ACEOF
14043if ac_fn_c_try_cpp "$LINENO"; then :
14044
14045    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14046      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14047      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14048      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14049    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14050      tmp_exp=""
14051    fi
14052
14053fi
14054rm -f conftest.err conftest.i conftest.$ac_ext
14055  if test -z "$tmp_exp"; then
14056    curl_cv_have_def___GNUC__=no
14057
14058  else
14059    curl_cv_have_def___GNUC__=yes
14060    curl_cv_def___GNUC__=$tmp_exp
14061
14062  fi
14063
14064  if test "$curl_cv_have_def___GNUC__" = "yes" &&
14065    test "$compiler_id" = "unknown"; then
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14067$as_echo "yes" >&6; }
14068    compiler_id="GNU_C"
14069    gccver=`$CC -dumpversion`
14070    gccvhi=`echo $gccver | cut -d . -f1`
14071    gccvlo=`echo $gccver | cut -d . -f2`
14072    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
14073    flags_dbg_all="-g -g0 -g1 -g2 -g3"
14074    flags_dbg_all="$flags_dbg_all -ggdb"
14075    flags_dbg_all="$flags_dbg_all -gstabs"
14076    flags_dbg_all="$flags_dbg_all -gstabs+"
14077    flags_dbg_all="$flags_dbg_all -gcoff"
14078    flags_dbg_all="$flags_dbg_all -gxcoff"
14079    flags_dbg_all="$flags_dbg_all -gdwarf-2"
14080    flags_dbg_all="$flags_dbg_all -gvms"
14081    flags_dbg_yes="-g"
14082    flags_dbg_off="-g0"
14083    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14084    flags_opt_yes="-O2"
14085    flags_opt_off="-O0"
14086  else
14087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088$as_echo "no" >&6; }
14089  fi
14090
14091
14092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
14093$as_echo_n "checking if compiler is LCC... " >&6; }
14094
14095      if test -z "$SED"; then
14096    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14097  fi
14098  if test -z "$GREP"; then
14099    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14100  fi
14101
14102  tmp_exp=""
14103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104/* end confdefs.h.  */
14105
14106
14107#ifdef __LCC__
14108CURL_DEF_TOKEN __LCC__
14109#endif
14110
14111
14112_ACEOF
14113if ac_fn_c_try_cpp "$LINENO"; then :
14114
14115    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14116      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14117      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14118      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14119    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
14120      tmp_exp=""
14121    fi
14122
14123fi
14124rm -f conftest.err conftest.i conftest.$ac_ext
14125  if test -z "$tmp_exp"; then
14126    curl_cv_have_def___LCC__=no
14127
14128  else
14129    curl_cv_have_def___LCC__=yes
14130    curl_cv_def___LCC__=$tmp_exp
14131
14132  fi
14133
14134  if test "$curl_cv_have_def___LCC__" = "yes"; then
14135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14136$as_echo "yes" >&6; }
14137    compiler_id="LCC"
14138    flags_dbg_all="-g"
14139    flags_dbg_yes="-g"
14140    flags_dbg_off=""
14141    flags_opt_all=""
14142    flags_opt_yes=""
14143    flags_opt_off=""
14144  else
14145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
14147  fi
14148
14149
14150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
14151$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
14152
14153      if test -z "$SED"; then
14154    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14155  fi
14156  if test -z "$GREP"; then
14157    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14158  fi
14159
14160  tmp_exp=""
14161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h.  */
14163
14164
14165#ifdef __GNUC__
14166CURL_DEF_TOKEN __GNUC__
14167#endif
14168
14169
14170_ACEOF
14171if ac_fn_c_try_cpp "$LINENO"; then :
14172
14173    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14174      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14175      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14176      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14177    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14178      tmp_exp=""
14179    fi
14180
14181fi
14182rm -f conftest.err conftest.i conftest.$ac_ext
14183  if test -z "$tmp_exp"; then
14184    curl_cv_have_def___GNUC__=no
14185
14186  else
14187    curl_cv_have_def___GNUC__=yes
14188    curl_cv_def___GNUC__=$tmp_exp
14189
14190  fi
14191
14192
14193      if test -z "$SED"; then
14194    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14195  fi
14196  if test -z "$GREP"; then
14197    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14198  fi
14199
14200  tmp_exp=""
14201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202/* end confdefs.h.  */
14203
14204
14205#ifdef _COMPILER_VERSION
14206CURL_DEF_TOKEN _COMPILER_VERSION
14207#endif
14208
14209
14210_ACEOF
14211if ac_fn_c_try_cpp "$LINENO"; then :
14212
14213    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14214      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14215      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14216      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14217    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
14218      tmp_exp=""
14219    fi
14220
14221fi
14222rm -f conftest.err conftest.i conftest.$ac_ext
14223  if test -z "$tmp_exp"; then
14224    curl_cv_have_def__COMPILER_VERSION=no
14225
14226  else
14227    curl_cv_have_def__COMPILER_VERSION=yes
14228    curl_cv_def__COMPILER_VERSION=$tmp_exp
14229
14230  fi
14231
14232
14233      if test -z "$SED"; then
14234    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14235  fi
14236  if test -z "$GREP"; then
14237    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14238  fi
14239
14240  tmp_exp=""
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243
14244
14245#ifdef _SGI_COMPILER_VERSION
14246CURL_DEF_TOKEN _SGI_COMPILER_VERSION
14247#endif
14248
14249
14250_ACEOF
14251if ac_fn_c_try_cpp "$LINENO"; then :
14252
14253    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14254      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14255      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14256      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14257    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
14258      tmp_exp=""
14259    fi
14260
14261fi
14262rm -f conftest.err conftest.i conftest.$ac_ext
14263  if test -z "$tmp_exp"; then
14264    curl_cv_have_def__SGI_COMPILER_VERSION=no
14265
14266  else
14267    curl_cv_have_def__SGI_COMPILER_VERSION=yes
14268    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
14269
14270  fi
14271
14272  if test "$curl_cv_have_def___GNUC__" = "no" &&
14273    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
14274     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
14275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14276$as_echo "yes" >&6; }
14277    compiler_id="SGI_MIPSPRO_C"
14278    flags_dbg_all="-g -g0 -g1 -g2 -g3"
14279    flags_dbg_yes="-g"
14280    flags_dbg_off="-g0"
14281    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14282    flags_opt_yes="-O2"
14283    flags_opt_off="-O0"
14284  else
14285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286$as_echo "no" >&6; }
14287  fi
14288
14289
14290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
14291$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
14292
14293      if test -z "$SED"; then
14294    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14295  fi
14296  if test -z "$GREP"; then
14297    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14298  fi
14299
14300  tmp_exp=""
14301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303
14304
14305#ifdef __GNUC__
14306CURL_DEF_TOKEN __GNUC__
14307#endif
14308
14309
14310_ACEOF
14311if ac_fn_c_try_cpp "$LINENO"; then :
14312
14313    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14314      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14315      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14316      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14317    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14318      tmp_exp=""
14319    fi
14320
14321fi
14322rm -f conftest.err conftest.i conftest.$ac_ext
14323  if test -z "$tmp_exp"; then
14324    curl_cv_have_def___GNUC__=no
14325
14326  else
14327    curl_cv_have_def___GNUC__=yes
14328    curl_cv_def___GNUC__=$tmp_exp
14329
14330  fi
14331
14332
14333      if test -z "$SED"; then
14334    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14335  fi
14336  if test -z "$GREP"; then
14337    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14338  fi
14339
14340  tmp_exp=""
14341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342/* end confdefs.h.  */
14343
14344
14345#ifdef __sgi
14346CURL_DEF_TOKEN __sgi
14347#endif
14348
14349
14350_ACEOF
14351if ac_fn_c_try_cpp "$LINENO"; then :
14352
14353    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14354      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14355      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14356      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14357    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
14358      tmp_exp=""
14359    fi
14360
14361fi
14362rm -f conftest.err conftest.i conftest.$ac_ext
14363  if test -z "$tmp_exp"; then
14364    curl_cv_have_def___sgi=no
14365
14366  else
14367    curl_cv_have_def___sgi=yes
14368    curl_cv_def___sgi=$tmp_exp
14369
14370  fi
14371
14372  if test "$curl_cv_have_def___GNUC__" = "no" &&
14373    test "$curl_cv_have_def___sgi" = "yes" &&
14374    test "$compiler_id" = "unknown"; then
14375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14376$as_echo "yes" >&6; }
14377    compiler_id="SGI_MIPS_C"
14378    flags_dbg_all="-g -g0 -g1 -g2 -g3"
14379    flags_dbg_yes="-g"
14380    flags_dbg_off="-g0"
14381    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14382    flags_opt_yes="-O2"
14383    flags_opt_off="-O0"
14384  else
14385    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386$as_echo "no" >&6; }
14387  fi
14388
14389
14390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
14391$as_echo_n "checking if compiler is SunPro C... " >&6; }
14392
14393      if test -z "$SED"; then
14394    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14395  fi
14396  if test -z "$GREP"; then
14397    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14398  fi
14399
14400  tmp_exp=""
14401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402/* end confdefs.h.  */
14403
14404
14405#ifdef __SUNPRO_C
14406CURL_DEF_TOKEN __SUNPRO_C
14407#endif
14408
14409
14410_ACEOF
14411if ac_fn_c_try_cpp "$LINENO"; then :
14412
14413    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14414      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14415      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14416      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14417    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
14418      tmp_exp=""
14419    fi
14420
14421fi
14422rm -f conftest.err conftest.i conftest.$ac_ext
14423  if test -z "$tmp_exp"; then
14424    curl_cv_have_def___SUNPRO_C=no
14425
14426  else
14427    curl_cv_have_def___SUNPRO_C=yes
14428    curl_cv_def___SUNPRO_C=$tmp_exp
14429
14430  fi
14431
14432  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
14433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14434$as_echo "yes" >&6; }
14435    compiler_id="SUNPRO_C"
14436    flags_dbg_all="-g -s"
14437    flags_dbg_yes="-g"
14438    flags_dbg_off="-s"
14439    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
14440    flags_opt_yes="-xO2"
14441    flags_opt_off=""
14442  else
14443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444$as_echo "no" >&6; }
14445  fi
14446
14447
14448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
14449$as_echo_n "checking if compiler is Tiny C... " >&6; }
14450
14451      if test -z "$SED"; then
14452    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14453  fi
14454  if test -z "$GREP"; then
14455    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14456  fi
14457
14458  tmp_exp=""
14459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h.  */
14461
14462
14463#ifdef __TINYC__
14464CURL_DEF_TOKEN __TINYC__
14465#endif
14466
14467
14468_ACEOF
14469if ac_fn_c_try_cpp "$LINENO"; then :
14470
14471    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14472      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14473      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14474      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14475    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
14476      tmp_exp=""
14477    fi
14478
14479fi
14480rm -f conftest.err conftest.i conftest.$ac_ext
14481  if test -z "$tmp_exp"; then
14482    curl_cv_have_def___TINYC__=no
14483
14484  else
14485    curl_cv_have_def___TINYC__=yes
14486    curl_cv_def___TINYC__=$tmp_exp
14487
14488  fi
14489
14490  if test "$curl_cv_have_def___TINYC__" = "yes"; then
14491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14492$as_echo "yes" >&6; }
14493    compiler_id="TINY_C"
14494    flags_dbg_all="-g -b"
14495    flags_dbg_yes="-g"
14496    flags_dbg_off=""
14497    flags_opt_all=""
14498    flags_opt_yes=""
14499    flags_opt_off=""
14500  else
14501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502$as_echo "no" >&6; }
14503  fi
14504
14505
14506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
14507$as_echo_n "checking if compiler is Watcom C... " >&6; }
14508
14509      if test -z "$SED"; then
14510    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14511  fi
14512  if test -z "$GREP"; then
14513    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14514  fi
14515
14516  tmp_exp=""
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518/* end confdefs.h.  */
14519
14520
14521#ifdef __WATCOMC__
14522CURL_DEF_TOKEN __WATCOMC__
14523#endif
14524
14525
14526_ACEOF
14527if ac_fn_c_try_cpp "$LINENO"; then :
14528
14529    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14530      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14531      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14532      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14533    if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
14534      tmp_exp=""
14535    fi
14536
14537fi
14538rm -f conftest.err conftest.i conftest.$ac_ext
14539  if test -z "$tmp_exp"; then
14540    curl_cv_have_def___WATCOMC__=no
14541
14542  else
14543    curl_cv_have_def___WATCOMC__=yes
14544    curl_cv_def___WATCOMC__=$tmp_exp
14545
14546  fi
14547
14548  if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
14549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550$as_echo "yes" >&6; }
14551
14552      if test -z "$SED"; then
14553    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14554  fi
14555  if test -z "$GREP"; then
14556    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14557  fi
14558
14559  tmp_exp=""
14560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561/* end confdefs.h.  */
14562
14563
14564#ifdef __UNIX__
14565CURL_DEF_TOKEN __UNIX__
14566#endif
14567
14568
14569_ACEOF
14570if ac_fn_c_try_cpp "$LINENO"; then :
14571
14572    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14573      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14574      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14575      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14576    if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
14577      tmp_exp=""
14578    fi
14579
14580fi
14581rm -f conftest.err conftest.i conftest.$ac_ext
14582  if test -z "$tmp_exp"; then
14583    curl_cv_have_def___UNIX__=no
14584
14585  else
14586    curl_cv_have_def___UNIX__=yes
14587    curl_cv_def___UNIX__=$tmp_exp
14588
14589  fi
14590
14591    if test "$curl_cv_have_def___UNIX__" = "yes"; then
14592      compiler_id="WATCOM_UNIX_C"
14593      flags_dbg_all="-g1 -g1+ -g2 -g3"
14594      flags_dbg_yes="-g2"
14595      flags_dbg_off=""
14596      flags_opt_all="-O0 -O1 -O2 -O3"
14597      flags_opt_yes="-O2"
14598      flags_opt_off="-O0"
14599    else
14600      compiler_id="WATCOM_WINDOWS_C"
14601      flags_dbg_all=""
14602      flags_dbg_yes=""
14603      flags_dbg_off=""
14604      flags_opt_all=""
14605      flags_opt_yes=""
14606      flags_opt_off=""
14607    fi
14608  else
14609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610$as_echo "no" >&6; }
14611  fi
14612
14613  #
14614  if test "$compiler_id" = "unknown"; then
14615  cat <<_EOF 1>&2
14616***
14617*** Warning: This configure script does not have information about the
14618*** compiler you are using, relative to the flags required to enable or
14619*** disable generation of debug info, optimization options or warnings.
14620***
14621*** Whatever settings are present in CFLAGS will be used for this run.
14622***
14623*** If you wish to help the c-ares project to better support your compiler
14624*** you can report this and the required info on the c-ares development
14625*** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
14626***
14627_EOF
14628  fi
14629
14630
14631squeeze() {
14632  _sqz_result=""
14633  eval _sqz_input=\$$1
14634  for _sqz_token in $_sqz_input; do
14635    if test -z "$_sqz_result"; then
14636      _sqz_result="$_sqz_token"
14637    else
14638      _sqz_result="$_sqz_result $_sqz_token"
14639    fi
14640  done
14641  eval $1=\$_sqz_result
14642  return 0
14643}
14644
14645
14646      #
14647  if test "$compiler_id" != "unknown"; then
14648    #
14649    if test "$compiler_id" = "GNU_C" ||
14650      test "$compiler_id" = "CLANG"; then
14651
14652      if test "$compiler_id" = "GNU_C" ||
14653    test "$compiler_id" = "CLANG"; then
14654    tmp_has_include="no"
14655    tmp_chg_FLAGS="$CFLAGS"
14656    for word1 in $tmp_chg_FLAGS; do
14657      case "$word1" in
14658        -I*)
14659          tmp_has_include="yes"
14660          ;;
14661      esac
14662    done
14663    if test "$tmp_has_include" = "yes"; then
14664      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14665      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14666      CFLAGS="$tmp_chg_FLAGS"
14667      squeeze CFLAGS
14668    fi
14669    tmp_has_include="no"
14670    tmp_chg_FLAGS="$CPPFLAGS"
14671    for word1 in $tmp_chg_FLAGS; do
14672      case "$word1" in
14673        -I*)
14674          tmp_has_include="yes"
14675          ;;
14676      esac
14677    done
14678    if test "$tmp_has_include" = "yes"; then
14679      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14680      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14681      CPPFLAGS="$tmp_chg_FLAGS"
14682      squeeze CPPFLAGS
14683    fi
14684  fi
14685
14686    fi
14687    #
14688    tmp_save_CPPFLAGS="$CPPFLAGS"
14689    tmp_save_CFLAGS="$CFLAGS"
14690    tmp_CPPFLAGS=""
14691    tmp_CFLAGS=""
14692    #
14693    case "$compiler_id" in
14694        #
14695      CLANG)
14696        #
14697                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
14698        ;;
14699        #
14700      DEC_C)
14701        #
14702                tmp_CFLAGS="$tmp_CFLAGS -std1"
14703                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
14704                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
14705                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
14706        ;;
14707        #
14708      GNU_C)
14709        #
14710                tmp_CFLAGS="$tmp_CFLAGS"
14711        ;;
14712        #
14713      HP_UX_C)
14714        #
14715                tmp_CFLAGS="$tmp_CFLAGS -z"
14716                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
14717        ;;
14718        #
14719      IBM_C)
14720        #
14721                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
14722                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
14723                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
14724        ;;
14725        #
14726      INTEL_UNIX_C)
14727        #
14728                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
14729                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
14730                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
14731        ;;
14732        #
14733      INTEL_WINDOWS_C)
14734        #
14735                tmp_CFLAGS="$tmp_CFLAGS"
14736        ;;
14737        #
14738      LCC)
14739        #
14740                tmp_CFLAGS="$tmp_CFLAGS -n"
14741        ;;
14742        #
14743      SGI_MIPS_C)
14744        #
14745                tmp_CFLAGS="$tmp_CFLAGS"
14746        ;;
14747        #
14748      SGI_MIPSPRO_C)
14749        #
14750                tmp_CFLAGS="$tmp_CFLAGS"
14751        ;;
14752        #
14753      SUNPRO_C)
14754        #
14755                tmp_CFLAGS="$tmp_CFLAGS"
14756        ;;
14757        #
14758      TINY_C)
14759        #
14760                tmp_CFLAGS="$tmp_CFLAGS"
14761        ;;
14762        #
14763      WATCOM_UNIX_C)
14764        #
14765                tmp_CFLAGS="$tmp_CFLAGS"
14766        ;;
14767        #
14768      WATCOM_WINDOWS_C)
14769        #
14770                tmp_CFLAGS="$tmp_CFLAGS"
14771        ;;
14772        #
14773    esac
14774    #
14775    squeeze tmp_CPPFLAGS
14776    squeeze tmp_CFLAGS
14777    #
14778    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
14779      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
14780$as_echo_n "checking if compiler accepts some basic options... " >&6; }
14781      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
14782      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
14783      squeeze CPPFLAGS
14784      squeeze CFLAGS
14785
14786    tmp_compiler_works="unknown"
14787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788/* end confdefs.h.  */
14789
14790
14791
14792int main (void)
14793{
14794
14795      int i = 1;
14796      return i;
14797
14798 ;
14799 return 0;
14800}
14801
14802_ACEOF
14803if ac_fn_c_try_compile "$LINENO"; then :
14804
14805    tmp_compiler_works="yes"
14806
14807else
14808
14809    tmp_compiler_works="no"
14810    echo " " >&6
14811    sed 's/^/cc-fail: /' conftest.err >&6
14812    echo " " >&6
14813
14814fi
14815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816    if test "$tmp_compiler_works" = "yes"; then
14817    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819
14820
14821
14822int main (void)
14823{
14824
14825        int i = 1;
14826        return i;
14827
14828 ;
14829 return 0;
14830}
14831
14832_ACEOF
14833if ac_fn_c_try_link "$LINENO"; then :
14834
14835      tmp_compiler_works="yes"
14836
14837else
14838
14839      tmp_compiler_works="no"
14840      echo " " >&6
14841      sed 's/^/link-fail: /' conftest.err >&6
14842      echo " " >&6
14843
14844fi
14845rm -f core conftest.err conftest.$ac_objext \
14846    conftest$ac_exeext conftest.$ac_ext
14847  fi
14848    if test "x$cross_compiling" != "xyes" &&
14849    test "$tmp_compiler_works" = "yes"; then
14850    if test "$cross_compiling" = yes; then :
14851  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14853as_fn_error $? "cannot run test program while cross compiling
14854See \`config.log' for more details" "$LINENO" 5; }
14855else
14856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857/* end confdefs.h.  */
14858
14859
14860#       ifdef __STDC__
14861#         include <stdlib.h>
14862#       endif
14863
14864int main (void)
14865{
14866
14867        int i = 0;
14868        exit(i);
14869
14870 ;
14871 return 0;
14872}
14873
14874_ACEOF
14875if ac_fn_c_try_run "$LINENO"; then :
14876
14877      tmp_compiler_works="yes"
14878
14879else
14880
14881      tmp_compiler_works="no"
14882      echo " " >&6
14883      echo "run-fail: test program exited with status $ac_status" >&6
14884      echo " " >&6
14885
14886fi
14887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14888  conftest.$ac_objext conftest.beam conftest.$ac_ext
14889fi
14890
14891  fi
14892    if test "$tmp_compiler_works" = "yes"; then
14893
14894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14895$as_echo "yes" >&6; }
14896        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
14897$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
14898
14899  else
14900
14901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
14903        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
14904$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
14905                CPPFLAGS="$tmp_save_CPPFLAGS"
14906        CFLAGS="$tmp_save_CFLAGS"
14907
14908  fi
14909
14910    fi
14911    #
14912  fi
14913
14914
14915        #
14916  if test "$compiler_id" != "unknown"; then
14917    #
14918    tmp_save_CFLAGS="$CFLAGS"
14919    tmp_save_CPPFLAGS="$CPPFLAGS"
14920    #
14921    tmp_options=""
14922    tmp_CFLAGS="$CFLAGS"
14923    tmp_CPPFLAGS="$CPPFLAGS"
14924
14925    ac_var_stripped=""
14926  for word1 in $tmp_CFLAGS; do
14927    ac_var_strip_word="no"
14928    for word2 in $flags_dbg_all; do
14929      if test "$word1" = "$word2"; then
14930        ac_var_strip_word="yes"
14931      fi
14932    done
14933    if test "$ac_var_strip_word" = "no"; then
14934      ac_var_stripped="$ac_var_stripped $word1"
14935    fi
14936  done
14937    tmp_CFLAGS="$ac_var_stripped"
14938  squeeze tmp_CFLAGS
14939
14940
14941    ac_var_stripped=""
14942  for word1 in $tmp_CPPFLAGS; do
14943    ac_var_strip_word="no"
14944    for word2 in $flags_dbg_all; do
14945      if test "$word1" = "$word2"; then
14946        ac_var_strip_word="yes"
14947      fi
14948    done
14949    if test "$ac_var_strip_word" = "no"; then
14950      ac_var_stripped="$ac_var_stripped $word1"
14951    fi
14952  done
14953    tmp_CPPFLAGS="$ac_var_stripped"
14954  squeeze tmp_CPPFLAGS
14955
14956    #
14957    if test "$want_debug" = "yes"; then
14958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
14959$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
14960      tmp_options="$flags_dbg_yes"
14961    fi
14962    if test "$want_debug" = "no"; then
14963      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
14964$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
14965      tmp_options="$flags_dbg_off"
14966    fi
14967    #
14968    if test "$flags_prefer_cppflags" = "yes"; then
14969      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
14970      CFLAGS="$tmp_CFLAGS"
14971    else
14972      CPPFLAGS="$tmp_CPPFLAGS"
14973      CFLAGS="$tmp_CFLAGS $tmp_options"
14974    fi
14975    squeeze CPPFLAGS
14976    squeeze CFLAGS
14977
14978    tmp_compiler_works="unknown"
14979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h.  */
14981
14982
14983
14984int main (void)
14985{
14986
14987      int i = 1;
14988      return i;
14989
14990 ;
14991 return 0;
14992}
14993
14994_ACEOF
14995if ac_fn_c_try_compile "$LINENO"; then :
14996
14997    tmp_compiler_works="yes"
14998
14999else
15000
15001    tmp_compiler_works="no"
15002    echo " " >&6
15003    sed 's/^/cc-fail: /' conftest.err >&6
15004    echo " " >&6
15005
15006fi
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008    if test "$tmp_compiler_works" = "yes"; then
15009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010/* end confdefs.h.  */
15011
15012
15013
15014int main (void)
15015{
15016
15017        int i = 1;
15018        return i;
15019
15020 ;
15021 return 0;
15022}
15023
15024_ACEOF
15025if ac_fn_c_try_link "$LINENO"; then :
15026
15027      tmp_compiler_works="yes"
15028
15029else
15030
15031      tmp_compiler_works="no"
15032      echo " " >&6
15033      sed 's/^/link-fail: /' conftest.err >&6
15034      echo " " >&6
15035
15036fi
15037rm -f core conftest.err conftest.$ac_objext \
15038    conftest$ac_exeext conftest.$ac_ext
15039  fi
15040    if test "x$cross_compiling" != "xyes" &&
15041    test "$tmp_compiler_works" = "yes"; then
15042    if test "$cross_compiling" = yes; then :
15043  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15045as_fn_error $? "cannot run test program while cross compiling
15046See \`config.log' for more details" "$LINENO" 5; }
15047else
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050
15051
15052#       ifdef __STDC__
15053#         include <stdlib.h>
15054#       endif
15055
15056int main (void)
15057{
15058
15059        int i = 0;
15060        exit(i);
15061
15062 ;
15063 return 0;
15064}
15065
15066_ACEOF
15067if ac_fn_c_try_run "$LINENO"; then :
15068
15069      tmp_compiler_works="yes"
15070
15071else
15072
15073      tmp_compiler_works="no"
15074      echo " " >&6
15075      echo "run-fail: test program exited with status $ac_status" >&6
15076      echo " " >&6
15077
15078fi
15079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15080  conftest.$ac_objext conftest.beam conftest.$ac_ext
15081fi
15082
15083  fi
15084    if test "$tmp_compiler_works" = "yes"; then
15085
15086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087$as_echo "yes" >&6; }
15088      { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15089$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15090
15091  else
15092
15093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094$as_echo "no" >&6; }
15095      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15096$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15097            CPPFLAGS="$tmp_save_CPPFLAGS"
15098      CFLAGS="$tmp_save_CFLAGS"
15099
15100  fi
15101
15102    #
15103  fi
15104
15105
15106        #
15107  if test "$compiler_id" != "unknown"; then
15108    #
15109    tmp_save_CFLAGS="$CFLAGS"
15110    tmp_save_CPPFLAGS="$CPPFLAGS"
15111    #
15112    tmp_options=""
15113    tmp_CFLAGS="$CFLAGS"
15114    tmp_CPPFLAGS="$CPPFLAGS"
15115    honor_optimize_option="yes"
15116    #
15117                        #
15118    if test "$want_optimize" = "assume_no" ||
15119       test "$want_optimize" = "assume_yes"; then
15120      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
15121$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
15122
15123
15124  ac_var_match_word="no"
15125  for word1 in $tmp_CFLAGS; do
15126    for word2 in $flags_opt_all; do
15127      if test "$word1" = "$word2"; then
15128        ac_var_match_word="yes"
15129      fi
15130    done
15131  done
15132
15133  if test "$ac_var_match_word" = "yes"; then
15134
15135        honor_optimize_option="no"
15136
15137
15138  fi
15139
15140
15141
15142  ac_var_match_word="no"
15143  for word1 in $tmp_CPPFLAGS; do
15144    for word2 in $flags_opt_all; do
15145      if test "$word1" = "$word2"; then
15146        ac_var_match_word="yes"
15147      fi
15148    done
15149  done
15150
15151  if test "$ac_var_match_word" = "yes"; then
15152
15153        honor_optimize_option="no"
15154
15155
15156  fi
15157
15158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
15159$as_echo "$honor_optimize_option" >&6; }
15160      if test "$honor_optimize_option" = "yes"; then
15161        if test "$want_optimize" = "assume_yes"; then
15162          want_optimize="yes"
15163        fi
15164        if test "$want_optimize" = "assume_no"; then
15165          want_optimize="no"
15166        fi
15167      fi
15168    fi
15169    #
15170    if test "$honor_optimize_option" = "yes"; then
15171
15172    ac_var_stripped=""
15173  for word1 in $tmp_CFLAGS; do
15174    ac_var_strip_word="no"
15175    for word2 in $flags_opt_all; do
15176      if test "$word1" = "$word2"; then
15177        ac_var_strip_word="yes"
15178      fi
15179    done
15180    if test "$ac_var_strip_word" = "no"; then
15181      ac_var_stripped="$ac_var_stripped $word1"
15182    fi
15183  done
15184    tmp_CFLAGS="$ac_var_stripped"
15185  squeeze tmp_CFLAGS
15186
15187
15188    ac_var_stripped=""
15189  for word1 in $tmp_CPPFLAGS; do
15190    ac_var_strip_word="no"
15191    for word2 in $flags_opt_all; do
15192      if test "$word1" = "$word2"; then
15193        ac_var_strip_word="yes"
15194      fi
15195    done
15196    if test "$ac_var_strip_word" = "no"; then
15197      ac_var_stripped="$ac_var_stripped $word1"
15198    fi
15199  done
15200    tmp_CPPFLAGS="$ac_var_stripped"
15201  squeeze tmp_CPPFLAGS
15202
15203      if test "$want_optimize" = "yes"; then
15204        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
15205$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
15206        tmp_options="$flags_opt_yes"
15207      fi
15208      if test "$want_optimize" = "no"; then
15209        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
15210$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
15211        tmp_options="$flags_opt_off"
15212      fi
15213      if test "$flags_prefer_cppflags" = "yes"; then
15214        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
15215        CFLAGS="$tmp_CFLAGS"
15216      else
15217        CPPFLAGS="$tmp_CPPFLAGS"
15218        CFLAGS="$tmp_CFLAGS $tmp_options"
15219      fi
15220      squeeze CPPFLAGS
15221      squeeze CFLAGS
15222
15223    tmp_compiler_works="unknown"
15224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225/* end confdefs.h.  */
15226
15227
15228
15229int main (void)
15230{
15231
15232      int i = 1;
15233      return i;
15234
15235 ;
15236 return 0;
15237}
15238
15239_ACEOF
15240if ac_fn_c_try_compile "$LINENO"; then :
15241
15242    tmp_compiler_works="yes"
15243
15244else
15245
15246    tmp_compiler_works="no"
15247    echo " " >&6
15248    sed 's/^/cc-fail: /' conftest.err >&6
15249    echo " " >&6
15250
15251fi
15252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253    if test "$tmp_compiler_works" = "yes"; then
15254    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h.  */
15256
15257
15258
15259int main (void)
15260{
15261
15262        int i = 1;
15263        return i;
15264
15265 ;
15266 return 0;
15267}
15268
15269_ACEOF
15270if ac_fn_c_try_link "$LINENO"; then :
15271
15272      tmp_compiler_works="yes"
15273
15274else
15275
15276      tmp_compiler_works="no"
15277      echo " " >&6
15278      sed 's/^/link-fail: /' conftest.err >&6
15279      echo " " >&6
15280
15281fi
15282rm -f core conftest.err conftest.$ac_objext \
15283    conftest$ac_exeext conftest.$ac_ext
15284  fi
15285    if test "x$cross_compiling" != "xyes" &&
15286    test "$tmp_compiler_works" = "yes"; then
15287    if test "$cross_compiling" = yes; then :
15288  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15290as_fn_error $? "cannot run test program while cross compiling
15291See \`config.log' for more details" "$LINENO" 5; }
15292else
15293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295
15296
15297#       ifdef __STDC__
15298#         include <stdlib.h>
15299#       endif
15300
15301int main (void)
15302{
15303
15304        int i = 0;
15305        exit(i);
15306
15307 ;
15308 return 0;
15309}
15310
15311_ACEOF
15312if ac_fn_c_try_run "$LINENO"; then :
15313
15314      tmp_compiler_works="yes"
15315
15316else
15317
15318      tmp_compiler_works="no"
15319      echo " " >&6
15320      echo "run-fail: test program exited with status $ac_status" >&6
15321      echo " " >&6
15322
15323fi
15324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15325  conftest.$ac_objext conftest.beam conftest.$ac_ext
15326fi
15327
15328  fi
15329    if test "$tmp_compiler_works" = "yes"; then
15330
15331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15332$as_echo "yes" >&6; }
15333        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15334$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15335
15336  else
15337
15338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339$as_echo "no" >&6; }
15340        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15341$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15342                CPPFLAGS="$tmp_save_CPPFLAGS"
15343        CFLAGS="$tmp_save_CFLAGS"
15344
15345  fi
15346
15347    fi
15348    #
15349  fi
15350
15351
15352        #
15353  if test "$compiler_id" != "unknown"; then
15354    #
15355    tmp_save_CPPFLAGS="$CPPFLAGS"
15356    tmp_save_CFLAGS="$CFLAGS"
15357    tmp_CPPFLAGS=""
15358    tmp_CFLAGS=""
15359    #
15360    case "$compiler_id" in
15361        #
15362      CLANG)
15363        #
15364        if test "$want_warnings" = "yes"; then
15365                              tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15366          tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15367          tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15368          tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
15369          tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15370          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15371          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15372          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15373          tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15374          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15375          tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15376          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15377          tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15378          tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15379          tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15380          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15381          tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
15382          #
15383                    if test "$compiler_num" -ge "101"; then
15384            tmp_CFLAGS="$tmp_CFLAGS -Wunused"
15385          fi
15386        fi
15387        ;;
15388        #
15389      DEC_C)
15390        #
15391        if test "$want_warnings" = "yes"; then
15392                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
15393        fi
15394        ;;
15395        #
15396      GNU_C)
15397        #
15398        if test "$want_warnings" = "yes"; then
15399          #
15400                              if test "x$cross_compiling" != "xyes" ||
15401            test "$compiler_num" -ge "300"; then
15402            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15403          fi
15404          #
15405                    tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
15406          #
15407                    if test "$compiler_num" -ge "104"; then
15408            tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15409                        if test "x$cross_compiling" != "xyes" ||
15410              test "$compiler_num" -ge "300"; then
15411              tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
15412            fi
15413          fi
15414          #
15415                    if test "$compiler_num" -ge "207"; then
15416            tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15417                        if test "x$cross_compiling" != "xyes" ||
15418              test "$compiler_num" -ge "300"; then
15419              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15420              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15421            fi
15422          fi
15423          #
15424                    if test "$compiler_num" -ge "295"; then
15425            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15426          fi
15427          #
15428                    if test "$compiler_num" -ge "296"; then
15429            tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15430            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15431                                                tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15432          fi
15433          #
15434                    if test "$compiler_num" -ge "297"; then
15435            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15436          fi
15437          #
15438                    if test "$compiler_num" -ge "300"; then
15439                                                            tmp_CFLAGS="$tmp_CFLAGS"
15440          fi
15441          #
15442                    if test "$compiler_num" -ge "303"; then
15443            tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15444          fi
15445          #
15446                    if test "$compiler_num" -ge "304"; then
15447            tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15448          fi
15449          #
15450                    if test "$compiler_num" -ge "402"; then
15451            tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15452          fi
15453          #
15454                    if test "$compiler_num" -ge "403"; then
15455            tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
15456            tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
15457            tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
15458            tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
15459          fi
15460          #
15461        fi
15462        #
15463                if test "$compiler_num" -ge "300"; then
15464          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15465        else
15466                              if test "x$cross_compiling" = "xyes"; then
15467            if test "$compiler_num" -ge "104"; then
15468                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
15469            fi
15470            if test "$compiler_num" -ge "207"; then
15471                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
15472              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
15473            fi
15474          fi
15475        fi
15476        ;;
15477        #
15478      HP_UX_C)
15479        #
15480        if test "$want_warnings" = "yes"; then
15481                    tmp_CFLAGS="$tmp_CFLAGS +w1"
15482        fi
15483        ;;
15484        #
15485      IBM_C)
15486        #
15487                tmp_CFLAGS="$tmp_CFLAGS"
15488        ;;
15489        #
15490      INTEL_UNIX_C)
15491        #
15492        if test "$want_warnings" = "yes"; then
15493          if test "$compiler_num" -gt "600"; then
15494                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
15495                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
15496                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
15497                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
15498                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
15499                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
15500                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
15501                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
15502                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
15503                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
15504                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
15505          fi
15506        fi
15507                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
15508                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
15509                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
15510                if test "$compiler_num" -ge "1000"; then
15511                    tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
15512        fi
15513        ;;
15514        #
15515      INTEL_WINDOWS_C)
15516        #
15517                tmp_CFLAGS="$tmp_CFLAGS"
15518        ;;
15519        #
15520      LCC)
15521        #
15522        if test "$want_warnings" = "yes"; then
15523                                                  tmp_CFLAGS="$tmp_CFLAGS"
15524        fi
15525        ;;
15526        #
15527      SGI_MIPS_C)
15528        #
15529        if test "$want_warnings" = "yes"; then
15530                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15531        fi
15532        ;;
15533        #
15534      SGI_MIPSPRO_C)
15535        #
15536        if test "$want_warnings" = "yes"; then
15537                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15538                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
15539        fi
15540        ;;
15541        #
15542      SUNPRO_C)
15543        #
15544        if test "$want_warnings" = "yes"; then
15545                    tmp_CFLAGS="$tmp_CFLAGS -v"
15546        fi
15547        ;;
15548        #
15549      TINY_C)
15550        #
15551        if test "$want_warnings" = "yes"; then
15552                    tmp_CFLAGS="$tmp_CFLAGS -Wall"
15553                    tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
15554                    tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
15555        fi
15556        ;;
15557        #
15558      WATCOM_UNIX_C)
15559        #
15560        if test "$want_warnings" = "yes"; then
15561                    tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15562        fi
15563        ;;
15564        #
15565      WATCOM_WINDOWS_C)
15566        #
15567                tmp_CFLAGS="$tmp_CFLAGS"
15568        ;;
15569        #
15570    esac
15571    #
15572    squeeze tmp_CPPFLAGS
15573    squeeze tmp_CFLAGS
15574    #
15575    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
15576      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
15577$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
15578      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
15579      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15580      squeeze CPPFLAGS
15581      squeeze CFLAGS
15582
15583    tmp_compiler_works="unknown"
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586
15587
15588
15589int main (void)
15590{
15591
15592      int i = 1;
15593      return i;
15594
15595 ;
15596 return 0;
15597}
15598
15599_ACEOF
15600if ac_fn_c_try_compile "$LINENO"; then :
15601
15602    tmp_compiler_works="yes"
15603
15604else
15605
15606    tmp_compiler_works="no"
15607    echo " " >&6
15608    sed 's/^/cc-fail: /' conftest.err >&6
15609    echo " " >&6
15610
15611fi
15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613    if test "$tmp_compiler_works" = "yes"; then
15614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615/* end confdefs.h.  */
15616
15617
15618
15619int main (void)
15620{
15621
15622        int i = 1;
15623        return i;
15624
15625 ;
15626 return 0;
15627}
15628
15629_ACEOF
15630if ac_fn_c_try_link "$LINENO"; then :
15631
15632      tmp_compiler_works="yes"
15633
15634else
15635
15636      tmp_compiler_works="no"
15637      echo " " >&6
15638      sed 's/^/link-fail: /' conftest.err >&6
15639      echo " " >&6
15640
15641fi
15642rm -f core conftest.err conftest.$ac_objext \
15643    conftest$ac_exeext conftest.$ac_ext
15644  fi
15645    if test "x$cross_compiling" != "xyes" &&
15646    test "$tmp_compiler_works" = "yes"; then
15647    if test "$cross_compiling" = yes; then :
15648  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15650as_fn_error $? "cannot run test program while cross compiling
15651See \`config.log' for more details" "$LINENO" 5; }
15652else
15653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654/* end confdefs.h.  */
15655
15656
15657#       ifdef __STDC__
15658#         include <stdlib.h>
15659#       endif
15660
15661int main (void)
15662{
15663
15664        int i = 0;
15665        exit(i);
15666
15667 ;
15668 return 0;
15669}
15670
15671_ACEOF
15672if ac_fn_c_try_run "$LINENO"; then :
15673
15674      tmp_compiler_works="yes"
15675
15676else
15677
15678      tmp_compiler_works="no"
15679      echo " " >&6
15680      echo "run-fail: test program exited with status $ac_status" >&6
15681      echo " " >&6
15682
15683fi
15684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15685  conftest.$ac_objext conftest.beam conftest.$ac_ext
15686fi
15687
15688  fi
15689    if test "$tmp_compiler_works" = "yes"; then
15690
15691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15692$as_echo "yes" >&6; }
15693        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15694$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15695
15696  else
15697
15698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699$as_echo "no" >&6; }
15700        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15701$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15702                CPPFLAGS="$tmp_save_CPPFLAGS"
15703        CFLAGS="$tmp_save_CFLAGS"
15704
15705  fi
15706
15707    fi
15708    #
15709  fi
15710
15711
15712if test "$compiler_id" = "INTEL_UNIX_C"; then
15713  #
15714  if test "$compiler_num" -ge "1000"; then
15715        CFLAGS="$CFLAGS -shared-intel"
15716  elif test "$compiler_num" -ge "900"; then
15717        CFLAGS="$CFLAGS -i-dynamic"
15718  fi
15719  #
15720fi
15721
15722
15723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
15724$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
15725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726/* end confdefs.h.  */
15727
15728
15729
15730int main (void)
15731{
15732
15733      force compilation error
15734
15735 ;
15736 return 0;
15737}
15738
15739_ACEOF
15740if ac_fn_c_try_compile "$LINENO"; then :
15741
15742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743$as_echo "no" >&6; }
15744    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
15745
15746else
15747
15748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749$as_echo "yes" >&6; }
15750
15751fi
15752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753
15754
15755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
15756$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
15757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759
15760
15761      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
15762
15763int main (void)
15764{
15765
15766      bad_t dummy;
15767
15768 ;
15769 return 0;
15770}
15771
15772_ACEOF
15773if ac_fn_c_try_compile "$LINENO"; then :
15774
15775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776$as_echo "no" >&6; }
15777    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
15778
15779else
15780
15781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15782$as_echo "yes" >&6; }
15783
15784fi
15785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786
15787
15788      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
15789$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
15790  supports_symbol_hiding="no"
15791  symbol_hiding_CFLAGS=""
15792  symbol_hiding_EXTERN=""
15793  tmp_CFLAGS=""
15794  tmp_EXTERN=""
15795  case "$compiler_id" in
15796    CLANG)
15797            tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
15798      tmp_CFLAGS="-fvisibility=hidden"
15799      supports_symbol_hiding="yes"
15800      ;;
15801    GNU_C)
15802            if test "$compiler_num" -ge "304"; then
15803        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
15804          tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
15805          tmp_CFLAGS="-fvisibility=hidden"
15806          supports_symbol_hiding="yes"
15807        fi
15808      fi
15809      ;;
15810    INTEL_UNIX_C)
15811            if test "$compiler_num" -ge "900"; then
15812        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
15813          tmp_save_CFLAGS="$CFLAGS"
15814          CFLAGS="$CFLAGS -fvisibility=hidden"
15815          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816/* end confdefs.h.  */
15817
15818
15819#             include <stdio.h>
15820
15821int main (void)
15822{
15823
15824              printf("icc fvisibility bug test");
15825
15826 ;
15827 return 0;
15828}
15829
15830_ACEOF
15831if ac_fn_c_try_link "$LINENO"; then :
15832
15833            tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
15834            tmp_CFLAGS="-fvisibility=hidden"
15835            supports_symbol_hiding="yes"
15836
15837fi
15838rm -f core conftest.err conftest.$ac_objext \
15839    conftest$ac_exeext conftest.$ac_ext
15840          CFLAGS="$tmp_save_CFLAGS"
15841        fi
15842      fi
15843      ;;
15844    SUNPRO_C)
15845      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
15846        tmp_EXTERN="__global"
15847        tmp_CFLAGS="-xldscope=hidden"
15848        supports_symbol_hiding="yes"
15849      fi
15850      ;;
15851  esac
15852  if test "$supports_symbol_hiding" = "yes"; then
15853    tmp_save_CFLAGS="$CFLAGS"
15854    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15855    squeeze CFLAGS
15856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858
15859
15860        $tmp_EXTERN char *dummy(char *buff);
15861        char *dummy(char *buff)
15862        {
15863         if(buff)
15864           return ++buff;
15865         else
15866           return buff;
15867        }
15868
15869int main (void)
15870{
15871
15872        char b[16];
15873        char *r = dummy(&b);
15874        if(r)
15875          return (int)*r;
15876
15877 ;
15878 return 0;
15879}
15880
15881_ACEOF
15882if ac_fn_c_try_compile "$LINENO"; then :
15883
15884      supports_symbol_hiding="yes"
15885
15886else
15887
15888      supports_symbol_hiding="no"
15889      echo " " >&6
15890      sed 's/^/cc-src: /' conftest.$ac_ext >&6
15891      sed 's/^/cc-err: /' conftest.err >&6
15892      echo " " >&6
15893
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896    CFLAGS="$tmp_save_CFLAGS"
15897  fi
15898  if test "$supports_symbol_hiding" = "yes"; then
15899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900$as_echo "yes" >&6; }
15901    symbol_hiding_CFLAGS="$tmp_CFLAGS"
15902    symbol_hiding_EXTERN="$tmp_EXTERN"
15903  else
15904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905$as_echo "no" >&6; }
15906  fi
15907
15908
15909
15910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5
15911$as_echo_n "checking if shared libraries need -no-undefined... " >&6; }
15912  need_no_undefined="no"
15913  case $host in
15914    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*)
15915      need_no_undefined="yes"
15916      ;;
15917  esac
15918  if test "x$allow_undefined" = "xno"; then
15919    need_no_undefined="yes"
15920  elif test "x$allow_undefined_flag" = "xunsupported"; then
15921    need_no_undefined="yes"
15922  fi
15923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5
15924$as_echo "$need_no_undefined" >&6; }
15925
15926
15927
15928if test x$need_no_undefined = xyes; then
15929  NO_UNDEFINED_TRUE=
15930  NO_UNDEFINED_FALSE='#'
15931else
15932  NO_UNDEFINED_TRUE='#'
15933  NO_UNDEFINED_FALSE=
15934fi
15935
15936
15937
15938    cares_builddir=`pwd`
15939  supports_curldebug="unknown"
15940  if test "$want_curldebug" = "yes"; then
15941    if test "x$enable_shared" != "xno" &&
15942      test "x$enable_shared" != "xyes"; then
15943      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
15944$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
15945      supports_curldebug="no"
15946    fi
15947    if test "x$enable_static" != "xno" &&
15948      test "x$enable_static" != "xyes"; then
15949      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
15950$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
15951      supports_curldebug="no"
15952    fi
15953    if test "$supports_curldebug" != "no"; then
15954      if test "$enable_shared" = "yes" &&
15955        test "$need_no_undefined" = "yes"; then
15956        supports_curldebug="no"
15957        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
15958$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
15959      fi
15960      if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
15961        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
15962$as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
15963        supports_curldebug="no"
15964      elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
15965        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
15966$as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
15967        supports_curldebug="no"
15968      elif test ! -f "$cares_builddir/../libcurl.pc" ||
15969        test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
15970        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
15971$as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
15972        supports_curldebug="no"
15973      elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
15974        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
15975$as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
15976        supports_curldebug="no"
15977      elif test ! -f "$cares_builddir/../config.status"; then
15978        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
15979$as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
15980        supports_curldebug="no"
15981      fi
15982      if test "$supports_curldebug" != "no"; then
15983        grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
15984        if test "$?" -ne "0"; then
15985          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
15986$as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
15987          supports_curldebug="no"
15988        fi
15989      fi
15990      if test "$supports_curldebug" != "no"; then
15991        grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
15992        if test "$?" -ne "0"; then
15993          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
15994$as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
15995          supports_curldebug="no"
15996        fi
15997      fi
15998    fi
15999  fi
16000  #
16001  if test "$want_curldebug" = "yes"; then
16002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
16003$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
16004    test "$supports_curldebug" = "no" || supports_curldebug="yes"
16005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
16006$as_echo "$supports_curldebug" >&6; }
16007    if test "$supports_curldebug" = "no"; then
16008      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
16009$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
16010      want_curldebug="no"
16011    fi
16012  fi
16013  #
16014  if test "$want_curldebug" = "yes"; then
16015
16016$as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
16017
16018    CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
16019    squeeze CPPFLAGS
16020  fi
16021  #
16022  if test "$want_debug" = "yes"; then
16023    CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
16024    squeeze CPPFLAGS
16025  fi
16026
16027
16028
16029if test x$want_curldebug = xyes; then
16030  CURLDEBUG_TRUE=
16031  CURLDEBUG_FALSE='#'
16032else
16033  CURLDEBUG_TRUE='#'
16034  CURLDEBUG_FALSE=
16035fi
16036
16037
16038
16039
16040
16041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
16042$as_echo_n "checking for windows.h... " >&6; }
16043if ${ac_cv_header_windows_h+:} false; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046
16047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048/* end confdefs.h.  */
16049
16050
16051#undef inline
16052#ifndef WIN32_LEAN_AND_MEAN
16053#define WIN32_LEAN_AND_MEAN
16054#endif
16055#include <windows.h>
16056
16057int main (void)
16058{
16059
16060#if defined(__CYGWIN__) || defined(__CEGCC__)
16061        HAVE_WINDOWS_H shall not be defined.
16062#else
16063        int dummy=2*WINVER;
16064#endif
16065
16066 ;
16067 return 0;
16068}
16069
16070_ACEOF
16071if ac_fn_c_try_compile "$LINENO"; then :
16072
16073      ac_cv_header_windows_h="yes"
16074
16075else
16076
16077      ac_cv_header_windows_h="no"
16078
16079fi
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081
16082fi
16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16084$as_echo "$ac_cv_header_windows_h" >&6; }
16085  case "$ac_cv_header_windows_h" in
16086    yes)
16087
16088cat >>confdefs.h <<_ACEOF
16089#define HAVE_WINDOWS_H 1
16090_ACEOF
16091
16092
16093cat >>confdefs.h <<_ACEOF
16094#define WIN32_LEAN_AND_MEAN 1
16095_ACEOF
16096
16097      ;;
16098  esac
16099
16100
16101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
16102$as_echo_n "checking whether build target is a native Windows one... " >&6; }
16103if ${ac_cv_native_windows+:} false; then :
16104  $as_echo_n "(cached) " >&6
16105else
16106
16107    if test "$ac_cv_header_windows_h" = "no"; then
16108      ac_cv_native_windows="no"
16109    else
16110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111/* end confdefs.h.  */
16112
16113
16114
16115int main (void)
16116{
16117
16118#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
16119   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
16120          int dummy=1;
16121#else
16122          Not a native Windows build target.
16123#endif
16124
16125 ;
16126 return 0;
16127}
16128
16129_ACEOF
16130if ac_fn_c_try_compile "$LINENO"; then :
16131
16132        ac_cv_native_windows="yes"
16133
16134else
16135
16136        ac_cv_native_windows="no"
16137
16138fi
16139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140    fi
16141
16142fi
16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
16144$as_echo "$ac_cv_native_windows" >&6; }
16145  case "$ac_cv_native_windows" in
16146    yes)
16147
16148cat >>confdefs.h <<_ACEOF
16149#define NATIVE_WINDOWS 1
16150_ACEOF
16151
16152      ;;
16153  esac
16154
16155case X-"$ac_cv_native_windows" in
16156  X-yes)
16157
16158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
16159$as_echo_n "checking for winsock.h... " >&6; }
16160if ${ac_cv_header_winsock_h+:} false; then :
16161  $as_echo_n "(cached) " >&6
16162else
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 <winsock.h>
16174
16175int main (void)
16176{
16177
16178#if defined(__CYGWIN__) || defined(__CEGCC__)
16179        HAVE_WINSOCK_H shall not be defined.
16180#else
16181        int dummy=WSACleanup();
16182#endif
16183
16184 ;
16185 return 0;
16186}
16187
16188_ACEOF
16189if ac_fn_c_try_compile "$LINENO"; then :
16190
16191      ac_cv_header_winsock_h="yes"
16192
16193else
16194
16195      ac_cv_header_winsock_h="no"
16196
16197fi
16198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16199
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
16202$as_echo "$ac_cv_header_winsock_h" >&6; }
16203  case "$ac_cv_header_winsock_h" in
16204    yes)
16205
16206cat >>confdefs.h <<_ACEOF
16207#define HAVE_WINSOCK_H 1
16208_ACEOF
16209
16210      ;;
16211  esac
16212
16213
16214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
16215$as_echo_n "checking for winsock2.h... " >&6; }
16216if ${ac_cv_header_winsock2_h+:} false; then :
16217  $as_echo_n "(cached) " >&6
16218else
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
16231int main (void)
16232{
16233
16234#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16235        HAVE_WINSOCK2_H shall not be defined.
16236#else
16237        int dummy=2*IPPROTO_ESP;
16238#endif
16239
16240 ;
16241 return 0;
16242}
16243
16244_ACEOF
16245if ac_fn_c_try_compile "$LINENO"; then :
16246
16247      ac_cv_header_winsock2_h="yes"
16248
16249else
16250
16251      ac_cv_header_winsock2_h="no"
16252
16253fi
16254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255
16256fi
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
16258$as_echo "$ac_cv_header_winsock2_h" >&6; }
16259  case "$ac_cv_header_winsock2_h" in
16260    yes)
16261
16262cat >>confdefs.h <<_ACEOF
16263#define HAVE_WINSOCK2_H 1
16264_ACEOF
16265
16266      ;;
16267  esac
16268
16269
16270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
16271$as_echo_n "checking for ws2tcpip.h... " >&6; }
16272if ${ac_cv_header_ws2tcpip_h+:} false; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275
16276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h.  */
16278
16279
16280#undef inline
16281#ifndef WIN32_LEAN_AND_MEAN
16282#define WIN32_LEAN_AND_MEAN
16283#endif
16284#include <windows.h>
16285#include <winsock2.h>
16286#include <ws2tcpip.h>
16287
16288int main (void)
16289{
16290
16291#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16292        HAVE_WS2TCPIP_H shall not be defined.
16293#else
16294        int dummy=2*IP_PKTINFO;
16295#endif
16296
16297 ;
16298 return 0;
16299}
16300
16301_ACEOF
16302if ac_fn_c_try_compile "$LINENO"; then :
16303
16304      ac_cv_header_ws2tcpip_h="yes"
16305
16306else
16307
16308      ac_cv_header_ws2tcpip_h="no"
16309
16310fi
16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
16315$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
16316  case "$ac_cv_header_ws2tcpip_h" in
16317    yes)
16318
16319cat >>confdefs.h <<_ACEOF
16320#define HAVE_WS2TCPIP_H 1
16321_ACEOF
16322
16323      ;;
16324  esac
16325
16326    ;;
16327  *)
16328    ac_cv_header_winsock_h="no"
16329    ac_cv_header_winsock2_h="no"
16330    ac_cv_header_ws2tcpip_h="no"
16331    ;;
16332esac
16333
16334
16335
16336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
16337$as_echo_n "checking if X/Open network library is required... " >&6; }
16338  tst_lib_xnet_required="no"
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341
16342
16343int main (void)
16344{
16345#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
16346  return 0;
16347#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
16348  return 0;
16349#else
16350  force compilation error
16351#endif
16352}
16353
16354
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"; then :
16357
16358    tst_lib_xnet_required="yes"
16359    LIBS="$LIBS -lxnet"
16360
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
16364$as_echo "$tst_lib_xnet_required" >&6; }
16365
16366
16367ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16368if test "x$ac_cv_func_gethostbyname" = xyes; then :
16369  HAVE_GETHOSTBYNAME="1"
16370
16371else
16372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16373$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16374if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16375  $as_echo_n "(cached) " >&6
16376else
16377  ac_check_lib_save_LIBS=$LIBS
16378LIBS="-lnsl  $LIBS"
16379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380/* end confdefs.h.  */
16381
16382
16383#ifdef __cplusplus
16384extern "C"
16385#endif
16386char gethostbyname ();
16387int main (void)
16388{
16389return gethostbyname ();
16390 ;
16391 return 0;
16392}
16393_ACEOF
16394if ac_fn_c_try_link "$LINENO"; then :
16395  ac_cv_lib_nsl_gethostbyname=yes
16396else
16397  ac_cv_lib_nsl_gethostbyname=no
16398fi
16399rm -f core conftest.err conftest.$ac_objext \
16400    conftest$ac_exeext conftest.$ac_ext
16401LIBS=$ac_check_lib_save_LIBS
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16404$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16405if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16406  HAVE_GETHOSTBYNAME="1"
16407                             LIBS="$LIBS -lnsl"
16408
16409fi
16410
16411
16412fi
16413
16414
16415if test "$HAVE_GETHOSTBYNAME" != "1"
16416then
16417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
16418$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
16419if ${ac_cv_lib_socket_gethostbyname+:} false; then :
16420  $as_echo_n "(cached) " >&6
16421else
16422  ac_check_lib_save_LIBS=$LIBS
16423LIBS="-lsocket  $LIBS"
16424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426
16427
16428#ifdef __cplusplus
16429extern "C"
16430#endif
16431char gethostbyname ();
16432int main (void)
16433{
16434return gethostbyname ();
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"; then :
16440  ac_cv_lib_socket_gethostbyname=yes
16441else
16442  ac_cv_lib_socket_gethostbyname=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext \
16445    conftest$ac_exeext conftest.$ac_ext
16446LIBS=$ac_check_lib_save_LIBS
16447fi
16448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
16449$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
16450if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
16451  HAVE_GETHOSTBYNAME="1"
16452               LIBS="$LIBS -lsocket"
16453
16454fi
16455
16456fi
16457
16458if test "$HAVE_GETHOSTBYNAME" != "1"
16459then
16460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
16461$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
16462  my_ac_save_LIBS=$LIBS
16463  LIBS="-lnsl -lsocket $LIBS"
16464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465/* end confdefs.h.  */
16466
16467
16468
16469int main (void)
16470{
16471
16472      gethostbyname();
16473
16474 ;
16475 return 0;
16476}
16477
16478_ACEOF
16479if ac_fn_c_try_link "$LINENO"; then :
16480
16481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16482$as_echo "yes" >&6; }
16483    HAVE_GETHOSTBYNAME="1"
16484
16485else
16486
16487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488$as_echo "no" >&6; }
16489    LIBS=$my_ac_save_LIBS
16490
16491fi
16492rm -f core conftest.err conftest.$ac_objext \
16493    conftest$ac_exeext conftest.$ac_ext
16494fi
16495
16496if test "$HAVE_GETHOSTBYNAME" != "1"
16497then
16498    if test "$ac_cv_header_windows_h" = "yes"; then
16499    if test "$ac_cv_header_winsock_h" = "yes"; then
16500      case $host in
16501        *-*-mingw32ce*)
16502          winsock_LIB="-lwinsock"
16503          ;;
16504        *)
16505          winsock_LIB="-lwsock32"
16506          ;;
16507      esac
16508    fi
16509    if test "$ac_cv_header_winsock2_h" = "yes"; then
16510      winsock_LIB="-lws2_32"
16511    fi
16512    if test ! -z "$winsock_LIB"; then
16513      my_ac_save_LIBS=$LIBS
16514      LIBS="$winsock_LIB $LIBS"
16515      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
16516$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
16517      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518/* end confdefs.h.  */
16519
16520
16521#ifdef HAVE_WINDOWS_H
16522#ifndef WIN32_LEAN_AND_MEAN
16523#define WIN32_LEAN_AND_MEAN
16524#endif
16525#include <windows.h>
16526#ifdef HAVE_WINSOCK2_H
16527#include <winsock2.h>
16528#else
16529#ifdef HAVE_WINSOCK_H
16530#include <winsock.h>
16531#endif
16532#endif
16533#endif
16534
16535int main (void)
16536{
16537
16538          gethostbyname("www.dummysite.com");
16539
16540 ;
16541 return 0;
16542}
16543
16544_ACEOF
16545if ac_fn_c_try_link "$LINENO"; then :
16546
16547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548$as_echo "yes" >&6; }
16549        HAVE_GETHOSTBYNAME="1"
16550
16551else
16552
16553        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554$as_echo "no" >&6; }
16555        winsock_LIB=""
16556        LIBS=$my_ac_save_LIBS
16557
16558fi
16559rm -f core conftest.err conftest.$ac_objext \
16560    conftest$ac_exeext conftest.$ac_ext
16561    fi
16562  fi
16563fi
16564
16565if test "$HAVE_GETHOSTBYNAME" != "1"
16566then
16567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
16568$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
16569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h.  */
16571
16572
16573/* Older Minix versions may need <net/gen/netdb.h> here instead */
16574#include <netdb.h>
16575
16576int main (void)
16577{
16578
16579      gethostbyname("www.dummysite.com");
16580
16581 ;
16582 return 0;
16583}
16584
16585_ACEOF
16586if ac_fn_c_try_link "$LINENO"; then :
16587
16588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16589$as_echo "yes" >&6; }
16590    HAVE_GETHOSTBYNAME="1"
16591
16592else
16593
16594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595$as_echo "no" >&6; }
16596
16597fi
16598rm -f core conftest.err conftest.$ac_objext \
16599    conftest$ac_exeext conftest.$ac_ext
16600fi
16601
16602if test "$HAVE_GETHOSTBYNAME" != "1"
16603then
16604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
16605$as_echo_n "checking for gethostbyname for eCos... " >&6; }
16606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h.  */
16608
16609
16610#include <stdio.h>
16611#include <netdb.h>
16612
16613int main (void)
16614{
16615
16616      gethostbyname("www.dummysite.com");
16617
16618 ;
16619 return 0;
16620}
16621
16622_ACEOF
16623if ac_fn_c_try_link "$LINENO"; then :
16624
16625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16626$as_echo "yes" >&6; }
16627    HAVE_GETHOSTBYNAME="1"
16628
16629else
16630
16631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632$as_echo "no" >&6; }
16633
16634fi
16635rm -f core conftest.err conftest.$ac_objext \
16636    conftest$ac_exeext conftest.$ac_ext
16637fi
16638
16639if test "$HAVE_GETHOSTBYNAME" != "1"
16640then
16641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
16642$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
16643if ${ac_cv_lib_net_gethostbyname+:} false; then :
16644  $as_echo_n "(cached) " >&6
16645else
16646  ac_check_lib_save_LIBS=$LIBS
16647LIBS="-lnet  $LIBS"
16648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649/* end confdefs.h.  */
16650
16651
16652#ifdef __cplusplus
16653extern "C"
16654#endif
16655char gethostbyname ();
16656int main (void)
16657{
16658return gethostbyname ();
16659 ;
16660 return 0;
16661}
16662_ACEOF
16663if ac_fn_c_try_link "$LINENO"; then :
16664  ac_cv_lib_net_gethostbyname=yes
16665else
16666  ac_cv_lib_net_gethostbyname=no
16667fi
16668rm -f core conftest.err conftest.$ac_objext \
16669    conftest$ac_exeext conftest.$ac_ext
16670LIBS=$ac_check_lib_save_LIBS
16671fi
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
16673$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
16674if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
16675  HAVE_GETHOSTBYNAME="1"
16676               LIBS="$LIBS -lnet"
16677
16678fi
16679
16680fi
16681
16682
16683if test "$HAVE_GETHOSTBYNAME" != "1"; then
16684  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
16685fi
16686
16687ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
16688if test "x$ac_cv_func_strcasecmp" = xyes; then :
16689
16690else
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
16692$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
16693if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
16694  $as_echo_n "(cached) " >&6
16695else
16696  ac_check_lib_save_LIBS=$LIBS
16697LIBS="-lresolve  $LIBS"
16698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699/* end confdefs.h.  */
16700
16701
16702#ifdef __cplusplus
16703extern "C"
16704#endif
16705char strcasecmp ();
16706int main (void)
16707{
16708return strcasecmp ();
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713if ac_fn_c_try_link "$LINENO"; then :
16714  ac_cv_lib_resolve_strcasecmp=yes
16715else
16716  ac_cv_lib_resolve_strcasecmp=no
16717fi
16718rm -f core conftest.err conftest.$ac_objext \
16719    conftest$ac_exeext conftest.$ac_ext
16720LIBS=$ac_check_lib_save_LIBS
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
16723$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
16724if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
16725  cat >>confdefs.h <<_ACEOF
16726#define HAVE_LIBRESOLVE 1
16727_ACEOF
16728
16729  LIBS="-lresolve $LIBS"
16730
16731fi
16732
16733fi
16734
16735
16736if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
16737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
16738$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
16739if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
16740  $as_echo_n "(cached) " >&6
16741else
16742  ac_check_lib_save_LIBS=$LIBS
16743LIBS="-lresolve -lnsl $LIBS"
16744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745/* end confdefs.h.  */
16746
16747
16748#ifdef __cplusplus
16749extern "C"
16750#endif
16751char strcasecmp ();
16752int main (void)
16753{
16754return strcasecmp ();
16755 ;
16756 return 0;
16757}
16758_ACEOF
16759if ac_fn_c_try_link "$LINENO"; then :
16760  ac_cv_lib_resolve_strcasecmp=yes
16761else
16762  ac_cv_lib_resolve_strcasecmp=no
16763fi
16764rm -f core conftest.err conftest.$ac_objext \
16765    conftest$ac_exeext conftest.$ac_ext
16766LIBS=$ac_check_lib_save_LIBS
16767fi
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
16769$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
16770if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
16771  LIBS="-lresolve $LIBS"
16772fi
16773
16774fi
16775ac_cv_func_strcasecmp="no"
16776
16777
16778cares_includes_winsock2="\
16779/* includes start */
16780#ifdef HAVE_WINDOWS_H
16781#  ifndef WIN32_LEAN_AND_MEAN
16782#    define WIN32_LEAN_AND_MEAN
16783#  endif
16784#  include <windows.h>
16785#  ifdef HAVE_WINSOCK2_H
16786#    include <winsock2.h>
16787#  else
16788#    ifdef HAVE_WINSOCK_H
16789#      include <winsock.h>
16790#    endif
16791#  endif
16792#endif
16793/* includes end */"
16794
16795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
16796$as_echo_n "checking for windows.h... " >&6; }
16797if ${ac_cv_header_windows_h+:} false; then :
16798  $as_echo_n "(cached) " >&6
16799else
16800
16801    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802/* end confdefs.h.  */
16803
16804
16805#undef inline
16806#ifndef WIN32_LEAN_AND_MEAN
16807#define WIN32_LEAN_AND_MEAN
16808#endif
16809#include <windows.h>
16810
16811int main (void)
16812{
16813
16814#if defined(__CYGWIN__) || defined(__CEGCC__)
16815        HAVE_WINDOWS_H shall not be defined.
16816#else
16817        int dummy=2*WINVER;
16818#endif
16819
16820 ;
16821 return 0;
16822}
16823
16824_ACEOF
16825if ac_fn_c_try_compile "$LINENO"; then :
16826
16827      ac_cv_header_windows_h="yes"
16828
16829else
16830
16831      ac_cv_header_windows_h="no"
16832
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835
16836fi
16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16838$as_echo "$ac_cv_header_windows_h" >&6; }
16839  case "$ac_cv_header_windows_h" in
16840    yes)
16841
16842cat >>confdefs.h <<_ACEOF
16843#define HAVE_WINDOWS_H 1
16844_ACEOF
16845
16846
16847cat >>confdefs.h <<_ACEOF
16848#define WIN32_LEAN_AND_MEAN 1
16849_ACEOF
16850
16851      ;;
16852  esac
16853
16854
16855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
16856$as_echo_n "checking for winsock.h... " >&6; }
16857if ${ac_cv_header_winsock_h+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860
16861    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h.  */
16863
16864
16865#undef inline
16866#ifndef WIN32_LEAN_AND_MEAN
16867#define WIN32_LEAN_AND_MEAN
16868#endif
16869#include <windows.h>
16870#include <winsock.h>
16871
16872int main (void)
16873{
16874
16875#if defined(__CYGWIN__) || defined(__CEGCC__)
16876        HAVE_WINSOCK_H shall not be defined.
16877#else
16878        int dummy=WSACleanup();
16879#endif
16880
16881 ;
16882 return 0;
16883}
16884
16885_ACEOF
16886if ac_fn_c_try_compile "$LINENO"; then :
16887
16888      ac_cv_header_winsock_h="yes"
16889
16890else
16891
16892      ac_cv_header_winsock_h="no"
16893
16894fi
16895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896
16897fi
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
16899$as_echo "$ac_cv_header_winsock_h" >&6; }
16900  case "$ac_cv_header_winsock_h" in
16901    yes)
16902
16903cat >>confdefs.h <<_ACEOF
16904#define HAVE_WINSOCK_H 1
16905_ACEOF
16906
16907      ;;
16908  esac
16909
16910
16911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
16912$as_echo_n "checking for winsock2.h... " >&6; }
16913if ${ac_cv_header_winsock2_h+:} false; then :
16914  $as_echo_n "(cached) " >&6
16915else
16916
16917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918/* end confdefs.h.  */
16919
16920
16921#undef inline
16922#ifndef WIN32_LEAN_AND_MEAN
16923#define WIN32_LEAN_AND_MEAN
16924#endif
16925#include <windows.h>
16926#include <winsock2.h>
16927
16928int main (void)
16929{
16930
16931#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16932        HAVE_WINSOCK2_H shall not be defined.
16933#else
16934        int dummy=2*IPPROTO_ESP;
16935#endif
16936
16937 ;
16938 return 0;
16939}
16940
16941_ACEOF
16942if ac_fn_c_try_compile "$LINENO"; then :
16943
16944      ac_cv_header_winsock2_h="yes"
16945
16946else
16947
16948      ac_cv_header_winsock2_h="no"
16949
16950fi
16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952
16953fi
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
16955$as_echo "$ac_cv_header_winsock2_h" >&6; }
16956  case "$ac_cv_header_winsock2_h" in
16957    yes)
16958
16959cat >>confdefs.h <<_ACEOF
16960#define HAVE_WINSOCK2_H 1
16961_ACEOF
16962
16963      ;;
16964  esac
16965
16966
16967
16968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
16969$as_echo_n "checking for connect in libraries... " >&6; }
16970  tst_connect_save_LIBS="$LIBS"
16971  tst_connect_need_LIBS="unknown"
16972  for tst_lib in '' '-lsocket' ; do
16973    if test "$tst_connect_need_LIBS" = "unknown"; then
16974      LIBS="$tst_lib $tst_connect_save_LIBS"
16975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976/* end confdefs.h.  */
16977
16978
16979          $cares_includes_winsock2
16980          #ifndef HAVE_WINDOWS_H
16981            int connect(int, void*, int);
16982          #endif
16983
16984int main (void)
16985{
16986
16987          if(0 != connect(0, 0, 0))
16988            return 1;
16989
16990 ;
16991 return 0;
16992}
16993
16994_ACEOF
16995if ac_fn_c_try_link "$LINENO"; then :
16996
16997        tst_connect_need_LIBS="$tst_lib"
16998
16999fi
17000rm -f core conftest.err conftest.$ac_objext \
17001    conftest$ac_exeext conftest.$ac_ext
17002    fi
17003  done
17004  LIBS="$tst_connect_save_LIBS"
17005  #
17006  case X-"$tst_connect_need_LIBS" in
17007    X-unknown)
17008      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
17009$as_echo "cannot find connect" >&6; }
17010      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
17011      ;;
17012    X-)
17013      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17014$as_echo "yes" >&6; }
17015      ;;
17016    *)
17017      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
17018$as_echo "$tst_connect_need_LIBS" >&6; }
17019      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
17020      ;;
17021  esac
17022
17023
17024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17025$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17026if ${ac_cv_header_time+:} false; then :
17027  $as_echo_n "(cached) " >&6
17028else
17029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031#include <sys/types.h>
17032#include <sys/time.h>
17033#include <time.h>
17034
17035int main (void)
17036{
17037if ((struct tm *) 0)
17038return 0;
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043if ac_fn_c_try_compile "$LINENO"; then :
17044  ac_cv_header_time=yes
17045else
17046  ac_cv_header_time=no
17047fi
17048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049fi
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17051$as_echo "$ac_cv_header_time" >&6; }
17052if test $ac_cv_header_time = yes; then
17053
17054$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17055
17056fi
17057
17058
17059    for ac_header in sys/types.h sys/time.h time.h
17060do :
17061  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17062ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17064  cat >>confdefs.h <<_ACEOF
17065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17066_ACEOF
17067
17068fi
17069
17070done
17071
17072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
17073$as_echo_n "checking for monotonic clock_gettime... " >&6; }
17074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076
17077
17078#ifdef HAVE_SYS_TYPES_H
17079#include <sys/types.h>
17080#endif
17081#ifdef HAVE_SYS_TIME_H
17082#include <sys/time.h>
17083#ifdef TIME_WITH_SYS_TIME
17084#include <time.h>
17085#endif
17086#else
17087#ifdef HAVE_TIME_H
17088#include <time.h>
17089#endif
17090#endif
17091
17092int main (void)
17093{
17094
17095      struct timespec ts;
17096      (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17097
17098 ;
17099 return 0;
17100}
17101
17102_ACEOF
17103if ac_fn_c_try_compile "$LINENO"; then :
17104
17105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17106$as_echo "yes" >&6; }
17107    ac_cv_func_clock_gettime="yes"
17108
17109else
17110
17111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112$as_echo "no" >&6; }
17113    ac_cv_func_clock_gettime="no"
17114
17115fi
17116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117
17118
17119    #
17120  if test "$ac_cv_func_clock_gettime" = "yes"; then
17121    #
17122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
17123$as_echo_n "checking for clock_gettime in libraries... " >&6; }
17124    #
17125    curl_cv_save_LIBS="$LIBS"
17126    curl_cv_gclk_LIBS="unknown"
17127    #
17128    for x_xlibs in '' '-lrt' '-lposix4' ; do
17129      if test "$curl_cv_gclk_LIBS" = "unknown"; then
17130        if test -z "$x_xlibs"; then
17131          LIBS="$curl_cv_save_LIBS"
17132        else
17133          LIBS="$x_xlibs $curl_cv_save_LIBS"
17134        fi
17135        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136/* end confdefs.h.  */
17137
17138
17139#ifdef HAVE_SYS_TYPES_H
17140#include <sys/types.h>
17141#endif
17142#ifdef HAVE_SYS_TIME_H
17143#include <sys/time.h>
17144#ifdef TIME_WITH_SYS_TIME
17145#include <time.h>
17146#endif
17147#else
17148#ifdef HAVE_TIME_H
17149#include <time.h>
17150#endif
17151#endif
17152
17153int main (void)
17154{
17155
17156            struct timespec ts;
17157            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17158
17159 ;
17160 return 0;
17161}
17162
17163_ACEOF
17164if ac_fn_c_try_link "$LINENO"; then :
17165
17166          curl_cv_gclk_LIBS="$x_xlibs"
17167
17168fi
17169rm -f core conftest.err conftest.$ac_objext \
17170    conftest$ac_exeext conftest.$ac_ext
17171      fi
17172    done
17173    #
17174    LIBS="$curl_cv_save_LIBS"
17175    #
17176    case X-"$curl_cv_gclk_LIBS" in
17177      X-unknown)
17178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
17179$as_echo "cannot find clock_gettime" >&6; }
17180        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17181$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17182        ac_cv_func_clock_gettime="no"
17183        ;;
17184      X-)
17185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
17186$as_echo "no additional lib required" >&6; }
17187        ac_cv_func_clock_gettime="yes"
17188        ;;
17189      *)
17190        if test -z "$curl_cv_save_LIBS"; then
17191          LIBS="$curl_cv_gclk_LIBS"
17192        else
17193          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
17194        fi
17195        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
17196$as_echo "$curl_cv_gclk_LIBS" >&6; }
17197        ac_cv_func_clock_gettime="yes"
17198        ;;
17199    esac
17200    #
17201        if test "x$cross_compiling" != "xyes" &&
17202      test "$ac_cv_func_clock_gettime" = "yes"; then
17203      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
17204$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
17205      if test "$cross_compiling" = yes; then :
17206  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17208as_fn_error $? "cannot run test program while cross compiling
17209See \`config.log' for more details" "$LINENO" 5; }
17210else
17211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212/* end confdefs.h.  */
17213
17214
17215#ifdef HAVE_STDLIB_H
17216#include <stdlib.h>
17217#endif
17218#ifdef HAVE_SYS_TYPES_H
17219#include <sys/types.h>
17220#endif
17221#ifdef HAVE_SYS_TIME_H
17222#include <sys/time.h>
17223#ifdef TIME_WITH_SYS_TIME
17224#include <time.h>
17225#endif
17226#else
17227#ifdef HAVE_TIME_H
17228#include <time.h>
17229#endif
17230#endif
17231
17232int main (void)
17233{
17234
17235          struct timespec ts;
17236          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
17237            exit(0);
17238          else
17239            exit(1);
17240
17241 ;
17242 return 0;
17243}
17244
17245_ACEOF
17246if ac_fn_c_try_run "$LINENO"; then :
17247
17248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17249$as_echo "yes" >&6; }
17250
17251else
17252
17253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254$as_echo "no" >&6; }
17255        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17256$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17257        ac_cv_func_clock_gettime="no"
17258        LIBS="$curl_cv_save_LIBS"
17259
17260fi
17261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17262  conftest.$ac_objext conftest.beam conftest.$ac_ext
17263fi
17264
17265    fi
17266    #
17267    case "$ac_cv_func_clock_gettime" in
17268      yes)
17269
17270cat >>confdefs.h <<_ACEOF
17271#define HAVE_CLOCK_GETTIME_MONOTONIC 1
17272_ACEOF
17273
17274        ;;
17275    esac
17276    #
17277  fi
17278  #
17279
17280
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
17282$as_echo_n "checking whether to use libgcc... " >&6; }
17283# Check whether --enable-libgcc was given.
17284if test "${enable_libgcc+set}" = set; then :
17285  enableval=$enable_libgcc;  case "$enableval" in
17286  yes)
17287        LIBS="$LIBS -lgcc"
17288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17289$as_echo "yes" >&6; }
17290       ;;
17291  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17292$as_echo "no" >&6; }
17293       ;;
17294  esac
17295else
17296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17297$as_echo "no" >&6; }
17298
17299fi
17300
17301
17302
17303
17304
17305
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17307$as_echo_n "checking for ANSI C header files... " >&6; }
17308if ${ac_cv_header_stdc+:} false; then :
17309  $as_echo_n "(cached) " >&6
17310else
17311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h.  */
17313#include <stdlib.h>
17314#include <stdarg.h>
17315#include <string.h>
17316#include <float.h>
17317
17318int main (void)
17319{
17320
17321 ;
17322 return 0;
17323}
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"; then :
17326  ac_cv_header_stdc=yes
17327else
17328  ac_cv_header_stdc=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331
17332if test $ac_cv_header_stdc = yes; then
17333  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335/* end confdefs.h.  */
17336#include <string.h>
17337
17338_ACEOF
17339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17340  $EGREP "memchr" >/dev/null 2>&1; then :
17341
17342else
17343  ac_cv_header_stdc=no
17344fi
17345rm -f conftest*
17346
17347fi
17348
17349if test $ac_cv_header_stdc = yes; then
17350  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353#include <stdlib.h>
17354
17355_ACEOF
17356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17357  $EGREP "free" >/dev/null 2>&1; then :
17358
17359else
17360  ac_cv_header_stdc=no
17361fi
17362rm -f conftest*
17363
17364fi
17365
17366if test $ac_cv_header_stdc = yes; then
17367  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17368  if test "$cross_compiling" = yes; then :
17369  :
17370else
17371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372/* end confdefs.h.  */
17373#include <ctype.h>
17374#include <stdlib.h>
17375#if ((' ' & 0x0FF) == 0x020)
17376# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17377# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17378#else
17379# define ISLOWER(c) \
17380		   (('a' <= (c) && (c) <= 'i') \
17381		     || ('j' <= (c) && (c) <= 'r') \
17382		     || ('s' <= (c) && (c) <= 'z'))
17383# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17384#endif
17385
17386#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17387int
17388main ()
17389{
17390  int i;
17391  for (i = 0; i < 256; i++)
17392    if (XOR (islower (i), ISLOWER (i))
17393	|| toupper (i) != TOUPPER (i))
17394      return 2;
17395  return 0;
17396}
17397_ACEOF
17398if ac_fn_c_try_run "$LINENO"; then :
17399
17400else
17401  ac_cv_header_stdc=no
17402fi
17403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17404  conftest.$ac_objext conftest.beam conftest.$ac_ext
17405fi
17406
17407fi
17408fi
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17410$as_echo "$ac_cv_header_stdc" >&6; }
17411if test $ac_cv_header_stdc = yes; then
17412
17413$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17414
17415fi
17416
17417
17418
17419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
17420$as_echo_n "checking for malloc.h... " >&6; }
17421if ${ac_cv_header_malloc_h+:} false; then :
17422  $as_echo_n "(cached) " >&6
17423else
17424
17425    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426/* end confdefs.h.  */
17427
17428
17429#include <malloc.h>
17430
17431int main (void)
17432{
17433
17434        void *p = malloc(10);
17435        void *q = calloc(10,10);
17436        free(p);
17437        free(q);
17438
17439 ;
17440 return 0;
17441}
17442
17443_ACEOF
17444if ac_fn_c_try_compile "$LINENO"; then :
17445
17446      ac_cv_header_malloc_h="yes"
17447
17448else
17449
17450      ac_cv_header_malloc_h="no"
17451
17452fi
17453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17454
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
17457$as_echo "$ac_cv_header_malloc_h" >&6; }
17458  if test "$ac_cv_header_malloc_h" = "yes"; then
17459
17460cat >>confdefs.h <<_ACEOF
17461#define HAVE_MALLOC_H 1
17462_ACEOF
17463
17464    #
17465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467
17468
17469#include <stdlib.h>
17470
17471int main (void)
17472{
17473
17474        void *p = malloc(10);
17475        void *q = calloc(10,10);
17476        free(p);
17477        free(q);
17478
17479 ;
17480 return 0;
17481}
17482
17483_ACEOF
17484if ac_fn_c_try_compile "$LINENO"; then :
17485
17486      curl_cv_need_header_malloc_h="no"
17487
17488else
17489
17490      curl_cv_need_header_malloc_h="yes"
17491
17492fi
17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494    #
17495    case "$curl_cv_need_header_malloc_h" in
17496      yes)
17497
17498cat >>confdefs.h <<_ACEOF
17499#define NEED_MALLOC_H 1
17500_ACEOF
17501
17502        ;;
17503    esac
17504  fi
17505
17506
17507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
17508$as_echo_n "checking for memory.h... " >&6; }
17509if ${ac_cv_header_memory_h+:} false; then :
17510  $as_echo_n "(cached) " >&6
17511else
17512
17513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515
17516
17517#include <memory.h>
17518
17519int main (void)
17520{
17521
17522        void *p = malloc(10);
17523        void *q = calloc(10,10);
17524        free(p);
17525        free(q);
17526
17527 ;
17528 return 0;
17529}
17530
17531_ACEOF
17532if ac_fn_c_try_compile "$LINENO"; then :
17533
17534      ac_cv_header_memory_h="yes"
17535
17536else
17537
17538      ac_cv_header_memory_h="no"
17539
17540fi
17541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542
17543fi
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
17545$as_echo "$ac_cv_header_memory_h" >&6; }
17546  if test "$ac_cv_header_memory_h" = "yes"; then
17547
17548cat >>confdefs.h <<_ACEOF
17549#define HAVE_MEMORY_H 1
17550_ACEOF
17551
17552    #
17553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554/* end confdefs.h.  */
17555
17556
17557#include <stdlib.h>
17558
17559int main (void)
17560{
17561
17562        void *p = malloc(10);
17563        void *q = calloc(10,10);
17564        free(p);
17565        free(q);
17566
17567 ;
17568 return 0;
17569}
17570
17571_ACEOF
17572if ac_fn_c_try_compile "$LINENO"; then :
17573
17574      curl_cv_need_header_memory_h="no"
17575
17576else
17577
17578      curl_cv_need_header_memory_h="yes"
17579
17580fi
17581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582    #
17583    case "$curl_cv_need_header_memory_h" in
17584      yes)
17585
17586cat >>confdefs.h <<_ACEOF
17587#define NEED_MEMORY_H 1
17588_ACEOF
17589
17590        ;;
17591    esac
17592  fi
17593
17594
17595for ac_header in sys/types.h \
17596       sys/time.h \
17597       sys/select.h \
17598       sys/socket.h \
17599       sys/ioctl.h \
17600       sys/param.h \
17601       sys/uio.h \
17602       assert.h \
17603       netdb.h \
17604       netinet/in.h \
17605       netinet/tcp.h \
17606       net/if.h \
17607       errno.h \
17608       socket.h \
17609       strings.h \
17610       stdbool.h \
17611       time.h \
17612       limits.h \
17613       arpa/nameser.h \
17614       arpa/nameser_compat.h \
17615       arpa/inet.h
17616do :
17617  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17618ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
17619#ifdef HAVE_SYS_TYPES_H
17620#include <sys/types.h>
17621#endif
17622#ifdef HAVE_SYS_TIME_H
17623#include <sys/time.h>
17624#endif
17625#ifdef HAVE_ARPA_NAMESER_H
17626#include <arpa/nameser.h>
17627#endif
17628
17629#ifdef HAVE_SYS_SOCKET_H
17630#include <sys/socket.h>
17631#endif
17632#ifdef HAVE_NETINET_IN_H
17633#include <netinet/in.h>
17634#endif
17635
17636
17637"
17638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17639  cat >>confdefs.h <<_ACEOF
17640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17641_ACEOF
17642
17643fi
17644
17645done
17646
17647
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17649$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17650if ${ac_cv_c_const+:} false; then :
17651  $as_echo_n "(cached) " >&6
17652else
17653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654/* end confdefs.h.  */
17655
17656int main (void)
17657{
17658/* FIXME: Include the comments suggested by Paul. */
17659#ifndef __cplusplus
17660  /* Ultrix mips cc rejects this.  */
17661  typedef int charset[2];
17662  const charset cs;
17663  /* SunOS 4.1.1 cc rejects this.  */
17664  char const *const *pcpcc;
17665  char **ppc;
17666  /* NEC SVR4.0.2 mips cc rejects this.  */
17667  struct point {int x, y;};
17668  static struct point const zero = {0,0};
17669  /* AIX XL C 1.02.0.0 rejects this.
17670     It does not let you subtract one const X* pointer from another in
17671     an arm of an if-expression whose if-part is not a constant
17672     expression */
17673  const char *g = "string";
17674  pcpcc = &g + (g ? g-g : 0);
17675  /* HPUX 7.0 cc rejects these. */
17676  ++pcpcc;
17677  ppc = (char**) pcpcc;
17678  pcpcc = (char const *const *) ppc;
17679  { /* SCO 3.2v4 cc rejects this.  */
17680    char *t;
17681    char const *s = 0 ? (char *) 0 : (char const *) 0;
17682
17683    *t++ = 0;
17684    if (s) return 0;
17685  }
17686  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17687    int x[] = {25, 17};
17688    const int *foo = &x[0];
17689    ++foo;
17690  }
17691  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17692    typedef const int *iptr;
17693    iptr p = 0;
17694    ++p;
17695  }
17696  { /* AIX XL C 1.02.0.0 rejects this saying
17697       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17698    struct s { int j; const int *ap[3]; };
17699    struct s *b; b->j = 5;
17700  }
17701  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17702    const int foo = 10;
17703    if (!foo) return 0;
17704  }
17705  return !cs[0] && !zero.x;
17706#endif
17707
17708 ;
17709 return 0;
17710}
17711_ACEOF
17712if ac_fn_c_try_compile "$LINENO"; then :
17713  ac_cv_c_const=yes
17714else
17715  ac_cv_c_const=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718fi
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17720$as_echo "$ac_cv_c_const" >&6; }
17721if test $ac_cv_c_const = no; then
17722
17723$as_echo "#define const /**/" >>confdefs.h
17724
17725fi
17726
17727ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17728if test "x$ac_cv_type_size_t" = xyes; then :
17729
17730else
17731
17732cat >>confdefs.h <<_ACEOF
17733#define size_t unsigned int
17734_ACEOF
17735
17736fi
17737
17738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17739$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17740if ${ac_cv_header_time+:} false; then :
17741  $as_echo_n "(cached) " >&6
17742else
17743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744/* end confdefs.h.  */
17745#include <sys/types.h>
17746#include <sys/time.h>
17747#include <time.h>
17748
17749int main (void)
17750{
17751if ((struct tm *) 0)
17752return 0;
17753 ;
17754 return 0;
17755}
17756_ACEOF
17757if ac_fn_c_try_compile "$LINENO"; then :
17758  ac_cv_header_time=yes
17759else
17760  ac_cv_header_time=no
17761fi
17762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763fi
17764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17765$as_echo "$ac_cv_header_time" >&6; }
17766if test $ac_cv_header_time = yes; then
17767
17768$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17769
17770fi
17771
17772
17773        for ac_header in sys/types.h sys/time.h time.h sys/socket.h
17774do :
17775  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17776ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17778  cat >>confdefs.h <<_ACEOF
17779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17780_ACEOF
17781
17782fi
17783
17784done
17785
17786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17787$as_echo_n "checking for struct timeval... " >&6; }
17788if ${ac_cv_struct_timeval+:} false; then :
17789  $as_echo_n "(cached) " >&6
17790else
17791
17792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h.  */
17794
17795
17796#undef inline
17797#ifdef HAVE_WINDOWS_H
17798#ifndef WIN32_LEAN_AND_MEAN
17799#define WIN32_LEAN_AND_MEAN
17800#endif
17801#include <windows.h>
17802#ifdef HAVE_WINSOCK2_H
17803#include <winsock2.h>
17804#else
17805#ifdef HAVE_WINSOCK_H
17806#include <winsock.h>
17807#endif
17808#endif
17809#endif
17810#ifdef HAVE_SYS_TYPES_H
17811#include <sys/types.h>
17812#endif
17813#ifdef HAVE_SYS_TIME_H
17814#include <sys/time.h>
17815#ifdef TIME_WITH_SYS_TIME
17816#include <time.h>
17817#endif
17818#else
17819#ifdef HAVE_TIME_H
17820#include <time.h>
17821#endif
17822#endif
17823#ifdef HAVE_SYS_SOCKET_H
17824#include <sys/socket.h>
17825#endif
17826
17827int main (void)
17828{
17829
17830        struct timeval ts;
17831        ts.tv_sec  = 0;
17832        ts.tv_usec = 0;
17833
17834 ;
17835 return 0;
17836}
17837
17838_ACEOF
17839if ac_fn_c_try_compile "$LINENO"; then :
17840
17841      ac_cv_struct_timeval="yes"
17842
17843else
17844
17845      ac_cv_struct_timeval="no"
17846
17847fi
17848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849
17850fi
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
17852$as_echo "$ac_cv_struct_timeval" >&6; }
17853  case "$ac_cv_struct_timeval" in
17854    yes)
17855
17856cat >>confdefs.h <<_ACEOF
17857#define HAVE_STRUCT_TIMEVAL 1
17858_ACEOF
17859
17860      ;;
17861  esac
17862
17863
17864# The cast to long int works around a bug in the HP C Compiler
17865# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17866# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17867# This bug is HP SR number 8606223364.
17868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17869$as_echo_n "checking size of size_t... " >&6; }
17870if ${ac_cv_sizeof_size_t+:} false; then :
17871  $as_echo_n "(cached) " >&6
17872else
17873  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17874
17875else
17876  if test "$ac_cv_type_size_t" = yes; then
17877     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17879as_fn_error 77 "cannot compute sizeof (size_t)
17880See \`config.log' for more details" "$LINENO" 5; }
17881   else
17882     ac_cv_sizeof_size_t=0
17883   fi
17884fi
17885
17886fi
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17888$as_echo "$ac_cv_sizeof_size_t" >&6; }
17889
17890
17891
17892cat >>confdefs.h <<_ACEOF
17893#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17894_ACEOF
17895
17896
17897# The cast to long int works around a bug in the HP C Compiler
17898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17900# This bug is HP SR number 8606223364.
17901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17902$as_echo_n "checking size of int... " >&6; }
17903if ${ac_cv_sizeof_int+:} false; then :
17904  $as_echo_n "(cached) " >&6
17905else
17906  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
17907
17908else
17909  if test "$ac_cv_type_int" = yes; then
17910     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17912as_fn_error 77 "cannot compute sizeof (int)
17913See \`config.log' for more details" "$LINENO" 5; }
17914   else
17915     ac_cv_sizeof_int=0
17916   fi
17917fi
17918
17919fi
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17921$as_echo "$ac_cv_sizeof_int" >&6; }
17922
17923
17924
17925cat >>confdefs.h <<_ACEOF
17926#define SIZEOF_INT $ac_cv_sizeof_int
17927_ACEOF
17928
17929
17930# The cast to long int works around a bug in the HP C Compiler
17931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17933# This bug is HP SR number 8606223364.
17934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17935$as_echo_n "checking size of long... " >&6; }
17936if ${ac_cv_sizeof_long+:} false; then :
17937  $as_echo_n "(cached) " >&6
17938else
17939  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17940
17941else
17942  if test "$ac_cv_type_long" = yes; then
17943     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17945as_fn_error 77 "cannot compute sizeof (long)
17946See \`config.log' for more details" "$LINENO" 5; }
17947   else
17948     ac_cv_sizeof_long=0
17949   fi
17950fi
17951
17952fi
17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17954$as_echo "$ac_cv_sizeof_long" >&6; }
17955
17956
17957
17958cat >>confdefs.h <<_ACEOF
17959#define SIZEOF_LONG $ac_cv_sizeof_long
17960_ACEOF
17961
17962
17963
17964  if test -z "$ac_cv_sizeof_long" ||
17965    test "$ac_cv_sizeof_long" -eq "0"; then
17966    as_fn_error $? "cannot find out size of long." "$LINENO" 5
17967  fi
17968
17969cat >>confdefs.h <<_EOF
17970#define CARES_SIZEOF_LONG $ac_cv_sizeof_long
17971_EOF
17972
17973
17974# The cast to long int works around a bug in the HP C Compiler
17975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17977# This bug is HP SR number 8606223364.
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17979$as_echo_n "checking size of time_t... " >&6; }
17980if ${ac_cv_sizeof_time_t+:} false; then :
17981  $as_echo_n "(cached) " >&6
17982else
17983  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17984
17985else
17986  if test "$ac_cv_type_time_t" = yes; then
17987     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17989as_fn_error 77 "cannot compute sizeof (time_t)
17990See \`config.log' for more details" "$LINENO" 5; }
17991   else
17992     ac_cv_sizeof_time_t=0
17993   fi
17994fi
17995
17996fi
17997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17998$as_echo "$ac_cv_sizeof_time_t" >&6; }
17999
18000
18001
18002cat >>confdefs.h <<_ACEOF
18003#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18004_ACEOF
18005
18006
18007
18008ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18009if test "x$ac_cv_type_long_long" = xyes; then :
18010
18011$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
18012
18013   longlong="yes"
18014
18015fi
18016
18017
18018if test "xyes" = "x$longlong"; then
18019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
18020$as_echo_n "checking if numberLL works... " >&6; }
18021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022/* end confdefs.h.  */
18023
18024
18025
18026int main (void)
18027{
18028
18029      long long val = 1000LL;
18030
18031 ;
18032 return 0;
18033}
18034
18035_ACEOF
18036if ac_fn_c_try_compile "$LINENO"; then :
18037
18038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18039$as_echo "yes" >&6; }
18040
18041$as_echo "#define HAVE_LL 1" >>confdefs.h
18042
18043
18044else
18045
18046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047$as_echo "no" >&6; }
18048
18049fi
18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051fi
18052
18053
18054# check for ssize_t
18055ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18056if test "x$ac_cv_type_ssize_t" = xyes; then :
18057
18058else
18059
18060$as_echo "#define ssize_t int" >>confdefs.h
18061
18062fi
18063
18064
18065# check for bool type
18066ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
18067#ifdef HAVE_SYS_TYPES_H
18068#include <sys/types.h>
18069#endif
18070#ifdef HAVE_STDBOOL_H
18071#include <stdbool.h>
18072#endif
18073
18074"
18075if test "x$ac_cv_type_bool" = xyes; then :
18076
18077
18078$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
18079
18080
18081fi
18082
18083
18084
18085cares_includes_ws2tcpip="\
18086/* includes start */
18087#ifdef HAVE_WINDOWS_H
18088#  ifndef WIN32_LEAN_AND_MEAN
18089#    define WIN32_LEAN_AND_MEAN
18090#  endif
18091#  include <windows.h>
18092#  ifdef HAVE_WINSOCK2_H
18093#    include <winsock2.h>
18094#    ifdef HAVE_WS2TCPIP_H
18095#       include <ws2tcpip.h>
18096#    endif
18097#  endif
18098#endif
18099/* includes end */"
18100
18101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18102$as_echo_n "checking for windows.h... " >&6; }
18103if ${ac_cv_header_windows_h+:} false; then :
18104  $as_echo_n "(cached) " >&6
18105else
18106
18107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h.  */
18109
18110
18111#undef inline
18112#ifndef WIN32_LEAN_AND_MEAN
18113#define WIN32_LEAN_AND_MEAN
18114#endif
18115#include <windows.h>
18116
18117int main (void)
18118{
18119
18120#if defined(__CYGWIN__) || defined(__CEGCC__)
18121        HAVE_WINDOWS_H shall not be defined.
18122#else
18123        int dummy=2*WINVER;
18124#endif
18125
18126 ;
18127 return 0;
18128}
18129
18130_ACEOF
18131if ac_fn_c_try_compile "$LINENO"; then :
18132
18133      ac_cv_header_windows_h="yes"
18134
18135else
18136
18137      ac_cv_header_windows_h="no"
18138
18139fi
18140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141
18142fi
18143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18144$as_echo "$ac_cv_header_windows_h" >&6; }
18145  case "$ac_cv_header_windows_h" in
18146    yes)
18147
18148cat >>confdefs.h <<_ACEOF
18149#define HAVE_WINDOWS_H 1
18150_ACEOF
18151
18152
18153cat >>confdefs.h <<_ACEOF
18154#define WIN32_LEAN_AND_MEAN 1
18155_ACEOF
18156
18157      ;;
18158  esac
18159
18160
18161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18162$as_echo_n "checking for winsock2.h... " >&6; }
18163if ${ac_cv_header_winsock2_h+:} false; then :
18164  $as_echo_n "(cached) " >&6
18165else
18166
18167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168/* end confdefs.h.  */
18169
18170
18171#undef inline
18172#ifndef WIN32_LEAN_AND_MEAN
18173#define WIN32_LEAN_AND_MEAN
18174#endif
18175#include <windows.h>
18176#include <winsock2.h>
18177
18178int main (void)
18179{
18180
18181#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18182        HAVE_WINSOCK2_H shall not be defined.
18183#else
18184        int dummy=2*IPPROTO_ESP;
18185#endif
18186
18187 ;
18188 return 0;
18189}
18190
18191_ACEOF
18192if ac_fn_c_try_compile "$LINENO"; then :
18193
18194      ac_cv_header_winsock2_h="yes"
18195
18196else
18197
18198      ac_cv_header_winsock2_h="no"
18199
18200fi
18201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202
18203fi
18204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18205$as_echo "$ac_cv_header_winsock2_h" >&6; }
18206  case "$ac_cv_header_winsock2_h" in
18207    yes)
18208
18209cat >>confdefs.h <<_ACEOF
18210#define HAVE_WINSOCK2_H 1
18211_ACEOF
18212
18213      ;;
18214  esac
18215
18216
18217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18218$as_echo_n "checking for ws2tcpip.h... " >&6; }
18219if ${ac_cv_header_ws2tcpip_h+:} false; then :
18220  $as_echo_n "(cached) " >&6
18221else
18222
18223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224/* end confdefs.h.  */
18225
18226
18227#undef inline
18228#ifndef WIN32_LEAN_AND_MEAN
18229#define WIN32_LEAN_AND_MEAN
18230#endif
18231#include <windows.h>
18232#include <winsock2.h>
18233#include <ws2tcpip.h>
18234
18235int main (void)
18236{
18237
18238#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18239        HAVE_WS2TCPIP_H shall not be defined.
18240#else
18241        int dummy=2*IP_PKTINFO;
18242#endif
18243
18244 ;
18245 return 0;
18246}
18247
18248_ACEOF
18249if ac_fn_c_try_compile "$LINENO"; then :
18250
18251      ac_cv_header_ws2tcpip_h="yes"
18252
18253else
18254
18255      ac_cv_header_ws2tcpip_h="no"
18256
18257fi
18258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259
18260fi
18261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18262$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18263  case "$ac_cv_header_ws2tcpip_h" in
18264    yes)
18265
18266cat >>confdefs.h <<_ACEOF
18267#define HAVE_WS2TCPIP_H 1
18268_ACEOF
18269
18270      ;;
18271  esac
18272
18273
18274
18275cares_includes_sys_socket="\
18276/* includes start */
18277#ifdef HAVE_SYS_TYPES_H
18278#  include <sys/types.h>
18279#endif
18280#ifdef HAVE_SYS_SOCKET_H
18281#  include <sys/socket.h>
18282#endif
18283/* includes end */"
18284  for ac_header in sys/types.h sys/socket.h
18285do :
18286  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
18288"
18289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18290  cat >>confdefs.h <<_ACEOF
18291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18292_ACEOF
18293
18294fi
18295
18296done
18297
18298
18299
18300cares_preprocess_callconv="\
18301/* preprocess start */
18302#ifdef HAVE_WINDOWS_H
18303#  define FUNCALLCONV __stdcall
18304#else
18305#  define FUNCALLCONV
18306#endif
18307/* preprocess end */"
18308
18309
18310        #
18311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
18312$as_echo_n "checking for ares_socklen_t data type... " >&6; }
18313  cares_typeof_ares_socklen_t="unknown"
18314  for arg1 in int SOCKET; do
18315    for arg2 in 'struct sockaddr' void; do
18316      for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
18317        if test "$cares_typeof_ares_socklen_t" = "unknown"; then
18318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319/* end confdefs.h.  */
18320
18321
18322              $cares_includes_ws2tcpip
18323              $cares_includes_sys_socket
18324              $cares_preprocess_callconv
18325              extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
18326
18327int main (void)
18328{
18329
18330              $t *lenptr = 0;
18331              if(0 != getpeername(0, 0, lenptr))
18332                return 1;
18333
18334 ;
18335 return 0;
18336}
18337
18338_ACEOF
18339if ac_fn_c_try_compile "$LINENO"; then :
18340
18341            cares_typeof_ares_socklen_t="$t"
18342
18343fi
18344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345        fi
18346      done
18347    done
18348  done
18349  for t in socklen_t int; do
18350    if test "$cares_typeof_ares_socklen_t" = "void"; then
18351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352/* end confdefs.h.  */
18353
18354
18355          $cares_includes_sys_socket
18356          typedef $t ares_socklen_t;
18357
18358int main (void)
18359{
18360
18361          ares_socklen_t dummy;
18362
18363 ;
18364 return 0;
18365}
18366
18367_ACEOF
18368if ac_fn_c_try_compile "$LINENO"; then :
18369
18370        cares_typeof_ares_socklen_t="$t"
18371
18372fi
18373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374    fi
18375  done
18376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
18377$as_echo "$cares_typeof_ares_socklen_t" >&6; }
18378  if test "$cares_typeof_ares_socklen_t" = "void" ||
18379    test "$cares_typeof_ares_socklen_t" = "unknown"; then
18380    as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
18381  fi
18382  #
18383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
18384$as_echo_n "checking size of ares_socklen_t... " >&6; }
18385  cares_sizeof_ares_socklen_t="unknown"
18386  cares_pull_headers_socklen_t="unknown"
18387  if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
18388    tst_pull_header_checks='none ws2tcpip'
18389    tst_size_checks='4'
18390  else
18391    tst_pull_header_checks='none systypes syssocket'
18392    tst_size_checks='4 8 2'
18393  fi
18394  for tst_size in $tst_size_checks; do
18395    for tst_pull_headers in $tst_pull_header_checks; do
18396      if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
18397        case $tst_pull_headers in
18398          ws2tcpip)
18399            tmp_includes="$cares_includes_ws2tcpip"
18400            ;;
18401          systypes)
18402            tmp_includes="$cares_includes_sys_types"
18403            ;;
18404          syssocket)
18405            tmp_includes="$cares_includes_sys_socket"
18406            ;;
18407          *)
18408            tmp_includes=""
18409            ;;
18410        esac
18411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h.  */
18413
18414
18415            $tmp_includes
18416            typedef $cares_typeof_ares_socklen_t ares_socklen_t;
18417            typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
18418
18419int main (void)
18420{
18421
18422            ares_socklen_t dummy;
18423
18424 ;
18425 return 0;
18426}
18427
18428_ACEOF
18429if ac_fn_c_try_compile "$LINENO"; then :
18430
18431          cares_sizeof_ares_socklen_t="$tst_size"
18432          cares_pull_headers_socklen_t="$tst_pull_headers"
18433
18434fi
18435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436      fi
18437    done
18438  done
18439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
18440$as_echo "$cares_sizeof_ares_socklen_t" >&6; }
18441  if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
18442    as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
18443  fi
18444  #
18445  case $cares_pull_headers_socklen_t in
18446    ws2tcpip)
18447
18448cat >>confdefs.h <<_EOF
18449#define CARES_PULL_WS2TCPIP_H 1
18450_EOF
18451
18452      ;;
18453    systypes)
18454
18455cat >>confdefs.h <<_EOF
18456#define CARES_PULL_SYS_TYPES_H 1
18457_EOF
18458
18459      ;;
18460    syssocket)
18461
18462cat >>confdefs.h <<_EOF
18463#define CARES_PULL_SYS_TYPES_H 1
18464_EOF
18465
18466
18467cat >>confdefs.h <<_EOF
18468#define CARES_PULL_SYS_SOCKET_H 1
18469_EOF
18470
18471      ;;
18472  esac
18473
18474cat >>confdefs.h <<_EOF
18475#define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
18476_EOF
18477
18478
18479cat >>confdefs.h <<_EOF
18480#define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
18481_EOF
18482
18483
18484
18485
18486  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
18487#undef inline
18488#ifdef HAVE_WINDOWS_H
18489#ifndef WIN32_LEAN_AND_MEAN
18490#define WIN32_LEAN_AND_MEAN
18491#endif
18492#include <windows.h>
18493#ifdef HAVE_WINSOCK2_H
18494#include <winsock2.h>
18495#else
18496#ifdef HAVE_WINSOCK_H
18497#include <winsock.h>
18498#endif
18499#endif
18500#else
18501#ifdef HAVE_SYS_TYPES_H
18502#include <sys/types.h>
18503#endif
18504#ifdef HAVE_SYS_SOCKET_H
18505#include <sys/socket.h>
18506#endif
18507#ifdef HAVE_NETINET_IN_H
18508#include <netinet/in.h>
18509#endif
18510#ifdef HAVE_ARPA_INET_H
18511#include <arpa/inet.h>
18512#endif
18513#endif
18514
18515"
18516if test "x$ac_cv_type_in_addr_t" = xyes; then :
18517
18518else
18519
18520        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
18521$as_echo_n "checking for in_addr_t equivalent... " >&6; }
18522if ${curl_cv_in_addr_t_equiv+:} false; then :
18523  $as_echo_n "(cached) " >&6
18524else
18525
18526      curl_cv_in_addr_t_equiv="unknown"
18527      for t in "unsigned long" int size_t unsigned long; do
18528        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
18529          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530/* end confdefs.h.  */
18531
18532
18533#undef inline
18534#ifdef HAVE_WINDOWS_H
18535#ifndef WIN32_LEAN_AND_MEAN
18536#define WIN32_LEAN_AND_MEAN
18537#endif
18538#include <windows.h>
18539#ifdef HAVE_WINSOCK2_H
18540#include <winsock2.h>
18541#else
18542#ifdef HAVE_WINSOCK_H
18543#include <winsock.h>
18544#endif
18545#endif
18546#else
18547#ifdef HAVE_SYS_TYPES_H
18548#include <sys/types.h>
18549#endif
18550#ifdef HAVE_SYS_SOCKET_H
18551#include <sys/socket.h>
18552#endif
18553#ifdef HAVE_NETINET_IN_H
18554#include <netinet/in.h>
18555#endif
18556#ifdef HAVE_ARPA_INET_H
18557#include <arpa/inet.h>
18558#endif
18559#endif
18560
18561int main (void)
18562{
18563
18564              $t data = inet_addr ("1.2.3.4");
18565
18566 ;
18567 return 0;
18568}
18569
18570_ACEOF
18571if ac_fn_c_try_link "$LINENO"; then :
18572
18573            curl_cv_in_addr_t_equiv="$t"
18574
18575fi
18576rm -f core conftest.err conftest.$ac_objext \
18577    conftest$ac_exeext conftest.$ac_ext
18578        fi
18579      done
18580
18581fi
18582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
18583$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
18584    case "$curl_cv_in_addr_t_equiv" in
18585      unknown)
18586        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
18587        ;;
18588      *)
18589
18590cat >>confdefs.h <<_ACEOF
18591#define in_addr_t $curl_cv_in_addr_t_equiv
18592_ACEOF
18593
18594        ;;
18595    esac
18596
18597fi
18598
18599
18600
18601
18602   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18603#undef inline
18604#ifdef HAVE_WINDOWS_H
18605#ifndef WIN32_LEAN_AND_MEAN
18606#define WIN32_LEAN_AND_MEAN
18607#endif
18608#include <windows.h>
18609#ifdef HAVE_WINSOCK2_H
18610#include <winsock2.h>
18611#endif
18612#else
18613#ifdef HAVE_SYS_TYPES_H
18614#include <sys/types.h>
18615#endif
18616#ifdef HAVE_SYS_SOCKET_H
18617#include <sys/socket.h>
18618#endif
18619#ifdef HAVE_NETINET_IN_H
18620#include <netinet/in.h>
18621#endif
18622#ifdef HAVE_ARPA_INET_H
18623#include <arpa/inet.h>
18624#endif
18625#endif
18626
18627"
18628if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18629
18630$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
18631
18632fi
18633
18634
18635
18636
18637  for ac_header in signal.h
18638do :
18639  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
18640if test "x$ac_cv_header_signal_h" = xyes; then :
18641  cat >>confdefs.h <<_ACEOF
18642#define HAVE_SIGNAL_H 1
18643_ACEOF
18644
18645fi
18646
18647done
18648
18649  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
18650#ifdef HAVE_SIGNAL_H
18651#include <signal.h>
18652#endif
18653
18654"
18655if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
18656
18657
18658$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
18659
18660
18661fi
18662
18663  case "$ac_cv_type_sig_atomic_t" in
18664    yes)
18665      #
18666      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
18667$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
18668      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670
18671
18672#ifdef HAVE_SIGNAL_H
18673#include <signal.h>
18674#endif
18675
18676int main (void)
18677{
18678
18679          static volatile sig_atomic_t dummy = 0;
18680
18681 ;
18682 return 0;
18683}
18684
18685_ACEOF
18686if ac_fn_c_try_link "$LINENO"; then :
18687
18688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689$as_echo "no" >&6; }
18690        ac_cv_sig_atomic_t_volatile="no"
18691
18692else
18693
18694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18695$as_echo "yes" >&6; }
18696        ac_cv_sig_atomic_t_volatile="yes"
18697
18698fi
18699rm -f core conftest.err conftest.$ac_objext \
18700    conftest$ac_exeext conftest.$ac_ext
18701      #
18702      if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
18703
18704$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
18705
18706      fi
18707      ;;
18708  esac
18709
18710
18711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18712$as_echo_n "checking return type of signal handlers... " >&6; }
18713if ${ac_cv_type_signal+:} false; then :
18714  $as_echo_n "(cached) " >&6
18715else
18716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718#include <sys/types.h>
18719#include <signal.h>
18720
18721int main (void)
18722{
18723return *(signal (0, 0)) (0) == 1;
18724 ;
18725 return 0;
18726}
18727_ACEOF
18728if ac_fn_c_try_compile "$LINENO"; then :
18729  ac_cv_type_signal=int
18730else
18731  ac_cv_type_signal=void
18732fi
18733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734fi
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18736$as_echo "$ac_cv_type_signal" >&6; }
18737
18738cat >>confdefs.h <<_ACEOF
18739#define RETSIGTYPE $ac_cv_type_signal
18740_ACEOF
18741
18742
18743
18744
18745      for ac_header in sys/types.h sys/socket.h
18746do :
18747  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18748ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18749if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18750  cat >>confdefs.h <<_ACEOF
18751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18752_ACEOF
18753
18754fi
18755
18756done
18757
18758  #
18759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
18760$as_echo_n "checking for recv... " >&6; }
18761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764
18765#undef inline
18766#ifdef HAVE_WINDOWS_H
18767#ifndef WIN32_LEAN_AND_MEAN
18768#define WIN32_LEAN_AND_MEAN
18769#endif
18770#include <windows.h>
18771#ifdef HAVE_WINSOCK2_H
18772#include <winsock2.h>
18773#else
18774#ifdef HAVE_WINSOCK_H
18775#include <winsock.h>
18776#endif
18777#endif
18778#else
18779#ifdef HAVE_SYS_TYPES_H
18780#include <sys/types.h>
18781#endif
18782#ifdef HAVE_SYS_SOCKET_H
18783#include <sys/socket.h>
18784#endif
18785#endif
18786
18787int main (void)
18788{
18789
18790      recv(0, 0, 0, 0);
18791
18792 ;
18793 return 0;
18794}
18795
18796_ACEOF
18797if ac_fn_c_try_link "$LINENO"; then :
18798
18799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18800$as_echo "yes" >&6; }
18801    curl_cv_recv="yes"
18802
18803else
18804
18805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806$as_echo "no" >&6; }
18807    curl_cv_recv="no"
18808
18809fi
18810rm -f core conftest.err conftest.$ac_objext \
18811    conftest$ac_exeext conftest.$ac_ext
18812  #
18813  if test "$curl_cv_recv" = "yes"; then
18814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
18815$as_echo_n "checking types of args and return type for recv... " >&6; }
18816if ${curl_cv_func_recv_args+:} false; then :
18817  $as_echo_n "(cached) " >&6
18818else
18819
18820      curl_cv_func_recv_args="unknown"
18821      for recv_retv in 'int' 'ssize_t'; do
18822        for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
18823          for recv_arg2 in 'char *' 'void *'; do
18824            for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
18825              for recv_arg4 in 'int' 'unsigned int'; do
18826                if test "$curl_cv_func_recv_args" = "unknown"; then
18827                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828/* end confdefs.h.  */
18829
18830
18831#undef inline
18832#ifdef HAVE_WINDOWS_H
18833#ifndef WIN32_LEAN_AND_MEAN
18834#define WIN32_LEAN_AND_MEAN
18835#endif
18836#include <windows.h>
18837#ifdef HAVE_WINSOCK2_H
18838#include <winsock2.h>
18839#else
18840#ifdef HAVE_WINSOCK_H
18841#include <winsock.h>
18842#endif
18843#endif
18844#define RECVCALLCONV PASCAL
18845#else
18846#ifdef HAVE_SYS_TYPES_H
18847#include <sys/types.h>
18848#endif
18849#ifdef HAVE_SYS_SOCKET_H
18850#include <sys/socket.h>
18851#endif
18852#define RECVCALLCONV
18853#endif
18854                      extern $recv_retv RECVCALLCONV
18855                      recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
18856
18857int main (void)
18858{
18859
18860                      $recv_arg1 s=0;
18861                      $recv_arg2 buf=0;
18862                      $recv_arg3 len=0;
18863                      $recv_arg4 flags=0;
18864                      $recv_retv res = recv(s, buf, len, flags);
18865
18866 ;
18867 return 0;
18868}
18869
18870_ACEOF
18871if ac_fn_c_try_compile "$LINENO"; then :
18872
18873                    curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
18874
18875fi
18876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877                fi
18878              done
18879            done
18880          done
18881        done
18882      done
18883
18884fi
18885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
18886$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
18887    if test "$curl_cv_func_recv_args" = "unknown"; then
18888      as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
18889    else
18890      recv_prev_IFS=$IFS; IFS=','
18891      set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
18892      IFS=$recv_prev_IFS
18893      shift
18894      #
18895
18896cat >>confdefs.h <<_ACEOF
18897#define RECV_TYPE_ARG1 $1
18898_ACEOF
18899
18900
18901cat >>confdefs.h <<_ACEOF
18902#define RECV_TYPE_ARG2 $2
18903_ACEOF
18904
18905
18906cat >>confdefs.h <<_ACEOF
18907#define RECV_TYPE_ARG3 $3
18908_ACEOF
18909
18910
18911cat >>confdefs.h <<_ACEOF
18912#define RECV_TYPE_ARG4 $4
18913_ACEOF
18914
18915
18916cat >>confdefs.h <<_ACEOF
18917#define RECV_TYPE_RETV $5
18918_ACEOF
18919
18920      #
18921
18922cat >>confdefs.h <<_ACEOF
18923#define HAVE_RECV 1
18924_ACEOF
18925
18926      ac_cv_func_recv="yes"
18927    fi
18928  else
18929    as_fn_error $? "Unable to link function recv" "$LINENO" 5
18930  fi
18931
18932
18933      for ac_header in sys/types.h sys/socket.h
18934do :
18935  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18938  cat >>confdefs.h <<_ACEOF
18939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18940_ACEOF
18941
18942fi
18943
18944done
18945
18946  #
18947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
18948$as_echo_n "checking for recvfrom... " >&6; }
18949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18950/* end confdefs.h.  */
18951
18952
18953#undef inline
18954#ifdef HAVE_WINDOWS_H
18955#ifndef WIN32_LEAN_AND_MEAN
18956#define WIN32_LEAN_AND_MEAN
18957#endif
18958#include <windows.h>
18959#ifdef HAVE_WINSOCK2_H
18960#include <winsock2.h>
18961#else
18962#ifdef HAVE_WINSOCK_H
18963#include <winsock.h>
18964#endif
18965#endif
18966#else
18967#ifdef HAVE_SYS_TYPES_H
18968#include <sys/types.h>
18969#endif
18970#ifdef HAVE_SYS_SOCKET_H
18971#include <sys/socket.h>
18972#endif
18973#endif
18974
18975int main (void)
18976{
18977
18978      recvfrom(0, 0, 0, 0, 0, 0);
18979
18980 ;
18981 return 0;
18982}
18983
18984_ACEOF
18985if ac_fn_c_try_link "$LINENO"; then :
18986
18987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988$as_echo "yes" >&6; }
18989    curl_cv_recvfrom="yes"
18990
18991else
18992
18993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18994$as_echo "no" >&6; }
18995    curl_cv_recvfrom="no"
18996
18997fi
18998rm -f core conftest.err conftest.$ac_objext \
18999    conftest$ac_exeext conftest.$ac_ext
19000  #
19001  if test "$curl_cv_recvfrom" = "yes"; then
19002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
19003$as_echo_n "checking types of args and return type for recvfrom... " >&6; }
19004if ${curl_cv_func_recvfrom_args+:} false; then :
19005  $as_echo_n "(cached) " >&6
19006else
19007
19008      curl_cv_func_recvfrom_args="unknown"
19009      for recvfrom_retv in 'int' 'ssize_t'; do
19010        for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19011          for recvfrom_arg2 in 'char *' 'void *'; do
19012            for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19013              for recvfrom_arg4 in 'int' 'unsigned int'; do
19014                for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
19015                  for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
19016                    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
19017                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018/* end confdefs.h.  */
19019
19020
19021#undef inline
19022#ifdef HAVE_WINDOWS_H
19023#ifndef WIN32_LEAN_AND_MEAN
19024#define WIN32_LEAN_AND_MEAN
19025#endif
19026#include <windows.h>
19027#ifdef HAVE_WINSOCK2_H
19028#include <winsock2.h>
19029#else
19030#ifdef HAVE_WINSOCK_H
19031#include <winsock.h>
19032#endif
19033#endif
19034#define RECVFROMCALLCONV PASCAL
19035#else
19036#ifdef HAVE_SYS_TYPES_H
19037#include <sys/types.h>
19038#endif
19039#ifdef HAVE_SYS_SOCKET_H
19040#include <sys/socket.h>
19041#endif
19042#define RECVFROMCALLCONV
19043#endif
19044                          extern $recvfrom_retv RECVFROMCALLCONV
19045                          recvfrom($recvfrom_arg1, $recvfrom_arg2,
19046                                   $recvfrom_arg3, $recvfrom_arg4,
19047                                   $recvfrom_arg5, $recvfrom_arg6);
19048
19049int main (void)
19050{
19051
19052                          $recvfrom_arg1 s=0;
19053                          $recvfrom_arg2 buf=0;
19054                          $recvfrom_arg3 len=0;
19055                          $recvfrom_arg4 flags=0;
19056                          $recvfrom_arg5 addr=0;
19057                          $recvfrom_arg6 addrlen=0;
19058                          $recvfrom_retv res=0;
19059                          res = recvfrom(s, buf, len, flags, addr, addrlen);
19060
19061 ;
19062 return 0;
19063}
19064
19065_ACEOF
19066if ac_fn_c_try_compile "$LINENO"; then :
19067
19068                        curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
19069
19070fi
19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072                    fi
19073                  done
19074                done
19075              done
19076            done
19077          done
19078        done
19079      done
19080
19081fi
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
19083$as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
19084    # Nearly last minute change for this release starts here
19085
19086cat >>confdefs.h <<_ACEOF
19087#define HAVE_RECVFROM 1
19088_ACEOF
19089
19090    ac_cv_func_recvfrom="yes"
19091    # Nearly last minute change for this release ends here
19092    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
19093      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
19094$as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
19095    else
19096      recvfrom_prev_IFS=$IFS; IFS=','
19097      set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
19098      IFS=$recvfrom_prev_IFS
19099      shift
19100      #
19101      recvfrom_ptrt_arg2=$2
19102      recvfrom_qual_ptrt_arg5=$5
19103      recvfrom_ptrt_arg6=$6
19104      #
19105
19106cat >>confdefs.h <<_ACEOF
19107#define RECVFROM_TYPE_ARG1 $1
19108_ACEOF
19109
19110
19111cat >>confdefs.h <<_ACEOF
19112#define RECVFROM_TYPE_ARG3 $3
19113_ACEOF
19114
19115
19116cat >>confdefs.h <<_ACEOF
19117#define RECVFROM_TYPE_ARG4 $4
19118_ACEOF
19119
19120
19121cat >>confdefs.h <<_ACEOF
19122#define RECVFROM_TYPE_RETV $7
19123_ACEOF
19124
19125      #
19126      prev_sh_opts=$-
19127      #
19128      case $prev_sh_opts in
19129        *f*)
19130          ;;
19131        *)
19132          set -f
19133          ;;
19134      esac
19135      #
19136      case "$recvfrom_qual_ptrt_arg5" in
19137        const*)
19138          recvfrom_qual_arg5=const
19139          recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
19140        ;;
19141        *)
19142          recvfrom_qual_arg5=
19143          recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
19144        ;;
19145      esac
19146      #
19147      recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
19148      recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
19149      recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
19150      #
19151
19152cat >>confdefs.h <<_ACEOF
19153#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
19154_ACEOF
19155
19156
19157cat >>confdefs.h <<_ACEOF
19158#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
19159_ACEOF
19160
19161
19162cat >>confdefs.h <<_ACEOF
19163#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
19164_ACEOF
19165
19166
19167cat >>confdefs.h <<_ACEOF
19168#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
19169_ACEOF
19170
19171      #
19172      if test "$recvfrom_type_arg2" = "void"; then
19173
19174cat >>confdefs.h <<_ACEOF
19175#define RECVFROM_TYPE_ARG2_IS_VOID 1
19176_ACEOF
19177
19178      fi
19179      if test "$recvfrom_type_arg5" = "void"; then
19180
19181cat >>confdefs.h <<_ACEOF
19182#define RECVFROM_TYPE_ARG5_IS_VOID 1
19183_ACEOF
19184
19185      fi
19186      if test "$recvfrom_type_arg6" = "void"; then
19187
19188cat >>confdefs.h <<_ACEOF
19189#define RECVFROM_TYPE_ARG6_IS_VOID 1
19190_ACEOF
19191
19192      fi
19193      #
19194      case $prev_sh_opts in
19195        *f*)
19196          ;;
19197        *)
19198          set +f
19199          ;;
19200      esac
19201      #
19202
19203cat >>confdefs.h <<_ACEOF
19204#define HAVE_RECVFROM 1
19205_ACEOF
19206
19207      ac_cv_func_recvfrom="yes"
19208    fi
19209  else
19210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
19211$as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
19212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
19213$as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
19214  fi
19215
19216
19217      for ac_header in sys/types.h sys/socket.h
19218do :
19219  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19221if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19222  cat >>confdefs.h <<_ACEOF
19223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19224_ACEOF
19225
19226fi
19227
19228done
19229
19230  #
19231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
19232$as_echo_n "checking for send... " >&6; }
19233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234/* end confdefs.h.  */
19235
19236
19237#undef inline
19238#ifdef HAVE_WINDOWS_H
19239#ifndef WIN32_LEAN_AND_MEAN
19240#define WIN32_LEAN_AND_MEAN
19241#endif
19242#include <windows.h>
19243#ifdef HAVE_WINSOCK2_H
19244#include <winsock2.h>
19245#else
19246#ifdef HAVE_WINSOCK_H
19247#include <winsock.h>
19248#endif
19249#endif
19250#else
19251#ifdef HAVE_SYS_TYPES_H
19252#include <sys/types.h>
19253#endif
19254#ifdef HAVE_SYS_SOCKET_H
19255#include <sys/socket.h>
19256#endif
19257#endif
19258
19259int main (void)
19260{
19261
19262      send(0, 0, 0, 0);
19263
19264 ;
19265 return 0;
19266}
19267
19268_ACEOF
19269if ac_fn_c_try_link "$LINENO"; then :
19270
19271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19272$as_echo "yes" >&6; }
19273    curl_cv_send="yes"
19274
19275else
19276
19277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19278$as_echo "no" >&6; }
19279    curl_cv_send="no"
19280
19281fi
19282rm -f core conftest.err conftest.$ac_objext \
19283    conftest$ac_exeext conftest.$ac_ext
19284  #
19285  if test "$curl_cv_send" = "yes"; then
19286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
19287$as_echo_n "checking types of args and return type for send... " >&6; }
19288if ${curl_cv_func_send_args+:} false; then :
19289  $as_echo_n "(cached) " >&6
19290else
19291
19292      curl_cv_func_send_args="unknown"
19293      for send_retv in 'int' 'ssize_t'; do
19294        for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
19295          for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
19296            for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
19297              for send_arg4 in 'int' 'unsigned int'; do
19298                if test "$curl_cv_func_send_args" = "unknown"; then
19299                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300/* end confdefs.h.  */
19301
19302
19303#undef inline
19304#ifdef HAVE_WINDOWS_H
19305#ifndef WIN32_LEAN_AND_MEAN
19306#define WIN32_LEAN_AND_MEAN
19307#endif
19308#include <windows.h>
19309#ifdef HAVE_WINSOCK2_H
19310#include <winsock2.h>
19311#else
19312#ifdef HAVE_WINSOCK_H
19313#include <winsock.h>
19314#endif
19315#endif
19316#define SENDCALLCONV PASCAL
19317#else
19318#ifdef HAVE_SYS_TYPES_H
19319#include <sys/types.h>
19320#endif
19321#ifdef HAVE_SYS_SOCKET_H
19322#include <sys/socket.h>
19323#endif
19324#define SENDCALLCONV
19325#endif
19326                      extern $send_retv SENDCALLCONV
19327                      send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
19328
19329int main (void)
19330{
19331
19332                      $send_arg1 s=0;
19333                      $send_arg3 len=0;
19334                      $send_arg4 flags=0;
19335                      $send_retv res = send(s, 0, len, flags);
19336
19337 ;
19338 return 0;
19339}
19340
19341_ACEOF
19342if ac_fn_c_try_compile "$LINENO"; then :
19343
19344                    curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
19345
19346fi
19347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348                fi
19349              done
19350            done
19351          done
19352        done
19353      done
19354
19355fi
19356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
19357$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
19358    if test "$curl_cv_func_send_args" = "unknown"; then
19359      as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
19360    else
19361      send_prev_IFS=$IFS; IFS=','
19362      set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
19363      IFS=$send_prev_IFS
19364      shift
19365      #
19366      send_qual_type_arg2=$2
19367      #
19368
19369cat >>confdefs.h <<_ACEOF
19370#define SEND_TYPE_ARG1 $1
19371_ACEOF
19372
19373
19374cat >>confdefs.h <<_ACEOF
19375#define SEND_TYPE_ARG3 $3
19376_ACEOF
19377
19378
19379cat >>confdefs.h <<_ACEOF
19380#define SEND_TYPE_ARG4 $4
19381_ACEOF
19382
19383
19384cat >>confdefs.h <<_ACEOF
19385#define SEND_TYPE_RETV $5
19386_ACEOF
19387
19388      #
19389      prev_sh_opts=$-
19390      #
19391      case $prev_sh_opts in
19392        *f*)
19393          ;;
19394        *)
19395          set -f
19396          ;;
19397      esac
19398      #
19399      case "$send_qual_type_arg2" in
19400        const*)
19401          send_qual_arg2=const
19402          send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
19403        ;;
19404        *)
19405          send_qual_arg2=
19406          send_type_arg2=$send_qual_type_arg2
19407        ;;
19408      esac
19409      #
19410
19411cat >>confdefs.h <<_ACEOF
19412#define SEND_QUAL_ARG2 $send_qual_arg2
19413_ACEOF
19414
19415
19416cat >>confdefs.h <<_ACEOF
19417#define SEND_TYPE_ARG2 $send_type_arg2
19418_ACEOF
19419
19420      #
19421      case $prev_sh_opts in
19422        *f*)
19423          ;;
19424        *)
19425          set +f
19426          ;;
19427      esac
19428      #
19429
19430cat >>confdefs.h <<_ACEOF
19431#define HAVE_SEND 1
19432_ACEOF
19433
19434      ac_cv_func_send="yes"
19435    fi
19436  else
19437    as_fn_error $? "Unable to link function send" "$LINENO" 5
19438  fi
19439
19440
19441  for ac_header in sys/types.h sys/socket.h
19442do :
19443  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19444ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19446  cat >>confdefs.h <<_ACEOF
19447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19448_ACEOF
19449
19450fi
19451
19452done
19453
19454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
19455$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
19456if ${ac_cv_msg_nosignal+:} false; then :
19457  $as_echo_n "(cached) " >&6
19458else
19459
19460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461/* end confdefs.h.  */
19462
19463
19464#undef inline
19465#ifdef HAVE_WINDOWS_H
19466#ifndef WIN32_LEAN_AND_MEAN
19467#define WIN32_LEAN_AND_MEAN
19468#endif
19469#include <windows.h>
19470#ifdef HAVE_WINSOCK2_H
19471#include <winsock2.h>
19472#else
19473#ifdef HAVE_WINSOCK_H
19474#include <winsock.h>
19475#endif
19476#endif
19477#else
19478#ifdef HAVE_SYS_TYPES_H
19479#include <sys/types.h>
19480#endif
19481#ifdef HAVE_SYS_SOCKET_H
19482#include <sys/socket.h>
19483#endif
19484#endif
19485
19486int main (void)
19487{
19488
19489        int flag=MSG_NOSIGNAL;
19490
19491 ;
19492 return 0;
19493}
19494
19495_ACEOF
19496if ac_fn_c_try_compile "$LINENO"; then :
19497
19498      ac_cv_msg_nosignal="yes"
19499
19500else
19501
19502      ac_cv_msg_nosignal="no"
19503
19504fi
19505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506
19507fi
19508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
19509$as_echo "$ac_cv_msg_nosignal" >&6; }
19510  case "$ac_cv_msg_nosignal" in
19511    yes)
19512
19513cat >>confdefs.h <<_ACEOF
19514#define HAVE_MSG_NOSIGNAL 1
19515_ACEOF
19516
19517      ;;
19518  esac
19519
19520
19521
19522cares_includes_socket="\
19523/* includes start */
19524#ifdef HAVE_SYS_TYPES_H
19525#  include <sys/types.h>
19526#endif
19527#ifdef HAVE_SOCKET_H
19528#  include <socket.h>
19529#endif
19530/* includes end */"
19531  for ac_header in sys/types.h socket.h
19532do :
19533  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
19535"
19536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19537  cat >>confdefs.h <<_ACEOF
19538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19539_ACEOF
19540
19541fi
19542
19543done
19544
19545
19546
19547      #
19548  tst_links_closesocket="unknown"
19549  tst_proto_closesocket="unknown"
19550  tst_compi_closesocket="unknown"
19551  tst_allow_closesocket="unknown"
19552  #
19553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
19554$as_echo_n "checking if closesocket can be linked... " >&6; }
19555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556/* end confdefs.h.  */
19557
19558
19559      $cares_includes_winsock2
19560      $cares_includes_socket
19561
19562int main (void)
19563{
19564
19565      if(0 != closesocket(0))
19566        return 1;
19567
19568 ;
19569 return 0;
19570}
19571
19572_ACEOF
19573if ac_fn_c_try_link "$LINENO"; then :
19574
19575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19576$as_echo "yes" >&6; }
19577    tst_links_closesocket="yes"
19578
19579else
19580
19581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19582$as_echo "no" >&6; }
19583    tst_links_closesocket="no"
19584
19585fi
19586rm -f core conftest.err conftest.$ac_objext \
19587    conftest$ac_exeext conftest.$ac_ext
19588  #
19589  if test "$tst_links_closesocket" = "yes"; then
19590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
19591$as_echo_n "checking if closesocket is prototyped... " >&6; }
19592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593/* end confdefs.h.  */
19594
19595      $cares_includes_winsock2
19596      $cares_includes_socket
19597
19598_ACEOF
19599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19600  $EGREP "closesocket" >/dev/null 2>&1; then :
19601
19602      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19603$as_echo "yes" >&6; }
19604      tst_proto_closesocket="yes"
19605
19606else
19607
19608      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609$as_echo "no" >&6; }
19610      tst_proto_closesocket="no"
19611
19612fi
19613rm -f conftest*
19614
19615  fi
19616  #
19617  if test "$tst_proto_closesocket" = "yes"; then
19618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
19619$as_echo_n "checking if closesocket is compilable... " >&6; }
19620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621/* end confdefs.h.  */
19622
19623
19624        $cares_includes_winsock2
19625        $cares_includes_socket
19626
19627int main (void)
19628{
19629
19630        if(0 != closesocket(0))
19631          return 1;
19632
19633 ;
19634 return 0;
19635}
19636
19637_ACEOF
19638if ac_fn_c_try_compile "$LINENO"; then :
19639
19640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641$as_echo "yes" >&6; }
19642      tst_compi_closesocket="yes"
19643
19644else
19645
19646      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647$as_echo "no" >&6; }
19648      tst_compi_closesocket="no"
19649
19650fi
19651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652  fi
19653  #
19654  if test "$tst_compi_closesocket" = "yes"; then
19655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
19656$as_echo_n "checking if closesocket usage allowed... " >&6; }
19657    if test "x$cares_disallow_closesocket" != "xyes"; then
19658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19659$as_echo "yes" >&6; }
19660      tst_allow_closesocket="yes"
19661    else
19662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19663$as_echo "no" >&6; }
19664      tst_allow_closesocket="no"
19665    fi
19666  fi
19667  #
19668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
19669$as_echo_n "checking if closesocket might be used... " >&6; }
19670  if test "$tst_links_closesocket" = "yes" &&
19671     test "$tst_proto_closesocket" = "yes" &&
19672     test "$tst_compi_closesocket" = "yes" &&
19673     test "$tst_allow_closesocket" = "yes"; then
19674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19675$as_echo "yes" >&6; }
19676
19677cat >>confdefs.h <<_ACEOF
19678#define HAVE_CLOSESOCKET 1
19679_ACEOF
19680
19681    ac_cv_func_closesocket="yes"
19682  else
19683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19684$as_echo "no" >&6; }
19685    ac_cv_func_closesocket="no"
19686  fi
19687
19688
19689    #
19690  tst_links_closesocket_camel="unknown"
19691  tst_proto_closesocket_camel="unknown"
19692  tst_compi_closesocket_camel="unknown"
19693  tst_allow_closesocket_camel="unknown"
19694  #
19695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
19696$as_echo_n "checking if CloseSocket can be linked... " >&6; }
19697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698/* end confdefs.h.  */
19699
19700
19701      $cares_includes_sys_socket
19702
19703int main (void)
19704{
19705
19706      if(0 != CloseSocket(0))
19707        return 1;
19708
19709 ;
19710 return 0;
19711}
19712
19713_ACEOF
19714if ac_fn_c_try_link "$LINENO"; then :
19715
19716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717$as_echo "yes" >&6; }
19718    tst_links_closesocket_camel="yes"
19719
19720else
19721
19722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19723$as_echo "no" >&6; }
19724    tst_links_closesocket_camel="no"
19725
19726fi
19727rm -f core conftest.err conftest.$ac_objext \
19728    conftest$ac_exeext conftest.$ac_ext
19729  #
19730  if test "$tst_links_closesocket_camel" = "yes"; then
19731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
19732$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
19733    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734/* end confdefs.h.  */
19735
19736      $cares_includes_sys_socket
19737
19738_ACEOF
19739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19740  $EGREP "CloseSocket" >/dev/null 2>&1; then :
19741
19742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19743$as_echo "yes" >&6; }
19744      tst_proto_closesocket_camel="yes"
19745
19746else
19747
19748      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749$as_echo "no" >&6; }
19750      tst_proto_closesocket_camel="no"
19751
19752fi
19753rm -f conftest*
19754
19755  fi
19756  #
19757  if test "$tst_proto_closesocket_camel" = "yes"; then
19758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
19759$as_echo_n "checking if CloseSocket is compilable... " >&6; }
19760    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761/* end confdefs.h.  */
19762
19763
19764        $cares_includes_sys_socket
19765
19766int main (void)
19767{
19768
19769        if(0 != CloseSocket(0))
19770          return 1;
19771
19772 ;
19773 return 0;
19774}
19775
19776_ACEOF
19777if ac_fn_c_try_compile "$LINENO"; then :
19778
19779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19780$as_echo "yes" >&6; }
19781      tst_compi_closesocket_camel="yes"
19782
19783else
19784
19785      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786$as_echo "no" >&6; }
19787      tst_compi_closesocket_camel="no"
19788
19789fi
19790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791  fi
19792  #
19793  if test "$tst_compi_closesocket_camel" = "yes"; then
19794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
19795$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
19796    if test "x$cares_disallow_closesocket_camel" != "xyes"; then
19797      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19798$as_echo "yes" >&6; }
19799      tst_allow_closesocket_camel="yes"
19800    else
19801      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19802$as_echo "no" >&6; }
19803      tst_allow_closesocket_camel="no"
19804    fi
19805  fi
19806  #
19807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
19808$as_echo_n "checking if CloseSocket might be used... " >&6; }
19809  if test "$tst_links_closesocket_camel" = "yes" &&
19810     test "$tst_proto_closesocket_camel" = "yes" &&
19811     test "$tst_compi_closesocket_camel" = "yes" &&
19812     test "$tst_allow_closesocket_camel" = "yes"; then
19813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814$as_echo "yes" >&6; }
19815
19816cat >>confdefs.h <<_ACEOF
19817#define HAVE_CLOSESOCKET_CAMEL 1
19818_ACEOF
19819
19820    ac_cv_func_closesocket_camel="yes"
19821  else
19822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19823$as_echo "no" >&6; }
19824    ac_cv_func_closesocket_camel="no"
19825  fi
19826
19827
19828        #
19829  tst_links_connect="unknown"
19830  tst_proto_connect="unknown"
19831  tst_compi_connect="unknown"
19832  tst_allow_connect="unknown"
19833  #
19834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
19835$as_echo_n "checking if connect can be linked... " >&6; }
19836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837/* end confdefs.h.  */
19838
19839
19840      $cares_includes_winsock2
19841      $cares_includes_sys_socket
19842      $cares_includes_socket
19843
19844int main (void)
19845{
19846
19847      if(0 != connect(0, 0, 0))
19848        return 1;
19849
19850 ;
19851 return 0;
19852}
19853
19854_ACEOF
19855if ac_fn_c_try_link "$LINENO"; then :
19856
19857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19858$as_echo "yes" >&6; }
19859    tst_links_connect="yes"
19860
19861else
19862
19863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864$as_echo "no" >&6; }
19865    tst_links_connect="no"
19866
19867fi
19868rm -f core conftest.err conftest.$ac_objext \
19869    conftest$ac_exeext conftest.$ac_ext
19870  #
19871  if test "$tst_links_connect" = "yes"; then
19872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
19873$as_echo_n "checking if connect is prototyped... " >&6; }
19874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875/* end confdefs.h.  */
19876
19877      $cares_includes_winsock2
19878      $cares_includes_sys_socket
19879      $cares_includes_socket
19880
19881_ACEOF
19882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19883  $EGREP "connect" >/dev/null 2>&1; then :
19884
19885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19886$as_echo "yes" >&6; }
19887      tst_proto_connect="yes"
19888
19889else
19890
19891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892$as_echo "no" >&6; }
19893      tst_proto_connect="no"
19894
19895fi
19896rm -f conftest*
19897
19898  fi
19899  #
19900  if test "$tst_proto_connect" = "yes"; then
19901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
19902$as_echo_n "checking if connect is compilable... " >&6; }
19903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904/* end confdefs.h.  */
19905
19906
19907        $cares_includes_winsock2
19908        $cares_includes_sys_socket
19909        $cares_includes_socket
19910
19911int main (void)
19912{
19913
19914        if(0 != connect(0, 0, 0))
19915          return 1;
19916
19917 ;
19918 return 0;
19919}
19920
19921_ACEOF
19922if ac_fn_c_try_compile "$LINENO"; then :
19923
19924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19925$as_echo "yes" >&6; }
19926      tst_compi_connect="yes"
19927
19928else
19929
19930      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19931$as_echo "no" >&6; }
19932      tst_compi_connect="no"
19933
19934fi
19935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936  fi
19937  #
19938  if test "$tst_compi_connect" = "yes"; then
19939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
19940$as_echo_n "checking if connect usage allowed... " >&6; }
19941    if test "x$cares_disallow_connect" != "xyes"; then
19942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19943$as_echo "yes" >&6; }
19944      tst_allow_connect="yes"
19945    else
19946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947$as_echo "no" >&6; }
19948      tst_allow_connect="no"
19949    fi
19950  fi
19951  #
19952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
19953$as_echo_n "checking if connect might be used... " >&6; }
19954  if test "$tst_links_connect" = "yes" &&
19955     test "$tst_proto_connect" = "yes" &&
19956     test "$tst_compi_connect" = "yes" &&
19957     test "$tst_allow_connect" = "yes"; then
19958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19959$as_echo "yes" >&6; }
19960
19961cat >>confdefs.h <<_ACEOF
19962#define HAVE_CONNECT 1
19963_ACEOF
19964
19965    ac_cv_func_connect="yes"
19966  else
19967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968$as_echo "no" >&6; }
19969    ac_cv_func_connect="no"
19970  fi
19971
19972
19973cares_includes_fcntl="\
19974/* includes start */
19975#ifdef HAVE_SYS_TYPES_H
19976#  include <sys/types.h>
19977#endif
19978#ifdef HAVE_UNISTD_H
19979#  include <unistd.h>
19980#endif
19981#ifdef HAVE_FCNTL_H
19982#  include <fcntl.h>
19983#endif
19984/* includes end */"
19985  for ac_header in sys/types.h unistd.h fcntl.h
19986do :
19987  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
19989"
19990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19991  cat >>confdefs.h <<_ACEOF
19992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19993_ACEOF
19994
19995fi
19996
19997done
19998
19999
20000
20001    #
20002  tst_links_fcntl="unknown"
20003  tst_proto_fcntl="unknown"
20004  tst_compi_fcntl="unknown"
20005  tst_allow_fcntl="unknown"
20006  #
20007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
20008$as_echo_n "checking if fcntl can be linked... " >&6; }
20009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010/* end confdefs.h.  */
20011
20012
20013#define fcntl innocuous_fcntl
20014#ifdef __STDC__
20015# include <limits.h>
20016#else
20017# include <assert.h>
20018#endif
20019#undef fcntl
20020#ifdef __cplusplus
20021extern "C"
20022#endif
20023char fcntl ();
20024#if defined __stub_fcntl || defined __stub___fcntl
20025choke me
20026#endif
20027
20028int main (void)
20029{
20030return fcntl ();
20031 ;
20032 return 0;
20033}
20034
20035_ACEOF
20036if ac_fn_c_try_link "$LINENO"; then :
20037
20038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039$as_echo "yes" >&6; }
20040    tst_links_fcntl="yes"
20041
20042else
20043
20044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045$as_echo "no" >&6; }
20046    tst_links_fcntl="no"
20047
20048fi
20049rm -f core conftest.err conftest.$ac_objext \
20050    conftest$ac_exeext conftest.$ac_ext
20051  #
20052  if test "$tst_links_fcntl" = "yes"; then
20053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
20054$as_echo_n "checking if fcntl is prototyped... " >&6; }
20055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056/* end confdefs.h.  */
20057
20058      $cares_includes_fcntl
20059
20060_ACEOF
20061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20062  $EGREP "fcntl" >/dev/null 2>&1; then :
20063
20064      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20065$as_echo "yes" >&6; }
20066      tst_proto_fcntl="yes"
20067
20068else
20069
20070      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071$as_echo "no" >&6; }
20072      tst_proto_fcntl="no"
20073
20074fi
20075rm -f conftest*
20076
20077  fi
20078  #
20079  if test "$tst_proto_fcntl" = "yes"; then
20080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
20081$as_echo_n "checking if fcntl is compilable... " >&6; }
20082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083/* end confdefs.h.  */
20084
20085
20086        $cares_includes_fcntl
20087
20088int main (void)
20089{
20090
20091        if(0 != fcntl(0, 0, 0))
20092          return 1;
20093
20094 ;
20095 return 0;
20096}
20097
20098_ACEOF
20099if ac_fn_c_try_compile "$LINENO"; then :
20100
20101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20102$as_echo "yes" >&6; }
20103      tst_compi_fcntl="yes"
20104
20105else
20106
20107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20108$as_echo "no" >&6; }
20109      tst_compi_fcntl="no"
20110
20111fi
20112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113  fi
20114  #
20115  if test "$tst_compi_fcntl" = "yes"; then
20116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
20117$as_echo_n "checking if fcntl usage allowed... " >&6; }
20118    if test "x$cares_disallow_fcntl" != "xyes"; then
20119      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20120$as_echo "yes" >&6; }
20121      tst_allow_fcntl="yes"
20122    else
20123      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124$as_echo "no" >&6; }
20125      tst_allow_fcntl="no"
20126    fi
20127  fi
20128  #
20129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
20130$as_echo_n "checking if fcntl might be used... " >&6; }
20131  if test "$tst_links_fcntl" = "yes" &&
20132     test "$tst_proto_fcntl" = "yes" &&
20133     test "$tst_compi_fcntl" = "yes" &&
20134     test "$tst_allow_fcntl" = "yes"; then
20135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20136$as_echo "yes" >&6; }
20137
20138cat >>confdefs.h <<_ACEOF
20139#define HAVE_FCNTL 1
20140_ACEOF
20141
20142    ac_cv_func_fcntl="yes"
20143
20144  #
20145  tst_compi_fcntl_o_nonblock="unknown"
20146  tst_allow_fcntl_o_nonblock="unknown"
20147  #
20148  case $host_os in
20149    sunos4* | aix3* | beos*)
20150            cares_disallow_fcntl_o_nonblock="yes"
20151      ;;
20152  esac
20153  #
20154  if test "$ac_cv_func_fcntl" = "yes"; then
20155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
20156$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
20157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158/* end confdefs.h.  */
20159
20160
20161        $cares_includes_fcntl
20162
20163int main (void)
20164{
20165
20166        int flags = 0;
20167        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
20168          return 1;
20169
20170 ;
20171 return 0;
20172}
20173
20174_ACEOF
20175if ac_fn_c_try_compile "$LINENO"; then :
20176
20177      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20178$as_echo "yes" >&6; }
20179      tst_compi_fcntl_o_nonblock="yes"
20180
20181else
20182
20183      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20184$as_echo "no" >&6; }
20185      tst_compi_fcntl_o_nonblock="no"
20186
20187fi
20188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189  fi
20190  #
20191  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
20192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
20193$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
20194    if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
20195      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20196$as_echo "yes" >&6; }
20197      tst_allow_fcntl_o_nonblock="yes"
20198    else
20199      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200$as_echo "no" >&6; }
20201      tst_allow_fcntl_o_nonblock="no"
20202    fi
20203  fi
20204  #
20205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
20206$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
20207  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
20208     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
20209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20210$as_echo "yes" >&6; }
20211
20212cat >>confdefs.h <<_ACEOF
20213#define HAVE_FCNTL_O_NONBLOCK 1
20214_ACEOF
20215
20216    ac_cv_func_fcntl_o_nonblock="yes"
20217  else
20218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219$as_echo "no" >&6; }
20220    ac_cv_func_fcntl_o_nonblock="no"
20221  fi
20222
20223  else
20224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20225$as_echo "no" >&6; }
20226    ac_cv_func_fcntl="no"
20227  fi
20228
20229
20230cares_includes_netdb="\
20231/* includes start */
20232#ifdef HAVE_SYS_TYPES_H
20233#  include <sys/types.h>
20234#endif
20235#ifdef HAVE_NETDB_H
20236#  include <netdb.h>
20237#endif
20238/* includes end */"
20239  for ac_header in sys/types.h netdb.h
20240do :
20241  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20242ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
20243"
20244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20245  cat >>confdefs.h <<_ACEOF
20246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20247_ACEOF
20248
20249fi
20250
20251done
20252
20253
20254
20255        #
20256  tst_links_freeaddrinfo="unknown"
20257  tst_proto_freeaddrinfo="unknown"
20258  tst_compi_freeaddrinfo="unknown"
20259  tst_allow_freeaddrinfo="unknown"
20260  #
20261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
20262$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
20263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264/* end confdefs.h.  */
20265
20266
20267      $cares_includes_ws2tcpip
20268      $cares_includes_sys_socket
20269      $cares_includes_netdb
20270
20271int main (void)
20272{
20273
20274      freeaddrinfo(0);
20275
20276 ;
20277 return 0;
20278}
20279
20280_ACEOF
20281if ac_fn_c_try_link "$LINENO"; then :
20282
20283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20284$as_echo "yes" >&6; }
20285    tst_links_freeaddrinfo="yes"
20286
20287else
20288
20289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290$as_echo "no" >&6; }
20291    tst_links_freeaddrinfo="no"
20292
20293fi
20294rm -f core conftest.err conftest.$ac_objext \
20295    conftest$ac_exeext conftest.$ac_ext
20296  #
20297  if test "$tst_links_freeaddrinfo" = "yes"; then
20298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
20299$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
20300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301/* end confdefs.h.  */
20302
20303      $cares_includes_ws2tcpip
20304      $cares_includes_sys_socket
20305      $cares_includes_netdb
20306
20307_ACEOF
20308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20309  $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
20310
20311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20312$as_echo "yes" >&6; }
20313      tst_proto_freeaddrinfo="yes"
20314
20315else
20316
20317      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318$as_echo "no" >&6; }
20319      tst_proto_freeaddrinfo="no"
20320
20321fi
20322rm -f conftest*
20323
20324  fi
20325  #
20326  if test "$tst_proto_freeaddrinfo" = "yes"; then
20327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
20328$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
20329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20330/* end confdefs.h.  */
20331
20332
20333        $cares_includes_ws2tcpip
20334        $cares_includes_sys_socket
20335        $cares_includes_netdb
20336
20337int main (void)
20338{
20339
20340        freeaddrinfo(0);
20341
20342 ;
20343 return 0;
20344}
20345
20346_ACEOF
20347if ac_fn_c_try_compile "$LINENO"; then :
20348
20349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20350$as_echo "yes" >&6; }
20351      tst_compi_freeaddrinfo="yes"
20352
20353else
20354
20355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356$as_echo "no" >&6; }
20357      tst_compi_freeaddrinfo="no"
20358
20359fi
20360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361  fi
20362  #
20363  if test "$tst_compi_freeaddrinfo" = "yes"; then
20364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
20365$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
20366    if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
20367      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20368$as_echo "yes" >&6; }
20369      tst_allow_freeaddrinfo="yes"
20370    else
20371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20372$as_echo "no" >&6; }
20373      tst_allow_freeaddrinfo="no"
20374    fi
20375  fi
20376  #
20377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
20378$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
20379  if test "$tst_links_freeaddrinfo" = "yes" &&
20380     test "$tst_proto_freeaddrinfo" = "yes" &&
20381     test "$tst_compi_freeaddrinfo" = "yes" &&
20382     test "$tst_allow_freeaddrinfo" = "yes"; then
20383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384$as_echo "yes" >&6; }
20385
20386cat >>confdefs.h <<_ACEOF
20387#define HAVE_FREEADDRINFO 1
20388_ACEOF
20389
20390    ac_cv_func_freeaddrinfo="yes"
20391  else
20392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393$as_echo "no" >&6; }
20394    ac_cv_func_freeaddrinfo="no"
20395  fi
20396
20397
20398cares_includes_stdlib="\
20399/* includes start */
20400#ifdef HAVE_SYS_TYPES_H
20401#  include <sys/types.h>
20402#endif
20403#ifdef HAVE_STDLIB_H
20404#  include <stdlib.h>
20405#endif
20406/* includes end */"
20407  for ac_header in sys/types.h stdlib.h
20408do :
20409  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20410ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
20411"
20412if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20413  cat >>confdefs.h <<_ACEOF
20414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20415_ACEOF
20416
20417fi
20418
20419done
20420
20421
20422
20423cares_includes_string="\
20424/* includes start */
20425#ifdef HAVE_SYS_TYPES_H
20426#  include <sys/types.h>
20427#endif
20428#ifdef HAVE_STRING_H
20429#  include <string.h>
20430#endif
20431#ifdef HAVE_STRINGS_H
20432#  include <strings.h>
20433#endif
20434/* includes end */"
20435  for ac_header in sys/types.h string.h strings.h
20436do :
20437  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
20439"
20440if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20441  cat >>confdefs.h <<_ACEOF
20442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20443_ACEOF
20444
20445fi
20446
20447done
20448
20449
20450
20451            #
20452  tst_links_getaddrinfo="unknown"
20453  tst_proto_getaddrinfo="unknown"
20454  tst_compi_getaddrinfo="unknown"
20455  tst_works_getaddrinfo="unknown"
20456  tst_allow_getaddrinfo="unknown"
20457  tst_tsafe_getaddrinfo="unknown"
20458  #
20459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
20460$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
20461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462/* end confdefs.h.  */
20463
20464
20465      $cares_includes_ws2tcpip
20466      $cares_includes_sys_socket
20467      $cares_includes_netdb
20468
20469int main (void)
20470{
20471
20472      if(0 != getaddrinfo(0, 0, 0, 0))
20473        return 1;
20474
20475 ;
20476 return 0;
20477}
20478
20479_ACEOF
20480if ac_fn_c_try_link "$LINENO"; then :
20481
20482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20483$as_echo "yes" >&6; }
20484    tst_links_getaddrinfo="yes"
20485
20486else
20487
20488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20489$as_echo "no" >&6; }
20490    tst_links_getaddrinfo="no"
20491
20492fi
20493rm -f core conftest.err conftest.$ac_objext \
20494    conftest$ac_exeext conftest.$ac_ext
20495  #
20496  if test "$tst_links_getaddrinfo" = "yes"; then
20497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
20498$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
20499    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500/* end confdefs.h.  */
20501
20502      $cares_includes_ws2tcpip
20503      $cares_includes_sys_socket
20504      $cares_includes_netdb
20505
20506_ACEOF
20507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20508  $EGREP "getaddrinfo" >/dev/null 2>&1; then :
20509
20510      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20511$as_echo "yes" >&6; }
20512      tst_proto_getaddrinfo="yes"
20513
20514else
20515
20516      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20517$as_echo "no" >&6; }
20518      tst_proto_getaddrinfo="no"
20519
20520fi
20521rm -f conftest*
20522
20523  fi
20524  #
20525  if test "$tst_proto_getaddrinfo" = "yes"; then
20526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
20527$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
20528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529/* end confdefs.h.  */
20530
20531
20532        $cares_includes_ws2tcpip
20533        $cares_includes_sys_socket
20534        $cares_includes_netdb
20535
20536int main (void)
20537{
20538
20539        if(0 != getaddrinfo(0, 0, 0, 0))
20540          return 1;
20541
20542 ;
20543 return 0;
20544}
20545
20546_ACEOF
20547if ac_fn_c_try_compile "$LINENO"; then :
20548
20549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20550$as_echo "yes" >&6; }
20551      tst_compi_getaddrinfo="yes"
20552
20553else
20554
20555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20556$as_echo "no" >&6; }
20557      tst_compi_getaddrinfo="no"
20558
20559fi
20560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561  fi
20562  #
20563    if test "x$cross_compiling" != "xyes" &&
20564    test "$tst_compi_getaddrinfo" = "yes"; then
20565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
20566$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
20567    if test "$cross_compiling" = yes; then :
20568  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20570as_fn_error $? "cannot run test program while cross compiling
20571See \`config.log' for more details" "$LINENO" 5; }
20572else
20573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574/* end confdefs.h.  */
20575
20576
20577        $cares_includes_ws2tcpip
20578        $cares_includes_stdlib
20579        $cares_includes_string
20580        $cares_includes_sys_socket
20581        $cares_includes_netdb
20582
20583int main (void)
20584{
20585
20586        struct addrinfo hints;
20587        struct addrinfo *ai = 0;
20588        int error;
20589
20590        memset(&hints, 0, sizeof(hints));
20591        hints.ai_flags = AI_NUMERICHOST;
20592        hints.ai_family = AF_UNSPEC;
20593        hints.ai_socktype = SOCK_STREAM;
20594        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
20595        if(error || !ai)
20596          exit(1); /* fail */
20597        else
20598          exit(0);
20599
20600 ;
20601 return 0;
20602}
20603
20604_ACEOF
20605if ac_fn_c_try_run "$LINENO"; then :
20606
20607      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20608$as_echo "yes" >&6; }
20609      tst_works_getaddrinfo="yes"
20610
20611else
20612
20613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20614$as_echo "no" >&6; }
20615      tst_works_getaddrinfo="no"
20616
20617fi
20618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20619  conftest.$ac_objext conftest.beam conftest.$ac_ext
20620fi
20621
20622  fi
20623  #
20624  if test "$tst_compi_getaddrinfo" = "yes" &&
20625    test "$tst_works_getaddrinfo" != "no"; then
20626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
20627$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
20628    if test "x$cares_disallow_getaddrinfo" != "xyes"; then
20629      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20630$as_echo "yes" >&6; }
20631      tst_allow_getaddrinfo="yes"
20632    else
20633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20634$as_echo "no" >&6; }
20635      tst_allow_getaddrinfo="no"
20636    fi
20637  fi
20638  #
20639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
20640$as_echo_n "checking if getaddrinfo might be used... " >&6; }
20641  if test "$tst_links_getaddrinfo" = "yes" &&
20642     test "$tst_proto_getaddrinfo" = "yes" &&
20643     test "$tst_compi_getaddrinfo" = "yes" &&
20644     test "$tst_allow_getaddrinfo" = "yes" &&
20645     test "$tst_works_getaddrinfo" != "no"; then
20646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20647$as_echo "yes" >&6; }
20648
20649cat >>confdefs.h <<_ACEOF
20650#define HAVE_GETADDRINFO 1
20651_ACEOF
20652
20653    ac_cv_func_getaddrinfo="yes"
20654  else
20655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656$as_echo "no" >&6; }
20657    ac_cv_func_getaddrinfo="no"
20658    ac_cv_func_getaddrinfo_threadsafe="no"
20659  fi
20660  #
20661  if test "$ac_cv_func_getaddrinfo" = "yes"; then
20662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
20663$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
20664    case $host_os in
20665      aix[1234].* | aix5.[01].*)
20666                tst_tsafe_getaddrinfo="no"
20667        ;;
20668      aix*)
20669                tst_tsafe_getaddrinfo="yes"
20670        ;;
20671      darwin[12345].*)
20672                tst_tsafe_getaddrinfo="no"
20673        ;;
20674      darwin*)
20675                tst_tsafe_getaddrinfo="yes"
20676        ;;
20677      freebsd[1234].* | freebsd5.[1234]*)
20678                tst_tsafe_getaddrinfo="no"
20679        ;;
20680      freebsd*)
20681                tst_tsafe_getaddrinfo="yes"
20682        ;;
20683      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
20684                tst_tsafe_getaddrinfo="no"
20685        ;;
20686      hpux*)
20687                tst_tsafe_getaddrinfo="yes"
20688        ;;
20689      netbsd[123].*)
20690                tst_tsafe_getaddrinfo="no"
20691        ;;
20692      netbsd*)
20693                tst_tsafe_getaddrinfo="yes"
20694        ;;
20695      *bsd*)
20696                tst_tsafe_getaddrinfo="no"
20697        ;;
20698      solaris2*)
20699                tst_tsafe_getaddrinfo="yes"
20700        ;;
20701    esac
20702    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
20703
20704
20705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20706/* end confdefs.h.  */
20707
20708
20709        $cares_includes_ws2tcpip
20710        $cares_includes_sys_socket
20711        $cares_includes_netdb
20712
20713int main (void)
20714{
20715#ifdef h_errno
20716  return 0;
20717#else
20718  force compilation error
20719#endif
20720}
20721
20722
20723_ACEOF
20724if ac_fn_c_try_compile "$LINENO"; then :
20725
20726    tst_symbol_defined="yes"
20727
20728else
20729
20730    tst_symbol_defined="no"
20731
20732fi
20733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734  if test "$tst_symbol_defined" = "yes"; then
20735    curl_cv_have_def_h_errno=yes
20736
20737  else
20738    curl_cv_have_def_h_errno=no
20739
20740  fi
20741
20742      if test "$curl_cv_have_def_h_errno" = "no"; then
20743        tst_tsafe_getaddrinfo="no"
20744      fi
20745    fi
20746    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
20747      tst_tsafe_getaddrinfo="yes"
20748    fi
20749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
20750$as_echo "$tst_tsafe_getaddrinfo" >&6; }
20751    if test "$tst_tsafe_getaddrinfo" = "yes"; then
20752
20753cat >>confdefs.h <<_ACEOF
20754#define HAVE_GETADDRINFO_THREADSAFE 1
20755_ACEOF
20756
20757      ac_cv_func_getaddrinfo_threadsafe="yes"
20758    else
20759      ac_cv_func_getaddrinfo_threadsafe="no"
20760    fi
20761  fi
20762
20763
20764    #
20765  tst_links_getenv="unknown"
20766  tst_proto_getenv="unknown"
20767  tst_compi_getenv="unknown"
20768  tst_allow_getenv="unknown"
20769  #
20770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
20771$as_echo_n "checking if getenv can be linked... " >&6; }
20772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773/* end confdefs.h.  */
20774
20775
20776#define getenv innocuous_getenv
20777#ifdef __STDC__
20778# include <limits.h>
20779#else
20780# include <assert.h>
20781#endif
20782#undef getenv
20783#ifdef __cplusplus
20784extern "C"
20785#endif
20786char getenv ();
20787#if defined __stub_getenv || defined __stub___getenv
20788choke me
20789#endif
20790
20791int main (void)
20792{
20793return getenv ();
20794 ;
20795 return 0;
20796}
20797
20798_ACEOF
20799if ac_fn_c_try_link "$LINENO"; then :
20800
20801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20802$as_echo "yes" >&6; }
20803    tst_links_getenv="yes"
20804
20805else
20806
20807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20808$as_echo "no" >&6; }
20809    tst_links_getenv="no"
20810
20811fi
20812rm -f core conftest.err conftest.$ac_objext \
20813    conftest$ac_exeext conftest.$ac_ext
20814  #
20815  if test "$tst_links_getenv" = "yes"; then
20816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
20817$as_echo_n "checking if getenv is prototyped... " >&6; }
20818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819/* end confdefs.h.  */
20820
20821      $cares_includes_stdlib
20822
20823_ACEOF
20824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825  $EGREP "getenv" >/dev/null 2>&1; then :
20826
20827      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20828$as_echo "yes" >&6; }
20829      tst_proto_getenv="yes"
20830
20831else
20832
20833      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834$as_echo "no" >&6; }
20835      tst_proto_getenv="no"
20836
20837fi
20838rm -f conftest*
20839
20840  fi
20841  #
20842  if test "$tst_proto_getenv" = "yes"; then
20843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
20844$as_echo_n "checking if getenv is compilable... " >&6; }
20845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846/* end confdefs.h.  */
20847
20848
20849        $cares_includes_stdlib
20850
20851int main (void)
20852{
20853
20854        if(0 != getenv(0))
20855          return 1;
20856
20857 ;
20858 return 0;
20859}
20860
20861_ACEOF
20862if ac_fn_c_try_compile "$LINENO"; then :
20863
20864      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20865$as_echo "yes" >&6; }
20866      tst_compi_getenv="yes"
20867
20868else
20869
20870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20871$as_echo "no" >&6; }
20872      tst_compi_getenv="no"
20873
20874fi
20875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876  fi
20877  #
20878  if test "$tst_compi_getenv" = "yes"; then
20879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
20880$as_echo_n "checking if getenv usage allowed... " >&6; }
20881    if test "x$cares_disallow_getenv" != "xyes"; then
20882      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20883$as_echo "yes" >&6; }
20884      tst_allow_getenv="yes"
20885    else
20886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887$as_echo "no" >&6; }
20888      tst_allow_getenv="no"
20889    fi
20890  fi
20891  #
20892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
20893$as_echo_n "checking if getenv might be used... " >&6; }
20894  if test "$tst_links_getenv" = "yes" &&
20895     test "$tst_proto_getenv" = "yes" &&
20896     test "$tst_compi_getenv" = "yes" &&
20897     test "$tst_allow_getenv" = "yes"; then
20898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20899$as_echo "yes" >&6; }
20900
20901cat >>confdefs.h <<_ACEOF
20902#define HAVE_GETENV 1
20903_ACEOF
20904
20905    ac_cv_func_getenv="yes"
20906  else
20907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908$as_echo "no" >&6; }
20909    ac_cv_func_getenv="no"
20910  fi
20911
20912
20913      #
20914  tst_links_gethostbyaddr="unknown"
20915  tst_proto_gethostbyaddr="unknown"
20916  tst_compi_gethostbyaddr="unknown"
20917  tst_allow_gethostbyaddr="unknown"
20918  #
20919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
20920$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
20921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922/* end confdefs.h.  */
20923
20924
20925      $cares_includes_winsock2
20926      $cares_includes_netdb
20927
20928int main (void)
20929{
20930
20931      if(0 != gethostbyaddr(0, 0, 0))
20932        return 1;
20933
20934 ;
20935 return 0;
20936}
20937
20938_ACEOF
20939if ac_fn_c_try_link "$LINENO"; then :
20940
20941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20942$as_echo "yes" >&6; }
20943    tst_links_gethostbyaddr="yes"
20944
20945else
20946
20947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948$as_echo "no" >&6; }
20949    tst_links_gethostbyaddr="no"
20950
20951fi
20952rm -f core conftest.err conftest.$ac_objext \
20953    conftest$ac_exeext conftest.$ac_ext
20954  #
20955  if test "$tst_links_gethostbyaddr" = "yes"; then
20956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
20957$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
20958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959/* end confdefs.h.  */
20960
20961      $cares_includes_winsock2
20962      $cares_includes_netdb
20963
20964_ACEOF
20965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20966  $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
20967
20968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20969$as_echo "yes" >&6; }
20970      tst_proto_gethostbyaddr="yes"
20971
20972else
20973
20974      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20975$as_echo "no" >&6; }
20976      tst_proto_gethostbyaddr="no"
20977
20978fi
20979rm -f conftest*
20980
20981  fi
20982  #
20983  if test "$tst_proto_gethostbyaddr" = "yes"; then
20984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
20985$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
20986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987/* end confdefs.h.  */
20988
20989
20990        $cares_includes_winsock2
20991        $cares_includes_netdb
20992
20993int main (void)
20994{
20995
20996        if(0 != gethostbyaddr(0, 0, 0))
20997          return 1;
20998
20999 ;
21000 return 0;
21001}
21002
21003_ACEOF
21004if ac_fn_c_try_compile "$LINENO"; then :
21005
21006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21007$as_echo "yes" >&6; }
21008      tst_compi_gethostbyaddr="yes"
21009
21010else
21011
21012      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21013$as_echo "no" >&6; }
21014      tst_compi_gethostbyaddr="no"
21015
21016fi
21017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018  fi
21019  #
21020  if test "$tst_compi_gethostbyaddr" = "yes"; then
21021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
21022$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
21023    if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
21024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21025$as_echo "yes" >&6; }
21026      tst_allow_gethostbyaddr="yes"
21027    else
21028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21029$as_echo "no" >&6; }
21030      tst_allow_gethostbyaddr="no"
21031    fi
21032  fi
21033  #
21034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
21035$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
21036  if test "$tst_links_gethostbyaddr" = "yes" &&
21037     test "$tst_proto_gethostbyaddr" = "yes" &&
21038     test "$tst_compi_gethostbyaddr" = "yes" &&
21039     test "$tst_allow_gethostbyaddr" = "yes"; then
21040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21041$as_echo "yes" >&6; }
21042
21043cat >>confdefs.h <<_ACEOF
21044#define HAVE_GETHOSTBYADDR 1
21045_ACEOF
21046
21047    ac_cv_func_gethostbyaddr="yes"
21048  else
21049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21050$as_echo "no" >&6; }
21051    ac_cv_func_gethostbyaddr="no"
21052  fi
21053
21054
21055      #
21056  tst_links_gethostbyname="unknown"
21057  tst_proto_gethostbyname="unknown"
21058  tst_compi_gethostbyname="unknown"
21059  tst_allow_gethostbyname="unknown"
21060  #
21061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
21062$as_echo_n "checking if gethostbyname can be linked... " >&6; }
21063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064/* end confdefs.h.  */
21065
21066
21067      $cares_includes_winsock2
21068      $cares_includes_netdb
21069
21070int main (void)
21071{
21072
21073      if(0 != gethostbyname(0))
21074        return 1;
21075
21076 ;
21077 return 0;
21078}
21079
21080_ACEOF
21081if ac_fn_c_try_link "$LINENO"; then :
21082
21083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21084$as_echo "yes" >&6; }
21085    tst_links_gethostbyname="yes"
21086
21087else
21088
21089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090$as_echo "no" >&6; }
21091    tst_links_gethostbyname="no"
21092
21093fi
21094rm -f core conftest.err conftest.$ac_objext \
21095    conftest$ac_exeext conftest.$ac_ext
21096  #
21097  if test "$tst_links_gethostbyname" = "yes"; then
21098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
21099$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
21100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21101/* end confdefs.h.  */
21102
21103      $cares_includes_winsock2
21104      $cares_includes_netdb
21105
21106_ACEOF
21107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21108  $EGREP "gethostbyname" >/dev/null 2>&1; then :
21109
21110      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21111$as_echo "yes" >&6; }
21112      tst_proto_gethostbyname="yes"
21113
21114else
21115
21116      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21117$as_echo "no" >&6; }
21118      tst_proto_gethostbyname="no"
21119
21120fi
21121rm -f conftest*
21122
21123  fi
21124  #
21125  if test "$tst_proto_gethostbyname" = "yes"; then
21126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
21127$as_echo_n "checking if gethostbyname is compilable... " >&6; }
21128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129/* end confdefs.h.  */
21130
21131
21132        $cares_includes_winsock2
21133        $cares_includes_netdb
21134
21135int main (void)
21136{
21137
21138        if(0 != gethostbyname(0))
21139          return 1;
21140
21141 ;
21142 return 0;
21143}
21144
21145_ACEOF
21146if ac_fn_c_try_compile "$LINENO"; then :
21147
21148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21149$as_echo "yes" >&6; }
21150      tst_compi_gethostbyname="yes"
21151
21152else
21153
21154      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21155$as_echo "no" >&6; }
21156      tst_compi_gethostbyname="no"
21157
21158fi
21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160  fi
21161  #
21162  if test "$tst_compi_gethostbyname" = "yes"; then
21163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
21164$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
21165    if test "x$cares_disallow_gethostbyname" != "xyes"; then
21166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21167$as_echo "yes" >&6; }
21168      tst_allow_gethostbyname="yes"
21169    else
21170      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21171$as_echo "no" >&6; }
21172      tst_allow_gethostbyname="no"
21173    fi
21174  fi
21175  #
21176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
21177$as_echo_n "checking if gethostbyname might be used... " >&6; }
21178  if test "$tst_links_gethostbyname" = "yes" &&
21179     test "$tst_proto_gethostbyname" = "yes" &&
21180     test "$tst_compi_gethostbyname" = "yes" &&
21181     test "$tst_allow_gethostbyname" = "yes"; then
21182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183$as_echo "yes" >&6; }
21184
21185cat >>confdefs.h <<_ACEOF
21186#define HAVE_GETHOSTBYNAME 1
21187_ACEOF
21188
21189    ac_cv_func_gethostbyname="yes"
21190  else
21191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21192$as_echo "no" >&6; }
21193    ac_cv_func_gethostbyname="no"
21194  fi
21195
21196
21197cares_includes_unistd="\
21198/* includes start */
21199#ifdef HAVE_SYS_TYPES_H
21200#  include <sys/types.h>
21201#endif
21202#ifdef HAVE_UNISTD_H
21203#  include <unistd.h>
21204#endif
21205/* includes end */"
21206  for ac_header in sys/types.h unistd.h
21207do :
21208  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21209ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
21210"
21211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21212  cat >>confdefs.h <<_ACEOF
21213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21214_ACEOF
21215
21216fi
21217
21218done
21219
21220
21221
21222      #
21223  tst_links_gethostname="unknown"
21224  tst_proto_gethostname="unknown"
21225  tst_compi_gethostname="unknown"
21226  tst_allow_gethostname="unknown"
21227  #
21228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
21229$as_echo_n "checking if gethostname can be linked... " >&6; }
21230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231/* end confdefs.h.  */
21232
21233
21234      $cares_includes_winsock2
21235      $cares_includes_unistd
21236
21237int main (void)
21238{
21239
21240      if(0 != gethostname(0, 0))
21241        return 1;
21242
21243 ;
21244 return 0;
21245}
21246
21247_ACEOF
21248if ac_fn_c_try_link "$LINENO"; then :
21249
21250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21251$as_echo "yes" >&6; }
21252    tst_links_gethostname="yes"
21253
21254else
21255
21256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21257$as_echo "no" >&6; }
21258    tst_links_gethostname="no"
21259
21260fi
21261rm -f core conftest.err conftest.$ac_objext \
21262    conftest$ac_exeext conftest.$ac_ext
21263  #
21264  if test "$tst_links_gethostname" = "yes"; then
21265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
21266$as_echo_n "checking if gethostname is prototyped... " >&6; }
21267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268/* end confdefs.h.  */
21269
21270      $cares_includes_winsock2
21271      $cares_includes_unistd
21272
21273_ACEOF
21274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21275  $EGREP "gethostname" >/dev/null 2>&1; then :
21276
21277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21278$as_echo "yes" >&6; }
21279      tst_proto_gethostname="yes"
21280
21281else
21282
21283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21284$as_echo "no" >&6; }
21285      tst_proto_gethostname="no"
21286
21287fi
21288rm -f conftest*
21289
21290  fi
21291  #
21292  if test "$tst_proto_gethostname" = "yes"; then
21293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
21294$as_echo_n "checking if gethostname is compilable... " >&6; }
21295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297
21298
21299        $cares_includes_winsock2
21300        $cares_includes_unistd
21301
21302int main (void)
21303{
21304
21305        if(0 != gethostname(0, 0))
21306          return 1;
21307
21308 ;
21309 return 0;
21310}
21311
21312_ACEOF
21313if ac_fn_c_try_compile "$LINENO"; then :
21314
21315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21316$as_echo "yes" >&6; }
21317      tst_compi_gethostname="yes"
21318
21319else
21320
21321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21322$as_echo "no" >&6; }
21323      tst_compi_gethostname="no"
21324
21325fi
21326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327  fi
21328  #
21329  if test "$tst_compi_gethostname" = "yes"; then
21330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
21331$as_echo_n "checking if gethostname usage allowed... " >&6; }
21332    if test "x$cares_disallow_gethostname" != "xyes"; then
21333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21334$as_echo "yes" >&6; }
21335      tst_allow_gethostname="yes"
21336    else
21337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21338$as_echo "no" >&6; }
21339      tst_allow_gethostname="no"
21340    fi
21341  fi
21342  #
21343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
21344$as_echo_n "checking if gethostname might be used... " >&6; }
21345  if test "$tst_links_gethostname" = "yes" &&
21346     test "$tst_proto_gethostname" = "yes" &&
21347     test "$tst_compi_gethostname" = "yes" &&
21348     test "$tst_allow_gethostname" = "yes"; then
21349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21350$as_echo "yes" >&6; }
21351
21352cat >>confdefs.h <<_ACEOF
21353#define HAVE_GETHOSTNAME 1
21354_ACEOF
21355
21356    ac_cv_func_gethostname="yes"
21357  else
21358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359$as_echo "no" >&6; }
21360    ac_cv_func_gethostname="no"
21361  fi
21362
21363
21364    #
21365  tst_links_getservbyport_r="unknown"
21366  tst_proto_getservbyport_r="unknown"
21367  tst_compi_getservbyport_r="unknown"
21368  tst_allow_getservbyport_r="unknown"
21369  tst_nargs_getservbyport_r="unknown"
21370  #
21371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
21372$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
21373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374/* end confdefs.h.  */
21375
21376
21377#define getservbyport_r innocuous_getservbyport_r
21378#ifdef __STDC__
21379# include <limits.h>
21380#else
21381# include <assert.h>
21382#endif
21383#undef getservbyport_r
21384#ifdef __cplusplus
21385extern "C"
21386#endif
21387char getservbyport_r ();
21388#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
21389choke me
21390#endif
21391
21392int main (void)
21393{
21394return getservbyport_r ();
21395 ;
21396 return 0;
21397}
21398
21399_ACEOF
21400if ac_fn_c_try_link "$LINENO"; then :
21401
21402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403$as_echo "yes" >&6; }
21404    tst_links_getservbyport_r="yes"
21405
21406else
21407
21408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21409$as_echo "no" >&6; }
21410    tst_links_getservbyport_r="no"
21411
21412fi
21413rm -f core conftest.err conftest.$ac_objext \
21414    conftest$ac_exeext conftest.$ac_ext
21415  #
21416  if test "$tst_links_getservbyport_r" = "yes"; then
21417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
21418$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
21419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420/* end confdefs.h.  */
21421
21422      $cares_includes_netdb
21423
21424_ACEOF
21425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21426  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
21427
21428      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21429$as_echo "yes" >&6; }
21430      tst_proto_getservbyport_r="yes"
21431
21432else
21433
21434      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435$as_echo "no" >&6; }
21436      tst_proto_getservbyport_r="no"
21437
21438fi
21439rm -f conftest*
21440
21441  fi
21442  #
21443  if test "$tst_proto_getservbyport_r" = "yes"; then
21444    if test "$tst_nargs_getservbyport_r" = "unknown"; then
21445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
21446$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
21447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21448/* end confdefs.h.  */
21449
21450
21451          $cares_includes_netdb
21452
21453int main (void)
21454{
21455
21456          if(0 != getservbyport_r(0, 0, 0, 0))
21457            return 1;
21458
21459 ;
21460 return 0;
21461}
21462
21463_ACEOF
21464if ac_fn_c_try_compile "$LINENO"; then :
21465
21466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467$as_echo "yes" >&6; }
21468        tst_compi_getservbyport_r="yes"
21469        tst_nargs_getservbyport_r="4"
21470
21471else
21472
21473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474$as_echo "no" >&6; }
21475        tst_compi_getservbyport_r="no"
21476
21477fi
21478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479    fi
21480    if test "$tst_nargs_getservbyport_r" = "unknown"; then
21481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
21482$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
21483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21484/* end confdefs.h.  */
21485
21486
21487          $cares_includes_netdb
21488
21489int main (void)
21490{
21491
21492          if(0 != getservbyport_r(0, 0, 0, 0, 0))
21493            return 1;
21494
21495 ;
21496 return 0;
21497}
21498
21499_ACEOF
21500if ac_fn_c_try_compile "$LINENO"; then :
21501
21502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21503$as_echo "yes" >&6; }
21504        tst_compi_getservbyport_r="yes"
21505        tst_nargs_getservbyport_r="5"
21506
21507else
21508
21509        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510$as_echo "no" >&6; }
21511        tst_compi_getservbyport_r="no"
21512
21513fi
21514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515    fi
21516    if test "$tst_nargs_getservbyport_r" = "unknown"; then
21517      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
21518$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
21519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520/* end confdefs.h.  */
21521
21522
21523          $cares_includes_netdb
21524
21525int main (void)
21526{
21527
21528          if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
21529            return 1;
21530
21531 ;
21532 return 0;
21533}
21534
21535_ACEOF
21536if ac_fn_c_try_compile "$LINENO"; then :
21537
21538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21539$as_echo "yes" >&6; }
21540        tst_compi_getservbyport_r="yes"
21541        tst_nargs_getservbyport_r="6"
21542
21543else
21544
21545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546$as_echo "no" >&6; }
21547        tst_compi_getservbyport_r="no"
21548
21549fi
21550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551    fi
21552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
21553$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
21554    if test "$tst_compi_getservbyport_r" = "yes"; then
21555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21556$as_echo "yes" >&6; }
21557    else
21558      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559$as_echo "no" >&6; }
21560    fi
21561  fi
21562  #
21563  if test "$tst_compi_getservbyport_r" = "yes"; then
21564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
21565$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
21566    if test "x$cares_disallow_getservbyport_r" != "xyes"; then
21567      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21568$as_echo "yes" >&6; }
21569      tst_allow_getservbyport_r="yes"
21570    else
21571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572$as_echo "no" >&6; }
21573      tst_allow_getservbyport_r="no"
21574    fi
21575  fi
21576  #
21577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
21578$as_echo_n "checking if getservbyport_r might be used... " >&6; }
21579  if test "$tst_links_getservbyport_r" = "yes" &&
21580     test "$tst_proto_getservbyport_r" = "yes" &&
21581     test "$tst_compi_getservbyport_r" = "yes" &&
21582     test "$tst_allow_getservbyport_r" = "yes"; then
21583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21584$as_echo "yes" >&6; }
21585
21586cat >>confdefs.h <<_ACEOF
21587#define HAVE_GETSERVBYPORT_R 1
21588_ACEOF
21589
21590
21591cat >>confdefs.h <<_ACEOF
21592#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
21593_ACEOF
21594
21595    if test "$tst_nargs_getservbyport_r" -eq "4"; then
21596
21597$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
21598
21599    else
21600
21601$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
21602
21603    fi
21604    ac_cv_func_getservbyport_r="yes"
21605  else
21606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21607$as_echo "no" >&6; }
21608    ac_cv_func_getservbyport_r="no"
21609  fi
21610
21611
21612cares_includes_arpa_inet="\
21613/* includes start */
21614#ifdef HAVE_SYS_TYPES_H
21615#  include <sys/types.h>
21616#endif
21617#ifdef HAVE_SYS_SOCKET_H
21618#  include <sys/socket.h>
21619#endif
21620#ifdef HAVE_NETINET_IN_H
21621#  include <netinet/in.h>
21622#endif
21623#ifdef HAVE_ARPA_INET_H
21624#  include <arpa/inet.h>
21625#endif
21626/* includes end */"
21627  for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
21628do :
21629  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
21631"
21632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21633  cat >>confdefs.h <<_ACEOF
21634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21635_ACEOF
21636
21637fi
21638
21639done
21640
21641
21642
21643        #
21644  tst_links_inet_net_pton="unknown"
21645  tst_proto_inet_net_pton="unknown"
21646  tst_compi_inet_net_pton="unknown"
21647  tst_works_inet_net_pton="unknown"
21648  tst_allow_inet_net_pton="unknown"
21649  #
21650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
21651$as_echo_n "checking if inet_net_pton can be linked... " >&6; }
21652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21653/* end confdefs.h.  */
21654
21655
21656#define inet_net_pton innocuous_inet_net_pton
21657#ifdef __STDC__
21658# include <limits.h>
21659#else
21660# include <assert.h>
21661#endif
21662#undef inet_net_pton
21663#ifdef __cplusplus
21664extern "C"
21665#endif
21666char inet_net_pton ();
21667#if defined __stub_inet_net_pton || defined __stub___inet_net_pton
21668choke me
21669#endif
21670
21671int main (void)
21672{
21673return inet_net_pton ();
21674 ;
21675 return 0;
21676}
21677
21678_ACEOF
21679if ac_fn_c_try_link "$LINENO"; then :
21680
21681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21682$as_echo "yes" >&6; }
21683    tst_links_inet_net_pton="yes"
21684
21685else
21686
21687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21688$as_echo "no" >&6; }
21689    tst_links_inet_net_pton="no"
21690
21691fi
21692rm -f core conftest.err conftest.$ac_objext \
21693    conftest$ac_exeext conftest.$ac_ext
21694  #
21695  if test "$tst_links_inet_net_pton" = "yes"; then
21696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
21697$as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
21698    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699/* end confdefs.h.  */
21700
21701      $cares_includes_arpa_inet
21702
21703_ACEOF
21704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21705  $EGREP "inet_net_pton" >/dev/null 2>&1; then :
21706
21707      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21708$as_echo "yes" >&6; }
21709      tst_proto_inet_net_pton="yes"
21710
21711else
21712
21713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21714$as_echo "no" >&6; }
21715      tst_proto_inet_net_pton="no"
21716
21717fi
21718rm -f conftest*
21719
21720  fi
21721  #
21722  if test "$tst_proto_inet_net_pton" = "yes"; then
21723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
21724$as_echo_n "checking if inet_net_pton is compilable... " >&6; }
21725    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726/* end confdefs.h.  */
21727
21728
21729        $cares_includes_arpa_inet
21730
21731int main (void)
21732{
21733
21734        if(0 != inet_net_pton(0, 0, 0, 0))
21735          return 1;
21736
21737 ;
21738 return 0;
21739}
21740
21741_ACEOF
21742if ac_fn_c_try_compile "$LINENO"; then :
21743
21744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745$as_echo "yes" >&6; }
21746      tst_compi_inet_net_pton="yes"
21747
21748else
21749
21750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751$as_echo "no" >&6; }
21752      tst_compi_inet_net_pton="no"
21753
21754fi
21755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756  fi
21757  #
21758    if test "x$cross_compiling" != "xyes" &&
21759    test "$tst_compi_inet_net_pton" = "yes"; then
21760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
21761$as_echo_n "checking if inet_net_pton seems to work... " >&6; }
21762    if test "$cross_compiling" = yes; then :
21763  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21765as_fn_error $? "cannot run test program while cross compiling
21766See \`config.log' for more details" "$LINENO" 5; }
21767else
21768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769/* end confdefs.h.  */
21770
21771
21772        $cares_includes_stdlib
21773        $cares_includes_arpa_inet
21774        $cares_includes_string
21775
21776int main (void)
21777{
21778
21779        unsigned char ipv6a[16+1];
21780        unsigned char ipv4a[4+1];
21781        const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
21782        const char *ipv6net2 = "::fffe:7f00:1";
21783        const char *ipv6net3 = "7f20:1::/64";
21784        const char *ipv6net4 = "7f20:1::/2147483649";
21785        const char *ipv4net1 = "192.168.100.1";
21786        const char *ipv4net2 = "192.168.100/32";
21787        const char *ipv4net3 = "192.168.100.1/2147483649";
21788        /* - */
21789        memset(ipv4a, 1, sizeof(ipv4a));
21790        if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
21791          exit(1); /* fail */
21792        /* - */
21793        if( (ipv4a[0x00] != 0xc0) ||
21794            (ipv4a[0x01] != 0xa8) ||
21795            (ipv4a[0x02] != 0x64) ||
21796            (ipv4a[0x03] != 0x01) ||
21797            (ipv4a[0x04] != 0x01) )
21798          exit(1); /* fail */
21799        /* - */
21800        memset(ipv4a, 1, sizeof(ipv4a));
21801        if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
21802          exit(1); /* fail */
21803        /* - */
21804        if( (ipv4a[0x00] != 0xc0) ||
21805            (ipv4a[0x01] != 0xa8) ||
21806            (ipv4a[0x02] != 0x64) ||
21807            (ipv4a[0x03] != 0x00) ||
21808            (ipv4a[0x04] != 0x01) )
21809          exit(1); /* fail */
21810        /* - */
21811        memset(ipv4a, 1, sizeof(ipv4a));
21812        if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
21813          exit(1); /* fail */
21814        /* - */
21815        memset(ipv6a, 1, sizeof(ipv6a));
21816        if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
21817          exit(1); /* fail */
21818        /* - */
21819        if( (ipv6a[0x00] != 0xfe) ||
21820            (ipv6a[0x01] != 0x80) ||
21821            (ipv6a[0x08] != 0x02) ||
21822            (ipv6a[0x09] != 0x14) ||
21823            (ipv6a[0x0a] != 0x4f) ||
21824            (ipv6a[0x0b] != 0xff) ||
21825            (ipv6a[0x0c] != 0xfe) ||
21826            (ipv6a[0x0d] != 0x0b) ||
21827            (ipv6a[0x0e] != 0x76) ||
21828            (ipv6a[0x0f] != 0xc8) ||
21829            (ipv6a[0x10] != 0x01) )
21830          exit(1); /* fail */
21831        /* - */
21832        if( (ipv6a[0x02] != 0x0) ||
21833            (ipv6a[0x03] != 0x0) ||
21834            (ipv6a[0x04] != 0x0) ||
21835            (ipv6a[0x05] != 0x0) ||
21836            (ipv6a[0x06] != 0x0) ||
21837            (ipv6a[0x07] != 0x0) )
21838          exit(1); /* fail */
21839        /* - */
21840        memset(ipv6a, 0, sizeof(ipv6a));
21841        ipv6a[0x10] = 0x01;
21842        if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
21843          exit(1); /* fail */
21844        /* - */
21845        if( (ipv6a[0x0a] != 0xff) ||
21846            (ipv6a[0x0b] != 0xfe) ||
21847            (ipv6a[0x0c] != 0x7f) ||
21848            (ipv6a[0x0f] != 0x01) ||
21849            (ipv6a[0x10] != 0x01) )
21850          exit(1); /* fail */
21851        /* - */
21852        if( (ipv6a[0x00] != 0x0) ||
21853            (ipv6a[0x01] != 0x0) ||
21854            (ipv6a[0x02] != 0x0) ||
21855            (ipv6a[0x03] != 0x0) ||
21856            (ipv6a[0x04] != 0x0) ||
21857            (ipv6a[0x05] != 0x0) ||
21858            (ipv6a[0x06] != 0x0) ||
21859            (ipv6a[0x07] != 0x0) ||
21860            (ipv6a[0x08] != 0x0) ||
21861            (ipv6a[0x09] != 0x0) ||
21862            (ipv6a[0x0d] != 0x0) ||
21863            (ipv6a[0x0e] != 0x0) )
21864          exit(1); /* fail */
21865        /* - */
21866        memset(ipv6a, 1, sizeof(ipv6a));
21867        if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
21868          exit(1); /* fail */
21869        if( (ipv6a[0x00] != 0x7f) ||
21870            (ipv6a[0x01] != 0x20) ||
21871            (ipv6a[0x03] != 0x01) ||
21872            (ipv6a[0x08] != 0x01) ||
21873            (ipv6a[0x09] != 0x01) ||
21874            (ipv6a[0x0a] != 0x01) ||
21875            (ipv6a[0x0b] != 0x01) ||
21876            (ipv6a[0x0c] != 0x01) ||
21877            (ipv6a[0x0d] != 0x01) ||
21878            (ipv6a[0x0e] != 0x01) ||
21879            (ipv6a[0x0f] != 0x01) ||
21880            (ipv6a[0x10] != 0x01) )
21881          exit(1); /* fail */
21882        if( (ipv6a[0x02] != 0x0) ||
21883            (ipv6a[0x04] != 0x0) ||
21884            (ipv6a[0x05] != 0x0) ||
21885            (ipv6a[0x06] != 0x0) ||
21886            (ipv6a[0x07] != 0x0) ||
21887            (ipv6a[0x07] != 0x0) )
21888          exit(1); /* fail */
21889        /* - */
21890        memset(ipv6a, 1, sizeof(ipv6a));
21891        if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
21892          exit(1); /* fail */
21893        /* - */
21894        exit(0);
21895
21896 ;
21897 return 0;
21898}
21899
21900_ACEOF
21901if ac_fn_c_try_run "$LINENO"; then :
21902
21903      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21904$as_echo "yes" >&6; }
21905      tst_works_inet_net_pton="yes"
21906
21907else
21908
21909      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21910$as_echo "no" >&6; }
21911      tst_works_inet_net_pton="no"
21912
21913fi
21914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21915  conftest.$ac_objext conftest.beam conftest.$ac_ext
21916fi
21917
21918  fi
21919  #
21920  if test "$tst_compi_inet_net_pton" = "yes" &&
21921    test "$tst_works_inet_net_pton" != "no"; then
21922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
21923$as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
21924    if test "x$cares_disallow_inet_net_pton" != "xyes"; then
21925      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21926$as_echo "yes" >&6; }
21927      tst_allow_inet_net_pton="yes"
21928    else
21929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930$as_echo "no" >&6; }
21931      tst_allow_inet_net_pton="no"
21932    fi
21933  fi
21934  #
21935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
21936$as_echo_n "checking if inet_net_pton might be used... " >&6; }
21937  if test "$tst_links_inet_net_pton" = "yes" &&
21938     test "$tst_proto_inet_net_pton" = "yes" &&
21939     test "$tst_compi_inet_net_pton" = "yes" &&
21940     test "$tst_allow_inet_net_pton" = "yes" &&
21941     test "$tst_works_inet_net_pton" != "no"; then
21942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943$as_echo "yes" >&6; }
21944
21945cat >>confdefs.h <<_ACEOF
21946#define HAVE_INET_NET_PTON 1
21947_ACEOF
21948
21949    ac_cv_func_inet_net_pton="yes"
21950  else
21951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21952$as_echo "no" >&6; }
21953    ac_cv_func_inet_net_pton="no"
21954  fi
21955
21956
21957        #
21958  tst_links_inet_ntop="unknown"
21959  tst_proto_inet_ntop="unknown"
21960  tst_compi_inet_ntop="unknown"
21961  tst_works_inet_ntop="unknown"
21962  tst_allow_inet_ntop="unknown"
21963  #
21964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
21965$as_echo_n "checking if inet_ntop can be linked... " >&6; }
21966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967/* end confdefs.h.  */
21968
21969
21970#define inet_ntop innocuous_inet_ntop
21971#ifdef __STDC__
21972# include <limits.h>
21973#else
21974# include <assert.h>
21975#endif
21976#undef inet_ntop
21977#ifdef __cplusplus
21978extern "C"
21979#endif
21980char inet_ntop ();
21981#if defined __stub_inet_ntop || defined __stub___inet_ntop
21982choke me
21983#endif
21984
21985int main (void)
21986{
21987return inet_ntop ();
21988 ;
21989 return 0;
21990}
21991
21992_ACEOF
21993if ac_fn_c_try_link "$LINENO"; then :
21994
21995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996$as_echo "yes" >&6; }
21997    tst_links_inet_ntop="yes"
21998
21999else
22000
22001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22002$as_echo "no" >&6; }
22003    tst_links_inet_ntop="no"
22004
22005fi
22006rm -f core conftest.err conftest.$ac_objext \
22007    conftest$ac_exeext conftest.$ac_ext
22008  #
22009  if test "$tst_links_inet_ntop" = "yes"; then
22010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
22011$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
22012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013/* end confdefs.h.  */
22014
22015      $cares_includes_arpa_inet
22016
22017_ACEOF
22018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22019  $EGREP "inet_ntop" >/dev/null 2>&1; then :
22020
22021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022$as_echo "yes" >&6; }
22023      tst_proto_inet_ntop="yes"
22024
22025else
22026
22027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028$as_echo "no" >&6; }
22029      tst_proto_inet_ntop="no"
22030
22031fi
22032rm -f conftest*
22033
22034  fi
22035  #
22036  if test "$tst_proto_inet_ntop" = "yes"; then
22037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
22038$as_echo_n "checking if inet_ntop is compilable... " >&6; }
22039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040/* end confdefs.h.  */
22041
22042
22043        $cares_includes_arpa_inet
22044
22045int main (void)
22046{
22047
22048        if(0 != inet_ntop(0, 0, 0, 0))
22049          return 1;
22050
22051 ;
22052 return 0;
22053}
22054
22055_ACEOF
22056if ac_fn_c_try_compile "$LINENO"; then :
22057
22058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22059$as_echo "yes" >&6; }
22060      tst_compi_inet_ntop="yes"
22061
22062else
22063
22064      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065$as_echo "no" >&6; }
22066      tst_compi_inet_ntop="no"
22067
22068fi
22069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070  fi
22071  #
22072    if test "x$cross_compiling" != "xyes" &&
22073    test "$tst_compi_inet_ntop" = "yes"; then
22074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
22075$as_echo_n "checking if inet_ntop seems to work... " >&6; }
22076    if test "$cross_compiling" = yes; then :
22077  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22079as_fn_error $? "cannot run test program while cross compiling
22080See \`config.log' for more details" "$LINENO" 5; }
22081else
22082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22083/* end confdefs.h.  */
22084
22085
22086        $cares_includes_stdlib
22087        $cares_includes_arpa_inet
22088        $cares_includes_string
22089
22090int main (void)
22091{
22092
22093        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
22094        char ipv4res[sizeof "255.255.255.255"];
22095        unsigned char ipv6a[26];
22096        unsigned char ipv4a[5];
22097        char *ipv6ptr = 0;
22098        char *ipv4ptr = 0;
22099        /* - */
22100        ipv4res[0] = '\0';
22101        ipv4a[0] = 0xc0;
22102        ipv4a[1] = 0xa8;
22103        ipv4a[2] = 0x64;
22104        ipv4a[3] = 0x01;
22105        ipv4a[4] = 0x01;
22106        /* - */
22107        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
22108        if(!ipv4ptr)
22109          exit(1); /* fail */
22110        if(ipv4ptr != ipv4res)
22111          exit(1); /* fail */
22112        if(!ipv4ptr[0])
22113          exit(1); /* fail */
22114        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
22115          exit(1); /* fail */
22116        /* - */
22117        ipv6res[0] = '\0';
22118        memset(ipv6a, 0, sizeof(ipv6a));
22119        ipv6a[0] = 0xfe;
22120        ipv6a[1] = 0x80;
22121        ipv6a[8] = 0x02;
22122        ipv6a[9] = 0x14;
22123        ipv6a[10] = 0x4f;
22124        ipv6a[11] = 0xff;
22125        ipv6a[12] = 0xfe;
22126        ipv6a[13] = 0x0b;
22127        ipv6a[14] = 0x76;
22128        ipv6a[15] = 0xc8;
22129        ipv6a[25] = 0x01;
22130        /* - */
22131        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
22132        if(!ipv6ptr)
22133          exit(1); /* fail */
22134        if(ipv6ptr != ipv6res)
22135          exit(1); /* fail */
22136        if(!ipv6ptr[0])
22137          exit(1); /* fail */
22138        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
22139          exit(1); /* fail */
22140        /* - */
22141        exit(0);
22142
22143 ;
22144 return 0;
22145}
22146
22147_ACEOF
22148if ac_fn_c_try_run "$LINENO"; then :
22149
22150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22151$as_echo "yes" >&6; }
22152      tst_works_inet_ntop="yes"
22153
22154else
22155
22156      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157$as_echo "no" >&6; }
22158      tst_works_inet_ntop="no"
22159
22160fi
22161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22162  conftest.$ac_objext conftest.beam conftest.$ac_ext
22163fi
22164
22165  fi
22166  #
22167  if test "$tst_compi_inet_ntop" = "yes" &&
22168    test "$tst_works_inet_ntop" != "no"; then
22169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
22170$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
22171    if test "x$cares_disallow_inet_ntop" != "xyes"; then
22172      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22173$as_echo "yes" >&6; }
22174      tst_allow_inet_ntop="yes"
22175    else
22176      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22177$as_echo "no" >&6; }
22178      tst_allow_inet_ntop="no"
22179    fi
22180  fi
22181  #
22182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
22183$as_echo_n "checking if inet_ntop might be used... " >&6; }
22184  if test "$tst_links_inet_ntop" = "yes" &&
22185     test "$tst_proto_inet_ntop" = "yes" &&
22186     test "$tst_compi_inet_ntop" = "yes" &&
22187     test "$tst_allow_inet_ntop" = "yes" &&
22188     test "$tst_works_inet_ntop" != "no"; then
22189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22190$as_echo "yes" >&6; }
22191
22192cat >>confdefs.h <<_ACEOF
22193#define HAVE_INET_NTOP 1
22194_ACEOF
22195
22196    ac_cv_func_inet_ntop="yes"
22197  else
22198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22199$as_echo "no" >&6; }
22200    ac_cv_func_inet_ntop="no"
22201  fi
22202
22203
22204        #
22205  tst_links_inet_pton="unknown"
22206  tst_proto_inet_pton="unknown"
22207  tst_compi_inet_pton="unknown"
22208  tst_works_inet_pton="unknown"
22209  tst_allow_inet_pton="unknown"
22210  #
22211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
22212$as_echo_n "checking if inet_pton can be linked... " >&6; }
22213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214/* end confdefs.h.  */
22215
22216
22217#define inet_pton innocuous_inet_pton
22218#ifdef __STDC__
22219# include <limits.h>
22220#else
22221# include <assert.h>
22222#endif
22223#undef inet_pton
22224#ifdef __cplusplus
22225extern "C"
22226#endif
22227char inet_pton ();
22228#if defined __stub_inet_pton || defined __stub___inet_pton
22229choke me
22230#endif
22231
22232int main (void)
22233{
22234return inet_pton ();
22235 ;
22236 return 0;
22237}
22238
22239_ACEOF
22240if ac_fn_c_try_link "$LINENO"; then :
22241
22242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22243$as_echo "yes" >&6; }
22244    tst_links_inet_pton="yes"
22245
22246else
22247
22248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249$as_echo "no" >&6; }
22250    tst_links_inet_pton="no"
22251
22252fi
22253rm -f core conftest.err conftest.$ac_objext \
22254    conftest$ac_exeext conftest.$ac_ext
22255  #
22256  if test "$tst_links_inet_pton" = "yes"; then
22257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
22258$as_echo_n "checking if inet_pton is prototyped... " >&6; }
22259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h.  */
22261
22262      $cares_includes_arpa_inet
22263
22264_ACEOF
22265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22266  $EGREP "inet_pton" >/dev/null 2>&1; then :
22267
22268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22269$as_echo "yes" >&6; }
22270      tst_proto_inet_pton="yes"
22271
22272else
22273
22274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275$as_echo "no" >&6; }
22276      tst_proto_inet_pton="no"
22277
22278fi
22279rm -f conftest*
22280
22281  fi
22282  #
22283  if test "$tst_proto_inet_pton" = "yes"; then
22284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
22285$as_echo_n "checking if inet_pton is compilable... " >&6; }
22286    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287/* end confdefs.h.  */
22288
22289
22290        $cares_includes_arpa_inet
22291
22292int main (void)
22293{
22294
22295        if(0 != inet_pton(0, 0, 0))
22296          return 1;
22297
22298 ;
22299 return 0;
22300}
22301
22302_ACEOF
22303if ac_fn_c_try_compile "$LINENO"; then :
22304
22305      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22306$as_echo "yes" >&6; }
22307      tst_compi_inet_pton="yes"
22308
22309else
22310
22311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312$as_echo "no" >&6; }
22313      tst_compi_inet_pton="no"
22314
22315fi
22316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317  fi
22318  #
22319    if test "x$cross_compiling" != "xyes" &&
22320    test "$tst_compi_inet_pton" = "yes"; then
22321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
22322$as_echo_n "checking if inet_pton seems to work... " >&6; }
22323    if test "$cross_compiling" = yes; then :
22324  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22326as_fn_error $? "cannot run test program while cross compiling
22327See \`config.log' for more details" "$LINENO" 5; }
22328else
22329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330/* end confdefs.h.  */
22331
22332
22333        $cares_includes_stdlib
22334        $cares_includes_arpa_inet
22335        $cares_includes_string
22336
22337int main (void)
22338{
22339
22340        unsigned char ipv6a[16+1];
22341        unsigned char ipv4a[4+1];
22342        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
22343        const char *ipv4src = "192.168.100.1";
22344        /* - */
22345        memset(ipv4a, 1, sizeof(ipv4a));
22346        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
22347          exit(1); /* fail */
22348        /* - */
22349        if( (ipv4a[0] != 0xc0) ||
22350            (ipv4a[1] != 0xa8) ||
22351            (ipv4a[2] != 0x64) ||
22352            (ipv4a[3] != 0x01) ||
22353            (ipv4a[4] != 0x01) )
22354          exit(1); /* fail */
22355        /* - */
22356        memset(ipv6a, 1, sizeof(ipv6a));
22357        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
22358          exit(1); /* fail */
22359        /* - */
22360        if( (ipv6a[0]  != 0xfe) ||
22361            (ipv6a[1]  != 0x80) ||
22362            (ipv6a[8]  != 0x02) ||
22363            (ipv6a[9]  != 0x14) ||
22364            (ipv6a[10] != 0x4f) ||
22365            (ipv6a[11] != 0xff) ||
22366            (ipv6a[12] != 0xfe) ||
22367            (ipv6a[13] != 0x0b) ||
22368            (ipv6a[14] != 0x76) ||
22369            (ipv6a[15] != 0xc8) ||
22370            (ipv6a[16] != 0x01) )
22371          exit(1); /* fail */
22372        /* - */
22373        if( (ipv6a[2]  != 0x0) ||
22374            (ipv6a[3]  != 0x0) ||
22375            (ipv6a[4]  != 0x0) ||
22376            (ipv6a[5]  != 0x0) ||
22377            (ipv6a[6]  != 0x0) ||
22378            (ipv6a[7]  != 0x0) )
22379          exit(1); /* fail */
22380        /* - */
22381        exit(0);
22382
22383 ;
22384 return 0;
22385}
22386
22387_ACEOF
22388if ac_fn_c_try_run "$LINENO"; then :
22389
22390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22391$as_echo "yes" >&6; }
22392      tst_works_inet_pton="yes"
22393
22394else
22395
22396      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22397$as_echo "no" >&6; }
22398      tst_works_inet_pton="no"
22399
22400fi
22401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22402  conftest.$ac_objext conftest.beam conftest.$ac_ext
22403fi
22404
22405  fi
22406  #
22407  if test "$tst_compi_inet_pton" = "yes" &&
22408    test "$tst_works_inet_pton" != "no"; then
22409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
22410$as_echo_n "checking if inet_pton usage allowed... " >&6; }
22411    if test "x$cares_disallow_inet_pton" != "xyes"; then
22412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22413$as_echo "yes" >&6; }
22414      tst_allow_inet_pton="yes"
22415    else
22416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22417$as_echo "no" >&6; }
22418      tst_allow_inet_pton="no"
22419    fi
22420  fi
22421  #
22422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
22423$as_echo_n "checking if inet_pton might be used... " >&6; }
22424  if test "$tst_links_inet_pton" = "yes" &&
22425     test "$tst_proto_inet_pton" = "yes" &&
22426     test "$tst_compi_inet_pton" = "yes" &&
22427     test "$tst_allow_inet_pton" = "yes" &&
22428     test "$tst_works_inet_pton" != "no"; then
22429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430$as_echo "yes" >&6; }
22431
22432cat >>confdefs.h <<_ACEOF
22433#define HAVE_INET_PTON 1
22434_ACEOF
22435
22436    ac_cv_func_inet_pton="yes"
22437  else
22438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439$as_echo "no" >&6; }
22440    ac_cv_func_inet_pton="no"
22441  fi
22442
22443
22444cares_includes_stropts="\
22445/* includes start */
22446#ifdef HAVE_SYS_TYPES_H
22447#  include <sys/types.h>
22448#endif
22449#ifdef HAVE_UNISTD_H
22450#  include <unistd.h>
22451#endif
22452#ifdef HAVE_SYS_SOCKET_H
22453#  include <sys/socket.h>
22454#endif
22455#ifdef HAVE_SYS_IOCTL_H
22456#  include <sys/ioctl.h>
22457#endif
22458#ifdef HAVE_STROPTS_H
22459#  include <stropts.h>
22460#endif
22461/* includes end */"
22462  for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
22463do :
22464  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22465ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
22466"
22467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22468  cat >>confdefs.h <<_ACEOF
22469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22470_ACEOF
22471
22472fi
22473
22474done
22475
22476
22477
22478    #
22479  tst_links_ioctl="unknown"
22480  tst_proto_ioctl="unknown"
22481  tst_compi_ioctl="unknown"
22482  tst_allow_ioctl="unknown"
22483  #
22484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
22485$as_echo_n "checking if ioctl can be linked... " >&6; }
22486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487/* end confdefs.h.  */
22488
22489
22490#define ioctl innocuous_ioctl
22491#ifdef __STDC__
22492# include <limits.h>
22493#else
22494# include <assert.h>
22495#endif
22496#undef ioctl
22497#ifdef __cplusplus
22498extern "C"
22499#endif
22500char ioctl ();
22501#if defined __stub_ioctl || defined __stub___ioctl
22502choke me
22503#endif
22504
22505int main (void)
22506{
22507return ioctl ();
22508 ;
22509 return 0;
22510}
22511
22512_ACEOF
22513if ac_fn_c_try_link "$LINENO"; then :
22514
22515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22516$as_echo "yes" >&6; }
22517    tst_links_ioctl="yes"
22518
22519else
22520
22521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522$as_echo "no" >&6; }
22523    tst_links_ioctl="no"
22524
22525fi
22526rm -f core conftest.err conftest.$ac_objext \
22527    conftest$ac_exeext conftest.$ac_ext
22528  #
22529  if test "$tst_links_ioctl" = "yes"; then
22530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
22531$as_echo_n "checking if ioctl is prototyped... " >&6; }
22532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533/* end confdefs.h.  */
22534
22535      $cares_includes_stropts
22536
22537_ACEOF
22538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22539  $EGREP "ioctl" >/dev/null 2>&1; then :
22540
22541      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22542$as_echo "yes" >&6; }
22543      tst_proto_ioctl="yes"
22544
22545else
22546
22547      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22548$as_echo "no" >&6; }
22549      tst_proto_ioctl="no"
22550
22551fi
22552rm -f conftest*
22553
22554  fi
22555  #
22556  if test "$tst_proto_ioctl" = "yes"; then
22557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
22558$as_echo_n "checking if ioctl is compilable... " >&6; }
22559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560/* end confdefs.h.  */
22561
22562
22563        $cares_includes_stropts
22564
22565int main (void)
22566{
22567
22568        if(0 != ioctl(0, 0, 0))
22569          return 1;
22570
22571 ;
22572 return 0;
22573}
22574
22575_ACEOF
22576if ac_fn_c_try_compile "$LINENO"; then :
22577
22578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22579$as_echo "yes" >&6; }
22580      tst_compi_ioctl="yes"
22581
22582else
22583
22584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22585$as_echo "no" >&6; }
22586      tst_compi_ioctl="no"
22587
22588fi
22589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590  fi
22591  #
22592  if test "$tst_compi_ioctl" = "yes"; then
22593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
22594$as_echo_n "checking if ioctl usage allowed... " >&6; }
22595    if test "x$cares_disallow_ioctl" != "xyes"; then
22596      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22597$as_echo "yes" >&6; }
22598      tst_allow_ioctl="yes"
22599    else
22600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22601$as_echo "no" >&6; }
22602      tst_allow_ioctl="no"
22603    fi
22604  fi
22605  #
22606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
22607$as_echo_n "checking if ioctl might be used... " >&6; }
22608  if test "$tst_links_ioctl" = "yes" &&
22609     test "$tst_proto_ioctl" = "yes" &&
22610     test "$tst_compi_ioctl" = "yes" &&
22611     test "$tst_allow_ioctl" = "yes"; then
22612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22613$as_echo "yes" >&6; }
22614
22615cat >>confdefs.h <<_ACEOF
22616#define HAVE_IOCTL 1
22617_ACEOF
22618
22619    ac_cv_func_ioctl="yes"
22620
22621  #
22622  tst_compi_ioctl_fionbio="unknown"
22623  tst_allow_ioctl_fionbio="unknown"
22624  #
22625  if test "$ac_cv_func_ioctl" = "yes"; then
22626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
22627$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
22628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629/* end confdefs.h.  */
22630
22631
22632        $cares_includes_stropts
22633
22634int main (void)
22635{
22636
22637        int flags = 0;
22638        if(0 != ioctl(0, FIONBIO, &flags))
22639          return 1;
22640
22641 ;
22642 return 0;
22643}
22644
22645_ACEOF
22646if ac_fn_c_try_compile "$LINENO"; then :
22647
22648      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22649$as_echo "yes" >&6; }
22650      tst_compi_ioctl_fionbio="yes"
22651
22652else
22653
22654      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22655$as_echo "no" >&6; }
22656      tst_compi_ioctl_fionbio="no"
22657
22658fi
22659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660  fi
22661  #
22662  if test "$tst_compi_ioctl_fionbio" = "yes"; then
22663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
22664$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
22665    if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
22666      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22667$as_echo "yes" >&6; }
22668      tst_allow_ioctl_fionbio="yes"
22669    else
22670      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22671$as_echo "no" >&6; }
22672      tst_allow_ioctl_fionbio="no"
22673    fi
22674  fi
22675  #
22676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
22677$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
22678  if test "$tst_compi_ioctl_fionbio" = "yes" &&
22679     test "$tst_allow_ioctl_fionbio" = "yes"; then
22680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681$as_echo "yes" >&6; }
22682
22683cat >>confdefs.h <<_ACEOF
22684#define HAVE_IOCTL_FIONBIO 1
22685_ACEOF
22686
22687    ac_cv_func_ioctl_fionbio="yes"
22688  else
22689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22690$as_echo "no" >&6; }
22691    ac_cv_func_ioctl_fionbio="no"
22692  fi
22693
22694
22695  #
22696  tst_compi_ioctl_siocgifaddr="unknown"
22697  tst_allow_ioctl_siocgifaddr="unknown"
22698  #
22699  if test "$ac_cv_func_ioctl" = "yes"; then
22700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
22701$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
22702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703/* end confdefs.h.  */
22704
22705
22706        $cares_includes_stropts
22707        #include <net/if.h>
22708
22709int main (void)
22710{
22711
22712        struct ifreq ifr;
22713        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
22714          return 1;
22715
22716 ;
22717 return 0;
22718}
22719
22720_ACEOF
22721if ac_fn_c_try_compile "$LINENO"; then :
22722
22723      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22724$as_echo "yes" >&6; }
22725      tst_compi_ioctl_siocgifaddr="yes"
22726
22727else
22728
22729      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22730$as_echo "no" >&6; }
22731      tst_compi_ioctl_siocgifaddr="no"
22732
22733fi
22734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735  fi
22736  #
22737  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
22738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
22739$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
22740    if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
22741      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22742$as_echo "yes" >&6; }
22743      tst_allow_ioctl_siocgifaddr="yes"
22744    else
22745      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22746$as_echo "no" >&6; }
22747      tst_allow_ioctl_siocgifaddr="no"
22748    fi
22749  fi
22750  #
22751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
22752$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
22753  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
22754     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
22755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22756$as_echo "yes" >&6; }
22757
22758cat >>confdefs.h <<_ACEOF
22759#define HAVE_IOCTL_SIOCGIFADDR 1
22760_ACEOF
22761
22762    ac_cv_func_ioctl_siocgifaddr="yes"
22763  else
22764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22765$as_echo "no" >&6; }
22766    ac_cv_func_ioctl_siocgifaddr="no"
22767  fi
22768
22769  else
22770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771$as_echo "no" >&6; }
22772    ac_cv_func_ioctl="no"
22773  fi
22774
22775
22776    #
22777  tst_links_ioctlsocket="unknown"
22778  tst_proto_ioctlsocket="unknown"
22779  tst_compi_ioctlsocket="unknown"
22780  tst_allow_ioctlsocket="unknown"
22781  #
22782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
22783$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
22784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h.  */
22786
22787
22788      $cares_includes_winsock2
22789
22790int main (void)
22791{
22792
22793      if(0 != ioctlsocket(0, 0, 0))
22794        return 1;
22795
22796 ;
22797 return 0;
22798}
22799
22800_ACEOF
22801if ac_fn_c_try_link "$LINENO"; then :
22802
22803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22804$as_echo "yes" >&6; }
22805    tst_links_ioctlsocket="yes"
22806
22807else
22808
22809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22810$as_echo "no" >&6; }
22811    tst_links_ioctlsocket="no"
22812
22813fi
22814rm -f core conftest.err conftest.$ac_objext \
22815    conftest$ac_exeext conftest.$ac_ext
22816  #
22817  if test "$tst_links_ioctlsocket" = "yes"; then
22818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
22819$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
22820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22821/* end confdefs.h.  */
22822
22823      $cares_includes_winsock2
22824
22825_ACEOF
22826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22827  $EGREP "ioctlsocket" >/dev/null 2>&1; then :
22828
22829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22830$as_echo "yes" >&6; }
22831      tst_proto_ioctlsocket="yes"
22832
22833else
22834
22835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22836$as_echo "no" >&6; }
22837      tst_proto_ioctlsocket="no"
22838
22839fi
22840rm -f conftest*
22841
22842  fi
22843  #
22844  if test "$tst_proto_ioctlsocket" = "yes"; then
22845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
22846$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
22847    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848/* end confdefs.h.  */
22849
22850
22851        $cares_includes_winsock2
22852
22853int main (void)
22854{
22855
22856        if(0 != ioctlsocket(0, 0, 0))
22857          return 1;
22858
22859 ;
22860 return 0;
22861}
22862
22863_ACEOF
22864if ac_fn_c_try_compile "$LINENO"; then :
22865
22866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22867$as_echo "yes" >&6; }
22868      tst_compi_ioctlsocket="yes"
22869
22870else
22871
22872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22873$as_echo "no" >&6; }
22874      tst_compi_ioctlsocket="no"
22875
22876fi
22877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878  fi
22879  #
22880  if test "$tst_compi_ioctlsocket" = "yes"; then
22881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
22882$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
22883    if test "x$cares_disallow_ioctlsocket" != "xyes"; then
22884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22885$as_echo "yes" >&6; }
22886      tst_allow_ioctlsocket="yes"
22887    else
22888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889$as_echo "no" >&6; }
22890      tst_allow_ioctlsocket="no"
22891    fi
22892  fi
22893  #
22894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
22895$as_echo_n "checking if ioctlsocket might be used... " >&6; }
22896  if test "$tst_links_ioctlsocket" = "yes" &&
22897     test "$tst_proto_ioctlsocket" = "yes" &&
22898     test "$tst_compi_ioctlsocket" = "yes" &&
22899     test "$tst_allow_ioctlsocket" = "yes"; then
22900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22901$as_echo "yes" >&6; }
22902
22903cat >>confdefs.h <<_ACEOF
22904#define HAVE_IOCTLSOCKET 1
22905_ACEOF
22906
22907    ac_cv_func_ioctlsocket="yes"
22908
22909  #
22910  tst_compi_ioctlsocket_fionbio="unknown"
22911  tst_allow_ioctlsocket_fionbio="unknown"
22912  #
22913  if test "$ac_cv_func_ioctlsocket" = "yes"; then
22914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
22915$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
22916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917/* end confdefs.h.  */
22918
22919
22920        $cares_includes_winsock2
22921
22922int main (void)
22923{
22924
22925        int flags = 0;
22926        if(0 != ioctlsocket(0, FIONBIO, &flags))
22927          return 1;
22928
22929 ;
22930 return 0;
22931}
22932
22933_ACEOF
22934if ac_fn_c_try_compile "$LINENO"; then :
22935
22936      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937$as_echo "yes" >&6; }
22938      tst_compi_ioctlsocket_fionbio="yes"
22939
22940else
22941
22942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943$as_echo "no" >&6; }
22944      tst_compi_ioctlsocket_fionbio="no"
22945
22946fi
22947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948  fi
22949  #
22950  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
22951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
22952$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
22953    if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
22954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22955$as_echo "yes" >&6; }
22956      tst_allow_ioctlsocket_fionbio="yes"
22957    else
22958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959$as_echo "no" >&6; }
22960      tst_allow_ioctlsocket_fionbio="no"
22961    fi
22962  fi
22963  #
22964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
22965$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
22966  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
22967     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
22968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969$as_echo "yes" >&6; }
22970
22971cat >>confdefs.h <<_ACEOF
22972#define HAVE_IOCTLSOCKET_FIONBIO 1
22973_ACEOF
22974
22975    ac_cv_func_ioctlsocket_fionbio="yes"
22976  else
22977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22978$as_echo "no" >&6; }
22979    ac_cv_func_ioctlsocket_fionbio="no"
22980  fi
22981
22982  else
22983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22984$as_echo "no" >&6; }
22985    ac_cv_func_ioctlsocket="no"
22986  fi
22987
22988
22989    #
22990  tst_links_ioctlsocket_camel="unknown"
22991  tst_proto_ioctlsocket_camel="unknown"
22992  tst_compi_ioctlsocket_camel="unknown"
22993  tst_allow_ioctlsocket_camel="unknown"
22994  #
22995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
22996$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
22997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998/* end confdefs.h.  */
22999
23000
23001#define IoctlSocket innocuous_IoctlSocket
23002#ifdef __STDC__
23003# include <limits.h>
23004#else
23005# include <assert.h>
23006#endif
23007#undef IoctlSocket
23008#ifdef __cplusplus
23009extern "C"
23010#endif
23011char IoctlSocket ();
23012#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
23013choke me
23014#endif
23015
23016int main (void)
23017{
23018return IoctlSocket ();
23019 ;
23020 return 0;
23021}
23022
23023_ACEOF
23024if ac_fn_c_try_link "$LINENO"; then :
23025
23026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23027$as_echo "yes" >&6; }
23028    tst_links_ioctlsocket_camel="yes"
23029
23030else
23031
23032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033$as_echo "no" >&6; }
23034    tst_links_ioctlsocket_camel="no"
23035
23036fi
23037rm -f core conftest.err conftest.$ac_objext \
23038    conftest$ac_exeext conftest.$ac_ext
23039  #
23040  if test "$tst_links_ioctlsocket_camel" = "yes"; then
23041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
23042$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
23043    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044/* end confdefs.h.  */
23045
23046      $cares_includes_stropts
23047
23048_ACEOF
23049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23050  $EGREP "IoctlSocket" >/dev/null 2>&1; then :
23051
23052      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23053$as_echo "yes" >&6; }
23054      tst_proto_ioctlsocket_camel="yes"
23055
23056else
23057
23058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23059$as_echo "no" >&6; }
23060      tst_proto_ioctlsocket_camel="no"
23061
23062fi
23063rm -f conftest*
23064
23065  fi
23066  #
23067  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
23068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
23069$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
23070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071/* end confdefs.h.  */
23072
23073
23074        $cares_includes_stropts
23075
23076int main (void)
23077{
23078
23079        if(0 != IoctlSocket(0, 0, 0))
23080          return 1;
23081
23082 ;
23083 return 0;
23084}
23085
23086_ACEOF
23087if ac_fn_c_try_compile "$LINENO"; then :
23088
23089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23090$as_echo "yes" >&6; }
23091      tst_compi_ioctlsocket_camel="yes"
23092
23093else
23094
23095      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096$as_echo "no" >&6; }
23097      tst_compi_ioctlsocket_camel="no"
23098
23099fi
23100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101  fi
23102  #
23103  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
23104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
23105$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
23106    if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
23107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23108$as_echo "yes" >&6; }
23109      tst_allow_ioctlsocket_camel="yes"
23110    else
23111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23112$as_echo "no" >&6; }
23113      tst_allow_ioctlsocket_camel="no"
23114    fi
23115  fi
23116  #
23117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
23118$as_echo_n "checking if IoctlSocket might be used... " >&6; }
23119  if test "$tst_links_ioctlsocket_camel" = "yes" &&
23120     test "$tst_proto_ioctlsocket_camel" = "yes" &&
23121     test "$tst_compi_ioctlsocket_camel" = "yes" &&
23122     test "$tst_allow_ioctlsocket_camel" = "yes"; then
23123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23124$as_echo "yes" >&6; }
23125
23126cat >>confdefs.h <<_ACEOF
23127#define HAVE_IOCTLSOCKET_CAMEL 1
23128_ACEOF
23129
23130    ac_cv_func_ioctlsocket_camel="yes"
23131
23132  #
23133  tst_compi_ioctlsocket_camel_fionbio="unknown"
23134  tst_allow_ioctlsocket_camel_fionbio="unknown"
23135  #
23136  if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
23137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
23138$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
23139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140/* end confdefs.h.  */
23141
23142
23143        $cares_includes_stropts
23144
23145int main (void)
23146{
23147
23148        long flags = 0;
23149        if(0 != ioctlsocket(0, FIONBIO, &flags))
23150          return 1;
23151
23152 ;
23153 return 0;
23154}
23155
23156_ACEOF
23157if ac_fn_c_try_compile "$LINENO"; then :
23158
23159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160$as_echo "yes" >&6; }
23161      tst_compi_ioctlsocket_camel_fionbio="yes"
23162
23163else
23164
23165      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23166$as_echo "no" >&6; }
23167      tst_compi_ioctlsocket_camel_fionbio="no"
23168
23169fi
23170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171  fi
23172  #
23173  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
23174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
23175$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
23176    if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
23177      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23178$as_echo "yes" >&6; }
23179      tst_allow_ioctlsocket_camel_fionbio="yes"
23180    else
23181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23182$as_echo "no" >&6; }
23183      tst_allow_ioctlsocket_camel_fionbio="no"
23184    fi
23185  fi
23186  #
23187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
23188$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
23189  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
23190     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
23191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23192$as_echo "yes" >&6; }
23193
23194cat >>confdefs.h <<_ACEOF
23195#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
23196_ACEOF
23197
23198    ac_cv_func_ioctlsocket_camel_fionbio="yes"
23199  else
23200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23201$as_echo "no" >&6; }
23202    ac_cv_func_ioctlsocket_camel_fionbio="no"
23203  fi
23204
23205  else
23206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23207$as_echo "no" >&6; }
23208    ac_cv_func_ioctlsocket_camel="no"
23209  fi
23210
23211
23212      #
23213  tst_links_setsockopt="unknown"
23214  tst_proto_setsockopt="unknown"
23215  tst_compi_setsockopt="unknown"
23216  tst_allow_setsockopt="unknown"
23217  #
23218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
23219$as_echo_n "checking if setsockopt can be linked... " >&6; }
23220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221/* end confdefs.h.  */
23222
23223
23224      $cares_includes_winsock2
23225      $cares_includes_sys_socket
23226
23227int main (void)
23228{
23229
23230      if(0 != setsockopt(0, 0, 0, 0, 0))
23231        return 1;
23232
23233 ;
23234 return 0;
23235}
23236
23237_ACEOF
23238if ac_fn_c_try_link "$LINENO"; then :
23239
23240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23241$as_echo "yes" >&6; }
23242    tst_links_setsockopt="yes"
23243
23244else
23245
23246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23247$as_echo "no" >&6; }
23248    tst_links_setsockopt="no"
23249
23250fi
23251rm -f core conftest.err conftest.$ac_objext \
23252    conftest$ac_exeext conftest.$ac_ext
23253  #
23254  if test "$tst_links_setsockopt" = "yes"; then
23255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
23256$as_echo_n "checking if setsockopt is prototyped... " >&6; }
23257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23258/* end confdefs.h.  */
23259
23260      $cares_includes_winsock2
23261      $cares_includes_sys_socket
23262
23263_ACEOF
23264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23265  $EGREP "setsockopt" >/dev/null 2>&1; then :
23266
23267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23268$as_echo "yes" >&6; }
23269      tst_proto_setsockopt="yes"
23270
23271else
23272
23273      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23274$as_echo "no" >&6; }
23275      tst_proto_setsockopt="no"
23276
23277fi
23278rm -f conftest*
23279
23280  fi
23281  #
23282  if test "$tst_proto_setsockopt" = "yes"; then
23283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
23284$as_echo_n "checking if setsockopt is compilable... " >&6; }
23285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23286/* end confdefs.h.  */
23287
23288
23289        $cares_includes_winsock2
23290        $cares_includes_sys_socket
23291
23292int main (void)
23293{
23294
23295        if(0 != setsockopt(0, 0, 0, 0, 0))
23296          return 1;
23297
23298 ;
23299 return 0;
23300}
23301
23302_ACEOF
23303if ac_fn_c_try_compile "$LINENO"; then :
23304
23305      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23306$as_echo "yes" >&6; }
23307      tst_compi_setsockopt="yes"
23308
23309else
23310
23311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312$as_echo "no" >&6; }
23313      tst_compi_setsockopt="no"
23314
23315fi
23316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23317  fi
23318  #
23319  if test "$tst_compi_setsockopt" = "yes"; then
23320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
23321$as_echo_n "checking if setsockopt usage allowed... " >&6; }
23322    if test "x$cares_disallow_setsockopt" != "xyes"; then
23323      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23324$as_echo "yes" >&6; }
23325      tst_allow_setsockopt="yes"
23326    else
23327      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328$as_echo "no" >&6; }
23329      tst_allow_setsockopt="no"
23330    fi
23331  fi
23332  #
23333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
23334$as_echo_n "checking if setsockopt might be used... " >&6; }
23335  if test "$tst_links_setsockopt" = "yes" &&
23336     test "$tst_proto_setsockopt" = "yes" &&
23337     test "$tst_compi_setsockopt" = "yes" &&
23338     test "$tst_allow_setsockopt" = "yes"; then
23339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23340$as_echo "yes" >&6; }
23341
23342cat >>confdefs.h <<_ACEOF
23343#define HAVE_SETSOCKOPT 1
23344_ACEOF
23345
23346    ac_cv_func_setsockopt="yes"
23347
23348  #
23349  tst_compi_setsockopt_so_nonblock="unknown"
23350  tst_allow_setsockopt_so_nonblock="unknown"
23351  #
23352  if test "$ac_cv_func_setsockopt" = "yes"; then
23353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
23354$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
23355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356/* end confdefs.h.  */
23357
23358
23359        $cares_includes_winsock2
23360        $cares_includes_sys_socket
23361
23362int main (void)
23363{
23364
23365        if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
23366          return 1;
23367
23368 ;
23369 return 0;
23370}
23371
23372_ACEOF
23373if ac_fn_c_try_compile "$LINENO"; then :
23374
23375      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23376$as_echo "yes" >&6; }
23377      tst_compi_setsockopt_so_nonblock="yes"
23378
23379else
23380
23381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23382$as_echo "no" >&6; }
23383      tst_compi_setsockopt_so_nonblock="no"
23384
23385fi
23386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387  fi
23388  #
23389  if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
23390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
23391$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
23392    if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
23393      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23394$as_echo "yes" >&6; }
23395      tst_allow_setsockopt_so_nonblock="yes"
23396    else
23397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23398$as_echo "no" >&6; }
23399      tst_allow_setsockopt_so_nonblock="no"
23400    fi
23401  fi
23402  #
23403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
23404$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
23405  if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
23406     test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
23407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23408$as_echo "yes" >&6; }
23409
23410cat >>confdefs.h <<_ACEOF
23411#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
23412_ACEOF
23413
23414    ac_cv_func_setsockopt_so_nonblock="yes"
23415  else
23416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417$as_echo "no" >&6; }
23418    ac_cv_func_setsockopt_so_nonblock="no"
23419  fi
23420
23421  else
23422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23423$as_echo "no" >&6; }
23424    ac_cv_func_setsockopt="no"
23425  fi
23426
23427
23428        #
23429  tst_links_socket="unknown"
23430  tst_proto_socket="unknown"
23431  tst_compi_socket="unknown"
23432  tst_allow_socket="unknown"
23433  #
23434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
23435$as_echo_n "checking if socket can be linked... " >&6; }
23436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437/* end confdefs.h.  */
23438
23439
23440      $cares_includes_winsock2
23441      $cares_includes_sys_socket
23442      $cares_includes_socket
23443
23444int main (void)
23445{
23446
23447      if(0 != socket(0, 0, 0))
23448        return 1;
23449
23450 ;
23451 return 0;
23452}
23453
23454_ACEOF
23455if ac_fn_c_try_link "$LINENO"; then :
23456
23457    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23458$as_echo "yes" >&6; }
23459    tst_links_socket="yes"
23460
23461else
23462
23463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23464$as_echo "no" >&6; }
23465    tst_links_socket="no"
23466
23467fi
23468rm -f core conftest.err conftest.$ac_objext \
23469    conftest$ac_exeext conftest.$ac_ext
23470  #
23471  if test "$tst_links_socket" = "yes"; then
23472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
23473$as_echo_n "checking if socket is prototyped... " >&6; }
23474    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23475/* end confdefs.h.  */
23476
23477      $cares_includes_winsock2
23478      $cares_includes_sys_socket
23479      $cares_includes_socket
23480
23481_ACEOF
23482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23483  $EGREP "socket" >/dev/null 2>&1; then :
23484
23485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23486$as_echo "yes" >&6; }
23487      tst_proto_socket="yes"
23488
23489else
23490
23491      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23492$as_echo "no" >&6; }
23493      tst_proto_socket="no"
23494
23495fi
23496rm -f conftest*
23497
23498  fi
23499  #
23500  if test "$tst_proto_socket" = "yes"; then
23501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
23502$as_echo_n "checking if socket is compilable... " >&6; }
23503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h.  */
23505
23506
23507        $cares_includes_winsock2
23508        $cares_includes_sys_socket
23509        $cares_includes_socket
23510
23511int main (void)
23512{
23513
23514        if(0 != socket(0, 0, 0))
23515          return 1;
23516
23517 ;
23518 return 0;
23519}
23520
23521_ACEOF
23522if ac_fn_c_try_compile "$LINENO"; then :
23523
23524      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23525$as_echo "yes" >&6; }
23526      tst_compi_socket="yes"
23527
23528else
23529
23530      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23531$as_echo "no" >&6; }
23532      tst_compi_socket="no"
23533
23534fi
23535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536  fi
23537  #
23538  if test "$tst_compi_socket" = "yes"; then
23539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
23540$as_echo_n "checking if socket usage allowed... " >&6; }
23541    if test "x$cares_disallow_socket" != "xyes"; then
23542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23543$as_echo "yes" >&6; }
23544      tst_allow_socket="yes"
23545    else
23546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23547$as_echo "no" >&6; }
23548      tst_allow_socket="no"
23549    fi
23550  fi
23551  #
23552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
23553$as_echo_n "checking if socket might be used... " >&6; }
23554  if test "$tst_links_socket" = "yes" &&
23555     test "$tst_proto_socket" = "yes" &&
23556     test "$tst_compi_socket" = "yes" &&
23557     test "$tst_allow_socket" = "yes"; then
23558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23559$as_echo "yes" >&6; }
23560
23561cat >>confdefs.h <<_ACEOF
23562#define HAVE_SOCKET 1
23563_ACEOF
23564
23565    ac_cv_func_socket="yes"
23566  else
23567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23568$as_echo "no" >&6; }
23569    ac_cv_func_socket="no"
23570  fi
23571
23572
23573    #
23574  tst_links_strcasecmp="unknown"
23575  tst_proto_strcasecmp="unknown"
23576  tst_compi_strcasecmp="unknown"
23577  tst_allow_strcasecmp="unknown"
23578  #
23579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
23580$as_echo_n "checking if strcasecmp can be linked... " >&6; }
23581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23582/* end confdefs.h.  */
23583
23584
23585#define strcasecmp innocuous_strcasecmp
23586#ifdef __STDC__
23587# include <limits.h>
23588#else
23589# include <assert.h>
23590#endif
23591#undef strcasecmp
23592#ifdef __cplusplus
23593extern "C"
23594#endif
23595char strcasecmp ();
23596#if defined __stub_strcasecmp || defined __stub___strcasecmp
23597choke me
23598#endif
23599
23600int main (void)
23601{
23602return strcasecmp ();
23603 ;
23604 return 0;
23605}
23606
23607_ACEOF
23608if ac_fn_c_try_link "$LINENO"; then :
23609
23610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23611$as_echo "yes" >&6; }
23612    tst_links_strcasecmp="yes"
23613
23614else
23615
23616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23617$as_echo "no" >&6; }
23618    tst_links_strcasecmp="no"
23619
23620fi
23621rm -f core conftest.err conftest.$ac_objext \
23622    conftest$ac_exeext conftest.$ac_ext
23623  #
23624  if test "$tst_links_strcasecmp" = "yes"; then
23625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
23626$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
23627    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628/* end confdefs.h.  */
23629
23630      $cares_includes_string
23631
23632_ACEOF
23633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23634  $EGREP "strcasecmp" >/dev/null 2>&1; then :
23635
23636      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23637$as_echo "yes" >&6; }
23638      tst_proto_strcasecmp="yes"
23639
23640else
23641
23642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23643$as_echo "no" >&6; }
23644      tst_proto_strcasecmp="no"
23645
23646fi
23647rm -f conftest*
23648
23649  fi
23650  #
23651  if test "$tst_proto_strcasecmp" = "yes"; then
23652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
23653$as_echo_n "checking if strcasecmp is compilable... " >&6; }
23654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655/* end confdefs.h.  */
23656
23657
23658        $cares_includes_string
23659
23660int main (void)
23661{
23662
23663        if(0 != strcasecmp(0, 0))
23664          return 1;
23665
23666 ;
23667 return 0;
23668}
23669
23670_ACEOF
23671if ac_fn_c_try_compile "$LINENO"; then :
23672
23673      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23674$as_echo "yes" >&6; }
23675      tst_compi_strcasecmp="yes"
23676
23677else
23678
23679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680$as_echo "no" >&6; }
23681      tst_compi_strcasecmp="no"
23682
23683fi
23684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685  fi
23686  #
23687  if test "$tst_compi_strcasecmp" = "yes"; then
23688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
23689$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
23690    if test "x$cares_disallow_strcasecmp" != "xyes"; then
23691      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692$as_echo "yes" >&6; }
23693      tst_allow_strcasecmp="yes"
23694    else
23695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696$as_echo "no" >&6; }
23697      tst_allow_strcasecmp="no"
23698    fi
23699  fi
23700  #
23701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
23702$as_echo_n "checking if strcasecmp might be used... " >&6; }
23703  if test "$tst_links_strcasecmp" = "yes" &&
23704     test "$tst_proto_strcasecmp" = "yes" &&
23705     test "$tst_compi_strcasecmp" = "yes" &&
23706     test "$tst_allow_strcasecmp" = "yes"; then
23707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23708$as_echo "yes" >&6; }
23709
23710cat >>confdefs.h <<_ACEOF
23711#define HAVE_STRCASECMP 1
23712_ACEOF
23713
23714    ac_cv_func_strcasecmp="yes"
23715  else
23716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23717$as_echo "no" >&6; }
23718    ac_cv_func_strcasecmp="no"
23719  fi
23720
23721
23722    #
23723  tst_links_strcmpi="unknown"
23724  tst_proto_strcmpi="unknown"
23725  tst_compi_strcmpi="unknown"
23726  tst_allow_strcmpi="unknown"
23727  #
23728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
23729$as_echo_n "checking if strcmpi can be linked... " >&6; }
23730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731/* end confdefs.h.  */
23732
23733
23734#define strcmpi innocuous_strcmpi
23735#ifdef __STDC__
23736# include <limits.h>
23737#else
23738# include <assert.h>
23739#endif
23740#undef strcmpi
23741#ifdef __cplusplus
23742extern "C"
23743#endif
23744char strcmpi ();
23745#if defined __stub_strcmpi || defined __stub___strcmpi
23746choke me
23747#endif
23748
23749int main (void)
23750{
23751return strcmpi ();
23752 ;
23753 return 0;
23754}
23755
23756_ACEOF
23757if ac_fn_c_try_link "$LINENO"; then :
23758
23759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23760$as_echo "yes" >&6; }
23761    tst_links_strcmpi="yes"
23762
23763else
23764
23765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766$as_echo "no" >&6; }
23767    tst_links_strcmpi="no"
23768
23769fi
23770rm -f core conftest.err conftest.$ac_objext \
23771    conftest$ac_exeext conftest.$ac_ext
23772  #
23773  if test "$tst_links_strcmpi" = "yes"; then
23774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
23775$as_echo_n "checking if strcmpi is prototyped... " >&6; }
23776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777/* end confdefs.h.  */
23778
23779      $cares_includes_string
23780
23781_ACEOF
23782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23783  $EGREP "strcmpi" >/dev/null 2>&1; then :
23784
23785      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23786$as_echo "yes" >&6; }
23787      tst_proto_strcmpi="yes"
23788
23789else
23790
23791      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23792$as_echo "no" >&6; }
23793      tst_proto_strcmpi="no"
23794
23795fi
23796rm -f conftest*
23797
23798  fi
23799  #
23800  if test "$tst_proto_strcmpi" = "yes"; then
23801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
23802$as_echo_n "checking if strcmpi is compilable... " >&6; }
23803    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804/* end confdefs.h.  */
23805
23806
23807        $cares_includes_string
23808
23809int main (void)
23810{
23811
23812        if(0 != strcmpi(0, 0))
23813          return 1;
23814
23815 ;
23816 return 0;
23817}
23818
23819_ACEOF
23820if ac_fn_c_try_compile "$LINENO"; then :
23821
23822      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23823$as_echo "yes" >&6; }
23824      tst_compi_strcmpi="yes"
23825
23826else
23827
23828      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23829$as_echo "no" >&6; }
23830      tst_compi_strcmpi="no"
23831
23832fi
23833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834  fi
23835  #
23836  if test "$tst_compi_strcmpi" = "yes"; then
23837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
23838$as_echo_n "checking if strcmpi usage allowed... " >&6; }
23839    if test "x$cares_disallow_strcmpi" != "xyes"; then
23840      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23841$as_echo "yes" >&6; }
23842      tst_allow_strcmpi="yes"
23843    else
23844      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23845$as_echo "no" >&6; }
23846      tst_allow_strcmpi="no"
23847    fi
23848  fi
23849  #
23850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
23851$as_echo_n "checking if strcmpi might be used... " >&6; }
23852  if test "$tst_links_strcmpi" = "yes" &&
23853     test "$tst_proto_strcmpi" = "yes" &&
23854     test "$tst_compi_strcmpi" = "yes" &&
23855     test "$tst_allow_strcmpi" = "yes"; then
23856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23857$as_echo "yes" >&6; }
23858
23859cat >>confdefs.h <<_ACEOF
23860#define HAVE_STRCMPI 1
23861_ACEOF
23862
23863    ac_cv_func_strcmpi="yes"
23864  else
23865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866$as_echo "no" >&6; }
23867    ac_cv_func_strcmpi="no"
23868  fi
23869
23870
23871    #
23872  tst_links_strdup="unknown"
23873  tst_proto_strdup="unknown"
23874  tst_compi_strdup="unknown"
23875  tst_allow_strdup="unknown"
23876  #
23877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
23878$as_echo_n "checking if strdup can be linked... " >&6; }
23879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23880/* end confdefs.h.  */
23881
23882
23883#define strdup innocuous_strdup
23884#ifdef __STDC__
23885# include <limits.h>
23886#else
23887# include <assert.h>
23888#endif
23889#undef strdup
23890#ifdef __cplusplus
23891extern "C"
23892#endif
23893char strdup ();
23894#if defined __stub_strdup || defined __stub___strdup
23895choke me
23896#endif
23897
23898int main (void)
23899{
23900return strdup ();
23901 ;
23902 return 0;
23903}
23904
23905_ACEOF
23906if ac_fn_c_try_link "$LINENO"; then :
23907
23908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23909$as_echo "yes" >&6; }
23910    tst_links_strdup="yes"
23911
23912else
23913
23914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23915$as_echo "no" >&6; }
23916    tst_links_strdup="no"
23917
23918fi
23919rm -f core conftest.err conftest.$ac_objext \
23920    conftest$ac_exeext conftest.$ac_ext
23921  #
23922  if test "$tst_links_strdup" = "yes"; then
23923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
23924$as_echo_n "checking if strdup is prototyped... " >&6; }
23925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23926/* end confdefs.h.  */
23927
23928      $cares_includes_string
23929
23930_ACEOF
23931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23932  $EGREP "strdup" >/dev/null 2>&1; then :
23933
23934      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23935$as_echo "yes" >&6; }
23936      tst_proto_strdup="yes"
23937
23938else
23939
23940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23941$as_echo "no" >&6; }
23942      tst_proto_strdup="no"
23943
23944fi
23945rm -f conftest*
23946
23947  fi
23948  #
23949  if test "$tst_proto_strdup" = "yes"; then
23950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
23951$as_echo_n "checking if strdup is compilable... " >&6; }
23952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953/* end confdefs.h.  */
23954
23955
23956        $cares_includes_string
23957
23958int main (void)
23959{
23960
23961        if(0 != strdup(0))
23962          return 1;
23963
23964 ;
23965 return 0;
23966}
23967
23968_ACEOF
23969if ac_fn_c_try_compile "$LINENO"; then :
23970
23971      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23972$as_echo "yes" >&6; }
23973      tst_compi_strdup="yes"
23974
23975else
23976
23977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23978$as_echo "no" >&6; }
23979      tst_compi_strdup="no"
23980
23981fi
23982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983  fi
23984  #
23985  if test "$tst_compi_strdup" = "yes"; then
23986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
23987$as_echo_n "checking if strdup usage allowed... " >&6; }
23988    if test "x$cares_disallow_strdup" != "xyes"; then
23989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23990$as_echo "yes" >&6; }
23991      tst_allow_strdup="yes"
23992    else
23993      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23994$as_echo "no" >&6; }
23995      tst_allow_strdup="no"
23996    fi
23997  fi
23998  #
23999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
24000$as_echo_n "checking if strdup might be used... " >&6; }
24001  if test "$tst_links_strdup" = "yes" &&
24002     test "$tst_proto_strdup" = "yes" &&
24003     test "$tst_compi_strdup" = "yes" &&
24004     test "$tst_allow_strdup" = "yes"; then
24005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24006$as_echo "yes" >&6; }
24007
24008cat >>confdefs.h <<_ACEOF
24009#define HAVE_STRDUP 1
24010_ACEOF
24011
24012    ac_cv_func_strdup="yes"
24013  else
24014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24015$as_echo "no" >&6; }
24016    ac_cv_func_strdup="no"
24017  fi
24018
24019
24020    #
24021  tst_links_stricmp="unknown"
24022  tst_proto_stricmp="unknown"
24023  tst_compi_stricmp="unknown"
24024  tst_allow_stricmp="unknown"
24025  #
24026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
24027$as_echo_n "checking if stricmp can be linked... " >&6; }
24028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24029/* end confdefs.h.  */
24030
24031
24032#define stricmp innocuous_stricmp
24033#ifdef __STDC__
24034# include <limits.h>
24035#else
24036# include <assert.h>
24037#endif
24038#undef stricmp
24039#ifdef __cplusplus
24040extern "C"
24041#endif
24042char stricmp ();
24043#if defined __stub_stricmp || defined __stub___stricmp
24044choke me
24045#endif
24046
24047int main (void)
24048{
24049return stricmp ();
24050 ;
24051 return 0;
24052}
24053
24054_ACEOF
24055if ac_fn_c_try_link "$LINENO"; then :
24056
24057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24058$as_echo "yes" >&6; }
24059    tst_links_stricmp="yes"
24060
24061else
24062
24063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24064$as_echo "no" >&6; }
24065    tst_links_stricmp="no"
24066
24067fi
24068rm -f core conftest.err conftest.$ac_objext \
24069    conftest$ac_exeext conftest.$ac_ext
24070  #
24071  if test "$tst_links_stricmp" = "yes"; then
24072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
24073$as_echo_n "checking if stricmp is prototyped... " >&6; }
24074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24075/* end confdefs.h.  */
24076
24077      $cares_includes_string
24078
24079_ACEOF
24080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24081  $EGREP "stricmp" >/dev/null 2>&1; then :
24082
24083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24084$as_echo "yes" >&6; }
24085      tst_proto_stricmp="yes"
24086
24087else
24088
24089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24090$as_echo "no" >&6; }
24091      tst_proto_stricmp="no"
24092
24093fi
24094rm -f conftest*
24095
24096  fi
24097  #
24098  if test "$tst_proto_stricmp" = "yes"; then
24099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
24100$as_echo_n "checking if stricmp is compilable... " >&6; }
24101    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102/* end confdefs.h.  */
24103
24104
24105        $cares_includes_string
24106
24107int main (void)
24108{
24109
24110        if(0 != stricmp(0, 0))
24111          return 1;
24112
24113 ;
24114 return 0;
24115}
24116
24117_ACEOF
24118if ac_fn_c_try_compile "$LINENO"; then :
24119
24120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24121$as_echo "yes" >&6; }
24122      tst_compi_stricmp="yes"
24123
24124else
24125
24126      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24127$as_echo "no" >&6; }
24128      tst_compi_stricmp="no"
24129
24130fi
24131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132  fi
24133  #
24134  if test "$tst_compi_stricmp" = "yes"; then
24135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
24136$as_echo_n "checking if stricmp usage allowed... " >&6; }
24137    if test "x$cares_disallow_stricmp" != "xyes"; then
24138      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24139$as_echo "yes" >&6; }
24140      tst_allow_stricmp="yes"
24141    else
24142      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24143$as_echo "no" >&6; }
24144      tst_allow_stricmp="no"
24145    fi
24146  fi
24147  #
24148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
24149$as_echo_n "checking if stricmp might be used... " >&6; }
24150  if test "$tst_links_stricmp" = "yes" &&
24151     test "$tst_proto_stricmp" = "yes" &&
24152     test "$tst_compi_stricmp" = "yes" &&
24153     test "$tst_allow_stricmp" = "yes"; then
24154    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24155$as_echo "yes" >&6; }
24156
24157cat >>confdefs.h <<_ACEOF
24158#define HAVE_STRICMP 1
24159_ACEOF
24160
24161    ac_cv_func_stricmp="yes"
24162  else
24163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164$as_echo "no" >&6; }
24165    ac_cv_func_stricmp="no"
24166  fi
24167
24168
24169    #
24170  tst_links_strncasecmp="unknown"
24171  tst_proto_strncasecmp="unknown"
24172  tst_compi_strncasecmp="unknown"
24173  tst_allow_strncasecmp="unknown"
24174  #
24175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
24176$as_echo_n "checking if strncasecmp can be linked... " >&6; }
24177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178/* end confdefs.h.  */
24179
24180
24181#define strncasecmp innocuous_strncasecmp
24182#ifdef __STDC__
24183# include <limits.h>
24184#else
24185# include <assert.h>
24186#endif
24187#undef strncasecmp
24188#ifdef __cplusplus
24189extern "C"
24190#endif
24191char strncasecmp ();
24192#if defined __stub_strncasecmp || defined __stub___strncasecmp
24193choke me
24194#endif
24195
24196int main (void)
24197{
24198return strncasecmp ();
24199 ;
24200 return 0;
24201}
24202
24203_ACEOF
24204if ac_fn_c_try_link "$LINENO"; then :
24205
24206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24207$as_echo "yes" >&6; }
24208    tst_links_strncasecmp="yes"
24209
24210else
24211
24212    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24213$as_echo "no" >&6; }
24214    tst_links_strncasecmp="no"
24215
24216fi
24217rm -f core conftest.err conftest.$ac_objext \
24218    conftest$ac_exeext conftest.$ac_ext
24219  #
24220  if test "$tst_links_strncasecmp" = "yes"; then
24221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
24222$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
24223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224/* end confdefs.h.  */
24225
24226      $cares_includes_string
24227
24228_ACEOF
24229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24230  $EGREP "strncasecmp" >/dev/null 2>&1; then :
24231
24232      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24233$as_echo "yes" >&6; }
24234      tst_proto_strncasecmp="yes"
24235
24236else
24237
24238      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24239$as_echo "no" >&6; }
24240      tst_proto_strncasecmp="no"
24241
24242fi
24243rm -f conftest*
24244
24245  fi
24246  #
24247  if test "$tst_proto_strncasecmp" = "yes"; then
24248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
24249$as_echo_n "checking if strncasecmp is compilable... " >&6; }
24250    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251/* end confdefs.h.  */
24252
24253
24254        $cares_includes_string
24255
24256int main (void)
24257{
24258
24259        if(0 != strncasecmp(0, 0, 0))
24260          return 1;
24261
24262 ;
24263 return 0;
24264}
24265
24266_ACEOF
24267if ac_fn_c_try_compile "$LINENO"; then :
24268
24269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24270$as_echo "yes" >&6; }
24271      tst_compi_strncasecmp="yes"
24272
24273else
24274
24275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276$as_echo "no" >&6; }
24277      tst_compi_strncasecmp="no"
24278
24279fi
24280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281  fi
24282  #
24283  if test "$tst_compi_strncasecmp" = "yes"; then
24284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
24285$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
24286    if test "x$cares_disallow_strncasecmp" != "xyes"; then
24287      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24288$as_echo "yes" >&6; }
24289      tst_allow_strncasecmp="yes"
24290    else
24291      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24292$as_echo "no" >&6; }
24293      tst_allow_strncasecmp="no"
24294    fi
24295  fi
24296  #
24297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
24298$as_echo_n "checking if strncasecmp might be used... " >&6; }
24299  if test "$tst_links_strncasecmp" = "yes" &&
24300     test "$tst_proto_strncasecmp" = "yes" &&
24301     test "$tst_compi_strncasecmp" = "yes" &&
24302     test "$tst_allow_strncasecmp" = "yes"; then
24303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24304$as_echo "yes" >&6; }
24305
24306cat >>confdefs.h <<_ACEOF
24307#define HAVE_STRNCASECMP 1
24308_ACEOF
24309
24310    ac_cv_func_strncasecmp="yes"
24311  else
24312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24313$as_echo "no" >&6; }
24314    ac_cv_func_strncasecmp="no"
24315  fi
24316
24317
24318    #
24319  tst_links_strncmpi="unknown"
24320  tst_proto_strncmpi="unknown"
24321  tst_compi_strncmpi="unknown"
24322  tst_allow_strncmpi="unknown"
24323  #
24324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
24325$as_echo_n "checking if strncmpi can be linked... " >&6; }
24326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327/* end confdefs.h.  */
24328
24329
24330#define strncmpi innocuous_strncmpi
24331#ifdef __STDC__
24332# include <limits.h>
24333#else
24334# include <assert.h>
24335#endif
24336#undef strncmpi
24337#ifdef __cplusplus
24338extern "C"
24339#endif
24340char strncmpi ();
24341#if defined __stub_strncmpi || defined __stub___strncmpi
24342choke me
24343#endif
24344
24345int main (void)
24346{
24347return strncmpi ();
24348 ;
24349 return 0;
24350}
24351
24352_ACEOF
24353if ac_fn_c_try_link "$LINENO"; then :
24354
24355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24356$as_echo "yes" >&6; }
24357    tst_links_strncmpi="yes"
24358
24359else
24360
24361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362$as_echo "no" >&6; }
24363    tst_links_strncmpi="no"
24364
24365fi
24366rm -f core conftest.err conftest.$ac_objext \
24367    conftest$ac_exeext conftest.$ac_ext
24368  #
24369  if test "$tst_links_strncmpi" = "yes"; then
24370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
24371$as_echo_n "checking if strncmpi is prototyped... " >&6; }
24372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373/* end confdefs.h.  */
24374
24375      $cares_includes_string
24376
24377_ACEOF
24378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24379  $EGREP "strncmpi" >/dev/null 2>&1; then :
24380
24381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24382$as_echo "yes" >&6; }
24383      tst_proto_strncmpi="yes"
24384
24385else
24386
24387      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24388$as_echo "no" >&6; }
24389      tst_proto_strncmpi="no"
24390
24391fi
24392rm -f conftest*
24393
24394  fi
24395  #
24396  if test "$tst_proto_strncmpi" = "yes"; then
24397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
24398$as_echo_n "checking if strncmpi is compilable... " >&6; }
24399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400/* end confdefs.h.  */
24401
24402
24403        $cares_includes_string
24404
24405int main (void)
24406{
24407
24408        if(0 != strncmpi(0, 0))
24409          return 1;
24410
24411 ;
24412 return 0;
24413}
24414
24415_ACEOF
24416if ac_fn_c_try_compile "$LINENO"; then :
24417
24418      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24419$as_echo "yes" >&6; }
24420      tst_compi_strncmpi="yes"
24421
24422else
24423
24424      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24425$as_echo "no" >&6; }
24426      tst_compi_strncmpi="no"
24427
24428fi
24429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24430  fi
24431  #
24432  if test "$tst_compi_strncmpi" = "yes"; then
24433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
24434$as_echo_n "checking if strncmpi usage allowed... " >&6; }
24435    if test "x$cares_disallow_strncmpi" != "xyes"; then
24436      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437$as_echo "yes" >&6; }
24438      tst_allow_strncmpi="yes"
24439    else
24440      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441$as_echo "no" >&6; }
24442      tst_allow_strncmpi="no"
24443    fi
24444  fi
24445  #
24446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
24447$as_echo_n "checking if strncmpi might be used... " >&6; }
24448  if test "$tst_links_strncmpi" = "yes" &&
24449     test "$tst_proto_strncmpi" = "yes" &&
24450     test "$tst_compi_strncmpi" = "yes" &&
24451     test "$tst_allow_strncmpi" = "yes"; then
24452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24453$as_echo "yes" >&6; }
24454
24455cat >>confdefs.h <<_ACEOF
24456#define HAVE_STRNCMPI 1
24457_ACEOF
24458
24459    ac_cv_func_strncmpi="yes"
24460  else
24461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462$as_echo "no" >&6; }
24463    ac_cv_func_strncmpi="no"
24464  fi
24465
24466
24467    #
24468  tst_links_strnicmp="unknown"
24469  tst_proto_strnicmp="unknown"
24470  tst_compi_strnicmp="unknown"
24471  tst_allow_strnicmp="unknown"
24472  #
24473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
24474$as_echo_n "checking if strnicmp can be linked... " >&6; }
24475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476/* end confdefs.h.  */
24477
24478
24479#define strnicmp innocuous_strnicmp
24480#ifdef __STDC__
24481# include <limits.h>
24482#else
24483# include <assert.h>
24484#endif
24485#undef strnicmp
24486#ifdef __cplusplus
24487extern "C"
24488#endif
24489char strnicmp ();
24490#if defined __stub_strnicmp || defined __stub___strnicmp
24491choke me
24492#endif
24493
24494int main (void)
24495{
24496return strnicmp ();
24497 ;
24498 return 0;
24499}
24500
24501_ACEOF
24502if ac_fn_c_try_link "$LINENO"; then :
24503
24504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24505$as_echo "yes" >&6; }
24506    tst_links_strnicmp="yes"
24507
24508else
24509
24510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511$as_echo "no" >&6; }
24512    tst_links_strnicmp="no"
24513
24514fi
24515rm -f core conftest.err conftest.$ac_objext \
24516    conftest$ac_exeext conftest.$ac_ext
24517  #
24518  if test "$tst_links_strnicmp" = "yes"; then
24519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
24520$as_echo_n "checking if strnicmp is prototyped... " >&6; }
24521    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522/* end confdefs.h.  */
24523
24524      $cares_includes_string
24525
24526_ACEOF
24527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24528  $EGREP "strnicmp" >/dev/null 2>&1; then :
24529
24530      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24531$as_echo "yes" >&6; }
24532      tst_proto_strnicmp="yes"
24533
24534else
24535
24536      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537$as_echo "no" >&6; }
24538      tst_proto_strnicmp="no"
24539
24540fi
24541rm -f conftest*
24542
24543  fi
24544  #
24545  if test "$tst_proto_strnicmp" = "yes"; then
24546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
24547$as_echo_n "checking if strnicmp is compilable... " >&6; }
24548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24549/* end confdefs.h.  */
24550
24551
24552        $cares_includes_string
24553
24554int main (void)
24555{
24556
24557        if(0 != strnicmp(0, 0))
24558          return 1;
24559
24560 ;
24561 return 0;
24562}
24563
24564_ACEOF
24565if ac_fn_c_try_compile "$LINENO"; then :
24566
24567      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24568$as_echo "yes" >&6; }
24569      tst_compi_strnicmp="yes"
24570
24571else
24572
24573      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24574$as_echo "no" >&6; }
24575      tst_compi_strnicmp="no"
24576
24577fi
24578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579  fi
24580  #
24581  if test "$tst_compi_strnicmp" = "yes"; then
24582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
24583$as_echo_n "checking if strnicmp usage allowed... " >&6; }
24584    if test "x$cares_disallow_strnicmp" != "xyes"; then
24585      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24586$as_echo "yes" >&6; }
24587      tst_allow_strnicmp="yes"
24588    else
24589      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590$as_echo "no" >&6; }
24591      tst_allow_strnicmp="no"
24592    fi
24593  fi
24594  #
24595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
24596$as_echo_n "checking if strnicmp might be used... " >&6; }
24597  if test "$tst_links_strnicmp" = "yes" &&
24598     test "$tst_proto_strnicmp" = "yes" &&
24599     test "$tst_compi_strnicmp" = "yes" &&
24600     test "$tst_allow_strnicmp" = "yes"; then
24601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24602$as_echo "yes" >&6; }
24603
24604cat >>confdefs.h <<_ACEOF
24605#define HAVE_STRNICMP 1
24606_ACEOF
24607
24608    ac_cv_func_strnicmp="yes"
24609  else
24610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611$as_echo "no" >&6; }
24612    ac_cv_func_strnicmp="no"
24613  fi
24614
24615
24616cares_includes_sys_uio="\
24617/* includes start */
24618#ifdef HAVE_SYS_TYPES_H
24619#  include <sys/types.h>
24620#endif
24621#ifdef HAVE_SYS_UIO_H
24622#  include <sys/uio.h>
24623#endif
24624/* includes end */"
24625  for ac_header in sys/types.h sys/uio.h
24626do :
24627  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24628ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
24629"
24630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24631  cat >>confdefs.h <<_ACEOF
24632#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24633_ACEOF
24634
24635fi
24636
24637done
24638
24639
24640
24641    #
24642  tst_links_writev="unknown"
24643  tst_proto_writev="unknown"
24644  tst_compi_writev="unknown"
24645  tst_allow_writev="unknown"
24646  #
24647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
24648$as_echo_n "checking if writev can be linked... " >&6; }
24649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24650/* end confdefs.h.  */
24651
24652
24653#define writev innocuous_writev
24654#ifdef __STDC__
24655# include <limits.h>
24656#else
24657# include <assert.h>
24658#endif
24659#undef writev
24660#ifdef __cplusplus
24661extern "C"
24662#endif
24663char writev ();
24664#if defined __stub_writev || defined __stub___writev
24665choke me
24666#endif
24667
24668int main (void)
24669{
24670return writev ();
24671 ;
24672 return 0;
24673}
24674
24675_ACEOF
24676if ac_fn_c_try_link "$LINENO"; then :
24677
24678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24679$as_echo "yes" >&6; }
24680    tst_links_writev="yes"
24681
24682else
24683
24684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24685$as_echo "no" >&6; }
24686    tst_links_writev="no"
24687
24688fi
24689rm -f core conftest.err conftest.$ac_objext \
24690    conftest$ac_exeext conftest.$ac_ext
24691  #
24692  if test "$tst_links_writev" = "yes"; then
24693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
24694$as_echo_n "checking if writev is prototyped... " >&6; }
24695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696/* end confdefs.h.  */
24697
24698      $cares_includes_sys_uio
24699
24700_ACEOF
24701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24702  $EGREP "writev" >/dev/null 2>&1; then :
24703
24704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24705$as_echo "yes" >&6; }
24706      tst_proto_writev="yes"
24707
24708else
24709
24710      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24711$as_echo "no" >&6; }
24712      tst_proto_writev="no"
24713
24714fi
24715rm -f conftest*
24716
24717  fi
24718  #
24719  if test "$tst_proto_writev" = "yes"; then
24720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
24721$as_echo_n "checking if writev is compilable... " >&6; }
24722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h.  */
24724
24725
24726        $cares_includes_sys_uio
24727
24728int main (void)
24729{
24730
24731        if(0 != writev(0, 0, 0))
24732          return 1;
24733
24734 ;
24735 return 0;
24736}
24737
24738_ACEOF
24739if ac_fn_c_try_compile "$LINENO"; then :
24740
24741      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24742$as_echo "yes" >&6; }
24743      tst_compi_writev="yes"
24744
24745else
24746
24747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24748$as_echo "no" >&6; }
24749      tst_compi_writev="no"
24750
24751fi
24752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24753  fi
24754  #
24755  if test "$tst_compi_writev" = "yes"; then
24756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
24757$as_echo_n "checking if writev usage allowed... " >&6; }
24758    if test "x$cares_disallow_writev" != "xyes"; then
24759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24760$as_echo "yes" >&6; }
24761      tst_allow_writev="yes"
24762    else
24763      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24764$as_echo "no" >&6; }
24765      tst_allow_writev="no"
24766    fi
24767  fi
24768  #
24769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
24770$as_echo_n "checking if writev might be used... " >&6; }
24771  if test "$tst_links_writev" = "yes" &&
24772     test "$tst_proto_writev" = "yes" &&
24773     test "$tst_compi_writev" = "yes" &&
24774     test "$tst_allow_writev" = "yes"; then
24775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24776$as_echo "yes" >&6; }
24777
24778cat >>confdefs.h <<_ACEOF
24779#define HAVE_WRITEV 1
24780_ACEOF
24781
24782    ac_cv_func_writev="yes"
24783  else
24784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24785$as_echo "no" >&6; }
24786    ac_cv_func_writev="no"
24787  fi
24788
24789
24790
24791
24792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
24793$as_echo_n "checking for PF_INET6... " >&6; }
24794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795/* end confdefs.h.  */
24796
24797
24798#undef inline
24799#ifdef HAVE_WINDOWS_H
24800#ifndef WIN32_LEAN_AND_MEAN
24801#define WIN32_LEAN_AND_MEAN
24802#endif
24803#include <windows.h>
24804#ifdef HAVE_WINSOCK2_H
24805#include <winsock2.h>
24806#endif
24807#else
24808#ifdef HAVE_SYS_TYPES_H
24809#include <sys/types.h>
24810#endif
24811#ifdef HAVE_SYS_SOCKET_H
24812#include <sys/socket.h>
24813#endif
24814#endif
24815
24816
24817      #ifdef PF_INET6
24818        VARIABLEWASDEFINED
24819      #else
24820        NJET
24821      #endif
24822
24823_ACEOF
24824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24825  $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
24826  ac_constant="yes"
24827else
24828  ac_constant="no"
24829
24830fi
24831rm -f conftest*
24832
24833  if test "$ac_constant" = "yes" ; then
24834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24835$as_echo "yes" >&6; }
24836
24837cat >>confdefs.h <<_ACEOF
24838#define HAVE_PF_INET6 1
24839_ACEOF
24840
24841
24842  else
24843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844$as_echo "no" >&6; }
24845
24846  fi
24847
24848
24849
24850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
24851$as_echo_n "checking for AF_INET6... " >&6; }
24852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853/* end confdefs.h.  */
24854
24855
24856#undef inline
24857#ifdef HAVE_WINDOWS_H
24858#ifndef WIN32_LEAN_AND_MEAN
24859#define WIN32_LEAN_AND_MEAN
24860#endif
24861#include <windows.h>
24862#ifdef HAVE_WINSOCK2_H
24863#include <winsock2.h>
24864#endif
24865#else
24866#ifdef HAVE_SYS_TYPES_H
24867#include <sys/types.h>
24868#endif
24869#ifdef HAVE_SYS_SOCKET_H
24870#include <sys/socket.h>
24871#endif
24872#endif
24873
24874
24875      #ifdef AF_INET6
24876        VARIABLEWASDEFINED
24877      #else
24878        NJET
24879      #endif
24880
24881_ACEOF
24882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24883  $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
24884  ac_constant="yes"
24885else
24886  ac_constant="no"
24887
24888fi
24889rm -f conftest*
24890
24891  if test "$ac_constant" = "yes" ; then
24892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24893$as_echo "yes" >&6; }
24894
24895cat >>confdefs.h <<_ACEOF
24896#define HAVE_AF_INET6 1
24897_ACEOF
24898
24899
24900  else
24901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24902$as_echo "no" >&6; }
24903
24904  fi
24905
24906
24907
24908
24909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
24910$as_echo_n "checking for struct in6_addr... " >&6; }
24911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912/* end confdefs.h.  */
24913
24914#undef inline
24915#ifdef HAVE_WINDOWS_H
24916#ifndef WIN32_LEAN_AND_MEAN
24917#define WIN32_LEAN_AND_MEAN
24918#endif
24919#include <windows.h>
24920#ifdef HAVE_WINSOCK2_H
24921#include <winsock2.h>
24922#ifdef HAVE_WS2TCPIP_H
24923#include <ws2tcpip.h>
24924#endif
24925#endif
24926#else
24927#ifdef HAVE_SYS_TYPES_H
24928#include <sys/types.h>
24929#endif
24930#ifdef HAVE_NETINET_IN_H
24931#include <netinet/in.h>
24932#endif
24933#endif
24934
24935int main (void)
24936{
24937
24938      struct in6_addr struct_instance;
24939
24940 ;
24941 return 0;
24942}
24943_ACEOF
24944if ac_fn_c_try_compile "$LINENO"; then :
24945  ac_struct="yes"
24946else
24947  ac_found="no"
24948fi
24949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950  if test "$ac_struct" = "yes" ; then
24951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24952$as_echo "yes" >&6; }
24953
24954cat >>confdefs.h <<_ACEOF
24955#define HAVE_STRUCT_IN6_ADDR 1
24956_ACEOF
24957
24958
24959  else
24960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24961$as_echo "no" >&6; }
24962
24963  fi
24964
24965
24966
24967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
24968$as_echo_n "checking for struct sockaddr_in6... " >&6; }
24969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970/* end confdefs.h.  */
24971
24972#undef inline
24973#ifdef HAVE_WINDOWS_H
24974#ifndef WIN32_LEAN_AND_MEAN
24975#define WIN32_LEAN_AND_MEAN
24976#endif
24977#include <windows.h>
24978#ifdef HAVE_WINSOCK2_H
24979#include <winsock2.h>
24980#ifdef HAVE_WS2TCPIP_H
24981#include <ws2tcpip.h>
24982#endif
24983#endif
24984#else
24985#ifdef HAVE_SYS_TYPES_H
24986#include <sys/types.h>
24987#endif
24988#ifdef HAVE_NETINET_IN_H
24989#include <netinet/in.h>
24990#endif
24991#endif
24992
24993int main (void)
24994{
24995
24996      struct sockaddr_in6 struct_instance;
24997
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002if ac_fn_c_try_compile "$LINENO"; then :
25003  ac_struct="yes"
25004else
25005  ac_found="no"
25006fi
25007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25008  if test "$ac_struct" = "yes" ; then
25009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25010$as_echo "yes" >&6; }
25011
25012cat >>confdefs.h <<_ACEOF
25013#define HAVE_STRUCT_SOCKADDR_IN6 1
25014_ACEOF
25015 ac_have_sockaddr_in6=yes
25016
25017  else
25018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25019$as_echo "no" >&6; }
25020
25021  fi
25022
25023
25024ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
25025#undef inline
25026#ifdef HAVE_WINDOWS_H
25027#ifndef WIN32_LEAN_AND_MEAN
25028#define WIN32_LEAN_AND_MEAN
25029#endif
25030#include <windows.h>
25031#ifdef HAVE_WINSOCK2_H
25032#include <winsock2.h>
25033#ifdef HAVE_WS2TCPIP_H
25034#include <ws2tcpip.h>
25035#endif
25036#endif
25037#else
25038#ifdef HAVE_SYS_TYPES_H
25039#include <sys/types.h>
25040#endif
25041#ifdef HAVE_NETINET_IN_H
25042#include <netinet/in.h>
25043#endif
25044#endif
25045
25046"
25047if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
25048
25049cat >>confdefs.h <<_ACEOF
25050#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
25051_ACEOF
25052
25053
25054fi
25055
25056
25057ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
25058#undef inline
25059#ifdef HAVE_WINDOWS_H
25060#ifndef WIN32_LEAN_AND_MEAN
25061#define WIN32_LEAN_AND_MEAN
25062#endif
25063#include <windows.h>
25064#ifdef HAVE_WINSOCK2_H
25065#include <winsock2.h>
25066#ifdef HAVE_WS2TCPIP_H
25067#include <ws2tcpip.h>
25068#endif
25069#endif
25070#else
25071#ifdef HAVE_SYS_TYPES_H
25072#include <sys/types.h>
25073#endif
25074#ifdef HAVE_NETINET_IN_H
25075#include <netinet/in.h>
25076#endif
25077#ifdef HAVE_SYS_SOCKET_H
25078#include <sys/socket.h>
25079#endif
25080#ifdef HAVE_NETDB_H
25081#include <netdb.h>
25082#endif
25083#endif
25084
25085
25086"
25087if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
25088
25089cat >>confdefs.h <<_ACEOF
25090#define HAVE_STRUCT_ADDRINFO 1
25091_ACEOF
25092
25093fi
25094
25095
25096
25097for ac_func in bitncmp \
25098  gettimeofday \
25099  if_indextoname
25100
25101do :
25102  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25104if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25105  cat >>confdefs.h <<_ACEOF
25106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25107_ACEOF
25108
25109
25110else
25111
25112  func="$ac_func"
25113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
25114$as_echo_n "checking deeper for $func... " >&6; }
25115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25116/* end confdefs.h.  */
25117
25118
25119
25120int main (void)
25121{
25122
25123      $func ();
25124
25125 ;
25126 return 0;
25127}
25128
25129_ACEOF
25130if ac_fn_c_try_link "$LINENO"; then :
25131
25132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25133$as_echo "yes" >&6; }
25134    eval "ac_cv_func_$func=yes"
25135
25136cat >>confdefs.h <<_ACEOF
25137#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
25138_ACEOF
25139
25140
25141else
25142
25143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
25144$as_echo "but still no" >&6; }
25145
25146fi
25147rm -f core conftest.err conftest.$ac_objext \
25148    conftest$ac_exeext conftest.$ac_ext
25149
25150fi
25151done
25152
25153
25154
25155# The cast to long int works around a bug in the HP C Compiler
25156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25158# This bug is HP SR number 8606223364.
25159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in6_addr" >&5
25160$as_echo_n "checking size of struct in6_addr... " >&6; }
25161if ${ac_cv_sizeof_struct_in6_addr+:} false; then :
25162  $as_echo_n "(cached) " >&6
25163else
25164  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in6_addr))" "ac_cv_sizeof_struct_in6_addr"        "
25165#undef inline
25166#ifdef HAVE_WINDOWS_H
25167#ifndef WIN32_LEAN_AND_MEAN
25168#define WIN32_LEAN_AND_MEAN
25169#endif
25170#include <windows.h>
25171#ifdef HAVE_WINSOCK2_H
25172#include <winsock2.h>
25173#ifdef HAVE_WS2TCPIP_H
25174#include <ws2tcpip.h>
25175#endif
25176#endif
25177#else
25178#ifdef HAVE_SYS_TYPES_H
25179#include <sys/types.h>
25180#endif
25181#ifdef HAVE_SYS_SOCKET_H
25182#include <sys/socket.h>
25183#endif
25184#ifdef HAVE_NETINET_IN_H
25185#include <netinet/in.h>
25186#endif
25187#endif
25188
25189
25190"; then :
25191
25192else
25193  if test "$ac_cv_type_struct_in6_addr" = yes; then
25194     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25196as_fn_error 77 "cannot compute sizeof (struct in6_addr)
25197See \`config.log' for more details" "$LINENO" 5; }
25198   else
25199     ac_cv_sizeof_struct_in6_addr=0
25200   fi
25201fi
25202
25203fi
25204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in6_addr" >&5
25205$as_echo "$ac_cv_sizeof_struct_in6_addr" >&6; }
25206
25207
25208
25209cat >>confdefs.h <<_ACEOF
25210#define SIZEOF_STRUCT_IN6_ADDR $ac_cv_sizeof_struct_in6_addr
25211_ACEOF
25212
25213
25214
25215# The cast to long int works around a bug in the HP C Compiler
25216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25218# This bug is HP SR number 8606223364.
25219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct in_addr" >&5
25220$as_echo_n "checking size of struct in_addr... " >&6; }
25221if ${ac_cv_sizeof_struct_in_addr+:} false; then :
25222  $as_echo_n "(cached) " >&6
25223else
25224  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct in_addr))" "ac_cv_sizeof_struct_in_addr"        "
25225#undef inline
25226#ifdef HAVE_WINDOWS_H
25227#ifndef WIN32_LEAN_AND_MEAN
25228#define WIN32_LEAN_AND_MEAN
25229#endif
25230#include <windows.h>
25231#ifdef HAVE_WINSOCK2_H
25232#include <winsock2.h>
25233#ifdef HAVE_WS2TCPIP_H
25234#include <ws2tcpip.h>
25235#endif
25236#endif
25237#else
25238#ifdef HAVE_SYS_TYPES_H
25239#include <sys/types.h>
25240#endif
25241#ifdef HAVE_SYS_SOCKET_H
25242#include <sys/socket.h>
25243#endif
25244#ifdef HAVE_NETINET_IN_H
25245#include <netinet/in.h>
25246#endif
25247#endif
25248
25249
25250"; then :
25251
25252else
25253  if test "$ac_cv_type_struct_in_addr" = yes; then
25254     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25256as_fn_error 77 "cannot compute sizeof (struct in_addr)
25257See \`config.log' for more details" "$LINENO" 5; }
25258   else
25259     ac_cv_sizeof_struct_in_addr=0
25260   fi
25261fi
25262
25263fi
25264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_in_addr" >&5
25265$as_echo "$ac_cv_sizeof_struct_in_addr" >&6; }
25266
25267
25268
25269cat >>confdefs.h <<_ACEOF
25270#define SIZEOF_STRUCT_IN_ADDR $ac_cv_sizeof_struct_in_addr
25271_ACEOF
25272
25273
25274
25275
25276
25277    for ac_header in sys/types.h sys/socket.h netdb.h
25278do :
25279  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25282  cat >>confdefs.h <<_ACEOF
25283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25284_ACEOF
25285
25286fi
25287
25288done
25289
25290  #
25291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
25292$as_echo_n "checking for getnameinfo... " >&6; }
25293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294/* end confdefs.h.  */
25295
25296
25297#define getnameinfo innocuous_getnameinfo
25298#ifdef __STDC__
25299# include <limits.h>
25300#else
25301# include <assert.h>
25302#endif
25303#undef getnameinfo
25304#ifdef __cplusplus
25305extern "C"
25306#endif
25307char getnameinfo ();
25308#if defined __stub_getnameinfo || defined __stub___getnameinfo
25309choke me
25310#endif
25311
25312int main (void)
25313{
25314return getnameinfo ();
25315 ;
25316 return 0;
25317}
25318
25319_ACEOF
25320if ac_fn_c_try_link "$LINENO"; then :
25321
25322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25323$as_echo "yes" >&6; }
25324    curl_cv_getnameinfo="yes"
25325
25326else
25327
25328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25329$as_echo "no" >&6; }
25330    curl_cv_getnameinfo="no"
25331
25332fi
25333rm -f core conftest.err conftest.$ac_objext \
25334    conftest$ac_exeext conftest.$ac_ext
25335  #
25336  if test "$curl_cv_getnameinfo" != "yes"; then
25337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
25338$as_echo_n "checking deeper for getnameinfo... " >&6; }
25339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25340/* end confdefs.h.  */
25341
25342
25343
25344int main (void)
25345{
25346
25347        getnameinfo();
25348
25349 ;
25350 return 0;
25351}
25352
25353_ACEOF
25354if ac_fn_c_try_link "$LINENO"; then :
25355
25356      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25357$as_echo "yes" >&6; }
25358      curl_cv_getnameinfo="yes"
25359
25360else
25361
25362      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
25363$as_echo "but still no" >&6; }
25364      curl_cv_getnameinfo="no"
25365
25366fi
25367rm -f core conftest.err conftest.$ac_objext \
25368    conftest$ac_exeext conftest.$ac_ext
25369  fi
25370  #
25371  if test "$curl_cv_getnameinfo" != "yes"; then
25372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
25373$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
25374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375/* end confdefs.h.  */
25376
25377
25378#undef inline
25379#ifdef HAVE_WINDOWS_H
25380#ifndef WIN32_LEAN_AND_MEAN
25381#define WIN32_LEAN_AND_MEAN
25382#endif
25383#include <windows.h>
25384#ifdef HAVE_WINSOCK2_H
25385#include <winsock2.h>
25386#ifdef HAVE_WS2TCPIP_H
25387#include <ws2tcpip.h>
25388#endif
25389#endif
25390#else
25391#ifdef HAVE_SYS_TYPES_H
25392#include <sys/types.h>
25393#endif
25394#ifdef HAVE_SYS_SOCKET_H
25395#include <sys/socket.h>
25396#endif
25397#ifdef HAVE_NETDB_H
25398#include <netdb.h>
25399#endif
25400#endif
25401
25402int main (void)
25403{
25404
25405        getnameinfo(0, 0, 0, 0, 0, 0, 0);
25406
25407 ;
25408 return 0;
25409}
25410
25411_ACEOF
25412if ac_fn_c_try_link "$LINENO"; then :
25413
25414      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25415$as_echo "yes" >&6; }
25416      curl_cv_getnameinfo="yes"
25417
25418else
25419
25420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
25421$as_echo "but still no" >&6; }
25422      curl_cv_getnameinfo="no"
25423
25424fi
25425rm -f core conftest.err conftest.$ac_objext \
25426    conftest$ac_exeext conftest.$ac_ext
25427  fi
25428  #
25429  if test "$curl_cv_getnameinfo" = "yes"; then
25430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
25431$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
25432if ${curl_cv_func_getnameinfo_args+:} false; then :
25433  $as_echo_n "(cached) " >&6
25434else
25435
25436      curl_cv_func_getnameinfo_args="unknown"
25437      for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
25438        for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
25439          for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
25440            for gni_arg7 in 'int' 'unsigned int'; do
25441              if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
25442                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443/* end confdefs.h.  */
25444
25445
25446#undef inline
25447#ifdef HAVE_WINDOWS_H
25448#ifndef WIN32_LEAN_AND_MEAN
25449#define WIN32_LEAN_AND_MEAN
25450#endif
25451#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
25452#undef _WIN32_WINNT
25453#define _WIN32_WINNT 0x0501
25454#endif
25455#include <windows.h>
25456#ifdef HAVE_WINSOCK2_H
25457#include <winsock2.h>
25458#ifdef HAVE_WS2TCPIP_H
25459#include <ws2tcpip.h>
25460#endif
25461#endif
25462#define GNICALLCONV WSAAPI
25463#else
25464#ifdef HAVE_SYS_TYPES_H
25465#include <sys/types.h>
25466#endif
25467#ifdef HAVE_SYS_SOCKET_H
25468#include <sys/socket.h>
25469#endif
25470#ifdef HAVE_NETDB_H
25471#include <netdb.h>
25472#endif
25473#define GNICALLCONV
25474#endif
25475                    extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
25476                                           char *, $gni_arg46,
25477                                           char *, $gni_arg46,
25478                                           $gni_arg7);
25479
25480int main (void)
25481{
25482
25483                    $gni_arg2 salen=0;
25484                    $gni_arg46 hostlen=0;
25485                    $gni_arg46 servlen=0;
25486                    $gni_arg7 flags=0;
25487                    int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
25488
25489 ;
25490 return 0;
25491}
25492
25493_ACEOF
25494if ac_fn_c_try_compile "$LINENO"; then :
25495
25496                  curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
25497
25498fi
25499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500              fi
25501            done
25502          done
25503        done
25504      done
25505
25506fi
25507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
25508$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
25509    if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
25510      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
25511$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
25512      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
25513$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
25514    else
25515      gni_prev_IFS=$IFS; IFS=','
25516      set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
25517      IFS=$gni_prev_IFS
25518      shift
25519      #
25520      gni_qual_type_arg1=$1
25521      #
25522
25523cat >>confdefs.h <<_ACEOF
25524#define GETNAMEINFO_TYPE_ARG2 $2
25525_ACEOF
25526
25527
25528cat >>confdefs.h <<_ACEOF
25529#define GETNAMEINFO_TYPE_ARG46 $3
25530_ACEOF
25531
25532
25533cat >>confdefs.h <<_ACEOF
25534#define GETNAMEINFO_TYPE_ARG7 $4
25535_ACEOF
25536
25537      #
25538      prev_sh_opts=$-
25539      #
25540      case $prev_sh_opts in
25541        *f*)
25542          ;;
25543        *)
25544          set -f
25545          ;;
25546      esac
25547      #
25548      case "$gni_qual_type_arg1" in
25549        const*)
25550          gni_qual_arg1=const
25551          gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
25552        ;;
25553        *)
25554          gni_qual_arg1=
25555          gni_type_arg1=$gni_qual_type_arg1
25556        ;;
25557      esac
25558      #
25559
25560cat >>confdefs.h <<_ACEOF
25561#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
25562_ACEOF
25563
25564
25565cat >>confdefs.h <<_ACEOF
25566#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
25567_ACEOF
25568
25569      #
25570      case $prev_sh_opts in
25571        *f*)
25572          ;;
25573        *)
25574          set +f
25575          ;;
25576      esac
25577      #
25578
25579cat >>confdefs.h <<_ACEOF
25580#define HAVE_GETNAMEINFO 1
25581_ACEOF
25582
25583      ac_cv_func_getnameinfo="yes"
25584    fi
25585  fi
25586
25587
25588
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25590$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25591if ${ac_cv_c_bigendian+:} false; then :
25592  $as_echo_n "(cached) " >&6
25593else
25594  ac_cv_c_bigendian=unknown
25595    # See if we're dealing with a universal compiler.
25596    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597/* end confdefs.h.  */
25598#ifndef __APPLE_CC__
25599	       not a universal capable compiler
25600	     #endif
25601	     typedef int dummy;
25602
25603_ACEOF
25604if ac_fn_c_try_compile "$LINENO"; then :
25605
25606	# Check for potential -arch flags.  It is not universal unless
25607	# there are at least two -arch flags with different values.
25608	ac_arch=
25609	ac_prev=
25610	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25611	 if test -n "$ac_prev"; then
25612	   case $ac_word in
25613	     i?86 | x86_64 | ppc | ppc64)
25614	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25615		 ac_arch=$ac_word
25616	       else
25617		 ac_cv_c_bigendian=universal
25618		 break
25619	       fi
25620	       ;;
25621	   esac
25622	   ac_prev=
25623	 elif test "x$ac_word" = "x-arch"; then
25624	   ac_prev=arch
25625	 fi
25626       done
25627fi
25628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25629    if test $ac_cv_c_bigendian = unknown; then
25630      # See if sys/param.h defines the BYTE_ORDER macro.
25631      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632/* end confdefs.h.  */
25633#include <sys/types.h>
25634	     #include <sys/param.h>
25635
25636int main (void)
25637{
25638#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25639		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25640		     && LITTLE_ENDIAN)
25641	      bogus endian macros
25642	     #endif
25643
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648if ac_fn_c_try_compile "$LINENO"; then :
25649  # It does; now see whether it defined to BIG_ENDIAN or not.
25650	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25651/* end confdefs.h.  */
25652#include <sys/types.h>
25653		#include <sys/param.h>
25654
25655int main (void)
25656{
25657#if BYTE_ORDER != BIG_ENDIAN
25658		 not big endian
25659		#endif
25660
25661 ;
25662 return 0;
25663}
25664_ACEOF
25665if ac_fn_c_try_compile "$LINENO"; then :
25666  ac_cv_c_bigendian=yes
25667else
25668  ac_cv_c_bigendian=no
25669fi
25670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671fi
25672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673    fi
25674    if test $ac_cv_c_bigendian = unknown; then
25675      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25676      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25677/* end confdefs.h.  */
25678#include <limits.h>
25679
25680int main (void)
25681{
25682#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25683	      bogus endian macros
25684	     #endif
25685
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690if ac_fn_c_try_compile "$LINENO"; then :
25691  # It does; now see whether it defined to _BIG_ENDIAN or not.
25692	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693/* end confdefs.h.  */
25694#include <limits.h>
25695
25696int main (void)
25697{
25698#ifndef _BIG_ENDIAN
25699		 not big endian
25700		#endif
25701
25702 ;
25703 return 0;
25704}
25705_ACEOF
25706if ac_fn_c_try_compile "$LINENO"; then :
25707  ac_cv_c_bigendian=yes
25708else
25709  ac_cv_c_bigendian=no
25710fi
25711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712fi
25713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714    fi
25715    if test $ac_cv_c_bigendian = unknown; then
25716      # Compile a test program.
25717      if test "$cross_compiling" = yes; then :
25718  # Try to guess by grepping values from an object file.
25719	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720/* end confdefs.h.  */
25721short int ascii_mm[] =
25722		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25723		short int ascii_ii[] =
25724		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25725		int use_ascii (int i) {
25726		  return ascii_mm[i] + ascii_ii[i];
25727		}
25728		short int ebcdic_ii[] =
25729		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25730		short int ebcdic_mm[] =
25731		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25732		int use_ebcdic (int i) {
25733		  return ebcdic_mm[i] + ebcdic_ii[i];
25734		}
25735		extern int foo;
25736
25737int main (void)
25738{
25739return use_ascii (foo) == use_ebcdic (foo);
25740 ;
25741 return 0;
25742}
25743_ACEOF
25744if ac_fn_c_try_compile "$LINENO"; then :
25745  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25746	      ac_cv_c_bigendian=yes
25747	    fi
25748	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25749	      if test "$ac_cv_c_bigendian" = unknown; then
25750		ac_cv_c_bigendian=no
25751	      else
25752		# finding both strings is unlikely to happen, but who knows?
25753		ac_cv_c_bigendian=unknown
25754	      fi
25755	    fi
25756fi
25757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758else
25759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760/* end confdefs.h.  */
25761$ac_includes_default
25762int main (void)
25763{
25764
25765	     /* Are we little or big endian?  From Harbison&Steele.  */
25766	     union
25767	     {
25768	       long int l;
25769	       char c[sizeof (long int)];
25770	     } u;
25771	     u.l = 1;
25772	     return u.c[sizeof (long int) - 1] == 1;
25773
25774 ;
25775 return 0;
25776}
25777_ACEOF
25778if ac_fn_c_try_run "$LINENO"; then :
25779  ac_cv_c_bigendian=no
25780else
25781  ac_cv_c_bigendian=yes
25782fi
25783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25784  conftest.$ac_objext conftest.beam conftest.$ac_ext
25785fi
25786
25787    fi
25788fi
25789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25790$as_echo "$ac_cv_c_bigendian" >&6; }
25791 case $ac_cv_c_bigendian in #(
25792   yes)
25793
25794$as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
25795;; #(
25796   no)
25797      ;; #(
25798   universal)
25799
25800$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25801
25802     ;; #(
25803   *)
25804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
25805$as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
25806 ;;
25807 esac
25808
25809
25810
25811# Check whether --with-random was given.
25812if test "${with_random+set}" = set; then :
25813  withval=$with_random;  RANDOM_FILE="$withval"
25814else
25815
25816                                if test "$cross_compiling" = "no"; then
25817          as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
25819$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
25820if eval \${$as_ac_File+:} false; then :
25821  $as_echo_n "(cached) " >&6
25822else
25823  test "$cross_compiling" = yes &&
25824  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25825if test -r ""/dev/urandom""; then
25826  eval "$as_ac_File=yes"
25827else
25828  eval "$as_ac_File=no"
25829fi
25830fi
25831eval ac_res=\$$as_ac_File
25832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25833$as_echo "$ac_res" >&6; }
25834if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
25835   RANDOM_FILE="/dev/urandom"
25836fi
25837
25838        else
25839          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
25840$as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
25841        fi
25842
25843
25844
25845fi
25846
25847if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
25848
25849
25850cat >>confdefs.h <<_ACEOF
25851#define RANDOM_FILE "$RANDOM_FILE"
25852_ACEOF
25853
25854fi
25855
25856
25857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
25858$as_echo_n "checking whether to enable non-blocking communications... " >&6; }
25859  OPT_NONBLOCKING="default"
25860  # Check whether --enable-nonblocking was given.
25861if test "${enable_nonblocking+set}" = set; then :
25862  enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
25863fi
25864
25865  case "$OPT_NONBLOCKING" in
25866    no)
25867            want_nonblocking="no"
25868      ;;
25869    default)
25870            want_nonblocking="yes"
25871      ;;
25872    *)
25873            want_nonblocking="yes"
25874      ;;
25875  esac
25876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
25877$as_echo "$want_nonblocking" >&6; }
25878
25879
25880              #
25881  tst_method="unknown"
25882  if test "$want_nonblocking" = "yes"; then
25883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
25884$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
25885    if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
25886      tst_method="fcntl O_NONBLOCK"
25887    elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
25888      tst_method="ioctl FIONBIO"
25889    elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
25890      tst_method="ioctlsocket FIONBIO"
25891    elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
25892      tst_method="IoctlSocket FIONBIO"
25893    elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
25894      tst_method="setsockopt SO_NONBLOCK"
25895    fi
25896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
25897$as_echo "$tst_method" >&6; }
25898    if test "$tst_method" = "unknown"; then
25899      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
25900$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
25901    fi
25902  fi
25903  if test "$tst_method" = "unknown"; then
25904
25905cat >>confdefs.h <<_ACEOF
25906#define USE_BLOCKING_SOCKETS 1
25907_ACEOF
25908
25909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
25910$as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
25911  fi
25912
25913
25914
25915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
25916$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
25917  if test x"$ac_cv_native_windows" != "xyes" &&
25918    test "$want_symbol_hiding" = "yes" &&
25919    test "$supports_symbol_hiding" = "yes"; then
25920    CFLAGS="$CFLAGS $symbol_hiding_CFLAGS"
25921
25922cat >>confdefs.h <<_ACEOF
25923#define CARES_SYMBOL_HIDING 1
25924_ACEOF
25925
25926
25927cat >>confdefs.h <<_ACEOF
25928#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
25929_ACEOF
25930
25931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25932$as_echo "yes" >&6; }
25933  else
25934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935$as_echo "no" >&6; }
25936  fi
25937
25938
25939CARES_PRIVATE_LIBS="$LIBS"
25940
25941
25942CARES_CFLAG_EXTRAS=""
25943if test X"$want_werror" = Xyes; then
25944  CARES_CFLAG_EXTRAS="-Werror"
25945fi
25946
25947
25948
25949squeeze CFLAGS
25950squeeze CPPFLAGS
25951squeeze DEFS
25952squeeze LDFLAGS
25953squeeze LIBS
25954
25955squeeze CARES_PRIVATE_LIBS
25956
25957ac_config_files="$ac_config_files Makefile libcares.pc"
25958
25959cat >confcache <<\_ACEOF
25960# This file is a shell script that caches the results of configure
25961# tests run on this system so they can be shared between configure
25962# scripts and configure runs, see configure's option --config-cache.
25963# It is not useful on other systems.  If it contains results you don't
25964# want to keep, you may remove or edit it.
25965#
25966# config.status only pays attention to the cache file if you give it
25967# the --recheck option to rerun configure.
25968#
25969# `ac_cv_env_foo' variables (set or unset) will be overridden when
25970# loading this file, other *unset* `ac_cv_foo' will be assigned the
25971# following values.
25972
25973_ACEOF
25974
25975# The following way of writing the cache mishandles newlines in values,
25976# but we know of no workaround that is simple, portable, and efficient.
25977# So, we kill variables containing newlines.
25978# Ultrix sh set writes to stderr and can't be redirected directly,
25979# and sets the high bit in the cache file unless we assign to the vars.
25980(
25981  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25982    eval ac_val=\$$ac_var
25983    case $ac_val in #(
25984    *${as_nl}*)
25985      case $ac_var in #(
25986      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25988      esac
25989      case $ac_var in #(
25990      _ | IFS | as_nl) ;; #(
25991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25992      *) { eval $ac_var=; unset $ac_var;} ;;
25993      esac ;;
25994    esac
25995  done
25996
25997  (set) 2>&1 |
25998    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25999    *${as_nl}ac_space=\ *)
26000      # `set' does not quote correctly, so add quotes: double-quote
26001      # substitution turns \\\\ into \\, and sed turns \\ into \.
26002      sed -n \
26003	"s/'/'\\\\''/g;
26004	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26005      ;; #(
26006    *)
26007      # `set' quotes correctly as required by POSIX, so do not add quotes.
26008      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26009      ;;
26010    esac |
26011    sort
26012) |
26013  sed '
26014     /^ac_cv_env_/b end
26015     t clear
26016     :clear
26017     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26018     t end
26019     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26020     :end' >>confcache
26021if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26022  if test -w "$cache_file"; then
26023    if test "x$cache_file" != "x/dev/null"; then
26024      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26025$as_echo "$as_me: updating cache $cache_file" >&6;}
26026      if test ! -f "$cache_file" || test -h "$cache_file"; then
26027	cat confcache >"$cache_file"
26028      else
26029        case $cache_file in #(
26030        */* | ?:*)
26031	  mv -f confcache "$cache_file"$$ &&
26032	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26033        *)
26034	  mv -f confcache "$cache_file" ;;
26035	esac
26036      fi
26037    fi
26038  else
26039    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26040$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26041  fi
26042fi
26043rm -f confcache
26044
26045test "x$prefix" = xNONE && prefix=$ac_default_prefix
26046# Let make expand exec_prefix.
26047test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26048
26049DEFS=-DHAVE_CONFIG_H
26050
26051ac_libobjs=
26052ac_ltlibobjs=
26053U=
26054for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26055  # 1. Remove the extension, and $U if already installed.
26056  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26057  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26058  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26059  #    will be set to the directory where LIBOBJS objects are built.
26060  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26061  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26062done
26063LIBOBJS=$ac_libobjs
26064
26065LTLIBOBJS=$ac_ltlibobjs
26066
26067
26068if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26069  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26070Usually this means the macro was only invoked conditionally." "$LINENO" 5
26071fi
26072if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26073  as_fn_error $? "conditional \"AMDEP\" was never defined.
26074Usually this means the macro was only invoked conditionally." "$LINENO" 5
26075fi
26076if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26077  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26078Usually this means the macro was only invoked conditionally." "$LINENO" 5
26079fi
26080if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
26081  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
26082Usually this means the macro was only invoked conditionally." "$LINENO" 5
26083fi
26084if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
26085  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
26086Usually this means the macro was only invoked conditionally." "$LINENO" 5
26087fi
26088
26089
26090: "${CONFIG_STATUS=./config.status}"
26091ac_write_fail=0
26092ac_clean_files_save=$ac_clean_files
26093ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26094{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26095$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26096as_write_fail=0
26097cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26098#! $SHELL
26099# Generated by $as_me.
26100# Run this file to recreate the current configuration.
26101# Compiler output produced by configure, useful for debugging
26102# configure, is in config.log if it exists.
26103
26104debug=false
26105ac_cs_recheck=false
26106ac_cs_silent=false
26107
26108SHELL=\${CONFIG_SHELL-$SHELL}
26109export SHELL
26110_ASEOF
26111cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26112## -------------------- ##
26113## M4sh Initialization. ##
26114## -------------------- ##
26115
26116# Be more Bourne compatible
26117DUALCASE=1; export DUALCASE # for MKS sh
26118if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26119  emulate sh
26120  NULLCMD=:
26121  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26122  # is contrary to our usage.  Disable this feature.
26123  alias -g '${1+"$@"}'='"$@"'
26124  setopt NO_GLOB_SUBST
26125else
26126  case `(set -o) 2>/dev/null` in #(
26127  *posix*) :
26128    set -o posix ;; #(
26129  *) :
26130     ;;
26131esac
26132fi
26133
26134
26135as_nl='
26136'
26137export as_nl
26138# Printing a long string crashes Solaris 7 /usr/bin/printf.
26139as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26140as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26141as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26142# Prefer a ksh shell builtin over an external printf program on Solaris,
26143# but without wasting forks for bash or zsh.
26144if test -z "$BASH_VERSION$ZSH_VERSION" \
26145    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26146  as_echo='print -r --'
26147  as_echo_n='print -rn --'
26148elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26149  as_echo='printf %s\n'
26150  as_echo_n='printf %s'
26151else
26152  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26153    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26154    as_echo_n='/usr/ucb/echo -n'
26155  else
26156    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26157    as_echo_n_body='eval
26158      arg=$1;
26159      case $arg in #(
26160      *"$as_nl"*)
26161	expr "X$arg" : "X\\(.*\\)$as_nl";
26162	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26163      esac;
26164      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26165    '
26166    export as_echo_n_body
26167    as_echo_n='sh -c $as_echo_n_body as_echo'
26168  fi
26169  export as_echo_body
26170  as_echo='sh -c $as_echo_body as_echo'
26171fi
26172
26173
26174
26175# IFS
26176# We need space, tab and new line, in precisely that order.  Quoting is
26177# there to prevent editors from complaining about space-tab.
26178# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26179# splitting by setting IFS to empty value.)
26180IFS=" ""	$as_nl"
26181
26182# Find who we are.  Look in the path if we contain no directory separator.
26183as_myself=
26184case $0 in #((
26185  *[\\/]* ) as_myself=$0 ;;
26186  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26187for as_dir in $PATH
26188do
26189  IFS=$as_save_IFS
26190  test -z "$as_dir" && as_dir=.
26191    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26192  done
26193IFS=$as_save_IFS
26194
26195     ;;
26196esac
26197# We did not find ourselves, most probably we were run as `sh COMMAND'
26198# in which case we are not to be found in the path.
26199if test "x$as_myself" = x; then
26200  as_myself=$0
26201fi
26202if test ! -f "$as_myself"; then
26203  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26204  exit 1
26205fi
26206
26207# Unset variables that we do not need and which cause bugs (e.g. in
26208# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26209# suppresses any "Segmentation fault" message there.  '((' could
26210# trigger a bug in pdksh 5.2.14.
26211for as_var in BASH_ENV ENV MAIL MAILPATH
26212do eval test x\${$as_var+set} = xset \
26213  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26214done
26215PS1='$ '
26216PS2='> '
26217PS4='+ '
26218
26219# NLS nuisances.
26220LC_ALL=C
26221export LC_ALL
26222LANGUAGE=C
26223export LANGUAGE
26224
26225# CDPATH.
26226(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26227
26228
26229# as_fn_error STATUS ERROR [LINENO LOG_FD]
26230# ----------------------------------------
26231# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26232# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26233# script with STATUS, using 1 if that was 0.
26234as_fn_error ()
26235{
26236  as_status=$1; test $as_status -eq 0 && as_status=1
26237  if test "$4"; then
26238    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26239    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26240  fi
26241  $as_echo "$as_me: error: $2" >&2
26242  as_fn_exit $as_status
26243} # as_fn_error
26244
26245
26246# as_fn_set_status STATUS
26247# -----------------------
26248# Set $? to STATUS, without forking.
26249as_fn_set_status ()
26250{
26251  return $1
26252} # as_fn_set_status
26253
26254# as_fn_exit STATUS
26255# -----------------
26256# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26257as_fn_exit ()
26258{
26259  set +e
26260  as_fn_set_status $1
26261  exit $1
26262} # as_fn_exit
26263
26264# as_fn_unset VAR
26265# ---------------
26266# Portably unset VAR.
26267as_fn_unset ()
26268{
26269  { eval $1=; unset $1;}
26270}
26271as_unset=as_fn_unset
26272# as_fn_append VAR VALUE
26273# ----------------------
26274# Append the text in VALUE to the end of the definition contained in VAR. Take
26275# advantage of any shell optimizations that allow amortized linear growth over
26276# repeated appends, instead of the typical quadratic growth present in naive
26277# implementations.
26278if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26279  eval 'as_fn_append ()
26280  {
26281    eval $1+=\$2
26282  }'
26283else
26284  as_fn_append ()
26285  {
26286    eval $1=\$$1\$2
26287  }
26288fi # as_fn_append
26289
26290# as_fn_arith ARG...
26291# ------------------
26292# Perform arithmetic evaluation on the ARGs, and store the result in the
26293# global $as_val. Take advantage of shells that can avoid forks. The arguments
26294# must be portable across $(()) and expr.
26295if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26296  eval 'as_fn_arith ()
26297  {
26298    as_val=$(( $* ))
26299  }'
26300else
26301  as_fn_arith ()
26302  {
26303    as_val=`expr "$@" || test $? -eq 1`
26304  }
26305fi # as_fn_arith
26306
26307
26308if expr a : '\(a\)' >/dev/null 2>&1 &&
26309   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26310  as_expr=expr
26311else
26312  as_expr=false
26313fi
26314
26315if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26316  as_basename=basename
26317else
26318  as_basename=false
26319fi
26320
26321if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26322  as_dirname=dirname
26323else
26324  as_dirname=false
26325fi
26326
26327as_me=`$as_basename -- "$0" ||
26328$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26329	 X"$0" : 'X\(//\)$' \| \
26330	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26331$as_echo X/"$0" |
26332    sed '/^.*\/\([^/][^/]*\)\/*$/{
26333	    s//\1/
26334	    q
26335	  }
26336	  /^X\/\(\/\/\)$/{
26337	    s//\1/
26338	    q
26339	  }
26340	  /^X\/\(\/\).*/{
26341	    s//\1/
26342	    q
26343	  }
26344	  s/.*/./; q'`
26345
26346# Avoid depending upon Character Ranges.
26347as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26348as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26349as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26350as_cr_digits='0123456789'
26351as_cr_alnum=$as_cr_Letters$as_cr_digits
26352
26353ECHO_C= ECHO_N= ECHO_T=
26354case `echo -n x` in #(((((
26355-n*)
26356  case `echo 'xy\c'` in
26357  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26358  xy)  ECHO_C='\c';;
26359  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26360       ECHO_T='	';;
26361  esac;;
26362*)
26363  ECHO_N='-n';;
26364esac
26365
26366rm -f conf$$ conf$$.exe conf$$.file
26367if test -d conf$$.dir; then
26368  rm -f conf$$.dir/conf$$.file
26369else
26370  rm -f conf$$.dir
26371  mkdir conf$$.dir 2>/dev/null
26372fi
26373if (echo >conf$$.file) 2>/dev/null; then
26374  if ln -s conf$$.file conf$$ 2>/dev/null; then
26375    as_ln_s='ln -s'
26376    # ... but there are two gotchas:
26377    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26378    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26379    # In both cases, we have to default to `cp -p'.
26380    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26381      as_ln_s='cp -p'
26382  elif ln conf$$.file conf$$ 2>/dev/null; then
26383    as_ln_s=ln
26384  else
26385    as_ln_s='cp -p'
26386  fi
26387else
26388  as_ln_s='cp -p'
26389fi
26390rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26391rmdir conf$$.dir 2>/dev/null
26392
26393
26394# as_fn_mkdir_p
26395# -------------
26396# Create "$as_dir" as a directory, including parents if necessary.
26397as_fn_mkdir_p ()
26398{
26399
26400  case $as_dir in #(
26401  -*) as_dir=./$as_dir;;
26402  esac
26403  test -d "$as_dir" || eval $as_mkdir_p || {
26404    as_dirs=
26405    while :; do
26406      case $as_dir in #(
26407      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26408      *) as_qdir=$as_dir;;
26409      esac
26410      as_dirs="'$as_qdir' $as_dirs"
26411      as_dir=`$as_dirname -- "$as_dir" ||
26412$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26413	 X"$as_dir" : 'X\(//\)[^/]' \| \
26414	 X"$as_dir" : 'X\(//\)$' \| \
26415	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26416$as_echo X"$as_dir" |
26417    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26418	    s//\1/
26419	    q
26420	  }
26421	  /^X\(\/\/\)[^/].*/{
26422	    s//\1/
26423	    q
26424	  }
26425	  /^X\(\/\/\)$/{
26426	    s//\1/
26427	    q
26428	  }
26429	  /^X\(\/\).*/{
26430	    s//\1/
26431	    q
26432	  }
26433	  s/.*/./; q'`
26434      test -d "$as_dir" && break
26435    done
26436    test -z "$as_dirs" || eval "mkdir $as_dirs"
26437  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26438
26439
26440} # as_fn_mkdir_p
26441if mkdir -p . 2>/dev/null; then
26442  as_mkdir_p='mkdir -p "$as_dir"'
26443else
26444  test -d ./-p && rmdir ./-p
26445  as_mkdir_p=false
26446fi
26447
26448if test -x / >/dev/null 2>&1; then
26449  as_test_x='test -x'
26450else
26451  if ls -dL / >/dev/null 2>&1; then
26452    as_ls_L_option=L
26453  else
26454    as_ls_L_option=
26455  fi
26456  as_test_x='
26457    eval sh -c '\''
26458      if test -d "$1"; then
26459	test -d "$1/.";
26460      else
26461	case $1 in #(
26462	-*)set "./$1";;
26463	esac;
26464	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26465	???[sx]*):;;*)false;;esac;fi
26466    '\'' sh
26467  '
26468fi
26469as_executable_p=$as_test_x
26470
26471# Sed expression to map a string onto a valid CPP name.
26472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26473
26474# Sed expression to map a string onto a valid variable name.
26475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26476
26477
26478exec 6>&1
26479## ----------------------------------- ##
26480## Main body of $CONFIG_STATUS script. ##
26481## ----------------------------------- ##
26482_ASEOF
26483test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26484
26485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26486# Save the log message, to keep $0 and so on meaningful, and to
26487# report actual input values of CONFIG_FILES etc. instead of their
26488# values after options handling.
26489ac_log="
26490This file was extended by c-ares $as_me 1.7.5, which was
26491generated by GNU Autoconf 2.68.  Invocation command line was
26492
26493  CONFIG_FILES    = $CONFIG_FILES
26494  CONFIG_HEADERS  = $CONFIG_HEADERS
26495  CONFIG_LINKS    = $CONFIG_LINKS
26496  CONFIG_COMMANDS = $CONFIG_COMMANDS
26497  $ $0 $@
26498
26499on `(hostname || uname -n) 2>/dev/null | sed 1q`
26500"
26501
26502_ACEOF
26503
26504case $ac_config_files in *"
26505"*) set x $ac_config_files; shift; ac_config_files=$*;;
26506esac
26507
26508case $ac_config_headers in *"
26509"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26510esac
26511
26512
26513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26514# Files that config.status was made for.
26515config_files="$ac_config_files"
26516config_headers="$ac_config_headers"
26517config_commands="$ac_config_commands"
26518
26519_ACEOF
26520
26521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26522ac_cs_usage="\
26523\`$as_me' instantiates files and other configuration actions
26524from templates according to the current configuration.  Unless the files
26525and actions are specified as TAGs, all are instantiated by default.
26526
26527Usage: $0 [OPTION]... [TAG]...
26528
26529  -h, --help       print this help, then exit
26530  -V, --version    print version number and configuration settings, then exit
26531      --config     print configuration, then exit
26532  -q, --quiet, --silent
26533                   do not print progress messages
26534  -d, --debug      don't remove temporary files
26535      --recheck    update $as_me by reconfiguring in the same conditions
26536      --file=FILE[:TEMPLATE]
26537                   instantiate the configuration file FILE
26538      --header=FILE[:TEMPLATE]
26539                   instantiate the configuration header FILE
26540
26541Configuration files:
26542$config_files
26543
26544Configuration headers:
26545$config_headers
26546
26547Configuration commands:
26548$config_commands
26549
26550Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
26551
26552_ACEOF
26553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26555ac_cs_version="\\
26556c-ares config.status 1.7.5
26557configured by $0, generated by GNU Autoconf 2.68,
26558  with options \\"\$ac_cs_config\\"
26559
26560Copyright (C) 2010 Free Software Foundation, Inc.
26561This config.status script is free software; the Free Software Foundation
26562gives unlimited permission to copy, distribute and modify it."
26563
26564ac_pwd='$ac_pwd'
26565srcdir='$srcdir'
26566INSTALL='$INSTALL'
26567AWK='$AWK'
26568test -n "\$AWK" || AWK=awk
26569_ACEOF
26570
26571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26572# The default lists apply if the user does not specify any file.
26573ac_need_defaults=:
26574while test $# != 0
26575do
26576  case $1 in
26577  --*=?*)
26578    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26579    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26580    ac_shift=:
26581    ;;
26582  --*=)
26583    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26584    ac_optarg=
26585    ac_shift=:
26586    ;;
26587  *)
26588    ac_option=$1
26589    ac_optarg=$2
26590    ac_shift=shift
26591    ;;
26592  esac
26593
26594  case $ac_option in
26595  # Handling of the options.
26596  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26597    ac_cs_recheck=: ;;
26598  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26599    $as_echo "$ac_cs_version"; exit ;;
26600  --config | --confi | --conf | --con | --co | --c )
26601    $as_echo "$ac_cs_config"; exit ;;
26602  --debug | --debu | --deb | --de | --d | -d )
26603    debug=: ;;
26604  --file | --fil | --fi | --f )
26605    $ac_shift
26606    case $ac_optarg in
26607    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26608    '') as_fn_error $? "missing file argument" ;;
26609    esac
26610    as_fn_append CONFIG_FILES " '$ac_optarg'"
26611    ac_need_defaults=false;;
26612  --header | --heade | --head | --hea )
26613    $ac_shift
26614    case $ac_optarg in
26615    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26616    esac
26617    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26618    ac_need_defaults=false;;
26619  --he | --h)
26620    # Conflict between --help and --header
26621    as_fn_error $? "ambiguous option: \`$1'
26622Try \`$0 --help' for more information.";;
26623  --help | --hel | -h )
26624    $as_echo "$ac_cs_usage"; exit ;;
26625  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26626  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26627    ac_cs_silent=: ;;
26628
26629  # This is an error.
26630  -*) as_fn_error $? "unrecognized option: \`$1'
26631Try \`$0 --help' for more information." ;;
26632
26633  *) as_fn_append ac_config_targets " $1"
26634     ac_need_defaults=false ;;
26635
26636  esac
26637  shift
26638done
26639
26640ac_configure_extra_args=
26641
26642if $ac_cs_silent; then
26643  exec 6>/dev/null
26644  ac_configure_extra_args="$ac_configure_extra_args --silent"
26645fi
26646
26647_ACEOF
26648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26649if \$ac_cs_recheck; then
26650  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26651  shift
26652  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26653  CONFIG_SHELL='$SHELL'
26654  export CONFIG_SHELL
26655  exec "\$@"
26656fi
26657
26658_ACEOF
26659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26660exec 5>>config.log
26661{
26662  echo
26663  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26664## Running $as_me. ##
26665_ASBOX
26666  $as_echo "$ac_log"
26667} >&5
26668
26669_ACEOF
26670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26671#
26672# INIT-COMMANDS
26673#
26674AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26675
26676
26677# The HP-UX ksh and POSIX shell print the target directory to stdout
26678# if CDPATH is set.
26679(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26680
26681sed_quote_subst='$sed_quote_subst'
26682double_quote_subst='$double_quote_subst'
26683delay_variable_subst='$delay_variable_subst'
26684AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26685DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26686OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26687macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26688macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26689enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26690enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26691pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26692enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26693SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26694ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26695host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26696host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26697host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26698build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26699build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26700build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26701SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26702Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26703GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26704EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26705FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26706LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26707NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26708LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26709max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26710ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26711exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26712lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26713lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26714lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26715lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26716lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26717reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26718reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26719deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26720file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26721file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26722want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26723sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26724AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26725AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26726archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26727STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26728RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26729old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26730old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26731old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26732lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26733CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26734CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26735compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26736GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26737lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26738lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26739lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26740lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26741nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26742lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26743objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26744MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26745lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26746lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26747lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26748lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26749lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26750need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26751MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26752DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26753NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26754LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26755OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26756OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26757libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26758shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26759extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26760archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26761enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26762export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26763whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26764compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26765old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26766old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26767archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26768archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26769module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26770module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26771with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26772allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26773no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26774hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26775hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26776hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26777hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26778hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26779hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26780hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26781hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26782inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26783link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26784always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26785export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26786exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26787include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26788prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26789postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26790file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26791variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26792need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26793need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26794version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26795runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26796shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26797shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26798libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26799library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26800soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26801install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26802postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26803postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26804finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26805finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26806hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26807sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26808sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26809hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26810enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26811enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26812enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26813old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26814striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26815
26816LTCC='$LTCC'
26817LTCFLAGS='$LTCFLAGS'
26818compiler='$compiler_DEFAULT'
26819
26820# A function that is used when there is no print builtin or printf.
26821func_fallback_echo ()
26822{
26823  eval 'cat <<_LTECHO_EOF
26824\$1
26825_LTECHO_EOF'
26826}
26827
26828# Quote evaled strings.
26829for var in AS \
26830DLLTOOL \
26831OBJDUMP \
26832SHELL \
26833ECHO \
26834SED \
26835GREP \
26836EGREP \
26837FGREP \
26838LD \
26839NM \
26840LN_S \
26841lt_SP2NL \
26842lt_NL2SP \
26843reload_flag \
26844deplibs_check_method \
26845file_magic_cmd \
26846file_magic_glob \
26847want_nocaseglob \
26848sharedlib_from_linklib_cmd \
26849AR \
26850AR_FLAGS \
26851archiver_list_spec \
26852STRIP \
26853RANLIB \
26854CC \
26855CFLAGS \
26856compiler \
26857lt_cv_sys_global_symbol_pipe \
26858lt_cv_sys_global_symbol_to_cdecl \
26859lt_cv_sys_global_symbol_to_c_name_address \
26860lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26861nm_file_list_spec \
26862lt_prog_compiler_no_builtin_flag \
26863lt_prog_compiler_pic \
26864lt_prog_compiler_wl \
26865lt_prog_compiler_static \
26866lt_cv_prog_compiler_c_o \
26867need_locks \
26868MANIFEST_TOOL \
26869DSYMUTIL \
26870NMEDIT \
26871LIPO \
26872OTOOL \
26873OTOOL64 \
26874shrext_cmds \
26875export_dynamic_flag_spec \
26876whole_archive_flag_spec \
26877compiler_needs_object \
26878with_gnu_ld \
26879allow_undefined_flag \
26880no_undefined_flag \
26881hardcode_libdir_flag_spec \
26882hardcode_libdir_flag_spec_ld \
26883hardcode_libdir_separator \
26884exclude_expsyms \
26885include_expsyms \
26886file_list_spec \
26887variables_saved_for_relink \
26888libname_spec \
26889library_names_spec \
26890soname_spec \
26891install_override_mode \
26892finish_eval \
26893old_striplib \
26894striplib; do
26895    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26896    *[\\\\\\\`\\"\\\$]*)
26897      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26898      ;;
26899    *)
26900      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26901      ;;
26902    esac
26903done
26904
26905# Double-quote double-evaled strings.
26906for var in reload_cmds \
26907old_postinstall_cmds \
26908old_postuninstall_cmds \
26909old_archive_cmds \
26910extract_expsyms_cmds \
26911old_archive_from_new_cmds \
26912old_archive_from_expsyms_cmds \
26913archive_cmds \
26914archive_expsym_cmds \
26915module_cmds \
26916module_expsym_cmds \
26917export_symbols_cmds \
26918prelink_cmds \
26919postlink_cmds \
26920postinstall_cmds \
26921postuninstall_cmds \
26922finish_cmds \
26923sys_lib_search_path_spec \
26924sys_lib_dlsearch_path_spec; do
26925    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26926    *[\\\\\\\`\\"\\\$]*)
26927      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26928      ;;
26929    *)
26930      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26931      ;;
26932    esac
26933done
26934
26935ac_aux_dir='$ac_aux_dir'
26936xsi_shell='$xsi_shell'
26937lt_shell_append='$lt_shell_append'
26938
26939# See if we are running on zsh, and set the options which allow our
26940# commands through without removal of \ escapes INIT.
26941if test -n "\${ZSH_VERSION+set}" ; then
26942   setopt NO_GLOB_SUBST
26943fi
26944
26945
26946    PACKAGE='$PACKAGE'
26947    VERSION='$VERSION'
26948    TIMESTAMP='$TIMESTAMP'
26949    RM='$RM'
26950    ofile='$ofile'
26951
26952
26953
26954
26955_ACEOF
26956
26957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26958
26959# Handling of arguments.
26960for ac_config_target in $ac_config_targets
26961do
26962  case $ac_config_target in
26963    "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
26964    "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
26965    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26966    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26967    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26968    "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
26969
26970  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26971  esac
26972done
26973
26974
26975# If the user did not use the arguments to specify the items to instantiate,
26976# then the envvar interface is used.  Set only those that are not.
26977# We use the long form for the default assignment because of an extremely
26978# bizarre bug on SunOS 4.1.3.
26979if $ac_need_defaults; then
26980  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26981  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26982  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26983fi
26984
26985# Have a temporary directory for convenience.  Make it in the build tree
26986# simply because there is no reason against having it here, and in addition,
26987# creating and moving files from /tmp can sometimes cause problems.
26988# Hook for its removal unless debugging.
26989# Note that there is a small window in which the directory will not be cleaned:
26990# after its creation but before its name has been assigned to `$tmp'.
26991$debug ||
26992{
26993  tmp= ac_tmp=
26994  trap 'exit_status=$?
26995  : "${ac_tmp:=$tmp}"
26996  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26997' 0
26998  trap 'as_fn_exit 1' 1 2 13 15
26999}
27000# Create a (secure) tmp directory for tmp files.
27001
27002{
27003  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27004  test -d "$tmp"
27005}  ||
27006{
27007  tmp=./conf$$-$RANDOM
27008  (umask 077 && mkdir "$tmp")
27009} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27010ac_tmp=$tmp
27011
27012# Set up the scripts for CONFIG_FILES section.
27013# No need to generate them if there are no CONFIG_FILES.
27014# This happens for instance with `./config.status config.h'.
27015if test -n "$CONFIG_FILES"; then
27016
27017
27018ac_cr=`echo X | tr X '\015'`
27019# On cygwin, bash can eat \r inside `` if the user requested igncr.
27020# But we know of no other shell where ac_cr would be empty at this
27021# point, so we can use a bashism as a fallback.
27022if test "x$ac_cr" = x; then
27023  eval ac_cr=\$\'\\r\'
27024fi
27025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27027  ac_cs_awk_cr='\\r'
27028else
27029  ac_cs_awk_cr=$ac_cr
27030fi
27031
27032echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27033_ACEOF
27034
27035
27036{
27037  echo "cat >conf$$subs.awk <<_ACEOF" &&
27038  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27039  echo "_ACEOF"
27040} >conf$$subs.sh ||
27041  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27042ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27043ac_delim='%!_!# '
27044for ac_last_try in false false false false false :; do
27045  . ./conf$$subs.sh ||
27046    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27047
27048  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27049  if test $ac_delim_n = $ac_delim_num; then
27050    break
27051  elif $ac_last_try; then
27052    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27053  else
27054    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27055  fi
27056done
27057rm -f conf$$subs.sh
27058
27059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27060cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27061_ACEOF
27062sed -n '
27063h
27064s/^/S["/; s/!.*/"]=/
27065p
27066g
27067s/^[^!]*!//
27068:repl
27069t repl
27070s/'"$ac_delim"'$//
27071t delim
27072:nl
27073h
27074s/\(.\{148\}\)..*/\1/
27075t more1
27076s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27077p
27078n
27079b repl
27080:more1
27081s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27082p
27083g
27084s/.\{148\}//
27085t nl
27086:delim
27087h
27088s/\(.\{148\}\)..*/\1/
27089t more2
27090s/["\\]/\\&/g; s/^/"/; s/$/"/
27091p
27092b
27093:more2
27094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27095p
27096g
27097s/.\{148\}//
27098t delim
27099' <conf$$subs.awk | sed '
27100/^[^""]/{
27101  N
27102  s/\n//
27103}
27104' >>$CONFIG_STATUS || ac_write_fail=1
27105rm -f conf$$subs.awk
27106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27107_ACAWK
27108cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27109  for (key in S) S_is_set[key] = 1
27110  FS = ""
27111
27112}
27113{
27114  line = $ 0
27115  nfields = split(line, field, "@")
27116  substed = 0
27117  len = length(field[1])
27118  for (i = 2; i < nfields; i++) {
27119    key = field[i]
27120    keylen = length(key)
27121    if (S_is_set[key]) {
27122      value = S[key]
27123      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27124      len += length(value) + length(field[++i])
27125      substed = 1
27126    } else
27127      len += 1 + keylen
27128  }
27129
27130  print line
27131}
27132
27133_ACAWK
27134_ACEOF
27135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27137  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27138else
27139  cat
27140fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27141  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27142_ACEOF
27143
27144# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27145# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27146# trailing colons and then remove the whole line if VPATH becomes empty
27147# (actually we leave an empty line to preserve line numbers).
27148if test "x$srcdir" = x.; then
27149  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27150h
27151s///
27152s/^/:/
27153s/[	 ]*$/:/
27154s/:\$(srcdir):/:/g
27155s/:\${srcdir}:/:/g
27156s/:@srcdir@:/:/g
27157s/^:*//
27158s/:*$//
27159x
27160s/\(=[	 ]*\).*/\1/
27161G
27162s/\n//
27163s/^[^=]*=[	 ]*$//
27164}'
27165fi
27166
27167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27168fi # test -n "$CONFIG_FILES"
27169
27170# Set up the scripts for CONFIG_HEADERS section.
27171# No need to generate them if there are no CONFIG_HEADERS.
27172# This happens for instance with `./config.status Makefile'.
27173if test -n "$CONFIG_HEADERS"; then
27174cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27175BEGIN {
27176_ACEOF
27177
27178# Transform confdefs.h into an awk script `defines.awk', embedded as
27179# here-document in config.status, that substitutes the proper values into
27180# config.h.in to produce config.h.
27181
27182# Create a delimiter string that does not exist in confdefs.h, to ease
27183# handling of long lines.
27184ac_delim='%!_!# '
27185for ac_last_try in false false :; do
27186  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27187  if test -z "$ac_tt"; then
27188    break
27189  elif $ac_last_try; then
27190    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27191  else
27192    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27193  fi
27194done
27195
27196# For the awk script, D is an array of macro values keyed by name,
27197# likewise P contains macro parameters if any.  Preserve backslash
27198# newline sequences.
27199
27200ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27201sed -n '
27202s/.\{148\}/&'"$ac_delim"'/g
27203t rset
27204:rset
27205s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27206t def
27207d
27208:def
27209s/\\$//
27210t bsnl
27211s/["\\]/\\&/g
27212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27213D["\1"]=" \3"/p
27214s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27215d
27216:bsnl
27217s/["\\]/\\&/g
27218s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27219D["\1"]=" \3\\\\\\n"\\/p
27220t cont
27221s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27222t cont
27223d
27224:cont
27225n
27226s/.\{148\}/&'"$ac_delim"'/g
27227t clear
27228:clear
27229s/\\$//
27230t bsnlc
27231s/["\\]/\\&/g; s/^/"/; s/$/"/p
27232d
27233:bsnlc
27234s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27235b cont
27236' <confdefs.h | sed '
27237s/'"$ac_delim"'/"\\\
27238"/g' >>$CONFIG_STATUS || ac_write_fail=1
27239
27240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27241  for (key in D) D_is_set[key] = 1
27242  FS = ""
27243}
27244/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27245  line = \$ 0
27246  split(line, arg, " ")
27247  if (arg[1] == "#") {
27248    defundef = arg[2]
27249    mac1 = arg[3]
27250  } else {
27251    defundef = substr(arg[1], 2)
27252    mac1 = arg[2]
27253  }
27254  split(mac1, mac2, "(") #)
27255  macro = mac2[1]
27256  prefix = substr(line, 1, index(line, defundef) - 1)
27257  if (D_is_set[macro]) {
27258    # Preserve the white space surrounding the "#".
27259    print prefix "define", macro P[macro] D[macro]
27260    next
27261  } else {
27262    # Replace #undef with comments.  This is necessary, for example,
27263    # in the case of _POSIX_SOURCE, which is predefined and required
27264    # on some systems where configure will not decide to define it.
27265    if (defundef == "undef") {
27266      print "/*", prefix defundef, macro, "*/"
27267      next
27268    }
27269  }
27270}
27271{ print }
27272_ACAWK
27273_ACEOF
27274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27275  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27276fi # test -n "$CONFIG_HEADERS"
27277
27278
27279eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27280shift
27281for ac_tag
27282do
27283  case $ac_tag in
27284  :[FHLC]) ac_mode=$ac_tag; continue;;
27285  esac
27286  case $ac_mode$ac_tag in
27287  :[FHL]*:*);;
27288  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27289  :[FH]-) ac_tag=-:-;;
27290  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27291  esac
27292  ac_save_IFS=$IFS
27293  IFS=:
27294  set x $ac_tag
27295  IFS=$ac_save_IFS
27296  shift
27297  ac_file=$1
27298  shift
27299
27300  case $ac_mode in
27301  :L) ac_source=$1;;
27302  :[FH])
27303    ac_file_inputs=
27304    for ac_f
27305    do
27306      case $ac_f in
27307      -) ac_f="$ac_tmp/stdin";;
27308      *) # Look for the file first in the build tree, then in the source tree
27309	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27310	 # because $ac_f cannot contain `:'.
27311	 test -f "$ac_f" ||
27312	   case $ac_f in
27313	   [\\/$]*) false;;
27314	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27315	   esac ||
27316	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27317      esac
27318      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27319      as_fn_append ac_file_inputs " '$ac_f'"
27320    done
27321
27322    # Let's still pretend it is `configure' which instantiates (i.e., don't
27323    # use $as_me), people would be surprised to read:
27324    #    /* config.h.  Generated by config.status.  */
27325    configure_input='Generated from '`
27326	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27327	`' by configure.'
27328    if test x"$ac_file" != x-; then
27329      configure_input="$ac_file.  $configure_input"
27330      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27331$as_echo "$as_me: creating $ac_file" >&6;}
27332    fi
27333    # Neutralize special characters interpreted by sed in replacement strings.
27334    case $configure_input in #(
27335    *\&* | *\|* | *\\* )
27336       ac_sed_conf_input=`$as_echo "$configure_input" |
27337       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27338    *) ac_sed_conf_input=$configure_input;;
27339    esac
27340
27341    case $ac_tag in
27342    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27343      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27344    esac
27345    ;;
27346  esac
27347
27348  ac_dir=`$as_dirname -- "$ac_file" ||
27349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27350	 X"$ac_file" : 'X\(//\)[^/]' \| \
27351	 X"$ac_file" : 'X\(//\)$' \| \
27352	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27353$as_echo X"$ac_file" |
27354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27355	    s//\1/
27356	    q
27357	  }
27358	  /^X\(\/\/\)[^/].*/{
27359	    s//\1/
27360	    q
27361	  }
27362	  /^X\(\/\/\)$/{
27363	    s//\1/
27364	    q
27365	  }
27366	  /^X\(\/\).*/{
27367	    s//\1/
27368	    q
27369	  }
27370	  s/.*/./; q'`
27371  as_dir="$ac_dir"; as_fn_mkdir_p
27372  ac_builddir=.
27373
27374case "$ac_dir" in
27375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27376*)
27377  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27378  # A ".." for each directory in $ac_dir_suffix.
27379  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27380  case $ac_top_builddir_sub in
27381  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27382  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27383  esac ;;
27384esac
27385ac_abs_top_builddir=$ac_pwd
27386ac_abs_builddir=$ac_pwd$ac_dir_suffix
27387# for backward compatibility:
27388ac_top_builddir=$ac_top_build_prefix
27389
27390case $srcdir in
27391  .)  # We are building in place.
27392    ac_srcdir=.
27393    ac_top_srcdir=$ac_top_builddir_sub
27394    ac_abs_top_srcdir=$ac_pwd ;;
27395  [\\/]* | ?:[\\/]* )  # Absolute name.
27396    ac_srcdir=$srcdir$ac_dir_suffix;
27397    ac_top_srcdir=$srcdir
27398    ac_abs_top_srcdir=$srcdir ;;
27399  *) # Relative name.
27400    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27401    ac_top_srcdir=$ac_top_build_prefix$srcdir
27402    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27403esac
27404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27405
27406
27407  case $ac_mode in
27408  :F)
27409  #
27410  # CONFIG_FILE
27411  #
27412
27413  case $INSTALL in
27414  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27415  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27416  esac
27417_ACEOF
27418
27419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27420# If the template does not know about datarootdir, expand it.
27421# FIXME: This hack should be removed a few years after 2.60.
27422ac_datarootdir_hack=; ac_datarootdir_seen=
27423ac_sed_dataroot='
27424/datarootdir/ {
27425  p
27426  q
27427}
27428/@datadir@/p
27429/@docdir@/p
27430/@infodir@/p
27431/@localedir@/p
27432/@mandir@/p'
27433case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27434*datarootdir*) ac_datarootdir_seen=yes;;
27435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27437$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27438_ACEOF
27439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27440  ac_datarootdir_hack='
27441  s&@datadir@&$datadir&g
27442  s&@docdir@&$docdir&g
27443  s&@infodir@&$infodir&g
27444  s&@localedir@&$localedir&g
27445  s&@mandir@&$mandir&g
27446  s&\\\${datarootdir}&$datarootdir&g' ;;
27447esac
27448_ACEOF
27449
27450# Neutralize VPATH when `$srcdir' = `.'.
27451# Shell code in configure.ac might set extrasub.
27452# FIXME: do we really want to maintain this feature?
27453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27454ac_sed_extra="$ac_vpsub
27455$extrasub
27456_ACEOF
27457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27458:t
27459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27460s|@configure_input@|$ac_sed_conf_input|;t t
27461s&@top_builddir@&$ac_top_builddir_sub&;t t
27462s&@top_build_prefix@&$ac_top_build_prefix&;t t
27463s&@srcdir@&$ac_srcdir&;t t
27464s&@abs_srcdir@&$ac_abs_srcdir&;t t
27465s&@top_srcdir@&$ac_top_srcdir&;t t
27466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27467s&@builddir@&$ac_builddir&;t t
27468s&@abs_builddir@&$ac_abs_builddir&;t t
27469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27470s&@INSTALL@&$ac_INSTALL&;t t
27471$ac_datarootdir_hack
27472"
27473eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27474  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27475
27476test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27477  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27478  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27479      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27480  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27481which seems to be undefined.  Please make sure it is defined" >&5
27482$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27483which seems to be undefined.  Please make sure it is defined" >&2;}
27484
27485  rm -f "$ac_tmp/stdin"
27486  case $ac_file in
27487  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27488  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27489  esac \
27490  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27491 ;;
27492  :H)
27493  #
27494  # CONFIG_HEADER
27495  #
27496  if test x"$ac_file" != x-; then
27497    {
27498      $as_echo "/* $configure_input  */" \
27499      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27500    } >"$ac_tmp/config.h" \
27501      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27502    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27503      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27504$as_echo "$as_me: $ac_file is unchanged" >&6;}
27505    else
27506      rm -f "$ac_file"
27507      mv "$ac_tmp/config.h" "$ac_file" \
27508	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27509    fi
27510  else
27511    $as_echo "/* $configure_input  */" \
27512      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27513      || as_fn_error $? "could not create -" "$LINENO" 5
27514  fi
27515# Compute "$ac_file"'s index in $config_headers.
27516_am_stamp_count=1
27517for _am_header in $config_headers :; do
27518  case $_am_header in
27519    "$ac_file" | "$ac_file":* )
27520      break ;;
27521    * )
27522      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27523  esac
27524done
27525echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
27526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27527	 X"$ac_file" : 'X\(//\)[^/]' \| \
27528	 X"$ac_file" : 'X\(//\)$' \| \
27529	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27530$as_echo X"$ac_file" |
27531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27532	    s//\1/
27533	    q
27534	  }
27535	  /^X\(\/\/\)[^/].*/{
27536	    s//\1/
27537	    q
27538	  }
27539	  /^X\(\/\/\)$/{
27540	    s//\1/
27541	    q
27542	  }
27543	  /^X\(\/\).*/{
27544	    s//\1/
27545	    q
27546	  }
27547	  s/.*/./; q'`/stamp-h$_am_stamp_count
27548 ;;
27549
27550  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27551$as_echo "$as_me: executing $ac_file commands" >&6;}
27552 ;;
27553  esac
27554
27555
27556  case $ac_file$ac_mode in
27557    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27558  # Strip MF so we end up with the name of the file.
27559  mf=`echo "$mf" | sed -e 's/:.*$//'`
27560  # Check whether this is an Automake generated Makefile or not.
27561  # We used to match only the files named `Makefile.in', but
27562  # some people rename them; so instead we look at the file content.
27563  # Grep'ing the first line is not enough: some people post-process
27564  # each Makefile.in and add a new line on top of each file to say so.
27565  # So let's grep whole file.
27566  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27567    dirpart=`$as_dirname -- "$mf" ||
27568$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27569	 X"$mf" : 'X\(//\)[^/]' \| \
27570	 X"$mf" : 'X\(//\)$' \| \
27571	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27572$as_echo X"$mf" |
27573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27574	    s//\1/
27575	    q
27576	  }
27577	  /^X\(\/\/\)[^/].*/{
27578	    s//\1/
27579	    q
27580	  }
27581	  /^X\(\/\/\)$/{
27582	    s//\1/
27583	    q
27584	  }
27585	  /^X\(\/\).*/{
27586	    s//\1/
27587	    q
27588	  }
27589	  s/.*/./; q'`
27590  else
27591    continue
27592  fi
27593  # Extract the definition of DEPDIR, am__include, and am__quote
27594  # from the Makefile without running `make'.
27595  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27596  test -z "$DEPDIR" && continue
27597  am__include=`sed -n 's/^am__include = //p' < "$mf"`
27598  test -z "am__include" && continue
27599  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27600  # When using ansi2knr, U may be empty or an underscore; expand it
27601  U=`sed -n 's/^U = //p' < "$mf"`
27602  # Find all dependency output files, they are included files with
27603  # $(DEPDIR) in their names.  We invoke sed twice because it is the
27604  # simplest approach to changing $(DEPDIR) to its actual value in the
27605  # expansion.
27606  for file in `sed -n "
27607    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27608       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27609    # Make sure the directory exists.
27610    test -f "$dirpart/$file" && continue
27611    fdir=`$as_dirname -- "$file" ||
27612$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27613	 X"$file" : 'X\(//\)[^/]' \| \
27614	 X"$file" : 'X\(//\)$' \| \
27615	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27616$as_echo X"$file" |
27617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27618	    s//\1/
27619	    q
27620	  }
27621	  /^X\(\/\/\)[^/].*/{
27622	    s//\1/
27623	    q
27624	  }
27625	  /^X\(\/\/\)$/{
27626	    s//\1/
27627	    q
27628	  }
27629	  /^X\(\/\).*/{
27630	    s//\1/
27631	    q
27632	  }
27633	  s/.*/./; q'`
27634    as_dir=$dirpart/$fdir; as_fn_mkdir_p
27635    # echo "creating $dirpart/$file"
27636    echo '# dummy' > "$dirpart/$file"
27637  done
27638done
27639 ;;
27640    "libtool":C)
27641
27642    # See if we are running on zsh, and set the options which allow our
27643    # commands through without removal of \ escapes.
27644    if test -n "${ZSH_VERSION+set}" ; then
27645      setopt NO_GLOB_SUBST
27646    fi
27647
27648    cfgfile="${ofile}T"
27649    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27650    $RM "$cfgfile"
27651
27652    cat <<_LT_EOF >> "$cfgfile"
27653#! $SHELL
27654
27655# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27656# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27658# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27659#
27660#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27661#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
27662#                 Inc.
27663#   Written by Gordon Matzigkeit, 1996
27664#
27665#   This file is part of GNU Libtool.
27666#
27667# GNU Libtool is free software; you can redistribute it and/or
27668# modify it under the terms of the GNU General Public License as
27669# published by the Free Software Foundation; either version 2 of
27670# the License, or (at your option) any later version.
27671#
27672# As a special exception to the GNU General Public License,
27673# if you distribute this file as part of a program or library that
27674# is built using GNU Libtool, you may include this file under the
27675# same distribution terms that you use for the rest of that program.
27676#
27677# GNU Libtool is distributed in the hope that it will be useful,
27678# but WITHOUT ANY WARRANTY; without even the implied warranty of
27679# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27680# GNU General Public License for more details.
27681#
27682# You should have received a copy of the GNU General Public License
27683# along with GNU Libtool; see the file COPYING.  If not, a copy
27684# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27685# obtained by writing to the Free Software Foundation, Inc.,
27686# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27687
27688
27689# The names of the tagged configurations supported by this script.
27690available_tags=""
27691
27692# ### BEGIN LIBTOOL CONFIG
27693
27694# Assembler program.
27695AS=$lt_AS
27696
27697# DLL creation program.
27698DLLTOOL=$lt_DLLTOOL
27699
27700# Object dumper program.
27701OBJDUMP=$lt_OBJDUMP
27702
27703# Which release of libtool.m4 was used?
27704macro_version=$macro_version
27705macro_revision=$macro_revision
27706
27707# Whether or not to build shared libraries.
27708build_libtool_libs=$enable_shared
27709
27710# Whether or not to build static libraries.
27711build_old_libs=$enable_static
27712
27713# What type of objects to build.
27714pic_mode=$pic_mode
27715
27716# Whether or not to optimize for fast installation.
27717fast_install=$enable_fast_install
27718
27719# Shell to use when invoking shell scripts.
27720SHELL=$lt_SHELL
27721
27722# An echo program that protects backslashes.
27723ECHO=$lt_ECHO
27724
27725# The host system.
27726host_alias=$host_alias
27727host=$host
27728host_os=$host_os
27729
27730# The build system.
27731build_alias=$build_alias
27732build=$build
27733build_os=$build_os
27734
27735# A sed program that does not truncate output.
27736SED=$lt_SED
27737
27738# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27739Xsed="\$SED -e 1s/^X//"
27740
27741# A grep program that handles long lines.
27742GREP=$lt_GREP
27743
27744# An ERE matcher.
27745EGREP=$lt_EGREP
27746
27747# A literal string matcher.
27748FGREP=$lt_FGREP
27749
27750# A BSD- or MS-compatible name lister.
27751NM=$lt_NM
27752
27753# Whether we need soft or hard links.
27754LN_S=$lt_LN_S
27755
27756# What is the maximum length of a command?
27757max_cmd_len=$max_cmd_len
27758
27759# Object file suffix (normally "o").
27760objext=$ac_objext
27761
27762# Executable file suffix (normally "").
27763exeext=$exeext
27764
27765# whether the shell understands "unset".
27766lt_unset=$lt_unset
27767
27768# turn spaces into newlines.
27769SP2NL=$lt_lt_SP2NL
27770
27771# turn newlines into spaces.
27772NL2SP=$lt_lt_NL2SP
27773
27774# convert \$build file names to \$host format.
27775to_host_file_cmd=$lt_cv_to_host_file_cmd
27776
27777# convert \$build files to toolchain format.
27778to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27779
27780# Method to check whether dependent libraries are shared objects.
27781deplibs_check_method=$lt_deplibs_check_method
27782
27783# Command to use when deplibs_check_method = "file_magic".
27784file_magic_cmd=$lt_file_magic_cmd
27785
27786# How to find potential files when deplibs_check_method = "file_magic".
27787file_magic_glob=$lt_file_magic_glob
27788
27789# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27790want_nocaseglob=$lt_want_nocaseglob
27791
27792# Command to associate shared and link libraries.
27793sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27794
27795# The archiver.
27796AR=$lt_AR
27797
27798# Flags to create an archive.
27799AR_FLAGS=$lt_AR_FLAGS
27800
27801# How to feed a file listing to the archiver.
27802archiver_list_spec=$lt_archiver_list_spec
27803
27804# A symbol stripping program.
27805STRIP=$lt_STRIP
27806
27807# Commands used to install an old-style archive.
27808RANLIB=$lt_RANLIB
27809old_postinstall_cmds=$lt_old_postinstall_cmds
27810old_postuninstall_cmds=$lt_old_postuninstall_cmds
27811
27812# Whether to use a lock for old archive extraction.
27813lock_old_archive_extraction=$lock_old_archive_extraction
27814
27815# A C compiler.
27816LTCC=$lt_CC
27817
27818# LTCC compiler flags.
27819LTCFLAGS=$lt_CFLAGS
27820
27821# Take the output of nm and produce a listing of raw symbols and C names.
27822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27823
27824# Transform the output of nm in a proper C declaration.
27825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27826
27827# Transform the output of nm in a C name address pair.
27828global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27829
27830# Transform the output of nm in a C name address pair when lib prefix is needed.
27831global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27832
27833# Specify filename containing input files for \$NM.
27834nm_file_list_spec=$lt_nm_file_list_spec
27835
27836# The root where to search for dependent libraries,and in which our libraries should be installed.
27837lt_sysroot=$lt_sysroot
27838
27839# The name of the directory that contains temporary libtool files.
27840objdir=$objdir
27841
27842# Used to examine libraries when file_magic_cmd begins with "file".
27843MAGIC_CMD=$MAGIC_CMD
27844
27845# Must we lock files when doing compilation?
27846need_locks=$lt_need_locks
27847
27848# Manifest tool.
27849MANIFEST_TOOL=$lt_MANIFEST_TOOL
27850
27851# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27852DSYMUTIL=$lt_DSYMUTIL
27853
27854# Tool to change global to local symbols on Mac OS X.
27855NMEDIT=$lt_NMEDIT
27856
27857# Tool to manipulate fat objects and archives on Mac OS X.
27858LIPO=$lt_LIPO
27859
27860# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27861OTOOL=$lt_OTOOL
27862
27863# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27864OTOOL64=$lt_OTOOL64
27865
27866# Old archive suffix (normally "a").
27867libext=$libext
27868
27869# Shared library suffix (normally ".so").
27870shrext_cmds=$lt_shrext_cmds
27871
27872# The commands to extract the exported symbol list from a shared archive.
27873extract_expsyms_cmds=$lt_extract_expsyms_cmds
27874
27875# Variables whose values should be saved in libtool wrapper scripts and
27876# restored at link time.
27877variables_saved_for_relink=$lt_variables_saved_for_relink
27878
27879# Do we need the "lib" prefix for modules?
27880need_lib_prefix=$need_lib_prefix
27881
27882# Do we need a version for libraries?
27883need_version=$need_version
27884
27885# Library versioning type.
27886version_type=$version_type
27887
27888# Shared library runtime path variable.
27889runpath_var=$runpath_var
27890
27891# Shared library path variable.
27892shlibpath_var=$shlibpath_var
27893
27894# Is shlibpath searched before the hard-coded library search path?
27895shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27896
27897# Format of library name prefix.
27898libname_spec=$lt_libname_spec
27899
27900# List of archive names.  First name is the real one, the rest are links.
27901# The last name is the one that the linker finds with -lNAME
27902library_names_spec=$lt_library_names_spec
27903
27904# The coded name of the library, if different from the real name.
27905soname_spec=$lt_soname_spec
27906
27907# Permission mode override for installation of shared libraries.
27908install_override_mode=$lt_install_override_mode
27909
27910# Command to use after installation of a shared archive.
27911postinstall_cmds=$lt_postinstall_cmds
27912
27913# Command to use after uninstallation of a shared archive.
27914postuninstall_cmds=$lt_postuninstall_cmds
27915
27916# Commands used to finish a libtool library installation in a directory.
27917finish_cmds=$lt_finish_cmds
27918
27919# As "finish_cmds", except a single script fragment to be evaled but
27920# not shown.
27921finish_eval=$lt_finish_eval
27922
27923# Whether we should hardcode library paths into libraries.
27924hardcode_into_libs=$hardcode_into_libs
27925
27926# Compile-time system search path for libraries.
27927sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27928
27929# Run-time system search path for libraries.
27930sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27931
27932# Whether dlopen is supported.
27933dlopen_support=$enable_dlopen
27934
27935# Whether dlopen of programs is supported.
27936dlopen_self=$enable_dlopen_self
27937
27938# Whether dlopen of statically linked programs is supported.
27939dlopen_self_static=$enable_dlopen_self_static
27940
27941# Commands to strip libraries.
27942old_striplib=$lt_old_striplib
27943striplib=$lt_striplib
27944
27945
27946# The linker used to build libraries.
27947LD=$lt_LD
27948
27949# How to create reloadable object files.
27950reload_flag=$lt_reload_flag
27951reload_cmds=$lt_reload_cmds
27952
27953# Commands used to build an old-style archive.
27954old_archive_cmds=$lt_old_archive_cmds
27955
27956# A language specific compiler.
27957CC=$lt_compiler
27958
27959# Is the compiler the GNU compiler?
27960with_gcc=$GCC
27961
27962# Compiler flag to turn off builtin functions.
27963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27964
27965# Additional compiler flags for building library objects.
27966pic_flag=$lt_lt_prog_compiler_pic
27967
27968# How to pass a linker flag through the compiler.
27969wl=$lt_lt_prog_compiler_wl
27970
27971# Compiler flag to prevent dynamic linking.
27972link_static_flag=$lt_lt_prog_compiler_static
27973
27974# Does compiler simultaneously support -c and -o options?
27975compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27976
27977# Whether or not to add -lc for building shared libraries.
27978build_libtool_need_lc=$archive_cmds_need_lc
27979
27980# Whether or not to disallow shared libs when runtime libs are static.
27981allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27982
27983# Compiler flag to allow reflexive dlopens.
27984export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27985
27986# Compiler flag to generate shared objects directly from archives.
27987whole_archive_flag_spec=$lt_whole_archive_flag_spec
27988
27989# Whether the compiler copes with passing no objects directly.
27990compiler_needs_object=$lt_compiler_needs_object
27991
27992# Create an old-style archive from a shared archive.
27993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27994
27995# Create a temporary old-style archive to link instead of a shared archive.
27996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27997
27998# Commands used to build a shared archive.
27999archive_cmds=$lt_archive_cmds
28000archive_expsym_cmds=$lt_archive_expsym_cmds
28001
28002# Commands used to build a loadable module if different from building
28003# a shared archive.
28004module_cmds=$lt_module_cmds
28005module_expsym_cmds=$lt_module_expsym_cmds
28006
28007# Whether we are building with GNU ld or not.
28008with_gnu_ld=$lt_with_gnu_ld
28009
28010# Flag that allows shared libraries with undefined symbols to be built.
28011allow_undefined_flag=$lt_allow_undefined_flag
28012
28013# Flag that enforces no undefined symbols.
28014no_undefined_flag=$lt_no_undefined_flag
28015
28016# Flag to hardcode \$libdir into a binary during linking.
28017# This must work even if \$libdir does not exist
28018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28019
28020# If ld is used when linking, flag to hardcode \$libdir into a binary
28021# during linking.  This must work even if \$libdir does not exist.
28022hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28023
28024# Whether we need a single "-rpath" flag with a separated argument.
28025hardcode_libdir_separator=$lt_hardcode_libdir_separator
28026
28027# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28028# DIR into the resulting binary.
28029hardcode_direct=$hardcode_direct
28030
28031# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28032# DIR into the resulting binary and the resulting library dependency is
28033# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28034# library is relocated.
28035hardcode_direct_absolute=$hardcode_direct_absolute
28036
28037# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28038# into the resulting binary.
28039hardcode_minus_L=$hardcode_minus_L
28040
28041# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28042# into the resulting binary.
28043hardcode_shlibpath_var=$hardcode_shlibpath_var
28044
28045# Set to "yes" if building a shared library automatically hardcodes DIR
28046# into the library and all subsequent libraries and executables linked
28047# against it.
28048hardcode_automatic=$hardcode_automatic
28049
28050# Set to yes if linker adds runtime paths of dependent libraries
28051# to runtime path list.
28052inherit_rpath=$inherit_rpath
28053
28054# Whether libtool must link a program against all its dependency libraries.
28055link_all_deplibs=$link_all_deplibs
28056
28057# Set to "yes" if exported symbols are required.
28058always_export_symbols=$always_export_symbols
28059
28060# The commands to list exported symbols.
28061export_symbols_cmds=$lt_export_symbols_cmds
28062
28063# Symbols that should not be listed in the preloaded symbols.
28064exclude_expsyms=$lt_exclude_expsyms
28065
28066# Symbols that must always be exported.
28067include_expsyms=$lt_include_expsyms
28068
28069# Commands necessary for linking programs (against libraries) with templates.
28070prelink_cmds=$lt_prelink_cmds
28071
28072# Commands necessary for finishing linking programs.
28073postlink_cmds=$lt_postlink_cmds
28074
28075# Specify filename containing input files.
28076file_list_spec=$lt_file_list_spec
28077
28078# How to hardcode a shared library path into an executable.
28079hardcode_action=$hardcode_action
28080
28081# ### END LIBTOOL CONFIG
28082
28083_LT_EOF
28084
28085  case $host_os in
28086  aix3*)
28087    cat <<\_LT_EOF >> "$cfgfile"
28088# AIX sometimes has problems with the GCC collect2 program.  For some
28089# reason, if we set the COLLECT_NAMES environment variable, the problems
28090# vanish in a puff of smoke.
28091if test "X${COLLECT_NAMES+set}" != Xset; then
28092  COLLECT_NAMES=
28093  export COLLECT_NAMES
28094fi
28095_LT_EOF
28096    ;;
28097  esac
28098
28099
28100ltmain="$ac_aux_dir/ltmain.sh"
28101
28102
28103  # We use sed instead of cat because bash on DJGPP gets confused if
28104  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28105  # text mode, it properly converts lines to CR/LF.  This bash problem
28106  # is reportedly fixed, but why not run on old versions too?
28107  sed '$q' "$ltmain" >> "$cfgfile" \
28108     || (rm -f "$cfgfile"; exit 1)
28109
28110  if test x"$xsi_shell" = xyes; then
28111  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28112func_dirname ()\
28113{\
28114\    case ${1} in\
28115\      */*) func_dirname_result="${1%/*}${2}" ;;\
28116\      *  ) func_dirname_result="${3}" ;;\
28117\    esac\
28118} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28119  && mv -f "$cfgfile.tmp" "$cfgfile" \
28120    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28121test 0 -eq $? || _lt_function_replace_fail=:
28122
28123
28124  sed -e '/^func_basename ()$/,/^} # func_basename /c\
28125func_basename ()\
28126{\
28127\    func_basename_result="${1##*/}"\
28128} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28129  && mv -f "$cfgfile.tmp" "$cfgfile" \
28130    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28131test 0 -eq $? || _lt_function_replace_fail=:
28132
28133
28134  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28135func_dirname_and_basename ()\
28136{\
28137\    case ${1} in\
28138\      */*) func_dirname_result="${1%/*}${2}" ;;\
28139\      *  ) func_dirname_result="${3}" ;;\
28140\    esac\
28141\    func_basename_result="${1##*/}"\
28142} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28143  && mv -f "$cfgfile.tmp" "$cfgfile" \
28144    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28145test 0 -eq $? || _lt_function_replace_fail=:
28146
28147
28148  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28149func_stripname ()\
28150{\
28151\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28152\    # positional parameters, so assign one to ordinary parameter first.\
28153\    func_stripname_result=${3}\
28154\    func_stripname_result=${func_stripname_result#"${1}"}\
28155\    func_stripname_result=${func_stripname_result%"${2}"}\
28156} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28157  && mv -f "$cfgfile.tmp" "$cfgfile" \
28158    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28159test 0 -eq $? || _lt_function_replace_fail=:
28160
28161
28162  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28163func_split_long_opt ()\
28164{\
28165\    func_split_long_opt_name=${1%%=*}\
28166\    func_split_long_opt_arg=${1#*=}\
28167} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28168  && mv -f "$cfgfile.tmp" "$cfgfile" \
28169    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28170test 0 -eq $? || _lt_function_replace_fail=:
28171
28172
28173  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28174func_split_short_opt ()\
28175{\
28176\    func_split_short_opt_arg=${1#??}\
28177\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28178} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28179  && mv -f "$cfgfile.tmp" "$cfgfile" \
28180    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28181test 0 -eq $? || _lt_function_replace_fail=:
28182
28183
28184  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28185func_lo2o ()\
28186{\
28187\    case ${1} in\
28188\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28189\      *)    func_lo2o_result=${1} ;;\
28190\    esac\
28191} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28192  && mv -f "$cfgfile.tmp" "$cfgfile" \
28193    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28194test 0 -eq $? || _lt_function_replace_fail=:
28195
28196
28197  sed -e '/^func_xform ()$/,/^} # func_xform /c\
28198func_xform ()\
28199{\
28200    func_xform_result=${1%.*}.lo\
28201} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28202  && mv -f "$cfgfile.tmp" "$cfgfile" \
28203    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28204test 0 -eq $? || _lt_function_replace_fail=:
28205
28206
28207  sed -e '/^func_arith ()$/,/^} # func_arith /c\
28208func_arith ()\
28209{\
28210    func_arith_result=$(( $* ))\
28211} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28212  && mv -f "$cfgfile.tmp" "$cfgfile" \
28213    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28214test 0 -eq $? || _lt_function_replace_fail=:
28215
28216
28217  sed -e '/^func_len ()$/,/^} # func_len /c\
28218func_len ()\
28219{\
28220    func_len_result=${#1}\
28221} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28222  && mv -f "$cfgfile.tmp" "$cfgfile" \
28223    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28224test 0 -eq $? || _lt_function_replace_fail=:
28225
28226fi
28227
28228if test x"$lt_shell_append" = xyes; then
28229  sed -e '/^func_append ()$/,/^} # func_append /c\
28230func_append ()\
28231{\
28232    eval "${1}+=\\${2}"\
28233} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28234  && mv -f "$cfgfile.tmp" "$cfgfile" \
28235    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28236test 0 -eq $? || _lt_function_replace_fail=:
28237
28238
28239  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28240func_append_quoted ()\
28241{\
28242\    func_quote_for_eval "${2}"\
28243\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28244} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28245  && mv -f "$cfgfile.tmp" "$cfgfile" \
28246    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28247test 0 -eq $? || _lt_function_replace_fail=:
28248
28249
28250  # Save a `func_append' function call where possible by direct use of '+='
28251  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28252    && mv -f "$cfgfile.tmp" "$cfgfile" \
28253      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28254  test 0 -eq $? || _lt_function_replace_fail=:
28255else
28256  # Save a `func_append' function call even when '+=' is not available
28257  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28258    && mv -f "$cfgfile.tmp" "$cfgfile" \
28259      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28260  test 0 -eq $? || _lt_function_replace_fail=:
28261fi
28262
28263if test x"$_lt_function_replace_fail" = x":"; then
28264  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28265$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28266fi
28267
28268
28269   mv -f "$cfgfile" "$ofile" ||
28270    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28271  chmod +x "$ofile"
28272
28273 ;;
28274
28275  esac
28276done # for ac_tag
28277
28278
28279as_fn_exit 0
28280_ACEOF
28281ac_clean_files=$ac_clean_files_save
28282
28283test $ac_write_fail = 0 ||
28284  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28285
28286
28287# configure is writing to config.log, and then calls config.status.
28288# config.status does its own redirection, appending to config.log.
28289# Unfortunately, on DOS this fails, as config.log is still kept open
28290# by configure, so config.status won't be able to write to it; its
28291# output is simply discarded.  So we exec the FD to /dev/null,
28292# effectively closing config.log, so it can be properly (re)opened and
28293# appended to by config.status.  When coming back to configure, we
28294# need to make the FD available again.
28295if test "$no_create" != yes; then
28296  ac_cs_success=:
28297  ac_config_status_args=
28298  test "$silent" = yes &&
28299    ac_config_status_args="$ac_config_status_args --quiet"
28300  exec 5>/dev/null
28301  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28302  exec 5>>config.log
28303  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28304  # would make configure fail if this is the last instruction.
28305  $ac_cs_success || as_fn_exit 1
28306fi
28307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28310fi
28311
28312